(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["app"]=t(require("vue")):e["app"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){var t={2638:function(e,t,n){"use strict";var i;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},r(e)}(function(){var o=arguments,s=function(){var e=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(i,r,d,p){if(1!==o.length||"string"!==h(i)||/\d/.test(i)||(r=i,i=void 0),i=i||0===i?i:new Date,i instanceof Date||(i=new Date(i)),isNaN(i))throw TypeError("Invalid date");r=String(s.masks[r]||r||s.masks["default"]);var f=r.slice(0,4);"UTC:"!==f&&"GMT:"!==f||(r=r.slice(4),d=!0,"GMT:"===f&&(p=!0));var m=function(){return d?"getUTC":"get"},g=function(){return i[m()+"Date"]()},v=function(){return i[m()+"Day"]()},y=function(){return i[m()+"Month"]()},_=function(){return i[m()+"FullYear"]()},b=function(){return i[m()+"Hours"]()},x=function(){return i[m()+"Minutes"]()},w=function(){return i[m()+"Seconds"]()},C=function(){return i[m()+"Milliseconds"]()},k=function(){return d?0:i.getTimezoneOffset()},S=function(){return c(i)},E=function(){return u(i)},T={d:function(){return g()},dd:function(){return a(g())},ddd:function(){return s.i18n.dayNames[v()]},DDD:function(){return l({y:_(),m:y(),d:g(),_:m(),dayName:s.i18n.dayNames[v()],short:!0})},dddd:function(){return s.i18n.dayNames[v()+7]},DDDD:function(){return l({y:_(),m:y(),d:g(),_:m(),dayName:s.i18n.dayNames[v()+7]})},m:function(){return y()+1},mm:function(){return a(y()+1)},mmm:function(){return s.i18n.monthNames[y()]},mmmm:function(){return s.i18n.monthNames[y()+12]},yy:function(){return String(_()).slice(2)},yyyy:function(){return a(_(),4)},h:function(){return b()%12||12},hh:function(){return a(b()%12||12)},H:function(){return b()},HH:function(){return a(b())},M:function(){return x()},MM:function(){return a(x())},s:function(){return w()},ss:function(){return a(w())},l:function(){return a(C(),3)},L:function(){return a(Math.floor(C()/10))},t:function(){return b()<12?s.i18n.timeNames[0]:s.i18n.timeNames[1]},tt:function(){return b()<12?s.i18n.timeNames[2]:s.i18n.timeNames[3]},T:function(){return b()<12?s.i18n.timeNames[4]:s.i18n.timeNames[5]},TT:function(){return b()<12?s.i18n.timeNames[6]:s.i18n.timeNames[7]},Z:function(){return p?"GMT":d?"UTC":(String(i).match(t)||[""]).pop().replace(n,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(k()>0?"-":"+")+a(100*Math.floor(Math.abs(k())/60)+Math.abs(k())%60,4)},p:function(){return(k()>0?"-":"+")+a(Math.floor(Math.abs(k())/60),2)+":"+a(Math.floor(Math.abs(k())%60),2)},S:function(){return["th","st","nd","rd"][g()%10>3?0:(g()%100-g()%10!=10)*g()%10]},W:function(){return S()},WW:function(){return a(S())},N:function(){return E()}};return r.replace(e,(function(e){return e in T?T[e]():e.slice(1,e.length-1)}))}}();s.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},s.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var a=function(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e},l=function(e){var t=e.y,n=e.m,i=e.d,r=e._,o=e.dayName,s=e["short"],a=void 0!==s&&s,l=new Date,c=new Date;c.setDate(c[r+"Date"]()-1);var u=new Date;u.setDate(u[r+"Date"]()+1);var h=function(){return l[r+"Date"]()},d=function(){return l[r+"Month"]()},p=function(){return l[r+"FullYear"]()},f=function(){return c[r+"Date"]()},m=function(){return c[r+"Month"]()},g=function(){return c[r+"FullYear"]()},v=function(){return u[r+"Date"]()},y=function(){return u[r+"Month"]()},_=function(){return u[r+"FullYear"]()};return p()===t&&d()===n&&h()===i?a?"Tdy":"Today":g()===t&&m()===n&&f()===i?a?"Ysd":"Yesterday":_()===t&&y()===n&&v()===i?a?"Tmw":"Tomorrow":o},c=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var i=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-i);var r=(t-n)/6048e5;return 1+Math.floor(r)},u=function(e){var t=e.getDay();return 0===t&&(t=7),t},h=function(e){return null===e?"null":void 0===e?"undefined":"object"!==r(e)?r(e):Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()};i=function(){return s}.call(t,n,t,e),void 0===i||(e.exports=i)})(void 0)},9576:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return de}});var i=n(5095),r=n(8793),o=/%[sdj%]/g,s=function(){};function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],s=t.length;if("function"===typeof r)return r.apply(null,t.slice(1));if("string"===typeof r){for(var a=String(r).replace(o,(function(e){if("%%"===e)return"%";if(i>=s)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(_){return"[Circular]"}break;default:return e}})),l=t[i];i<s;l=t[++i])a+=" "+l;return a}return r}function l(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function c(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!l(t)||"string"!==typeof e||e))}function u(e,t,n){var i=[],r=0,o=e.length;function s(e){i.push.apply(i,e),r++,r===o&&n(i)}e.forEach((function(e){t(e,s)}))}function h(e,t,n){var i=0,r=e.length;function o(s){if(s&&s.length)n(s);else{var a=i;i+=1,a<r?t(e[a],o):n([])}}o([])}function d(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function p(e,t,n,i){if(t.first){var r=d(e);return h(r,n,i)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var s=Object.keys(e),a=s.length,l=0,c=[],p=function(e){c.push.apply(c,e),l++,l===a&&i(c)};s.forEach((function(t){var i=e[t];-1!==o.indexOf(t)?h(i,n,p):u(i,n,p)}))}function f(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function m(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===("undefined"===typeof o?"undefined":(0,r.A)(o))&&"object"===(0,r.A)(e[n])?e[n]=(0,i.A)({},e[n],o):e[n]=o}return e}function g(e,t,n,i,r,o){!e.required||n.hasOwnProperty(e.field)&&!c(t,o||e.type)||i.push(a(r.messages.required,e.fullField))}var v=g;function y(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push(a(r.messages.whitespace,e.fullField))}var b=y,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},w={integer:function(e){return w.number(e)&&parseInt(e,10)===e},float:function(e){return w.number(e)&&!w.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":(0,r.A)(e))&&!w.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(x.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(x.url)},hex:function(e){return"string"===typeof e&&!!e.match(x.hex)}};function C(e,t,n,i,o){if(e.required&&void 0===t)v(e,t,n,i,o);else{var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=e.type;s.indexOf(l)>-1?w[l](t)||i.push(a(o.messages.types[l],e.fullField,e.type)):l&&("undefined"===typeof t?"undefined":(0,r.A)(t))!==e.type&&i.push(a(o.messages.types[l],e.fullField,e.type))}}var k=C;function S(e,t,n,i,r){var o="number"===typeof e.len,s="number"===typeof e.min,l="number"===typeof e.max,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,h=null,d="number"===typeof t,p="string"===typeof t,f=Array.isArray(t);if(d?h="number":p?h="string":f&&(h="array"),!h)return!1;f&&(u=t.length),p&&(u=t.replace(c,"_").length),o?u!==e.len&&i.push(a(r.messages[h].len,e.fullField,e.len)):s&&!l&&u<e.min?i.push(a(r.messages[h].min,e.fullField,e.min)):l&&!s&&u>e.max?i.push(a(r.messages[h].max,e.fullField,e.max)):s&&l&&(u<e.min||u>e.max)&&i.push(a(r.messages[h].range,e.fullField,e.min,e.max))}var E=S,T="enum";function M(e,t,n,i,r){e[T]=Array.isArray(e[T])?e[T]:[],-1===e[T].indexOf(t)&&i.push(a(r.messages[T],e.fullField,e[T].join(", ")))}var A=M;function O(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(a(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||i.push(a(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var I=O,D={required:v,whitespace:b,type:k,range:E,enum:A,pattern:I};function P(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t,"string")&&!e.required)return n();D.required(e,t,i,o,r,"string"),c(t,"string")||(D.type(e,t,i,o,r),D.range(e,t,i,o,r),D.pattern(e,t,i,o,r),!0===e.whitespace&&D.whitespace(e,t,i,o,r))}n(o)}var z=P;function L(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t)&&!e.required)return n();D.required(e,t,i,o,r),void 0!==t&&D.type(e,t,i,o,r)}n(o)}var B=L;function F(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t)&&!e.required)return n();D.required(e,t,i,o,r),void 0!==t&&(D.type(e,t,i,o,r),D.range(e,t,i,o,r))}n(o)}var R=F;function $(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t)&&!e.required)return n();D.required(e,t,i,o,r),void 0!==t&&D.type(e,t,i,o,r)}n(o)}var N=$;function j(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t)&&!e.required)return n();D.required(e,t,i,o,r),c(t)||D.type(e,t,i,o,r)}n(o)}var V=j;function U(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t)&&!e.required)return n();D.required(e,t,i,o,r),void 0!==t&&(D.type(e,t,i,o,r),D.range(e,t,i,o,r))}n(o)}var q=U;function H(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t)&&!e.required)return n();D.required(e,t,i,o,r),void 0!==t&&(D.type(e,t,i,o,r),D.range(e,t,i,o,r))}n(o)}var W=H;function G(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t,"array")&&!e.required)return n();D.required(e,t,i,o,r,"array"),c(t,"array")||(D.type(e,t,i,o,r),D.range(e,t,i,o,r))}n(o)}var Z=G;function X(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t)&&!e.required)return n();D.required(e,t,i,o,r),void 0!==t&&D.type(e,t,i,o,r)}n(o)}var K=X,Y="enum";function J(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t)&&!e.required)return n();D.required(e,t,i,o,r),t&&D[Y](e,t,i,o,r)}n(o)}var Q=J;function ee(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t,"string")&&!e.required)return n();D.required(e,t,i,o,r),c(t,"string")||D.pattern(e,t,i,o,r)}n(o)}var te=ee;function ne(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t)&&!e.required)return n();if(D.required(e,t,i,o,r),!c(t)){var a=void 0;a="number"===typeof t?new Date(t):t,D.type(e,a,i,o,r),a&&D.range(e,a.getTime(),i,o,r)}}n(o)}var ie=ne;function re(e,t,n,i,o){var s=[],a=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":(0,r.A)(t);D.required(e,t,i,s,o,a),n(s)}var oe=re;function se(e,t,n,i,r){var o=e.type,s=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(c(t,o)&&!e.required)return n();D.required(e,t,i,s,r,o),c(t,o)||D.type(e,t,i,s,r)}n(s)}var ae=se,le={string:z,method:B,number:R,boolean:N,regexp:V,integer:q,float:W,array:Z,object:K,enum:Q,pattern:te,date:ie,url:ae,hex:ae,email:ae,required:oe};function ce(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var ue=ce();function he(e){this.rules=null,this._messages=ue,this.define(e)}he.prototype={messages:function(e){return e&&(this._messages=m(ce(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":(0,r.A)(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2],l=e,c=n,u=o;if("function"===typeof c&&(u=c,c={}),this.rules&&0!==Object.keys(this.rules).length){if(c.messages){var h=this.messages();h===ue&&(h=ce()),m(h,c.messages),c.messages=h}else c.messages=this.messages();var d=void 0,g=void 0,v={},y=c.keys||Object.keys(this.rules);y.forEach((function(n){d=t.rules[n],g=l[n],d.forEach((function(r){var o=r;"function"===typeof o.transform&&(l===e&&(l=(0,i.A)({},l)),g=l[n]=o.transform(g)),o="function"===typeof o?{validator:o}:(0,i.A)({},o),o.validator=t.getValidationMethod(o),o.field=n,o.fullField=o.fullField||n,o.type=t.getType(o),o.validator&&(v[n]=v[n]||[],v[n].push({rule:o,value:g,source:l,field:n}))}))}));var _={};p(v,c,(function(e,t){var n=e.rule,o=("object"===n.type||"array"===n.type)&&("object"===(0,r.A)(n.fields)||"object"===(0,r.A)(n.defaultField));function l(e,t){return(0,i.A)({},t,{fullField:n.fullField+"."+e})}function u(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=r;if(Array.isArray(u)||(u=[u]),u.length&&s("async-validator:",u),u.length&&n.message&&(u=[].concat(n.message)),u=u.map(f(n)),c.first&&u.length)return _[n.field]=1,t(u);if(o){if(n.required&&!e.value)return u=n.message?[].concat(n.message).map(f(n)):c.error?[c.error(n,a(c.messages.required,n.field))]:[],t(u);var h={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(h[d]=n.defaultField);for(var p in h=(0,i.A)({},h,e.rule.fields),h)if(h.hasOwnProperty(p)){var m=Array.isArray(h[p])?h[p]:[h[p]];h[p]=m.map(l.bind(null,p))}var g=new he(h);g.messages(c.messages),e.rule.options&&(e.rule.options.messages=c.messages,e.rule.options.error=c.error),g.validate(e.value,e.rule.options||c,(function(e){t(e&&e.length?u.concat(e):e)}))}else t(u)}o=o&&(n.required||!n.required&&e.value),n.field=e.field;var h=n.validator(n,e.value,u,e.source,c);h&&h.then&&h.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){b(e)}))}else u&&u();function b(e){var t=void 0,n=void 0,i=[],r={};function o(e){Array.isArray(e)?i=i.concat.apply(i,e):i.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(i.length)for(t=0;t<i.length;t++)n=i[t].field,r[n]=r[n]||[],r[n].push(i[t]);else i=null,r=null;u(i,r)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!le.hasOwnProperty(e.type))throw new Error(a("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?le.required:le[this.getType(e)]||!1}},he.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");le[e]=t},he.messages=ue;var de=he},4183:function(e,t,n){e.exports=n(8281)},4742:function(e,t,n){"use strict";var i=n(5154),r=n(1696),o=n(7238),s=n(3900),a=n(7493),l=n(6361),c=n(8988),u=n(7129),h=n(5714),d=n(4086);e.exports=function(e){return new Promise((function(t,n){var p,f=e.data,m=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}i.isFormData(f)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(_+":"+b)}var x=a(e.baseURL,e.url);function w(){if(y){var i="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,o=g&&"text"!==g&&"json"!==g?y.response:y.responseText,s={data:o,status:y.status,statusText:y.statusText,headers:i,config:e,request:y};r((function(e){t(e),v()}),(function(e){n(e),v()}),s),y=null}}if(y.open(e.method.toUpperCase(),s(x,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(w)},y.onabort=function(){y&&(n(u("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(u("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||h;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,i.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},i.isStandardBrowserEnv()){var C=(e.withCredentials||c(x))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;C&&(m[e.xsrfHeaderName]=C)}"setRequestHeader"in y&&i.forEach(m,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),g&&"json"!==g&&(y.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(n(!e||e&&e.type?new d("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),f||(f=null),y.send(f)}))}},8281:function(e,t,n){"use strict";var i=n(5154),r=n(1598),o=n(1993),s=n(5681),a=n(9290);function l(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n.create=function(t){return l(s(e,t))},n}var c=l(a);c.Axios=o,c.Cancel=n(4086),c.CancelToken=n(3757),c.isCancel=n(6282),c.VERSION=n(4539).version,c.all=function(e){return Promise.all(e)},c.spread=n(4966),c.isAxiosError=n(5785),e.exports=c,e.exports["default"]=c},4086:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},3757:function(e,t,n){"use strict";var i=n(4086);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t<i;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,i=new Promise((function(e){n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},6282:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},1993:function(e,t,n){"use strict";var i=n(5154),r=n(3900),o=n(1174),s=n(4192),a=n(5681),l=n(9003),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=a(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!r){var h=[s,void 0];Array.prototype.unshift.apply(h,i),h=h.concat(u),o=Promise.resolve(t);while(h.length)o=o.then(h.shift(),h.shift());return o}var d=t;while(i.length){var p=i.shift(),f=i.shift();try{d=p(d)}catch(m){f(m);break}}try{o=s(d)}catch(m){return Promise.reject(m)}while(u.length)o=o.then(u.shift(),u.shift());return o},u.prototype.getUri=function(e){return e=a(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(a(i||{},{method:e,url:t,data:n}))}})),e.exports=u},1174:function(e,t,n){"use strict";var i=n(5154);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},7493:function(e,t,n){"use strict";var i=n(1523),r=n(1606);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},7129:function(e,t,n){"use strict";var i=n(1367);e.exports=function(e,t,n,r,o){var s=new Error(e);return i(s,t,n,r,o)}},4192:function(e,t,n){"use strict";var i=n(5154),r=n(1183),o=n(6282),s=n(9290),a=n(4086);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},1367:function(e){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},5681:function(e,t,n){"use strict";var i=n(5154);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function o(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function s(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)})),n}},1696:function(e,t,n){"use strict";var i=n(7129);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},1183:function(e,t,n){"use strict";var i=n(5154),r=n(9290);e.exports=function(e,t,n){var o=this||r;return i.forEach(n,(function(n){e=n.call(o,e,t)})),e}},9290:function(e,t,n){"use strict";var i=n(5154),r=n(9912),o=n(1367),s=n(5714),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(4742)),e}function u(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}var h={transitional:s,adapter:c(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw o(a,this,"E_JSON_PARSE");throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){h.headers[e]=i.merge(a)})),e.exports=h},5714:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},4539:function(e){e.exports={version:"0.26.1"}},1598:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},3900:function(e,t,n){"use strict";var i=n(5154);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var s=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},1606:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},7238:function(e,t,n){"use strict";var i=n(5154);e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},1523:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5785:function(e,t,n){"use strict";var i=n(5154);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},8988:function(e,t,n){"use strict";var i=n(5154);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},9912:function(e,t,n){"use strict";var i=n(5154);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},6361:function(e,t,n){"use strict";var i=n(5154),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},4966:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},9003:function(e,t,n){"use strict";var i=n(4539).version,r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};function s(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var i=Object.keys(e),r=i.length;while(r-- >0){var o=i[r],s=t[o];if(s){var a=e[o],l=void 0===a||s(a,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}}r.transitional=function(e,t,n){function r(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new Error(r(i," has been removed"+(t?" in "+t:"")));return t&&!o[i]&&(o[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={assertOptions:s,validators:r}},5154:function(e,t,n){"use strict";var i=n(1598),r=Object.prototype.toString;function o(e){return Array.isArray(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===r.call(e)}function c(e){return"[object FormData]"===r.call(e)}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t}function h(e){return"string"===typeof e}function d(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function f(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===r.call(e)}function g(e){return"[object File]"===r.call(e)}function v(e){return"[object Blob]"===r.call(e)}function y(e){return"[object Function]"===r.call(e)}function _(e){return p(e)&&y(e.pipe)}function b(e){return"[object URLSearchParams]"===r.call(e)}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function k(){var e={};function t(t,n){f(e[n])&&f(t)?e[n]=k(e[n],t):f(t)?e[n]=k({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)C(arguments[n],t);return e}function S(e,t,n){return C(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e}function E(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:u,isString:h,isNumber:d,isObject:p,isPlainObject:f,isUndefined:s,isDate:m,isFile:g,isBlob:v,isFunction:y,isStream:_,isURLSearchParams:b,isStandardBrowserEnv:w,forEach:C,merge:k,extend:S,trim:x,stripBOM:E}},7411:function(e){var t=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,i){var r,o,s,a,l;for(s in i)if(r=e[s],o=i[s],r&&t.test(s))if("class"===s&&("string"===typeof r&&(l=r,e[s]=r={},r[l]=!0),"string"===typeof o&&(l=o,i[s]=o={},o[l]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)r[a]=n(r[a],o[a]);else if(Array.isArray(r))e[s]=r.concat(o);else if(Array.isArray(o))e[s]=[r].concat(o);else for(a in o)r[a]=o[a];else e[s]=i[s];return e}),{})}},5167:function(e,t,n){e.exports={default:n(6707),__esModule:!0}},5076:function(e,t,n){e.exports={default:n(7487),__esModule:!0}},4421:function(e,t,n){e.exports={default:n(5209),__esModule:!0}},5095:function(e,t,n){"use strict";var i=n(5167),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}t.A=r.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}},8793:function(e,t,n){"use strict";var i=n(4421),r=l(i),o=n(5076),s=l(o),a="function"===typeof s.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.A="function"===typeof s.default&&"symbol"===a(r.default)?function(e){return"undefined"===typeof e?"undefined":a(e)}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"===typeof e?"undefined":a(e)}},6707:function(e,t,n){n(61),e.exports=n(7313).Object.assign},7487:function(e,t,n){n(6019),n(9731),n(4523),n(7623),e.exports=n(7313).Symbol},5209:function(e,t,n){n(1428),n(7807),e.exports=n(6809).f("iterator")},6568:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},9947:function(e){e.exports=function(){}},5009:function(e,t,n){var i=n(7020);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},2903:function(e,t,n){var i=n(5502),r=n(3048),o=n(4);e.exports=function(e){return function(t,n,s){var a,l=i(t),c=r(l.length),u=o(s,c);if(e&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},5576:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},7313:function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},529:function(e,t,n){var i=n(6568);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},1077:function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},6866:function(e,t,n){e.exports=!n(7053)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},1009:function(e,t,n){var i=n(7020),r=n(9281).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},9665:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},6836:function(e,t,n){var i=n(70),r=n(6753),o=n(7798);e.exports=function(e){var t=i(e),n=r.f;if(n){var s,a=n(e),l=o.f,c=0;while(a.length>c)l.call(e,s=a[c++])&&t.push(s)}return t}},8872:function(e,t,n){var i=n(9281),r=n(7313),o=n(529),s=n(4070),a=n(5048),l="prototype",c=function(e,t,n){var u,h,d,p=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,_=f?r:r[t]||(r[t]={}),b=_[l],x=f?i:m?i[t]:(i[t]||{})[l];for(u in f&&(n=t),n)h=!p&&x&&void 0!==x[u],h&&a(_,u)||(d=h?x[u]:n[u],_[u]=f&&"function"!=typeof x[u]?n[u]:v&&h?o(d,i):y&&x[u]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[l]=e[l],t}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((_.virtual||(_.virtual={}))[u]=d,e&c.R&&b&&!b[u]&&s(b,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},7053:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},9281:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},5048:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},4070:function(e,t,n){var i=n(6634),r=n(4301);e.exports=n(6866)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},2303:function(e,t,n){var i=n(9281).document;e.exports=i&&i.documentElement},1467:function(e,t,n){e.exports=!n(6866)&&!n(7053)((function(){return 7!=Object.defineProperty(n(1009)("div"),"a",{get:function(){return 7}}).a}))},5968:function(e,t,n){var i=n(5576);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},1750:function(e,t,n){var i=n(5576);e.exports=Array.isArray||function(e){return"Array"==i(e)}},7020:function(e){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},3101:function(e,t,n){"use strict";var i=n(6006),r=n(4301),o=n(2921),s={};n(4070)(s,n(6299)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:r(1,n)}),o(e,t+" Iterator")}},7194:function(e,t,n){"use strict";var i=n(6983),r=n(8872),o=n(1528),s=n(4070),a=n(4411),l=n(3101),c=n(2921),u=n(412),h=n(6299)("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,_,b){l(n,t,v);var x,w,C,k=function(e){if(!d&&e in M)return M[e];switch(e){case f:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",E=y==m,T=!1,M=e.prototype,A=M[h]||M[p]||y&&M[y],O=A||k(y),I=y?E?k("entries"):O:void 0,D="Array"==t&&M.entries||A;if(D&&(C=u(D.call(new e)),C!==Object.prototype&&C.next&&(c(C,S,!0),i||"function"==typeof C[h]||s(C,h,g))),E&&A&&A.name!==m&&(T=!0,O=function(){return A.call(this)}),i&&!b||!d&&!T&&M[h]||s(M,h,O),a[t]=O,a[S]=g,y)if(x={values:E?O:k(m),keys:_?O:k(f),entries:I},b)for(w in x)w in M||o(M,w,x[w]);else r(r.P+r.F*(d||T),t,x);return x}},4267:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},4411:function(e){e.exports={}},6983:function(e){e.exports=!0},6407:function(e,t,n){var i=n(8622)("meta"),r=n(7020),o=n(5048),s=n(6634).f,a=0,l=Object.isExtensible||function(){return!0},c=!n(7053)((function(){return l(Object.preventExtensions({}))})),u=function(e){s(e,i,{value:{i:"O"+ ++a,w:{}}})},h=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},d=function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},p=function(e){return c&&f.NEED&&l(e)&&!o(e,i)&&u(e),e},f=e.exports={KEY:i,NEED:!1,fastKey:h,getWeak:d,onFreeze:p}},7219:function(e,t,n){"use strict";var i=n(6866),r=n(70),o=n(6753),s=n(7798),a=n(7279),l=n(5968),c=Object.assign;e.exports=!c||n(7053)((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){var n=a(e),c=arguments.length,u=1,h=o.f,d=s.f;while(c>u){var p,f=l(arguments[u++]),m=h?r(f).concat(h(f)):r(f),g=m.length,v=0;while(g>v)p=m[v++],i&&!d.call(f,p)||(n[p]=f[p])}return n}:c},6006:function(e,t,n){var i=n(5009),r=n(5401),o=n(9665),s=n(6413)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n(1009)("iframe"),i=o.length,r="<",s=">";t.style.display="none",n(2303).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+s+"document.F=Object"+r+"/script"+s),e.close(),c=e.F;while(i--)delete c[l][o[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[s]=e):n=c(),void 0===t?n:r(n,t)}},6634:function(e,t,n){var i=n(5009),r=n(1467),o=n(8855),s=Object.defineProperty;t.f=n(6866)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},5401:function(e,t,n){var i=n(6634),r=n(5009),o=n(70);e.exports=n(6866)?Object.defineProperties:function(e,t){r(e);var n,s=o(t),a=s.length,l=0;while(a>l)i.f(e,n=s[l++],t[n]);return e}},6516:function(e,t,n){var i=n(7798),r=n(4301),o=n(5502),s=n(8855),a=n(5048),l=n(1467),c=Object.getOwnPropertyDescriptor;t.f=n(6866)?c:function(e,t){if(e=o(e),t=s(t,!0),l)try{return c(e,t)}catch(n){}if(a(e,t))return r(!i.f.call(e,t),e[t])}},4536:function(e,t,n){var i=n(5502),r=n(5414).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return r(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):r(i(e))}},5414:function(e,t,n){var i=n(7690),r=n(9665).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},6753:function(e,t){t.f=Object.getOwnPropertySymbols},412:function(e,t,n){var i=n(5048),r=n(7279),o=n(6413)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},7690:function(e,t,n){var i=n(5048),r=n(5502),o=n(2903)(!1),s=n(6413)("IE_PROTO");e.exports=function(e,t){var n,a=r(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);while(t.length>l)i(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},70:function(e,t,n){var i=n(7690),r=n(9665);e.exports=Object.keys||function(e){return i(e,r)}},7798:function(e,t){t.f={}.propertyIsEnumerable},4301:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1528:function(e,t,n){e.exports=n(4070)},2921:function(e,t,n){var i=n(6634).f,r=n(5048),o=n(6299)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},6413:function(e,t,n){var i=n(9283)("keys"),r=n(8622);e.exports=function(e){return i[e]||(i[e]=r(e))}},9283:function(e,t,n){var i=n(7313),r=n(9281),o="__core-js_shared__",s=r[o]||(r[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(6983)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},9205:function(e,t,n){var i=n(7752),r=n(1077);e.exports=function(e){return function(t,n){var o,s,a=String(r(t)),l=i(n),c=a.length;return l<0||l>=c?e?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):o:e?a.slice(l,l+2):s-56320+(o-55296<<10)+65536)}}},4:function(e,t,n){var i=n(7752),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},7752:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},5502:function(e,t,n){var i=n(5968),r=n(1077);e.exports=function(e){return i(r(e))}},3048:function(e,t,n){var i=n(7752),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},7279:function(e,t,n){var i=n(1077);e.exports=function(e){return Object(i(e))}},8855:function(e,t,n){var i=n(7020);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},8622:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},1959:function(e,t,n){var i=n(9281),r=n(7313),o=n(6983),s=n(6809),a=n(6634).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},6809:function(e,t,n){t.f=n(6299)},6299:function(e,t,n){var i=n(9283)("wks"),r=n(8622),o=n(9281).Symbol,s="function"==typeof o,a=e.exports=function(e){return i[e]||(i[e]=s&&o[e]||(s?o:r)("Symbol."+e))};a.store=i},6688:function(e,t,n){"use strict";var i=n(9947),r=n(4267),o=n(4411),s=n(5502);e.exports=n(7194)(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},61:function(e,t,n){var i=n(8872);i(i.S+i.F,"Object",{assign:n(7219)})},9731:function(){},1428:function(e,t,n){"use strict";var i=n(9205)(!0);n(7194)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},6019:function(e,t,n){"use strict";var i=n(9281),r=n(5048),o=n(6866),s=n(8872),a=n(1528),l=n(6407).KEY,c=n(7053),u=n(9283),h=n(2921),d=n(8622),p=n(6299),f=n(6809),m=n(1959),g=n(6836),v=n(1750),y=n(5009),_=n(7020),b=n(7279),x=n(5502),w=n(8855),C=n(4301),k=n(6006),S=n(4536),E=n(6516),T=n(6753),M=n(6634),A=n(70),O=E.f,I=M.f,D=S.f,P=i.Symbol,z=i.JSON,L=z&&z.stringify,B="prototype",F=p("_hidden"),R=p("toPrimitive"),$={}.propertyIsEnumerable,N=u("symbol-registry"),j=u("symbols"),V=u("op-symbols"),U=Object[B],q="function"==typeof P&&!!T.f,H=i.QObject,W=!H||!H[B]||!H[B].findChild,G=o&&c((function(){return 7!=k(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=O(U,t);i&&delete U[t],I(e,t,n),i&&e!==U&&I(U,t,i)}:I,Z=function(e){var t=j[e]=k(P[B]);return t._k=e,t},X=q&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},K=function(e,t,n){return e===U&&K(V,t,n),y(e),t=w(t,!0),y(n),r(j,t)?(n.enumerable?(r(e,F)&&e[F][t]&&(e[F][t]=!1),n=k(n,{enumerable:C(0,!1)})):(r(e,F)||I(e,F,C(1,{})),e[F][t]=!0),G(e,t,n)):I(e,t,n)},Y=function(e,t){y(e);var n,i=g(t=x(t)),r=0,o=i.length;while(o>r)K(e,n=i[r++],t[n]);return e},J=function(e,t){return void 0===t?k(e):Y(k(e),t)},Q=function(e){var t=$.call(this,e=w(e,!0));return!(this===U&&r(j,e)&&!r(V,e))&&(!(t||!r(this,e)||!r(j,e)||r(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=x(e),t=w(t,!0),e!==U||!r(j,t)||r(V,t)){var n=O(e,t);return!n||!r(j,t)||r(e,F)&&e[F][t]||(n.enumerable=!0),n}},te=function(e){var t,n=D(x(e)),i=[],o=0;while(n.length>o)r(j,t=n[o++])||t==F||t==l||i.push(t);return i},ne=function(e){var t,n=e===U,i=D(n?V:x(e)),o=[],s=0;while(i.length>s)!r(j,t=i[s++])||n&&!r(U,t)||o.push(j[t]);return o};q||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(V,n),r(this,F)&&r(this[F],e)&&(this[F][e]=!1),G(this,e,C(1,n))};return o&&W&&G(U,e,{configurable:!0,set:t}),Z(e)},a(P[B],"toString",(function(){return this._k})),E.f=ee,M.f=K,n(5414).f=S.f=te,n(7798).f=Q,T.f=ne,o&&!n(6983)&&a(U,"propertyIsEnumerable",Q,!0),f.f=function(e){return Z(p(e))}),s(s.G+s.W+s.F*!q,{Symbol:P});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ie.length>re;)p(ie[re++]);for(var oe=A(p.store),se=0;oe.length>se;)m(oe[se++]);s(s.S+s.F*!q,"Symbol",{for:function(e){return r(N,e+="")?N[e]:N[e]=P(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in N)if(N[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!q,"Object",{create:J,defineProperty:K,defineProperties:Y,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var ae=c((function(){T.f(1)}));s(s.S+s.F*ae,"Object",{getOwnPropertySymbols:function(e){return T.f(b(e))}}),z&&s(s.S+s.F*(!q||c((function(){var e=P();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){var t,n,i=[e],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=t=i[1],(_(t)||void 0!==e)&&!X(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),i[1]=t,L.apply(z,i)}}),P[B][R]||n(4070)(P[B],R,P[B].valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},4523:function(e,t,n){n(1959)("asyncIterator")},7623:function(e,t,n){n(1959)("observable")},7807:function(e,t,n){n(6688);for(var i=n(9281),r=n(4070),o=n(4411),s=n(6299)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var c=a[l],u=i[c],h=u&&u.prototype;h&&!h[s]&&r(h,s,c),o[c]=o.Array}},2034:function(e){"use strict";var t=function(e){return n(e)&&!i(e)};function n(e){return!!e&&"object"===typeof e}function i(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||s(e)}var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103;function s(e){return e.$$typeof===o}function a(e){return Array.isArray(e)?[]:{}}function l(e,n){var i=n&&!0===n.clone;return i&&t(e)?h(a(e),e,n):e}function c(e,n,i){var r=e.slice();return n.forEach((function(n,o){"undefined"===typeof r[o]?r[o]=l(n,i):t(n)?r[o]=h(e[o],n,i):-1===e.indexOf(n)&&r.push(l(n,i))})),r}function u(e,n,i){var r={};return t(e)&&Object.keys(e).forEach((function(t){r[t]=l(e[t],i)})),Object.keys(n).forEach((function(o){t(n[o])&&e[o]?r[o]=h(e[o],n[o],i):r[o]=l(n[o],i)})),r}function h(e,t,n){var i=Array.isArray(t),r=Array.isArray(e),o=n||{arrayMerge:c},s=i===r;if(s){if(i){var a=o.arrayMerge||c;return a(e,t,n)}return u(e,t,n)}return l(t,n)}h.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return h(e,n,t)}))};var d=h;e.exports=d},6278:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=97)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},97:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},r=[];i._withStripped=!0;var o={name:"ElButtonGroup"},s=o,a=n(0),l=Object(a["a"])(s,i,r,!1,null,null,null);l.options.__file="packages/button/src/button-group.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},624:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=96)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},96:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},r=[];i._withStripped=!0;var o={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},s=o,a=n(0),l=Object(a["a"])(s,i,r,!1,null,null,null);l.options.__file="packages/button/src/button.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},8623:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},15:function(e,t){e.exports=n(7576)},18:function(e,t){e.exports=n(4077)},21:function(e,t){e.exports=n(9727)},26:function(e,t){e.exports=n(7411)},3:function(e,t){e.exports=n(7990)},31:function(e,t){e.exports=n(6890)},41:function(e,t){e.exports=n(907)},52:function(e,t){e.exports=n(6449)},6:function(e,t){e.exports=n(3603)},61:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},r=[];i._withStripped=!0;var o,s,a=n(26),l=n.n(a),c=n(15),u=n.n(c),h=n(18),d=n.n(h),p=n(52),f=n.n(p),m=n(3),g=function(e){return e.stopPropagation()},v={inject:["panel"],components:{ElCheckbox:d.a,ElRadio:f.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,i=this.isDisabled,r=this.config,o=r.multiple,s=r.checkStrictly;!s&&i||n.loading||(r.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var i=!!t&&n.checked;e.handleMultiCheckChange(i)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,i=this.config,r=i.checkStrictly,o=i.multiple;return o?this.renderCheckbox(e):r?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=g),e("el-checkbox",l()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return Object(m["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:g}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,i=t.renderLabelFn,r=i?i({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[r||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,o=this.isLeaf,s=this.isDisabled,a=this.config,c=this.nodeId,u=a.expandTrigger,h=a.checkStrictly,d=a.multiple,p=!h&&s,f={on:{}};return"click"===u?f.on.click=this.handleExpand:(f.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},f.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||s||h||d||(f.on.click=this.handleCheckChange),e("li",l()([{attrs:{role:"menuitem",id:c,"aria-expanded":n,tabindex:p?null:-1},class:{"el-cascader-node":!0,"is-selectable":h,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":p}},f]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},y=v,_=n(0),b=Object(_["a"])(y,o,s,!1,null,null,null);b.options.__file="packages/cascader-panel/src/cascader-node.vue";var x,w,C=b.exports,k=n(6),S=n.n(k),E={name:"ElCascaderMenu",mixins:[S.a],inject:["panel"],components:{ElScrollbar:u.a,CascaderNode:C},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(m["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,i=this.$refs.hoverZone;if(t&&i)if(t.contains(e.target)){clearTimeout(n);var r=this.$el.getBoundingClientRect(),o=r.left,s=e.clientX-o,a=this.$el,l=a.offsetWidth,c=a.offsetHeight,u=t.offsetTop,h=u+t.offsetHeight;i.innerHTML='\n          <path style="pointer-events: auto;" fill="transparent" d="M'+s+" "+u+" L"+l+" 0 V"+u+' Z" />\n          <path style="pointer-events: auto;" fill="transparent" d="M'+s+" "+h+" L"+l+" "+c+" V"+h+' Z" />\n        '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var o=n.hasChildren;return e("cascader-node",l()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":o,"aria-owns":o?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",l()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},T=E,M=Object(_["a"])(T,x,w,!1,null,null,null);M.options.__file="packages/cascader-panel/src/cascader-menu.vue";var A=M.exports,O=n(21),I=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var P=0,z=function(){function e(t,n,i){D(this,e),this.data=t,this.config=n,this.parent=i||null,this.level=this.parent?this.parent.level+1:1,this.uid=P++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,i=n.children,r=this.data[i];this.hasChildren=Array.isArray(r),this.children=(r||[]).map((function(i){return new e(i,n,t)}))},e.prototype.calculatePathNodes=function(){var e=[this],t=this.parent;while(t)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(m["isEqual"])(e,t)})):Object(m["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="onParent"+Object(m["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[r]&&t[r].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(m["capitalize"])(e);if(t){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];t[n]&&t[n].apply(t,r),t.emit.apply(t,[e].concat(r))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children,t=e.filter((function(e){return!e.isDisabled})),n=!!t.length&&t.every((function(e){return e.checked}));this.setCheckState(n)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){var n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},I(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,s=r.leaf;if(o){var a=Object(O["isDef"])(e[s])?e[s]:!!t&&!i.length;return this.hasChildren=!a,a}return!n}}]),e}(),L=z;function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var F=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},R=function(){function e(t,n){B(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(m["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new L(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new L(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(m["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:F(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(m["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),$=R,N=n(9),j=n.n(N),V=n(41),U=n.n(V),q=n(31),H=n.n(q),W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},G=U.a.keys,Z={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:m["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},X=function(e){return!e.getAttribute("aria-owns")},K=function(e,t){var n=e.parentNode;if(n){var i=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),r=Array.prototype.indexOf.call(i,e);return i[r+t]||null}return null},Y=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},J=function(e){e&&(e.focus(),!X(e)&&e.click())},Q=function(e){if(e){var t=e.querySelector("input");t?t.click():X(e)&&e.click()}},ee={name:"ElCascaderPanel",components:{CascaderMenu:A},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return j()(W({},Z),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(e){Object(m["isEqual"])(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(m["isEmpty"])(t)?this.lazyLoad():(this.store=new $(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(m["isEqual"])(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this,t=this.getFlattedNodes(this.leafOnly);t.forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config,i=n.emitPath;return!(!t&&!i)&&Object(m["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,i=this.activePath,r=this.checkedValue;if(Object(m["isEmpty"])(i))if(this.isEmptyValue(r))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?r[0]:r,s=this.getNodeByValue(o)||{},a=(s.pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var l=i.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(l)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple,i=n?Object(m["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=i.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target,n=e.keyCode;switch(n){case G.up:var i=K(t,-1);J(i);break;case G.down:var r=K(t,1);J(r);break;case G.left:var o=this.$refs.menu[Y(t)-1];if(o){var s=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');J(s)}break;case G.right:var a=this.$refs.menu[Y(t)+1];if(a){var l=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');J(l)}break;case G.enter:Q(t);break;case G.esc:case G.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,i=e.level,r=n.slice(0,i-1),o=this.menus.slice(0,i);if(e.isLeaf||(r.push(e),o.push(e.children)),this.activePath=r,this.menus=o,!t){var s=r.map((function(e){return e.getValue()})),a=n.map((function(e){return e.getValue()}));Object(m["valueEquals"])(s,a)||(this.$emit("active-item-change",s),this.$emit("expand-change",s))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,i=this.config;e||(e=e||{root:!0,level:0},this.store=new $([],i),this.menus=[this.store.getNodes()]),e.loading=!0;var r=function(i){var r=e.root?null:e;if(i&&i.length&&n.store.appendNodes(i,r),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],s=n.config.value,a=n.config.leaf;if(Array.isArray(i)&&i.filter((function(e){return e[s]===o})).length>0){var l=n.store.getNodeByValue(o);l.data[a]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");H()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},te=ee,ne=Object(_["a"])(te,i,r,!1,null,null,null);ne.options.__file="packages/cascader-panel/src/cascader-panel.vue";var ie=ne.exports;ie.install=function(e){e.component(ie.name,ie)};t["default"]=ie},9:function(e,t){e.exports=n(7592)}})},2355:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=93)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n(9111)},93:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},r=[];i._withStripped=!0;var o=n(4),s=n.n(o),a={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[s.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},l=a,c=n(0),u=Object(c["a"])(l,i,r,!1,null,null,null);u.options.__file="packages/checkbox/src/checkbox-group.vue";var h=u.exports;h.install=function(e){e.component(h.name,h)};t["default"]=h}})},4077:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=91)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n(9111)},91:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,s=e._i(n,o);i.checked?s<0&&(e.model=n.concat([o])):s>-1&&(e.model=n.slice(0,s).concat(n.slice(s+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,s=e._i(n,o);i.checked?s<0&&(e.model=n.concat([o])):s>-1&&(e.model=n.slice(0,s).concat(n.slice(s+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},r=[];i._withStripped=!0;var o=n(4),s=n.n(o),a={name:"ElCheckbox",mixins:[s.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},l=a,c=n(0),u=Object(c["a"])(l,i,r,!1,null,null,null);u.options.__file="packages/checkbox/src/checkbox.vue";var h=u.exports;h.install=function(e){e.component(h.name,h)};t["default"]=h}})},3414:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=46)}([function(e,t){e.exports=n(3155)},function(e,t){e.exports=n(8676)},function(e,t){e.exports=n(7990)},function(e,t){e.exports=n(9111)},function(e,t){e.exports=n(3603)},function(e,t){e.exports=n(6923)},function(e,t){e.exports=n(9274)},function(e,t){e.exports=n(7592)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(6755)},function(e,t){e.exports=n(9393)},function(e,t){e.exports=n(5873)},function(e,t){e.exports=n(7933)},function(e,t){e.exports=n(624)},function(e,t){e.exports=n(4077)},function(e,t){e.exports=n(9799)},function(e,t){e.exports=n(289)},function(e,t){e.exports=n(7810)},function(e,t){e.exports=n(7576)},function(e,t){e.exports=n(9727)},function(e,t){e.exports=n(758)},function(e,t){e.exports=n(8932)},function(e,t){e.exports=n(4960)},function(e,t){e.exports=n(1929)},function(e,t){e.exports=n(7411)},function(e,t){e.exports=n(4901)},function(e,t){e.exports=n(6253)},function(e,t){e.exports=n(6890)},function(e,t){e.exports=n(675)},function(e,t){e.exports=n(6278)},function(e,t){e.exports=n(7946)},function(e,t){e.exports=n(5563)},function(e,t){e.exports=n(2355)},function(e,t){e.exports=n(7132)},function(e,t){e.exports=n(7555)},function(e,t){e.exports=n(907)},function(e,t){e.exports=n(8933)},function(e,t){e.exports=n(9376)},function(e,t){e.exports=n(9249)},function(e,t){e.exports=n(5184)},function(e,t){e.exports=n(2116)},function(e,t){e.exports=n(9576)},function(e,t){e.exports=n(2078)},function(e,t){e.exports=n(8623)},function(e,t){e.exports=n(6449)},function(e,t){e.exports=n(131)},function(e,t,n){e.exports=n(47)},function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"el-pager",on:{click:e.onPagerClick}},[e.pageCount>0?n("li",{staticClass:"number",class:{active:1===e.currentPage,disabled:e.disabled}},[e._v("1")]):e._e(),e.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[e.quickprevIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("left")},mouseleave:function(t){e.quickprevIconClass="el-icon-more"}}}):e._e(),e._l(e.pagers,(function(t){return n("li",{key:t,staticClass:"number",class:{active:e.currentPage===t,disabled:e.disabled}},[e._v(e._s(t))])})),e.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[e.quicknextIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("right")},mouseleave:function(t){e.quicknextIconClass="el-icon-more"}}}):e._e(),e.pageCount>1?n("li",{staticClass:"number",class:{active:e.currentPage===e.pageCount,disabled:e.disabled}},[e._v(e._s(e.pageCount))]):e._e()],2)},r=[];i._withStripped=!0;var o={name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t=e.target;if("UL"!==t.tagName&&!this.disabled){var n=Number(e.target.textContent),i=this.pageCount,r=this.currentPage,o=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=r-o:-1!==t.className.indexOf("quicknext")&&(n=r+o)),isNaN(n)||(n<1&&(n=1),n>i&&(n=i)),n!==r&&this.$emit("change",n)}},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),i=Number(this.pageCount),r=!1,o=!1;i>e&&(n>e-t&&(r=!0),n<i-t&&(o=!0));var s=[];if(r&&!o)for(var a=i-(e-2),l=a;l<i;l++)s.push(l);else if(!r&&o)for(var c=2;c<e;c++)s.push(c);else if(r&&o)for(var u=Math.floor(e/2)-1,h=n-u;h<=n+u;h++)s.push(h);else for(var d=2;d<i;d++)s.push(d);return this.showPrevMore=r,this.showNextMore=o,s}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},s=o;function a(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}var l=a(s,i,r,!1,null,null,null);l.options.__file="packages/pagination/src/pager.vue";var c=l.exports,u=n(37),h=n.n(u),d=n(38),p=n.n(d),f=n(8),m=n.n(f),g=n(4),v=n.n(g),y=n(2),_={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(e){return(0|e)===e&&e>4&&e<22&&e%2===1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),i={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default?this.$slots.default:""]),total:e("total")},r=t.split(",").map((function(e){return e.trim()})),o=e("div",{class:"el-pagination__rightwrapper"}),s=!1;return n.children=n.children||[],o.children=o.children||[],r.forEach((function(e){"->"!==e?s?o.children.push(i[e]):n.children.push(i[e]):s=!0})),s&&n.children.unshift(o),n},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[v.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(y["valueEquals"])(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=e.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(e){var t=this;return e("span",{class:"el-pagination__sizes"},[e("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return e("el-option",{attrs:{value:n,label:n+t.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:h.a,ElOption:p.a},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[v.a],components:{ElInput:m.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,n=e.target;13===t&&this.handleChange(n.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[v.a],render:function(e){return"number"===typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:c},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var e=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var e=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(e){e=parseInt(e,10);var t="number"===typeof this.internalPageCount,n=void 0;return t?e<1?n=1:e>this.internalPageCount&&(n=this.internalPageCount):(isNaN(e)||e<1)&&(n=1),(void 0===n&&isNaN(e)||0===n)&&(n=1),void 0===n?e:n},emitChange:function(){var e=this;this.$nextTick((function(){(e.internalCurrentPage!==e.lastEmittedPage||e.userChangePageSize)&&(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"===typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"===typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;e>0&&0===t?this.internalCurrentPage=1:t>e&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component(_.name,_)}},b=_,x=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])},w=[];x._withStripped=!0;var C=n(11),k=n.n(C),S=n(9),E=n.n(S),T=n(3),M=n.n(T),A={name:"ElDialog",mixins:[k.a,M.a,E.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},O=A,I=a(O,x,w,!1,null,null,null);I.options.__file="packages/dialog/src/component.vue";var D=I.exports;D.install=function(e){e.component(D.name,D)};var P=D,z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleKeyEnter(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.close(t)}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,i){return n("li",{key:i,class:{highlighted:e.highlightedIndex===i},attrs:{id:e.id+"-item-"+i,role:"option","aria-selected":e.highlightedIndex===i},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n        "+e._s(t[e.valueKey])+"\n      ")],{item:t})],2)})),0)],1)},L=[];z._withStripped=!0;var B=n(17),F=n.n(B),R=n(10),$=n.n(R),N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])},j=[];N._withStripped=!0;var V=n(5),U=n.n(V),q=n(18),H=n.n(q),W={components:{ElScrollbar:H.a},mixins:[U.a,M.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,n){e.dropdownWidth=n+"px",e.showPopper=t}))}},G=W,Z=a(G,N,j,!1,null,null,null);Z.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var X=Z.exports,K=n(23),Y=n.n(K),J={name:"ElAutocomplete",mixins:[M.a,Y()("input"),E.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:m.a,ElAutocompleteSuggestions:X},directives:{Clickoutside:$.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions,t=Array.isArray(e)&&e.length>0;return(t||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(y["generateId"])()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,(function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(e.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1})))},select:function(e){var t=this;this.$emit("input",e[this.valueKey]),this.$emit("select",e),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1}))},highlight:function(e){if(this.suggestionVisible&&!this.loading)if(e<0)this.highlightedIndex=-1;else{e>=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=t.querySelectorAll(".el-autocomplete-suggestion__list li"),i=n[e],r=t.scrollTop,o=i.offsetTop;o+i.scrollHeight>r+t.clientHeight&&(t.scrollTop+=i.scrollHeight),o<r&&(t.scrollTop-=i.scrollHeight),this.highlightedIndex=e;var s=this.getInput();s.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var e=this;this.debouncedGetData=F()(this.debounce,this.getData),this.$on("item-click",(function(t){e.select(t)}));var t=this.getInput();t.setAttribute("role","textbox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls","id"),t.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},Q=J,ee=a(Q,z,L,!1,null,null,null);ee.options.__file="packages/autocomplete/src/autocomplete.vue";var te=ee.exports;te.install=function(e){e.component(te.name,te)};var ne,ie,re=te,oe=n(13),se=n.n(oe),ae=n(29),le=n.n(ae),ce={name:"ElDropdown",componentName:"ElDropdown",mixins:[M.a,E.a],directives:{Clickoutside:$.a},components:{ElButton:se.a,ElButtonGroup:le.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(y["generateId"])()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("ElDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!0}),"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,i=this.menuItemsArray.indexOf(n),r=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(t)>-1?(o=38===t?0!==i?i-1:0:i<r?i+1:r,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(t)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(e){e.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,i=this.hide,r=this.handleClick,o=this.splitButton,s=this.handleTriggerKeyDown,a=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",s),l.addEventListener("keydown",a,!0),o||(this.triggerElm.addEventListener("focus",(function(){e.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){e.focusing=!1})),this.triggerElm.addEventListener("click",(function(){e.focusing=!1}))),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",i),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",i)):"click"===t&&this.triggerElm.addEventListener("click",r)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,i=this.splitButton,r=this.type,o=this.dropdownSize,s=this.disabled,a=function(e){t.$emit("click",e),n()},l=null;if(i)l=e("el-button-group",[e("el-button",{attrs:{type:r,size:o,disabled:s},nativeOn:{click:a}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:r,size:o,disabled:s},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{l=this.$slots.default;var c=l[0].data||{},u=c.attrs,h=void 0===u?{}:u;s&&!h.disabled&&(h.disabled=!0,c.attrs=h)}var d=s?null:this.$slots.dropdown;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":s}},[l,d])}},ue=ce,he=a(ue,ne,ie,!1,null,null,null);he.options.__file="packages/dropdown/src/dropdown.vue";var de=he.exports;de.install=function(e){e.component(de.name,de)};var pe=de,fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[e.size&&"el-dropdown-menu--"+e.size]},[e._t("default")],2)])},me=[];fe._withStripped=!0;var ge={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[U.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",(function(){e.showPopper&&e.updatePopper()})),this.$on("visible",(function(t){e.showPopper=t}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},ve=ge,ye=a(ve,fe,me,!1,null,null,null);ye.options.__file="packages/dropdown/src/dropdown-menu.vue";var _e=ye.exports;_e.install=function(e){e.component(_e.name,_e)};var be=_e,xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)},we=[];xe._withStripped=!0;var Ce={name:"ElDropdownItem",mixins:[M.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},ke=Ce,Se=a(ke,xe,we,!1,null,null,null);Se.options.__file="packages/dropdown/src/dropdown-item.vue";var Ee=Se.exports;Ee.install=function(e){e.component(Ee.name,Ee)};var Te=Ee,Me=Me||{};Me.Utils=Me.Utils||{},Me.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(Me.Utils.attemptFocus(n)||Me.Utils.focusFirstDescendant(n))return!0}return!1},Me.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(Me.Utils.attemptFocus(n)||Me.Utils.focusLastDescendant(n))return!0}return!1},Me.Utils.attemptFocus=function(e){if(!Me.Utils.isFocusable(e))return!1;Me.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return Me.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},Me.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Me.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,o=Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return i.initEvent.apply(i,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on"+t,i),e},Me.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var Ae=Me.Utils,Oe=function(e,t){this.domNode=t,this.parent=e,this.subMenuItems=[],this.subIndex=0,this.init()};Oe.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},Oe.prototype.gotoSubIndex=function(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e},Oe.prototype.addListeners=function(){var e=this,t=Ae.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(function(i){i.addEventListener("keydown",(function(i){var r=!1;switch(i.keyCode){case t.down:e.gotoSubIndex(e.subIndex+1),r=!0;break;case t.up:e.gotoSubIndex(e.subIndex-1),r=!0;break;case t.tab:Ae.triggerEvent(n,"mouseleave");break;case t.enter:case t.space:r=!0,i.currentTarget.click();break}return r&&(i.preventDefault(),i.stopPropagation()),!1}))}))};var Ie=Oe,De=function(e){this.domNode=e,this.submenu=null,this.init()};De.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var e=this.domNode.querySelector(".el-menu");e&&(this.submenu=new Ie(this,e)),this.addListeners()},De.prototype.addListeners=function(){var e=this,t=Ae.keys;this.domNode.addEventListener("keydown",(function(n){var i=!1;switch(n.keyCode){case t.down:Ae.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(0),i=!0;break;case t.up:Ae.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(e.submenu.subMenuItems.length-1),i=!0;break;case t.tab:Ae.triggerEvent(n.currentTarget,"mouseleave");break;case t.enter:case t.space:i=!0,n.currentTarget.click();break}i&&n.preventDefault()}))};var Pe=De,ze=function(e){this.domNode=e,this.init()};ze.prototype.init=function(){var e=this.domNode.childNodes;[].filter.call(e,(function(e){return 1===e.nodeType})).forEach((function(e){new Pe(e)}))};var Le,Be,Fe=ze,Re=n(1),$e={name:"ElMenu",render:function(e){var t=e("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?e("el-menu-collapse-transition",[t]):t},componentName:"ElMenu",mixins:[M.a,E.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(e,t){var n={props:{mode:"out-in"},on:{beforeEnter:function(e){e.style.opacity=.2},enter:function(e){Object(Re["addClass"])(e,"el-opacity-transition"),e.style.opacity=1},afterEnter:function(e){Object(Re["removeClass"])(e,"el-opacity-transition"),e.style.opacity=""},beforeLeave:function(e){e.dataset||(e.dataset={}),Object(Re["hasClass"])(e,"el-menu--collapse")?(Object(Re["removeClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(Re["addClass"])(e,"el-menu--collapse")):(Object(Re["addClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(Re["removeClass"])(e,"el-menu--collapse")),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},leave:function(e){Object(Re["addClass"])(e,"horizontal-collapse-transition"),e.style.width=e.dataset.scrollWidth+"px"}}};return e("transition",n,t.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(e){this.items[e]||(this.activeIndex=null),this.updateActiveIndex(e)},defaultOpeneds:function(e){this.collapse||(this.openedMenus=e)},collapse:function(e){e&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",e)}},methods:{updateActiveIndex:function(e){var t=this.items[e]||this.items[this.activeIndex]||this.items[this.defaultActive];t?(this.activeIndex=t.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(e){if(e=e.replace("#",""),/^[0-9a-fA-F]{3}$/.test(e)){e=e.split("");for(var t=2;t>=0;t--)e.splice(t,0,e[t]);e=e.join("")}return/^[0-9a-fA-F]{6}$/.test(e)?{red:parseInt(e.slice(0,2),16),green:parseInt(e.slice(2,4),16),blue:parseInt(e.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(e,t){var n=this.getColorChannels(e),i=n.red,r=n.green,o=n.blue;return t>0?(i*=1-t,r*=1-t,o*=1-t):(i+=(255-i)*t,r+=(255-r)*t,o+=(255-o)*t),"rgb("+Math.round(i)+", "+Math.round(r)+", "+Math.round(o)+")"},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},openMenu:function(e,t){var n=this.openedMenus;-1===n.indexOf(e)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(e){return-1!==t.indexOf(e)}))),this.openedMenus.push(e))},closeMenu:function(e){var t=this.openedMenus.indexOf(e);-1!==t&&this.openedMenus.splice(t,1)},handleSubmenuClick:function(e){var t=e.index,n=e.indexPath,i=-1!==this.openedMenus.indexOf(t);i?(this.closeMenu(t),this.$emit("close",t,n)):(this.openMenu(t,n),this.$emit("open",t,n))},handleItemClick:function(e){var t=this,n=e.index,i=e.indexPath,r=this.activeIndex,o=null!==e.index;o&&(this.activeIndex=e.index),this.$emit("select",n,i,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(e,(function(e){if(t.activeIndex=r,e){if("NavigationDuplicated"===e.name)return;console.error(e)}}))},initOpenedMenu:function(){var e=this,t=this.activeIndex,n=this.items[t];if(n&&"horizontal"!==this.mode&&!this.collapse){var i=n.indexPath;i.forEach((function(t){var n=e.submenus[t];n&&e.openMenu(t,n.indexPath)}))}},routeToItem:function(e,t){var n=e.route||e.index;try{this.$router.push(n,(function(){}),t)}catch(i){console.error(i)}},open:function(e){var t=this,n=this.submenus[e.toString()].indexPath;n.forEach((function(e){return t.openMenu(e,n)}))},close:function(e){this.closeMenu(e)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new Fe(this.$el),this.$watch("items",this.updateActiveIndex)}},Ne=$e,je=a(Ne,Le,Be,!1,null,null,null);je.options.__file="packages/menu/src/menu.vue";var Ve=je.exports;Ve.install=function(e){e.component(Ve.name,Ve)};var Ue,qe,He=Ve,We=n(21),Ge=n.n(We),Ze={inject:["rootMenu"],computed:{indexPath:function(){var e=[this.index],t=this.$parent;while("ElMenu"!==t.$options.componentName)t.index&&e.unshift(t.index),t=t.$parent;return e},parentMenu:function(){var e=this.$parent;while(e&&-1===["ElMenu","ElSubmenu"].indexOf(e.$options.componentName))e=e.$parent;return e},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var e=20,t=this.$parent;if(this.rootMenu.collapse)e=20;else while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return{paddingLeft:e+"px"}}}},Xe={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:U.a.props.offset,boundariesPadding:U.a.props.boundariesPadding,popperOptions:U.a.props.popperOptions},data:U.a.data,methods:U.a.methods,beforeDestroy:U.a.beforeDestroy,deactivated:U.a.deactivated},Ke={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[Ze,M.a,Xe],components:{ElCollapseTransition:Ge.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(e){var t=this;this.isMenuPopup&&this.$nextTick((function(e){t.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var e=!1,t=this.submenus,n=this.items;return Object.keys(n).forEach((function(t){n[t].active&&(e=!0)})),Object.keys(t).forEach((function(n){t[n].active&&(e=!0)})),e},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){var e=!0,t=this.$parent;while(t&&t!==this.rootMenu){if(["ElSubmenu","ElMenuItemGroup"].indexOf(t.$options.componentName)>-1){e=!1;break}t=t.$parent}return e}},methods:{handleCollapseToggle:function(e){e?this.initPopper():this.doDestroy()},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},handleClick:function(){var e=this.rootMenu,t=this.disabled;"hover"===e.menuTrigger&&"horizontal"===e.mode||e.collapse&&"vertical"===e.mode||t||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==e.type||e.relatedTarget){var i=this.rootMenu,r=this.disabled;"click"===i.menuTrigger&&"horizontal"===i.mode||!i.collapse&&"vertical"===i.mode||r||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.rootMenu.openMenu(t.index,t.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!e.mouseInChild&&e.rootMenu.closeMenu(e.index)}),this.hideTimeout),this.appendToBody&&t&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var e=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",(function(){e.mouseInChild=!0,clearTimeout(e.timeout)})),this.$on("mouse-leave-child",(function(){e.mouseInChild=!1,clearTimeout(e.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(e){var t=this,n=this.active,i=this.opened,r=this.paddingStyle,o=this.titleStyle,s=this.backgroundColor,a=this.rootMenu,l=this.currentPlacement,c=this.menuTransitionName,u=this.mode,h=this.disabled,d=this.popperClass,p=this.$slots,f=this.isFirstLevel,m=e("transition",{attrs:{name:c}},[e("div",{ref:"menu",directives:[{name:"show",value:i}],class:["el-menu--"+u,d],on:{mouseenter:function(e){return t.handleMouseenter(e,100)},mouseleave:function(){return t.handleMouseleave(!0)},focus:function(e){return t.handleMouseenter(e,100)}}},[e("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+l],style:{backgroundColor:a.backgroundColor||""}},[p.default])])]),g=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:i}],style:{backgroundColor:a.backgroundColor||""}},[p.default])]),v="horizontal"===a.mode&&f||"vertical"===a.mode&&!a.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":i,"is-disabled":h},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":i},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return t.handleMouseleave(!1)},focus:this.handleMouseenter}},[e("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[r,o,{backgroundColor:s}]},[p.title,e("i",{class:["el-submenu__icon-arrow",v]})]),this.isMenuPopup?m:g])}},Ye=Ke,Je=a(Ye,Ue,qe,!1,null,null,null);Je.options.__file="packages/menu/src/submenu.vue";var Qe=Je.exports;Qe.install=function(e){e.component(Qe.name,Qe)};var et=Qe,tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item",class:{"is-active":e.active,"is-disabled":e.disabled},style:[e.paddingStyle,e.itemStyle,{backgroundColor:e.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:e.handleClick,mouseenter:e.onMouseEnter,focus:e.onMouseEnter,blur:e.onMouseLeave,mouseleave:e.onMouseLeave}},["ElMenu"===e.parentMenu.$options.componentName&&e.rootMenu.collapse&&e.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[e._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[e._t("default")],2)]):[e._t("default"),e._t("title")]],2)},nt=[];tt._withStripped=!0;var it=n(26),rt=n.n(it),ot={name:"ElMenuItem",componentName:"ElMenuItem",mixins:[Ze,M.a],components:{ElTooltip:rt.a},props:{index:{default:null,validator:function(e){return"string"===typeof e||null===e}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var e={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(e.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),e},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},st=ot,at=a(st,tt,nt,!1,null,null,null);at.options.__file="packages/menu/src/menu-item.vue";var lt=at.exports;lt.install=function(e){e.component(lt.name,lt)};var ct=lt,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item-group"},[n("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:e.levelPadding+"px"}},[e.$slots.title?e._t("title"):[e._v(e._s(e.title))]],2),n("ul",[e._t("default")],2)])},ht=[];ut._withStripped=!0;var dt={name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var e=20,t=this.$parent;if(this.rootMenu.collapse)return 20;while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return e}}},pt=dt,ft=a(pt,ut,ht,!1,null,null,null);ft.options.__file="packages/menu/src/menu-item-group.vue";var mt=ft.exports;mt.install=function(e){e.component(mt.name,mt)};var gt=mt,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n            "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n          ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},yt=[];vt._withStripped=!0;var _t=void 0,bt="\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important\n",xt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function wt(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=xt.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:i,borderSize:r,boxSizing:n}}function Ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;_t||(_t=document.createElement("textarea"),document.body.appendChild(_t));var i=wt(e),r=i.paddingSize,o=i.borderSize,s=i.boxSizing,a=i.contextStyle;_t.setAttribute("style",a+";"+bt),_t.value=e.value||e.placeholder||"";var l=_t.scrollHeight,c={};"border-box"===s?l+=o:"content-box"===s&&(l-=r),_t.value="";var u=_t.scrollHeight-r;if(null!==t){var h=u*t;"border-box"===s&&(h=h+r+o),l=Math.max(h,l),c.minHeight=h+"px"}if(null!==n){var d=u*n;"border-box"===s&&(d=d+r+o),l=Math.min(d,l)}return c.height=l+"px",_t.parentNode&&_t.parentNode.removeChild(_t),_t=null,c}var kt=n(7),St=n.n(kt),Et=n(19),Tt={name:"ElInput",componentName:"ElInput",mixins:[M.a,E.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return St()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=Ct(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:Ct(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(Et["isKorean"])(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"},o=r[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},Mt=Tt,At=a(Mt,vt,yt,!1,null,null,null);At.options.__file="packages/input/src/input.vue";var Ot=At.exports;Ot.install=function(e){e.component(Ot.name,Ot)};var It=Ot,Dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},Pt=[];Dt._withStripped=!0;var zt={bind:function(e,t,n){var i=null,r=void 0,o=Object(y["isMac"])()?100:200,s=function(){return n.context[t.expression].apply()},a=function(){Date.now()-r<o&&s(),clearInterval(i),i=null};Object(Re["on"])(e,"mousedown",(function(e){0===e.button&&(r=Date.now(),Object(Re["once"])(document,"mouseup",a),clearInterval(i),i=setInterval(s,o))}))}},Lt={name:"ElInputNumber",mixins:[Y()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:zt},components:{ElInput:m.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),i=0;return-1!==n&&(i=t.length-n-1),i},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},Bt=Lt,Ft=a(Bt,Dt,Pt,!1,null,null,null);Ft.options.__file="packages/input-number/src/input-number.vue";var Rt=Ft.exports;Rt.install=function(e){e.component(Rt.name,Rt)};var $t=Rt,Nt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},jt=[];Nt._withStripped=!0;var Vt={name:"ElRadio",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},Ut=Vt,qt=a(Ut,Nt,jt,!1,null,null,null);qt.options.__file="packages/radio/src/radio.vue";var Ht=qt.exports;Ht.install=function(e){e.component(Ht.name,Ht)};var Wt=Ht,Gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:e.handleKeydown}},[e._t("default")],2)},Zt=[];Gt._withStripped=!0;var Xt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),Kt={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[M.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){var e=(this.$vnode.data||{}).tag;return e&&"component"!==e||(e="div"),e},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",(function(t){e.$emit("change",t)}))},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,(function(e){return e.checked}))&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",i=this.$el.querySelectorAll(n),r=i.length,o=[].indexOf.call(i,t),s=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case Xt.LEFT:case Xt.UP:e.stopPropagation(),e.preventDefault(),0===o?(s[r-1].click(),s[r-1].focus()):(s[o-1].click(),s[o-1].focus());break;case Xt.RIGHT:case Xt.DOWN:o===r-1?(e.stopPropagation(),e.preventDefault(),s[0].click(),s[0].focus()):(s[o+1].click(),s[o+1].focus());break;default:break}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},Yt=Kt,Jt=a(Yt,Gt,Zt,!1,null,null,null);Jt.options.__file="packages/radio/src/radio-group.vue";var Qt=Jt.exports;Qt.install=function(e){e.component(Qt.name,Qt)};var en=Qt,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio-button",class:[e.size?"el-radio-button--"+e.size:"",{"is-active":e.value===e.label},{"is-disabled":e.isDisabled},{"is-focus":e.focus}],attrs:{role:"radio","aria-checked":e.value===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.value=e.isDisabled?e.value:e.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.value,e.label)},on:{change:[function(t){e.value=e.label},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:e.value===e.label?e.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},nn=[];tn._withStripped=!0;var rn={name:"ElRadioButton",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(e){this._radioGroup.$emit("input",e)}},_radioGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return e;e=e.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.dispatch("ElRadioGroup","handleChange",e.value)}))}}},on=rn,sn=a(on,tn,nn,!1,null,null,null);sn.options.__file="packages/radio/src/radio-button.vue";var an=sn.exports;an.install=function(e){e.component(an.name,an)};var ln=an,cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,s=e._i(n,o);i.checked?s<0&&(e.model=n.concat([o])):s>-1&&(e.model=n.slice(0,s).concat(n.slice(s+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,s=e._i(n,o);i.checked?s<0&&(e.model=n.concat([o])):s>-1&&(e.model=n.slice(0,s).concat(n.slice(s+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},un=[];cn._withStripped=!0;var hn={name:"ElCheckbox",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},dn=hn,pn=a(dn,cn,un,!1,null,null,null);pn.options.__file="packages/checkbox/src/checkbox.vue";var fn=pn.exports;fn.install=function(e){e.component(fn.name,fn)};var mn=fn,gn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox-button",class:[e.size?"el-checkbox-button--"+e.size:"",{"is-disabled":e.isDisabled},{"is-checked":e.isChecked},{"is-focus":e.focus}],attrs:{role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled}},[e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,s=e._i(n,o);i.checked?s<0&&(e.model=n.concat([o])):s>-1&&(e.model=n.slice(0,s).concat(n.slice(s+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,s=e._i(n,o);i.checked?s<0&&(e.model=n.concat([o])):s>-1&&(e.model=n.slice(0,s).concat(n.slice(s+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox-button__inner",style:e.isChecked?e.activeStyle:null},[e._t("default",[e._v(e._s(e.label))])],2):e._e()])},vn=[];gn._withStripped=!0;var yn={name:"ElCheckboxButton",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return e;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t._checkboxGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},_n=yn,bn=a(_n,gn,vn,!1,null,null,null);bn.options.__file="packages/checkbox/src/checkbox-button.vue";var xn=bn.exports;xn.install=function(e){e.component(xn.name,xn)};var wn=xn,Cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},kn=[];Cn._withStripped=!0;var Sn={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[M.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},En=Sn,Tn=a(En,Cn,kn,!1,null,null,null);Tn.options.__file="packages/checkbox/src/checkbox-group.vue";var Mn=Tn.exports;Mn.install=function(e){e.component(Mn.name,Mn)};var An=Mn,On=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-switch",class:{"is-disabled":e.switchDisabled,"is-checked":e.checked},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled},on:{click:function(t){return t.preventDefault(),e.switchValue(t)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:e.id,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled},on:{change:e.handleChange,keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.switchValue(t)}}}),e.inactiveIconClass||e.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",e.checked?"":"is-active"]},[e.inactiveIconClass?n("i",{class:[e.inactiveIconClass]}):e._e(),!e.inactiveIconClass&&e.inactiveText?n("span",{attrs:{"aria-hidden":e.checked}},[e._v(e._s(e.inactiveText))]):e._e()]):e._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:e.coreWidth+"px"}}),e.activeIconClass||e.activeText?n("span",{class:["el-switch__label","el-switch__label--right",e.checked?"is-active":""]},[e.activeIconClass?n("i",{class:[e.activeIconClass]}):e._e(),!e.activeIconClass&&e.activeText?n("span",{attrs:{"aria-hidden":!e.checked}},[e._v(e._s(e.activeText))]):e._e()]):e._e()])},In=[];On._withStripped=!0;var Dn={name:"ElSwitch",mixins:[Y()("input"),E.a,M.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(e){var t=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick((function(){t.$refs.input&&(t.$refs.input.checked=t.checked)}))},setBackgroundColor:function(){var e=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=e,this.$refs.core.style.backgroundColor=e},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},Pn=Dn,zn=a(Pn,On,In,!1,null,null,null);zn.options.__file="packages/switch/src/component.vue";var Ln=zn.exports;Ln.install=function(e){e.component(Ln.name,Ln)};var Bn=Ln,Fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n          "+e._s(e.emptyText)+"\n        ")])]:e._e()],2)],1)],1)},Rn=[];Fn._withStripped=!0;var $n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},Nn=[];$n._withStripped=!0;var jn={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[U.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},Vn=jn,Un=a(Vn,$n,Nn,!1,null,null,null);Un.options.__file="packages/select/src/select-dropdown.vue";var qn=Un.exports,Hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},Wn=[];Hn._withStripped=!0;var Gn="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},Zn={mixins:[M.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":Gn(e))&&"object"===("undefined"===typeof t?"undefined":Gn(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(y["getValueByPath"])(e,n)===Object(y["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(y["getValueByPath"])(e,n)===Object(y["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(y["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Xn=Zn,Kn=a(Xn,Hn,Wn,!1,null,null,null);Kn.options.__file="packages/select/src/option.vue";var Yn=Kn.exports,Jn=n(30),Qn=n.n(Jn),ei=n(15),ti=n(27),ni=n.n(ti),ii={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},ri={mixins:[M.a,v.a,Y()("reference"),ii],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(y["isIE"])()&&!Object(y["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:m.a,ElSelectMenu:qn,ElOption:Yn,ElTag:Qn.a,ElScrollbar:H.a},directives:{Clickoutside:$.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(y["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(e){this.isOnComposition||this.navigateOptions(e)},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(Et["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");ni()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(y["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var s=this.cachedOptions[o],a=n?Object(y["getValueByPath"])(s.value,this.valueKey)===Object(y["getValueByPath"])(e,this.valueKey):s.value===e;if(a){t=s;break}}if(t)return t;var l=n||i||r?"":String(e),c={value:e,currentLabel:l};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=i?Math.round(i.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(i?r+(r>o?6:0):0,o)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length<this.multipleLimit)&&i.push(e.value),this.$emit("input",i),this.emitChange(i),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(y["getValueByPath"])(e,i)===Object(y["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(y["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=F()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=F()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(ei["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(ei["removeResizeListener"])(this.$el,this.handleResize)}},oi=ri,si=a(oi,Fn,Rn,!1,null,null,null);si.options.__file="packages/select/src/select.vue";var ai=si.exports;ai.install=function(e){e.component(ai.name,ai)};var li=ai;Yn.install=function(e){e.component(Yn.name,Yn)};var ci=Yn,ui=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[e._v(e._s(e.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[e._t("default")],2)])])},hi=[];ui._withStripped=!0;var di={mixins:[M.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(e){return!0===e.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},pi=di,fi=a(pi,ui,hi,!1,null,null,null);fi.options.__file="packages/select/src/option-group.vue";var mi=fi.exports;mi.install=function(e){e.component(mi.name,mi)};var gi=mi,vi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},yi=[];vi._withStripped=!0;var _i={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},bi=_i,xi=a(bi,vi,yi,!1,null,null,null);xi.options.__file="packages/button/src/button.vue";var wi=xi.exports;wi.install=function(e){e.component(wi.name,wi)};var Ci=wi,ki=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},Si=[];ki._withStripped=!0;var Ei={name:"ElButtonGroup"},Ti=Ei,Mi=a(Ti,ki,Si,!1,null,null,null);Mi.options.__file="packages/button/src/button-group.vue";var Ai=Mi.exports;Ai.install=function(e){e.component(Ai.name,Ai)};var Oi=Ai,Ii=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-table",class:[{"el-table--fit":e.fit,"el-table--striped":e.stripe,"el-table--border":e.border||e.isGroup,"el-table--hidden":e.isHidden,"el-table--group":e.isGroup,"el-table--fluid-height":e.maxHeight,"el-table--scrollable-x":e.layout.scrollX,"el-table--scrollable-y":e.layout.scrollY,"el-table--enable-row-hover":!e.store.states.isComplex,"el-table--enable-row-transition":0!==(e.store.states.data||[]).length&&(e.store.states.data||[]).length<100},e.tableSize?"el-table--"+e.tableSize:""],on:{mouseleave:function(t){e.handleMouseLeave(t)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[e._t("default")],2),e.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})],1):e._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[e.layout.scrollX?"is-scrolling-"+e.scrollPosition:"is-scrolling-none"],style:[e.bodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{context:e.context,store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.data&&0!==e.data.length?e._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:e.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[e._t("empty",[e._v(e._s(e.emptyText||e.t("el.table.emptyText")))])],2)]),e.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[e._t("append")],2):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),e.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:e.layout.fixedWidth?e.layout.fixedWidth+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"left",store:e.store,stripe:e.stripe,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"row-style":e.rowStyle}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:e.layout.rightFixedWidth?e.layout.rightFixedWidth+"px":"",right:e.layout.scrollY?(e.border?e.layout.gutterWidth:e.layout.gutterWidth||0)+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"right",store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:e.layout.scrollY?e.layout.gutterWidth+"px":"0",height:e.layout.headerHeight+"px"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},Di=[];Ii._withStripped=!0;var Pi=n(14),zi=n.n(Pi),Li=n(36),Bi=n(39),Fi=n.n(Bi),Ri="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,$i=function(e,t){e&&e.addEventListener&&e.addEventListener(Ri?"DOMMouseScroll":"mousewheel",(function(e){var n=Fi()(e);t&&t.apply(this,[e,n])}))},Ni={bind:function(e,t){$i(e,t.value)}},ji=n(6),Vi=n.n(ji),Ui="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},qi=function(e){var t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},Hi=function(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":Ui(e))},Wi=function(e,t,n,i,r){if(!t&&!i&&(!r||Array.isArray(r)&&!r.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=i?null:function(n,i){return r?(Array.isArray(r)||(r=[r]),r.map((function(t){return"string"===typeof t?Object(y["getValueByPath"])(n,t):t(n,i,e)}))):("$key"!==t&&Hi(n)&&"$value"in n&&(n=n.$value),[Hi(n)?Object(y["getValueByPath"])(n,t):n])},s=function(e,t){if(i)return i(e.value,t.value);for(var n=0,r=e.key.length;n<r;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0};return e.map((function(e,t){return{value:e,index:t,key:o?o(e,t):null}})).sort((function(e,t){var i=s(e,t);return i||(i=e.index-t.index),i*n})).map((function(e){return e.value}))},Gi=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},Zi=function(e,t){for(var n=null,i=0;i<e.columns.length;i++){var r=e.columns[i];if(r.columnKey===t){n=r;break}}return n},Xi=function(e,t){var n=(t.className||"").match(/el-table_[^\s]+/gm);return n?Gi(e,n[0]):null},Ki=function(e,t){if(!e)throw new Error("row is required when get row identity");if("string"===typeof t){if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),i=e,r=0;r<n.length;r++)i=i[n[r]];return i}if("function"===typeof t)return t.call(null,e)},Yi=function(e,t){var n={};return(e||[]).forEach((function(e,i){n[Ki(e,t)]={row:e,index:i}})),n};function Ji(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qi(e,t){var n={},i=void 0;for(i in e)n[i]=e[i];for(i in t)if(Ji(t,i)){var r=t[i];"undefined"!==typeof r&&(n[i]=r)}return n}function er(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function tr(e){return"undefined"!==typeof e&&(e=er(e),isNaN(e)&&(e=80)),e}function nr(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function ir(){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))}}))}function rr(e,t,n){var i=!1,r=e.indexOf(t),o=-1!==r,s=function(){e.push(t),i=!0},a=function(){e.splice(r,1),i=!0};return"boolean"===typeof n?n&&!o?s():!n&&o&&a():o?a():s(),i}function or(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",r=function(e){return!(Array.isArray(e)&&e.length)};function o(e,s,a){t(e,s,a),s.forEach((function(e){if(e[i])t(e,null,a+1);else{var s=e[n];r(s)||o(e,s,a+1)}}))}e.forEach((function(e){if(e[i])t(e,null,0);else{var s=e[n];r(s)||o(e,s,0)}}))}var sr=function(e,t){var n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(e[o]!==t[o])return!1}return!0},ar={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.rowKey,r=e.defaultExpandAll,o=e.expandRows;if(r)this.states.expandRows=n.slice();else if(i){var s=Yi(o,i);this.states.expandRows=n.reduce((function(e,t){var n=Ki(t,i),r=s[n];return r&&e.push(t),e}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){var n=rr(this.states.expandRows,e,t);n&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,n=t.data,i=t.rowKey,r=Yi(n,i);this.states.expandRows=e.reduce((function(e,t){var n=r[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,i=void 0===n?[]:n,r=t.rowKey;if(r){var o=Yi(i,r);return!!o[Ki(e,r)]}return-1!==i.indexOf(e)}}},lr={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(e){var t=this.states,n=t.data,i=void 0===n?[]:n,r=t.rowKey,o=null;r&&(o=Object(y["arrayFind"])(i,(function(t){return Ki(t,r)===e}))),t.currentRow=o},updateCurrentRow:function(e){var t=this.states,n=this.table,i=t.currentRow;if(e&&e!==i)return t.currentRow=e,void n.$emit("current-change",e,i);!e&&i&&(t.currentRow=null,n.$emit("current-change",null,i))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,i=e._currentRowKey,r=e.data||[],o=e.currentRow;if(-1===r.indexOf(o)&&o){if(n){var s=Ki(o,n);this.setCurrentRowByKey(s)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,o)}else i&&(this.setCurrentRowByKey(i),this.restoreCurrentRowKey())}}},cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ur={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var e=this.states.data||[];return this.normalize(e)},normalizedLazyNode:function(){var e=this.states,t=e.rowKey,n=e.lazyTreeNodeMap,i=e.lazyColumnIdentifier,r=Object.keys(n),o={};return r.length?(r.forEach((function(e){if(n[e].length){var r={children:[]};n[e].forEach((function(e){var n=Ki(e,t);r.children.push(n),e[i]&&!o[n]&&(o[n]={children:[]})})),o[e]=r}})),o):o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(e){var t=this.states,n=t.childrenColumnName,i=t.lazyColumnIdentifier,r=t.rowKey,o=t.lazy,s={};return or(e,(function(e,t,n){var i=Ki(e,r);Array.isArray(t)?s[i]={children:t.map((function(e){return Ki(e,r)})),level:n}:o&&(s[i]={children:[],lazy:!0,level:n})}),n,i),s},updateTreeData:function(){var e=this.normalizedData,t=this.normalizedLazyNode,n=Object.keys(e),i={};if(n.length){var r=this.states,o=r.treeData,s=r.defaultExpandAll,a=r.expandRowKeys,l=r.lazy,c=[],u=function(e,t){var n=s||a&&-1!==a.indexOf(t);return!!(e&&e.expanded||n)};n.forEach((function(t){var n=o[t],r=cr({},e[t]);if(r.expanded=u(n,t),r.lazy){var s=n||{},a=s.loaded,l=void 0!==a&&a,h=s.loading,d=void 0!==h&&h;r.loaded=!!l,r.loading=!!d,c.push(t)}i[t]=r}));var h=Object.keys(t);l&&h.length&&c.length&&h.forEach((function(e){var n=o[e],r=t[e].children;if(-1!==c.indexOf(e)){if(0!==i[e].children.length)throw new Error("[ElTable]children must be an empty array.");i[e].children=r}else{var s=n||{},a=s.loaded,l=void 0!==a&&a,h=s.loading,d=void 0!==h&&h;i[e]={lazy:!0,loaded:!!l,loading:!!d,expanded:u(n,e),children:r,level:""}}}))}this.states.treeData=i,this.updateTableScrollY()},updateTreeExpandKeys:function(e){this.states.expandRowKeys=e,this.updateTreeData()},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,i=n.rowKey,r=n.treeData,o=Ki(e,i),s=o&&r[o];if(o&&s&&"expanded"in s){var a=s.expanded;t="undefined"===typeof t?!s.expanded:t,r[o].expanded=t,a!==t&&this.table.$emit("expand-change",e,t),this.updateTableScrollY()}},loadOrToggle:function(e){this.assertRowKey();var t=this.states,n=t.lazy,i=t.treeData,r=t.rowKey,o=Ki(e,r),s=i[o];n&&s&&"loaded"in s&&!s.loaded?this.loadData(e,o,s):this.toggleTreeExpansion(e)},loadData:function(e,t,n){var i=this,r=this.table.load,o=this.states.treeData;r&&!o[t].loaded&&(o[t].loading=!0,r(e,n,(function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var r=i.states,o=r.lazyTreeNodeMap,s=r.treeData;s[t].loading=!1,s[t].loaded=!0,s[t].expanded=!0,n.length&&i.$set(o,t,n),i.table.$emit("expand-change",e,!0)})))}}},hr=function(e,t){var n=t.sortingColumn;return n&&"string"!==typeof n.sortable?Wi(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},dr=function e(t){var n=[];return t.forEach((function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)})),n},pr=Vi.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[ar,lr,ur],methods:{assertRowKey:function(){var e=this.states.rowKey;if(!e)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var e=this.states,t=e._columns||[];e.fixedColumns=t.filter((function(e){return!0===e.fixed||"left"===e.fixed})),e.rightFixedColumns=t.filter((function(e){return"right"===e.fixed})),e.fixedColumns.length>0&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter((function(e){return!e.fixed}));e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var i=dr(n),r=dr(e.fixedColumns),o=dr(e.rightFixedColumns);e.leafColumnsLength=i.length,e.fixedLeafColumnsLength=r.length,e.rightFixedLeafColumnsLength=o.length,e.columns=[].concat(r).concat(i).concat(o),e.isComplex=e.fixedColumns.length>0||e.rightFixedColumns.length>0},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection,n=void 0===t?[]:t;return n.indexOf(e)>-1},clearSelection:function(){var e=this.states;e.isAllSelected=!1;var t=e.selection;t.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,t=e.data,n=e.rowKey,i=e.selection,r=void 0;if(n){r=[];var o=Yi(i,n),s=Yi(t,n);for(var a in o)o.hasOwnProperty(a)&&!s[a]&&r.push(o[a].row)}else r=i.filter((function(e){return-1===t.indexOf(e)}));if(r.length){var l=i.filter((function(e){return-1===r.indexOf(e)}));e.selection=l,this.table.$emit("selection-change",l.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=rr(this.states.selection,e,t);if(i){var r=(this.states.selection||[]).slice();n&&this.table.$emit("select",r,e),this.table.$emit("selection-change",r)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.selection,r=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||i.length);e.isAllSelected=r;var o=!1;n.forEach((function(t,n){e.selectable?e.selectable.call(null,t,n)&&rr(i,t,r)&&(o=!0):rr(i,t,r)&&(o=!0)})),o&&this.table.$emit("selection-change",i?i.slice():[]),this.table.$emit("select-all",i)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.data,r=Yi(t,n);i.forEach((function(e){var i=Ki(e,n),o=r[i];o&&(t[o.index]=e)}))},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.selectable,r=e.data||[];if(0!==r.length){var o=void 0;n&&(o=Yi(t,n));for(var s=function(e){return o?!!o[Ki(e,n)]:-1!==t.indexOf(e)},a=!0,l=0,c=0,u=r.length;c<u;c++){var h=r[c],d=i&&i.call(null,h,c);if(s(h))l++;else if(!i||d){a=!1;break}}0===l&&(a=!1),e.isAllSelected=a}else e.isAllSelected=!1},updateFilters:function(e,t){Array.isArray(e)||(e=[e]);var n=this.states,i={};return e.forEach((function(e){n.filters[e.id]=t,i[e.columnKey||e.id]=t})),i},updateSort:function(e,t,n){this.states.sortingColumn&&this.states.sortingColumn!==e&&(this.states.sortingColumn.order=null),this.states.sortingColumn=e,this.states.sortProp=t,this.states.sortOrder=n},execFilter:function(){var e=this,t=this.states,n=t._data,i=t.filters,r=n;Object.keys(i).forEach((function(n){var i=t.filters[n];if(i&&0!==i.length){var o=Gi(e.states,n);o&&o.filterMethod&&(r=r.filter((function(e){return i.some((function(t){return o.filterMethod.call(null,t,e,o)}))})))}})),t.filteredData=r},execSort:function(){var e=this.states;e.data=hr(e.filteredData,e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,i=n.tableHeader,r=n.fixedTableHeader,o=n.rightFixedTableHeader,s={};i&&(s=St()(s,i.filterPanels)),r&&(s=St()(s,r.filterPanels)),o&&(s=St()(s,o.filterPanels));var a=Object.keys(s);if(a.length)if("string"===typeof e&&(e=[e]),Array.isArray(e)){var l=e.map((function(e){return Zi(t,e)}));a.forEach((function(e){var t=l.find((function(t){return t.id===e}));t&&(s[e].filteredValue=[])})),this.commit("filterChange",{column:l,values:[],silent:!0,multi:!0})}else a.forEach((function(e){s[e].filteredValue=[]})),t.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){var e=this.states;e.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(e){this.setExpandRowKeys(e),this.updateTreeExpandKeys(e)},toggleRowExpansionAdapter:function(e,t){var n=this.states.columns.some((function(e){var t=e.type;return"expand"===t}));n?this.toggleRowExpansion(e,t):this.toggleTreeExpansion(e,t)}}});pr.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),e.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(e,t,n,i){var r=e._columns;i&&(r=i.children,r||(r=i.children=[])),"undefined"!==typeof n?r.splice(n,0,t):r.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(e,t,n){var i=e._columns;n&&(i=n.children,i||(i=n.children=[])),i&&i.splice(i.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,i=t.order,r=t.init;if(n){var o=Object(y["arrayFind"])(e.columns,(function(e){return e.property===n}));o&&(o.order=i,this.updateSort(o,n,i),this.commit("changeSortCondition",{init:r}))}},changeSortCondition:function(e,t){var n=e.sortingColumn,i=e.sortProp,r=e.sortOrder;null===r&&(e.sortingColumn=null,e.sortProp=null);var o={filter:!0};this.execQuery(o),t&&(t.silent||t.init)||this.table.$emit("sort-change",{column:n,prop:i,order:r}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,i=t.values,r=t.silent,o=this.updateFilters(n,i);this.execQuery(),r||this.table.$emit("filter-change",o),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(e,t){this.toggleRowSelection(t),this.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow=t},setCurrentRow:function(e,t){this.updateCurrentRow(t)}},pr.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t[e].apply(this,[this.states].concat(i))},pr.prototype.updateTableScrollY=function(){Vi.a.nextTick(this.table.updateScrollY)};var fr=pr;function mr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new fr;return n.table=e,n.toggleAllSelection=F()(10,n._toggleAllSelection),Object.keys(t).forEach((function(e){n.states[e]=t[e]})),n}function gr(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n],r=void 0;"string"===typeof i?r=function(){return this.store.states[i]}:"function"===typeof i?r=function(){return i.call(this,this.store.states)}:console.error("invalid value type"),r&&(t[n]=r)})),t}var vr=n(31),yr=n.n(vr);function _r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var br=function(){function e(t){for(var n in _r(this,e),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=yr()(),t)t.hasOwnProperty(n)&&(this[n]=t[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return e.prototype.updateScrollY=function(){var e=this.height;if(null===e)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var n=t.querySelector(".el-table__body"),i=this.scrollY,r=n.offsetHeight>this.bodyHeight;return this.scrollY=r,i!==r}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!Vi.a.prototype.$isServer){var i=this.table.$el;if(e=nr(e),this.height=e,!i&&(e||0===e))return Vi.a.nextTick((function(){return t.setHeight(e,n)}));"number"===typeof e?(i.style[n]=e+"px",this.updateElsHeight()):"string"===typeof e&&(i.style[n]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[],t=this.table.columns;return t.forEach((function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return Vi.a.nextTick((function(){return e.updateElsHeight()}));var t=this.table.$refs,n=t.headerWrapper,i=t.appendWrapper,r=t.footerWrapper;if(this.appendHeight=i?i.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,s=this.headerDisplayNone(o),a=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!s&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&a<2)return Vi.a.nextTick((function(){return e.updateElsHeight()}));var l=this.tableHeight=this.table.$el.clientHeight,c=this.footerHeight=r?r.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-a-c+(r?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var u=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?l-(u?0:this.gutterWidth):l,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.headerDisplayNone=function(e){if(!e)return!0;var t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(!Vi.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,i=this.getFlattenColumns(),r=i.filter((function(e){return"number"!==typeof e.width}));if(i.forEach((function(e){"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),r.length>0&&e){i.forEach((function(e){n+=e.width||e.minWidth||80}));var o=this.scrollY?this.gutterWidth:0;if(n<=t-o){this.scrollX=!1;var s=t-o-n;if(1===r.length)r[0].realWidth=(r[0].minWidth||80)+s;else{var a=r.reduce((function(e,t){return e+(t.minWidth||80)}),0),l=s/a,c=0;r.forEach((function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*l);c+=n,e.realWidth=(e.minWidth||80)+n}})),r[0].realWidth=(r[0].minWidth||80)+s-c}}else this.scrollX=!0,r.forEach((function(e){e.realWidth=e.minWidth}));this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else i.forEach((function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,n+=e.realWidth})),this.scrollX=n>t,this.bodyWidth=n;var u=this.store.states.fixedColumns;if(u.length>0){var h=0;u.forEach((function(e){h+=e.realWidth||e.width})),this.fixedWidth=h}var d=this.store.states.rightFixedColumns;if(d.length>0){var p=0;d.forEach((function(e){p+=e.realWidth||e.width})),this.rightFixedWidth=p}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)},e.prototype.notifyObservers=function(e){var t=this,n=this.observers;n.forEach((function(n){switch(e){case"columns":n.onColumnsChange(t);break;case"scrollable":n.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event "+e+".")}}))},e}(),xr=br,wr={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!e&&this.table&&(e=this.table.layout),!e)throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var n=e.getFlattenColumns(),i={};n.forEach((function(e){i[e.id]=e}));for(var r=0,o=t.length;r<o;r++){var s=t[r],a=s.getAttribute("name"),l=i[a];l&&s.setAttribute("width",l.realWidth||l.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,i=t.length;n<i;n++){var r=t[n];r.setAttribute("width",e.scrollY?e.gutterWidth:"0")}for(var o=this.$el.querySelectorAll("th.gutter"),s=0,a=o.length;s<a;s++){var l=o[s];l.style.width=e.scrollY?e.gutterWidth+"px":"0",l.style.display=e.scrollY?"":"none"}}}},Cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kr={name:"ElTableRow",props:["columns","row","index","isSelected","isExpanded","store","context","firstDefaultColumnIndex","treeRowData","treeIndent","columnsHidden","getSpan","getColspanRealWidth","getCellStyle","getCellClass","handleCellMouseLeave","handleCellMouseEnter","fixed"],components:{ElCheckbox:zi.a},render:function(){var e=this,t=arguments[0],n=this.columns,i=this.row,r=this.index,o=this.store,s=this.context,a=this.firstDefaultColumnIndex,l=this.treeRowData,c=this.treeIndent,u=this.columnsHidden,h=void 0===u?[]:u,d=this.isSelected,p=this.isExpanded;return t("tr",[n.map((function(u,f){var m=e.getSpan(i,u,r,f),g=m.rowspan,v=m.colspan;if(!g||!v)return null;var y=Cr({},u);y.realWidth=e.getColspanRealWidth(n,v,f);var _={store:o,isSelected:d,isExpanded:p,_self:s,column:y,row:i,$index:r};return f===a&&l&&(_.treeNode={indent:l.level*c,level:l.level},"boolean"===typeof l.expanded&&(_.treeNode.expanded=l.expanded,"loading"in l&&(_.treeNode.loading=l.loading),"noLazyChildren"in l&&(_.treeNode.noLazyChildren=l.noLazyChildren))),t("td",{style:e.getCellStyle(r,f,i,u),class:e.getCellClass(r,f,i,u),attrs:{rowspan:g,colspan:v},on:{mouseenter:function(t){return e.handleCellMouseEnter(t,i)},mouseleave:e.handleCellMouseLeave}},[u.renderCell.call(e._renderProxy,e.$createElement,_,h[f])])}))])}},Sr="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},Er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Tr={name:"ElTableBody",mixins:[wr],components:{ElCheckbox:zi.a,ElTooltip:rt.a,TableRow:kr},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(e){var t=this,n=this.data||[];return e("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})}))]),e("tbody",[n.reduce((function(e,n){return e.concat(t.wrappedRowRender(n,e.length))}),[]),e("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:Er({table:function(){return this.$parent}},gr({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length},hasExpandColumn:function(e){return e.columns.some((function(e){var t=e.type;return"expand"===t}))}}),{columnsHidden:function(){var e=this;return this.columns.map((function(t,n){return e.isColumnHidden(n)}))},firstDefaultColumnIndex:function(){return Object(y["arrayFindIndex"])(this.columns,(function(e){var t=e.type;return"default"===t}))}}),watch:{"store.states.hoverRow":function(e,t){var n=this;if(this.store.states.isComplex&&!this.$isServer){var i=window.requestAnimationFrame;i||(i=function(e){return setTimeout(e,16)}),i((function(){var i=n.$el.querySelectorAll(".el-table__row"),r=i[t],o=i[e];r&&Object(Re["removeClass"])(r,"hover-row"),o&&Object(Re["addClass"])(o,"hover-row")}))}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=F()(50,(function(e){return e.handleShowPopper()}))},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?Ki(e,n):t},isColumnHidden:function(e){return!0===this.fixed||"left"===this.fixed?e>=this.leftFixedLeafCount:"right"===this.fixed?e<this.columnsCount-this.rightFixedLeafCount:e<this.leftFixedLeafCount||e>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,i){var r=1,o=1,s=this.table.spanMethod;if("function"===typeof s){var a=s({row:e,column:t,rowIndex:n,columnIndex:i});Array.isArray(a)?(r=a[0],o=a[1]):"object"===("undefined"===typeof a?"undefined":Sr(a))&&(r=a.rowspan,o=a.colspan)}return{rowspan:r,colspan:o}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"===typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=this.store.states.selection,i=["el-table__row"];if(this.table.highlightCurrentRow&&e===this.store.states.currentRow&&i.push("current-row"),this.table.highlightSelectionRow)for(var r=0;r<n.length;r++)sr(e,n[r])&&i.push("selection-row");this.stripe&&t%2===1&&i.push("el-table__row--striped");var o=this.table.rowClassName;return"string"===typeof o?i.push(o):"function"===typeof o&&i.push(o.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&i.push("expanded"),i},getCellStyle:function(e,t,n,i){var r=this.table.cellStyle;return"function"===typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getCellClass:function(e,t,n,i){var r=[i.id,i.align,i.className];this.isColumnHidden(t)&&r.push("is-hidden");var o=this.table.cellClassName;return"string"===typeof o?r.push(o):"function"===typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.push("el-table__cell"),r.join(" ")},getColspanRealWidth:function(e,t,n){if(t<1)return e[n].realWidth;var i=e.map((function(e){var t=e.realWidth;return t})).slice(n,n+t);return i.reduce((function(e,t){return e+t}),-1)},handleCellMouseEnter:function(e,t){var n=this.table,i=qi(e);if(i){var r=Xi(n,i),o=n.hoverState={cell:i,column:r,row:t};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,e)}var s=e.target.querySelector(".cell");if(Object(Re["hasClass"])(s,"el-tooltip")&&s.childNodes.length){var a=document.createRange();a.setStart(s,0),a.setEnd(s,s.childNodes.length);var l=a.getBoundingClientRect().width,c=(parseInt(Object(Re["getStyle"])(s,"paddingLeft"),10)||0)+(parseInt(Object(Re["getStyle"])(s,"paddingRight"),10)||0);if((l+c>s.offsetWidth||s.scrollWidth>s.offsetWidth)&&this.$refs.tooltip){var u=this.$refs.tooltip;this.tooltipContent=i.innerText||i.textContent,u.referenceElm=i,u.$refs.popper&&(u.$refs.popper.style.display="none"),u.doDestroy(),u.setExpectedState(!0),this.activateTooltip(u)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper());var n=qi(e);if(n){var i=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",i.row,i.column,i.cell,e)}},handleMouseEnter:F()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:F()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var i=this.table,r=qi(e),o=void 0;r&&(o=Xi(i,r),o&&i.$emit("cell-"+n,t,o,r,e)),i.$emit("row-"+n,t,o,e)},rowRender:function(e,t,n){var i=this,r=this.$createElement,o=this.treeIndent,s=this.columns,a=this.firstDefaultColumnIndex,l=this.getRowClass(e,t),c=!0;n&&(l.push("el-table__row--level-"+n.level),c=n.display);var u=c?null:{display:"none"};return r(kr,{style:[u,this.getRowStyle(e,t)],class:l,key:this.getKeyOfRow(e,t),nativeOn:{dblclick:function(t){return i.handleDoubleClick(t,e)},click:function(t){return i.handleClick(t,e)},contextmenu:function(t){return i.handleContextMenu(t,e)},mouseenter:function(e){return i.handleMouseEnter(t)},mouseleave:this.handleMouseLeave},attrs:{columns:s,row:e,index:t,store:this.store,context:this.context||this.table.$vnode.context,firstDefaultColumnIndex:a,treeRowData:n,treeIndent:o,columnsHidden:this.columnsHidden,getSpan:this.getSpan,getColspanRealWidth:this.getColspanRealWidth,getCellStyle:this.getCellStyle,getCellClass:this.getCellClass,handleCellMouseEnter:this.handleCellMouseEnter,handleCellMouseLeave:this.handleCellMouseLeave,isSelected:this.store.isSelected(e),isExpanded:this.store.states.expandRows.indexOf(e)>-1,fixed:this.fixed}})},wrappedRowRender:function(e,t){var n=this,i=this.$createElement,r=this.store,o=r.isRowExpanded,s=r.assertRowKey,a=r.states,l=a.treeData,c=a.lazyTreeNodeMap,u=a.childrenColumnName,h=a.rowKey;if(this.hasExpandColumn&&o(e)){var d=this.table.renderExpanded,p=this.rowRender(e,t);return d?[[p,i("tr",{key:"expanded-row__"+p.key},[i("td",{attrs:{colspan:this.columnsCount},class:"el-table__cell el-table__expanded-cell"},[d(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),p)}if(Object.keys(l).length){s();var f=Ki(e,h),m=l[f],g=null;m&&(g={expanded:m.expanded,level:m.level,display:!0},"boolean"===typeof m.lazy&&("boolean"===typeof m.loaded&&m.loaded&&(g.noLazyChildren=!(m.children&&m.children.length)),g.loading=m.loading));var v=[this.rowRender(e,t,g)];if(m){var y=0,_=function e(i,r){i&&i.length&&r&&i.forEach((function(i){var o={display:r.display&&r.expanded,level:r.level+1},s=Ki(i,h);if(void 0===s||null===s)throw new Error("for nested data item, row-key is required.");if(m=Er({},l[s]),m&&(o.expanded=m.expanded,m.level=m.level||o.level,m.display=!(!m.expanded||!o.display),"boolean"===typeof m.lazy&&("boolean"===typeof m.loaded&&m.loaded&&(o.noLazyChildren=!(m.children&&m.children.length)),o.loading=m.loading)),y++,v.push(n.rowRender(i,t+y,o)),m){var a=c[s]||i[u];e(a,m)}}))};m.display=!0;var b=c[f]||e[u];_(b,m)}return v}return this.rowRender(e,t)}}},Mr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"}},[e.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:e.filteredValue,callback:function(t){e.filteredValue=t},expression:"filteredValue"}},e._l(e.filters,(function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===e.filteredValue.length},attrs:{disabled:0===e.filteredValue.length},on:{click:e.handleConfirm}},[e._v(e._s(e.t("el.table.confirmFilter")))]),n("button",{on:{click:e.handleReset}},[e._v(e._s(e.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===e.filterValue||null===e.filterValue},on:{click:function(t){e.handleSelect(null)}}},[e._v(e._s(e.t("el.table.clearFilter")))]),e._l(e.filters,(function(t){return n("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(t)},attrs:{label:t.value},on:{click:function(n){e.handleSelect(t.value)}}},[e._v(e._s(t.text))])}))],2)])])},Ar=[];Mr._withStripped=!0;var Or=[];!Vi.a.prototype.$isServer&&document.addEventListener("click",(function(e){Or.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var Ir={open:function(e){e&&Or.push(e)},close:function(e){var t=Or.indexOf(e);-1!==t&&Or.splice(e,1)}},Dr=n(32),Pr=n.n(Dr),zr={name:"ElTableFilterPanel",mixins:[U.a,v.a],directives:{Clickoutside:$.a},components:{ElCheckbox:zi.a,ElCheckboxGroup:Pr.a,ElScrollbar:H.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout((function(){e.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){this.filterValue=e,"undefined"!==typeof e&&null!==e?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&("undefined"!==typeof e&&null!==e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){e.updatePopper()})),this.$watch("showPopper",(function(t){e.column&&(e.column.filterOpened=t),t?Ir.open(e):Ir.close(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<C["PopupManager"].zIndex&&(this.popperJS._popper.style.zIndex=C["PopupManager"].nextZIndex())}}},Lr=zr,Br=a(Lr,Mr,Ar,!1,null,null,null);Br.options.__file="packages/table/src/filter-panel.vue";var Fr=Br.exports,Rr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$r=function e(t){var n=[];return t.forEach((function(t){t.children?(n.push(t),n.push.apply(n,e(t.children))):n.push(t)})),n},Nr=function(e){var t=1,n=function e(n,i){if(i&&(n.level=i.level+1,t<n.level&&(t=n.level)),n.children){var r=0;n.children.forEach((function(t){e(t,n),r+=t.colSpan})),n.colSpan=r}else n.colSpan=1};e.forEach((function(e){e.level=1,n(e)}));for(var i=[],r=0;r<t;r++)i.push([]);var o=$r(e);return o.forEach((function(e){e.children?e.rowSpan=1:e.rowSpan=t-e.level+1,i[e.level-1].push(e)})),i},jr={name:"ElTableHeader",mixins:[wr],render:function(e){var t=this,n=this.store.states.originColumns,i=Nr(n,this.columns),r=i.length>1;return r&&(this.$parent.isGroup=!0),e("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("thead",{class:[{"is-group":r,"has-gutter":this.hasGutter}]},[this._l(i,(function(n,i){return e("tr",{style:t.getHeaderRowStyle(i),class:t.getHeaderRowClass(i)},[n.map((function(r,o){return e("th",{attrs:{colspan:r.colSpan,rowspan:r.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,r)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,r)},click:function(e){return t.handleHeaderClick(e,r)},contextmenu:function(e){return t.handleHeaderContextMenu(e,r)}},style:t.getHeaderCellStyle(i,o,n,r),class:t.getHeaderCellClass(i,o,n,r),key:r.id},[e("div",{class:["cell",r.filteredValue&&r.filteredValue.length>0?"highlight":"",r.labelClassName]},[r.renderHeader?r.renderHeader.call(t._renderProxy,e,{column:r,$index:o,store:t.store,_self:t.$parent.$vnode.context}):r.label,r.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,r)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,r,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,r,"descending")}}})]):"",r.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,r)}}},[e("i",{class:["el-icon-arrow-down",r.filterOpened?"el-icon-arrow-up":""]})]):""])])})),t.hasGutter?e("th",{class:"el-table__cell gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:zi.a},computed:Rr({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},gr({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.defaultSort,n=t.prop,i=t.order,r=!0;e.store.commit("sort",{prop:n,order:i,init:r})}))},beforeDestroy:function(){var e=this.filterPanels;for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,i=0;i<e;i++)n+=t[i].colSpan;var r=n+t[e].colSpan-1;return!0===this.fixed||"left"===this.fixed?r>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:r<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"===typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"===typeof n?t.push(n):"function"===typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,i){var r=this.table.headerCellStyle;return"function"===typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getHeaderCellClass:function(e,t,n,i){var r=[i.id,i.order,i.headerAlign,i.className,i.labelClassName];0===e&&this.isCellHidden(t,n)&&r.push("is-hidden"),i.children||r.push("is-leaf"),i.sortable&&r.push("is-sortable");var o=this.table.headerCellClassName;return"string"===typeof o?r.push(o):"function"===typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.push("el-table__cell"),r.join(" ")},toggleAllSelection:function(){this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,i="TH"===n.tagName?n:n.parentNode;if(!Object(Re["hasClass"])(i,"noclick")){i=i.querySelector(".el-table__column-filter-trigger")||i;var r=this.$parent,o=this.filterPanels[t.id];o&&t.filterOpened?o.showPopper=!1:(o||(o=new Vi.a(Fr),this.filterPanels[t.id]=o,t.filterPlacement&&(o.placement=t.filterPlacement),o.table=r,o.cell=i,o.column=t,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout((function(){o.showPopper=!0}),16))}},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n=this;if(!this.$isServer&&!(t.children&&t.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var i=this.$parent,r=i.$el,o=r.getBoundingClientRect().left,s=this.$el.querySelector("th."+t.id),a=s.getBoundingClientRect(),l=a.left-o+30;Object(Re["addClass"])(s,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:a.right-o,startColumnLeft:a.left-o,tableLeft:o};var c=i.$refs.resizeProxy;c.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var u=function(e){var t=e.clientX-n.dragState.startMouseLeft,i=n.dragState.startLeft+t;c.style.left=Math.max(l,i)+"px"},h=function r(){if(n.dragging){var o=n.dragState,a=o.startColumnLeft,l=o.startLeft,h=parseInt(c.style.left,10),d=h-a;t.width=t.realWidth=d,i.$emit("header-dragend",t.width,l-a,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},i.resizeProxyVisible=!1}document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",r),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(Re["removeClass"])(s,"noclick")}),0)};document.addEventListener("mousemove",u),document.addEventListener("mouseup",h)}},handleMouseMove:function(e,t){if(!(t.children&&t.children.length>0)){var n=e.target;while(n&&"TH"!==n.tagName)n=n.parentNode;if(t&&t.resizable&&!this.dragging&&this.border){var i=n.getBoundingClientRect(),r=document.body.style;i.width>12&&i.right-e.pageX<8?(r.cursor="col-resize",Object(Re["hasClass"])(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(r.cursor="",Object(Re["hasClass"])(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var i=n.indexOf(t||null);return n[i>n.length-2?0:i+1]},handleSortClick:function(e,t,n){e.stopPropagation();var i=t.order===n?null:n||this.toggleOrder(t),r=e.target;while(r&&"TH"!==r.tagName)r=r.parentNode;if(r&&"TH"===r.tagName&&Object(Re["hasClass"])(r,"noclick"))Object(Re["removeClass"])(r,"noclick");else if(t.sortable){var o=this.store.states,s=o.sortProp,a=void 0,l=o.sortingColumn;(l!==t||l===t&&null===l.order)&&(l&&(l.order=null),o.sortingColumn=t,s=t.property),a=t.order=i||null,o.sortProp=s,o.sortOrder=a,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},Vr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ur={name:"ElTableFooter",mixins:[wr],render:function(e){var t=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach((function(e,i){if(0!==i){var r=t.store.states.data.map((function(t){return Number(t[e.property])})),o=[],s=!0;r.forEach((function(e){if(!isNaN(e)){s=!1;var t=(""+e).split(".")[1];o.push(t?t.length:0)}}));var a=Math.max.apply(null,o);n[i]=s?"":r.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(a,20)))}),0)}else n[i]=t.sumText})),e("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("tbody",{class:[{"has-gutter":this.hasGutter}]},[e("tr",[this.columns.map((function(i,r){return e("td",{key:r,attrs:{colspan:i.colSpan,rowspan:i.rowSpan},class:[].concat(t.getRowClasses(i,r),["el-table__cell"])},[e("div",{class:["cell",i.labelClassName]},[n[r]])])})),this.hasGutter?e("th",{class:"el-table__cell gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Vr({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},gr({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),methods:{isCellHidden:function(e,t,n){if(!0===this.fixed||"left"===this.fixed)return e>=this.leftFixedLeafCount;if("right"===this.fixed){for(var i=0,r=0;r<e;r++)i+=t[r].colSpan;return i<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(e<this.leftFixedCount||e>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Hr=1,Wr={name:"ElTable",mixins:[v.a,E.a],directives:{Mousewheel:Ni},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,highlightSelectionRow:{type:Boolean,default:!1},currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:jr,TableFooter:Ur,TableBody:Tr,ElCheckbox:zi.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(e){this.store.commit("setCurrentRow",e)},toggleRowSelection:function(e,t){this.store.toggleRowSelection(e,t,!1),this.store.updateAllSelected()},toggleRowExpansion:function(e,t){this.store.toggleRowExpansionAdapter(e,t)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(e){this.store.clearFilter(e)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){var e=this.layout.updateScrollY();e&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(e,t){var n=this.bodyWrapper;if(Math.abs(t.spinY)>0){var i=n.scrollTop;t.pixelY<0&&0!==i&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>i&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,i=t.pixelY;Math.abs(n)>=Math.abs(i)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,i=e.offsetWidth,r=e.scrollWidth,o=this.$refs,s=o.headerWrapper,a=o.footerWrapper,l=o.fixedBodyWrapper,c=o.rightFixedBodyWrapper;s&&(s.scrollLeft=t),a&&(a.scrollLeft=t),l&&(l.scrollTop=n),c&&(c.scrollTop=n);var u=r-i-1;this.scrollPosition=t>=u?"right":0===t?"left":"middle"},throttleSyncPostion:Object(Li["throttle"])(16,(function(){this.syncPostion()})),onScroll:function(e){var t=window.requestAnimationFrame;t?t(this.syncPostion):this.throttleSyncPostion()},bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(ei["addResizeListener"])(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(ei["removeResizeListener"])(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,i=n.width,r=n.height,o=t.offsetWidth;i!==o&&(e=!0);var s=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&r!==s&&(e=!0),e&&(this.resizeState.width=o,this.resizeState.height=s,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:qr({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,i=e.gutterWidth;return t?t-(n?i:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,i=e.bodyHeight,r=e.footerHeight,o=void 0===r?0:r;if(this.height)return{height:i?i+"px":""};if(this.maxHeight){var s=nr(this.maxHeight);if("number"===typeof s)return{"max-height":s-o-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=nr(this.maxHeight);if("number"===typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),e-=this.layout.footerHeight,{"max-height":e+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},gr({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+Hr++,this.debouncedUpdateLayout=Object(Li["debounce"])(50,(function(){return e.doLayout()}))},mounted:function(){var e=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.store.commit("filterChange",{column:t,values:t.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,n=void 0===t?"hasChildren":t,i=e.children,r=void 0===i?"children":i;this.store=mr(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:r});var o=new xr({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader});return{layout:o,isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},Gr=Wr,Zr=a(Gr,Ii,Di,!1,null,null,null);Zr.options.__file="packages/table/src/table.vue";var Xr=Zr.exports;Xr.install=function(e){e.component(Xr.name,Xr)};var Kr=Xr,Yr={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Jr={selection:{renderHeader:function(e,t){var n=t.store;return e("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},on:{input:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,i=t.column,r=t.isSelected,o=t.store,s=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:r,disabled:!!i.selectable&&!i.selectable.call(null,n,s)},on:{input:function(){o.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){var n=t.column;return n.label||"#"},renderCell:function(e,t){var n=t.$index,i=t.column,r=n+1,o=i.index;return"number"===typeof o?r=n+o:"function"===typeof o&&(r=o(n)),e("div",[r])},sortable:!1},expand:{renderHeader:function(e,t){var n=t.column;return n.label||""},renderCell:function(e,t){var n=t.row,i=t.store,r=t.isExpanded,o=["el-table__expand-icon"];r&&o.push("el-table__expand-icon--expanded");var s=function(e){e.stopPropagation(),i.toggleRowExpansion(n)};return e("div",{class:o,on:{click:s}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function Qr(e,t){var n=t.row,i=t.column,r=t.$index,o=i.property,s=o&&Object(y["getPropByPath"])(n,o).v;return i&&i.formatter?i.formatter(n,i,s,r):s}function eo(e,t){var n=t.row,i=t.treeNode,r=t.store;if(!i)return null;var o=[],s=function(e){e.stopPropagation(),r.loadOrToggle(n)};if(i.indent&&o.push(e("span",{class:"el-table__indent",style:{"padding-left":i.indent+"px"}})),"boolean"!==typeof i.expanded||i.noLazyChildren)o.push(e("span",{class:"el-table__placeholder"}));else{var a=["el-table__expand-icon",i.expanded?"el-table__expand-icon--expanded":""],l=["el-icon-arrow-right"];i.loading&&(l=["el-icon-loading"]),o.push(e("div",{class:a,on:{click:s}},[e("i",{class:l})]))}return o}var to=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},no=1,io={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return e.every((function(e){return["ascending","descending",null].indexOf(e)>-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){var e=this.$parent;while(e&&!e.tableId)e=e.$parent;return e},columnOrTableParent:function(){var e=this.$parent;while(e&&!e.tableId&&!e.columnId)e=e.$parent;return e},realWidth:function(){return er(this.width)},realMinWidth:function(){return tr(this.minWidth)},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce((function(t,n){return Array.isArray(n)&&n.forEach((function(n){t[n]=e[n]})),t}),{})},getColumnElIndex:function(e,t){return[].indexOf.call(e,t)},setColumnWidth:function(e){return this.realWidth&&(e.width=this.realWidth),this.realMinWidth&&(e.minWidth=this.realMinWidth),e.minWidth||(e.minWidth=80),e.realWidth=void 0===e.width?e.minWidth:e.width,e},setColumnForcedProps:function(e){var t=e.type,n=Jr[t]||{};return Object.keys(n).forEach((function(t){var i=n[t];void 0!==i&&(e[t]="className"===t?e[t]+" "+i:i)})),e},setColumnRenders:function(e){var t=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==e.type&&(e.renderHeader=function(n,i){var r=t.$scopedSlots.header;return r?r(i):e.label});var n=e.renderCell;return"expand"===e.type?(e.renderCell=function(e,t){return e("div",{class:"cell"},[n(e,t)])},this.owner.renderExpanded=function(e,n){return t.$scopedSlots.default?t.$scopedSlots.default(n):t.$slots.default}):(n=n||Qr,e.renderCell=function(i,r){var o=null;o=t.$scopedSlots.default?t.$scopedSlots.default(r):n(i,r);var s=eo(i,r),a={class:"cell",style:{}};return e.showOverflowTooltip&&(a.class+=" el-tooltip",a.style={width:(r.column.realWidth||r.column.width)-1+"px"}),i("div",a,[s,o])}),e},registerNormalWatchers:function(){var e=this,t=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],n={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},i=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(i).forEach((function(t){var i=n[t];e.$watch(t,(function(t){e.columnConfig[i]=t}))}))},registerComplexWatchers:function(){var e=this,t=["fixed"],n={realWidth:"width",realMinWidth:"minWidth"},i=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(i).forEach((function(t){var i=n[t];e.$watch(t,(function(t){e.columnConfig[i]=t;var n="fixed"===i;e.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:zi.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var e=this.columnOrTableParent;this.isSubColumn=this.owner!==e,this.columnId=(e.tableId||e.columnId)+"_column_"+no++;var t=this.type||"default",n=""===this.sortable||this.sortable,i=to({},Yr[t],{id:this.columnId,type:t,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),r=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],o=["sortMethod","sortBy","sortOrders"],s=["selectable","reserveSelection"],a=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"],l=this.getPropsData(r,o,s,a);l=Qi(i,l);var c=ir(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps);l=c(l),this.columnConfig=l,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var e=this.owner,t=this.columnOrTableParent,n=this.isSubColumn?t.$el.children:t.$refs.hiddenColumns.children,i=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,i,this.isSubColumn?t.columnConfig:null)},destroyed:function(){if(this.$parent){var e=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?e.columnConfig:null)}},render:function(e){return e("div",this.$slots.default)},install:function(e){e.component(io.name,io)}},ro=io,oo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+e.type,e.pickerSize?"el-range-editor--"+e.pickerSize:"",e.pickerDisabled?"is-disabled":"",e.pickerVisible?"is-active":""],on:{click:e.handleRangeClick,mouseenter:e.handleMouseEnter,mouseleave:function(t){e.showClose=!1},keydown:e.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",e.triggerClass]}),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.startPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[0]},domProps:{value:e.displayValue&&e.displayValue[0]},on:{input:e.handleStartInput,change:e.handleStartChange,focus:e.handleFocus}},"input",e.firstInputId,!1)),e._t("range-separator",[n("span",{staticClass:"el-range-separator"},[e._v(e._s(e.rangeSeparator))])]),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.endPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[1]},domProps:{value:e.displayValue&&e.displayValue[1]},on:{input:e.handleEndInput,change:e.handleEndChange,focus:e.handleFocus}},"input",e.secondInputId,!1)),e.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[e.showClose?""+e.clearIcon:""],on:{click:e.handleClickIcon}}):e._e()],2):n("el-input",e._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+e.type,attrs:{readonly:!e.editable||e.readonly||"dates"===e.type||"week"===e.type||"years"===e.type||"months"===e.type,disabled:e.pickerDisabled,size:e.pickerSize,name:e.name,placeholder:e.placeholder,value:e.displayValue,validateEvent:!1},on:{focus:e.handleFocus,input:function(t){return e.userInput=t},change:e.handleChange},nativeOn:{keydown:function(t){return e.handleKeydown(t)},mouseenter:function(t){return e.handleMouseEnter(t)},mouseleave:function(t){e.showClose=!1}}},"el-input",e.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:e.triggerClass,attrs:{slot:"prefix"},on:{click:e.handleFocus},slot:"prefix"}),e.haveTrigger?n("i",{staticClass:"el-input__icon",class:[e.showClose?""+e.clearIcon:""],attrs:{slot:"suffix"},on:{click:e.handleClickIcon},slot:"suffix"}):e._e()])},so=[];oo._withStripped=!0;var ao=n(0),lo={props:{appendToBody:U.a.props.appendToBody,offset:U.a.props.offset,boundariesPadding:U.a.props.boundariesPadding,arrowOffset:U.a.props.arrowOffset,transformOrigin:U.a.props.transformOrigin},methods:U.a.methods,data:function(){return St()({visibleArrow:!0},U.a.data)},beforeDestroy:U.a.beforeDestroy},co={date:"yyyy-MM-dd",month:"yyyy-MM",months:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy",years:"yyyy"},uo=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates","months","years"],ho=function(e,t){return"timestamp"===t?e.getTime():Object(ao["formatDate"])(e,t)},po=function(e,t){return"timestamp"===t?new Date(Number(e)):Object(ao["parseDate"])(e,t)},fo=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],i=e[1];if(n&&i)return[ho(n,t),ho(i,t)]}return""},mo=function(e,t,n){if(Array.isArray(e)||(e=e.split(n)),2===e.length){var i=e[0],r=e[1];return[po(i,t),po(r,t)]}return[]},go={default:{formatter:function(e){return e?""+e:""},parser:function(e){return void 0===e||""===e?null:e}},week:{formatter:function(e,t){var n=Object(ao["getWeekNumber"])(e),i=e.getMonth(),r=new Date(e);1===n&&11===i&&(r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7));var o=Object(ao["formatDate"])(r,t);return o=/WW/.test(o)?o.replace(/WW/,n<10?"0"+n:n):o.replace(/W/,n),o},parser:function(e,t){return go.date.parser(e,t)}},date:{formatter:ho,parser:po},datetime:{formatter:ho,parser:po},daterange:{formatter:fo,parser:mo},monthrange:{formatter:fo,parser:mo},datetimerange:{formatter:fo,parser:mo},timerange:{formatter:fo,parser:mo},time:{formatter:ho,parser:po},month:{formatter:ho,parser:po},year:{formatter:ho,parser:po},number:{formatter:function(e){return e?""+e:""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}},dates:{formatter:function(e,t){return e.map((function(e){return ho(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:po(e,t)}))}},months:{formatter:function(e,t){return e.map((function(e){return ho(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:po(e,t)}))}},years:{formatter:function(e,t){return e.map((function(e){return ho(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:po(e,t)}))}}},vo={left:"bottom-start",center:"bottom",right:"bottom-end"},yo=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(!e)return null;var r=(go[n]||go["default"]).parser,o=t||co[n];return r(e,o,i)},_o=function(e,t,n){if(!e)return null;var i=(go[n]||go["default"]).formatter,r=t||co[n];return i(e,r)},bo=function(e,t){var n=function(e,t){var n=e instanceof Date,i=t instanceof Date;return n&&i?e.getTime()===t.getTime():!n&&!i&&e===t},i=e instanceof Array,r=t instanceof Array;return i&&r?e.length===t.length&&e.every((function(e,i){return n(e,t[i])})):!i&&!r&&n(e,t)},xo=function(e){return"string"===typeof e||e instanceof String},wo=function(e){return null===e||void 0===e||xo(e)||Array.isArray(e)&&2===e.length&&e.every(xo)},Co={mixins:[M.a,lo],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:wo},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:wo},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:m.a},directives:{Clickoutside:$.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){bo(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var e=this.$refs.reference;return e.$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1}else if(e)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"months"===this.type?"months":"years"===this.type?"years":"day"},haveTrigger:function(){return"undefined"!==typeof this.showTrigger?this.showTrigger:-1!==uo.indexOf(this.type)},displayValue:function(){var e=_o(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||e&&e[0]||"",this.userInput[1]||e&&e[1]||""]:null!==this.userInput?this.userInput:e?"dates"===this.type||"years"===this.type||"months"===this.type?e.join(", "):e:""},parsedValue:function(){if(!this.value)return this.value;if("time-select"===this.type)return this.value;var e=Object(ao["isDateObject"])(this.value)||Array.isArray(this.value)&&this.value.every(ao["isDateObject"]);return e?this.value:this.valueFormat?yo(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map((function(e){return new Date(e)})):new Date(this.value)},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var e={},t=void 0;return t=this.ranged?this.id&&this.id[0]:this.id,t&&(e.id=t),e},secondInputId:function(){var e={},t=void 0;return this.ranged&&(t=this.id&&this.id[1]),t&&(e.id=t),e}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=vo[this.align]||vo.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach((function(e){return e.blur()}))},parseValue:function(e){var t=Object(ao["isDateObject"])(e)||Array.isArray(e)&&e.every(ao["isDateObject"]);return this.valueFormat&&!t&&yo(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=Object(ao["isDateObject"])(e)||Array.isArray(e)&&e.every(ao["isDateObject"]);return this.valueFormat&&t?_o(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return yo(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return _o(e,this.format,t)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var e=this.parseString(this.displayValue);e&&(this.picker.value=e,this.isValidValue(e)&&(this.emitInput(e),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(e){this.userInput?this.userInput=[e.target.value,this.userInput[1]]:this.userInput=[e.target.value,null]},handleEndInput:function(e){this.userInput?this.userInput=[this.userInput[0],e.target.value]:this.userInput=[null,e.target.value]},handleStartChange:function(e){var t=this.parseString(this.userInput&&this.userInput[0]);if(t){this.userInput=[this.formatToString(t),this.displayValue[1]];var n=[t,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(e){var t=this.parseString(this.userInput&&this.userInput[1]);if(t){this.userInput=[this.displayValue[0],this.formatToString(t)];var n=[this.picker.value&&this.picker.value[0],t];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(e){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,e.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"===typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type||"years"===this.type||"months"===this.type)){var e=yo(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(e)}},handleFieldReset:function(e){this.userInput=""===e?null:e},handleFocus:function(){var e=this.type;-1===uo.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(e){var t=this,n=e.keyCode;return 27===n?(this.pickerVisible=!1,void e.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void e.stopPropagation()):void(this.userInput?e.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(e)):void(this.ranged?setTimeout((function(){-1===t.refInput.indexOf(document.activeElement)&&(t.pickerVisible=!1,t.blur(),e.stopPropagation())}),0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),e.stopPropagation()))},handleRangeClick:function(){var e=this.type;-1===uo.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var e=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick((function(){e.picker.adjustSpinners&&e.picker.adjustSpinners()})))},mountPicker:function(){var e=this;this.picker=new Vi.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",(function(t){e.picker.format=t}));var t=function(){var t=e.pickerOptions;if(t&&t.selectableRange){var n=t.selectableRange,i=go.datetimerange.parser,r=co.timerange;n=Array.isArray(n)?n:[n],e.picker.selectableRange=n.map((function(t){return i(t,r,e.rangeSeparator)}))}for(var o in t)t.hasOwnProperty(o)&&"selectableRange"!==o&&(e.picker[o]=t[o]);e.format&&(e.picker.format=e.format)};t(),this.unwatchPickerOptions=this.$watch("pickerOptions",(function(){return t()}),{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.userInput=null,e.pickerVisible=e.picker.visible=n,e.emitInput(t),e.picker.resetView&&e.picker.resetView()})),this.picker.$on("select-range",(function(t,n,i){0!==e.refInput.length&&(i&&"min"!==i?"max"===i&&(e.refInput[1].setSelectionRange(t,n),e.refInput[1].focus()):(e.refInput[0].setSelectionRange(t,n),e.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"===typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){bo(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){var t=this.formatToValue(e);bo(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},ko=Co,So=a(ko,oo,so,!1,null,null,null);So.options.__file="packages/date-picker/src/picker.vue";var Eo=So.exports,To=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:e.t("el.datepicker.selectDate"),value:e.visibleDate,size:"small"},on:{input:function(t){return e.userInputDate=t},change:e.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:e.t("el.datepicker.selectTime"),value:e.visibleTime,size:"small"},on:{focus:function(t){e.timePickerVisible=!0},input:function(t){return e.userInputTime=t},change:e.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.timePickerVisible},on:{pick:e.handleTimePick,mounted:e.proxyTimePickerDataProperties}})],1)]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==e.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevYear")},on:{click:e.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevMonth")},on:{click:e.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:e.showYearPicker}},[e._v(e._s(e.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===e.currentView},attrs:{role:"button"},on:{click:e.showMonthPicker}},[e._v(e._s(e.t("el.datepicker.month"+(e.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextYear")},on:{click:e.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextMonth")},on:{click:e.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":e.selectionMode,"first-day-of-week":e.firstDayOfWeek,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"cell-class-name":e.cellClassName,"disabled-date":e.disabledDate},on:{pick:e.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===e.currentView,expression:"currentView === 'year'"}],attrs:{"selection-mode":e.selectionMode,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===e.currentView,expression:"currentView === 'month'"}],attrs:{"selection-mode":e.selectionMode,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.footerVisible&&("date"===e.currentView||"month"===e.currentView||"year"===e.currentView),expression:"footerVisible && (currentView === 'date' || currentView === 'month' || currentView === 'year')"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==e.selectionMode&&"months"!==e.selectionMode&&"years"!==e.selectionMode,expression:"selectionMode !== 'dates' && selectionMode !== 'months' && selectionMode !== 'years'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.changeToNow}},[e._v("\n        "+e._s(e.t("el.datepicker.now"))+"\n      ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:e.confirm}},[e._v("\n        "+e._s(e.t("el.datepicker.confirm"))+"\n      ")])],1)])])},Mo=[];To._withStripped=!0;var Ao=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":e.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":e.useArrow,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,date:e.date},on:{change:e.handleChange,"select-range":e.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:e.handleCancel}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!e.disabled},attrs:{type:"button"},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Oo=[];Ao._withStripped=!0;var Io=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":e.showSeconds}},[e.arrowControl?e._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("hours")},mousemove:function(t){e.adjustCurrentSpinner("hours")}}},e._l(e.hoursList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:i,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?i%12||12:i)).slice(-2))+e._s(e.amPm(i)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("minutes")},mousemove:function(t){e.adjustCurrentSpinner("minutes")}}},e._l(e.minutesList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("seconds")},mousemove:function(t){e.adjustCurrentSpinner("seconds")}}},e._l(60,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).slice(-2)))])})),0)],e.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},e._l(e.arrowHourList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.hours,disabled:e.hoursList[t]}},[e._v(e._s(void 0===t?"":("0"+(e.amPmMode?t%12||12:t)).slice(-2)+e.amPm(t)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},e._l(e.arrowMinuteList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.minutes}},[e._v("\n          "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n        ")])})),0)]),e.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},e._l(e.arrowSecondList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.seconds}},[e._v("\n          "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n        ")])})),0)]):e._e()]:e._e()],2)},Do=[];Io._withStripped=!0;var Po={components:{ElScrollbar:H.a},directives:{repeatClick:zt},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(ao["getRangeHours"])(this.selectableRange)},minutesList:function(){return Object(ao["getRangeMinutes"])(this.selectableRange,this.hours)},arrowHourList:function(){var e=this.hours;return[e>0?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[e>0?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[e>0?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick((function(){!e.arrowControl&&e.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Object(ao["modifyTime"])(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(ao["modifyTime"])(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(ao["modifyTime"])(this.date,this.hours,this.minutes,t));break}},handleClick:function(e,t){var n=t.value,i=t.disabled;i||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){var e=this,t=function(t){e.$refs[t].wrap.onscroll=function(n){e.handleScroll(t,n)}};t("hours"),t("minutes"),t("seconds")},handleScroll:function(e){var t=Math.min(Math.round((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){if(!this.arrowControl){var n=this.$refs[e].wrap;n&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))}},scrollDown:function(e){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,i=this.hoursList,r=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(e);e=e>0?1:-1;var s=i.length;while(s--&&o)r=(r+e+i.length)%i.length,i[r]||o--;if(i[r])return}else r=(r+e+60)%60;this.modifyDateField(n,r),this.adjustSpinner(n,r),this.$nextTick((function(){return t.emitSelectRange(t.currentScrollbar)}))},amPm:function(e){var t="a"===this.amPmMode.toLowerCase();if(!t)return"";var n="A"===this.amPmMode,i=e<12?" am":" pm";return n&&(i=i.toUpperCase()),i},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},zo=Po,Lo=a(zo,Io,Do,!1,null,null,null);Lo.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Bo=Lo.exports,Fo={mixins:[v.a],components:{TimeSpinner:Bo},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Object(ao["limitTimeRange"])(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(e){return t.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(ao["isDate"])(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=Object(ao["clearMilliseconds"])(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(!t){var n=Object(ao["clearMilliseconds"])(Object(ao["limitTimeRange"])(this.date,this.selectableRange,this.format));this.$emit("pick",n,e,t)}},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var i=n[t];return this.changeSelectionRange(i),void e.preventDefault()}if(38===t||40===t){var r=n[t];return this.$refs.spinner.scrollDown(r),void e.preventDefault()}},isValidValue:function(e){return Object(ao["timeWithinRange"])(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),i=t.indexOf(this.selectionRange[0]),r=(i+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[r])}},mounted:function(){var e=this;this.$nextTick((function(){return e.handleConfirm(!0,!0)})),this.$emit("mounted")}},Ro=Fo,$o=a(Ro,Ao,Oo,!1,null,null,null);$o.options.__file="packages/date-picker/src/panel/time.vue";var No=$o.exports,jo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),n("td"),n("td")])])])},Vo=[];jo._withStripped=!0;var Uo=function(e){var t=Object(ao["getDayCountOfYear"])(e),n=new Date(e,0,1);return Object(ao["range"])(t).map((function(e){return Object(ao["nextDate"])(n,e)}))},qo={props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(ao["isDate"])(e)}},date:{},selectionMode:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var t={},n=new Date;return t.disabled="function"===typeof this.disabledDate&&Uo(e).every(this.disabledDate),t.current=Object(y["arrayFindIndex"])(Object(y["coerceTruthyValueToArray"])(this.value),(function(t){return t.getFullYear()===e}))>=0,t.today=n.getFullYear()===e,t.default=this.defaultValue&&this.defaultValue.getFullYear()===e,t},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(Re["hasClass"])(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;if("years"===this.selectionMode){var i=this.value||[],r=Object(y["arrayFindIndex"])(i,(function(e){return e.getFullYear()===Number(n)})),o=r>-1?[].concat(i.slice(0,r),i.slice(r+1)):[].concat(i,[new Date(n)]);this.$emit("pick",o)}else this.$emit("pick",Number(n))}}}},Ho=qo,Wo=a(Ho,jo,Vo,!1,null,null,null);Wo.options.__file="packages/date-picker/src/basic/year-table.vue";var Go=Wo.exports,Zo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-month-table",on:{click:e.handleMonthTableClick,mousemove:e.handleMouseMove}},[n("tbody",e._l(e.rows,(function(t,i){return n("tr",{key:i},e._l(t,(function(t,i){return n("td",{key:i,class:e.getCellStyle(t)},[n("div",[n("a",{staticClass:"cell"},[e._v(e._s(e.t("el.datepicker.months."+e.months[t.text])))])])])})),0)})),0)])},Xo=[];Zo._withStripped=!0;var Ko=function(e,t){var n=Object(ao["getDayCountOfMonth"])(e,t),i=new Date(e,t,1);return Object(ao["range"])(n).map((function(e){return Object(ao["nextDate"])(i,e)}))},Yo=function(e){return new Date(e.getFullYear(),e.getMonth())},Jo=function(e){return"number"===typeof e||"string"===typeof e?Yo(new Date(e)).getTime():e instanceof Date?Yo(e).getTime():NaN},Qo=function(e,t){var n="function"===typeof t?Object(y["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},es={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(ao["isDate"])(e)||Array.isArray(e)&&e.every(ao["isDate"])}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[v.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){Jo(e)!==Jo(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Jo(e)!==Jo(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.date.getFullYear()===n.getFullYear()&&Number(e.text)===n.getMonth()},getCellStyle:function(e){var t=this,n={},i=this.date.getFullYear(),r=new Date,o=e.text,s=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"===typeof this.disabledDate&&Ko(i,o).every(this.disabledDate),n.current=Object(y["arrayFindIndex"])(Object(y["coerceTruthyValueToArray"])(this.value),(function(e){return e.getFullYear()===i&&e.getMonth()===o}))>=0,n.today=r.getFullYear()===i&&r.getMonth()===o,n.default=s.some((function(n){return t.cellMatchesDate(e,n)})),e.inRange&&(n["in-range"]=!0,e.start&&(n["start-date"]=!0),e.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=Jo(e),t=Jo(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.rows,r=0,o=i.length;r<o;r++)for(var s=i[r],a=0,l=s.length;a<l;a++){var c=s[a],u=4*r+a,h=new Date(this.date.getFullYear(),u).getTime();c.inRange=e&&h>=e&&h<=t,c.start=e&&h===e,c.end=t&&h===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+i)}}))}}},handleMonthTableClick:function(e){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName&&!Object(Re["hasClass"])(t,"disabled")){var n=t.cellIndex,i=t.parentNode.rowIndex,r=4*i+n,o=this.getMonthOfCell(r);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("months"===this.selectionMode){var s=this.value||[],a=this.date.getFullYear(),l=Object(y["arrayFindIndex"])(s,(function(e){return e.getFullYear()===a&&e.getMonth()===r}))>=0?Qo(s,(function(e){return e.getTime()===o.getTime()})):[].concat(s,[o]);this.$emit("pick",l)}else this.$emit("pick",r)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,i=[],r=Jo(new Date),o=0;o<3;o++)for(var s=t[o],a=function(t){var a=s[t];a||(a={row:o,column:t,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var l=4*o+t,c=new Date(e.date.getFullYear(),l).getTime();a.inRange=c>=Jo(e.minDate)&&c<=Jo(e.maxDate),a.start=e.minDate&&c===Jo(e.minDate),a.end=e.maxDate&&c===Jo(e.maxDate);var u=c===r;u&&(a.type="today"),a.text=l;var h=new Date(c);a.disabled="function"===typeof n&&n(h),a.selected=Object(y["arrayFind"])(i,(function(e){return e.getTime()===h.getTime()})),e.$set(s,t,a)},l=0;l<4;l++)a(l);return t}}},ts=es,ns=a(ts,Zo,Xo,!1,null,null,null);ns.options.__file="packages/date-picker/src/basic/month-table.vue";var is=ns.exports,rs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===e.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:e.handleClick,mousemove:e.handleMouseMove}},[n("tbody",[n("tr",[e.showWeekNumber?n("th",[e._v(e._s(e.t("el.datepicker.week")))]):e._e(),e._l(e.WEEKS,(function(t,i){return n("th",{key:i},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])}))],2),e._l(e.rows,(function(t,i){return n("tr",{key:i,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,(function(t,i){return n("td",{key:i,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n          "+e._s(t.text)+"\n        ")])])])})),0)}))],2)])},os=[];rs._withStripped=!0;var ss=["sun","mon","tue","wed","thu","fri","sat"],as=function(e){return"number"===typeof e||"string"===typeof e?Object(ao["clearTime"])(new Date(e)).getTime():e instanceof Date?Object(ao["clearTime"])(e).getTime():NaN},ls=function(e,t){var n="function"===typeof t?Object(y["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},cs={mixins:[v.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(ao["isDate"])(e)||Array.isArray(e)&&e.every(ao["isDate"])}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return e>3?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return ss.concat(ss).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(ao["getStartDateOfMonth"])(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(ao["getFirstDayOfMonth"])(t),i=Object(ao["getDayCountOfMonth"])(t.getFullYear(),t.getMonth()),r=Object(ao["getDayCountOfMonth"])(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,s=this.tableRows,a=1,l=this.startDate,c=this.disabledDate,u=this.cellClassName,h="dates"===this.selectionMode?Object(y["coerceTruthyValueToArray"])(this.value):[],d=as(new Date),p=0;p<6;p++){var f=s[p];this.showWeekNumber&&(f[0]||(f[0]={type:"week",text:Object(ao["getWeekNumber"])(Object(ao["nextDate"])(l,7*p+1))}));for(var m=function(t){var s=f[e.showWeekNumber?t+1:t];s||(s={row:p,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var m=7*p+t,g=Object(ao["nextDate"])(l,m-o).getTime();s.inRange=g>=as(e.minDate)&&g<=as(e.maxDate),s.start=e.minDate&&g===as(e.minDate),s.end=e.maxDate&&g===as(e.maxDate);var v=g===d;if(v&&(s.type="today"),p>=0&&p<=1){var _=n+o<0?7+n+o:n+o;t+7*p>=_?s.text=a++:(s.text=r-(_-t%7)+1+7*p,s.type="prev-month")}else a<=i?s.text=a++:(s.text=a++-i,s.type="next-month");var b=new Date(g);s.disabled="function"===typeof c&&c(b),s.selected=Object(y["arrayFind"])(h,(function(e){return e.getTime()===b.getTime()})),s.customClass="function"===typeof u&&u(b),e.$set(f,e.showWeekNumber?t+1:t,s)},g=0;g<7;g++)m(g);if("week"===this.selectionMode){var v=this.showWeekNumber?1:0,_=this.showWeekNumber?7:6,b=this.isWeekActive(f[v+1]);f[v].inRange=b,f[v].start=b,f[_].inRange=b,f[_].end=b}}return s}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){as(e)!==as(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){as(e)!==as(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(e.text)===n.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,i=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],r=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?r.push(e.type):(r.push("available"),"today"===e.type&&r.push("today")),"normal"===e.type&&i.some((function(n){return t.cellMatchesDate(e,n)}))&&r.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||r.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(r.push("in-range"),e.start&&r.push("start-date"),e.end&&r.push("end-date")),e.disabled&&r.push("disabled"),e.selected&&r.push("selected"),e.customClass&&r.push(e.customClass),r.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(ao["nextDate"])(this.startDate,n)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),i=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===i?11:i-1),t.setFullYear(0===i?n-1:n)),"next-month"===e.type&&(t.setMonth(11===i?0:i+1),t.setFullYear(11===i?n+1:n)),t.setDate(parseInt(e.text,10)),Object(ao["isDate"])(this.value)){var r=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,o=Object(ao["prevDate"])(this.value,r);return o.getTime()===t.getTime()}return!1},markRange:function(e,t){e=as(e),t=as(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.startDate,r=this.rows,o=0,s=r.length;o<s;o++)for(var a=r[o],l=0,c=a.length;l<c;l++)if(!this.showWeekNumber||0!==l){var u=a[l],h=7*o+l+(this.showWeekNumber?-1:0),d=Object(ao["nextDate"])(i,h-this.offsetDay).getTime();u.inRange=e&&d>=e&&d<=t,u.start=e&&d===e,u.end=t&&d===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,i)}}))}}},handleClick:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,i="week"===this.selectionMode?1:t.cellIndex,r=this.rows[n][i];if(!r.disabled&&"week"!==r.type){var o=this.getDateOfCell(n,i);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",o);else if("week"===this.selectionMode){var s=Object(ao["getWeekNumber"])(o),a=o.getFullYear()+"w"+s;this.$emit("pick",{year:o.getFullYear(),week:s,value:a,date:o})}else if("dates"===this.selectionMode){var l=this.value||[],c=r.selected?ls(l,(function(e){return e.getTime()===o.getTime()})):[].concat(l,[o]);this.$emit("pick",c)}}}}}},us=cs,hs=a(us,rs,os,!1,null,null,null);hs.options.__file="packages/date-picker/src/basic/date-table.vue";var ds=hs.exports,ps={mixins:[v.a],directives:{Clickoutside:$.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick((function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(e){"dates"===this.selectionMode&&this.value||"months"===this.selectionMode&&this.value||"years"===this.selectionMode&&this.value||(Object(ao["isDate"])(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(ao["isDate"])(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){return t.$refs.timepicker.adjustSpinners()}))},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e?this.currentView="date":"years"===e?this.currentView="year":"months"===e&&(this.currentView="month")}},methods:{proxyTimePickerDataProperties:function(){var e=this,t=function(t){e.$refs.timepicker.format=t},n=function(t){e.$refs.timepicker.value=t},i=function(t){e.$refs.timepicker.date=t},r=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",i),this.$watch("selectableRange",r),t(this.timeFormat),n(this.value),i(this.date),r(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(e)if(Array.isArray(e)){var o=e.map((function(e){return t.showTime?Object(ao["clearMilliseconds"])(e):Object(ao["clearTime"])(e)}));this.$emit.apply(this,["pick",o].concat(i))}else this.$emit.apply(this,["pick",this.showTime?Object(ao["clearMilliseconds"])(e):Object(ao["clearTime"])(e)].concat(i));else this.$emit.apply(this,["pick",e].concat(i));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(ao["prevMonth"])(this.date)},nextMonth:function(){this.date=Object(ao["nextMonth"])(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(ao["prevYear"])(this.date,10):this.date=Object(ao["prevYear"])(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(ao["nextYear"])(this.date,10):this.date=Object(ao["nextYear"])(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){if(Object(ao["isDate"])(e)){var i=this.value?Object(ao["modifyTime"])(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):Object(ao["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=i,this.emit(this.date,!0)}else this.emit(e,!0);n||(this.timePickerVisible=t)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(e){"month"===this.selectionMode?(this.date=Object(ao["modifyDate"])(this.date,this.year,e,1),this.emit(this.date)):"months"===this.selectionMode?this.emit(e,!0):(this.date=Object(ao["changeYearMonthAndClampDate"])(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){if("day"===this.selectionMode){var t=this.value?Object(ao["modifyDate"])(this.value,e.getFullYear(),e.getMonth(),e.getDate()):Object(ao["modifyWithTimeString"])(e,this.defaultTime);this.checkDateWithinRange(t)||(t=Object(ao["modifyDate"])(this.selectableRange[0][0],e.getFullYear(),e.getMonth(),e.getDate())),this.date=t,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(e.date):"dates"===this.selectionMode&&this.emit(e,!0)},handleYearPick:function(e){"year"===this.selectionMode?(this.date=Object(ao["modifyDate"])(this.date,e,0,1),this.emit(this.date)):"years"===this.selectionMode?this.emit(e,!0):(this.date=Object(ao["changeYearMonthAndClampDate"])(this.date,e,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode||"months"===this.selectionMode||"years"===this.selectionMode)this.emit(this.value);else{var e=this.value?this.value:Object(ao["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=new Date(e),this.emit(e)}},resetView:function(){"month"===this.selectionMode||"months"===this.selectionMode?this.currentView="month":"year"===this.selectionMode||"years"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode,n=[38,40,37,39];this.visible&&!this.timePickerVisible&&(-1!==n.indexOf(t)&&(this.handleKeyControl(t),e.stopPropagation(),e.preventDefault()),13===t&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(e){var t={year:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setFullYear(e.getFullYear()+t)}},month:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setMonth(e.getMonth()+t)}},week:{38:-1,40:1,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+7*t)}},day:{38:-7,40:7,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+t)}}},n=this.selectionMode,i=31536e6,r=this.date.getTime(),o=new Date(this.date.getTime());while(Math.abs(r-o.getTime())<=i){var s=t[n];if(s.offset(o,s[e]),"function"!==typeof this.disabledDate||!this.disabledDate(o)){this.date=o,this.$emit("pick",o,!0);break}}},handleVisibleTimeChange:function(e){var t=Object(ao["parseDate"])(e,this.timeFormat);t&&this.checkDateWithinRange(t)&&(this.date=Object(ao["modifyDate"])(t,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(e){var t=Object(ao["parseDate"])(e,this.dateFormat);if(t){if("function"===typeof this.disabledDate&&this.disabledDate(t))return;this.date=Object(ao["modifyTime"])(t,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(e){return e&&!isNaN(e)&&("function"!==typeof this.disabledDate||!this.disabledDate(e))&&this.checkDateWithinRange(e)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(e){return!(this.selectableRange.length>0)||Object(ao["timeWithinRange"])(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:No,YearTable:Go,MonthTable:is,DateTable:ds,ElInput:m.a,ElButton:se.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(ao["getWeekNumber"])(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode||"months"===this.selectionMode||"years"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(ao["formatDate"])(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(ao["formatDate"])(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"===this.currentView){var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(t+9)+" "+e:t+" - "+(t+9)}return this.year+" "+e},timeFormat:function(){return this.format?Object(ao["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ao["extractDateFormat"])(this.format):"yyyy-MM-dd"}}},fs=ps,ms=a(fs,To,Mo,!1,null,null,null);ms.options.__file="packages/date-picker/src/panel/date.vue";var gs=ms.exports,vs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),value:e.minVisibleDate},on:{input:function(t){return e.handleDateInput(t,"min")},change:function(t){return e.handleDateChange(t,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),value:e.minVisibleTime},on:{focus:function(t){e.minTimePickerVisible=!0},input:function(t){return e.handleTimeInput(t,"min")},change:function(t){return e.handleTimeChange(t,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.minTimePickerVisible},on:{pick:e.handleMinTimePick,mounted:function(t){e.$refs.minTimePicker.format=e.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),value:e.maxVisibleDate,readonly:!e.minDate},on:{input:function(t){return e.handleDateInput(t,"max")},change:function(t){return e.handleDateChange(t,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),value:e.maxVisibleTime,readonly:!e.minDate},on:{focus:function(t){e.minDate&&(e.maxTimePickerVisible=!0)},input:function(t){return e.handleTimeInput(t,"max")},change:function(t){return e.handleTimeChange(t,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.maxTimePickerVisible},on:{pick:e.handleMaxTimePick,mounted:function(t){e.$refs.maxTimePicker.format=e.timeFormat}}})],1)])]):e._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevMonth}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.leftNextMonth}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.rightPrevMonth}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:e.rightNextMonth}}),n("div",[e._v(e._s(e.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2),e.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.handleClear}},[e._v("\n        "+e._s(e.t("el.datepicker.clear"))+"\n      ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm(!1)}}},[e._v("\n        "+e._s(e.t("el.datepicker.confirm"))+"\n      ")])],1):e._e()])])},ys=[];vs._withStripped=!0;var _s=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(ao["nextDate"])(new Date(e),1)]:[new Date,Object(ao["nextDate"])(new Date,1)]},bs={mixins:[v.a],directives:{Clickoutside:$.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(ao["formatDate"])(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(ao["formatDate"])(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(ao["formatDate"])(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(ao["formatDate"])(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(ao["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ao["extractDateFormat"])(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ao["nextMonth"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(t.$refs.maxTimePicker&&t.maxDate&&t.maxDate<t.minDate){var e="HH:mm:ss";t.$refs.maxTimePicker.selectableRange=[[Object(ao["parseDate"])(Object(ao["formatDate"])(t.minDate,e),e),Object(ao["parseDate"])("23:59:59",e)]]}})),e&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=e,this.$refs.minTimePicker.value=e)},maxDate:function(e){this.dateUserInput.max=null,this.timeUserInput.max=null,e&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=e,this.$refs.maxTimePicker.value=e)},minTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.minTimePicker.date=t.minDate,t.$refs.minTimePicker.value=t.minDate,t.$refs.minTimePicker.adjustSpinners()}))},maxTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.maxTimePicker.date=t.maxDate,t.$refs.maxTimePicker.value=t.maxDate,t.$refs.maxTimePicker.adjustSpinners()}))},value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(ao["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(ao["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.minDate.getMonth(),i=this.maxDate.getFullYear(),r=this.maxDate.getMonth();this.rightDate=t===i&&n===r?Object(ao["nextMonth"])(this.maxDate):this.maxDate}else this.rightDate=Object(ao["nextMonth"])(this.leftDate);else this.leftDate=_s(this.defaultValue)[0],this.rightDate=Object(ao["nextMonth"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=_s(e),n=t[0],i=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&this.unlinkPanels?i:Object(ao["nextMonth"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=_s(this.defaultValue)[0],this.rightDate=Object(ao["nextMonth"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleDateInput:function(e,t){if(this.dateUserInput[t]=e,e.length===this.dateFormat.length){var n=Object(ao["parseDate"])(e,this.dateFormat);if(n){if("function"===typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===t?(this.minDate=Object(ao["modifyDate"])(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(ao["nextMonth"])(this.leftDate))):(this.maxDate=Object(ao["modifyDate"])(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(ao["prevMonth"])(n)))}}},handleDateChange:function(e,t){var n=Object(ao["parseDate"])(e,this.dateFormat);n&&("min"===t?(this.minDate=Object(ao["modifyDate"])(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(ao["modifyDate"])(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(e,t){var n=this;if(this.timeUserInput[t]=e,e.length===this.timeFormat.length){var i=Object(ao["parseDate"])(e,this.timeFormat);i&&("min"===t?(this.minDate=Object(ao["modifyTime"])(this.minDate,i.getHours(),i.getMinutes(),i.getSeconds()),this.$nextTick((function(e){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(ao["modifyTime"])(this.maxDate,i.getHours(),i.getMinutes(),i.getSeconds()),this.$nextTick((function(e){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(e,t){var n=Object(ao["parseDate"])(e,this.timeFormat);n&&("min"===t?(this.minDate=Object(ao["modifyTime"])(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(ao["modifyTime"])(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=Object(ao["modifyWithTimeString"])(e.minDate,i[0]),o=Object(ao["modifyWithTimeString"])(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout((function(){t.maxDate=o,t.minDate=r}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Object(ao["modifyTime"])(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(e,t,n){this.maxDate&&e&&(this.maxDate=Object(ao["modifyTime"])(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.maxTimePickerVisible=t),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(ao["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ao["nextMonth"])(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(ao["prevMonth"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ao["nextMonth"])(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(ao["nextYear"])(this.rightDate):(this.leftDate=Object(ao["nextYear"])(this.leftDate),this.rightDate=Object(ao["nextMonth"])(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(ao["nextMonth"])(this.rightDate):(this.leftDate=Object(ao["nextMonth"])(this.leftDate),this.rightDate=Object(ao["nextMonth"])(this.leftDate))},leftNextYear:function(){this.leftDate=Object(ao["nextYear"])(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(ao["nextMonth"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ao["prevYear"])(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(ao["prevMonth"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(ao["isDate"])(e[0])&&Object(ao["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:No,DateTable:ds,ElInput:m.a,ElButton:se.a}},xs=bs,ws=a(xs,vs,ys,!1,null,null,null);ws.options.__file="packages/date-picker/src/panel/date-range.vue";var Cs=ws.exports,ks=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("div",[e._v(e._s(e.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2)])])},Ss=[];ks._withStripped=!0;var Es=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(ao["nextMonth"])(new Date(e))]:[new Date,Object(ao["nextMonth"])(new Date)]},Ts={mixins:[v.a],directives:{Clickoutside:$.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ao["nextYear"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(ao["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(ao["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=t===n?Object(ao["nextYear"])(this.maxDate):this.maxDate}else this.rightDate=Object(ao["nextYear"])(this.leftDate);else this.leftDate=Es(this.defaultValue)[0],this.rightDate=Object(ao["nextYear"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=Es(e),n=t[0],i=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==i.getFullYear()&&this.unlinkPanels?i:Object(ao["nextYear"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Es(this.defaultValue)[0],this.rightDate=Object(ao["nextYear"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=Object(ao["modifyWithTimeString"])(e.minDate,i[0]),o=Object(ao["modifyWithTimeString"])(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout((function(){t.maxDate=o,t.minDate=r}),10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(ao["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ao["prevYear"])(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(ao["nextYear"])(this.leftDate)),this.rightDate=Object(ao["nextYear"])(this.rightDate)},leftNextYear:function(){this.leftDate=Object(ao["nextYear"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ao["prevYear"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(ao["isDate"])(e[0])&&Object(ao["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:is,ElInput:m.a,ElButton:se.a}},Ms=Ts,As=a(Ms,ks,Ss,!1,null,null,null);As.options.__file="packages/date-picker/src/panel/month-range.vue";var Os=As.exports,Is=function(e){return"daterange"===e||"datetimerange"===e?Cs:"monthrange"===e?Os:gs},Ds={mixins:[Eo],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=Is(e),this.mountPicker()):this.panel=Is(e)}},created:function(){this.panel=Is(this.type)},install:function(e){e.component(Ds.name,Ds)}},Ps=Ds,zs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:e.popperClass,style:{width:e.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},e._l(e.items,(function(t){return n("div",{key:t.value,staticClass:"time-select-item",class:{selected:e.value===t.value,disabled:t.disabled,default:t.value===e.defaultValue},attrs:{disabled:t.disabled},on:{click:function(n){e.handleClick(t)}}},[e._v(e._s(t.value))])})),0)],1)])},Ls=[];zs._withStripped=!0;var Bs=function(e){var t=(e||"").split(":");if(t.length>=2){var n=parseInt(t[0],10),i=parseInt(t[1],10);return{hours:n,minutes:i}}return null},Fs=function(e,t){var n=Bs(e),i=Bs(t),r=n.minutes+60*n.hours,o=i.minutes+60*i.hours;return r===o?0:r>o?1:-1},Rs=function(e){return(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)},$s=function(e,t){var n=Bs(e),i=Bs(t),r={hours:n.hours,minutes:n.minutes};return r.minutes+=i.minutes,r.hours+=i.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,Rs(r)},Ns={components:{ElScrollbar:H.a},watch:{value:function(e){var t=this;e&&this.$nextTick((function(){return t.scrollToOption()}))}},methods:{handleClick:function(e){e.disabled||this.$emit("pick",e.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",t=this.$refs.popper.querySelector(".el-picker-panel__content");ni()(t,t.querySelector(e))},handleMenuEnter:function(){var e=this,t=-1!==this.items.map((function(e){return e.value})).indexOf(this.value),n=-1!==this.items.map((function(e){return e.value})).indexOf(this.defaultValue),i=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return e.scrollToOption(i)}))},scrollDown:function(e){var t=this.items,n=t.length,i=t.length,r=t.map((function(e){return e.value})).indexOf(this.value);while(i--)if(r=(r+e+n)%n,!t[r].disabled)return void this.$emit("pick",t[r].value,!0)},isValidValue:function(e){return-1!==this.items.filter((function(e){return!e.disabled})).map((function(e){return e.value})).indexOf(e)},handleKeydown:function(e){var t=e.keyCode;if(38===t||40===t){var n={40:1,38:-1},i=n[t.toString()];return this.scrollDown(i),void e.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var e=this.start,t=this.end,n=this.step,i=[];if(e&&t&&n){var r=e;while(Fs(r,t)<=0)i.push({value:r,disabled:Fs(r,this.minTime||"-1:-1")<=0||Fs(r,this.maxTime||"100:100")>=0}),r=$s(r,n)}return i}}},js=Ns,Vs=a(js,zs,Ls,!1,null,null,null);Vs.options.__file="packages/date-picker/src/panel/time-select.vue";var Us=Vs.exports,qs={mixins:[Eo],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=Us},install:function(e){e.component(qs.name,qs)}},Hs=qs,Ws=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.minDate},on:{change:e.handleMinChange,"select-range":e.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.maxDate},on:{change:e.handleMaxChange,"select-range":e.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(t){e.handleCancel()}}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Gs=[];Ws._withStripped=!0;var Zs=Object(ao["parseDate"])("00:00:00","HH:mm:ss"),Xs=Object(ao["parseDate"])("23:59:59","HH:mm:ss"),Ks=function(e){return Object(ao["modifyDate"])(Zs,e.getFullYear(),e.getMonth(),e.getDate())},Ys=function(e){return Object(ao["modifyDate"])(Xs,e.getFullYear(),e.getMonth(),e.getDate())},Js=function(e,t){return new Date(Math.min(e.getTime()+t,Ys(e).getTime()))},Qs={mixins:[v.a],components:{TimeSpinner:Bo},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=Js(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=Js(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=Object(ao["clearMilliseconds"])(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(ao["clearMilliseconds"])(e),this.handleChange()},handleChange:function(){this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[Ks(this.minDate),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Ys(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(ao["limitTimeRange"])(this.minDate,t,this.format),this.maxDate=Object(ao["limitTimeRange"])(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],e)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(e){var t=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),i=t.indexOf(this.selectionRange[0]),r=(i+e+t.length)%t.length,o=t.length/2;r<o?this.$refs.minSpinner.emitSelectRange(n[r]):this.$refs.maxSpinner.emitSelectRange(n[r-o])},isValidValue:function(e){return Array.isArray(e)&&Object(ao["timeWithinRange"])(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(ao["timeWithinRange"])(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var i=n[t];return this.changeSelectionRange(i),void e.preventDefault()}if(38===t||40===t){var r=n[t];return this.spinner.scrollDown(r),void e.preventDefault()}}}},ea=Qs,ta=a(ea,Ws,Gs,!1,null,null,null);ta.options.__file="packages/date-picker/src/panel/time-range.vue";var na=ta.exports,ia={mixins:[Eo],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(e){this.picker?(this.unmountPicker(),this.type=e?"timerange":"time",this.panel=e?na:No,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?na:No)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?na:No},install:function(e){e.component(ia.name,ia)}},ra=ia,oa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},sa=[];oa._withStripped=!0;var aa={name:"ElPopover",mixins:[U.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(y["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(Re["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(Re["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(Re["on"])(n,"focusin",this.handleFocus),Object(Re["on"])(t,"focusout",this.handleBlur),Object(Re["on"])(n,"focusout",this.handleBlur)),Object(Re["on"])(t,"keydown",this.handleKeydown),Object(Re["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(Re["on"])(t,"click",this.doToggle),Object(Re["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(Re["on"])(t,"mouseenter",this.handleMouseEnter),Object(Re["on"])(n,"mouseenter",this.handleMouseEnter),Object(Re["on"])(t,"mouseleave",this.handleMouseLeave),Object(Re["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(Re["on"])(t,"focusin",this.doShow),Object(Re["on"])(t,"focusout",this.doClose)):(Object(Re["on"])(t,"mousedown",this.doShow),Object(Re["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(Re["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(Re["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(Re["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(Re["off"])(e,"click",this.doToggle),Object(Re["off"])(e,"mouseup",this.doClose),Object(Re["off"])(e,"mousedown",this.doShow),Object(Re["off"])(e,"focusin",this.doShow),Object(Re["off"])(e,"focusout",this.doClose),Object(Re["off"])(e,"mousedown",this.doShow),Object(Re["off"])(e,"mouseup",this.doClose),Object(Re["off"])(e,"mouseleave",this.handleMouseLeave),Object(Re["off"])(e,"mouseenter",this.handleMouseEnter),Object(Re["off"])(document,"click",this.handleDocumentClick)}},la=aa,ca=a(la,oa,sa,!1,null,null,null);ca.options.__file="packages/popover/src/main.vue";var ua=ca.exports,ha=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},da={bind:function(e,t,n){ha(e,t,n)},inserted:function(e,t,n){ha(e,t,n)}};Vi.a.directive("popover",da),ua.install=function(e){e.directive("popover",da),e.component(ua.name,ua)},ua.directive=da;var pa=ua,fa={name:"ElTooltip",mixins:[U.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(y["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new Vi.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=F()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(Re["on"])(this.referenceElm,"mouseenter",this.show),Object(Re["on"])(this.referenceElm,"mouseleave",this.hide),Object(Re["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(Re["on"])(this.referenceElm,"blur",this.handleBlur),Object(Re["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(Re["addClass"])(this.referenceElm,"focusing"):Object(Re["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)if(e[n]&&e[n].tag){t=e[n];break}return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(Re["off"])(e,"mouseenter",this.show),Object(Re["off"])(e,"mouseleave",this.hide),Object(Re["off"])(e,"focus",this.handleFocus),Object(Re["off"])(e,"blur",this.handleBlur),Object(Re["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(fa.name,fa)}},ma=fa,ga=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{staticClass:"el-message-box",class:[e.customClass,e.center&&"el-message-box--center"]},[null!==e.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[e.icon&&e.center?n("div",{class:["el-message-box__status",e.icon]}):e._e(),n("span",[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(t){e.handleAction(e.distinguishCancelAndClose?"close":"cancel")},keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction(e.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):e._e()]):e._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[e.icon&&!e.center&&""!==e.message?n("div",{class:["el-message-box__status",e.icon]}):e._e(),""!==e.message?n("div",{staticClass:"el-message-box__message"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:e.inputType,placeholder:e.inputPlaceholder},nativeOn:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputEnter(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:e.editorErrorMessage?"visible":"hidden"}},[e._v(e._s(e.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[e.showCancelButton?n("el-button",{class:[e.cancelButtonClasses],attrs:{loading:e.cancelButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("cancel")}},nativeOn:{click:function(t){e.handleAction("cancel")}}},[e._v("\n          "+e._s(e.cancelButtonText||e.t("el.messagebox.cancel"))+"\n        ")]):e._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[e.confirmButtonClasses],attrs:{loading:e.confirmButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("confirm")}},nativeOn:{click:function(t){e.handleAction("confirm")}}},[e._v("\n          "+e._s(e.confirmButtonText||e.t("el.messagebox.confirm"))+"\n        ")])],1)])])])},va=[];ga._withStripped=!0;var ya=n(12),_a=n.n(ya),ba=n(40),xa=n.n(ba),wa=void 0,Ca={success:"success",info:"info",warning:"warning",error:"error"},ka={mixins:[k.a,v.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:m.a,ElButton:se.a},computed:{icon:function(){var e=this.type,t=this.iconClass;return t||(e&&Ca[e]?"el-icon-"+Ca[e]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var e=this,t=this.uid;return function(){e.$nextTick((function(){t===e.uid&&e.doClose()}))}},doClose:function(){var e=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),wa.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){e.action&&e.callback(e.action,e)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(e){("prompt"!==this.$type||"confirm"!==e||this.validate())&&(this.action=e,"function"===typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(e,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(ya["t"])("el.messagebox.error"),Object(Re["addClass"])(this.getInputElement(),"invalid"),!1;var t=this.inputValidator;if("function"===typeof t){var n=t(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(ya["t"])("el.messagebox.error"),Object(Re["addClass"])(this.getInputElement(),"invalid"),!1;if("string"===typeof n)return this.editorErrorMessage=n,Object(Re["addClass"])(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(Re["removeClass"])(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),t=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||t},getInputElement:function(){var e=this.$refs.input.$refs;return e.input||e.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(n){"prompt"===t.$type&&null!==e&&t.validate()}))}},visible:function(e){var t=this;e&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick((function(){t.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,wa=new xa.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(e?setTimeout((function(){t.$refs.input&&t.$refs.input.$el&&t.getInputElement().focus()}),500):(this.editorErrorMessage="",Object(Re["removeClass"])(this.getInputElement(),"invalid")))}},mounted:function(){var e=this;this.$nextTick((function(){e.closeOnHashChange&&window.addEventListener("hashchange",e.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout((function(){wa.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},Sa=ka,Ea=a(Sa,ga,va,!1,null,null,null);Ea.options.__file="packages/message-box/src/main.vue";var Ta=Ea.exports,Ma=n(22),Aa="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},Oa={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},Ia=Vi.a.extend(Ta),Da=void 0,Pa=void 0,za=[],La=function(e){if(Da){var t=Da.callback;"function"===typeof t&&(Pa.showInput?t(Pa.inputValue,e):t(e)),Da.resolve&&("confirm"===e?Pa.showInput?Da.resolve({value:Pa.inputValue,action:e}):Da.resolve(e):!Da.reject||"cancel"!==e&&"close"!==e||Da.reject(e))}},Ba=function(){Pa=new Ia({el:document.createElement("div")}),Pa.callback=La},Fa=function e(){if(Pa||Ba(),Pa.action="",(!Pa.visible||Pa.closeTimer)&&za.length>0){Da=za.shift();var t=Da.options;for(var n in t)t.hasOwnProperty(n)&&(Pa[n]=t[n]);void 0===t.callback&&(Pa.callback=La);var i=Pa.callback;Pa.callback=function(t,n){i(t,n),e()},Object(Ma["isVNode"])(Pa.message)?(Pa.$slots.default=[Pa.message],Pa.message=null):delete Pa.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(e){void 0===Pa[e]&&(Pa[e]=!0)})),document.body.appendChild(Pa.$el),Vi.a.nextTick((function(){Pa.visible=!0}))}},Ra=function e(t,n){if(!Vi.a.prototype.$isServer){if("string"===typeof t||Object(Ma["isVNode"])(t)?(t={message:t},"string"===typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!==typeof Promise)return new Promise((function(i,r){za.push({options:St()({},Oa,e.defaults,t),callback:n,resolve:i,reject:r}),Fa()}));za.push({options:St()({},Oa,e.defaults,t),callback:n}),Fa()}};Ra.setDefaults=function(e){Ra.defaults=e},Ra.alert=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Aa(t))?(n=t,t=""):void 0===t&&(t=""),Ra(St()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Ra.confirm=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Aa(t))?(n=t,t=""):void 0===t&&(t=""),Ra(St()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},Ra.prompt=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Aa(t))?(n=t,t=""):void 0===t&&(t=""),Ra(St()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Ra.close=function(){Pa.doClose(),Pa.visible=!1,za=[],Da=null};var $a=Ra,Na=$a,ja=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[e._t("default")],2)},Va=[];ja._withStripped=!0;var Ua={name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var e=this.$el.querySelectorAll(".el-breadcrumb__item");e.length&&e[e.length-1].setAttribute("aria-current","page")}},qa=Ua,Ha=a(qa,ja,Va,!1,null,null,null);Ha.options.__file="packages/breadcrumb/src/breadcrumb.vue";var Wa=Ha.exports;Wa.install=function(e){e.component(Wa.name,Wa)};var Ga=Wa,Za=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-breadcrumb__item"},[n("span",{ref:"link",class:["el-breadcrumb__inner",e.to?"is-link":""],attrs:{role:"link"}},[e._t("default")],2),e.separatorClass?n("i",{staticClass:"el-breadcrumb__separator",class:e.separatorClass}):n("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[e._v(e._s(e.separator))])])},Xa=[];Za._withStripped=!0;var Ka={name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var e=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var t=this.$refs.link;t.setAttribute("role","link"),t.addEventListener("click",(function(t){var n=e.to,i=e.$router;n&&i&&(e.replace?i.replace(n):i.push(n))}))}},Ya=Ka,Ja=a(Ya,Za,Xa,!1,null,null,null);Ja.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var Qa=Ja.exports;Qa.install=function(e){e.component(Qa.name,Qa)};var el=Qa,tl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"el-form",class:[e.labelPosition?"el-form--label-"+e.labelPosition:"",{"el-form--inline":e.inline}]},[e._t("default")],2)},nl=[];tl._withStripped=!0;var il={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(e){e.removeValidateEvents(),e.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var e=Math.max.apply(Math,this.potentialLabelWidthArr);return e?e+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var e=this;this.$on("el.form.addField",(function(t){t&&e.fields.push(t)})),this.$on("el.form.removeField",(function(t){t.prop&&e.fields.splice(e.fields.indexOf(t),1)}))},methods:{resetFields:function(){this.model?this.fields.forEach((function(e){e.resetField()})):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length?"string"===typeof e?this.fields.filter((function(t){return e===t.prop})):this.fields.filter((function(t){return e.indexOf(t.prop)>-1})):this.fields;t.forEach((function(e){e.clearValidate()}))},validate:function(e){var t=this;if(this.model){var n=void 0;"function"!==typeof e&&window.Promise&&(n=new window.Promise((function(t,n){e=function(e,i){e?t(e):n(i)}})));var i=!0,r=0;0===this.fields.length&&e&&e(!0);var o={};return this.fields.forEach((function(n){n.validate("",(function(n,s){n&&(i=!1),o=St()({},o,s),"function"===typeof e&&++r===t.fields.length&&e(i,o)}))})),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(e,t){e=[].concat(e);var n=this.fields.filter((function(t){return-1!==e.indexOf(t.prop)}));n.length?n.forEach((function(e){e.validate("",t)})):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(e){var t=this.potentialLabelWidthArr.indexOf(e);if(-1===t)throw new Error("[ElementForm]unpected width ",e);return t},registerLabelWidth:function(e,t){if(e&&t){var n=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(n,1,e)}else e&&this.potentialLabelWidthArr.push(e)},deregisterLabelWidth:function(e){var t=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(t,1)}}},rl=il,ol=a(rl,tl,nl,!1,null,null,null);ol.options.__file="packages/form/src/form.vue";var sl=ol.exports;sl.install=function(e){e.component(sl.name,sl)};var al=sl,ll=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":e.elForm&&e.elForm.statusIcon,"is-error":"error"===e.validateState,"is-validating":"validating"===e.validateState,"is-success":"success"===e.validateState,"is-required":e.isRequired||e.required,"is-no-asterisk":e.elForm&&e.elForm.hideRequiredAsterisk},e.sizeClass?"el-form-item--"+e.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":e.labelStyle&&"auto"===e.labelStyle.width,"update-all":"auto"===e.form.labelWidth}},[e.label||e.$slots.label?n("label",{staticClass:"el-form-item__label",style:e.labelStyle,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label+e.form.labelSuffix))])],2):e._e()]),n("div",{staticClass:"el-form-item__content",style:e.contentStyle},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===e.validateState&&e.showMessage&&e.form.showMessage?e._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"===typeof e.inlineMessage?e.inlineMessage:e.elForm&&e.elForm.inlineMessage||!1}},[e._v("\n          "+e._s(e.validateMessage)+"\n        ")])],{error:e.validateMessage}):e._e()],2)],2)],1)},cl=[];ll._withStripped=!0;var ul,hl,dl=n(41),pl=n.n(dl),fl={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var e=arguments[0],t=this.$slots.default;if(!t)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,i={};if(n&&"auto"!==n){var r=parseInt(n,10)-this.computedWidth;r&&(i.marginLeft=r+"px")}return e("div",{class:"el-form-item__label-wrap",style:i},[t])}return t[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var e=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(e))}return 0},updateLabelWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===e?this.computedWidth=this.getLabelWidth():"remove"===e&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(e,t){this.updateAll&&(this.elForm.registerLabelWidth(e,t),this.elFormItem.updateComputedLabelWidth(e))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},ml=fl,gl=a(ml,ul,hl,!1,null,null,null);gl.options.__file="packages/form/src/label-wrap.vue";var vl=gl.exports,yl={name:"ElFormItem",componentName:"ElFormItem",mixins:[M.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:vl},watch:{error:{immediate:!0,handler:function(e){this.validateMessage=e,this.validateState=e?"error":""}},validateStatus:function(e){this.validateState=e},rules:function(e){e&&0!==e.length||void 0!==this.required||this.clearValidate()}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var e={};if("top"===this.form.labelPosition)return e;var t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t),e},contentStyle:function(){var e={},t=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!t&&!this.labelWidth&&this.isNested)return e;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=n,e},form:function(){var e=this.$parent,t=e.$options.componentName;while("ElForm"!==t)"ElFormItem"===t&&(this.isNested=!0),e=e.$parent,t=e.$options.componentName;return e},fieldValue:function(){var e=this.form.model;if(e&&this.prop){var t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/,".")),Object(y["getPropByPath"])(e,t,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every((function(e){return!e.required||(t=!0,!1)})),t},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y["noop"];this.validateDisabled=!1;var i=this.getFilteredRule(e);if((!i||0===i.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var r={};i&&i.length>0&&i.forEach((function(e){delete e.trigger})),r[this.prop]=i;var o=new pl.a(r),s={};s[this.prop]=this.fieldValue,o.validate(s,{firstFields:!0},(function(e,i){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,i),t.elForm&&t.elForm.$emit("validate",t.prop,!e,t.validateMessage||null)}))},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.form.model,n=this.fieldValue,i=this.prop;-1!==i.indexOf(":")&&(i=i.replace(/:/,"."));var r=Object(y["getPropByPath"])(t,i,!0);this.validateDisabled=!0,Array.isArray(n)?r.o[r.k]=[].concat(this.initialValue):r.o[r.k]=this.initialValue,this.$nextTick((function(){e.validateDisabled=!1})),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var e=this.form.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required}:[],i=Object(y["getPropByPath"])(e,this.prop||"");return e=e?i.o[this.prop||""]||i.v:[],[].concat(t||e||[]).concat(n)},getFilteredRule:function(e){var t=this.getRules();return t.filter((function(t){return!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.indexOf(e)>-1:t.trigger===e)})).map((function(e){return St()({},e)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(e){this.computedLabelWidth=e?e+"px":""},addValidateEvents:function(){var e=this.getRules();(e.length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var e=this.fieldValue;Array.isArray(e)&&(e=[].concat(e)),Object.defineProperty(this,"initialValue",{value:e}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},_l=yl,bl=a(_l,ll,cl,!1,null,null,null);bl.options.__file="packages/form/src/form-item.vue";var xl=bl.exports;xl.install=function(e){e.component(xl.name,xl)};var wl=xl,Cl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tabs__active-bar",class:"is-"+e.rootTabs.tabPosition,style:e.barStyle})},kl=[];Cl._withStripped=!0;var Sl={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,t={},n=0,i=0,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===r?"x":"y",s=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))};this.tabs.every((function(t,o){var a=Object(y["arrayFind"])(e.$parent.$refs.tabs||[],(function(e){return e.id.replace("tab-","")===t.paneName}));if(!a)return!1;if(t.active){i=a["client"+s(r)];var l=window.getComputedStyle(a);return"width"===r&&e.tabs.length>1&&(i-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===r&&(n+=parseFloat(l.paddingLeft)),!1}return n+=a["client"+s(r)],!0}));var a="translate"+s(o)+"("+n+"px)";return t[r]=i+"px",t.transform=a,t.msTransform=a,t.webkitTransform=a,t}}}},El=Sl,Tl=a(El,Cl,kl,!1,null,null,null);Tl.options.__file="packages/tabs/src/tab-bar.vue";var Ml=Tl.exports;function Al(){}var Ol,Il,Dl=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))},Pl={name:"TabNav",components:{TabBar:Ml},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:Al},onTabRemove:{type:Function,default:Al},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){var e=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y";return{transform:"translate"+e+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var e=this.$refs.navScroll["offset"+Dl(this.sizeName)],t=this.navOffset;if(t){var n=t>e?t-e:0;this.navOffset=n}},scrollNext:function(){var e=this.$refs.nav["offset"+Dl(this.sizeName)],t=this.$refs.navScroll["offset"+Dl(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var i=e-n>2*t?n+t:e-t;this.navOffset=i}},scrollToActiveTab:function(){if(this.scrollable){var e=this.$refs.nav,t=this.$el.querySelector(".is-active");if(t){var n=this.$refs.navScroll,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),s=i?e.offsetWidth-o.width:e.offsetHeight-o.height,a=this.navOffset,l=a;i?(r.left<o.left&&(l=a-(o.left-r.left)),r.right>o.right&&(l=a+r.right-o.right)):(r.top<o.top&&(l=a-(o.top-r.top)),r.bottom>o.bottom&&(l=a+(r.bottom-o.bottom))),l=Math.max(l,0),this.navOffset=Math.min(l,s)}}},update:function(){if(this.$refs.nav){var e=this.sizeName,t=this.$refs.nav["offset"+Dl(e)],n=this.$refs.navScroll["offset"+Dl(e)],i=this.navOffset;if(n<t){var r=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=r,this.scrollable.next=r+n<t,t-r<n&&(this.navOffset=t-n)}else this.scrollable=!1,i>0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,i=void 0,r=void 0;-1!==[37,38,39,40].indexOf(t)&&(r=e.currentTarget.querySelectorAll("[role=tab]"),i=Array.prototype.indexOf.call(r,e.target),n=37===t||38===t?0===i?r.length-1:i-1:i<r.length-1?i+1:0,r[n].focus(),r[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var e=this,t=document.visibilityState;"hidden"===t?this.focusable=!1:"visible"===t&&setTimeout((function(){e.focusable=!0}),50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var e=this;setTimeout((function(){e.focusable=!0}),50)}},updated:function(){this.update()},render:function(e){var t=this,n=this.type,i=this.panes,r=this.editable,o=this.stretch,s=this.onTabClick,a=this.onTabRemove,l=this.navStyle,c=this.scrollable,u=this.scrollNext,h=this.scrollPrev,d=this.changeTab,p=this.setFocus,f=this.removeFocus,m=c?[e("span",{class:["el-tabs__nav-prev",c.prev?"":"is-disabled"],on:{click:h}},[e("i",{class:"el-icon-arrow-left"})]),e("span",{class:["el-tabs__nav-next",c.next?"":"is-disabled"],on:{click:u}},[e("i",{class:"el-icon-arrow-right"})])]:null,g=this._l(i,(function(n,i){var o,l=n.name||n.index||i,c=n.isClosable||r;n.index=""+i;var u=c?e("span",{class:"el-icon-close",on:{click:function(e){a(n,e)}}}):null,h=n.$slots.label||n.label,d=n.active?0:-1;return e("div",{class:(o={"el-tabs__item":!0},o["is-"+t.rootTabs.tabPosition]=!0,o["is-active"]=n.active,o["is-disabled"]=n.disabled,o["is-closable"]=c,o["is-focus"]=t.isFocus,o),attrs:{id:"tab-"+l,"aria-controls":"pane-"+l,role:"tab","aria-selected":n.active,tabindex:d},key:"tab-"+l,ref:"tabs",refInFor:!0,on:{focus:function(){p()},blur:function(){f()},click:function(e){f(),s(n,l,e)},keydown:function(e){!c||46!==e.keyCode&&8!==e.keyCode||a(n,e)}}},[h,u])}));return e("div",{class:["el-tabs__nav-wrap",c?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[m,e("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[e("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,o&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:l,attrs:{role:"tablist"},on:{keydown:d}},[n?null:e("tab-bar",{attrs:{tabs:i}}),g])])])},mounted:function(){var e=this;Object(ei["addResizeListener"])(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout((function(){e.scrollToActiveTab()}),0)},beforeDestroy:function(){this.$el&&this.update&&Object(ei["removeResizeListener"])(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},zl=Pl,Ll=a(zl,Ol,Il,!1,null,null,null);Ll.options.__file="packages/tabs/src/tab-nav.vue";var Bl,Fl,Rl=Ll.exports,$l={name:"ElTabs",components:{TabNav:Rl},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(e){this.setCurrentName(e)},value:function(e){this.setCurrentName(e)},currentName:function(e){var t=this;this.$refs.nav&&this.$nextTick((function(){t.$refs.nav.$nextTick((function(e){t.$refs.nav.scrollToActiveTab()}))}))}},methods:{calcPaneInstances:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(e){return e.tag&&e.componentOptions&&"ElTabPane"===e.componentOptions.Ctor.options.name})),i=n.map((function(e){var t=e.componentInstance;return t})),r=!(i.length===this.panes.length&&i.every((function(t,n){return t===e.panes[n]})));(t||r)&&(this.panes=i)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(e,t,n){e.disabled||(this.setCurrentName(t),this.$emit("tab-click",e,n))},handleTabRemove:function(e,t){e.disabled||(t.stopPropagation(),this.$emit("edit",e.name,"remove"),this.$emit("tab-remove",e.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(e){var t=this,n=function(){t.currentName=e,t.$emit("input",e)};if(this.currentName!==e&&this.beforeLeave){var i=this.beforeLeave(e,this.currentName);i&&i.then?i.then((function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()}),(function(){})):!1!==i&&n()}else n()}},render:function(e){var t,n=this.type,i=this.handleTabClick,r=this.handleTabRemove,o=this.handleTabAdd,s=this.currentName,a=this.panes,l=this.editable,c=this.addable,u=this.tabPosition,h=this.stretch,d=l||c?e("span",{class:"el-tabs__new-tab",on:{click:o,keydown:function(e){13===e.keyCode&&o()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,p={props:{currentName:s,onTabClick:i,onTabRemove:r,editable:l,type:n,panes:a,stretch:h},ref:"nav"},f=e("div",{class:["el-tabs__header","is-"+u]},[d,e("tab-nav",p)]),m=e("div",{class:"el-tabs__content"},[this.$slots.default]);return e("div",{class:(t={"el-tabs":!0,"el-tabs--card":"card"===n},t["el-tabs--"+u]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==u?[f,m]:[m,f]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},Nl=$l,jl=a(Nl,Bl,Fl,!1,null,null,null);jl.options.__file="packages/tabs/src/tabs.vue";var Vl=jl.exports;Vl.install=function(e){e.component(Vl.name,Vl)};var Ul=Vl,ql=function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.lazy||e.loaded||e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!e.active,id:"pane-"+e.paneName,"aria-labelledby":"tab-"+e.paneName}},[e._t("default")],2):e._e()},Hl=[];ql._withStripped=!0;var Wl={name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var e=this.$parent.currentName===(this.name||this.index);return e&&(this.loaded=!0),e},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},Gl=Wl,Zl=a(Gl,ql,Hl,!1,null,null,null);Zl.options.__file="packages/tabs/src/tab-pane.vue";var Xl=Zl.exports;Xl.install=function(e){e.component(Xl.name,Xl)};var Kl,Yl,Jl=Xl,Ql={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],s=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?s:e("transition",{attrs:{name:"el-zoom-in-center"}},[s])}},ec=Ql,tc=a(ec,Kl,Yl,!1,null,null,null);tc.options.__file="packages/tag/src/tag.vue";var nc=tc.exports;nc.install=function(e){e.component(nc.name,nc)};var ic=nc,rc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":e.highlightCurrent,"is-dragging":!!e.dragState.draggingNode,"is-drop-not-allow":!e.dragState.allowDrop,"is-drop-inner":"inner"===e.dragState.dropType},attrs:{role:"tree"}},[e._l(e.root.childNodes,(function(t){return n("el-tree-node",{key:e.getNodeKey(t),attrs:{node:t,props:e.props,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent},on:{"node-expand":e.handleNodeExpand}})})),e.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[e._v(e._s(e.emptyText))])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},oc=[];rc._withStripped=!0;var sc="$treeNodeId",ac=function(e,t){t&&!t[sc]&&Object.defineProperty(t,sc,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},lc=function(e,t){return e?t[e]:t[sc]},cc=function(e,t){var n=e;while(n&&"BODY"!==n.tagName){if(n.__vue__&&n.__vue__.$options.name===t)return n.__vue__;n=n.parentNode}return null},uc=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function hc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var dc=function(e){for(var t=!0,n=!0,i=!0,r=0,o=e.length;r<o;r++){var s=e[r];(!0!==s.checked||s.indeterminate)&&(t=!1,s.disabled||(i=!1)),(!1!==s.checked||s.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:i,half:!t&&!n}},pc=function e(t){if(0!==t.childNodes.length&&!t.loading){var n=dc(t.childNodes),i=n.all,r=n.none,o=n.half;i?(t.checked=!0,t.indeterminate=!1):o?(t.checked=!1,t.indeterminate=!0):r&&(t.checked=!1,t.indeterminate=!1);var s=t.parent;s&&0!==s.level&&(t.store.checkStrictly||e(s))}},fc=function(e,t){var n=e.store.props,i=e.data||{},r=n[t];if("function"===typeof r)return r(i,e);if("string"===typeof r)return i[r];if("undefined"===typeof r){var o=i[t];return void 0===o?"":o}},mc=0,gc=function(){function e(t){for(var n in hc(this,e),this.id=mc++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var i=this.store;if(!i)throw new Error("[Node]store is required!");i.registerNode(this);var r=i.props;if(r&&"undefined"!==typeof r.isLeaf){var o=fc(this,"isLeaf");"boolean"===typeof o&&(this.isLeafByUser=o)}if(!0!==i.lazy&&this.data?(this.setData(this.data),i.defaultExpandAll&&(this.expanded=!0)):this.level>0&&i.lazy&&i.defaultExpandAll&&this.expand(),Array.isArray(this.data)||ac(this,this.data),this.data){var s=i.defaultExpandedKeys,a=i.key;a&&s&&-1!==s.indexOf(this.key)&&this.expand(null,i.autoExpandParent),a&&void 0!==i.currentNodeKey&&this.key===i.currentNodeKey&&(i.currentNode=this,i.currentNode.isCurrent=!0),i.lazy&&i._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(e){Array.isArray(e)||ac(this,e),this.data=e,this.childNodes=[];var t=void 0;t=0===this.level&&this.data instanceof Array?this.data:fc(this,"children")||[];for(var n=0,i=t.length;n<i;n++)this.insertChild({data:t[n]})},e.prototype.contains=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function n(i){for(var r=i.childNodes||[],o=!1,s=0,a=r.length;s<a;s++){var l=r[s];if(l===e||t&&n(l)){o=!0;break}}return o};return n(this)},e.prototype.remove=function(){var e=this.parent;e&&e.removeChild(this)},e.prototype.insertChild=function(t,n,i){if(!t)throw new Error("insertChild error: child is required.");if(!(t instanceof e)){if(!i){var r=this.getChildren(!0)||[];-1===r.indexOf(t.data)&&("undefined"===typeof n||n<0?r.push(t.data):r.splice(n,0,t.data))}St()(t,{parent:this,store:this.store}),t=new e(t)}t.level=this.level+1,"undefined"===typeof n||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()},e.prototype.insertBefore=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)},e.prototype.insertAfter=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)},e.prototype.removeChild=function(e){var t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);var i=this.childNodes.indexOf(e);i>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()},e.prototype.removeChildByData=function(e){for(var t=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===e){t=this.childNodes[n];break}t&&this.removeChild(t)},e.prototype.expand=function(e,t){var n=this,i=function(){if(t){var i=n.parent;while(i.level>0)i.expanded=!0,i=i.parent}n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData((function(e){e instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||pc(n),i())})):i()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){t.insertChild(St()({data:e},n),void 0,!0)}))},e.prototype.collapse=function(){this.expanded=!1},e.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},e.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||"undefined"===typeof this.isLeafByUser){var e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},e.prototype.setChecked=function(e,t,n,i){var r=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=dc(this.childNodes),s=o.all,a=o.allWithoutDisable;this.isLeaf||s||!a||(this.checked=!1,e=!1);var l=function(){if(t){for(var n=r.childNodes,o=0,s=n.length;o<s;o++){var a=n[o];i=i||!1!==e;var l=a.disabled?a.checked:i;a.setChecked(l,t,!0,i)}var c=dc(n),u=c.half,h=c.all;h||(r.checked=h,r.indeterminate=u)}};if(this.shouldLoadData())return void this.loadData((function(){l(),pc(r)}),{checked:!1!==e});l()}var c=this.parent;c&&0!==c.level&&(n||pc(c))}},e.prototype.getChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store.props,i="children";return n&&(i=n.children||"children"),void 0===t[i]&&(t[i]=null),e&&!t[i]&&(t[i]=[]),t[i]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map((function(e){return e.data})),i={},r=[];t.forEach((function(e,t){var o=e[sc],s=!!o&&Object(y["arrayFindIndex"])(n,(function(e){return e[sc]===o}))>=0;s?i[o]={index:t,data:e}:r.push({index:t,data:e})})),this.store.lazy||n.forEach((function(t){i[t[sc]]||e.removeChildByData(t)})),r.forEach((function(t){var n=t.index,i=t.data;e.insertChild({data:i},n)})),this.updateLeafState()},e.prototype.loadData=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)e&&e.call(this);else{this.loading=!0;var i=function(i){t.childNodes=[],t.doCreateChildren(i,n),t.loaded=!0,t.loading=!1,t.updateLeafState(),e&&e.call(t,i)};this.store.load(this,i)}},uc(e,[{key:"label",get:function(){return fc(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return fc(this,"disabled")}},{key:"nextSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}},{key:"previousSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}}]),e}(),vc=gc,yc="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};function _c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var bc=function(){function e(t){var n=this;for(var i in _c(this,e),this.currentNode=null,this.currentNodeKey=null,t)t.hasOwnProperty(i)&&(this[i]=t[i]);if(this.nodesMap={},this.root=new vc({data:this.data,store:this}),this.lazy&&this.load){var r=this.load;r(this.root,(function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}return e.prototype.filter=function(e){var t=this.filterNodeMethod,n=this.lazy,i=function i(r){var o=r.root?r.root.childNodes:r.childNodes;if(o.forEach((function(n){n.visible=t.call(n,e,n.data,n),i(n)})),!r.visible&&o.length){var s=!0;s=!o.some((function(e){return e.visible})),r.root?r.root.visible=!1===s:r.visible=!1===s}e&&(!r.visible||r.isLeaf||n||r.expand())};i(this)},e.prototype.setData=function(e){var t=e!==this.root.data;t?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},e.prototype.getNode=function(e){if(e instanceof vc)return e;var t="object"!==("undefined"===typeof e?"undefined":yc(e))?e:lc(this.key,e);return this.nodesMap[t]||null},e.prototype.insertBefore=function(e,t){var n=this.getNode(t);n.parent.insertBefore({data:e},n)},e.prototype.insertAfter=function(e,t){var n=this.getNode(t);n.parent.insertAfter({data:e},n)},e.prototype.remove=function(e){var t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))},e.prototype.append=function(e,t){var n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})},e.prototype._initDefaultCheckedNodes=function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach((function(t){var i=n[t];i&&i.setChecked(!0,!e.checkStrictly)}))},e.prototype._initDefaultCheckedNode=function(e){var t=this.defaultCheckedKeys||[];-1!==t.indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)},e.prototype.setDefaultCheckedKey=function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())},e.prototype.registerNode=function(e){var t=this.key;if(t&&e&&e.data){var n=e.key;void 0!==n&&(this.nodesMap[e.key]=e)}},e.prototype.deregisterNode=function(e){var t=this,n=this.key;n&&e&&e.data&&(e.childNodes.forEach((function(e){t.deregisterNode(e)})),delete this.nodesMap[e.key])},e.prototype.getCheckedNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],i=function i(r){var o=r.root?r.root.childNodes:r.childNodes;o.forEach((function(r){(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&n.push(r.data),i(r)}))};return i(this),n},e.prototype.getCheckedKeys=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(t).map((function(t){return(t||{})[e.key]}))},e.prototype.getHalfCheckedNodes=function(){var e=[],t=function t(n){var i=n.root?n.root.childNodes:n.childNodes;i.forEach((function(n){n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e},e.prototype.getHalfCheckedKeys=function(){var e=this;return this.getHalfCheckedNodes().map((function(t){return(t||{})[e.key]}))},e.prototype._getAllNodes=function(){var e=[],t=this.nodesMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},e.prototype.updateChildren=function(e,t){var n=this.nodesMap[e];if(n){for(var i=n.childNodes,r=i.length-1;r>=0;r--){var o=i[r];this.remove(o.data)}for(var s=0,a=t.length;s<a;s++){var l=t[s];this.append(l,n.data)}}},e.prototype._setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=this._getAllNodes().sort((function(e,t){return t.level-e.level})),r=Object.create(null),o=Object.keys(n);i.forEach((function(e){return e.setChecked(!1,!1)}));for(var s=0,a=i.length;s<a;s++){var l=i[s],c=l.data[e].toString(),u=o.indexOf(c)>-1;if(u){var h=l.parent;while(h&&h.level>0)r[h.data[e]]=!0,h=h.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),t&&function(){l.setChecked(!1,!1);var e=function e(t){var n=t.childNodes;n.forEach((function(t){t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(l)}())}else l.checked&&!r[c]&&l.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,i={};e.forEach((function(e){i[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,i={};e.forEach((function(e){i[e]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setDefaultExpandedKeys=function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach((function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)}))},e.prototype.setChecked=function(e,t,n){var i=this.getNode(e);i&&i.setChecked(!!t,n)},e.prototype.getCurrentNode=function(){return this.currentNode},e.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},e.prototype.setUserCurrentNode=function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)},e.prototype.setCurrentNodeKey=function(e){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),xc=bc,wc=function(){var e=this,t=this,n=t.$createElement,i=t._self._c||n;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!t.node.disabled,"is-checked":!t.node.disabled&&t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.draggable},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)},contextmenu:function(t){return e.handleContextMenu(t)},dragstart:function(e){return e.stopPropagation(),t.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),t.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),t.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),t.handleDrop(e)}}},[i("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[i("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"el-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick(e)}}}),t.showCheckbox?i("el-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?i("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),i("node-content",{attrs:{node:t.node}})],1),i("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?i("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,(function(e){return i("el-tree-node",{key:t.getNodeKey(e),attrs:{"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:e},on:{"node-expand":t.handleChildNodeExpand}})})),1):t._e()])],1)},Cc=[];wc._withStripped=!0;var kc={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[M.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:Ge.a,ElCheckbox:zi.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,i=this.node,r=i.data,o=i.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:i,data:r,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:i,data:r}):e("span",{class:"el-tree-node__label"},[i.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick((function(){return t.expanded=e})),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return lc(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var e=this,t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var i=n.props||{},r=i["children"]||"children";this.$watch("node.data."+r,(function(){e.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(t){e.node!==t&&e.node.collapse()}))}},Sc=kc,Ec=a(Sc,wc,Cc,!1,null,null,null);Ec.options.__file="packages/tree/src/tree-node.vue";var Tc=Ec.exports,Mc={name:"ElTree",mixins:[M.a],components:{ElTreeNode:Tc},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(ya["t"])("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every((function(e){var t=e.visible;return!t}))}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,(function(e){e.setAttribute("tabindex",-1)}))},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return lc(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.store.getNode(e);if(!t)return[];var n=[t.data],i=t.parent;while(i&&i!==this.root)n.push(i.data),i=i.parent;return n.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(e,t,n){this.store.setChecked(e,t,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t=e.target;if(-1!==t.className.indexOf("el-tree-node")){var n=e.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var i=this.treeItemArray.indexOf(t),r=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),r=38===n?0!==i?i-1:0:i<this.treeItemArray.length-1?i+1:0,this.treeItemArray[r].focus()),[37,39].indexOf(n)>-1&&(e.preventDefault(),t.click());var o=t.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&o&&(e.preventDefault(),o.click())}}},created:function(){var e=this;this.isTree=!0,this.store=new xc({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var t=this.dragState;this.$on("tree-node-drag-start",(function(n,i){if("function"===typeof e.allowDrag&&!e.allowDrag(i.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(r){}t.draggingNode=i,e.$emit("node-drag-start",i.node,n)})),this.$on("tree-node-drag-over",(function(n,i){var r=cc(n.target,"ElTreeNode"),o=t.dropNode;o&&o!==r&&Object(Re["removeClass"])(o.$el,"is-drop-inner");var s=t.draggingNode;if(s&&r){var a=!0,l=!0,c=!0,u=!0;"function"===typeof e.allowDrop&&(a=e.allowDrop(s.node,r.node,"prev"),u=l=e.allowDrop(s.node,r.node,"inner"),c=e.allowDrop(s.node,r.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(a||l||c)&&o!==r&&(o&&e.$emit("node-drag-leave",s.node,o.node,n),e.$emit("node-drag-enter",s.node,r.node,n)),(a||l||c)&&(t.dropNode=r),r.node.nextSibling===s.node&&(c=!1),r.node.previousSibling===s.node&&(a=!1),r.node.contains(s.node,!1)&&(l=!1),(s.node===r.node||s.node.contains(r.node))&&(a=!1,l=!1,c=!1);var h=r.$el.getBoundingClientRect(),d=e.$el.getBoundingClientRect(),p=void 0,f=a?l?.25:c?.45:1:-1,m=c?l?.75:a?.55:0:1,g=-9999,v=n.clientY-h.top;p=v<h.height*f?"before":v>h.height*m?"after":l?"inner":"none";var y=r.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),_=e.$refs.dropIndicator;"before"===p?g=y.top-d.top:"after"===p&&(g=y.bottom-d.top),_.style.top=g+"px",_.style.left=y.right-d.left+"px","inner"===p?Object(Re["addClass"])(r.$el,"is-drop-inner"):Object(Re["removeClass"])(r.$el,"is-drop-inner"),t.showDropIndicator="before"===p||"after"===p,t.allowDrop=t.showDropIndicator||u,t.dropType=p,e.$emit("node-drag-over",s.node,r.node,n)}})),this.$on("tree-node-drag-end",(function(n){var i=t.draggingNode,r=t.dropType,o=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",i&&o){var s={data:i.node.data};"none"!==r&&i.node.remove(),"before"===r?o.node.parent.insertBefore(s,o.node):"after"===r?o.node.parent.insertAfter(s,o.node):"inner"===r&&o.node.insertChild(s),"none"!==r&&e.store.registerNode(s),Object(Re["removeClass"])(o.$el,"is-drop-inner"),e.$emit("node-drag-end",i.node,o.node,r,n),"none"!==r&&e.$emit("node-drop",i.node,o.node,r,n)}i&&!o&&e.$emit("node-drag-end",i.node,null,r,n),t.showDropIndicator=!1,t.draggingNode=null,t.dropNode=null,t.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},Ac=Mc,Oc=a(Ac,rc,oc,!1,null,null,null);Oc.options.__file="packages/tree/src/tree.vue";var Ic=Oc.exports;Ic.install=function(e){e.component(Ic.name,Ic)};var Dc=Ic,Pc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?n("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),n("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?n("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e.$slots.default&&!e.description?n("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e.description&&!e.$slots.default?n("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){e.close()}}},[e._v(e._s(e.closeText))])])])])},zc=[];Pc._withStripped=!0;var Lc={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},Bc={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Lc[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Fc=Bc,Rc=a(Fc,Pc,zc,!1,null,null,null);Rc.options.__file="packages/alert/src/main.vue";var $c=Rc.exports;$c.install=function(e){e.component($c.name,$c)};var Nc=$c,jc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-notification",e.customClass,e.horizontalClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(t){e.clearTimer()},mouseleave:function(t){e.startTimer()},click:e.click}},[e.type||e.iconClass?n("i",{staticClass:"el-notification__icon",class:[e.typeClass,e.iconClass]}):e._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":e.typeClass||e.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:e._s(e.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.message,expression:"message"}],staticClass:"el-notification__content"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2),e.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(t){return t.stopPropagation(),e.close(t)}}}):e._e()])])])},Vc=[];jc._withStripped=!0;var Uc={success:"success",info:"info",warning:"warning",error:"error"},qc={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&Uc[this.type]?"el-icon-"+Uc[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var e;return e={},e[this.verticalProperty]=this.verticalOffset+"px",e}},watch:{closed:function(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"===typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){46===e.keyCode||8===e.keyCode?this.clearTimer():27===e.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Hc=qc,Wc=a(Hc,jc,Vc,!1,null,null,null);Wc.options.__file="packages/notification/src/main.vue";var Gc=Wc.exports,Zc=Vi.a.extend(Gc),Xc=void 0,Kc=[],Yc=1,Jc=function e(t){if(!Vi.a.prototype.$isServer){t=St()({},t);var n=t.onClose,i="notification_"+Yc++,r=t.position||"top-right";t.onClose=function(){e.close(i,n)},Xc=new Zc({data:t}),Object(Ma["isVNode"])(t.message)&&(Xc.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),Xc.id=i,Xc.$mount(),document.body.appendChild(Xc.$el),Xc.visible=!0,Xc.dom=Xc.$el,Xc.dom.style.zIndex=C["PopupManager"].nextZIndex();var o=t.offset||0;return Kc.filter((function(e){return e.position===r})).forEach((function(e){o+=e.$el.offsetHeight+16})),o+=16,Xc.verticalOffset=o,Kc.push(Xc),Xc}};["success","warning","info","error"].forEach((function(e){Jc[e]=function(t){return("string"===typeof t||Object(Ma["isVNode"])(t))&&(t={message:t}),t.type=e,Jc(t)}})),Jc.close=function(e,t){var n=-1,i=Kc.length,r=Kc.filter((function(t,i){return t.id===e&&(n=i,!0)}))[0];if(r&&("function"===typeof t&&t(r),Kc.splice(n,1),!(i<=1)))for(var o=r.position,s=r.dom.offsetHeight,a=n;a<i-1;a++)Kc[a].position===o&&(Kc[a].dom.style[r.verticalProperty]=parseInt(Kc[a].dom.style[r.verticalProperty],10)-s-16+"px")},Jc.closeAll=function(){for(var e=Kc.length-1;e>=0;e--)Kc[e].close()};var Qc=Jc,eu=Qc,tu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-slider",class:{"is-vertical":e.vertical,"el-slider--with-input":e.showInput},attrs:{role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled}},[e.showInput&&!e.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.inputSize},on:{change:e.emitChange},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}):e._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":e.showInput,disabled:e.sliderDisabled},style:e.runwayStyle,on:{click:e.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:e.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}),e.range?n("slider-button",{ref:"button2",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.secondValue,callback:function(t){e.secondValue=t},expression:"secondValue"}}):e._e(),e._l(e.stops,(function(t,i){return e.showStops?n("div",{key:i,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()})),e.markList.length>0?[n("div",e._l(e.markList,(function(t,i){return n("div",{key:i,staticClass:"el-slider__stop el-slider__marks-stop",style:e.getStopStyle(t.position)})})),0),n("div",{staticClass:"el-slider__marks"},e._l(e.markList,(function(t,i){return n("slider-marker",{key:i,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})})),1)]:e._e()],2)],1)},nu=[];tu._withStripped=!0;var iu=n(42),ru=n.n(iu),ou=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:e.hovering,dragging:e.dragging},style:e.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave,mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.handleMouseEnter,blur:e.handleMouseLeave,keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.onLeftKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:e.onRightKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.onLeftKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.onRightKeyDown(t))}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":e.tooltipClass,disabled:!e.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:e.hovering,dragging:e.dragging}})])],1)},su=[];ou._withStripped=!0;var au={name:"ElSliderButton",components:{ElTooltip:rt.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(e){this.$parent.dragging=e}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(e){this.dragging=!0,this.isClick=!0,"touchstart"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?this.startY=e.clientY:this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var t=0;"touchmove"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?(this.currentY=e.clientY,t=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=e.clientX,t=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd:function(){var e=this;this.dragging&&(setTimeout((function(){e.dragging=!1,e.hideTooltip(),e.isClick||(e.setPosition(e.newPosition),e.$parent.emitChange())}),0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){var t=this;if(null!==e&&!isNaN(e)){e<0?e=0:e>100&&(e=100);var n=100/((this.max-this.min)/this.step),i=Math.round(e/n),r=i*n*(this.max-this.min)*.01+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit("input",r),this.$nextTick((function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},lu=au,cu=a(lu,ou,su,!1,null,null,null);cu.options.__file="packages/slider/src/button.vue";var uu=cu.exports,hu={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var e=arguments[0],t="string"===typeof this.mark?this.mark:this.mark.label;return e("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[t])}},du={name:"ElSlider",mixins:[M.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:ru.a,SliderButton:uu,SliderMarker:hu},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(e,t){this.dragging||Array.isArray(e)&&Array.isArray(t)&&e.every((function(e,n){return e===t[n]}))||this.setValues()},dragging:function(e){e||this.setValues()},firstValue:function(e){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",e)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var e=this;return this.range?![this.minValue,this.maxValue].every((function(t,n){return t===e.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var e=this.value;this.range&&Array.isArray(e)?e[1]<this.min?this.$emit("input",[this.min,this.min]):e[0]>this.max?this.$emit("input",[this.max,this.max]):e[0]<this.min?this.$emit("input",[this.min,e[1]]):e[1]>this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!==typeof e||isNaN(e)||(e<this.min?this.$emit("input",this.min):e>this.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e)))}},setPosition:function(e){var t=this.min+e*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-t)<Math.abs(this.maxValue-t)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].setPosition(e)}else this.$refs.button1.setPosition(e)},onSliderClick:function(e){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var t=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((t-e.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((e.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)}))},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var e=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var t=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),i=[],r=1;r<t;r++)i.push(r*n);return this.range?i.filter((function(t){return t<100*(e.minValue-e.min)/(e.max-e.min)||t>100*(e.maxValue-e.min)/(e.max-e.min)})):i.filter((function(t){return t>100*(e.firstValue-e.min)/(e.max-e.min)}))},markList:function(){var e=this;if(!this.marks)return[];var t=Object.keys(this.marks);return t.map(parseFloat).sort((function(e,t){return e-t})).filter((function(t){return t<=e.max&&t>=e.min})).map((function(t){return{point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}}))},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map((function(e){var t=(""+e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],e=this.firstValue+"-"+this.secondValue):("number"!==typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,e=this.firstValue),this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},pu=du,fu=a(pu,tu,nu,!1,null,null,null);fu.options.__file="packages/slider/src/main.vue";var mu=fu.exports;mu.install=function(e){e.component(mu.name,mu)};var gu=mu,vu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},yu=[];vu._withStripped=!0;var _u={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},bu=_u,xu=a(bu,vu,yu,!1,null,null,null);xu.options.__file="packages/loading/src/loading.vue";var wu=xu.exports,Cu=n(33),ku=n.n(Cu),Su=Vi.a.extend(wu),Eu={install:function(e){if(!e.prototype.$isServer){var t=function(t,i){i.value?e.nextTick((function(){i.modifiers.fullscreen?(t.originalPosition=Object(Re["getStyle"])(document.body,"position"),t.originalOverflow=Object(Re["getStyle"])(document.body,"overflow"),t.maskStyle.zIndex=C["PopupManager"].nextZIndex(),Object(Re["addClass"])(t.mask,"is-fullscreen"),n(document.body,t,i)):(Object(Re["removeClass"])(t.mask,"is-fullscreen"),i.modifiers.body?(t.originalPosition=Object(Re["getStyle"])(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(Re["getStyle"])(document.body,"margin-"+e),10)+"px"})),["height","width"].forEach((function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"})),n(document.body,t,i)):(t.originalPosition=Object(Re["getStyle"])(t,"position"),n(t,t,i)))})):(ku()(t.instance,(function(e){if(t.instance.hiding){t.domVisible=!1;var n=i.modifiers.fullscreen||i.modifiers.body?document.body:t;Object(Re["removeClass"])(n,"el-loading-parent--relative"),Object(Re["removeClass"])(n,"el-loading-parent--hidden"),t.instance.hiding=!1}}),300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,i){n.domVisible||"none"===Object(Re["getStyle"])(n,"display")||"hidden"===Object(Re["getStyle"])(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(e){n.mask.style[e]=n.maskStyle[e]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(Re["addClass"])(t,"el-loading-parent--relative"),i.modifiers.fullscreen&&i.modifiers.lock&&Object(Re["addClass"])(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,i){var r=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),s=e.getAttribute("element-loading-background"),a=e.getAttribute("element-loading-custom-class"),l=i.context,c=new Su({el:document.createElement("div"),data:{text:l&&l[r]||r,spinner:l&&l[o]||o,background:l&&l[s]||s,customClass:l&&l[a]||a,fullscreen:!!n.modifiers.fullscreen}});e.instance=c,e.mask=c.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},Tu=Eu,Mu=Vi.a.extend(wu),Au={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Ou=void 0;Mu.prototype.originalPosition="",Mu.prototype.originalOverflow="",Mu.prototype.close=function(){var e=this;this.fullscreen&&(Ou=void 0),ku()(this,(function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(Re["removeClass"])(n,"el-loading-parent--relative"),Object(Re["removeClass"])(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()}),300),this.visible=!1};var Iu=function(e,t,n){var i={};e.fullscreen?(n.originalPosition=Object(Re["getStyle"])(document.body,"position"),n.originalOverflow=Object(Re["getStyle"])(document.body,"overflow"),i.zIndex=C["PopupManager"].nextZIndex()):e.body?(n.originalPosition=Object(Re["getStyle"])(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";i[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(t){i[t]=e.target.getBoundingClientRect()[t]+"px"}))):n.originalPosition=Object(Re["getStyle"])(t,"position"),Object.keys(i).forEach((function(e){n.$el.style[e]=i[e]}))},Du=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Vi.a.prototype.$isServer){if(e=St()({},Au,e),"string"===typeof e.target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&Ou)return Ou;var t=e.body?document.body:e.target,n=new Mu({el:document.createElement("div"),data:e});return Iu(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(Re["addClass"])(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(Re["addClass"])(t,"el-loading-parent--hidden"),t.appendChild(n.$el),Vi.a.nextTick((function(){n.visible=!0})),e.fullscreen&&(Ou=n),n}},Pu=Du,zu={install:function(e){e.use(Tu),e.prototype.$loading=Pu},directive:Tu,service:Pu},Lu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("i",{class:"el-icon-"+e.name})},Bu=[];Lu._withStripped=!0;var Fu={name:"ElIcon",props:{name:String}},Ru=Fu,$u=a(Ru,Lu,Bu,!1,null,null,null);$u.options.__file="packages/icon/src/icon.vue";var Nu=$u.exports;Nu.install=function(e){e.component(Nu.name,Nu)};var ju=Nu,Vu={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:String},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"",this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(Vu.name,Vu)}},Uu=Vu,qu="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},Hu={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){var e=this.$parent;while(e&&"ElRow"!==e.$options.componentName)e=e.$parent;return e?e.gutter:0}},render:function(e){var t=this,n=[],i={};return this.gutter&&(i.paddingLeft=this.gutter/2+"px",i.paddingRight=i.paddingLeft),["span","offset","pull","push"].forEach((function(e){(t[e]||0===t[e])&&n.push("span"!==e?"el-col-"+e+"-"+t[e]:"el-col-"+t[e])})),["xs","sm","md","lg","xl"].forEach((function(e){if("number"===typeof t[e])n.push("el-col-"+e+"-"+t[e]);else if("object"===qu(t[e])){var i=t[e];Object.keys(i).forEach((function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+i[t]:"el-col-"+e+"-"+i[t])}))}})),e(this.tag,{class:["el-col",n],style:i},this.$slots.default)},install:function(e){e.component(Hu.name,Hu)}},Wu=Hu,Gu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["el-upload-list","el-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"el-list"}},e._l(e.files,(function(t){return n("li",{key:t.uid,class:["el-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!e.disabled&&e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",["uploading"!==t.status&&["picture-card","picture"].indexOf(e.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n      ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":["picture-card","picture"].indexOf(e.listType)>-1}})]),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){e.$emit("remove",t)}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.t("el.upload.deleteTip")))]),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()],{file:t})],2)})),0)},Zu=[];Gu._withStripped=!0;var Xu=n(34),Ku=n.n(Xu),Yu={name:"ElUploadList",mixins:[v.a],data:function(){return{focusing:!1}},components:{ElProgress:Ku.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},Ju=Yu,Qu=a(Ju,Gu,Zu,!1,null,null,null);Qu.options.__file="packages/upload/src/upload-list.vue";var eh=Qu.exports,th=n(24),nh=n.n(th);function ih(e,t,n){var i=void 0;i=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+e+" "+n.status;var r=new Error(i);return r.status=n.status,r.method="post",r.url=e,r}function rh(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function oh(e){if("undefined"!==typeof XMLHttpRequest){var t=new XMLHttpRequest,n=e.action;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var i=new FormData;e.data&&Object.keys(e.data).forEach((function(t){i.append(t,e.data[t])})),i.append(e.filename,e.file,e.file.name),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(ih(n,e,t));e.onSuccess(rh(t))},t.open("post",n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};for(var o in r)r.hasOwnProperty(o)&&null!==r[o]&&t.setRequestHeader(o,r[o]);return t.send(i),t}}var sh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop(t)},dragover:function(t){return t.preventDefault(),e.onDragover(t)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)},ah=[];sh._withStripped=!0;var lh={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){if(!this.disabled&&this.uploader){var t=this.uploader.accept;this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter((function(e){var n=e.type,i=e.name,r=i.indexOf(".")>-1?"."+i.split(".").pop():"",o=n.replace(/\/.*$/,"");return t.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return/\..+$/.test(e)?r===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files)}}}},ch=lh,uh=a(ch,sh,ah,!1,null,null,null);uh.options.__file="packages/upload/src/upload-dragger.vue";var hh,dh,ph=uh.exports,fh={inject:["uploader"],components:{UploadDragger:ph},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:oh},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){var t=e.target.files;t&&this.uploadFiles(t)},uploadFiles:function(e){var t=this;if(this.limit&&this.fileList.length+e.length>this.limit)this.onExceed&&this.onExceed(e,this.fileList);else{var n=Array.prototype.slice.call(e);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)}))}},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var i=Object.prototype.toString.call(n);if("[object File]"===i||"[object Blob]"===i){for(var r in"[object Blob]"===i&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(r)&&(n[r]=e[r]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t=this.reqs;if(e){var n=e;e.uid&&(n=e.uid),t[n]&&t[n].abort()}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort(),delete t[e]}))},post:function(e){var t=this,n=e.uid,i={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(i){t.onSuccess(i,e),delete t.reqs[n]},onError:function(i){t.onError(i,e),delete t.reqs[n]}},r=this.httpRequest(i);this.reqs[n]=r,r&&r.then&&r.then(i.onSuccess,i.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target===e.currentTarget&&(13!==e.keyCode&&32!==e.keyCode||this.handleClick())}},render:function(e){var t=this.handleClick,n=this.drag,i=this.name,r=this.handleChange,o=this.multiple,s=this.accept,a=this.listType,l=this.uploadFiles,c=this.disabled,u=this.handleKeydown,h={class:{"el-upload":!0},on:{click:t,keydown:u}};return h.class["el-upload--"+a]=!0,e("div",nh()([h,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:c},on:{file:l}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:i,multiple:o,accept:s},ref:"input",on:{change:r}})])}},mh=fh,gh=a(mh,hh,dh,!1,null,null,null);gh.options.__file="packages/upload/src/upload.vue";var vh=gh.exports;function yh(){}var _h,bh,xh={name:"ElUpload",mixins:[E.a],components:{ElProgress:Ku.a,UploadList:eh,Upload:vh},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:yh},onChange:{type:Function,default:yh},onPreview:{type:Function},onSuccess:{type:Function,default:yh},onProgress:{type:Function,default:yh},onError:{type:Function,default:yh},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:yh}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(t){console.error("[Element Error][Upload]",t)}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(n){return void console.error("[Element Error][Upload]",n)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){var n=this.getFile(t);this.onProgress(e,n,this.uploadFiles),n.status="uploading",n.percentage=e.percent||0},handleSuccess:function(e,t){var n=this.getFile(t);n&&(n.status="success",n.response=e,this.onSuccess(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(e,t){var n=this.getFile(t),i=this.uploadFiles;n.status="fail",i.splice(i.indexOf(n),1),this.onError(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(e,t){var n=this;t&&(e=this.getFile(t));var i=function(){n.abort(e);var t=n.uploadFiles;t.splice(t.indexOf(e),1),n.onRemove(e,t)};if(this.beforeRemove){if("function"===typeof this.beforeRemove){var r=this.beforeRemove(e,this.uploadFiles);r&&r.then?r.then((function(){i()}),yh):!1!==r&&i()}}else i()},getFile:function(e){var t=this.uploadFiles,n=void 0;return t.every((function(t){return n=e.uid===t.uid?t:null,!n})),n},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t=this,n=void 0;this.showFileList&&(n=e(eh,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}]));var i={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},r=this.$slots.trigger||this.$slots.default,o=e("upload",i,[r]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[o,this.$slots.default]:o,this.$slots.tip,"picture-card"!==this.listType?n:""])}},wh=xh,Ch=a(wh,_h,bh,!1,null,null,null);Ch.options.__file="packages/upload/src/index.vue";var kh=Ch.exports;kh.install=function(e){e.component(kh.name,kh)};var Sh=kh,Eh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px",backgroundColor:e.defineBackColor}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText",style:{color:e.textColor}},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:e.defineBackColor,"stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px",color:e.textColor}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},Th=[];Eh._withStripped=!0;var Mh={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},defineBackColor:{type:[String,Array,Function],default:"#ebeef5"},textColor:{type:[String,Array,Function],default:"#606266"},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n        M 50 50\n        m 0 "+(t?"":"-")+e+"\n        a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n        a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n        "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},Ah=Mh,Oh=a(Ah,Eh,Th,!1,null,null,null);Oh.options.__file="packages/progress/src/progress.vue";var Ih=Oh.exports;Ih.install=function(e){e.component(Ih.name,Ih)};var Dh=Ih,Ph=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-spinner"},[n("svg",{staticClass:"el-spinner-inner",style:{width:e.radius/2+"px",height:e.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:e.strokeColor,"stroke-width":e.strokeWidth}})])])},zh=[];Ph._withStripped=!0;var Lh={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},Bh=Lh,Fh=a(Bh,Ph,zh,!1,null,null,null);Fh.options.__file="packages/spinner/src/spinner.vue";var Rh=Fh.exports;Rh.install=function(e){e.component(Rh.name,Rh)};var $h=Rh,Nh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])},jh=[];Nh._withStripped=!0;var Vh={success:"success",info:"info",warning:"warning",error:"error"},Uh={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+Vh[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},qh=Uh,Hh=a(qh,Nh,jh,!1,null,null,null);Hh.options.__file="packages/message/src/main.vue";var Wh=Hh.exports,Gh=n(16),Zh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Xh=Vi.a.extend(Wh),Kh=void 0,Yh=[],Jh=1,Qh=function e(t){if(!Vi.a.prototype.$isServer){t=t||{},"string"===typeof t&&(t={message:t});var n=t.onClose,i="message_"+Jh++;t.onClose=function(){e.close(i,n)},Kh=new Xh({data:t}),Kh.id=i,Object(Ma["isVNode"])(Kh.message)&&(Kh.$slots.default=[Kh.message],Kh.message=null),Kh.$mount(),document.body.appendChild(Kh.$el);var r=t.offset||20;return Yh.forEach((function(e){r+=e.$el.offsetHeight+16})),Kh.verticalOffset=r,Kh.visible=!0,Kh.$el.style.zIndex=C["PopupManager"].nextZIndex(),Yh.push(Kh),Kh}};["success","warning","info","error"].forEach((function(e){Qh[e]=function(t){return Object(Gh["isObject"])(t)&&!Object(Ma["isVNode"])(t)?Qh(Zh({},t,{type:e})):Qh({type:e,message:t})}})),Qh.close=function(e,t){for(var n=Yh.length,i=-1,r=void 0,o=0;o<n;o++)if(e===Yh[o].id){r=Yh[o].$el.offsetHeight,i=o,"function"===typeof t&&t(Yh[o]),Yh.splice(o,1);break}if(!(n<=1||-1===i||i>Yh.length-1))for(var s=i;s<n-1;s++){var a=Yh[s].$el;a.style["top"]=parseInt(a.style["top"],10)-r-16+"px"}},Qh.closeAll=function(){for(var e=Yh.length-1;e>=0;e--)Yh[e].close()};var ed=Qh,td=ed,nd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-badge"},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:[e.type?"el-badge__content--"+e.type:null,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)},id=[];nd._withStripped=!0;var rd={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return["primary","success","warning","info","danger"].indexOf(e)>-1}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"===typeof e&&"number"===typeof t&&t<e?t+"+":e}}}},od=rd,sd=a(od,nd,id,!1,null,null,null);sd.options.__file="packages/badge/src/main.vue";var ad=sd.exports;ad.install=function(e){e.component(ad.name,ad)};var ld=ad,cd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-card",class:e.shadow?"is-"+e.shadow+"-shadow":"is-always-shadow"},[e.$slots.header||e.header?n("div",{staticClass:"el-card__header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),n("div",{staticClass:"el-card__body",style:e.bodyStyle},[e._t("default")],2)])},ud=[];cd._withStripped=!0;var hd={name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},dd=hd,pd=a(dd,cd,ud,!1,null,null,null);pd.options.__file="packages/card/src/main.vue";var fd=pd.exports;fd.install=function(e){e.component(fd.name,fd)};var md=fd,gd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":e.currentValue,"aria-valuetext":e.text,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0"},on:{keydown:e.handleKey}},[e._l(e.max,(function(t,i){return n("span",{key:i,staticClass:"el-rate__item",style:{cursor:e.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){e.setCurrentValue(t,n)},mouseleave:e.resetCurrentValue,click:function(n){e.selectValue(t)}}},[n("i",{staticClass:"el-rate__icon",class:[e.classes[t-1],{hover:e.hoverIndex===t}],style:e.getIconStyle(t)},[e.showDecimalIcon(t)?n("i",{staticClass:"el-rate__decimal",class:e.decimalIconClass,style:e.decimalStyle}):e._e()])])})),e.showText||e.showScore?n("span",{staticClass:"el-rate__text",style:{color:e.textColor}},[e._v(e._s(e.text))]):e._e()],2)},vd=[];gd._withStripped=!0;var yd={name:"ElRate",mixins:[E.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var e="";return this.showScore?e=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(e=this.texts[Math.ceil(this.currentValue)-1]),e},decimalStyle:function(){var e="";return this.rateDisabled?e=this.valueDecimal+"%":this.allowHalf&&(e="50%"),{color:this.activeColor,width:e}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var e;return Array.isArray(this.iconClasses)?(e={},e[this.lowThreshold]=this.iconClasses[0],e[this.highThreshold]={value:this.iconClasses[1],excluded:!0},e[this.max]=this.iconClasses[2],e):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var e;return Array.isArray(this.colors)?(e={},e[this.lowThreshold]=this.colors[0],e[this.highThreshold]={value:this.colors[1],excluded:!0},e[this.max]=this.colors[2],e):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var e=[],t=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;t<n;t++)e.push(this.activeClass);for(;t<this.max;t++)e.push(this.voidClass);return e},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){this.currentValue=e,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(e,t){var n=Object.keys(t).filter((function(n){var i=t[n],r=!!Object(Gh["isObject"])(i)&&i.excluded;return r?e<n:e<=n})).sort((function(e,t){return e-t})),i=t[n[0]];return Object(Gh["isObject"])(i)?i.value:i||""},showDecimalIcon:function(e){var t=this.rateDisabled&&this.valueDecimal>0&&e-1<this.value&&e>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||n},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){if(!this.rateDisabled){var t=this.currentValue,n=e.keyCode;38===n||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t)}},setCurrentValue:function(e,t){if(!this.rateDisabled){if(this.allowHalf){var n=t.target;Object(Re["hasClass"])(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(Re["hasClass"])(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e}else this.currentValue=e;this.hoverIndex=e}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},_d=yd,bd=a(_d,gd,vd,!1,null,null,null);bd.options.__file="packages/rate/src/main.vue";var xd=bd.exports;xd.install=function(e){e.component(xd.name,xd)};var wd=xd,Cd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-steps",class:[!e.simple&&"el-steps--"+e.direction,e.simple&&"el-steps--simple"]},[e._t("default")],2)},kd=[];Cd._withStripped=!0;var Sd={name:"ElSteps",mixins:[E.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(e,t){this.$emit("change",e,t)},steps:function(e){e.forEach((function(e,t){e.index=t}))}}},Ed=Sd,Td=a(Ed,Cd,kd,!1,null,null,null);Td.options.__file="packages/steps/src/steps.vue";var Md=Td.exports;Md.install=function(e){e.component(Md.name,Md)};var Ad=Md,Od=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-step",class:[!e.isSimple&&"is-"+e.$parent.direction,e.isSimple&&"is-simple",e.isLast&&!e.space&&!e.isCenter&&"is-flex",e.isCenter&&!e.isVertical&&!e.isSimple&&"is-center"],style:e.style},[n("div",{staticClass:"el-step__head",class:"is-"+e.currentStatus},[n("div",{staticClass:"el-step__line",style:e.isLast?"":{marginRight:e.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:e.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(e.icon?"icon":"text")},["success"!==e.currentStatus&&"error"!==e.currentStatus?e._t("icon",[e.icon?n("i",{staticClass:"el-step__icon-inner",class:[e.icon]}):e._e(),e.icon||e.isSimple?e._e():n("div",{staticClass:"el-step__icon-inner"},[e._v(e._s(e.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===e.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+e.currentStatus]},[e._t("title",[e._v(e._s(e.title))])],2),e.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+e.currentStatus]},[e._t("description",[e._v(e._s(e.description))])],2)])])},Id=[];Od._withStripped=!0;var Dd={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var e=this.$parent.steps,t=e.indexOf(this);t>=0&&e.splice(t,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var e=this.$parent.steps[this.index-1];return e?e.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var e=this.$parent;return e.steps[e.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,n=t.steps.length,i="number"===typeof this.space?this.space+"px":this.space?this.space:100/(n-(this.isCenter?0:1))+"%";return e.flexBasis=i,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},methods:{updateStatus:function(e){var t=this.$parent.$children[this.index-1];e>this.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},mounted:function(){var e=this,t=this.$watch("index",(function(n){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",(function(){var t=e.$parent.active;e.updateStatus(t)}),{immediate:!0}),t()}))}},Pd=Dd,zd=a(Pd,Od,Id,!1,null,null,null);zd.options.__file="packages/steps/src/step.vue";var Ld=zd.exports;Ld.install=function(e){e.component(Ld.name,Ld)};var Bd=Ld,Fd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.carouselClasses,on:{mouseenter:function(t){return t.stopPropagation(),e.handleMouseEnter(t)},mouseleave:function(t){return t.stopPropagation(),e.handleMouseLeave(t)}}},[n("div",{staticClass:"el-carousel__container",style:{height:e.height}},[e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("left")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):e._e(),e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex<e.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("right")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):e._e(),e._t("default")],2),"none"!==e.indicatorPosition?n("ul",{class:e.indicatorsClasses},e._l(e.items,(function(t,i){return n("li",{key:i,class:["el-carousel__indicator","el-carousel__indicator--"+e.direction,{"is-active":i===e.activeIndex}],on:{mouseenter:function(t){e.throttledIndicatorHover(i)},click:function(t){t.stopPropagation(),e.handleIndicatorClick(i)}}},[n("button",{staticClass:"el-carousel__button"},[e.hasLabel?n("span",[e._v(e._s(t.label))]):e._e()])])})),0):e._e()])},Rd=[];Fd._withStripped=!0;var $d=n(25),Nd=n.n($d),jd={name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some((function(e){return e.label.toString().length>0}))},carouselClasses:function(){var e=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&e.push("el-carousel--card"),e},indicatorsClasses:function(){var e=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&e.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||e.push("el-carousel__indicators--outside"),e}},watch:{items:function(e){e.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(e,t){this.resetItemPosition(t),t>-1&&this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(e){var t=this;"vertical"!==this.direction&&this.items.forEach((function(n,i){e===t.itemInStage(n,i)&&(n.hover=!0)}))},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach((function(e){e.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(e){return"ElCarouselItem"===e.$options.name}))},resetItemPosition:function(e){var t=this;this.items.forEach((function(n,i){n.translateItem(i,t.activeIndex,e)}))},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},resetTimer:function(){this.pauseTimer(),this.startTimer()},setActiveItem:function(e){if("string"===typeof e){var t=this.items.filter((function(t){return t.name===e}));t.length>0&&(e=this.items.indexOf(t[0]))}if(e=Number(e),isNaN(e)||e!==Math.floor(e))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,i=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,i===this.activeIndex&&this.resetItemPosition(i),this.resetTimer()}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var e=this;this.throttledArrowClick=Nd()(300,!0,(function(t){e.setActiveItem(t)})),this.throttledIndicatorHover=Nd()(300,(function(t){e.handleIndicatorHover(t)}))},mounted:function(){var e=this;this.updateItems(),this.$nextTick((function(){Object(ei["addResizeListener"])(e.$el,e.resetItemPosition),e.initialIndex<e.items.length&&e.initialIndex>=0&&(e.activeIndex=e.initialIndex),e.startTimer()}))},beforeDestroy:function(){this.$el&&Object(ei["removeResizeListener"])(this.$el,this.resetItemPosition),this.pauseTimer()}},Vd=jd,Ud=a(Vd,Fd,Rd,!1,null,null,null);Ud.options.__file="packages/carousel/src/main.vue";var qd=Ud.exports;qd.install=function(e){e.component(qd.name,qd)};var Hd=qd,Wd={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function Gd(e){var t=e.move,n=e.size,i=e.bar,r={},o="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=o,r.msTransform=o,r.webkitTransform=o,r}var Zd={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Wd[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:Gd({size:t,move:n,bar:i})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,i=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(Re["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(Re["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),i=this.$refs.thumb[this.bar.offset]-t,r=100*(n-i)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(Re["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(Re["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},Xd={name:"ElScrollbar",components:{Bar:Zd},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=yr()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(y["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=i):"string"===typeof this.wrapStyle?n+=r:n=r}var o=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),s=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[o]]),a=void 0;return a=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[s,e(Zd,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(Zd,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},a)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(ei["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(ei["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(Xd.name,Xd)}},Kd=Xd,Yd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)},Jd=[];Yd._withStripped=!0;var Qd=.83,ep={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:e<t-1&&t-e>=n/2?n+1:e>t+1&&e-t>=n/2?-2:e},calcCardTranslate:function(e,t){var n=this.$parent.$el.offsetWidth;return this.inStage?n*((2-Qd)*(e-t)+1)/4:e<t?-(1+Qd)*n/4:(3+Qd)*n/4},calcTranslate:function(e,t,n){var i=this.$parent.$el[n?"offsetHeight":"offsetWidth"];return i*(e-t)},translateItem:function(e,t,n){var i=this.$parent.type,r=this.parentDirection,o=this.$parent.items.length;if("card"!==i&&void 0!==n&&(this.animating=e===t||e===n),e!==t&&o>2&&this.$parent.loop&&(e=this.processIndex(e,t,o)),"card"===i)"vertical"===r&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(e-t))<=1,this.active=e===t,this.translate=this.calcCardTranslate(e,t),this.scale=this.active?1:Qd;else{this.active=e===t;var s="vertical"===r;this.translate=this.calcTranslate(e,t,s),this.scale=1}this.ready=!0},handleItemClick:function(){var e=this.$parent;if(e&&"card"===e.type){var t=e.items.indexOf(this);e.setActiveItem(t)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var e="vertical"===this.parentDirection?"translateY":"translateX",t=e+"("+this.translate+"px) scale("+this.scale+")",n={transform:t};return Object(y["autoprefixer"])(n)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},tp=ep,np=a(tp,Yd,Jd,!1,null,null,null);np.options.__file="packages/carousel/src/item.vue";var ip=np.exports;ip.install=function(e){e.component(ip.name,ip)};var rp=ip,op=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)},sp=[];op._withStripped=!0;var ap={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:"");else{var t=this.activeNames.slice(0),n=t.indexOf(e.name);n>-1?t.splice(n,1):t.push(e.name),this.setActiveNames(t)}}},created:function(){this.$on("item-click",this.handleItemClick)}},lp=ap,cp=a(lp,op,sp,!1,null,null,null);cp.options.__file="packages/collapse/src/collapse.vue";var up=cp.exports;up.install=function(e){e.component(up.name,up)};var hp=up,dp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":"el-collapse-content-"+e.id,"aria-describedby":"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive},attrs:{role:"button",id:"el-collapse-head-"+e.id,tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnterClick(t))},focus:e.handleFocus,blur:function(t){e.focusing=!1}}},[e._t("title",[e._v(e._s(e.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":e.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":"el-collapse-head-"+e.id,id:"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__content"},[e._t("default")],2)])])],1)},pp=[];dp._withStripped=!0;var fp={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[M.a],components:{ElCollapseTransition:Ge.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(y["generateId"])()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var e=this;setTimeout((function(){e.isClick?e.isClick=!1:e.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},mp=fp,gp=a(mp,dp,pp,!1,null,null,null);gp.options.__file="packages/collapse/src/collapse-item.vue";var vp=gp.exports;vp.install=function(e){e.component(vp.name,vp)};var yp=vp,_p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,(function(t){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(n){e.deleteTag(t)}}},[n("span",[e._v(e._s(t.text))])])})),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.handleDelete(t)},blur:function(t){e.$forceUpdate()}}}):e._e()],2):e._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",e.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!e.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:e.options,props:e.config,border:!1,"render-label":e.$scopedSlots.default},on:{"expand-change":e.handleExpandChange,close:function(t){e.toggleDropDownVisible(!1)}},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}}),e.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(t){return e.handleSuggestionKeyDown(t)}}},[e.suggestions.length?e._l(e.suggestions,(function(t,i){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(i)}}},[n("span",[e._v(e._s(t.text))]),t.checked?n("i",{staticClass:"el-icon-check"}):e._e()])})):e._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[e._v(e._s(e.t("el.cascader.noMatch")))])])],2):e._e()],1)])],1)},bp=[];_p._withStripped=!0;var xp=n(43),wp=n.n(xp),Cp=n(35),kp=n.n(Cp),Sp=kp.a.keys,Ep={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Tp={props:{placement:{type:String,default:"bottom-start"},appendToBody:U.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:U.a.props.arrowOffset,offset:U.a.props.offset,boundariesPadding:U.a.props.boundariesPadding,popperOptions:U.a.props.popperOptions,transformOrigin:U.a.props.transformOrigin},methods:U.a.methods,data:U.a.data,beforeDestroy:U.a.beforeDestroy},Mp={medium:36,small:32,mini:28},Ap={name:"ElCascader",directives:{Clickoutside:$.a},mixins:[Tp,M.a,v.a,E.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:m.a,ElTag:Qn.a,ElScrollbar:H.a,ElCascaderPanel:wp.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(ya["t"])("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(Ep).forEach((function(n){var i=Ep[n],r=i.newProp,o=i.type,s=t[n]||t[Object(y["kebabCase"])(n)];Object(Et["isDef"])(n)&&!Object(Et["isDef"])(e[r])&&(o===Boolean&&""===s&&(s=!0),e[r]=s)})),e},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(e){return!e.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(e){Object(y["isEqual"])(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,i=this.config,r=i.checkStrictly,o=i.multiple;Object(y["isEqual"])(e,t)&&!Object(Gh["isUndefined"])(t)||(this.computePresentContent(),o||r||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var e=this,t=this.$refs.input;t&&t.$el&&(this.inputInitialHeight=t.$el.offsetHeight||Mp[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=F()(this.debounce,(function(){var t=e.inputValue;if(t){var n=e.beforeFilter(t);n&&n.then?n.then(e.getSuggestions):!1!==n?e.getSuggestions():e.filtering=!1}else e.filtering=!1})),Object(ei["addResizeListener"])(this.$el,this.updateStyle)},beforeDestroy:function(){Object(ei["removeResizeListener"])(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t=this;if(!this.isDisabled){var n=this.dropDownVisible,i=this.$refs.input;e=Object(Et["isDef"])(e)?e:!n,e!==n&&(this.dropDownVisible=e,e&&this.$nextTick((function(){t.updatePopper(),t.panel.scrollIntoView()})),i.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(e){switch(e.keyCode){case Sp.enter:this.toggleDropDownVisible();break;case Sp.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case Sp.esc:case Sp.tab:this.toggleDropDownVisible(!1);break}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){!this.dropDownVisible&&this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var e=this;this.$nextTick((function(){var t=e.filtering,n=e.$refs,i=n.popper,r=n.suggestionPanel,o=null;if(t&&r)o=r.$el.querySelector(".el-cascader__suggestion-item");else{var s=i.querySelector(".el-cascader-menu");o=s.querySelector('.el-cascader-node[tabindex="-1"]')}o&&(o.focus(),!t&&o.click())}))},computePresentContent:function(){var e=this;this.$nextTick((function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()}))},isEmptyValue:function(e){var t=this.multiple,n=this.panel.config.emitPath;return!(!t&&!n)&&Object(y["isEmpty"])(e)},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!this.isEmptyValue(e)){var n=this.panel.getNodeByValue(e);if(n&&(t.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var e=this.isDisabled,t=this.leafOnly,n=this.showAllLevels,i=this.separator,r=this.collapseTags,o=this.getCheckedNodes(t),s=[],a=function(t){return{node:t,key:t.uid,text:t.getText(n,i),hitState:!1,closable:!e&&!t.isDisabled}};if(o.length){var l=o[0],c=o.slice(1),u=c.length;s.push(a(l)),u&&(r?s.push({key:-1,text:"+ "+u,closable:!1}):c.forEach((function(e){return s.push(a(e))})))}this.checkedNodes=o,this.presentTags=s},getSuggestions:function(){var e=this,t=this.filterMethod;Object(Gh["isFunction"])(t)||(t=function(e,t){return e.text.includes(t)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(e.showAllLevels,e.separator)||"",t(n,e.inputValue))}));this.multiple?this.presentTags.forEach((function(e){e.hitState=!1})):n.forEach((function(t){t.checked=Object(y["isEqual"])(e.checkedValue,t.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case Sp.enter:n.click();break;case Sp.up:var i=n.previousElementSibling;i&&i.focus();break;case Sp.down:var r=n.nextElementSibling;r&&r.focus();break;case Sp.esc:case Sp.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,i=n.length-1,r=n[i];this.pressDeleteCount=e?0:t+1,r&&this.pressDeleteCount&&(r.hitState?this.deleteTag(r):r.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var i=n.checked;n.doCheck(!i),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=e.node.getValueByOption(),i=t.find((function(e){return Object(y["isEqual"])(e,n)}));this.checkedValue=t.filter((function(e){return!Object(y["isEqual"])(e,n)})),this.$emit("remove-tag",i)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,i=e.querySelector(".el-input__inner");if(i){var r=e.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el)){var s=o.querySelector(".el-cascader__suggestion-list");s.style.minWidth=i.offsetWidth+"px"}if(r){var a=Math.round(r.getBoundingClientRect().height),l=Math.max(a+6,t)+"px";i.style.height=l,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},Op=Ap,Ip=a(Op,_p,bp,!1,null,null,null);Ip.options.__file="packages/cascader/src/cascader.vue";var Dp=Ip.exports;Dp.install=function(e){e.component(Dp.name,Dp)};var Pp=Dp,zp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],class:["el-color-picker",e.colorDisabled?"is-disabled":"",e.colorSize?"el-color-picker--"+e.colorSize:""]},[e.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):e._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:e.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":e.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:e.displayedColor}}),e.value||e.showPanelColor?e._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.value||e.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{color:e.color,"show-alpha":e.showAlpha,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}})],1)},Lp=[];zp._withStripped=!0;var Bp="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};function Fp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Rp=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},$p=function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)},Np=function(e){return"string"===typeof e&&-1!==e.indexOf("%")},jp=function(e,t){$p(e)&&(e="100%");var n=Np(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)},Vp={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Up=function(e){var t=e.r,n=e.g,i=e.b,r=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+(Vp[t]||t)+(Vp[n]||n)};return isNaN(t)||isNaN(n)||isNaN(i)?"":"#"+r(t)+r(n)+r(i)},qp={A:10,B:11,C:12,D:13,E:14,F:15},Hp=function(e){return 2===e.length?16*(qp[e[0].toUpperCase()]||+e[0])+(qp[e[1].toUpperCase()]||+e[1]):qp[e[1].toUpperCase()]||+e[1]},Wp=function(e,t,n){t/=100,n/=100;var i=t,r=Math.max(n,.01),o=void 0,s=void 0;return n*=2,t*=n<=1?n:2-n,i*=r<=1?r:2-r,s=(n+t)/2,o=0===n?2*i/(r+i):2*t/(n+t),{h:e,s:100*o,v:100*s}},Gp=function(e,t,n){e=jp(e,255),t=jp(t,255),n=jp(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),o=void 0,s=void 0,a=i,l=i-r;if(s=0===i?0:l/i,i===r)o=0;else{switch(i){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:360*o,s:100*s,v:100*a}},Zp=function(e,t,n){e=6*jp(e,360),t=jp(t,100),n=jp(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),s=n*(1-r*t),a=n*(1-(1-r)*t),l=i%6,c=[n,s,o,o,a,n][l],u=[a,n,n,s,o,o][l],h=[o,o,a,n,n,s][l];return{r:Math.round(255*c),g:Math.round(255*u),b:Math.round(255*h)}},Xp=function(){function e(t){for(var n in Fp(this,e),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{},t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.doOnChange()}return e.prototype.set=function(e,t){if(1!==arguments.length||"object"!==("undefined"===typeof e?"undefined":Bp(e)))this["_"+e]=t,this.doOnChange();else for(var n in e)e.hasOwnProperty(n)&&this.set(n,e[n])},e.prototype.get=function(e){return this["_"+e]},e.prototype.toRgb=function(){return Zp(this._hue,this._saturation,this._value)},e.prototype.fromString=function(e){var t=this;if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(e,n,i){t._hue=Math.max(0,Math.min(360,e)),t._saturation=Math.max(0,Math.min(100,n)),t._value=Math.max(0,Math.min(100,i)),t.doOnChange()};if(-1!==e.indexOf("hsl")){var i=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===i.length?this._alpha=Math.floor(100*parseFloat(i[3])):3===i.length&&(this._alpha=100),i.length>=3){var r=Wp(i[0],i[1],i[2]),o=r.h,s=r.s,a=r.v;n(o,s,a)}}else if(-1!==e.indexOf("hsv")){var l=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));4===l.length?this._alpha=Math.floor(100*parseFloat(l[3])):3===l.length&&(this._alpha=100),l.length>=3&&n(l[0],l[1],l[2])}else if(-1!==e.indexOf("rgb")){var c=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===c.length?this._alpha=Math.floor(100*parseFloat(c[3])):3===c.length&&(this._alpha=100),c.length>=3){var u=Gp(c[0],c[1],c[2]),h=u.h,d=u.s,p=u.v;n(h,d,p)}}else if(-1!==e.indexOf("#")){var f=e.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(f))return;var m=void 0,g=void 0,v=void 0;3===f.length?(m=Hp(f[0]+f[0]),g=Hp(f[1]+f[1]),v=Hp(f[2]+f[2])):6!==f.length&&8!==f.length||(m=Hp(f.substring(0,2)),g=Hp(f.substring(2,4)),v=Hp(f.substring(4,6))),8===f.length?this._alpha=Math.floor(Hp(f.substring(6))/255*100):3!==f.length&&6!==f.length||(this._alpha=100);var y=Gp(m,g,v),_=y.h,b=y.s,x=y.v;n(_,b,x)}},e.prototype.compare=function(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1},e.prototype.doOnChange=function(){var e=this._hue,t=this._saturation,n=this._value,i=this._alpha,r=this.format;if(this.enableAlpha)switch(r){case"hsl":var o=Rp(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+i/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+i/100+")";break;default:var s=Zp(e,t,n),a=s.r,l=s.g,c=s.b;this.value="rgba("+a+", "+l+", "+c+", "+i/100+")"}else switch(r){case"hsl":var u=Rp(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*u[1])+"%, "+Math.round(100*u[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var h=Zp(e,t,n),d=h.r,p=h.g,f=h.b;this.value="rgb("+d+", "+p+", "+f+")";break;default:this.value=Up(Zp(e,t,n))}},e}(),Kp=Xp,Yp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:e.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:e.color}})],1),e.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:e.color}}):e._e(),e.predefine?n("predefine",{attrs:{color:e.color,colors:e.predefine}}):e._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:e.handleConfirm},nativeOn:{keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleConfirm(t)}},model:{value:e.customInput,callback:function(t){e.customInput=t},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(t){e.$emit("clear")}}},[e._v("\n        "+e._s(e.t("el.colorpicker.clear"))+"\n      ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:e.confirmValue}},[e._v("\n        "+e._s(e.t("el.colorpicker.confirm"))+"\n      ")])],1)],1)])},Jp=[];Yp._withStripped=!0;var Qp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-svpanel",style:{backgroundColor:e.background}},[n("div",{staticClass:"el-color-svpanel__white"}),n("div",{staticClass:"el-color-svpanel__black"}),n("div",{staticClass:"el-color-svpanel__cursor",style:{top:e.cursorTop+"px",left:e.cursorLeft+"px"}},[n("div")])])},ef=[];Qp._withStripped=!0;var tf=!1,nf=function(e,t){if(!Vi.a.prototype.$isServer){var n=function(e){t.drag&&t.drag(e)},i=function e(i){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,tf=!1,t.end&&t.end(i)};e.addEventListener("mousedown",(function(e){tf||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",i),tf=!0,t.start&&t.start(e))}))}},rf={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){var e=this.color.get("hue"),t=this.color.get("value");return{hue:e,value:t}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var e=this.color.get("saturation"),t=this.color.get("value"),n=this.$el,i=n.clientWidth,r=n.clientHeight;this.cursorLeft=e*i/100,this.cursorTop=(100-t)*r/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el,n=t.getBoundingClientRect(),i=e.clientX-n.left,r=e.clientY-n.top;i=Math.max(0,i),i=Math.min(i,n.width),r=Math.max(0,r),r=Math.min(r,n.height),this.cursorLeft=i,this.cursorTop=r,this.color.set({saturation:i/n.width*100,value:100-r/n.height*100})}},mounted:function(){var e=this;nf(this.$el,{drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},of=rf,sf=a(of,Qp,ef,!1,null,null,null);sf.options.__file="packages/color-picker/src/components/sv-panel.vue";var af=sf.exports,lf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},cf=[];lf._withStripped=!0;var uf={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){var e=this.color.get("hue");return e}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb,i=void 0;if(this.vertical){var r=e.clientY-t.top;r=Math.min(r,t.height-n.offsetHeight/2),r=Math.max(n.offsetHeight/2,r),i=Math.round((r-n.offsetHeight/2)/(t.height-n.offsetHeight)*360)}else{var o=e.clientX-t.left;o=Math.min(o,t.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),i=Math.round((o-n.offsetWidth/2)/(t.width-n.offsetWidth)*360)}this.color.set("hue",i)},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var e=this,t=this.$refs,n=t.bar,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};nf(n,r),nf(i,r),this.update()}},hf=uf,df=a(hf,lf,cf,!1,null,null,null);df.options.__file="packages/color-picker/src/components/hue-slider.vue";var pf=df.exports,ff=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:e.background},on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},mf=[];ff._withStripped=!0;var gf={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var i=e.clientY-t.top;i=Math.max(n.offsetHeight/2,i),i=Math.min(i,t.height-n.offsetHeight/2),this.color.set("alpha",Math.round((i-n.offsetHeight/2)/(t.height-n.offsetHeight)*100))}else{var r=e.clientX-t.left;r=Math.max(n.offsetWidth/2,r),r=Math.min(r,t.width-n.offsetWidth/2),this.color.set("alpha",Math.round((r-n.offsetWidth/2)/(t.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var e=this.color.toRgb(),t=e.r,n=e.g,i=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+i+", 0) 0%, rgba("+t+", "+n+", "+i+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var e=this,t=this.$refs,n=t.bar,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};nf(n,r),nf(i,r),this.update()}},vf=gf,yf=a(vf,ff,mf,!1,null,null,null);yf.options.__file="packages/color-picker/src/components/alpha-slider.vue";var _f=yf.exports,bf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},e._l(e.rgbaColors,(function(t,i){return n("div",{key:e.colors[i],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(i)}}},[n("div",{style:{"background-color":t.value}})])})),0)])},xf=[];bf._withStripped=!0;var wf={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(e){this.color.fromString(this.colors[e])},parseColors:function(e,t){return e.map((function(e){var n=new Kp;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}},watch:{"$parent.currentColor":function(e){var t=new Kp;t.fromString(e),this.rgbaColors.forEach((function(e){e.selected=t.compare(e)}))},colors:function(e){this.rgbaColors=this.parseColors(e,this.color)},color:function(e){this.rgbaColors=this.parseColors(this.colors,e)}}},Cf=wf,kf=a(Cf,bf,xf,!1,null,null,null);kf.options.__file="packages/color-picker/src/components/predefine.vue";var Sf=kf.exports,Ef={name:"el-color-picker-dropdown",mixins:[U.a,v.a],components:{SvPanel:af,HueSlider:pf,AlphaSlider:_f,ElInput:m.a,ElButton:se.a,Predefine:Sf},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var e=this.$parent;return e.value||e.showPanelColor?e.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(e){var t=this;!0===e&&this.$nextTick((function(){var e=t.$refs,n=e.sl,i=e.hue,r=e.alpha;n&&n.update(),i&&i.update(),r&&r.update()}))},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Tf=Ef,Mf=a(Tf,Yp,Jp,!1,null,null,null);Mf.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Af=Mf.exports,Of={name:"ElColorPicker",mixins:[M.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:$.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){e?e&&e!==this.color.value&&this.color.fromString(e):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(e){if(this.showPicker){var t=new Kp({enableAlpha:this.showAlpha,format:this.colorFormat});t.fromString(this.value);var n=this.displayedRgb(t,this.showAlpha);e!==n&&this.$emit("active-change",e)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var e=this.color.value;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var e=this;this.$nextTick((function(t){e.value?e.color.fromString(e.value):e.showPanelColor=!1}))},displayedRgb:function(e,t){if(!(e instanceof Kp))throw Error("color should be instance of Color Class");var n=e.toRgb(),i=n.r,r=n.g,o=n.b;return t?"rgba("+i+", "+r+", "+o+", "+e.get("alpha")/100+")":"rgb("+i+", "+r+", "+o+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){var e=new Kp({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:e,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Af}},If=Of,Df=a(If,zp,Lp,!1,null,null,null);Df.options.__file="packages/color-picker/src/main.vue";var Pf=Df.exports;Pf.install=function(e){e.component(Pf.name,Pf)};var zf=Pf,Lf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",e._b({ref:"leftPanel",attrs:{data:e.sourceData,title:e.titles[0]||e.t("el.transfer.titles.0"),"default-checked":e.leftDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onSourceCheckedChange}},"transfer-panel",e.$props,!1),[e._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.addToLeft(t)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==e.buttonTexts[0]?n("span",[e._v(e._s(e.buttonTexts[0]))]):e._e()]),n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.leftChecked.length},nativeOn:{click:function(t){return e.addToRight(t)}}},[void 0!==e.buttonTexts[1]?n("span",[e._v(e._s(e.buttonTexts[1]))]):e._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",e._b({ref:"rightPanel",attrs:{data:e.targetData,title:e.titles[1]||e.t("el.transfer.titles.1"),"default-checked":e.rightDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onTargetCheckedChange}},"transfer-panel",e.$props,!1),[e._t("right-footer")],2)],1)},Bf=[];Lf._withStripped=!0;var Ff=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleAllCheckedChange},model:{value:e.allChecked,callback:function(t){e.allChecked=t},expression:"allChecked"}},[e._v("\n      "+e._s(e.title)+"\n      "),n("span",[e._v(e._s(e.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",e.hasFooter?"is-with-footer":""]},[e.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:e.placeholder},nativeOn:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+e.inputIcon],attrs:{slot:"prefix"},on:{click:e.clearQuery},slot:"prefix"})]):e._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!e.hasNoMatch&&e.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":e.filterable},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.filteredData,(function(t){return n("el-checkbox",{key:t[e.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:t[e.keyProp],disabled:t[e.disabledProp]}},[n("option-content",{attrs:{option:t}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:e.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.data.length&&!e.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noData")))])],1),e.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[e._t("default")],2):e._e()])},Rf=[];Ff._withStripped=!0;var $f={mixins:[v.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Pr.a,ElCheckbox:zi.a,ElInput:m.a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"ElTransferPanel"===t.$options.componentName?t:t.$parent?e(t.$parent):t},n=t(this),i=n.$parent||n;return n.renderContent?n.renderContent(e,this.option):i.$scopedSlots.default?i.$scopedSlots.default({option:this.option}):e("span",[this.option[n.labelProp]||this.option[n.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(e,t){if(this.updateAllChecked(),this.checkChangeByUser){var n=e.concat(t).filter((function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)}));this.$emit("checked-change",e,n)}else this.$emit("checked-change",e),this.checkChangeByUser=!0},data:function(){var e=this,t=[],n=this.filteredData.map((function(t){return t[e.keyProp]}));this.checked.forEach((function(e){n.indexOf(e)>-1&&t.push(e)})),this.checkChangeByUser=!1,this.checked=t},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(e,t){var n=this;if(!t||e.length!==t.length||!e.every((function(e){return t.indexOf(e)>-1}))){var i=[],r=this.checkableData.map((function(e){return e[n.keyProp]}));e.forEach((function(e){r.indexOf(e)>-1&&i.push(e)})),this.checkChangeByUser=!1,this.checked=i}}}},computed:{filteredData:function(){var e=this;return this.data.filter((function(t){if("function"===typeof e.filterMethod)return e.filterMethod(e.query,t);var n=t[e.labelProp]||t[e.keyProp].toString();return n.toLowerCase().indexOf(e.query.toLowerCase())>-1}))},checkableData:function(){var e=this;return this.filteredData.filter((function(t){return!t[e.disabledProp]}))},checkedSummary:function(){var e=this.checked.length,t=this.data.length,n=this.format,i=n.noChecked,r=n.hasChecked;return i&&r?e>0?r.replace(/\${checked}/g,e).replace(/\${total}/g,t):i.replace(/\${total}/g,t):e+"/"+t},isIndeterminate:function(){var e=this.checked.length;return e>0&&e<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var e=this,t=this.checkableData.map((function(t){return t[e.keyProp]}));this.allChecked=t.length>0&&t.every((function(t){return e.checked.indexOf(t)>-1}))},handleAllCheckedChange:function(e){var t=this;this.checked=e?this.checkableData.map((function(e){return e[t.keyProp]})):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},Nf=$f,jf=a(Nf,Ff,Rf,!1,null,null,null);jf.options.__file="packages/transfer/src/transfer-panel.vue";var Vf=jf.exports,Uf={name:"ElTransfer",mixins:[M.a,v.a,E.a],components:{TransferPanel:Vf,ElButton:se.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var e=this.props.key;return this.data.reduce((function(t,n){return(t[n[e]]=n)&&t}),{})},sourceData:function(){var e=this;return this.data.filter((function(t){return-1===e.value.indexOf(t[e.props.key])}))},targetData:function(){var e=this;return"original"===this.targetOrder?this.data.filter((function(t){return e.value.indexOf(t[e.props.key])>-1})):this.value.reduce((function(t,n){var i=e.dataObj[n];return i&&t.push(i),t}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(e,t){this.leftChecked=e,void 0!==t&&this.$emit("left-check-change",e,t)},onTargetCheckedChange:function(e,t){this.rightChecked=e,void 0!==t&&this.$emit("right-check-change",e,t)},addToLeft:function(){var e=this.value.slice();this.rightChecked.forEach((function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)})),this.$emit("input",e),this.$emit("change",e,"left",this.rightChecked)},addToRight:function(){var e=this,t=this.value.slice(),n=[],i=this.props.key;this.data.forEach((function(t){var r=t[i];e.leftChecked.indexOf(r)>-1&&-1===e.value.indexOf(r)&&n.push(r)})),t="unshift"===this.targetOrder?n.concat(t):t.concat(n),this.$emit("input",t),this.$emit("change",t,"right",this.leftChecked)},clearQuery:function(e){"left"===e?this.$refs.leftPanel.query="":"right"===e&&(this.$refs.rightPanel.query="")}}},qf=Uf,Hf=a(qf,Lf,Bf,!1,null,null,null);Hf.options.__file="packages/transfer/src/main.vue";var Wf=Hf.exports;Wf.install=function(e){e.component(Wf.name,Wf)};var Gf=Wf,Zf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"el-container",class:{"is-vertical":e.isVertical}},[e._t("default")],2)},Xf=[];Zf._withStripped=!0;var Kf={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(e){var t=e.componentOptions&&e.componentOptions.tag;return"el-header"===t||"el-footer"===t})))}}},Yf=Kf,Jf=a(Yf,Zf,Xf,!1,null,null,null);Jf.options.__file="packages/container/src/main.vue";var Qf=Jf.exports;Qf.install=function(e){e.component(Qf.name,Qf)};var em=Qf,tm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{staticClass:"el-header",style:{height:e.height}},[e._t("default")],2)},nm=[];tm._withStripped=!0;var im={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},rm=im,om=a(rm,tm,nm,!1,null,null,null);om.options.__file="packages/header/src/main.vue";var sm=om.exports;sm.install=function(e){e.component(sm.name,sm)};var am=sm,lm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"el-aside",style:{width:e.width}},[e._t("default")],2)},cm=[];lm._withStripped=!0;var um={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},hm=um,dm=a(hm,lm,cm,!1,null,null,null);dm.options.__file="packages/aside/src/main.vue";var pm=dm.exports;pm.install=function(e){e.component(pm.name,pm)};var fm=pm,mm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"el-main"},[e._t("default")],2)},gm=[];mm._withStripped=!0;var vm={name:"ElMain",componentName:"ElMain"},ym=vm,_m=a(ym,mm,gm,!1,null,null,null);_m.options.__file="packages/main/src/main.vue";var bm=_m.exports;bm.install=function(e){e.component(bm.name,bm)};var xm=bm,wm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"el-footer",style:{height:e.height}},[e._t("default")],2)},Cm=[];wm._withStripped=!0;var km={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},Sm=km,Em=a(Sm,wm,Cm,!1,null,null,null);Em.options.__file="packages/footer/src/main.vue";var Tm=Em.exports;Tm.install=function(e){e.component(Tm.name,Tm)};var Mm,Am,Om=Tm,Im={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=arguments[0],t=this.reverse,n={"el-timeline":!0,"is-reverse":t},i=this.$slots.default||[];return t&&(i=i.reverse()),e("ul",{class:n},[i])}},Dm=Im,Pm=a(Dm,Mm,Am,!1,null,null,null);Pm.options.__file="packages/timeline/src/main.vue";var zm=Pm.exports;zm.install=function(e){e.component(zm.name,zm)};var Lm=zm,Bm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),e.$slots.dot?e._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(e.size||""),"el-timeline-item__node--"+(e.type||"")],style:{backgroundColor:e.color}},[e.icon?n("i",{staticClass:"el-timeline-item__icon",class:e.icon}):e._e()]),e.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[e._t("dot")],2):e._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[e.hideTimestamp||"top"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[e._v("\n      "+e._s(e.timestamp)+"\n    ")]),n("div",{staticClass:"el-timeline-item__content"},[e._t("default")],2),e.hideTimestamp||"bottom"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[e._v("\n      "+e._s(e.timestamp)+"\n    ")])])])},Fm=[];Bm._withStripped=!0;var Rm={name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},$m=Rm,Nm=a($m,Bm,Fm,!1,null,null,null);Nm.options.__file="packages/timeline/src/item.vue";var jm=Nm.exports;jm.install=function(e){e.component(jm.name,jm)};var Vm=jm,Um=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({class:["el-link",e.type?"el-link--"+e.type:"",e.disabled&&"is-disabled",e.underline&&!e.disabled&&"is-underline"],attrs:{href:e.disabled?null:e.href},on:{click:e.handleClick}},"a",e.$attrs,!1),[e.icon?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",{staticClass:"el-link--inner"},[e._t("default")],2):e._e(),e.$slots.icon?[e.$slots.icon?e._t("icon"):e._e()]:e._e()],2)},qm=[];Um._withStripped=!0;var Hm={name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(e){this.disabled||this.href||this.$emit("click",e)}}},Wm=Hm,Gm=a(Wm,Um,qm,!1,null,null,null);Gm.options.__file="packages/link/src/main.vue";var Zm=Gm.exports;Zm.install=function(e){e.component(Zm.name,Zm)};var Xm=Zm,Km=function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])},Ym=[];Km._withStripped=!0;var Jm={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},Qm=Jm,eg=a(Qm,Km,Ym,!0,null,null,null);eg.options.__file="packages/divider/src/main.vue";var tg=eg.exports;tg.install=function(e){e.component(tg.name,tg)};var ng=tg,ig=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-image"},[e.loading?e._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):e.error?e._t("error",[n("div",{staticClass:"el-image__error"},[e._v(e._s(e.t("el.image.error")))])]):n("img",e._g(e._b({staticClass:"el-image__inner",class:{"el-image__inner--center":e.alignCenter,"el-image__preview":e.preview},style:e.imageStyle,attrs:{src:e.src},on:{click:e.clickHandler}},"img",e.$attrs,!1),e.$listeners)),e.preview?[e.showViewer?n("image-viewer",{attrs:{"z-index":e.zIndex,"initial-index":e.imageIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()]:e._e()],2)},rg=[];ig._withStripped=!0;var og=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.viewerZIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick(t)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){e.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){e.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:e.mode.icon,on:{click:e.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,(function(t,i){return i===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])},sg=[];og._withStripped=!0;var ag=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},lg={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},cg=Object(y["isFirefox"])()?"DOMMouseScroll":"mousewheel",ug={name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:lg.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var e=this.transform,t=e.scale,n=e.deg,i=e.offsetX,r=e.offsetY,o=e.enableTransition,s={transform:"scale("+t+") rotate("+n+"deg)",transition:o?"transform .3s":"","margin-left":i+"px","margin-top":r+"px"};return this.mode===lg.CONTAIN&&(s.maxWidth=s.maxHeight="100%"),s},viewerZIndex:function(){var e=C["PopupManager"].nextZIndex();return this.zIndex>e?this.zIndex:e}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg:function(e){var t=this;this.$nextTick((function(e){var n=t.$refs.img[0];n.complete||(t.loading=!0)}))}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){t.stopPropagation();var n=t.keyCode;switch(n){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut");break}},this._mouseWheelHandler=Object(y["rafThrottle"])((function(t){var n=t.wheelDelta?t.wheelDelta:-t.detail;n>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(Re["on"])(document,"keydown",this._keyDownHandler),Object(Re["on"])(document,cg,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(Re["off"])(document,"keydown",this._keyDownHandler),Object(Re["off"])(document,cg,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var n=this.transform,i=n.offsetX,r=n.offsetY,o=e.pageX,s=e.pageY;this._dragHandler=Object(y["rafThrottle"])((function(e){t.transform.offsetX=i+e.pageX-o,t.transform.offsetY=r+e.pageY-s})),Object(Re["on"])(document,"mousemove",this._dragHandler),Object(Re["on"])(document,"mouseup",(function(e){Object(Re["off"])(document,"mousemove",t._dragHandler)})),e.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var e=Object.keys(lg),t=Object.values(lg),n=t.indexOf(this.mode),i=(n+1)%e.length;this.mode=lg[e[i]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=ag({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),i=n.zoomRate,r=n.rotateDeg,o=n.enableTransition,s=this.transform;switch(e){case"zoomOut":s.scale>.2&&(s.scale=parseFloat((s.scale-i).toFixed(3)));break;case"zoomIn":s.scale=parseFloat((s.scale+i).toFixed(3));break;case"clocelise":s.deg+=r;break;case"anticlocelise":s.deg-=r;break}s.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},hg=ug,dg=a(hg,og,sg,!1,null,null,null);dg.options.__file="packages/image/src/image-viewer.vue";var pg=dg.exports,fg=function(){return void 0!==document.documentElement.style.objectFit},mg={NONE:"none",CONTAIN:"contain",COVER:"cover",FILL:"fill",SCALE_DOWN:"scale-down"},gg="",vg={name:"ElImage",mixins:[v.a],inheritAttrs:!1,components:{ImageViewer:pg},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},initialIndex:Number},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var e=this.fit;return!this.$isServer&&e?fg()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!fg()&&this.fit!==mg.FILL},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&e.length>0},imageIndex:function(){var e=0,t=this.initialIndex;if(t>=0)return e=t,e;var n=this.previewSrcList.indexOf(this.src);return n>=0?(e=n,e):e}},watch:{src:function(e){this.show&&this.loadImage()},show:function(e){e&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var e=this;if(!this.$isServer){this.loading=!0,this.error=!1;var t=new Image;t.onload=function(n){return e.handleLoad(n,t)},t.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(n){var i=e.$attrs[n];t.setAttribute(n,i)})),t.src=this.src}},handleLoad:function(e,t){this.imageWidth=t.width,this.imageHeight=t.height,this.loading=!1,this.error=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(Re["isInContainer"])(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;t=Object(Gh["isHtmlElement"])(e)?e:Object(Gh["isString"])(e)?document.querySelector(e):Object(Re["getScrollContainer"])(this.$el),t&&(this._scrollContainer=t,this._lazyLoadHandler=Nd()(200,this.handleLazyLoad),Object(Re["on"])(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(Re["off"])(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,i=this.$el,r=i.clientWidth,o=i.clientHeight;if(!t||!n||!r||!o)return{};var s=t/n,a=r/o;if(e===mg.SCALE_DOWN){var l=t<r&&n<o;e=l?mg.NONE:mg.CONTAIN}switch(e){case mg.NONE:return{width:"auto",height:"auto"};case mg.CONTAIN:return s<a?{width:"auto"}:{height:"auto"};case mg.COVER:return s<a?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(gg=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=gg,this.showViewer=!1}}},yg=vg,_g=a(yg,ig,rg,!1,null,null,null);_g.options.__file="packages/image/src/main.vue";var bg=_g.exports;bg.install=function(e){e.component(bg.name,bg)};var xg=bg,wg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[e._v("\n      "+e._s(e.i18nDate)+"\n    ")]),0===e.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("prev-month")}}},[e._v("\n          "+e._s(e.t("el.datepicker.prevMonth"))+"\n        ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("today")}}},[e._v("\n          "+e._s(e.t("el.datepicker.today"))+"\n        ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("next-month")}}},[e._v("\n          "+e._s(e.t("el.datepicker.nextMonth"))+"\n        ")])],1)],1):e._e()]),0===e.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:e.date,"selected-day":e.realSelectedDay,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},e._l(e.validatedRange,(function(t,i){return n("date-table",{key:i,attrs:{date:t[0],"selected-day":e.realSelectedDay,range:t,"hide-header":0!==i,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})})),1)])},Cg=[];wg._withStripped=!0;var kg,Sg,Eg=n(20),Tg=n.n(Eg),Mg={props:{selectedDay:String,range:{type:Array,validator:function(e){if(!e||!e.length)return!0;var t=e[0],n=e[1];return Object(ao["validateRangeInOneMonth"])(t,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(e){return Object(ao["range"])(e.length/7).map((function(t,n){var i=7*n;return e.slice(i,i+7)}))},getFormateDate:function(e,t){if(!e||-1===["prev","current","next"].indexOf(t))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===t?n=this.prevMonthDatePrefix:"next"===t&&(n=this.nextMonthDatePrefix),e=("00"+e).slice(-2),n+"-"+e},getCellClass:function(e){var t=e.text,n=e.type,i=[n];if("current"===n){var r=this.getFormateDate(t,n);r===this.selectedDay&&i.push("is-selected"),r===this.formatedToday&&i.push("is-today")}return i},pickDay:function(e){var t=e.text,n=e.type,i=this.getFormateDate(t,n);this.$emit("pick",i)},cellRenderProxy:function(e){var t=e.text,n=e.type,i=this.$createElement,r=this.elCalendar.$scopedSlots.dateCell;if(!r)return i("span",[t]);var o=this.getFormateDate(t,n),s=new Date(o),a={isSelected:this.selectedDay===o,type:n+"-month",day:o};return r({date:s,data:a})}},computed:{WEEK_DAYS:function(){return Object(ao["getI18nSettings"])().dayNames},prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Tg.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Tg.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Tg.a.format(e,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var e=[];if(this.isInRange){var t=this.range,n=t[0],i=t[1],r=Object(ao["range"])(i.getDate()-n.getDate()+1).map((function(e,t){return{text:n.getDate()+t,type:"current"}})),o=r.length%7;o=0===o?0:7-o;var s=Object(ao["range"])(o).map((function(e,t){return{text:t+1,type:"next"}}));e=r.concat(s)}else{var a=this.date,l=Object(ao["getFirstDayOfMonth"])(a);l=0===l?7:l;var c="number"===typeof this.firstDayOfWeek?this.firstDayOfWeek:1,u=(7+l-c)%7,h=Object(ao["getPrevMonthLastDays"])(a,u).map((function(e){return{text:e,type:"prev"}})),d=Object(ao["getMonthDays"])(a).map((function(e){return{text:e,type:"current"}}));e=[].concat(h,d);var p=Object(ao["range"])(42-e.length).map((function(e,t){return{text:t+1,type:"next"}}));e=e.concat(p)}return this.toNestedArr(e)},weekDays:function(){var e=this.firstDayOfWeek,t=this.WEEK_DAYS;return"number"!==typeof e||0===e?t.slice():t.slice(e).concat(t.slice(0,e))}},render:function(){var e=this,t=arguments[0],n=this.hideHeader?null:t("thead",[this.weekDays.map((function(e){return t("th",{key:e},[e])}))]);return t("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[n,t("tbody",[this.rows.map((function(n,i){return t("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===i&&e.hideHeader},key:i},[n.map((function(n,i){return t("td",{key:i,class:e.getCellClass(n),on:{click:e.pickDay.bind(e,n)}},[t("div",{class:"el-calendar-day"},[e.cellRenderProxy(n)])])}))])}))])])}},Ag=Mg,Og=a(Ag,kg,Sg,!1,null,null,null);Og.options.__file="packages/calendar/src/date-table.vue";var Ig=Og.exports,Dg=["prev-month","today","next-month"],Pg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],zg=864e5,Lg={name:"ElCalendar",mixins:[v.a],components:{DateTable:Ig,ElButton:se.a,ElButtonGroup:le.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(e){return!Array.isArray(e)||2===e.length&&e.every((function(e){return"string"===typeof e||"number"===typeof e||e instanceof Date}))}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(e){this.realSelectedDay=e},selectDate:function(e){if(-1===Dg.indexOf(e))throw new Error("invalid type "+e);var t="";t="prev-month"===e?this.prevMonthDatePrefix+"-01":"next-month"===e?this.nextMonthDatePrefix+"-01":this.formatedToday,t!==this.formatedDate&&this.pickDay(t)},toDate:function(e){if(!e)throw new Error("invalid val");return e instanceof Date?e:new Date(e)},rangeValidator:function(e,t){var n=this.realFirstDayOfWeek,i=t?n:0===n?6:n-1,r=(t?"start":"end")+" of range should be "+Pg[i]+".";return e.getDay()===i||(console.warn("[ElementCalendar]",r,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Tg.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Tg.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Tg.a.format(e,"yyyy-MM")},formatedDate:function(){return Tg.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var e=this.date.getFullYear(),t=this.date.getMonth()+1;return e+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+t)},formatedToday:function(){return Tg.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(e){this.selectedDay=e;var t=new Date(e);this.$emit("input",t)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var e=this.selectedDay.split("-");return new Date(e[0],e[1]-1,e[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var e=this,t=this.range;if(!t)return[];if(t=t.reduce((function(t,n,i){var r=e.toDate(n);return e.rangeValidator(r,0===i)&&(t=t.concat(r)),t}),[]),2===t.length){var n=t,i=n[0],r=n[1];if(i>r)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(ao["validateRangeInOneMonth"])(i,r))return[[i,r]];var o=[],s=new Date(i.getFullYear(),i.getMonth()+1,1),a=this.toDate(s.getTime()-zg);if(!Object(ao["validateRangeInOneMonth"])(s,r))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([i,a]);var l=this.realFirstDayOfWeek,c=s.getDay(),u=0;return c!==l&&(0===l?u=7-c:(u=l-c,u=u>0?u:7+u)),s=this.toDate(s.getTime()+u*zg),s.getDate()<r.getDate()&&o.push([s,r]),o}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},Bg=Lg,Fg=a(Bg,wg,Cg,!1,null,null,null);Fg.options.__file="packages/calendar/src/main.vue";var Rg=Fg.exports;Rg.install=function(e){e.component(Rg.name,Rg)};var $g=Rg,Ng=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-fade-in"}},[e.visible?n("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)}}},[e._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):e._e()])},jg=[];Ng._withStripped=!0;var Vg=function(e){return Math.pow(e,3)},Ug=function(e){return e<.5?Vg(2*e)/2:1-Vg(2*(1-e))/2},qg={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Nd()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){var e=this.el,t=Date.now(),n=e.scrollTop,i=window.requestAnimationFrame||function(e){return setTimeout(e,16)},r=function r(){var o=(Date.now()-t)/500;o<1?(e.scrollTop=n*(1-Ug(o)),i(r)):e.scrollTop=0};i(r)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},Hg=qg,Wg=a(Hg,Ng,jg,!1,null,null,null);Wg.options.__file="packages/backtop/src/main.vue";var Gg=Wg.exports;Gg.install=function(e){e.component(Gg.name,Gg)};var Zg=Gg,Xg=function(e,t){if(e===window&&(e=document.documentElement),1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n},Kg=function(e){return Object.keys(e||{}).map((function(t){return[t,e[t]]}))},Yg=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},Jg=function(e){return Yg(e,"offsetHeight")},Qg=function(e){return Yg(e,"clientHeight")},ev="ElInfiniteScroll",tv={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},nv=function(e,t){return Object(Gh["isHtmlElement"])(e)?Kg(tv).reduce((function(n,i){var r=i[0],o=i[1],s=o.type,a=o.default,l=e.getAttribute("infinite-scroll-"+r);switch(l=Object(Gh["isUndefined"])(t[l])?l:t[l],s){case Number:l=Number(l),l=Number.isNaN(l)?a:l;break;case Boolean:l=Object(Gh["isDefined"])(l)?"false"!==l&&Boolean(l):a;break;default:l=s(l)}return n[r]=l,n}),{}):{}},iv=function(e){return e.getBoundingClientRect().top},rv=function(e){var t=this[ev],n=t.el,i=t.vm,r=t.container,o=t.observer,s=nv(n,i),a=s.distance,l=s.disabled;if(!l){var c=r.getBoundingClientRect();if(c.width||c.height){var u=!1;if(r===n){var h=r.scrollTop+Qg(r);u=r.scrollHeight-h<=a}else{var d=Jg(n)+iv(n)-iv(r),p=Jg(r),f=Number.parseFloat(Xg(r,"borderBottomWidth"));u=d-p+f<=a}u&&Object(Gh["isFunction"])(e)?e.call(i):o&&(o.disconnect(),this[ev].observer=null)}}},ov={name:"InfiniteScroll",inserted:function(e,t,n){var i=t.value,r=n.context,o=Object(Re["getScrollContainer"])(e,!0),s=nv(e,r),a=s.delay,l=s.immediate,c=F()(a,rv.bind(e,i));if(e[ev]={el:e,vm:r,container:o,onScroll:c},o&&(o.addEventListener("scroll",c),l)){var u=e[ev].observer=new MutationObserver(c);u.observe(o,{childList:!0,subtree:!0}),c()}},unbind:function(e){var t=e[ev],n=t.container,i=t.onScroll;n&&n.removeEventListener("scroll",i)},install:function(e){e.directive(ov.name,ov)}},sv=ov,av=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(t){e.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[e._t("title",[e._v(e._s(e.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[e._t("content",[e._v(e._s(e.content))])],2)])},lv=[];av._withStripped=!0;var cv={name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(ya["t"])("el.pageHeader.title")}},content:String}},uv=cv,hv=a(uv,av,lv,!1,null,null,null);hv.options.__file="packages/page-header/src/main.vue";var dv=hv.exports;dv.install=function(e){e.component(dv.name,dv)};var pv=dv,fv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},mv=[];fv._withStripped=!0;var gv,vv,yv=n(44),_v=n.n(yv),bv=function(e){return e.stopPropagation()},xv={inject:["panel"],components:{ElCheckbox:zi.a,ElRadio:_v.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,i=this.isDisabled,r=this.config,o=r.multiple,s=r.checkStrictly;!s&&i||n.loading||(r.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var i=!!t&&n.checked;e.handleMultiCheckChange(i)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,i=this.config,r=i.checkStrictly,o=i.multiple;return o?this.renderCheckbox(e):r?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=bv),e("el-checkbox",nh()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return Object(y["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:bv}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,i=t.renderLabelFn,r=i?i({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[r||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,o=this.isLeaf,s=this.isDisabled,a=this.config,l=this.nodeId,c=a.expandTrigger,u=a.checkStrictly,h=a.multiple,d=!u&&s,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||s||u||h||(p.on.click=this.handleCheckChange),e("li",nh()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":u,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":d}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},wv=xv,Cv=a(wv,gv,vv,!1,null,null,null);Cv.options.__file="packages/cascader-panel/src/cascader-node.vue";var kv,Sv,Ev=Cv.exports,Tv={name:"ElCascaderMenu",mixins:[v.a],inject:["panel"],components:{ElScrollbar:H.a,CascaderNode:Ev},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(y["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,i=this.$refs.hoverZone;if(t&&i)if(t.contains(e.target)){clearTimeout(n);var r=this.$el.getBoundingClientRect(),o=r.left,s=e.clientX-o,a=this.$el,l=a.offsetWidth,c=a.offsetHeight,u=t.offsetTop,h=u+t.offsetHeight;i.innerHTML='\n          <path style="pointer-events: auto;" fill="transparent" d="M'+s+" "+u+" L"+l+" 0 V"+u+' Z" />\n          <path style="pointer-events: auto;" fill="transparent" d="M'+s+" "+h+" L"+l+" "+c+" V"+h+' Z" />\n        '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var o=n.hasChildren;return e("cascader-node",nh()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":o,"aria-owns":o?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",nh()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},Mv=Tv,Av=a(Mv,kv,Sv,!1,null,null,null);Av.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Ov=Av.exports,Iv=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function Dv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Pv=0,zv=function(){function e(t,n,i){Dv(this,e),this.data=t,this.config=n,this.parent=i||null,this.level=this.parent?this.parent.level+1:1,this.uid=Pv++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,i=n.children,r=this.data[i];this.hasChildren=Array.isArray(r),this.children=(r||[]).map((function(i){return new e(i,n,t)}))},e.prototype.calculatePathNodes=function(){var e=[this],t=this.parent;while(t)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(y["isEqual"])(e,t)})):Object(y["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="onParent"+Object(y["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[r]&&t[r].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(y["capitalize"])(e);if(t){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];t[n]&&t[n].apply(t,r),t.emit.apply(t,[e].concat(r))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children,t=e.filter((function(e){return!e.isDisabled})),n=!!t.length&&t.every((function(e){return e.checked}));this.setCheckState(n)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){var n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},Iv(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,s=r.leaf;if(o){var a=Object(Et["isDef"])(e[s])?e[s]:!!t&&!i.length;return this.hasChildren=!a,a}return!n}}]),e}(),Lv=zv;function Bv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Fv=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},Rv=function(){function e(t,n){Bv(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(y["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new Lv(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new Lv(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(y["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:Fv(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(y["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),$v=Rv,Nv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jv=kp.a.keys,Vv={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:y["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Uv=function(e){return!e.getAttribute("aria-owns")},qv=function(e,t){var n=e.parentNode;if(n){var i=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),r=Array.prototype.indexOf.call(i,e);return i[r+t]||null}return null},Hv=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},Wv=function(e){e&&(e.focus(),!Uv(e)&&e.click())},Gv=function(e){if(e){var t=e.querySelector("input");t?t.click():Uv(e)&&e.click()}},Zv={name:"ElCascaderPanel",components:{CascaderMenu:Ov},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return St()(Nv({},Vv),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(e){Object(y["isEqual"])(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(y["isEmpty"])(t)?this.lazyLoad():(this.store=new $v(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(y["isEqual"])(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this,t=this.getFlattedNodes(this.leafOnly);t.forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config,i=n.emitPath;return!(!t&&!i)&&Object(y["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,i=this.activePath,r=this.checkedValue;if(Object(y["isEmpty"])(i))if(this.isEmptyValue(r))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?r[0]:r,s=this.getNodeByValue(o)||{},a=(s.pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var l=i.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(l)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple,i=n?Object(y["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=i.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target,n=e.keyCode;switch(n){case jv.up:var i=qv(t,-1);Wv(i);break;case jv.down:var r=qv(t,1);Wv(r);break;case jv.left:var o=this.$refs.menu[Hv(t)-1];if(o){var s=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');Wv(s)}break;case jv.right:var a=this.$refs.menu[Hv(t)+1];if(a){var l=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');Wv(l)}break;case jv.enter:Gv(t);break;case jv.esc:case jv.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,i=e.level,r=n.slice(0,i-1),o=this.menus.slice(0,i);if(e.isLeaf||(r.push(e),o.push(e.children)),this.activePath=r,this.menus=o,!t){var s=r.map((function(e){return e.getValue()})),a=n.map((function(e){return e.getValue()}));Object(y["valueEquals"])(s,a)||(this.$emit("active-item-change",s),this.$emit("expand-change",s))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,i=this.config;e||(e=e||{root:!0,level:0},this.store=new $v([],i),this.menus=[this.store.getNodes()]),e.loading=!0;var r=function(i){var r=e.root?null:e;if(i&&i.length&&n.store.appendNodes(i,r),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],s=n.config.value,a=n.config.leaf;if(Array.isArray(i)&&i.filter((function(e){return e[s]===o})).length>0){var l=n.store.getNodeByValue(o);l.data[a]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");ni()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},Xv=Zv,Kv=a(Xv,fv,mv,!1,null,null,null);Kv.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Yv=Kv.exports;Yv.install=function(e){e.component(Yv.name,Yv)};var Jv,Qv,ey=Yv,ty={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(e){return"string"===typeof e?["large","medium","small"].includes(e):"number"===typeof e}},shape:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var e=this.size,t=this.icon,n=this.shape,i=["el-avatar"];return e&&"string"===typeof e&&i.push("el-avatar--"+e),t&&i.push("el-avatar--icon"),n&&i.push("el-avatar--"+n),i.join(" ")}},methods:{handleError:function(){var e=this.error,t=e?e():void 0;!1!==t&&(this.isImageExist=!1)},renderAvatar:function(){var e=this.$createElement,t=this.icon,n=this.src,i=this.alt,r=this.isImageExist,o=this.srcSet,s=this.fit;return r&&n?e("img",{attrs:{src:n,alt:i,srcSet:o},on:{error:this.handleError},style:{"object-fit":s}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=arguments[0],t=this.avatarClass,n=this.size,i="number"===typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return e("span",{class:t,style:i},[this.renderAvatar()])}},ny=ty,iy=a(ny,Jv,Qv,!1,null,null,null);iy.options.__file="packages/avatar/src/main.vue";var ry=iy.exports;ry.install=function(e){e.component(ry.name,ry)};var oy=ry,sy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:e.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[e.direction,e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":e.title,role:"dialog",tabindex:"-1"}},[e.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[e._t("title",[n("span",{attrs:{role:"heading",title:e.title}},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(e.title||"drawer"),type:"button"},on:{click:e.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2):e._e(),e.rendered?n("section",{staticClass:"el-drawer__body"},[e._t("default")],2):e._e()])])])])},ay=[];sy._withStripped=!0;var ly={name:"ElDrawer",mixins:[k.a,M.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(e){return-1!==["ltr","rtl","ttb","btt"].indexOf(e)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction},drawerSize:function(){return"number"===typeof this.size?this.size+"px":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||(this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1)),this.$nextTick((function(){t.prevActiveElement&&t.prevActiveElement.focus()})))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},cy=ly,uy=a(cy,sy,ay,!1,null,null,null);uy.options.__file="packages/drawer/src/main.vue";var hy=uy.exports;hy.install=function(e){e.component(hy.name,hy)};var dy=hy,py=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-statistic"},[e.title||e.$slots.title?n("div",{staticClass:"head"},[e._t("title",[n("span",{staticClass:"title"},[e._v("\n        "+e._s(e.title)+"\n      ")])])],2):e._e(),n("div",{staticClass:"con"},[e.prefix||e.$slots.prefix?n("span",{staticClass:"prefix"},[e._t("prefix",[e._v("\n        "+e._s(e.prefix)+"\n      ")])],2):e._e(),n("span",{staticClass:"number",style:e.valueStyle},[e._t("formatter",[e._v(" "+e._s(e.disposeValue))])],2),e.suffix||e.$slots.suffix?n("span",{staticClass:"suffix"},[e._t("suffix",[e._v("\n        "+e._s(e.suffix)+"\n      ")])],2):e._e()])])},fy=[];py._withStripped=!0;var my=n(28),gy={name:"ElStatistic",data:function(){return{disposeValue:"",timeTask:null,REFRESH_INTERVAL:1e3/30}},props:{decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:""},precision:{type:Number,default:null},value:{type:[String,Number,Date],default:""},prefix:{type:String,default:""},suffix:{type:String,default:""},title:{type:[String,Number],default:""},timeIndices:{type:Boolean,default:!1},valueStyle:{type:Object,default:function(){return{}}},format:{type:String,default:"HH:mm:ss:SSS"},rate:{type:Number,default:1e3}},created:function(){this.branch()},watch:{value:function(){this.branch()},groupSeparator:function(){this.dispose()},mulriple:function(){this.dispose()}},methods:{branch:function(){var e=this.timeIndices,t=this.countDown,n=this.dispose;e?t(this.value.valueOf()||this.value):n()},magnification:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:",",i=String(t).length;return e.replace(new RegExp("(\\d)(?=(\\d{"+(i-1)+"})+$)","g"),"$1"+n)},dispose:function(){var e=this.value,t=this.rate,n=this.groupSeparator;if(!Object(my["isNumber"])(e))return!1;this.precision&&(e=e.toFixed(this.precision));var i=String(e).split("."),r=i[0],o=i[1];n&&(r=this.magnification(r,t,n));var s=""+r+(o?this.decimalSeparator+o:"");return this.disposeValue=s,s},diffDate:function(e,t){return Math.max(e-t,0)},suspend:function(e){return e?this.timeTask&&(clearInterval(this.timeTask),this.timeTask=null):this.branch(),this.disposeValue},formatTimeStr:function(e){var t=this.format,n=/\[[^\]]*]/g,i=(t.match(n)||[]).map((function(e){return e.slice(1,-1)})),r=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],o=Object(my["reduce"])(r,(function(t,n){var i=n[0];return t.replace(new RegExp(i+"+","g"),(function(t){var i=Object(my["chain"])(e).divide(n[1]).floor(0).value();return e-=Object(my["multiply"])(i,n[1]),Object(my["padStart"])(String(i),String(t).length,0)}))}),t),s=0;return o.replace(n,(function(){var e=i[s];return s+=1,e}))},stopTime:function(e){var t=!0;return e?(this.$emit("change",e),t=!1):(t=!0,this.suspend(!0),this.$emit("finish",!0)),t},countDown:function(e){var t=this.REFRESH_INTERVAL,n=this.timeTask,i=this.diffDate,r=this.formatTimeStr,o=this.stopTime,s=this.suspend;if(!n){var a=this;this.timeTask=setInterval((function(){var t=i(e,Date.now());a.disposeValue=r(t),o(t)}),t),this.$once("hook:beforeDestroy",(function(){s(!0)}))}}}},vy=gy,yy=a(vy,py,fy,!1,null,null,null);yy.options.__file="packages/statistic/src/main.vue";var _y=yy.exports;_y.install=function(e){e.component(_y.name,_y)};var by=_y,xy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",e._b({attrs:{trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},"el-popover",e.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[e.hideIcon?e._e():n("i",{staticClass:"el-popconfirm__icon",class:e.icon,style:{color:e.iconColor}}),e._v("\n      "+e._s(e.title)+"\n    ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:e.cancelButtonType},on:{click:e.cancel}},[e._v("\n        "+e._s(e.displayCancelButtonText)+"\n      ")]),n("el-button",{attrs:{size:"mini",type:e.confirmButtonType},on:{click:e.confirm}},[e._v("\n        "+e._s(e.displayConfirmButtonText)+"\n      ")])],1)]),e._t("reference",null,{slot:"reference"})],2)},wy=[];xy._withStripped=!0;var Cy=n(45),ky=n.n(Cy),Sy={name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:ky.a,ElButton:se.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(ya["t"])("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(ya["t"])("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},Ey=Sy,Ty=a(Ey,xy,wy,!1,null,null,null);Ty.options.__file="packages/popconfirm/src/main.vue";var My=Ty.exports;My.install=function(e){e.component(My.name,My)};var Ay=My,Oy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.uiLoading?[n("div",e._b({class:["el-skeleton",e.animated?"is-animated":""]},"div",e.$attrs,!1),[e._l(e.count,(function(t){return[e.loading?e._t("template",e._l(e.rows,(function(i){return n("el-skeleton-item",{key:t+"-"+i,class:{"el-skeleton__paragraph":1!==i,"is-first":1===i,"is-last":i===e.rows&&e.rows>1},attrs:{variant:"p"}})}))):e._e()]}))],2)]:[e._t("default",null,null,e.$attrs)]],2)},Iy=[];Oy._withStripped=!0;var Dy={name:"ElSkeleton",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler:function(e){var t=this;this.throttle<=0?this.uiLoading=e:e?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout((function(){t.uiLoading=t.loading}),this.throttle)):this.uiLoading=e},immediate:!0}},data:function(){return{uiLoading:this.throttle<=0&&this.loading}}},Py=Dy,zy=a(Py,Oy,Iy,!1,null,null,null);zy.options.__file="packages/skeleton/src/index.vue";var Ly=zy.exports;Ly.install=function(e){e.component(Ly.name,Ly)};var By=Ly,Fy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-skeleton__item","el-skeleton__"+e.variant]},["image"===e.variant?n("img-placeholder"):e._e()],1)},Ry=[];Fy._withStripped=!0;var $y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M64 896V128h896v768H64z m64-128l192-192 116.352 116.352L640 448l256 307.2V192H128v576z m224-480a96 96 0 1 1-0.064 192.064A96 96 0 0 1 352 288z"}})])},Ny=[];$y._withStripped=!0;var jy={name:"ImgPlaceholder"},Vy=jy,Uy=a(Vy,$y,Ny,!1,null,null,null);Uy.options.__file="packages/skeleton/src/img-placeholder.vue";var qy,Hy=Uy.exports,Wy={name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:(qy={},qy[Hy.name]=Hy,qy)},Gy=Wy,Zy=a(Gy,Fy,Ry,!1,null,null,null);Zy.options.__file="packages/skeleton/src/item.vue";var Xy=Zy.exports;Xy.install=function(e){e.component(Xy.name,Xy)};var Ky=Xy,Yy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-empty"},[n("div",{staticClass:"el-empty__image",style:e.imageStyle},[e.image?n("img",{attrs:{src:e.image,ondragstart:"return false"}}):e._t("image",[n("img-empty")])],2),n("div",{staticClass:"el-empty__description"},[e.$slots.description?e._t("description"):n("p",[e._v(e._s(e.emptyDescription))])],2),e.$slots.default?n("div",{staticClass:"el-empty__bottom"},[e._t("default")],2):e._e()])},Jy=[];Yy._withStripped=!0;var Qy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("linearGradient",{attrs:{id:"linearGradient-1-"+e.id,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#EEEFF3",offset:"100%"}})],1),n("linearGradient",{attrs:{id:"linearGradient-2-"+e.id,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#E9EBEF",offset:"100%"}})],1),n("rect",{attrs:{id:"path-3-"+e.id,x:"0",y:"0",width:"17",height:"36"}})],1),n("g",{attrs:{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"B-type",transform:"translate(-1268.000000, -535.000000)"}},[n("g",{attrs:{id:"Group-2",transform:"translate(1268.000000, 535.000000)"}},[n("path",{attrs:{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"#F7F8FC"}}),n("polygon",{attrs:{id:"Rectangle-Copy-14",fill:"#E5E7E9",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"}}),n("g",{attrs:{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"}},[n("polygon",{attrs:{id:"Rectangle-Copy-10",fill:"#E5E7E9",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"}}),n("polygon",{attrs:{id:"Rectangle-Copy-11",fill:"#EDEEF2",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"}}),n("rect",{attrs:{id:"Rectangle-Copy-12",fill:"url(#linearGradient-1-"+e.id+")",transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"}}),n("polygon",{attrs:{id:"Rectangle-Copy-13",fill:"#F8F9FB",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"}})]),n("rect",{attrs:{id:"Rectangle-Copy-15",fill:"url(#linearGradient-2-"+e.id+")",x:"13",y:"45",width:"40",height:"36"}}),n("g",{attrs:{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"}},[n("mask",{attrs:{id:"mask-4-"+e.id,fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-3-"+e.id}})]),n("use",{attrs:{id:"Mask",fill:"#E0E3E9",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+e.id}}),n("polygon",{attrs:{id:"Rectangle-Copy",fill:"#D5D7DE",mask:"url(#mask-4-"+e.id+")",transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 -1.70530257e-13 16"}})]),n("polygon",{attrs:{id:"Rectangle-Copy-18",fill:"#F8F9FB",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"}})])])])])},e_=[];Qy._withStripped=!0;var t_=0,n_={name:"ImgEmpty",data:function(){return{id:++t_}}},i_=n_,r_=a(i_,Qy,e_,!1,null,null,null);r_.options.__file="packages/empty/src/img-empty.vue";var o_,s_=r_.exports,a_={name:"ElEmpty",components:(o_={},o_[s_.name]=s_,o_),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(ya["t"])("el.empty.description")},imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}},l_=a_,c_=a(l_,Yy,Jy,!1,null,null,null);c_.options.__file="packages/empty/src/index.vue";var u_=c_.exports;u_.install=function(e){e.component(u_.name,u_)};var h_,d_=u_,p_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},f_={name:"ElDescriptionsRow",props:{row:{type:Array}},inject:["elDescriptions"],render:function(e){var t=this.elDescriptions,n=(this.row||[]).map((function(e){return p_({},e,{label:e.slots.label||e.props.label},["labelClassName","contentClassName","labelStyle","contentStyle"].reduce((function(n,i){return n[i]=e.props[i]||t[i],n}),{}))}));return"vertical"===t.direction?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var i;return e("th",{class:(i={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"has-colon":!t.border&&t.colon,"is-bordered-label":t.border},i[n.labelClassName]=!0,i),style:n.labelStyle,attrs:{colSpan:n.props.span}},[n.label])}))]),e("tr",{class:"el-descriptions-row"},[n.map((function(t){return e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",t.contentClassName],style:t.contentStyle,attrs:{colSpan:t.props.span}},[t.slots.default])}))])]):t.border?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var i;return[e("th",{class:(i={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"is-bordered-label":t.border},i[n.labelClassName]=!0,i),style:n.labelStyle,attrs:{colSpan:"1"}},[n.label]),e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",n.contentClassName],style:n.contentStyle,attrs:{colSpan:2*n.props.span-1}},[n.slots.default])]}))])]):e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var i;return e("td",{class:"el-descriptions-item el-descriptions-item__cell",attrs:{colSpan:n.props.span}},[e("div",{class:"el-descriptions-item__container"},[e("span",{class:(i={"el-descriptions-item__label":!0,"has-colon":t.colon},i[n.labelClassName]=!0,i),style:n.labelStyle},[n.label]),e("span",{class:["el-descriptions-item__content",n.contentClassName],style:n.contentStyle},[n.slots.default])])])}))])])}},m_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},g_={name:"ElDescriptions",components:(h_={},h_[f_.name]=f_,h_),props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String},title:{type:String,default:""},extra:{type:String,default:""},labelStyle:{type:Object},contentStyle:{type:Object},labelClassName:{type:String,default:""},contentClassName:{type:String,default:""},colon:{type:Boolean,default:!0}},computed:{descriptionsSize:function(){return this.size||(this.$ELEMENT||{}).size}},provide:function(){return{elDescriptions:this}},methods:{getOptionProps:function(e){if(e.componentOptions){var t=e.componentOptions,n=t.propsData,i=void 0===n?{}:n,r=t.Ctor,o=void 0===r?{}:r,s=(o.options||{}).props||{},a={};for(var l in s){var c=s[l],u=c.default;void 0!==u&&(a[l]=Object(Gh["isFunction"])(u)?u.call(e):u)}return m_({},a,i)}return{}},getSlots:function(e){var t=this,n=e.componentOptions||{},i=e.children||n.children||[],r={};return i.forEach((function(e){if(!t.isEmptyElement(e)){var n=e.data&&e.data.slot||"default";r[n]=r[n]||[],"template"===e.tag?r[n].push(e.children):r[n].push(e)}})),m_({},r)},isEmptyElement:function(e){return!(e.tag||e.text&&""!==e.text.trim())},filledNode:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.props||(e.props={}),t>n&&(e.props.span=n),i&&(e.props.span=n),e},getRows:function(){var e=this,t=(this.$slots.default||[]).filter((function(e){return e.tag&&e.componentOptions&&"ElDescriptionsItem"===e.componentOptions.Ctor.options.name})),n=t.map((function(t){return{props:e.getOptionProps(t),slots:e.getSlots(t),vnode:t}})),i=[],r=[],o=this.column;return n.forEach((function(n,s){var a=n.props.span||1;if(s===t.length-1)return r.push(e.filledNode(n,a,o,!0)),void i.push(r);a<o?(o-=a,r.push(n)):(r.push(e.filledNode(n,a,o)),i.push(r),o=e.column,r=[])})),i}},render:function(){var e=arguments[0],t=this.title,n=this.extra,i=this.border,r=this.descriptionsSize,o=this.$slots,s=this.getRows();return e("div",{class:"el-descriptions"},[t||n||o.title||o.extra?e("div",{class:"el-descriptions__header"},[e("div",{class:"el-descriptions__title"},[o.title?o.title:t]),e("div",{class:"el-descriptions__extra"},[o.extra?o.extra:n])]):null,e("div",{class:"el-descriptions__body"},[e("table",{class:["el-descriptions__table",{"is-bordered":i},r?"el-descriptions--"+r:""]},[s.map((function(t){return e(f_,{attrs:{row:t}})}))])])])},install:function(e){e.component(g_.name,g_)}},v_=g_,y_={name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},contentClassName:{type:String,default:""},contentStyle:{type:Object},labelClassName:{type:String,default:""},labelStyle:{type:Object}},render:function(){return null},install:function(e){e.component(y_.name,y_)}},__=y_,b_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-result"},[n("div",{staticClass:"el-result__icon"},[e._t("icon",[n(e.iconElement,{tag:"component",class:e.iconElement})])],2),e.title||e.$slots.title?n("div",{staticClass:"el-result__title"},[e._t("title",[n("p",[e._v(e._s(e.title))])])],2):e._e(),e.subTitle||e.$slots.subTitle?n("div",{staticClass:"el-result__subtitle"},[e._t("subTitle",[n("p",[e._v(e._s(e.subTitle))])])],2):e._e(),e.$slots.extra?n("div",{staticClass:"el-result__extra"},[e._t("extra")],2):e._e()])},x_=[];b_._withStripped=!0;var w_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z"}})])},C_=[];w_._withStripped=!0;var k_={name:"IconSuccess"},S_=k_,E_=a(S_,w_,C_,!1,null,null,null);E_.options.__file="packages/result/src/icon-success.vue";var T_=E_.exports,M_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z"}})])},A_=[];M_._withStripped=!0;var O_={name:"IconError"},I_=O_,D_=a(I_,M_,A_,!1,null,null,null);D_.options.__file="packages/result/src/icon-error.vue";var P_=D_.exports,z_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z"}})])},L_=[];z_._withStripped=!0;var B_={name:"IconWarning"},F_=B_,R_=a(F_,z_,L_,!1,null,null,null);R_.options.__file="packages/result/src/icon-warning.vue";var $_=R_.exports,N_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z"}})])},j_=[];N_._withStripped=!0;var V_={name:"IconInfo"},U_=V_,q_=a(U_,N_,j_,!1,null,null,null);q_.options.__file="packages/result/src/icon-info.vue";var H_,W_=q_.exports,G_={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Z_={name:"ElResult",components:(H_={},H_[T_.name]=T_,H_[P_.name]=P_,H_[$_.name]=$_,H_[W_.name]=W_,H_),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var e=this.icon;return e&&G_[e]?G_[e]:"icon-info"}}},X_=Z_,K_=a(X_,b_,x_,!1,null,null,null);K_.options.__file="packages/result/src/index.vue";var Y_=K_.exports;Y_.install=function(e){e.component(Y_.name,Y_)};var J_=Y_,Q_=[b,P,re,pe,be,Te,He,et,ct,gt,It,$t,Wt,en,ln,mn,wn,An,Bn,li,ci,gi,Ci,Oi,Kr,ro,Ps,Hs,ra,pa,ma,Ga,el,al,wl,Ul,Jl,ic,Dc,Nc,gu,ju,Uu,Wu,Sh,Dh,$h,ld,md,wd,Ad,Bd,Hd,Kd,rp,hp,yp,Pp,zf,Gf,em,am,fm,xm,Om,Lm,Vm,Xm,ng,xg,$g,Zg,pv,ey,oy,dy,by,Ay,By,Ky,d_,v_,__,J_,Ge.a],eb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_a.a.use(t.locale),_a.a.i18n(t.i18n),Q_.forEach((function(t){e.component(t.name,t)})),e.use(sv),e.use(zu.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=zu.service,e.prototype.$msgbox=Na,e.prototype.$alert=Na.alert,e.prototype.$confirm=Na.confirm,e.prototype.$prompt=Na.prompt,e.prototype.$notify=eu,e.prototype.$message=td};"undefined"!==typeof window&&window.Vue&&eb(window.Vue);t["default"]={version:"2.15.14",locale:_a.a.use,i18n:_a.a.i18n,install:eb,CollapseTransition:Ge.a,Loading:zu,Pagination:b,Dialog:P,Autocomplete:re,Dropdown:pe,DropdownMenu:be,DropdownItem:Te,Menu:He,Submenu:et,MenuItem:ct,MenuItemGroup:gt,Input:It,InputNumber:$t,Radio:Wt,RadioGroup:en,RadioButton:ln,Checkbox:mn,CheckboxButton:wn,CheckboxGroup:An,Switch:Bn,Select:li,Option:ci,OptionGroup:gi,Button:Ci,ButtonGroup:Oi,Table:Kr,TableColumn:ro,DatePicker:Ps,TimeSelect:Hs,TimePicker:ra,Popover:pa,Tooltip:ma,MessageBox:Na,Breadcrumb:Ga,BreadcrumbItem:el,Form:al,FormItem:wl,Tabs:Ul,TabPane:Jl,Tag:ic,Tree:Dc,Alert:Nc,Notification:eu,Slider:gu,Icon:ju,Row:Uu,Col:Wu,Upload:Sh,Progress:Dh,Spinner:$h,Message:td,Badge:ld,Card:md,Rate:wd,Steps:Ad,Step:Bd,Carousel:Hd,Scrollbar:Kd,CarouselItem:rp,Collapse:hp,CollapseItem:yp,Cascader:Pp,ColorPicker:zf,Transfer:Gf,Container:em,Header:am,Aside:fm,Main:xm,Footer:Om,Timeline:Lm,TimelineItem:Vm,Link:Xm,Divider:ng,Image:xg,Calendar:$g,Backtop:Zg,InfiniteScroll:sv,PageHeader:pv,CascaderPanel:ey,Avatar:oy,Drawer:dy,Statistic:by,Popconfirm:Ay,Skeleton:By,SkeletonItem:Ky,Empty:d_,Descriptions:v_,DescriptionsItem:__,Result:J_}}])["default"]},2078:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=87)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},10:function(e,t){e.exports=n(2)},2:function(e,t){e.exports=n(8676)},22:function(e,t){e.exports=n(1929)},3:function(e,t){e.exports=n(7990)},30:function(e,t,n){"use strict";var i=n(2),r=n(3);t["a"]={bind:function(e,t,n){var o=null,s=void 0,a=Object(r["isMac"])()?100:200,l=function(){return n.context[t.expression].apply()},c=function(){Date.now()-s<a&&l(),clearInterval(o),o=null};Object(i["on"])(e,"mousedown",(function(e){0===e.button&&(s=Date.now(),Object(i["once"])(document,"mouseup",c),clearInterval(o),o=setInterval(l,a))}))}}},87:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},r=[];i._withStripped=!0;var o=n(10),s=n.n(o),a=n(22),l=n.n(a),c=n(30),u={name:"ElInputNumber",mixins:[l()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:c["a"]},components:{ElInput:s.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),i=0;return-1!==n&&(i=t.length-n-1),i},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},h=u,d=n(0),p=Object(d["a"])(h,i,r,!1,null,null,null);p.options.__file="packages/input-number/src/input-number.vue";var f=p.exports;f.install=function(e){e.component(f.name,f)};t["default"]=f}})},2:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=75)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},11:function(e,t){e.exports=n(6755)},21:function(e,t){e.exports=n(9727)},4:function(e,t){e.exports=n(9111)},75:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n            "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n          ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},r=[];i._withStripped=!0;var o=n(4),s=n.n(o),a=n(11),l=n.n(a),c=void 0,u="\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important\n",h=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function d(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=h.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:i,borderSize:r,boxSizing:n}}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;c||(c=document.createElement("textarea"),document.body.appendChild(c));var i=d(e),r=i.paddingSize,o=i.borderSize,s=i.boxSizing,a=i.contextStyle;c.setAttribute("style",a+";"+u),c.value=e.value||e.placeholder||"";var l=c.scrollHeight,h={};"border-box"===s?l+=o:"content-box"===s&&(l-=r),c.value="";var p=c.scrollHeight-r;if(null!==t){var f=p*t;"border-box"===s&&(f=f+r+o),l=Math.max(f,l),h.minHeight=f+"px"}if(null!==n){var m=p*n;"border-box"===s&&(m=m+r+o),l=Math.min(m,l)}return h.height=l+"px",c.parentNode&&c.parentNode.removeChild(c),c=null,h}var f=n(9),m=n.n(f),g=n(21),v={name:"ElInput",componentName:"ElInput",mixins:[s.a,l.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return m()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=p(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:p(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(g["isKorean"])(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"},o=r[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},y=v,_=n(0),b=Object(_["a"])(y,i,r,!1,null,null,null);b.options.__file="packages/input/src/input.vue";var x=b.exports;x.install=function(e){e.component(x.name,x)};t["default"]=x},9:function(e,t){e.exports=n(7592)}})},9478:function(e,t,n){"use strict";t.__esModule=!0;var i="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};t["default"]=function(e){function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return 1===n.length&&"object"===i(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(o,(function(t,i,o,s){var a=void 0;return"{"===e[s-1]&&"}"===e[s+t.length]?o:(a=(0,r.hasOwn)(n,o)?n[o]:null,null===a||void 0===a?"":a)}))}return t};var r=n(7990),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},7933:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var i=n(5694),r=h(i),o=n(9274),s=h(o),a=n(2034),l=h(a),c=n(9478),u=h(c);function h(e){return e&&e.__esModule?e:{default:e}}var d=(0,u.default)(s.default),p=r.default,f=!1,m=function(){var e=Object.getPrototypeOf(this||s.default).$t;if("function"===typeof e&&s.default.locale)return f||(f=!0,s.default.locale(s.default.config.lang,(0,l.default)(p,s.default.locale(s.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},g=t.t=function(e,t){var n=m.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var i=e.split("."),r=p,o=0,s=i.length;o<s;o++){var a=i[o];if(n=r[a],o===s-1)return d(n,t);if(!n)return"";r=n}return""},v=t.use=function(e){p=e||p},y=t.i18n=function(e){m=e||m};t["default"]={use:v,t:g,i18n:y}},2955:function(e,t){"use strict";t.A={el:{colorpicker:{confirm:"OK",clear:"Leeren"},datepicker:{now:"Jetzt",today:"Heute",cancel:"Abbrechen",clear:"Leeren",confirm:"OK",selectDate:"Datum wählen",selectTime:"Uhrzeit wählen",startDate:"Startdatum",startTime:"Startzeit",endDate:"Enddatum",endTime:"Endzeit",prevYear:"Letztes Jahr",nextYear:"Nächtes Jahr",prevMonth:"Letzter Monat",nextMonth:"Nächster Monat",day:"Tag",week:"Woche",month:"Monat",year:"",month1:"Januar",month2:"Februar",month3:"März",month4:"April",month5:"Mai",month6:"Juni",month7:"Juli",month8:"August",month9:"September",month10:"Oktober",month11:"November",month12:"Dezember",weeks:{sun:"So",mon:"Mo",tue:"Di",wed:"Mi",thu:"Do",fri:"Fr",sat:"Sa"},months:{jan:"Jan",feb:"Feb",mar:"Mär",apr:"Apr",may:"Mai",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Okt",nov:"Nov",dec:"Dez"}},select:{loading:"Lädt.",noMatch:"Nichts gefunden.",noData:"Keine Daten",placeholder:"Daten wählen"},cascader:{noMatch:"Nichts gefunden.",loading:"Lädt.",placeholder:"Daten wählen",noData:"Keine Daten"},pagination:{goto:"Gehe zu",pagesize:" pro Seite",total:"Gesamt {total}",pageClassifier:""},messagebox:{confirm:"OK",cancel:"Abbrechen",error:"Fehler"},upload:{deleteTip:"Klicke löschen zum entfernen",delete:"Löschen",preview:"Vorschau",continue:"Fortsetzen"},table:{emptyText:"Keine Daten",confirmFilter:"Anwenden",resetFilter:"Zurücksetzen",clearFilter:"Alles ",sumText:"Summe"},tree:{emptyText:"Keine Einträge"},transfer:{noMatch:"Nichts gefunden.",noData:"Keine Einträge",titles:["Liste 1","Liste 2"],filterPlaceholder:"Einträge filtern",noCheckedFormat:"{total} Einträge",hasCheckedFormat:"{checked}/{total} ausgewählt"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},empty:{description:"Keine Daten"}}}},5694:function(e,t){"use strict";t.__esModule=!0,t["default"]={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},9111:function(e,t){"use strict";function n(e,t,i){this.$children.forEach((function(r){var o=r.$options.componentName;o===e?r.$emit.apply(r,[t].concat(i)):n.apply(r,[e,t].concat([i]))}))}t.__esModule=!0,t["default"]={methods:{dispatch:function(e,t,n){var i=this.$parent||this.$root,r=i.$options.componentName;while(i&&(!r||r!==e))i=i.$parent,i&&(r=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(n))},broadcast:function(e,t,i){n.call(this,e,t,i)}}}},1929:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},3603:function(e,t,n){"use strict";t.__esModule=!0;var i=n(7933);t["default"]={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.t.apply(this,t)}}}},6755:function(e,t,n){"use strict";t.__esModule=!0;n(7990);t["default"]={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},9249:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=54)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},3:function(e,t){e.exports=n(7990)},33:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},r=[];i._withStripped=!0;var o=n(4),s=n.n(o),a=n(3),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},c={mixins:[s.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(a["getValueByPath"])(e,n)===Object(a["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(a["getValueByPath"])(e,n)===Object(a["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(a["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=c,h=n(0),d=Object(h["a"])(u,i,r,!1,null,null,null);d.options.__file="packages/select/src/option.vue";t["a"]=d.exports},4:function(e,t){e.exports=n(9111)},54:function(e,t,n){"use strict";n.r(t);var i=n(33);i["a"].install=function(e){e.component(i["a"].name,i["a"])},t["default"]=i["a"]}})},131:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=78)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},2:function(e,t){e.exports=n(8676)},3:function(e,t){e.exports=n(7990)},5:function(e,t){e.exports=n(6923)},7:function(e,t){e.exports=n(9274)},78:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},r=[];i._withStripped=!0;var o=n(5),s=n.n(o),a=n(2),l=n(3),c={name:"ElPopover",mixins:[s.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(l["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(a["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(a["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(a["on"])(n,"focusin",this.handleFocus),Object(a["on"])(t,"focusout",this.handleBlur),Object(a["on"])(n,"focusout",this.handleBlur)),Object(a["on"])(t,"keydown",this.handleKeydown),Object(a["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(a["on"])(t,"click",this.doToggle),Object(a["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(a["on"])(t,"mouseenter",this.handleMouseEnter),Object(a["on"])(n,"mouseenter",this.handleMouseEnter),Object(a["on"])(t,"mouseleave",this.handleMouseLeave),Object(a["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(a["on"])(t,"focusin",this.doShow),Object(a["on"])(t,"focusout",this.doClose)):(Object(a["on"])(t,"mousedown",this.doShow),Object(a["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(a["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(a["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(a["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(a["off"])(e,"click",this.doToggle),Object(a["off"])(e,"mouseup",this.doClose),Object(a["off"])(e,"mousedown",this.doShow),Object(a["off"])(e,"focusin",this.doShow),Object(a["off"])(e,"focusout",this.doClose),Object(a["off"])(e,"mousedown",this.doShow),Object(a["off"])(e,"mouseup",this.doClose),Object(a["off"])(e,"mouseleave",this.handleMouseLeave),Object(a["off"])(e,"mouseenter",this.handleMouseEnter),Object(a["off"])(document,"click",this.handleDocumentClick)}},u=c,h=n(0),d=Object(h["a"])(u,i,r,!1,null,null,null);d.options.__file="packages/popover/src/main.vue";var p=d.exports,f=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},m={bind:function(e,t,n){f(e,t,n)},inserted:function(e,t,n){f(e,t,n)}},g=n(7),v=n.n(g);v.a.directive("popover",m),p.install=function(e){e.directive("popover",m),e.component(p.name,p)},p.directive=m;t["default"]=p}})},7555:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=104)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},104:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px",backgroundColor:e.defineBackColor}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText",style:{color:e.textColor}},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:e.defineBackColor,"stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px",color:e.textColor}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},r=[];i._withStripped=!0;var o={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},defineBackColor:{type:[String,Array,Function],default:"#ebeef5"},textColor:{type:[String,Array,Function],default:"#606266"},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n        M 50 50\n        m 0 "+(t?"":"-")+e+"\n        a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n        a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n        "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},s=o,a=n(0),l=Object(a["a"])(s,i,r,!1,null,null,null);l.options.__file="packages/progress/src/progress.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},6449:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=88)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n(9111)},88:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},r=[];i._withStripped=!0;var o=n(4),s=n.n(o),a={name:"ElRadio",mixins:[s.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},l=a,c=n(0),u=Object(c["a"])(l,i,r,!1,null,null,null);u.options.__file="packages/radio/src/radio.vue";var h=u.exports;h.install=function(e){e.component(h.name,h)};t["default"]=h}})},7576:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=133)}({133:function(e,t,n){"use strict";n.r(t);var i=n(16),r=n(39),o=n.n(r),s=n(3),a=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function c(e){var t=e.move,n=e.size,i=e.bar,r={},o="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=o,r.msTransform=o,r.webkitTransform=o,r}var u={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:c({size:t,move:n,bar:i})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,i=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(a["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(a["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),i=this.$refs.thumb[this.bar.offset]-t,r=100*(n-i)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(a["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(a["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},h={name:"ElScrollbar",components:{Bar:u},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=o()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(s["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=i):"string"===typeof this.wrapStyle?n+=r:n=r}var a=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[a]]),c=void 0;return c=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[a]])]:[l,e(u,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(u,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},c)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(i["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(i["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(h.name,h)}};t["default"]=h},16:function(e,t){e.exports=n(9799)},2:function(e,t){e.exports=n(8676)},3:function(e,t){e.exports=n(7990)},39:function(e,t){e.exports=n(5563)}})},9376:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=62)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},10:function(e,t){e.exports=n(2)},12:function(e,t){e.exports=n(9393)},15:function(e,t){e.exports=n(7576)},16:function(e,t){e.exports=n(9799)},19:function(e,t){e.exports=n(7810)},21:function(e,t){e.exports=n(9727)},22:function(e,t){e.exports=n(1929)},3:function(e,t){e.exports=n(7990)},31:function(e,t){e.exports=n(6890)},33:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},r=[];i._withStripped=!0;var o=n(4),s=n.n(o),a=n(3),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},c={mixins:[s.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(a["getValueByPath"])(e,n)===Object(a["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(a["getValueByPath"])(e,n)===Object(a["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(a["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=c,h=n(0),d=Object(h["a"])(u,i,r,!1,null,null,null);d.options.__file="packages/select/src/option.vue";t["a"]=d.exports},38:function(e,t){e.exports=n(7946)},4:function(e,t){e.exports=n(9111)},5:function(e,t){e.exports=n(6923)},6:function(e,t){e.exports=n(3603)},62:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n          "+e._s(e.emptyText)+"\n        ")])]:e._e()],2)],1)],1)},r=[];i._withStripped=!0;var o=n(4),s=n.n(o),a=n(22),l=n.n(a),c=n(6),u=n.n(c),h=n(10),d=n.n(h),p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},f=[];p._withStripped=!0;var m=n(5),g=n.n(m),v={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[g.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},y=v,_=n(0),b=Object(_["a"])(y,p,f,!1,null,null,null);b.options.__file="packages/select/src/select-dropdown.vue";var x=b.exports,w=n(33),C=n(38),k=n.n(C),S=n(15),E=n.n(S),T=n(19),M=n.n(T),A=n(12),O=n.n(A),I=n(16),D=n(31),P=n.n(D),z=n(3),L={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},B=n(21),F={mixins:[s.a,u.a,l()("reference"),L],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(z["isIE"])()&&!Object(z["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:d.a,ElSelectMenu:x,ElOption:w["a"],ElTag:k.a,ElScrollbar:E.a},directives:{Clickoutside:O.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(z["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(e){this.isOnComposition||this.navigateOptions(e)},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(B["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");P()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(z["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var s=this.cachedOptions[o],a=n?Object(z["getValueByPath"])(s.value,this.valueKey)===Object(z["getValueByPath"])(e,this.valueKey):s.value===e;if(a){t=s;break}}if(t)return t;var l=n||i||r?"":String(e),c={value:e,currentLabel:l};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=i?Math.round(i.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(i?r+(r>o?6:0):0,o)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length<this.multipleLimit)&&i.push(e.value),this.$emit("input",i),this.emitChange(i),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(z["getValueByPath"])(e,i)===Object(z["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(z["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=M()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=M()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(I["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(I["removeResizeListener"])(this.$el,this.handleResize)}},R=F,$=Object(_["a"])(R,i,r,!1,null,null,null);$.options.__file="packages/select/src/select.vue";var N=$.exports;N.install=function(e){e.component(N.name,N)};t["default"]=N}})},7946:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=132)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},132:function(e,t,n){"use strict";n.r(t);var i,r,o={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],s=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?s:e("transition",{attrs:{name:"el-zoom-in-center"}},[s])}},s=o,a=n(0),l=Object(a["a"])(s,i,r,!1,null,null,null);l.options.__file="packages/tag/src/tag.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},6253:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=138)}({138:function(e,t,n){"use strict";n.r(t);var i=n(5),r=n.n(i),o=n(19),s=n.n(o),a=n(2),l=n(3),c=n(7),u=n.n(c),h={name:"ElTooltip",mixins:[r.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new u.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=s()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(a["on"])(this.referenceElm,"mouseenter",this.show),Object(a["on"])(this.referenceElm,"mouseleave",this.hide),Object(a["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(a["on"])(this.referenceElm,"blur",this.handleBlur),Object(a["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(a["addClass"])(this.referenceElm,"focusing"):Object(a["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)if(e[n]&&e[n].tag){t=e[n];break}return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(a["off"])(e,"mouseenter",this.show),Object(a["off"])(e,"mouseleave",this.hide),Object(a["off"])(e,"focus",this.handleFocus),Object(a["off"])(e,"blur",this.handleBlur),Object(a["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(h.name,h)}};t["default"]=h},19:function(e,t){e.exports=n(7810)},2:function(e,t){e.exports=n(8676)},3:function(e,t){e.exports=n(7990)},5:function(e,t){e.exports=n(6923)},7:function(e,t){e.exports=n(9274)}})},8932:function(e,t,n){"use strict";t.__esModule=!0;var i=n(8676);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e)}return e.prototype.beforeEnter=function(e){(0,i.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},e.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},e.prototype.afterEnter=function(e){(0,i.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},e.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},e.prototype.leave=function(e){0!==e.scrollHeight&&((0,i.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,i.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},e}();t["default"]={name:"ElCollapseTransition",functional:!0,render:function(e,t){var n=t.children,i={on:new o};return e("transition",i,n)}}},7132:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var r=!1,o=function(){r||(r=!0,t&&t.apply(null,arguments))};i?e.$once("after-leave",o):e.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},2116:function(e,t,n){"use strict";t.__esModule=!0;var i="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},r=n(907),o=s(r);function s(e){return e&&e.__esModule?e:{default:e}}var a,l=l||{};l.Dialog=function(e,t,n){var r=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"===typeof t?this.focusAfterClosed=document.getElementById(t):"object"===("undefined"===typeof t?"undefined":i(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":i(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():o.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,a=function(e){r.trapFocus(e)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",a,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",a,!0)},l.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},l.Dialog.prototype.trapFocus=function(e){o.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(o.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&o.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t["default"]=l.Dialog},907:function(e,t){"use strict";t.__esModule=!0;var n=n||{};n.Utils=n.Utils||{},n.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var i=e.childNodes[t];if(n.Utils.attemptFocus(i)||n.Utils.focusFirstDescendant(i))return!0}return!1},n.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var i=e.childNodes[t];if(n.Utils.attemptFocus(i)||n.Utils.focusLastDescendant(i))return!0}return!1},n.Utils.attemptFocus=function(e){if(!n.Utils.isFocusable(e))return!1;n.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return n.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},n.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},n.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,o=Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return i.initEvent.apply(i,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on"+t,i),e},n.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t["default"]=n.Utils},9393:function(e,t,n){"use strict";t.__esModule=!0;var i=n(9274),r=s(i),o=n(8676);function s(e){return e&&e.__esModule?e:{default:e}}var a=[],l="@@clickoutsideContext",c=void 0,u=0;function h(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&r.target)||e.contains(i.target)||e.contains(r.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(r.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!r.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return c=e})),!r.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){a.forEach((function(t){return t[l].documentHandler(e,c)}))})),t["default"]={bind:function(e,t,n){a.push(e);var i=u++;e[l]={id:i,documentHandler:h(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=h(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=a.length,n=0;n<t;n++)if(a[n][l].id===e[l].id){a.splice(n,1);break}delete e[l]}}},3155:function(e,t,n){"use strict";t.__esModule=!0,t.validateRangeInOneMonth=t.extractTimeFormat=t.extractDateFormat=t.nextYear=t.prevYear=t.nextMonth=t.prevMonth=t.changeYearMonthAndClampDate=t.timeWithinRange=t.limitTimeRange=t.clearMilliseconds=t.clearTime=t.modifyWithTimeString=t.modifyTime=t.modifyDate=t.range=t.getRangeMinutes=t.getMonthDays=t.getPrevMonthLastDays=t.getRangeHours=t.getWeekNumber=t.getStartDateOfMonth=t.nextDate=t.prevDate=t.getFirstDayOfMonth=t.getDayCountOfYear=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.isDateObject=t.isDate=t.toDate=t.getI18nSettings=void 0;var i=n(758),r=s(i),o=n(7933);function s(e){return e&&e.__esModule?e:{default:e}}var a=["sun","mon","tue","wed","thu","fri","sat"],l=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],c=function(e,t){for(var n=[],i=e;i<=t;i++)n.push(i);return n},u=t.getI18nSettings=function(){return{dayNamesShort:a.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),dayNames:a.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),monthNamesShort:l.map((function(e){return(0,o.t)("el.datepicker.months."+e)})),monthNames:l.map((function(e,t){return(0,o.t)("el.datepicker.month"+(t+1))})),amPm:["am","pm"]}},h=t.toDate=function(e){return d(e)?new Date(e):null},d=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},p=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return e=h(e),e?r.default.format(e,t||"yyyy-MM-dd",u()):""},t.parseDate=function(e,t){return r.default.parse(e,t||"yyyy-MM-dd",u())}),f=t.getDayCountOfMonth=function(e,t){return isNaN(+t)?31:new Date(e,+t+1,0).getDate()},m=(t.getDayCountOfYear=function(e){var t=e%400===0||e%100!==0&&e%4===0;return t?366:365},t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),i=n.getDay();return m(n,0===i?7:i)},t.getWeekNumber=function(e){if(!d(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach((function(e){var t=e.map((function(e){return e.getHours()}));n=n.concat(c(t[0],t[1]))})),n.length)for(var i=0;i<24;i++)t[i]=-1===n.indexOf(i);else for(var r=0;r<24;r++)t[r]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var i=n.getDate();return v(t).map((function(e,n){return i-(t-n-1)}))},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=t.getDate();return v(n).map((function(e,t){return t+1}))};function g(e,t,n,i){for(var r=t;r<n;r++)e[r]=i}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach((function(e){var i=e[0],r=e[1],o=i.getHours(),s=i.getMinutes(),a=r.getHours(),l=r.getMinutes();o===t&&a!==t?g(n,s,60,!0):o===t&&a===t?g(n,s,l+1,!0):o!==t&&a===t?g(n,0,l+1,!0):o<t&&a>t&&g(n,0,60,!0)})):g(n,0,60,!0),n};var v=t.range=function(e){return Array.apply(null,{length:e}).map((function(e,t){return t}))},y=t.modifyDate=function(e,t,n,i){return new Date(t,n,i,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},_=t.modifyTime=function(e,t,n,i){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,i,e.getMilliseconds())},b=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=p(t,"HH:mm:ss"),_(e,t.getHours(),t.getMinutes(),t.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var i=function(e){return r.default.parse(r.default.format(e,n),n)},o=i(e),s=t.map((function(e){return e.map(i)}));if(s.some((function(e){return o>=e[0]&&o<=e[1]})))return e;var a=s[0][0],l=s[0][0];s.forEach((function(e){a=new Date(Math.min(e[0],a)),l=new Date(Math.max(e[1],a))}));var c=o<a?a:l;return y(c,e.getFullYear(),e.getMonth(),e.getDate())}),x=(t.timeWithinRange=function(e,t,n){var i=b(e,t,n);return i.getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var i=Math.min(e.getDate(),f(t,n));return y(e,t,n,i)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?x(e,t-1,11):x(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?x(e,t+1,0):x(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),i=e.getMonth();return x(e,n-t,i)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),i=e.getMonth();return x(e,n+t,i)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},758:function(e,t,n){"use strict";var i;(function(){var r={},o=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",a="\\d{3}",l="\\d{4}",c="[^\\s]+",u=/\[([^]*?)\]/gm,h=function(){};function d(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function p(e,t){for(var n=[],i=0,r=e.length;i<r;i++)n.push(e[i].substr(0,t));return n}function f(e){return function(t,n,i){var r=i[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)}}function m(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"],y=p(v,3),_=p(g,3);r.i18n={dayNamesShort:_,dayNames:g,monthNamesShort:y,monthNames:v,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};var b={D:function(e){return e.getDay()},DD:function(e){return m(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return m(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return m(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return m(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return m(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return m(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return m(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return m(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return m(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return m(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return m(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+m(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},x={d:[s,function(e,t){e.day=t}],Do:[s+c,function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],yy:[s,function(e,t){var n=new Date,i=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?i-1:i)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],yyyy:[l,function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:[a,function(e,t){e.millisecond=t}],D:[s,h],ddd:[c,h],MMM:[c,f("monthNamesShort")],MMMM:[c,f("monthNames")],a:[c,function(e,t,n){var i=t.toLowerCase();i===n.amPm[0]?e.isPm=!1:i===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,i=(t+"").match(/([+-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),e.timezoneOffset="+"===i[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,r.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},r.format=function(e,t,n){var i=n||r.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=r.masks[t]||t||r.masks["default"];var s=[];return t=t.replace(u,(function(e,t){return s.push(t),"@@@"})),t=t.replace(o,(function(t){return t in b?b[t](e,i):t.slice(1,t.length-1)})),t.replace(/@@@/g,(function(){return s.shift()}))},r.parse=function(e,t,n){var i=n||r.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=r.masks[t]||t,e.length>1e3)return null;var s={},a=[],l=[];t=t.replace(u,(function(e,t){return l.push(t),"@@@"}));var c=d(t).replace(o,(function(e){if(x[e]){var t=x[e];return a.push(t[1]),"("+t[0]+")"}return e}));c=c.replace(/@@@/g,(function(){return l.shift()}));var h=e.match(new RegExp(c,"i"));if(!h)return null;for(var p=1;p<h.length;p++)a[p-1](s,h[p],i);var f,m=new Date;return!0===s.isPm&&null!=s.hour&&12!==+s.hour?s.hour=+s.hour+12:!1===s.isPm&&12===+s.hour&&(s.hour=0),null!=s.timezoneOffset?(s.minute=+(s.minute||0)-+s.timezoneOffset,f=new Date(Date.UTC(s.year||m.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0))):f=new Date(s.year||m.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0),f},e.exports?e.exports=r:(i=function(){return r}.call(t,n,t,e),void 0===i||(e.exports=i))})()},8676:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var i="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};t.hasClass=m,t.addClass=g,t.removeClass=v,t.setStyle=_;var r=n(9274),o=s(r);function s(e){return e&&e.__esModule?e:{default:e}}var a=o.default.prototype.$isServer,l=/([\:\-\_]+(.))/g,c=/^moz([A-Z])/,u=a?0:Number(document.documentMode),h=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},d=function(e){return e.replace(l,(function(e,t,n,i){return i?n.toUpperCase():n})).replace(c,"Moz$1")},p=t.on=function(){return!a&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),f=t.off=function(){return!a&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){var i=function i(){n&&n.apply(this,arguments),f(e,t,i)};p(e,t,i)};function m(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function g(e,t){if(e){for(var n=e.className,i=(t||"").split(" "),r=0,o=i.length;r<o;r++){var s=i[r];s&&(e.classList?e.classList.add(s):m(e,s)||(n+=" "+s))}e.classList||e.setAttribute("class",n)}}function v(e,t){if(e&&t){for(var n=t.split(" "),i=" "+e.className+" ",r=0,o=n.length;r<o;r++){var s=n[r];s&&(e.classList?e.classList.remove(s):m(e,s)&&(i=i.replace(" "+s+" "," ")))}e.classList||e.setAttribute("class",h(i))}}var y=t.getStyle=u<9?function(e,t){if(!a){if(!e||!t)return null;t=d(t),"float"===t&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(n){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!a){if(!e||!t)return null;t=d(t),"float"===t&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(i){return e.style[t]}}};function _(e,t,n){if(e&&t)if("object"===("undefined"===typeof t?"undefined":i(t)))for(var r in t)t.hasOwnProperty(r)&&_(e,r,t[r]);else t=d(t),"opacity"===t&&u<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n}var b=t.isScroll=function(e,t){if(!a){var n=null!==t&&void 0!==t,i=y(e,n?t?"overflow-y":"overflow-x":"overflow");return i.match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!a){var n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(b(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(a||!e||!t)return!1;var n=e.getBoundingClientRect(),i=void 0;return i=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<i.bottom&&n.bottom>i.top&&n.right>i.left&&n.left<i.right}},675:function(e,t,n){"use strict";var i;e=n.nmd(e);var 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};
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright JS Foundation and other contributors <https://js.foundation/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(){var o,s="4.17.10",a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,f=2,m=4,g=1,v=2,y=1,_=2,b=4,x=8,w=16,C=32,k=64,S=128,E=256,T=512,M=30,A="...",O=800,I=16,D=1,P=2,z=3,L=1/0,B=9007199254740991,F=17976931348623157e292,R=NaN,$=4294967295,N=$-1,j=$>>>1,V=[["ary",S],["bind",y],["bindKey",_],["curry",x],["curryRight",w],["flip",T],["partial",C],["partialRight",k],["rearg",E]],U="[object Arguments]",q="[object Array]",H="[object AsyncFunction]",W="[object Boolean]",G="[object Date]",Z="[object DOMException]",X="[object Error]",K="[object Function]",Y="[object GeneratorFunction]",J="[object Map]",Q="[object Number]",ee="[object Null]",te="[object Object]",ne="[object Promise]",ie="[object Proxy]",re="[object RegExp]",oe="[object Set]",se="[object String]",ae="[object Symbol]",le="[object Undefined]",ce="[object WeakMap]",ue="[object WeakSet]",he="[object ArrayBuffer]",de="[object DataView]",pe="[object Float32Array]",fe="[object Float64Array]",me="[object Int8Array]",ge="[object Int16Array]",ve="[object Int32Array]",ye="[object Uint8Array]",_e="[object Uint8ClampedArray]",be="[object Uint16Array]",xe="[object Uint32Array]",we=/\b__p \+= '';/g,Ce=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Te=RegExp(Se.source),Me=RegExp(Ee.source),Ae=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Ie=/<%=([\s\S]+?)%>/g,De=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Be=RegExp(Le.source),Fe=/^\s+|\s+$/g,Re=/^\s+/,$e=/\s+$/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,Ve=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qe=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,Ge=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,et=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",nt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",rt="\\u20d0-\\u20ff",ot=nt+it+rt,st="\\u2700-\\u27bf",at="a-z\\xdf-\\xf6\\xf8-\\xff",lt="\\xac\\xb1\\xd7\\xf7",ct="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ut="\\u2000-\\u206f",ht=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dt="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",ft=lt+ct+ut+ht,mt="['’]",gt="["+tt+"]",vt="["+ft+"]",yt="["+ot+"]",_t="\\d+",bt="["+st+"]",xt="["+at+"]",wt="[^"+tt+ft+_t+st+at+dt+"]",Ct="\\ud83c[\\udffb-\\udfff]",kt="(?:"+yt+"|"+Ct+")",St="[^"+tt+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Mt="["+dt+"]",At="\\u200d",Ot="(?:"+xt+"|"+wt+")",It="(?:"+Mt+"|"+wt+")",Dt="(?:"+mt+"(?:d|ll|m|re|s|t|ve))?",Pt="(?:"+mt+"(?:D|LL|M|RE|S|T|VE))?",zt=kt+"?",Lt="["+pt+"]?",Bt="(?:"+At+"(?:"+[St,Et,Tt].join("|")+")"+Lt+zt+")*",Ft="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$t=Lt+zt+Bt,Nt="(?:"+[bt,Et,Tt].join("|")+")"+$t,jt="(?:"+[St+yt+"?",yt,Et,Tt,gt].join("|")+")",Vt=RegExp(mt,"g"),Ut=RegExp(yt,"g"),qt=RegExp(Ct+"(?="+Ct+")|"+jt+$t,"g"),Ht=RegExp([Mt+"?"+xt+"+"+Dt+"(?="+[vt,Mt,"$"].join("|")+")",It+"+"+Pt+"(?="+[vt,Mt+Ot,"$"].join("|")+")",Mt+"?"+Ot+"+"+Dt,Mt+"+"+Pt,Rt,Ft,_t,Nt].join("|"),"g"),Wt=RegExp("["+At+tt+ot+pt+"]"),Gt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,Kt={};Kt[pe]=Kt[fe]=Kt[me]=Kt[ge]=Kt[ve]=Kt[ye]=Kt[_e]=Kt[be]=Kt[xe]=!0,Kt[U]=Kt[q]=Kt[he]=Kt[W]=Kt[de]=Kt[G]=Kt[X]=Kt[K]=Kt[J]=Kt[Q]=Kt[te]=Kt[re]=Kt[oe]=Kt[se]=Kt[ce]=!1;var Yt={};Yt[U]=Yt[q]=Yt[he]=Yt[de]=Yt[W]=Yt[G]=Yt[pe]=Yt[fe]=Yt[me]=Yt[ge]=Yt[ve]=Yt[J]=Yt[Q]=Yt[te]=Yt[re]=Yt[oe]=Yt[se]=Yt[ae]=Yt[ye]=Yt[_e]=Yt[be]=Yt[xe]=!0,Yt[X]=Yt[K]=Yt[ce]=!1;var Jt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},Qt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},en={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"===("undefined"===typeof n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,sn="object"===("undefined"===typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,an=on||sn||Function("return this")(),ln="object"===r(t)&&t&&!t.nodeType&&t,cn=ln&&"object"===r(e)&&e&&!e.nodeType&&e,un=cn&&cn.exports===ln,hn=un&&on.process,dn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||hn&&hn.binding&&hn.binding("util")}catch(t){}}(),pn=dn&&dn.isArrayBuffer,fn=dn&&dn.isDate,mn=dn&&dn.isMap,gn=dn&&dn.isRegExp,vn=dn&&dn.isSet,yn=dn&&dn.isTypedArray;function _n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function bn(e,t,n,i){var r=-1,o=null==e?0:e.length;while(++r<o){var s=e[r];t(i,s,n(s),e)}return i}function xn(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(!1===t(e[n],n,e))break;return e}function wn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Cn(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(!t(e[n],n,e))return!1;return!0}function kn(e,t){var n=-1,i=null==e?0:e.length,r=0,o=[];while(++n<i){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}function Sn(e,t){var n=null==e?0:e.length;return!!n&&Fn(e,t,0)>-1}function En(e,t,n){var i=-1,r=null==e?0:e.length;while(++i<r)if(n(t,e[i]))return!0;return!1}function Tn(e,t){var n=-1,i=null==e?0:e.length,r=Array(i);while(++n<i)r[n]=t(e[n],n,e);return r}function Mn(e,t){var n=-1,i=t.length,r=e.length;while(++n<i)e[r+n]=t[n];return e}function An(e,t,n,i){var r=-1,o=null==e?0:e.length;i&&o&&(n=e[++r]);while(++r<o)n=t(n,e[r],r,e);return n}function On(e,t,n,i){var r=null==e?0:e.length;i&&r&&(n=e[--r]);while(r--)n=t(n,e[r],r,e);return n}function In(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(t(e[n],n,e))return!0;return!1}var Dn=jn("length");function Pn(e){return e.split("")}function zn(e){return e.match(Ue)||[]}function Ln(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function Bn(e,t,n,i){var r=e.length,o=n+(i?1:-1);while(i?o--:++o<r)if(t(e[o],o,e))return o;return-1}function Fn(e,t,n){return t===t?pi(e,t,n):Bn(e,$n,n)}function Rn(e,t,n,i){var r=n-1,o=e.length;while(++r<o)if(i(e[r],t))return r;return-1}function $n(e){return e!==e}function Nn(e,t){var n=null==e?0:e.length;return n?Hn(e,t)/n:R}function jn(e){return function(t){return null==t?o:t[e]}}function Vn(e){return function(t){return null==e?o:e[t]}}function Un(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function qn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Hn(e,t){var n,i=-1,r=e.length;while(++i<r){var s=t(e[i]);s!==o&&(n=n===o?s:n+s)}return n}function Wn(e,t){var n=-1,i=Array(e);while(++n<e)i[n]=t(n);return i}function Gn(e,t){return Tn(t,(function(t){return[t,e[t]]}))}function Zn(e){return function(t){return e(t)}}function Xn(e,t){return Tn(t,(function(t){return e[t]}))}function Kn(e,t){return e.has(t)}function Yn(e,t){var n=-1,i=e.length;while(++n<i&&Fn(t,e[n],0)>-1);return n}function Jn(e,t){var n=e.length;while(n--&&Fn(t,e[n],0)>-1);return n}function Qn(e,t){var n=e.length,i=0;while(n--)e[n]===t&&++i;return i}var ei=Vn(Jt),ti=Vn(Qt);function ni(e){return"\\"+tn[e]}function ii(e,t){return null==e?o:e[t]}function ri(e){return Wt.test(e)}function oi(e){return Gt.test(e)}function si(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function ai(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function li(e,t){return function(n){return e(t(n))}}function ci(e,t){var n=-1,i=e.length,r=0,o=[];while(++n<i){var s=e[n];s!==t&&s!==d||(e[n]=d,o[r++]=n)}return o}function ui(e,t){return"__proto__"==t?o:e[t]}function hi(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function di(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pi(e,t,n){var i=n-1,r=e.length;while(++i<r)if(e[i]===t)return i;return-1}function fi(e,t,n){var i=n+1;while(i--)if(e[i]===t)return i;return i}function mi(e){return ri(e)?yi(e):Dn(e)}function gi(e){return ri(e)?_i(e):Pn(e)}var vi=Vn(en);function yi(e){var t=qt.lastIndex=0;while(qt.test(e))++t;return t}function _i(e){return e.match(qt)||[]}function bi(e){return e.match(Ht)||[]}var xi=function e(t){t=null==t?an:wi.defaults(an.Object(),t,wi.pick(an,Zt));var n=t.Array,i=t.Date,Ue=t.Error,tt=t.Function,nt=t.Math,it=t.Object,rt=t.RegExp,ot=t.String,st=t.TypeError,at=n.prototype,lt=tt.prototype,ct=it.prototype,ut=t["__core-js_shared__"],ht=lt.toString,dt=ct.hasOwnProperty,pt=0,ft=function(){var e=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mt=ct.toString,gt=ht.call(it),vt=an._,yt=rt("^"+ht.call(dt).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=un?t.Buffer:o,bt=t.Symbol,xt=t.Uint8Array,wt=_t?_t.allocUnsafe:o,Ct=li(it.getPrototypeOf,it),kt=it.create,St=ct.propertyIsEnumerable,Et=at.splice,Tt=bt?bt.isConcatSpreadable:o,Mt=bt?bt.iterator:o,At=bt?bt.toStringTag:o,Ot=function(){try{var e=Gs(it,"defineProperty");return e({},"",{}),e}catch(t){}}(),It=t.clearTimeout!==an.clearTimeout&&t.clearTimeout,Dt=i&&i.now!==an.Date.now&&i.now,Pt=t.setTimeout!==an.setTimeout&&t.setTimeout,zt=nt.ceil,Lt=nt.floor,Bt=it.getOwnPropertySymbols,Ft=_t?_t.isBuffer:o,Rt=t.isFinite,$t=at.join,Nt=li(it.keys,it),jt=nt.max,qt=nt.min,Ht=i.now,Wt=t.parseInt,Gt=nt.random,Jt=at.reverse,Qt=Gs(t,"DataView"),en=Gs(t,"Map"),tn=Gs(t,"Promise"),on=Gs(t,"Set"),sn=Gs(t,"WeakMap"),ln=Gs(it,"create"),cn=sn&&new sn,hn={},dn=Ia(Qt),Dn=Ia(en),Pn=Ia(tn),Vn=Ia(on),pi=Ia(sn),yi=bt?bt.prototype:o,_i=yi?yi.valueOf:o,xi=yi?yi.toString:o;function Ci(e){if(ku(e)&&!au(e)&&!(e instanceof Ti)){if(e instanceof Ei)return e;if(dt.call(e,"__wrapped__"))return Pa(e)}return new Ei(e)}var ki=function(){function e(){}return function(t){if(!Cu(t))return{};if(kt)return kt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Si(){}function Ei(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Ti(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function Mi(){var e=new Ti(this.__wrapped__);return e.__actions__=rs(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rs(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rs(this.__views__),e}function Ai(){if(this.__filtered__){var e=new Ti(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Oi(){var e=this.__wrapped__.value(),t=this.__dir__,n=au(e),i=t<0,r=n?e.length:0,o=Js(0,r,this.__views__),s=o.start,a=o.end,l=a-s,c=i?a:s-1,u=this.__iteratees__,h=u.length,d=0,p=qt(l,this.__takeCount__);if(!n||!i&&r==l&&p==l)return $o(e,this.__actions__);var f=[];e:while(l--&&d<p){c+=t;var m=-1,g=e[c];while(++m<h){var v=u[m],y=v.iteratee,_=v.type,b=y(g);if(_==P)g=b;else if(!b){if(_==D)continue e;break e}}f[d++]=g}return f}function Ii(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}function Di(){this.__data__=ln?ln(null):{},this.size=0}function Pi(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function zi(e){var t=this.__data__;if(ln){var n=t[e];return n===u?o:n}return dt.call(t,e)?t[e]:o}function Li(e){var t=this.__data__;return ln?t[e]!==o:dt.call(t,e)}function Bi(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ln&&t===o?u:t,this}function Fi(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}function Ri(){this.__data__=[],this.size=0}function $i(e){var t=this.__data__,n=ur(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Et.call(t,n,1),--this.size,!0}function Ni(e){var t=this.__data__,n=ur(t,e);return n<0?o:t[n][1]}function ji(e){return ur(this.__data__,e)>-1}function Vi(e,t){var n=this.__data__,i=ur(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function Ui(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}function qi(){this.size=0,this.__data__={hash:new Ii,map:new(en||Fi),string:new Ii}}function Hi(e){var t=Hs(this,e)["delete"](e);return this.size-=t?1:0,t}function Wi(e){return Hs(this,e).get(e)}function Gi(e){return Hs(this,e).has(e)}function Zi(e,t){var n=Hs(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}function Xi(e){var t=-1,n=null==e?0:e.length;this.__data__=new Ui;while(++t<n)this.add(e[t])}function Ki(e){return this.__data__.set(e,u),this}function Yi(e){return this.__data__.has(e)}function Ji(e){var t=this.__data__=new Fi(e);this.size=t.size}function Qi(){this.__data__=new Fi,this.size=0}function er(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function tr(e){return this.__data__.get(e)}function nr(e){return this.__data__.has(e)}function ir(e,t){var n=this.__data__;if(n instanceof Fi){var i=n.__data__;if(!en||i.length<a-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ui(i)}return n.set(e,t),this.size=n.size,this}function rr(e,t){var n=au(e),i=!n&&su(e),r=!n&&!i&&du(e),o=!n&&!i&&!r&&$u(e),s=n||i||r||o,a=s?Wn(e.length,ot):[],l=a.length;for(var c in e)!t&&!dt.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||sa(c,l))||a.push(c);return a}function or(e){var t=e.length;return t?e[yo(0,t-1)]:o}function sr(e,t){return Ma(rs(e),gr(t,0,e.length))}function ar(e){return Ma(rs(e))}function lr(e,t,n){(n!==o&&!iu(e[t],n)||n===o&&!(t in e))&&fr(e,t,n)}function cr(e,t,n){var i=e[t];dt.call(e,t)&&iu(i,n)&&(n!==o||t in e)||fr(e,t,n)}function ur(e,t){var n=e.length;while(n--)if(iu(e[n][0],t))return n;return-1}function hr(e,t,n,i){return wr(e,(function(e,r,o){t(i,e,n(e),o)})),i}function dr(e,t){return e&&os(t,xh(t),e)}function pr(e,t){return e&&os(t,wh(t),e)}function fr(e,t,n){"__proto__"==t&&Ot?Ot(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mr(e,t){var i=-1,r=t.length,s=n(r),a=null==e;while(++i<r)s[i]=a?o:mh(e,t[i]);return s}function gr(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function vr(e,t,n,i,r,s){var a,l=t&p,c=t&f,u=t&m;if(n&&(a=r?n(e,i,r,s):n(e)),a!==o)return a;if(!Cu(e))return e;var h=au(e);if(h){if(a=ta(e),!l)return rs(e,a)}else{var d=Ys(e),g=d==K||d==Y;if(du(e))return Zo(e,l);if(d==te||d==U||g&&!r){if(a=c||g?{}:na(e),!l)return c?as(e,pr(a,e)):ss(e,dr(a,e))}else{if(!Yt[d])return r?e:{};a=ia(e,d,l)}}s||(s=new Ji);var v=s.get(e);if(v)return v;if(s.set(e,a),Bu(e))return e.forEach((function(i){a.add(vr(i,t,n,i,e,s))})),a;if(Su(e))return e.forEach((function(i,r){a.set(r,vr(i,t,n,r,e,s))})),a;var y=u?c?Ns:$s:c?wh:xh,_=h?o:y(e);return xn(_||e,(function(i,r){_&&(r=i,i=e[r]),cr(a,r,vr(i,t,n,r,e,s))})),a}function yr(e){var t=xh(e);return function(n){return _r(n,e,t)}}function _r(e,t,n){var i=n.length;if(null==e)return!i;e=it(e);while(i--){var r=n[i],s=t[r],a=e[r];if(a===o&&!(r in e)||!s(a))return!1}return!0}function br(e,t,n){if("function"!==typeof e)throw new st(c);return ka((function(){e.apply(o,n)}),t)}function xr(e,t,n,i){var r=-1,o=Sn,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=Tn(t,Zn(n))),i?(o=En,s=!1):t.length>=a&&(o=Kn,s=!1,t=new Xi(t));e:while(++r<l){var h=e[r],d=null==n?h:n(h);if(h=i||0!==h?h:0,s&&d===d){var p=u;while(p--)if(t[p]===d)continue e;c.push(h)}else o(t,d,i)||c.push(h)}return c}Ci.templateSettings={escape:Ae,evaluate:Oe,interpolate:Ie,variable:"",imports:{_:Ci}},Ci.prototype=Si.prototype,Ci.prototype.constructor=Ci,Ei.prototype=ki(Si.prototype),Ei.prototype.constructor=Ei,Ti.prototype=ki(Si.prototype),Ti.prototype.constructor=Ti,Ii.prototype.clear=Di,Ii.prototype["delete"]=Pi,Ii.prototype.get=zi,Ii.prototype.has=Li,Ii.prototype.set=Bi,Fi.prototype.clear=Ri,Fi.prototype["delete"]=$i,Fi.prototype.get=Ni,Fi.prototype.has=ji,Fi.prototype.set=Vi,Ui.prototype.clear=qi,Ui.prototype["delete"]=Hi,Ui.prototype.get=Wi,Ui.prototype.has=Gi,Ui.prototype.set=Zi,Xi.prototype.add=Xi.prototype.push=Ki,Xi.prototype.has=Yi,Ji.prototype.clear=Qi,Ji.prototype["delete"]=er,Ji.prototype.get=tr,Ji.prototype.has=nr,Ji.prototype.set=ir;var wr=us(Ir),Cr=us(Dr,!0);function kr(e,t){var n=!0;return wr(e,(function(e,i,r){return n=!!t(e,i,r),n})),n}function Sr(e,t,n){var i=-1,r=e.length;while(++i<r){var s=e[i],a=t(s);if(null!=a&&(l===o?a===a&&!Ru(a):n(a,l)))var l=a,c=s}return c}function Er(e,t,n,i){var r=e.length;n=Gu(n),n<0&&(n=-n>r?0:r+n),i=i===o||i>r?r:Gu(i),i<0&&(i+=r),i=n>i?0:Zu(i);while(n<i)e[n++]=t;return e}function Tr(e,t){var n=[];return wr(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function Mr(e,t,n,i,r){var o=-1,s=e.length;n||(n=oa),r||(r=[]);while(++o<s){var a=e[o];t>0&&n(a)?t>1?Mr(a,t-1,n,i,r):Mn(r,a):i||(r[r.length]=a)}return r}var Ar=hs(),Or=hs(!0);function Ir(e,t){return e&&Ar(e,t,xh)}function Dr(e,t){return e&&Or(e,t,xh)}function Pr(e,t){return kn(t,(function(t){return bu(e[t])}))}function zr(e,t){t=qo(t,e);var n=0,i=t.length;while(null!=e&&n<i)e=e[Oa(t[n++])];return n&&n==i?e:o}function Lr(e,t,n){var i=t(e);return au(e)?i:Mn(i,n(e))}function Br(e){return null==e?e===o?le:ee:At&&At in it(e)?Zs(e):_a(e)}function Fr(e,t){return e>t}function Rr(e,t){return null!=e&&dt.call(e,t)}function $r(e,t){return null!=e&&t in it(e)}function Nr(e,t,n){return e>=qt(t,n)&&e<jt(t,n)}function jr(e,t,i){var r=i?En:Sn,s=e[0].length,a=e.length,l=a,c=n(a),u=1/0,h=[];while(l--){var d=e[l];l&&t&&(d=Tn(d,Zn(t))),u=qt(d.length,u),c[l]=!i&&(t||s>=120&&d.length>=120)?new Xi(l&&d):o}d=e[0];var p=-1,f=c[0];e:while(++p<s&&h.length<u){var m=d[p],g=t?t(m):m;if(m=i||0!==m?m:0,!(f?Kn(f,g):r(h,g,i))){l=a;while(--l){var v=c[l];if(!(v?Kn(v,g):r(e[l],g,i)))continue e}f&&f.push(g),h.push(m)}}return h}function Vr(e,t,n,i){return Ir(e,(function(e,r,o){t(i,n(e),r,o)})),i}function Ur(e,t,n){t=qo(t,e),e=xa(e,t);var i=null==e?e:e[Oa(rl(t))];return null==i?o:_n(i,e,n)}function qr(e){return ku(e)&&Br(e)==U}function Hr(e){return ku(e)&&Br(e)==he}function Wr(e){return ku(e)&&Br(e)==G}function Gr(e,t,n,i,r){return e===t||(null==e||null==t||!ku(e)&&!ku(t)?e!==e&&t!==t:Zr(e,t,n,i,Gr,r))}function Zr(e,t,n,i,r,o){var s=au(e),a=au(t),l=s?q:Ys(e),c=a?q:Ys(t);l=l==U?te:l,c=c==U?te:c;var u=l==te,h=c==te,d=l==c;if(d&&du(e)){if(!du(t))return!1;s=!0,u=!1}if(d&&!u)return o||(o=new Ji),s||$u(e)?Ls(e,t,n,i,r,o):Bs(e,t,l,n,i,r,o);if(!(n&g)){var p=u&&dt.call(e,"__wrapped__"),f=h&&dt.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return o||(o=new Ji),r(m,v,n,i,o)}}return!!d&&(o||(o=new Ji),Fs(e,t,n,i,r,o))}function Xr(e){return ku(e)&&Ys(e)==J}function Kr(e,t,n,i){var r=n.length,s=r,a=!i;if(null==e)return!s;e=it(e);while(r--){var l=n[r];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++r<s){l=n[r];var c=l[0],u=e[c],h=l[1];if(a&&l[2]){if(u===o&&!(c in e))return!1}else{var d=new Ji;if(i)var p=i(u,h,c,e,t,d);if(!(p===o?Gr(h,u,g|v,i,d):p))return!1}}return!0}function Yr(e){if(!Cu(e)||ha(e))return!1;var t=bu(e)?yt:Xe;return t.test(Ia(e))}function Jr(e){return ku(e)&&Br(e)==re}function Qr(e){return ku(e)&&Ys(e)==oe}function eo(e){return ku(e)&&wu(e.length)&&!!Kt[Br(e)]}function to(e){return"function"===typeof e?e:null==e?Ad:"object"===("undefined"===typeof e?"undefined":r(e))?au(e)?ao(e[0],e[1]):so(e):Vd(e)}function no(e){if(!pa(e))return Nt(e);var t=[];for(var n in it(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function io(e){if(!Cu(e))return ya(e);var t=pa(e),n=[];for(var i in e)("constructor"!=i||!t&&dt.call(e,i))&&n.push(i);return n}function ro(e,t){return e<t}function oo(e,t){var i=-1,r=cu(e)?n(e.length):[];return wr(e,(function(e,n,o){r[++i]=t(e,n,o)})),r}function so(e){var t=Ws(e);return 1==t.length&&t[0][2]?ma(t[0][0],t[0][1]):function(n){return n===e||Kr(n,e,t)}}function ao(e,t){return la(e)&&fa(t)?ma(Oa(e),t):function(n){var i=mh(n,e);return i===o&&i===t?vh(n,e):Gr(t,i,g|v)}}function lo(e,t,n,i,r){e!==t&&Ar(t,(function(s,a){if(Cu(s))r||(r=new Ji),co(e,t,a,n,lo,i,r);else{var l=i?i(ui(e,a),s,a+"",e,t,r):o;l===o&&(l=s),lr(e,a,l)}}),wh)}function co(e,t,n,i,r,s,a){var l=ui(e,n),c=ui(t,n),u=a.get(c);if(u)lr(e,n,u);else{var h=s?s(l,c,n+"",e,t,a):o,d=h===o;if(d){var p=au(c),f=!p&&du(c),m=!p&&!f&&$u(c);h=c,p||f||m?au(l)?h=l:uu(l)?h=rs(l):f?(d=!1,h=Zo(c,!0)):m?(d=!1,h=Qo(c,!0)):h=[]:Pu(c)||su(c)?(h=l,su(l)?h=Ku(l):(!Cu(l)||i&&bu(l))&&(h=na(c))):d=!1}d&&(a.set(c,h),r(h,c,i,s,a),a["delete"](c)),lr(e,n,h)}}function uo(e,t){var n=e.length;if(n)return t+=t<0?n:0,sa(t,n)?e[t]:o}function ho(e,t,n){var i=-1;t=Tn(t.length?t:[Ad],Zn(qs()));var r=oo(e,(function(e,n,r){var o=Tn(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return qn(r,(function(e,t){return ts(e,t,n)}))}function po(e,t){return fo(e,t,(function(t,n){return vh(e,n)}))}function fo(e,t,n){var i=-1,r=t.length,o={};while(++i<r){var s=t[i],a=zr(e,s);n(a,s)&&ko(o,qo(s,e),a)}return o}function mo(e){return function(t){return zr(t,e)}}function go(e,t,n,i){var r=i?Rn:Fn,o=-1,s=t.length,a=e;e===t&&(t=rs(t)),n&&(a=Tn(e,Zn(n)));while(++o<s){var l=0,c=t[o],u=n?n(c):c;while((l=r(a,u,l,i))>-1)a!==e&&Et.call(a,l,1),Et.call(e,l,1)}return e}function vo(e,t){var n=e?t.length:0,i=n-1;while(n--){var r=t[n];if(n==i||r!==o){var o=r;sa(r)?Et.call(e,r,1):Bo(e,r)}}return e}function yo(e,t){return e+Lt(Gt()*(t-e+1))}function _o(e,t,i,r){var o=-1,s=jt(zt((t-e)/(i||1)),0),a=n(s);while(s--)a[r?s:++o]=e,e+=i;return a}function bo(e,t){var n="";if(!e||t<1||t>B)return n;do{t%2&&(n+=e),t=Lt(t/2),t&&(e+=e)}while(t);return n}function xo(e,t){return Sa(ba(e,t,Ad),e+"")}function wo(e){return or(Nh(e))}function Co(e,t){var n=Nh(e);return Ma(n,gr(t,0,n.length))}function ko(e,t,n,i){if(!Cu(e))return e;t=qo(t,e);var r=-1,s=t.length,a=s-1,l=e;while(null!=l&&++r<s){var c=Oa(t[r]),u=n;if(r!=a){var h=l[c];u=i?i(h,c,l):o,u===o&&(u=Cu(h)?h:sa(t[r+1])?[]:{})}cr(l,c,u),l=l[c]}return e}var So=cn?function(e,t){return cn.set(e,t),e}:Ad,Eo=Ot?function(e,t){return Ot(e,"toString",{configurable:!0,enumerable:!1,value:Sd(t),writable:!0})}:Ad;function To(e){return Ma(Nh(e))}function Mo(e,t,i){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),i=i>o?o:i,i<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;var s=n(o);while(++r<o)s[r]=e[r+t];return s}function Ao(e,t){var n;return wr(e,(function(e,i,r){return n=t(e,i,r),!n})),!!n}function Oo(e,t,n){var i=0,r=null==e?i:e.length;if("number"===typeof t&&t===t&&r<=j){while(i<r){var o=i+r>>>1,s=e[o];null!==s&&!Ru(s)&&(n?s<=t:s<t)?i=o+1:r=o}return r}return Io(e,t,Ad,n)}function Io(e,t,n,i){t=n(t);var r=0,s=null==e?0:e.length,a=t!==t,l=null===t,c=Ru(t),u=t===o;while(r<s){var h=Lt((r+s)/2),d=n(e[h]),p=d!==o,f=null===d,m=d===d,g=Ru(d);if(a)var v=i||m;else v=u?m&&(i||p):l?m&&p&&(i||!f):c?m&&p&&!f&&(i||!g):!f&&!g&&(i?d<=t:d<t);v?r=h+1:s=h}return qt(s,N)}function Do(e,t){var n=-1,i=e.length,r=0,o=[];while(++n<i){var s=e[n],a=t?t(s):s;if(!n||!iu(a,l)){var l=a;o[r++]=0===s?0:s}}return o}function Po(e){return"number"===typeof e?e:Ru(e)?R:+e}function zo(e){if("string"===typeof e)return e;if(au(e))return Tn(e,zo)+"";if(Ru(e))return xi?xi.call(e):"";var t=e+"";return"0"==t&&1/e==-L?"-0":t}function Lo(e,t,n){var i=-1,r=Sn,o=e.length,s=!0,l=[],c=l;if(n)s=!1,r=En;else if(o>=a){var u=t?null:As(e);if(u)return hi(u);s=!1,r=Kn,c=new Xi}else c=t?[]:l;e:while(++i<o){var h=e[i],d=t?t(h):h;if(h=n||0!==h?h:0,s&&d===d){var p=c.length;while(p--)if(c[p]===d)continue e;t&&c.push(d),l.push(h)}else r(c,d,n)||(c!==l&&c.push(d),l.push(h))}return l}function Bo(e,t){return t=qo(t,e),e=xa(e,t),null==e||delete e[Oa(rl(t))]}function Fo(e,t,n,i){return ko(e,t,n(zr(e,t)),i)}function Ro(e,t,n,i){var r=e.length,o=i?r:-1;while((i?o--:++o<r)&&t(e[o],o,e));return n?Mo(e,i?0:o,i?o+1:r):Mo(e,i?o+1:0,i?r:o)}function $o(e,t){var n=e;return n instanceof Ti&&(n=n.value()),An(t,(function(e,t){return t.func.apply(t.thisArg,Mn([e],t.args))}),n)}function No(e,t,i){var r=e.length;if(r<2)return r?Lo(e[0]):[];var o=-1,s=n(r);while(++o<r){var a=e[o],l=-1;while(++l<r)l!=o&&(s[o]=xr(s[o]||a,e[l],t,i))}return Lo(Mr(s,1),t,i)}function jo(e,t,n){var i=-1,r=e.length,s=t.length,a={};while(++i<r){var l=i<s?t[i]:o;n(a,e[i],l)}return a}function Vo(e){return uu(e)?e:[]}function Uo(e){return"function"===typeof e?e:Ad}function qo(e,t){return au(e)?e:la(e,t)?[e]:Aa(Ju(e))}var Ho=xo;function Wo(e,t,n){var i=e.length;return n=n===o?i:n,!t&&n>=i?e:Mo(e,t,n)}var Go=It||function(e){return an.clearTimeout(e)};function Zo(e,t){if(t)return e.slice();var n=e.length,i=wt?wt(n):new e.constructor(n);return e.copy(i),i}function Xo(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function Ko(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Yo(e){var t=new e.constructor(e.source,We.exec(e));return t.lastIndex=e.lastIndex,t}function Jo(e){return _i?it(_i.call(e)):{}}function Qo(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function es(e,t){if(e!==t){var n=e!==o,i=null===e,r=e===e,s=Ru(e),a=t!==o,l=null===t,c=t===t,u=Ru(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!n&&c||!r)return 1;if(!i&&!s&&!u&&e<t||u&&n&&r&&!i&&!s||l&&n&&r||!a&&r||!c)return-1}return 0}function ts(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;while(++i<s){var l=es(r[i],o[i]);if(l){if(i>=a)return l;var c=n[i];return l*("desc"==c?-1:1)}}return e.index-t.index}function ns(e,t,i,r){var o=-1,s=e.length,a=i.length,l=-1,c=t.length,u=jt(s-a,0),h=n(c+u),d=!r;while(++l<c)h[l]=t[l];while(++o<a)(d||o<s)&&(h[i[o]]=e[o]);while(u--)h[l++]=e[o++];return h}function is(e,t,i,r){var o=-1,s=e.length,a=-1,l=i.length,c=-1,u=t.length,h=jt(s-l,0),d=n(h+u),p=!r;while(++o<h)d[o]=e[o];var f=o;while(++c<u)d[f+c]=t[c];while(++a<l)(p||o<s)&&(d[f+i[a]]=e[o++]);return d}function rs(e,t){var i=-1,r=e.length;t||(t=n(r));while(++i<r)t[i]=e[i];return t}function os(e,t,n,i){var r=!n;n||(n={});var s=-1,a=t.length;while(++s<a){var l=t[s],c=i?i(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),r?fr(n,l,c):cr(n,l,c)}return n}function ss(e,t){return os(e,Xs(e),t)}function as(e,t){return os(e,Ks(e),t)}function ls(e,t){return function(n,i){var r=au(n)?bn:hr,o=t?t():{};return r(n,e,qs(i,2),o)}}function cs(e){return xo((function(t,n){var i=-1,r=n.length,s=r>1?n[r-1]:o,a=r>2?n[2]:o;s=e.length>3&&"function"===typeof s?(r--,s):o,a&&aa(n[0],n[1],a)&&(s=r<3?o:s,r=1),t=it(t);while(++i<r){var l=n[i];l&&e(t,l,i,s)}return t}))}function us(e,t){return function(n,i){if(null==n)return n;if(!cu(n))return e(n,i);var r=n.length,o=t?r:-1,s=it(n);while(t?o--:++o<r)if(!1===i(s[o],o,s))break;return n}}function hs(e){return function(t,n,i){var r=-1,o=it(t),s=i(t),a=s.length;while(a--){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}function ds(e,t,n){var i=t&y,r=ms(e);function o(){var t=this&&this!==an&&this instanceof o?r:e;return t.apply(i?n:this,arguments)}return o}function ps(e){return function(t){t=Ju(t);var n=ri(t)?gi(t):o,i=n?n[0]:t.charAt(0),r=n?Wo(n,1).join(""):t.slice(1);return i[e]()+r}}function fs(e){return function(t){return An(bd(Gh(t).replace(Vt,"")),e,"")}}function ms(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ki(e.prototype),i=e.apply(n,t);return Cu(i)?i:n}}function gs(e,t,i){var r=ms(e);function s(){var a=arguments.length,l=n(a),c=a,u=Us(s);while(c--)l[c]=arguments[c];var h=a<3&&l[0]!==u&&l[a-1]!==u?[]:ci(l,u);if(a-=h.length,a<i)return Ts(e,t,_s,s.placeholder,o,l,h,o,o,i-a);var d=this&&this!==an&&this instanceof s?r:e;return _n(d,this,l)}return s}function vs(e){return function(t,n,i){var r=it(t);if(!cu(t)){var s=qs(n,3);t=xh(t),n=function(e){return s(r[e],e,r)}}var a=e(t,n,i);return a>-1?r[s?t[a]:a]:o}}function ys(e){return Rs((function(t){var n=t.length,i=n,r=Ei.prototype.thru;e&&t.reverse();while(i--){var s=t[i];if("function"!==typeof s)throw new st(c);if(r&&!a&&"wrapper"==Vs(s))var a=new Ei([],!0)}i=a?i:n;while(++i<n){s=t[i];var l=Vs(s),u="wrapper"==l?js(s):o;a=u&&ua(u[0])&&u[1]==(S|x|C|E)&&!u[4].length&&1==u[9]?a[Vs(u[0])].apply(a,u[3]):1==s.length&&ua(s)?a[l]():a.thru(s)}return function(){var e=arguments,i=e[0];if(a&&1==e.length&&au(i))return a.plant(i).value();var r=0,o=n?t[r].apply(this,e):i;while(++r<n)o=t[r].call(this,o);return o}}))}function _s(e,t,i,r,s,a,l,c,u,h){var d=t&S,p=t&y,f=t&_,m=t&(x|w),g=t&T,v=f?o:ms(e);function b(){var o=arguments.length,y=n(o),_=o;while(_--)y[_]=arguments[_];if(m)var x=Us(b),w=Qn(y,x);if(r&&(y=ns(y,r,s,m)),a&&(y=is(y,a,l,m)),o-=w,m&&o<h){var C=ci(y,x);return Ts(e,t,_s,b.placeholder,i,y,C,c,u,h-o)}var k=p?i:this,S=f?k[e]:e;return o=y.length,c?y=wa(y,c):g&&o>1&&y.reverse(),d&&u<o&&(y.length=u),this&&this!==an&&this instanceof b&&(S=v||ms(S)),S.apply(k,y)}return b}function bs(e,t){return function(n,i){return Vr(n,e,t(i),{})}}function xs(e,t){return function(n,i){var r;if(n===o&&i===o)return t;if(n!==o&&(r=n),i!==o){if(r===o)return i;"string"===typeof n||"string"===typeof i?(n=zo(n),i=zo(i)):(n=Po(n),i=Po(i)),r=e(n,i)}return r}}function ws(e){return Rs((function(t){return t=Tn(t,Zn(qs())),xo((function(n){var i=this;return e(t,(function(e){return _n(e,i,n)}))}))}))}function Cs(e,t){t=t===o?" ":zo(t);var n=t.length;if(n<2)return n?bo(t,e):t;var i=bo(t,zt(e/mi(t)));return ri(t)?Wo(gi(i),0,e).join(""):i.slice(0,e)}function ks(e,t,i,r){var o=t&y,s=ms(e);function a(){var t=-1,l=arguments.length,c=-1,u=r.length,h=n(u+l),d=this&&this!==an&&this instanceof a?s:e;while(++c<u)h[c]=r[c];while(l--)h[c++]=arguments[++t];return _n(d,o?i:this,h)}return a}function Ss(e){return function(t,n,i){return i&&"number"!==typeof i&&aa(t,n,i)&&(n=i=o),t=Wu(t),n===o?(n=t,t=0):n=Wu(n),i=i===o?t<n?1:-1:Wu(i),_o(t,n,i,e)}}function Es(e){return function(t,n){return"string"===typeof t&&"string"===typeof n||(t=Xu(t),n=Xu(n)),e(t,n)}}function Ts(e,t,n,i,r,s,a,l,c,u){var h=t&x,d=h?a:o,p=h?o:a,f=h?s:o,m=h?o:s;t|=h?C:k,t&=~(h?k:C),t&b||(t&=~(y|_));var g=[e,t,r,f,d,m,p,l,c,u],v=n.apply(o,g);return ua(e)&&Ca(v,g),v.placeholder=i,Ea(v,e,t)}function Ms(e){var t=nt[e];return function(e,n){if(e=Xu(e),n=null==n?0:qt(Gu(n),292),n){var i=(Ju(e)+"e").split("e"),r=t(i[0]+"e"+(+i[1]+n));return i=(Ju(r)+"e").split("e"),+(i[0]+"e"+(+i[1]-n))}return t(e)}}var As=on&&1/hi(new on([,-0]))[1]==L?function(e){return new on(e)}:Fd;function Os(e){return function(t){var n=Ys(t);return n==J?ai(t):n==oe?di(t):Gn(t,e(t))}}function Is(e,t,n,i,r,s,a,l){var u=t&_;if(!u&&"function"!==typeof e)throw new st(c);var h=i?i.length:0;if(h||(t&=~(C|k),i=r=o),a=a===o?a:jt(Gu(a),0),l=l===o?l:Gu(l),h-=r?r.length:0,t&k){var d=i,p=r;i=r=o}var f=u?o:js(e),m=[e,t,n,i,r,d,p,s,a,l];if(f&&va(m,f),e=m[0],t=m[1],n=m[2],i=m[3],r=m[4],l=m[9]=m[9]===o?u?0:e.length:jt(m[9]-h,0),!l&&t&(x|w)&&(t&=~(x|w)),t&&t!=y)g=t==x||t==w?gs(e,t,l):t!=C&&t!=(y|C)||r.length?_s.apply(o,m):ks(e,t,n,i);else var g=ds(e,t,n);var v=f?So:Ca;return Ea(v(g,m),e,t)}function Ds(e,t,n,i){return e===o||iu(e,ct[n])&&!dt.call(i,n)?t:e}function Ps(e,t,n,i,r,s){return Cu(e)&&Cu(t)&&(s.set(t,e),lo(e,t,o,Ps,s),s["delete"](t)),e}function zs(e){return Pu(e)?o:e}function Ls(e,t,n,i,r,s){var a=n&g,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var h=-1,d=!0,p=n&v?new Xi:o;s.set(e,t),s.set(t,e);while(++h<l){var f=e[h],m=t[h];if(i)var y=a?i(m,f,h,t,e,s):i(f,m,h,e,t,s);if(y!==o){if(y)continue;d=!1;break}if(p){if(!In(t,(function(e,t){if(!Kn(p,t)&&(f===e||r(f,e,n,i,s)))return p.push(t)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,i,s)){d=!1;break}}return s["delete"](e),s["delete"](t),d}function Bs(e,t,n,i,r,o,s){switch(n){case de:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case he:return!(e.byteLength!=t.byteLength||!o(new xt(e),new xt(t)));case W:case G:case Q:return iu(+e,+t);case X:return e.name==t.name&&e.message==t.message;case re:case se:return e==t+"";case J:var a=ai;case oe:var l=i&g;if(a||(a=hi),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;i|=v,s.set(e,t);var u=Ls(a(e),a(t),i,r,o,s);return s["delete"](e),u;case ae:if(_i)return _i.call(e)==_i.call(t)}return!1}function Fs(e,t,n,i,r,s){var a=n&g,l=$s(e),c=l.length,u=$s(t),h=u.length;if(c!=h&&!a)return!1;var d=c;while(d--){var p=l[d];if(!(a?p in t:dt.call(t,p)))return!1}var f=s.get(e);if(f&&s.get(t))return f==t;var m=!0;s.set(e,t),s.set(t,e);var v=a;while(++d<c){p=l[d];var y=e[p],_=t[p];if(i)var b=a?i(_,y,p,t,e,s):i(y,_,p,e,t,s);if(!(b===o?y===_||r(y,_,n,i,s):b)){m=!1;break}v||(v="constructor"==p)}if(m&&!v){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"===typeof x&&x instanceof x&&"function"===typeof w&&w instanceof w||(m=!1)}return s["delete"](e),s["delete"](t),m}function Rs(e){return Sa(ba(e,o,Ga),e+"")}function $s(e){return Lr(e,xh,Xs)}function Ns(e){return Lr(e,wh,Ks)}var js=cn?function(e){return cn.get(e)}:Fd;function Vs(e){var t=e.name+"",n=hn[t],i=dt.call(hn,t)?n.length:0;while(i--){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Us(e){var t=dt.call(Ci,"placeholder")?Ci:e;return t.placeholder}function qs(){var e=Ci.iteratee||Od;return e=e===Od?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Hs(e,t){var n=e.__data__;return ca(t)?n["string"===typeof t?"string":"hash"]:n.map}function Ws(e){var t=xh(e),n=t.length;while(n--){var i=t[n],r=e[i];t[n]=[i,r,fa(r)]}return t}function Gs(e,t){var n=ii(e,t);return Yr(n)?n:o}function Zs(e){var t=dt.call(e,At),n=e[At];try{e[At]=o;var i=!0}catch(s){}var r=mt.call(e);return i&&(t?e[At]=n:delete e[At]),r}var Xs=Bt?function(e){return null==e?[]:(e=it(e),kn(Bt(e),(function(t){return St.call(e,t)})))}:Wd,Ks=Bt?function(e){var t=[];while(e)Mn(t,Xs(e)),e=Ct(e);return t}:Wd,Ys=Br;function Js(e,t,n){var i=-1,r=n.length;while(++i<r){var o=n[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=qt(t,e+s);break;case"takeRight":e=jt(e,t-s);break}}return{start:e,end:t}}function Qs(e){var t=e.match(je);return t?t[1].split(Ve):[]}function ea(e,t,n){t=qo(t,e);var i=-1,r=t.length,o=!1;while(++i<r){var s=Oa(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:(r=null==e?0:e.length,!!r&&wu(r)&&sa(s,r)&&(au(e)||su(e)))}function ta(e){var t=e.length,n=new e.constructor(t);return t&&"string"===typeof e[0]&&dt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function na(e){return"function"!==typeof e.constructor||pa(e)?{}:ki(Ct(e))}function ia(e,t,n){var i=e.constructor;switch(t){case he:return Xo(e);case W:case G:return new i(+e);case de:return Ko(e,n);case pe:case fe:case me:case ge:case ve:case ye:case _e:case be:case xe:return Qo(e,n);case J:return new i;case Q:case se:return new i(e);case re:return Yo(e);case oe:return new i;case ae:return Jo(e)}}function ra(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Ne,"{\n/* [wrapped with "+t+"] */\n")}function oa(e){return au(e)||su(e)||!!(Tt&&e&&e[Tt])}function sa(e,t){var n="undefined"===typeof e?"undefined":r(e);return t=null==t?B:t,!!t&&("number"==n||"symbol"!=n&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function aa(e,t,n){if(!Cu(n))return!1;var i="undefined"===typeof t?"undefined":r(t);return!!("number"==i?cu(n)&&sa(t,n.length):"string"==i&&t in n)&&iu(n[t],e)}function la(e,t){if(au(e))return!1;var n="undefined"===typeof e?"undefined":r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ru(e))||(Pe.test(e)||!De.test(e)||null!=t&&e in it(t))}function ca(e){var t="undefined"===typeof e?"undefined":r(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ua(e){var t=Vs(e),n=Ci[t];if("function"!==typeof n||!(t in Ti.prototype))return!1;if(e===n)return!0;var i=js(n);return!!i&&e===i[0]}function ha(e){return!!ft&&ft in e}(Qt&&Ys(new Qt(new ArrayBuffer(1)))!=de||en&&Ys(new en)!=J||tn&&Ys(tn.resolve())!=ne||on&&Ys(new on)!=oe||sn&&Ys(new sn)!=ce)&&(Ys=function(e){var t=Br(e),n=t==te?e.constructor:o,i=n?Ia(n):"";if(i)switch(i){case dn:return de;case Dn:return J;case Pn:return ne;case Vn:return oe;case pi:return ce}return t});var da=ut?bu:Gd;function pa(e){var t=e&&e.constructor,n="function"===typeof t&&t.prototype||ct;return e===n}function fa(e){return e===e&&!Cu(e)}function ma(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in it(n)))}}function ga(e){var t=$c(e,(function(e){return n.size===h&&n.clear(),e})),n=t.cache;return t}function va(e,t){var n=e[1],i=t[1],r=n|i,o=r<(y|_|S),s=i==S&&n==x||i==S&&n==E&&e[7].length<=t[8]||i==(S|E)&&t[7].length<=t[8]&&n==x;if(!o&&!s)return e;i&y&&(e[2]=t[2],r|=n&y?0:b);var a=t[3];if(a){var l=e[3];e[3]=l?ns(l,a,t[4]):a,e[4]=l?ci(e[3],d):t[4]}return a=t[5],a&&(l=e[5],e[5]=l?is(l,a,t[6]):a,e[6]=l?ci(e[5],d):t[6]),a=t[7],a&&(e[7]=a),i&S&&(e[8]=null==e[8]?t[8]:qt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r,e}function ya(e){var t=[];if(null!=e)for(var n in it(e))t.push(n);return t}function _a(e){return mt.call(e)}function ba(e,t,i){return t=jt(t===o?e.length-1:t,0),function(){var r=arguments,o=-1,s=jt(r.length-t,0),a=n(s);while(++o<s)a[o]=r[t+o];o=-1;var l=n(t+1);while(++o<t)l[o]=r[o];return l[t]=i(a),_n(e,this,l)}}function xa(e,t){return t.length<2?e:zr(e,Mo(t,0,-1))}function wa(e,t){var n=e.length,i=qt(t.length,n),r=rs(e);while(i--){var s=t[i];e[i]=sa(s,n)?r[s]:o}return e}var Ca=Ta(So),ka=Pt||function(e,t){return an.setTimeout(e,t)},Sa=Ta(Eo);function Ea(e,t,n){var i=t+"";return Sa(e,ra(i,Da(Qs(i),n)))}function Ta(e){var t=0,n=0;return function(){var i=Ht(),r=I-(i-n);if(n=i,r>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ma(e,t){var n=-1,i=e.length,r=i-1;t=t===o?i:t;while(++n<t){var s=yo(n,r),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Aa=ga((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ze,(function(e,n,i,r){t.push(i?r.replace(qe,"$1"):n||e)})),t}));function Oa(e){if("string"===typeof e||Ru(e))return e;var t=e+"";return"0"==t&&1/e==-L?"-0":t}function Ia(e){if(null!=e){try{return ht.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Da(e,t){return xn(V,(function(n){var i="_."+n[0];t&n[1]&&!Sn(e,i)&&e.push(i)})),e.sort()}function Pa(e){if(e instanceof Ti)return e.clone();var t=new Ei(e.__wrapped__,e.__chain__);return t.__actions__=rs(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function za(e,t,i){t=(i?aa(e,t,i):t===o)?1:jt(Gu(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];var s=0,a=0,l=n(zt(r/t));while(s<r)l[a++]=Mo(e,s,s+=t);return l}function La(e){var t=-1,n=null==e?0:e.length,i=0,r=[];while(++t<n){var o=e[t];o&&(r[i++]=o)}return r}function Ba(){var e=arguments.length;if(!e)return[];var t=n(e-1),i=arguments[0],r=e;while(r--)t[r-1]=arguments[r];return Mn(au(i)?rs(i):[i],Mr(t,1))}var Fa=xo((function(e,t){return uu(e)?xr(e,Mr(t,1,uu,!0)):[]})),Ra=xo((function(e,t){var n=rl(t);return uu(n)&&(n=o),uu(e)?xr(e,Mr(t,1,uu,!0),qs(n,2)):[]})),$a=xo((function(e,t){var n=rl(t);return uu(n)&&(n=o),uu(e)?xr(e,Mr(t,1,uu,!0),o,n):[]}));function Na(e,t,n){var i=null==e?0:e.length;return i?(t=n||t===o?1:Gu(t),Mo(e,t<0?0:t,i)):[]}function ja(e,t,n){var i=null==e?0:e.length;return i?(t=n||t===o?1:Gu(t),t=i-t,Mo(e,0,t<0?0:t)):[]}function Va(e,t){return e&&e.length?Ro(e,qs(t,3),!0,!0):[]}function Ua(e,t){return e&&e.length?Ro(e,qs(t,3),!0):[]}function qa(e,t,n,i){var r=null==e?0:e.length;return r?(n&&"number"!==typeof n&&aa(e,t,n)&&(n=0,i=r),Er(e,t,n,i)):[]}function Ha(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Gu(n);return r<0&&(r=jt(i+r,0)),Bn(e,qs(t,3),r)}function Wa(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i-1;return n!==o&&(r=Gu(n),r=n<0?jt(i+r,0):qt(r,i-1)),Bn(e,qs(t,3),r,!0)}function Ga(e){var t=null==e?0:e.length;return t?Mr(e,1):[]}function Za(e){var t=null==e?0:e.length;return t?Mr(e,L):[]}function Xa(e,t){var n=null==e?0:e.length;return n?(t=t===o?1:Gu(t),Mr(e,t)):[]}function Ka(e){var t=-1,n=null==e?0:e.length,i={};while(++t<n){var r=e[t];i[r[0]]=r[1]}return i}function Ya(e){return e&&e.length?e[0]:o}function Ja(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Gu(n);return r<0&&(r=jt(i+r,0)),Fn(e,t,r)}function Qa(e){var t=null==e?0:e.length;return t?Mo(e,0,-1):[]}var el=xo((function(e){var t=Tn(e,Vo);return t.length&&t[0]===e[0]?jr(t):[]})),tl=xo((function(e){var t=rl(e),n=Tn(e,Vo);return t===rl(n)?t=o:n.pop(),n.length&&n[0]===e[0]?jr(n,qs(t,2)):[]})),nl=xo((function(e){var t=rl(e),n=Tn(e,Vo);return t="function"===typeof t?t:o,t&&n.pop(),n.length&&n[0]===e[0]?jr(n,o,t):[]}));function il(e,t){return null==e?"":$t.call(e,t)}function rl(e){var t=null==e?0:e.length;return t?e[t-1]:o}function ol(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i;return n!==o&&(r=Gu(n),r=r<0?jt(i+r,0):qt(r,i-1)),t===t?fi(e,t,r):Bn(e,$n,r,!0)}function sl(e,t){return e&&e.length?uo(e,Gu(t)):o}var al=xo(ll);function ll(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function cl(e,t,n){return e&&e.length&&t&&t.length?go(e,t,qs(n,2)):e}function ul(e,t,n){return e&&e.length&&t&&t.length?go(e,t,o,n):e}var hl=Rs((function(e,t){var n=null==e?0:e.length,i=mr(e,t);return vo(e,Tn(t,(function(e){return sa(e,n)?+e:e})).sort(es)),i}));function dl(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;t=qs(t,3);while(++i<o){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return vo(e,r),n}function pl(e){return null==e?e:Jt.call(e)}function fl(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!==typeof n&&aa(e,t,n)?(t=0,n=i):(t=null==t?0:Gu(t),n=n===o?i:Gu(n)),Mo(e,t,n)):[]}function ml(e,t){return Oo(e,t)}function gl(e,t,n){return Io(e,t,qs(n,2))}function vl(e,t){var n=null==e?0:e.length;if(n){var i=Oo(e,t);if(i<n&&iu(e[i],t))return i}return-1}function yl(e,t){return Oo(e,t,!0)}function _l(e,t,n){return Io(e,t,qs(n,2),!0)}function bl(e,t){var n=null==e?0:e.length;if(n){var i=Oo(e,t,!0)-1;if(iu(e[i],t))return i}return-1}function xl(e){return e&&e.length?Do(e):[]}function wl(e,t){return e&&e.length?Do(e,qs(t,2)):[]}function Cl(e){var t=null==e?0:e.length;return t?Mo(e,1,t):[]}function kl(e,t,n){return e&&e.length?(t=n||t===o?1:Gu(t),Mo(e,0,t<0?0:t)):[]}function Sl(e,t,n){var i=null==e?0:e.length;return i?(t=n||t===o?1:Gu(t),t=i-t,Mo(e,t<0?0:t,i)):[]}function El(e,t){return e&&e.length?Ro(e,qs(t,3),!1,!0):[]}function Tl(e,t){return e&&e.length?Ro(e,qs(t,3)):[]}var Ml=xo((function(e){return Lo(Mr(e,1,uu,!0))})),Al=xo((function(e){var t=rl(e);return uu(t)&&(t=o),Lo(Mr(e,1,uu,!0),qs(t,2))})),Ol=xo((function(e){var t=rl(e);return t="function"===typeof t?t:o,Lo(Mr(e,1,uu,!0),o,t)}));function Il(e){return e&&e.length?Lo(e):[]}function Dl(e,t){return e&&e.length?Lo(e,qs(t,2)):[]}function Pl(e,t){return t="function"===typeof t?t:o,e&&e.length?Lo(e,o,t):[]}function zl(e){if(!e||!e.length)return[];var t=0;return e=kn(e,(function(e){if(uu(e))return t=jt(e.length,t),!0})),Wn(t,(function(t){return Tn(e,jn(t))}))}function Ll(e,t){if(!e||!e.length)return[];var n=zl(e);return null==t?n:Tn(n,(function(e){return _n(t,o,e)}))}var Bl=xo((function(e,t){return uu(e)?xr(e,t):[]})),Fl=xo((function(e){return No(kn(e,uu))})),Rl=xo((function(e){var t=rl(e);return uu(t)&&(t=o),No(kn(e,uu),qs(t,2))})),$l=xo((function(e){var t=rl(e);return t="function"===typeof t?t:o,No(kn(e,uu),o,t)})),Nl=xo(zl);function jl(e,t){return jo(e||[],t||[],cr)}function Vl(e,t){return jo(e||[],t||[],ko)}var Ul=xo((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"===typeof n?(e.pop(),n):o,Ll(e,n)}));function ql(e){var t=Ci(e);return t.__chain__=!0,t}function Hl(e,t){return t(e),e}function Wl(e,t){return t(e)}var Gl=Rs((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,r=function(t){return mr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Ti&&sa(n)?(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:Wl,args:[r],thisArg:o}),new Ei(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(r)}));function Zl(){return ql(this)}function Xl(){return new Ei(this.value(),this.__chain__)}function Kl(){this.__values__===o&&(this.__values__=Hu(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Yl(){return this}function Jl(e){var t,n=this;while(n instanceof Si){var i=Pa(n);i.__index__=0,i.__values__=o,t?r.__wrapped__=i:t=i;var r=i;n=n.__wrapped__}return r.__wrapped__=e,t}function Ql(){var e=this.__wrapped__;if(e instanceof Ti){var t=e;return this.__actions__.length&&(t=new Ti(this)),t=t.reverse(),t.__actions__.push({func:Wl,args:[pl],thisArg:o}),new Ei(t,this.__chain__)}return this.thru(pl)}function ec(){return $o(this.__wrapped__,this.__actions__)}var tc=ls((function(e,t,n){dt.call(e,n)?++e[n]:fr(e,n,1)}));function nc(e,t,n){var i=au(e)?Cn:kr;return n&&aa(e,t,n)&&(t=o),i(e,qs(t,3))}function ic(e,t){var n=au(e)?kn:Tr;return n(e,qs(t,3))}var rc=vs(Ha),oc=vs(Wa);function sc(e,t){return Mr(mc(e,t),1)}function ac(e,t){return Mr(mc(e,t),L)}function lc(e,t,n){return n=n===o?1:Gu(n),Mr(mc(e,t),n)}function cc(e,t){var n=au(e)?xn:wr;return n(e,qs(t,3))}function uc(e,t){var n=au(e)?wn:Cr;return n(e,qs(t,3))}var hc=ls((function(e,t,n){dt.call(e,n)?e[n].push(t):fr(e,n,[t])}));function dc(e,t,n,i){e=cu(e)?e:Nh(e),n=n&&!i?Gu(n):0;var r=e.length;return n<0&&(n=jt(r+n,0)),Fu(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Fn(e,t,n)>-1}var pc=xo((function(e,t,i){var r=-1,o="function"===typeof t,s=cu(e)?n(e.length):[];return wr(e,(function(e){s[++r]=o?_n(t,e,i):Ur(e,t,i)})),s})),fc=ls((function(e,t,n){fr(e,n,t)}));function mc(e,t){var n=au(e)?Tn:oo;return n(e,qs(t,3))}function gc(e,t,n,i){return null==e?[]:(au(t)||(t=null==t?[]:[t]),n=i?o:n,au(n)||(n=null==n?[]:[n]),ho(e,t,n))}var vc=ls((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function yc(e,t,n){var i=au(e)?An:Un,r=arguments.length<3;return i(e,qs(t,4),n,r,wr)}function _c(e,t,n){var i=au(e)?On:Un,r=arguments.length<3;return i(e,qs(t,4),n,r,Cr)}function bc(e,t){var n=au(e)?kn:Tr;return n(e,Nc(qs(t,3)))}function xc(e){var t=au(e)?or:wo;return t(e)}function wc(e,t,n){t=(n?aa(e,t,n):t===o)?1:Gu(t);var i=au(e)?sr:Co;return i(e,t)}function Cc(e){var t=au(e)?ar:To;return t(e)}function kc(e){if(null==e)return 0;if(cu(e))return Fu(e)?mi(e):e.length;var t=Ys(e);return t==J||t==oe?e.size:no(e).length}function Sc(e,t,n){var i=au(e)?In:Ao;return n&&aa(e,t,n)&&(t=o),i(e,qs(t,3))}var Ec=xo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&aa(e,t[0],t[1])?t=[]:n>2&&aa(t[0],t[1],t[2])&&(t=[t[0]]),ho(e,Mr(t,1),[])})),Tc=Dt||function(){return an.Date.now()};function Mc(e,t){if("function"!==typeof t)throw new st(c);return e=Gu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ac(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Is(e,S,o,o,o,o,t)}function Oc(e,t){var n;if("function"!==typeof t)throw new st(c);return e=Gu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ic=xo((function(e,t,n){var i=y;if(n.length){var r=ci(n,Us(Ic));i|=C}return Is(e,i,t,n,r)})),Dc=xo((function(e,t,n){var i=y|_;if(n.length){var r=ci(n,Us(Dc));i|=C}return Is(t,i,e,n,r)}));function Pc(e,t,n){t=n?o:t;var i=Is(e,x,o,o,o,o,o,t);return i.placeholder=Pc.placeholder,i}function zc(e,t,n){t=n?o:t;var i=Is(e,w,o,o,o,o,o,t);return i.placeholder=zc.placeholder,i}function Lc(e,t,n){var i,r,s,a,l,u,h=0,d=!1,p=!1,f=!0;if("function"!==typeof e)throw new st(c);function m(t){var n=i,s=r;return i=r=o,h=t,a=e.apply(s,n),a}function g(e){return h=e,l=ka(_,t),d?m(e):a}function v(e){var n=e-u,i=e-h,r=t-n;return p?qt(r,s-i):r}function y(e){var n=e-u,i=e-h;return u===o||n>=t||n<0||p&&i>=s}function _(){var e=Tc();if(y(e))return b(e);l=ka(_,v(e))}function b(e){return l=o,f&&i?m(e):(i=r=o,a)}function x(){l!==o&&Go(l),h=0,i=u=r=l=o}function w(){return l===o?a:b(Tc())}function C(){var e=Tc(),n=y(e);if(i=arguments,r=this,u=e,n){if(l===o)return g(u);if(p)return l=ka(_,t),m(u)}return l===o&&(l=ka(_,t)),a}return t=Xu(t)||0,Cu(n)&&(d=!!n.leading,p="maxWait"in n,s=p?jt(Xu(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),C.cancel=x,C.flush=w,C}var Bc=xo((function(e,t){return br(e,1,t)})),Fc=xo((function(e,t,n){return br(e,Xu(t)||0,n)}));function Rc(e){return Is(e,T)}function $c(e,t){if("function"!==typeof e||null!=t&&"function"!==typeof t)throw new st(c);var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new($c.Cache||Ui),n}function Nc(e){if("function"!==typeof e)throw new st(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function jc(e){return Oc(2,e)}$c.Cache=Ui;var Vc=Ho((function(e,t){t=1==t.length&&au(t[0])?Tn(t[0],Zn(qs())):Tn(Mr(t,1),Zn(qs()));var n=t.length;return xo((function(i){var r=-1,o=qt(i.length,n);while(++r<o)i[r]=t[r].call(this,i[r]);return _n(e,this,i)}))})),Uc=xo((function(e,t){var n=ci(t,Us(Uc));return Is(e,C,o,t,n)})),qc=xo((function(e,t){var n=ci(t,Us(qc));return Is(e,k,o,t,n)})),Hc=Rs((function(e,t){return Is(e,E,o,o,o,t)}));function Wc(e,t){if("function"!==typeof e)throw new st(c);return t=t===o?t:Gu(t),xo(e,t)}function Gc(e,t){if("function"!==typeof e)throw new st(c);return t=null==t?0:jt(Gu(t),0),xo((function(n){var i=n[t],r=Wo(n,0,t);return i&&Mn(r,i),_n(e,this,r)}))}function Zc(e,t,n){var i=!0,r=!0;if("function"!==typeof e)throw new st(c);return Cu(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Lc(e,t,{leading:i,maxWait:t,trailing:r})}function Xc(e){return Ac(e,1)}function Kc(e,t){return Uc(Uo(t),e)}function Yc(){if(!arguments.length)return[];var e=arguments[0];return au(e)?e:[e]}function Jc(e){return vr(e,m)}function Qc(e,t){return t="function"===typeof t?t:o,vr(e,m,t)}function eu(e){return vr(e,p|m)}function tu(e,t){return t="function"===typeof t?t:o,vr(e,p|m,t)}function nu(e,t){return null==t||_r(e,t,xh(t))}function iu(e,t){return e===t||e!==e&&t!==t}var ru=Es(Fr),ou=Es((function(e,t){return e>=t})),su=qr(function(){return arguments}())?qr:function(e){return ku(e)&&dt.call(e,"callee")&&!St.call(e,"callee")},au=n.isArray,lu=pn?Zn(pn):Hr;function cu(e){return null!=e&&wu(e.length)&&!bu(e)}function uu(e){return ku(e)&&cu(e)}function hu(e){return!0===e||!1===e||ku(e)&&Br(e)==W}var du=Ft||Gd,pu=fn?Zn(fn):Wr;function fu(e){return ku(e)&&1===e.nodeType&&!Pu(e)}function mu(e){if(null==e)return!0;if(cu(e)&&(au(e)||"string"===typeof e||"function"===typeof e.splice||du(e)||$u(e)||su(e)))return!e.length;var t=Ys(e);if(t==J||t==oe)return!e.size;if(pa(e))return!no(e).length;for(var n in e)if(dt.call(e,n))return!1;return!0}function gu(e,t){return Gr(e,t)}function vu(e,t,n){n="function"===typeof n?n:o;var i=n?n(e,t):o;return i===o?Gr(e,t,o,n):!!i}function yu(e){if(!ku(e))return!1;var t=Br(e);return t==X||t==Z||"string"===typeof e.message&&"string"===typeof e.name&&!Pu(e)}function _u(e){return"number"===typeof e&&Rt(e)}function bu(e){if(!Cu(e))return!1;var t=Br(e);return t==K||t==Y||t==H||t==ie}function xu(e){return"number"===typeof e&&e==Gu(e)}function wu(e){return"number"===typeof e&&e>-1&&e%1==0&&e<=B}function Cu(e){var t="undefined"===typeof e?"undefined":r(e);return null!=e&&("object"==t||"function"==t)}function ku(e){return null!=e&&"object"===("undefined"===typeof e?"undefined":r(e))}var Su=mn?Zn(mn):Xr;function Eu(e,t){return e===t||Kr(e,t,Ws(t))}function Tu(e,t,n){return n="function"===typeof n?n:o,Kr(e,t,Ws(t),n)}function Mu(e){return Du(e)&&e!=+e}function Au(e){if(da(e))throw new Ue(l);return Yr(e)}function Ou(e){return null===e}function Iu(e){return null==e}function Du(e){return"number"===typeof e||ku(e)&&Br(e)==Q}function Pu(e){if(!ku(e)||Br(e)!=te)return!1;var t=Ct(e);if(null===t)return!0;var n=dt.call(t,"constructor")&&t.constructor;return"function"===typeof n&&n instanceof n&&ht.call(n)==gt}var zu=gn?Zn(gn):Jr;function Lu(e){return xu(e)&&e>=-B&&e<=B}var Bu=vn?Zn(vn):Qr;function Fu(e){return"string"===typeof e||!au(e)&&ku(e)&&Br(e)==se}function Ru(e){return"symbol"===("undefined"===typeof e?"undefined":r(e))||ku(e)&&Br(e)==ae}var $u=yn?Zn(yn):eo;function Nu(e){return e===o}function ju(e){return ku(e)&&Ys(e)==ce}function Vu(e){return ku(e)&&Br(e)==ue}var Uu=Es(ro),qu=Es((function(e,t){return e<=t}));function Hu(e){if(!e)return[];if(cu(e))return Fu(e)?gi(e):rs(e);if(Mt&&e[Mt])return si(e[Mt]());var t=Ys(e),n=t==J?ai:t==oe?hi:Nh;return n(e)}function Wu(e){if(!e)return 0===e?e:0;if(e=Xu(e),e===L||e===-L){var t=e<0?-1:1;return t*F}return e===e?e:0}function Gu(e){var t=Wu(e),n=t%1;return t===t?n?t-n:t:0}function Zu(e){return e?gr(Gu(e),0,$):0}function Xu(e){if("number"===typeof e)return e;if(Ru(e))return R;if(Cu(e)){var t="function"===typeof e.valueOf?e.valueOf():e;e=Cu(t)?t+"":t}if("string"!==typeof e)return 0===e?e:+e;e=e.replace(Fe,"");var n=Ze.test(e);return n||Ke.test(e)?rn(e.slice(2),n?2:8):Ge.test(e)?R:+e}function Ku(e){return os(e,wh(e))}function Yu(e){return e?gr(Gu(e),-B,B):0===e?e:0}function Ju(e){return null==e?"":zo(e)}var Qu=cs((function(e,t){if(pa(t)||cu(t))os(t,xh(t),e);else for(var n in t)dt.call(t,n)&&cr(e,n,t[n])})),eh=cs((function(e,t){os(t,wh(t),e)})),th=cs((function(e,t,n,i){os(t,wh(t),e,i)})),nh=cs((function(e,t,n,i){os(t,xh(t),e,i)})),ih=Rs(mr);function rh(e,t){var n=ki(e);return null==t?n:dr(n,t)}var oh=xo((function(e,t){e=it(e);var n=-1,i=t.length,r=i>2?t[2]:o;r&&aa(t[0],t[1],r)&&(i=1);while(++n<i){var s=t[n],a=wh(s),l=-1,c=a.length;while(++l<c){var u=a[l],h=e[u];(h===o||iu(h,ct[u])&&!dt.call(e,u))&&(e[u]=s[u])}}return e})),sh=xo((function(e){return e.push(o,Ps),_n(Eh,o,e)}));function ah(e,t){return Ln(e,qs(t,3),Ir)}function lh(e,t){return Ln(e,qs(t,3),Dr)}function ch(e,t){return null==e?e:Ar(e,qs(t,3),wh)}function uh(e,t){return null==e?e:Or(e,qs(t,3),wh)}function hh(e,t){return e&&Ir(e,qs(t,3))}function dh(e,t){return e&&Dr(e,qs(t,3))}function ph(e){return null==e?[]:Pr(e,xh(e))}function fh(e){return null==e?[]:Pr(e,wh(e))}function mh(e,t,n){var i=null==e?o:zr(e,t);return i===o?n:i}function gh(e,t){return null!=e&&ea(e,t,Rr)}function vh(e,t){return null!=e&&ea(e,t,$r)}var yh=bs((function(e,t,n){null!=t&&"function"!==typeof t.toString&&(t=mt.call(t)),e[t]=n}),Sd(Ad)),_h=bs((function(e,t,n){null!=t&&"function"!==typeof t.toString&&(t=mt.call(t)),dt.call(e,t)?e[t].push(n):e[t]=[n]}),qs),bh=xo(Ur);function xh(e){return cu(e)?rr(e):no(e)}function wh(e){return cu(e)?rr(e,!0):io(e)}function Ch(e,t){var n={};return t=qs(t,3),Ir(e,(function(e,i,r){fr(n,t(e,i,r),e)})),n}function kh(e,t){var n={};return t=qs(t,3),Ir(e,(function(e,i,r){fr(n,i,t(e,i,r))})),n}var Sh=cs((function(e,t,n){lo(e,t,n)})),Eh=cs((function(e,t,n,i){lo(e,t,n,i)})),Th=Rs((function(e,t){var n={};if(null==e)return n;var i=!1;t=Tn(t,(function(t){return t=qo(t,e),i||(i=t.length>1),t})),os(e,Ns(e),n),i&&(n=vr(n,p|f|m,zs));var r=t.length;while(r--)Bo(n,t[r]);return n}));function Mh(e,t){return Oh(e,Nc(qs(t)))}var Ah=Rs((function(e,t){return null==e?{}:po(e,t)}));function Oh(e,t){if(null==e)return{};var n=Tn(Ns(e),(function(e){return[e]}));return t=qs(t),fo(e,n,(function(e,n){return t(e,n[0])}))}function Ih(e,t,n){t=qo(t,e);var i=-1,r=t.length;r||(r=1,e=o);while(++i<r){var s=null==e?o:e[Oa(t[i])];s===o&&(i=r,s=n),e=bu(s)?s.call(e):s}return e}function Dh(e,t,n){return null==e?e:ko(e,t,n)}function Ph(e,t,n,i){return i="function"===typeof i?i:o,null==e?e:ko(e,t,n,i)}var zh=Os(xh),Lh=Os(wh);function Bh(e,t,n){var i=au(e),r=i||du(e)||$u(e);if(t=qs(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:Cu(e)&&bu(o)?ki(Ct(e)):{}}return(r?xn:Ir)(e,(function(e,i,r){return t(n,e,i,r)})),n}function Fh(e,t){return null==e||Bo(e,t)}function Rh(e,t,n){return null==e?e:Fo(e,t,Uo(n))}function $h(e,t,n,i){return i="function"===typeof i?i:o,null==e?e:Fo(e,t,Uo(n),i)}function Nh(e){return null==e?[]:Xn(e,xh(e))}function jh(e){return null==e?[]:Xn(e,wh(e))}function Vh(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=Xu(n),n=n===n?n:0),t!==o&&(t=Xu(t),t=t===t?t:0),gr(Xu(e),t,n)}function Uh(e,t,n){return t=Wu(t),n===o?(n=t,t=0):n=Wu(n),e=Xu(e),Nr(e,t,n)}function qh(e,t,n){if(n&&"boolean"!==typeof n&&aa(e,t,n)&&(t=n=o),n===o&&("boolean"===typeof t?(n=t,t=o):"boolean"===typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Wu(e),t===o?(t=e,e=0):t=Wu(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var r=Gt();return qt(e+r*(t-e+nn("1e-"+((r+"").length-1))),t)}return yo(e,t)}var Hh=fs((function(e,t,n){return t=t.toLowerCase(),e+(n?Wh(t):t)}));function Wh(e){return _d(Ju(e).toLowerCase())}function Gh(e){return e=Ju(e),e&&e.replace(Je,ei).replace(Ut,"")}function Zh(e,t,n){e=Ju(e),t=zo(t);var i=e.length;n=n===o?i:gr(Gu(n),0,i);var r=n;return n-=t.length,n>=0&&e.slice(n,r)==t}function Xh(e){return e=Ju(e),e&&Me.test(e)?e.replace(Ee,ti):e}function Kh(e){return e=Ju(e),e&&Be.test(e)?e.replace(Le,"\\$&"):e}var Yh=fs((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Jh=fs((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Qh=ps("toLowerCase");function ed(e,t,n){e=Ju(e),t=Gu(t);var i=t?mi(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Cs(Lt(r),n)+e+Cs(zt(r),n)}function td(e,t,n){e=Ju(e),t=Gu(t);var i=t?mi(e):0;return t&&i<t?e+Cs(t-i,n):e}function nd(e,t,n){e=Ju(e),t=Gu(t);var i=t?mi(e):0;return t&&i<t?Cs(t-i,n)+e:e}function id(e,t,n){return n||null==t?t=0:t&&(t=+t),Wt(Ju(e).replace(Re,""),t||0)}function rd(e,t,n){return t=(n?aa(e,t,n):t===o)?1:Gu(t),bo(Ju(e),t)}function od(){var e=arguments,t=Ju(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sd=fs((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function ad(e,t,n){return n&&"number"!==typeof n&&aa(e,t,n)&&(t=n=o),n=n===o?$:n>>>0,n?(e=Ju(e),e&&("string"===typeof t||null!=t&&!zu(t))&&(t=zo(t),!t&&ri(e))?Wo(gi(e),0,n):e.split(t,n)):[]}var ld=fs((function(e,t,n){return e+(n?" ":"")+_d(t)}));function cd(e,t,n){return e=Ju(e),n=null==n?0:gr(Gu(n),0,e.length),t=zo(t),e.slice(n,n+t.length)==t}function ud(e,t,n){var i=Ci.templateSettings;n&&aa(e,t,n)&&(t=o),e=Ju(e),t=th({},t,i,Ds);var r,s,a=th({},t.imports,i.imports,Ds),l=xh(a),c=Xn(a,l),u=0,h=t.interpolate||Qe,d="__p += '",p=rt((t.escape||Qe).source+"|"+h.source+"|"+(h===Ie?He:Qe).source+"|"+(t.evaluate||Qe).source+"|$","g"),f="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Xt+"]")+"\n";e.replace(p,(function(t,n,i,o,a,l){return i||(i=o),d+=e.slice(u,l).replace(et,ni),n&&(r=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),d+="';\n";var m=t.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(s?d.replace(we,""):d).replace(Ce,"$1").replace(ke,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=xd((function(){return tt(l,f+"return "+d).apply(o,c)}));if(g.source=d,yu(g))throw g;return g}function hd(e){return Ju(e).toLowerCase()}function dd(e){return Ju(e).toUpperCase()}function pd(e,t,n){if(e=Ju(e),e&&(n||t===o))return e.replace(Fe,"");if(!e||!(t=zo(t)))return e;var i=gi(e),r=gi(t),s=Yn(i,r),a=Jn(i,r)+1;return Wo(i,s,a).join("")}function fd(e,t,n){if(e=Ju(e),e&&(n||t===o))return e.replace($e,"");if(!e||!(t=zo(t)))return e;var i=gi(e),r=Jn(i,gi(t))+1;return Wo(i,0,r).join("")}function md(e,t,n){if(e=Ju(e),e&&(n||t===o))return e.replace(Re,"");if(!e||!(t=zo(t)))return e;var i=gi(e),r=Yn(i,gi(t));return Wo(i,r).join("")}function gd(e,t){var n=M,i=A;if(Cu(t)){var r="separator"in t?t.separator:r;n="length"in t?Gu(t.length):n,i="omission"in t?zo(t.omission):i}e=Ju(e);var s=e.length;if(ri(e)){var a=gi(e);s=a.length}if(n>=s)return e;var l=n-mi(i);if(l<1)return i;var c=a?Wo(a,0,l).join(""):e.slice(0,l);if(r===o)return c+i;if(a&&(l+=c.length-l),zu(r)){if(e.slice(l).search(r)){var u,h=c;r.global||(r=rt(r.source,Ju(We.exec(r))+"g")),r.lastIndex=0;while(u=r.exec(h))var d=u.index;c=c.slice(0,d===o?l:d)}}else if(e.indexOf(zo(r),l)!=l){var p=c.lastIndexOf(r);p>-1&&(c=c.slice(0,p))}return c+i}function vd(e){return e=Ju(e),e&&Te.test(e)?e.replace(Se,vi):e}var yd=fs((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),_d=ps("toUpperCase");function bd(e,t,n){return e=Ju(e),t=n?o:t,t===o?oi(e)?bi(e):zn(e):e.match(t)||[]}var xd=xo((function(e,t){try{return _n(e,o,t)}catch(n){return yu(n)?n:new Ue(n)}})),wd=Rs((function(e,t){return xn(t,(function(t){t=Oa(t),fr(e,t,Ic(e[t],e))})),e}));function Cd(e){var t=null==e?0:e.length,n=qs();return e=t?Tn(e,(function(e){if("function"!==typeof e[1])throw new st(c);return[n(e[0]),e[1]]})):[],xo((function(n){var i=-1;while(++i<t){var r=e[i];if(_n(r[0],this,n))return _n(r[1],this,n)}}))}function kd(e){return yr(vr(e,p))}function Sd(e){return function(){return e}}function Ed(e,t){return null==e||e!==e?t:e}var Td=ys(),Md=ys(!0);function Ad(e){return e}function Od(e){return to("function"===typeof e?e:vr(e,p))}function Id(e){return so(vr(e,p))}function Dd(e,t){return ao(e,vr(t,p))}var Pd=xo((function(e,t){return function(n){return Ur(n,e,t)}})),zd=xo((function(e,t){return function(n){return Ur(e,n,t)}}));function Ld(e,t,n){var i=xh(t),r=Pr(t,i);null!=n||Cu(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=Pr(t,xh(t)));var o=!(Cu(n)&&"chain"in n)||!!n.chain,s=bu(e);return xn(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=rs(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Mn([this.value()],arguments))})})),e}function Bd(){return an._===this&&(an._=vt),this}function Fd(){}function Rd(e){return e=Gu(e),xo((function(t){return uo(t,e)}))}var $d=ws(Tn),Nd=ws(Cn),jd=ws(In);function Vd(e){return la(e)?jn(Oa(e)):mo(e)}function Ud(e){return function(t){return null==e?o:zr(e,t)}}var qd=Ss(),Hd=Ss(!0);function Wd(){return[]}function Gd(){return!1}function Zd(){return{}}function Xd(){return""}function Kd(){return!0}function Yd(e,t){if(e=Gu(e),e<1||e>B)return[];var n=$,i=qt(e,$);t=qs(t),e-=$;var r=Wn(i,t);while(++n<e)t(n);return r}function Jd(e){return au(e)?Tn(e,Oa):Ru(e)?[e]:rs(Aa(Ju(e)))}function Qd(e){var t=++pt;return Ju(e)+t}var ep=xs((function(e,t){return e+t}),0),tp=Ms("ceil"),np=xs((function(e,t){return e/t}),1),ip=Ms("floor");function rp(e){return e&&e.length?Sr(e,Ad,Fr):o}function op(e,t){return e&&e.length?Sr(e,qs(t,2),Fr):o}function sp(e){return Nn(e,Ad)}function ap(e,t){return Nn(e,qs(t,2))}function lp(e){return e&&e.length?Sr(e,Ad,ro):o}function cp(e,t){return e&&e.length?Sr(e,qs(t,2),ro):o}var up=xs((function(e,t){return e*t}),1),hp=Ms("round"),dp=xs((function(e,t){return e-t}),0);function pp(e){return e&&e.length?Hn(e,Ad):0}function fp(e,t){return e&&e.length?Hn(e,qs(t,2)):0}return Ci.after=Mc,Ci.ary=Ac,Ci.assign=Qu,Ci.assignIn=eh,Ci.assignInWith=th,Ci.assignWith=nh,Ci.at=ih,Ci.before=Oc,Ci.bind=Ic,Ci.bindAll=wd,Ci.bindKey=Dc,Ci.castArray=Yc,Ci.chain=ql,Ci.chunk=za,Ci.compact=La,Ci.concat=Ba,Ci.cond=Cd,Ci.conforms=kd,Ci.constant=Sd,Ci.countBy=tc,Ci.create=rh,Ci.curry=Pc,Ci.curryRight=zc,Ci.debounce=Lc,Ci.defaults=oh,Ci.defaultsDeep=sh,Ci.defer=Bc,Ci.delay=Fc,Ci.difference=Fa,Ci.differenceBy=Ra,Ci.differenceWith=$a,Ci.drop=Na,Ci.dropRight=ja,Ci.dropRightWhile=Va,Ci.dropWhile=Ua,Ci.fill=qa,Ci.filter=ic,Ci.flatMap=sc,Ci.flatMapDeep=ac,Ci.flatMapDepth=lc,Ci.flatten=Ga,Ci.flattenDeep=Za,Ci.flattenDepth=Xa,Ci.flip=Rc,Ci.flow=Td,Ci.flowRight=Md,Ci.fromPairs=Ka,Ci.functions=ph,Ci.functionsIn=fh,Ci.groupBy=hc,Ci.initial=Qa,Ci.intersection=el,Ci.intersectionBy=tl,Ci.intersectionWith=nl,Ci.invert=yh,Ci.invertBy=_h,Ci.invokeMap=pc,Ci.iteratee=Od,Ci.keyBy=fc,Ci.keys=xh,Ci.keysIn=wh,Ci.map=mc,Ci.mapKeys=Ch,Ci.mapValues=kh,Ci.matches=Id,Ci.matchesProperty=Dd,Ci.memoize=$c,Ci.merge=Sh,Ci.mergeWith=Eh,Ci.method=Pd,Ci.methodOf=zd,Ci.mixin=Ld,Ci.negate=Nc,Ci.nthArg=Rd,Ci.omit=Th,Ci.omitBy=Mh,Ci.once=jc,Ci.orderBy=gc,Ci.over=$d,Ci.overArgs=Vc,Ci.overEvery=Nd,Ci.overSome=jd,Ci.partial=Uc,Ci.partialRight=qc,Ci.partition=vc,Ci.pick=Ah,Ci.pickBy=Oh,Ci.property=Vd,Ci.propertyOf=Ud,Ci.pull=al,Ci.pullAll=ll,Ci.pullAllBy=cl,Ci.pullAllWith=ul,Ci.pullAt=hl,Ci.range=qd,Ci.rangeRight=Hd,Ci.rearg=Hc,Ci.reject=bc,Ci.remove=dl,Ci.rest=Wc,Ci.reverse=pl,Ci.sampleSize=wc,Ci.set=Dh,Ci.setWith=Ph,Ci.shuffle=Cc,Ci.slice=fl,Ci.sortBy=Ec,Ci.sortedUniq=xl,Ci.sortedUniqBy=wl,Ci.split=ad,Ci.spread=Gc,Ci.tail=Cl,Ci.take=kl,Ci.takeRight=Sl,Ci.takeRightWhile=El,Ci.takeWhile=Tl,Ci.tap=Hl,Ci.throttle=Zc,Ci.thru=Wl,Ci.toArray=Hu,Ci.toPairs=zh,Ci.toPairsIn=Lh,Ci.toPath=Jd,Ci.toPlainObject=Ku,Ci.transform=Bh,Ci.unary=Xc,Ci.union=Ml,Ci.unionBy=Al,Ci.unionWith=Ol,Ci.uniq=Il,Ci.uniqBy=Dl,Ci.uniqWith=Pl,Ci.unset=Fh,Ci.unzip=zl,Ci.unzipWith=Ll,Ci.update=Rh,Ci.updateWith=$h,Ci.values=Nh,Ci.valuesIn=jh,Ci.without=Bl,Ci.words=bd,Ci.wrap=Kc,Ci.xor=Fl,Ci.xorBy=Rl,Ci.xorWith=$l,Ci.zip=Nl,Ci.zipObject=jl,Ci.zipObjectDeep=Vl,Ci.zipWith=Ul,Ci.entries=zh,Ci.entriesIn=Lh,Ci.extend=eh,Ci.extendWith=th,Ld(Ci,Ci),Ci.add=ep,Ci.attempt=xd,Ci.camelCase=Hh,Ci.capitalize=Wh,Ci.ceil=tp,Ci.clamp=Vh,Ci.clone=Jc,Ci.cloneDeep=eu,Ci.cloneDeepWith=tu,Ci.cloneWith=Qc,Ci.conformsTo=nu,Ci.deburr=Gh,Ci.defaultTo=Ed,Ci.divide=np,Ci.endsWith=Zh,Ci.eq=iu,Ci.escape=Xh,Ci.escapeRegExp=Kh,Ci.every=nc,Ci.find=rc,Ci.findIndex=Ha,Ci.findKey=ah,Ci.findLast=oc,Ci.findLastIndex=Wa,Ci.findLastKey=lh,Ci.floor=ip,Ci.forEach=cc,Ci.forEachRight=uc,Ci.forIn=ch,Ci.forInRight=uh,Ci.forOwn=hh,Ci.forOwnRight=dh,Ci.get=mh,Ci.gt=ru,Ci.gte=ou,Ci.has=gh,Ci.hasIn=vh,Ci.head=Ya,Ci.identity=Ad,Ci.includes=dc,Ci.indexOf=Ja,Ci.inRange=Uh,Ci.invoke=bh,Ci.isArguments=su,Ci.isArray=au,Ci.isArrayBuffer=lu,Ci.isArrayLike=cu,Ci.isArrayLikeObject=uu,Ci.isBoolean=hu,Ci.isBuffer=du,Ci.isDate=pu,Ci.isElement=fu,Ci.isEmpty=mu,Ci.isEqual=gu,Ci.isEqualWith=vu,Ci.isError=yu,Ci.isFinite=_u,Ci.isFunction=bu,Ci.isInteger=xu,Ci.isLength=wu,Ci.isMap=Su,Ci.isMatch=Eu,Ci.isMatchWith=Tu,Ci.isNaN=Mu,Ci.isNative=Au,Ci.isNil=Iu,Ci.isNull=Ou,Ci.isNumber=Du,Ci.isObject=Cu,Ci.isObjectLike=ku,Ci.isPlainObject=Pu,Ci.isRegExp=zu,Ci.isSafeInteger=Lu,Ci.isSet=Bu,Ci.isString=Fu,Ci.isSymbol=Ru,Ci.isTypedArray=$u,Ci.isUndefined=Nu,Ci.isWeakMap=ju,Ci.isWeakSet=Vu,Ci.join=il,Ci.kebabCase=Yh,Ci.last=rl,Ci.lastIndexOf=ol,Ci.lowerCase=Jh,Ci.lowerFirst=Qh,Ci.lt=Uu,Ci.lte=qu,Ci.max=rp,Ci.maxBy=op,Ci.mean=sp,Ci.meanBy=ap,Ci.min=lp,Ci.minBy=cp,Ci.stubArray=Wd,Ci.stubFalse=Gd,Ci.stubObject=Zd,Ci.stubString=Xd,Ci.stubTrue=Kd,Ci.multiply=up,Ci.nth=sl,Ci.noConflict=Bd,Ci.noop=Fd,Ci.now=Tc,Ci.pad=ed,Ci.padEnd=td,Ci.padStart=nd,Ci.parseInt=id,Ci.random=qh,Ci.reduce=yc,Ci.reduceRight=_c,Ci.repeat=rd,Ci.replace=od,Ci.result=Ih,Ci.round=hp,Ci.runInContext=e,Ci.sample=xc,Ci.size=kc,Ci.snakeCase=sd,Ci.some=Sc,Ci.sortedIndex=ml,Ci.sortedIndexBy=gl,Ci.sortedIndexOf=vl,Ci.sortedLastIndex=yl,Ci.sortedLastIndexBy=_l,Ci.sortedLastIndexOf=bl,Ci.startCase=ld,Ci.startsWith=cd,Ci.subtract=dp,Ci.sum=pp,Ci.sumBy=fp,Ci.template=ud,Ci.times=Yd,Ci.toFinite=Wu,Ci.toInteger=Gu,Ci.toLength=Zu,Ci.toLower=hd,Ci.toNumber=Xu,Ci.toSafeInteger=Yu,Ci.toString=Ju,Ci.toUpper=dd,Ci.trim=pd,Ci.trimEnd=fd,Ci.trimStart=md,Ci.truncate=gd,Ci.unescape=vd,Ci.uniqueId=Qd,Ci.upperCase=yd,Ci.upperFirst=_d,Ci.each=cc,Ci.eachRight=uc,Ci.first=Ya,Ld(Ci,function(){var e={};return Ir(Ci,(function(t,n){dt.call(Ci.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Ci.VERSION=s,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ci[e].placeholder=Ci})),xn(["drop","take"],(function(e,t){Ti.prototype[e]=function(n){n=n===o?1:jt(Gu(n),0);var i=this.__filtered__&&!t?new Ti(this):this.clone();return i.__filtered__?i.__takeCount__=qt(n,i.__takeCount__):i.__views__.push({size:qt(n,$),type:e+(i.__dir__<0?"Right":"")}),i},Ti.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xn(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==D||n==z;Ti.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:qs(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),xn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Ti.prototype[e]=function(){return this[n](1).value()[0]}})),xn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Ti.prototype[e]=function(){return this.__filtered__?new Ti(this):this[n](1)}})),Ti.prototype.compact=function(){return this.filter(Ad)},Ti.prototype.find=function(e){return this.filter(e).head()},Ti.prototype.findLast=function(e){return this.reverse().find(e)},Ti.prototype.invokeMap=xo((function(e,t){return"function"===typeof e?new Ti(this):this.map((function(n){return Ur(n,e,t)}))})),Ti.prototype.reject=function(e){return this.filter(Nc(qs(e)))},Ti.prototype.slice=function(e,t){e=Gu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Ti(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=Gu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Ti.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ti.prototype.toArray=function(){return this.take($)},Ir(Ti.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),r=Ci[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);r&&(Ci.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof Ti,c=a[0],u=l||au(t),h=function(e){var t=r.apply(Ci,Mn([e],a));return i&&d?t[0]:t};u&&n&&"function"===typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=s&&!d,m=l&&!p;if(!s&&u){t=m?t:new Ti(this);var g=e.apply(t,a);return g.__actions__.push({func:Wl,args:[h],thisArg:o}),new Ei(g,d)}return f&&m?e.apply(this,a):(g=this.thru(h),f?i?g.value()[0]:g.value():g)})})),xn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Ci.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(au(r)?r:[],e)}return this[n]((function(n){return t.apply(au(n)?n:[],e)}))}})),Ir(Ti.prototype,(function(e,t){var n=Ci[t];if(n){var i=n.name+"",r=hn[i]||(hn[i]=[]);r.push({name:t,func:n})}})),hn[_s(o,_).name]=[{name:"wrapper",func:o}],Ti.prototype.clone=Mi,Ti.prototype.reverse=Ai,Ti.prototype.value=Oi,Ci.prototype.at=Gl,Ci.prototype.chain=Zl,Ci.prototype.commit=Xl,Ci.prototype.next=Kl,Ci.prototype.plant=Jl,Ci.prototype.reverse=Ql,Ci.prototype.toJSON=Ci.prototype.valueOf=Ci.prototype.value=ec,Ci.prototype.first=Ci.prototype.head,Mt&&(Ci.prototype[Mt]=Yl),Ci},wi=xi();"object"===r(n.amdO)&&n.amdO?(an._=wi,i=function(){return wi}.call(t,n,t,e),i===o||(e.exports=i)):cn?((cn.exports=wi)._=wi,ln._=wi):an._=wi}).call(void 0)},7592:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){for(var t=1,n=arguments.length;t<n;t++){var i=arguments[t]||{};for(var r in i)if(i.hasOwnProperty(r)){var o=i[r];void 0!==o&&(e[r]=o)}}return e}},8840:function(e,t,n){"use strict";var i,r;"function"===typeof Symbol&&Symbol.iterator;(function(o,s){i=s,r="function"===typeof i?i.call(t,n,t,e):i,void 0===r||(e.exports=r)})(0,(function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,i){this._reference=e.jquery?e[0]:e,this.state={};var r="undefined"===typeof n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=r||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,i),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),h(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function i(t){var n=t.style.display,i=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var r=e.getComputedStyle(t),o=parseFloat(r.marginTop)+parseFloat(r.marginBottom),s=parseFloat(r.marginLeft)+parseFloat(r.marginRight),a={width:t.offsetWidth+s,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=i,a}function r(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function o(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function s(e,t){var n,i=0;for(n in e){if(e[n]===t)return i;i++}return null}function a(t,n){var i=e.getComputedStyle(t,null);return i[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function c(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(a(n,"overflow"))||-1!==["scroll","auto"].indexOf(a(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(a(n,"overflow-y"))?n:c(t.parentNode):t}function u(t){return t!==e.document.body&&("fixed"===a(t,"position")||(t.parentNode?u(t.parentNode):t))}function h(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(t).forEach((function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(t[i])&&(r="px"),e.style[i]=t[i]+r}))}function d(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function p(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function f(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),i=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:i,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-i}}function m(e,t,n){var i=f(e),r=f(t);if(n){var o=c(t);r.top+=o.scrollTop,r.bottom+=o.scrollTop,r.left+=o.scrollLeft,r.right+=o.scrollLeft}var s={top:i.top-r.top,left:i.left-r.left,bottom:i.top-r.top+i.height,right:i.left-r.left+i.width,width:i.width,height:i.height};return s}function g(t){for(var n=["","ms","webkit","moz","o"],i=0;i<n.length;i++){var r=n[i]?n[i]+t.charAt(0).toUpperCase()+t.slice(1):t;if("undefined"!==typeof e.document.body.style[r])return r}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[g("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"===typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},n,t);var i=e.document,r=i.createElement(t.tagName);if(a(r,t.classNames),l(r,t.attributes),"node"===t.contentType?r.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?r.innerHTML=t.content:r.textContent=t.content,t.arrowTagName){var o=i.createElement(t.arrowTagName);a(o,t.arrowClassNames),l(o,t.arrowAttributes),r.appendChild(o)}var s=t.parent.jquery?t.parent[0]:t.parent;if("string"===typeof s){if(s=i.querySelectorAll(t.parent),s.length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===s.length)throw"ERROR: the given `parent` doesn't exists!";s=s[0]}return s.length>1&&s instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),s=s[0]),s.appendChild(r),r;function a(e,t){t.forEach((function(t){e.classList.add(t)}))}function l(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=l(t);if(this._options.forceAbsolute)return"absolute";var i=u(t,n);return i?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var r={};r.position=this.state.position;var o="fixed"===r.position,s=m(t,l(e),o),a=i(e);return-1!==["right","left"].indexOf(n)?(r.top=s.top+s.height/2-a.height/2,r.left="left"===n?s.left-a.width:s.right):(r.left=s.left+s.width/2-a.width/2,r.top="top"===n?s.top-a.height:s.bottom),r.width=a.width,r.height=a.height,{popper:r,reference:s}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=c(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,i){var r,o,s={};if("window"===i){var a=e.document.body,u=e.document.documentElement;o=Math.max(a.scrollHeight,a.offsetHeight,u.clientHeight,u.scrollHeight,u.offsetHeight),r=Math.max(a.scrollWidth,a.offsetWidth,u.clientWidth,u.scrollWidth,u.offsetWidth),s={top:0,right:r,bottom:o,left:0}}else if("viewport"===i){var h=l(this._popper),d=c(this._popper),f=p(h),m=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},g=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},v="fixed"===t.offsets.popper.position?0:m(d),y="fixed"===t.offsets.popper.position?0:g(d);s={top:0-(f.top-v),right:e.document.documentElement.clientWidth-(f.left-y),bottom:e.document.documentElement.clientHeight-(f.top-v),left:0-(f.left-y)}}else s=l(this._popper)===i?{top:0,left:0,right:i.clientWidth,bottom:i.clientHeight}:p(i);return s.left+=n,s.right-=n,s.top=s.top+n,s.bottom=s.bottom-n,s},n.prototype.runModifiers=function(e,t,n){var i=t.slice();return void 0!==n&&(i=this._options.modifiers.slice(0,s(this._options.modifiers,n))),i.forEach(function(t){d(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=s(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},i=Math.round(e.offsets.popper.left),r=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=g("transform"))?(n[t]="translate3d("+i+"px, "+r+"px, 0)",n.top=0,n.left=0):(n.left=i,n.top=r),Object.assign(n,e.styles),h(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&h(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,s=o(e.offsets.popper),a={y:{start:{top:r.top},end:{top:r.top+r.height-s.height}},x:{start:{left:r.left},end:{left:r.left+r.width-s.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(s,a[l][i])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),i={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=Object.assign(n,i[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,i=Math.floor;return t.right<i(n.left)&&(e.offsets.popper.left=i(n.left)-t.width),t.left>i(n.right)&&(e.offsets.popper.left=i(n.right)),t.bottom<i(n.top)&&(e.offsets.popper.top=i(n.top)-t.height),t.top>i(n.bottom)&&(e.offsets.popper.top=i(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=r(t),i=e.placement.split("-")[1]||"",s=[];return s="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,s.forEach(function(a,l){if(t===a&&s.length!==l+1){t=e.placement.split("-")[0],n=r(t);var c=o(e.offsets.popper),u=-1!==["right","bottom"].indexOf(t);(u&&Math.floor(e.offsets.reference[t])>Math.floor(c[n])||!u&&Math.floor(e.offsets.reference[t])<Math.floor(c[n]))&&(e.flipped=!0,e.placement=s[l+1],i&&(e.placement+="-"+i),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"===typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var r={},s=e.placement.split("-")[0],a=o(e.offsets.popper),l=e.offsets.reference,c=-1!==["left","right"].indexOf(s),u=c?"height":"width",h=c?"top":"left",d=c?"left":"top",p=c?"bottom":"right",f=i(t)[u];l[p]-f<a[h]&&(e.offsets.popper[h]-=a[h]-(l[p]-f)),l[h]+f>a[p]&&(e.offsets.popper[h]+=l[h]+f-a[p]);var m=l[h]+(n||l[u]/2-f/2),g=m-a[h];return g=Math.max(Math.min(a[u]-f-8,g),8),r[h]=g,r[d]="",e.offsets.arrow=r,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(void 0!==i&&null!==i){i=Object(i);for(var r=Object.keys(i),o=0,s=r.length;o<s;o++){var a=r[o],l=Object.getOwnPropertyDescriptor(i,a);void 0!==l&&l.enumerable&&(t[a]=i[a])}}}return t}}),n}))},5873:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var i=n(9274),r=d(i),o=n(7592),s=d(o),a=n(9773),l=d(a),c=n(5563),u=d(c),h=n(8676);function d(e){return e&&e.__esModule?e:{default:e}}var p=1,f=void 0;t["default"]={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+p++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,s.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var i=Number(n.openDelay);i>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),i):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,i=e.zIndex;if(i&&(l.default.zIndex=i),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,h.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,h.getStyle)(document.body,"paddingRight"),10)),f=(0,u.default)();var r=document.documentElement.clientHeight<document.body.scrollHeight,o=(0,h.getStyle)(document.body,"overflowY");f>0&&(r||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+f+"px"),(0,h.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,h.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},9773:function(e,t,n){"use strict";t.__esModule=!0;var i=n(9274),r=s(i),o=n(8676);function s(e){return e&&e.__esModule?e:{default:e}}var a=!1,l=!1,c=void 0,u=function(){if(!r.default.prototype.$isServer){var e=d.modalDom;return e?a=!0:(a=!1,e=document.createElement("div"),d.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){d.doOnModalClick&&d.doOnModalClick()}))),e}},h={},d={modalFade:!0,getInstance:function(e){return h[e]},register:function(e,t){e&&t&&(h[e]=t)},deregister:function(e){e&&(h[e]=null,delete h[e])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var e=d.modalStack[d.modalStack.length-1];if(e){var t=d.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,i,s){if(!r.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=s;for(var l=this.modalStack,c=0,h=l.length;c<h;c++){var d=l[c];if(d.id===e)return}var p=u();if((0,o.addClass)(p,"v-modal"),this.modalFade&&!a&&(0,o.addClass)(p,"v-modal-enter"),i){var f=i.trim().split(/\s+/);f.forEach((function(e){return(0,o.addClass)(p,e)}))}setTimeout((function(){(0,o.removeClass)(p,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(p):document.body.appendChild(p),t&&(p.style.zIndex=t),p.tabIndex=0,p.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:i})}},closeModal:function(e){var t=this.modalStack,n=u();if(t.length>0){var i=t[t.length-1];if(i.id===e){if(i.modalClass){var r=i.modalClass.trim().split(/\s+/);r.forEach((function(e){return(0,o.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var s=t.length-1;s>=0;s--)if(t[s].id===e){t.splice(s,1);break}}0===t.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return l||(c=c||(r.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),c},set:function(e){c=e}});var p=function(){if(!r.default.prototype.$isServer&&d.modalStack.length>0){var e=d.modalStack[d.modalStack.length-1];if(!e)return;var t=d.getInstance(e.id);return t}};r.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=p();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t["default"]=d},9799:function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var i=n(9457),r=s(i),o=n(8933);function s(e){return e&&e.__esModule?e:{default:e}}var a="undefined"===typeof window,l=function(e){var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if(i=t.next(),i.done)break;r=i.value}var o=r,s=o.target.__resizeListeners__||[];s.length&&s.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){a||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new r.default((0,o.debounce)(16,l)),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},6890:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=s;var i=n(9274),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!r.default.prototype.$isServer)if(t){var n=[],i=t.offsetParent;while(i&&e!==i&&e.contains(i))n.push(i),i=i.offsetParent;var o=t.offsetTop+n.reduce((function(e,t){return e+t.offsetTop}),0),s=o+t.offsetHeight,a=e.scrollTop,l=a+e.clientHeight;o<a?e.scrollTop=o:s>l&&(e.scrollTop=s-e.clientHeight)}else e.scrollTop=0}},5563:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(){if(r.default.prototype.$isServer)return 0;if(void 0!==s)return s;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),s=t-i,s};var i=n(9274),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var s=void 0},9727:function(e,t){"use strict";function n(e){return void 0!==e&&null!==e}function i(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=n,t.isKorean=i},289:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var i="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};t.isString=a,t.isObject=l,t.isHtmlElement=c;var r=n(9274),o=s(r);function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return e&&e.nodeType===Node.ELEMENT_NODE}var u=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===("undefined"===typeof Int8Array?"undefined":i(Int8Array))||!o.default.prototype.$isServer&&"function"===typeof document.childNodes||(t.isFunction=u=function(e){return"function"===typeof e||!1}),t.isFunction=u;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},7990:function(e,t,n){"use strict";t.__esModule=!0,t.isMac=t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var i="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};t.noop=c,t.hasOwn=u,t.toObject=d,t.getPropByPath=p,t.rafThrottle=y,t.objToArray=_;var r=n(9274),o=a(r),s=n(289);function a(e){return e&&e.__esModule?e:{default:e}}var l=Object.prototype.hasOwnProperty;function c(){}function u(e,t){return l.call(e,t)}function h(e,t){for(var n in t)e[n]=t[n];return e}function d(e){for(var t={},n=0;n<e.length;n++)e[n]&&h(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),i=e,r=null,o=0,s=n.length;o<s;o++){var a=n[o];if(!i)break;if(o===s-1){r=i[a];break}i=i[a]}return r};function p(e,t,n){var i=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var r=t.split("."),o=0,s=r.length;o<s-1;++o){if(!i&&!n)break;var a=r[o];if(!(a in i)){if(n)throw new Error("please transfer a valid prop path to form item!");break}i=i[a]}return{o:i,k:r[o],v:i?i[r[o]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var f=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},m=(t.arrayFind=function(e,t){var n=f(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!o.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!o.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!o.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":i(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var i=e[t];t&&i&&n.forEach((function(n){e[n+t]=i}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,s.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,s.isObject)(e),i=(0,s.isObject)(t);return n&&i?JSON.stringify(e)===JSON.stringify(t):!n&&!i&&String(e)===String(t)}),g=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!m(e[n],t[n]))return!1;return!0},v=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?g(e,t):m(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function y(e){var t=!1;return function(){for(var n=this,i=arguments.length,r=Array(i),o=0;o<i;o++)r[o]=arguments[o];t||(t=!0,window.requestAnimationFrame((function(i){e.apply(n,r),t=!1})))}}function _(e){return Array.isArray(e)?e:v(e)?[]:[e]}t.isMac=function(){return!o.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)}},4960:function(e,t,n){"use strict";t.__esModule=!0;var i="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};t.isVNode=o;var r=n(7990);function o(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":i(e))&&(0,r.hasOwn)(e,"componentOptions")}},6923:function(e,t,n){"use strict";t.__esModule=!0;var i=n(9274),r=s(i),o=n(5873);function s(e){return e&&e.__esModule?e:{default:e}}var a=r.default.prototype.$isServer?function(){}:n(8840),l=function(e){return e.stopPropagation()};t["default"]={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var t=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,i=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!i&&this.$slots.reference&&this.$slots.reference[0]&&(i=this.referenceElm=this.$slots.reference[0].elm),n&&i&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new a(i,n,t),this.popperJS.onCreate((function(t){e.$emit("created",e),e.resetTransformOrigin(),e.$nextTick(e.updatePopper)})),"function"===typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=o.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",l))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=o.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var e={top:"bottom",bottom:"top",left:"right",right:"left"},t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],n=e[t];this.popperJS._popper.style.transformOrigin="string"===typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+n:n+" center"}},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var i=document.createElement("div");t&&i.setAttribute(t,""),i.setAttribute("x-arrow",""),i.className="popper__arrow",e.appendChild(i)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},8273:function(e,t,n){var i;
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */e=n.nmd(e),function(){var r,o="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,f=2,m=4,g=1,v=2,y=1,_=2,b=4,x=8,w=16,C=32,k=64,S=128,E=256,T=512,M=30,A="...",O=800,I=16,D=1,P=2,z=3,L=1/0,B=9007199254740991,F=17976931348623157e292,R=NaN,$=4294967295,N=$-1,j=$>>>1,V=[["ary",S],["bind",y],["bindKey",_],["curry",x],["curryRight",w],["flip",T],["partial",C],["partialRight",k],["rearg",E]],U="[object Arguments]",q="[object Array]",H="[object AsyncFunction]",W="[object Boolean]",G="[object Date]",Z="[object DOMException]",X="[object Error]",K="[object Function]",Y="[object GeneratorFunction]",J="[object Map]",Q="[object Number]",ee="[object Null]",te="[object Object]",ne="[object Promise]",ie="[object Proxy]",re="[object RegExp]",oe="[object Set]",se="[object String]",ae="[object Symbol]",le="[object Undefined]",ce="[object WeakMap]",ue="[object WeakSet]",he="[object ArrayBuffer]",de="[object DataView]",pe="[object Float32Array]",fe="[object Float64Array]",me="[object Int8Array]",ge="[object Int16Array]",ve="[object Int32Array]",ye="[object Uint8Array]",_e="[object Uint8ClampedArray]",be="[object Uint16Array]",xe="[object Uint32Array]",we=/\b__p \+= '';/g,Ce=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Te=RegExp(Se.source),Me=RegExp(Ee.source),Ae=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Ie=/<%=([\s\S]+?)%>/g,De=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Be=RegExp(Le.source),Fe=/^\s+/,Re=/\s/,$e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ne=/\{\n\/\* \[wrapped with (.+)\] \*/,je=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,qe=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,Ge=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,et=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",nt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",rt="\\u20d0-\\u20ff",ot=nt+it+rt,st="\\u2700-\\u27bf",at="a-z\\xdf-\\xf6\\xf8-\\xff",lt="\\xac\\xb1\\xd7\\xf7",ct="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ut="\\u2000-\\u206f",ht=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dt="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",ft=lt+ct+ut+ht,mt="['’]",gt="["+tt+"]",vt="["+ft+"]",yt="["+ot+"]",_t="\\d+",bt="["+st+"]",xt="["+at+"]",wt="[^"+tt+ft+_t+st+at+dt+"]",Ct="\\ud83c[\\udffb-\\udfff]",kt="(?:"+yt+"|"+Ct+")",St="[^"+tt+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Mt="["+dt+"]",At="\\u200d",Ot="(?:"+xt+"|"+wt+")",It="(?:"+Mt+"|"+wt+")",Dt="(?:"+mt+"(?:d|ll|m|re|s|t|ve))?",Pt="(?:"+mt+"(?:D|LL|M|RE|S|T|VE))?",zt=kt+"?",Lt="["+pt+"]?",Bt="(?:"+At+"(?:"+[St,Et,Tt].join("|")+")"+Lt+zt+")*",Ft="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$t=Lt+zt+Bt,Nt="(?:"+[bt,Et,Tt].join("|")+")"+$t,jt="(?:"+[St+yt+"?",yt,Et,Tt,gt].join("|")+")",Vt=RegExp(mt,"g"),Ut=RegExp(yt,"g"),qt=RegExp(Ct+"(?="+Ct+")|"+jt+$t,"g"),Ht=RegExp([Mt+"?"+xt+"+"+Dt+"(?="+[vt,Mt,"$"].join("|")+")",It+"+"+Pt+"(?="+[vt,Mt+Ot,"$"].join("|")+")",Mt+"?"+Ot+"+"+Dt,Mt+"+"+Pt,Rt,Ft,_t,Nt].join("|"),"g"),Wt=RegExp("["+At+tt+ot+pt+"]"),Gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,Kt={};Kt[pe]=Kt[fe]=Kt[me]=Kt[ge]=Kt[ve]=Kt[ye]=Kt[_e]=Kt[be]=Kt[xe]=!0,Kt[U]=Kt[q]=Kt[he]=Kt[W]=Kt[de]=Kt[G]=Kt[X]=Kt[K]=Kt[J]=Kt[Q]=Kt[te]=Kt[re]=Kt[oe]=Kt[se]=Kt[ce]=!1;var Yt={};Yt[U]=Yt[q]=Yt[he]=Yt[de]=Yt[W]=Yt[G]=Yt[pe]=Yt[fe]=Yt[me]=Yt[ge]=Yt[ve]=Yt[J]=Yt[Q]=Yt[te]=Yt[re]=Yt[oe]=Yt[se]=Yt[ae]=Yt[ye]=Yt[_e]=Yt[be]=Yt[xe]=!0,Yt[X]=Yt[K]=Yt[ce]=!1;var Jt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},Qt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},en={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,sn="object"==typeof self&&self&&self.Object===Object&&self,an=on||sn||Function("return this")(),ln=t&&!t.nodeType&&t,cn=ln&&e&&!e.nodeType&&e,un=cn&&cn.exports===ln,hn=un&&on.process,dn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||hn&&hn.binding&&hn.binding("util")}catch(t){}}(),pn=dn&&dn.isArrayBuffer,fn=dn&&dn.isDate,mn=dn&&dn.isMap,gn=dn&&dn.isRegExp,vn=dn&&dn.isSet,yn=dn&&dn.isTypedArray;function _n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function bn(e,t,n,i){var r=-1,o=null==e?0:e.length;while(++r<o){var s=e[r];t(i,s,n(s),e)}return i}function xn(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(!1===t(e[n],n,e))break;return e}function wn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Cn(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(!t(e[n],n,e))return!1;return!0}function kn(e,t){var n=-1,i=null==e?0:e.length,r=0,o=[];while(++n<i){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}function Sn(e,t){var n=null==e?0:e.length;return!!n&&Fn(e,t,0)>-1}function En(e,t,n){var i=-1,r=null==e?0:e.length;while(++i<r)if(n(t,e[i]))return!0;return!1}function Tn(e,t){var n=-1,i=null==e?0:e.length,r=Array(i);while(++n<i)r[n]=t(e[n],n,e);return r}function Mn(e,t){var n=-1,i=t.length,r=e.length;while(++n<i)e[r+n]=t[n];return e}function An(e,t,n,i){var r=-1,o=null==e?0:e.length;i&&o&&(n=e[++r]);while(++r<o)n=t(n,e[r],r,e);return n}function On(e,t,n,i){var r=null==e?0:e.length;i&&r&&(n=e[--r]);while(r--)n=t(n,e[r],r,e);return n}function In(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(t(e[n],n,e))return!0;return!1}var Dn=jn("length");function Pn(e){return e.split("")}function zn(e){return e.match(Ve)||[]}function Ln(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function Bn(e,t,n,i){var r=e.length,o=n+(i?1:-1);while(i?o--:++o<r)if(t(e[o],o,e))return o;return-1}function Fn(e,t,n){return t===t?pi(e,t,n):Bn(e,$n,n)}function Rn(e,t,n,i){var r=n-1,o=e.length;while(++r<o)if(i(e[r],t))return r;return-1}function $n(e){return e!==e}function Nn(e,t){var n=null==e?0:e.length;return n?Hn(e,t)/n:R}function jn(e){return function(t){return null==t?r:t[e]}}function Vn(e){return function(t){return null==e?r:e[t]}}function Un(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function qn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Hn(e,t){var n,i=-1,o=e.length;while(++i<o){var s=t(e[i]);s!==r&&(n=n===r?s:n+s)}return n}function Wn(e,t){var n=-1,i=Array(e);while(++n<e)i[n]=t(n);return i}function Gn(e,t){return Tn(t,(function(t){return[t,e[t]]}))}function Zn(e){return e?e.slice(0,vi(e)+1).replace(Fe,""):e}function Xn(e){return function(t){return e(t)}}function Kn(e,t){return Tn(t,(function(t){return e[t]}))}function Yn(e,t){return e.has(t)}function Jn(e,t){var n=-1,i=e.length;while(++n<i&&Fn(t,e[n],0)>-1);return n}function Qn(e,t){var n=e.length;while(n--&&Fn(t,e[n],0)>-1);return n}function ei(e,t){var n=e.length,i=0;while(n--)e[n]===t&&++i;return i}var ti=Vn(Jt),ni=Vn(Qt);function ii(e){return"\\"+tn[e]}function ri(e,t){return null==e?r:e[t]}function oi(e){return Wt.test(e)}function si(e){return Gt.test(e)}function ai(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function li(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ci(e,t){return function(n){return e(t(n))}}function ui(e,t){var n=-1,i=e.length,r=0,o=[];while(++n<i){var s=e[n];s!==t&&s!==d||(e[n]=d,o[r++]=n)}return o}function hi(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function di(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pi(e,t,n){var i=n-1,r=e.length;while(++i<r)if(e[i]===t)return i;return-1}function fi(e,t,n){var i=n+1;while(i--)if(e[i]===t)return i;return i}function mi(e){return oi(e)?_i(e):Dn(e)}function gi(e){return oi(e)?bi(e):Pn(e)}function vi(e){var t=e.length;while(t--&&Re.test(e.charAt(t)));return t}var yi=Vn(en);function _i(e){var t=qt.lastIndex=0;while(qt.test(e))++t;return t}function bi(e){return e.match(qt)||[]}function xi(e){return e.match(Ht)||[]}var wi=function e(t){t=null==t?an:Ci.defaults(an.Object(),t,Ci.pick(an,Zt));var n=t.Array,i=t.Date,Re=t.Error,Ve=t.Function,tt=t.Math,nt=t.Object,it=t.RegExp,rt=t.String,ot=t.TypeError,st=n.prototype,at=Ve.prototype,lt=nt.prototype,ct=t["__core-js_shared__"],ut=at.toString,ht=lt.hasOwnProperty,dt=0,pt=function(){var e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ft=lt.toString,mt=ut.call(nt),gt=an._,vt=it("^"+ut.call(ht).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=un?t.Buffer:r,_t=t.Symbol,bt=t.Uint8Array,xt=yt?yt.allocUnsafe:r,wt=ci(nt.getPrototypeOf,nt),Ct=nt.create,kt=lt.propertyIsEnumerable,St=st.splice,Et=_t?_t.isConcatSpreadable:r,Tt=_t?_t.iterator:r,Mt=_t?_t.toStringTag:r,At=function(){try{var e=Gs(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Ot=t.clearTimeout!==an.clearTimeout&&t.clearTimeout,It=i&&i.now!==an.Date.now&&i.now,Dt=t.setTimeout!==an.setTimeout&&t.setTimeout,Pt=tt.ceil,zt=tt.floor,Lt=nt.getOwnPropertySymbols,Bt=yt?yt.isBuffer:r,Ft=t.isFinite,Rt=st.join,$t=ci(nt.keys,nt),Nt=tt.max,jt=tt.min,qt=i.now,Ht=t.parseInt,Wt=tt.random,Gt=st.reverse,Jt=Gs(t,"DataView"),Qt=Gs(t,"Map"),en=Gs(t,"Promise"),tn=Gs(t,"Set"),on=Gs(t,"WeakMap"),sn=Gs(nt,"create"),ln=on&&new on,cn={},hn=Da(Jt),dn=Da(Qt),Dn=Da(en),Pn=Da(tn),Vn=Da(on),pi=_t?_t.prototype:r,_i=pi?pi.valueOf:r,bi=pi?pi.toString:r;function wi(e){if(Su(e)&&!lu(e)&&!(e instanceof Ti)){if(e instanceof Ei)return e;if(ht.call(e,"__wrapped__"))return za(e)}return new Ei(e)}var ki=function(){function e(){}return function(t){if(!ku(t))return{};if(Ct)return Ct(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Si(){}function Ei(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Ti(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function Mi(){var e=new Ti(this.__wrapped__);return e.__actions__=rs(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rs(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rs(this.__views__),e}function Ai(){if(this.__filtered__){var e=new Ti(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Oi(){var e=this.__wrapped__.value(),t=this.__dir__,n=lu(e),i=t<0,r=n?e.length:0,o=Js(0,r,this.__views__),s=o.start,a=o.end,l=a-s,c=i?a:s-1,u=this.__iteratees__,h=u.length,d=0,p=jt(l,this.__takeCount__);if(!n||!i&&r==l&&p==l)return $o(e,this.__actions__);var f=[];e:while(l--&&d<p){c+=t;var m=-1,g=e[c];while(++m<h){var v=u[m],y=v.iteratee,_=v.type,b=y(g);if(_==P)g=b;else if(!b){if(_==D)continue e;break e}}f[d++]=g}return f}function Ii(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}function Di(){this.__data__=sn?sn(null):{},this.size=0}function Pi(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function zi(e){var t=this.__data__;if(sn){var n=t[e];return n===u?r:n}return ht.call(t,e)?t[e]:r}function Li(e){var t=this.__data__;return sn?t[e]!==r:ht.call(t,e)}function Bi(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sn&&t===r?u:t,this}function Fi(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}function Ri(){this.__data__=[],this.size=0}function $i(e){var t=this.__data__,n=ur(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():St.call(t,n,1),--this.size,!0}function Ni(e){var t=this.__data__,n=ur(t,e);return n<0?r:t[n][1]}function ji(e){return ur(this.__data__,e)>-1}function Vi(e,t){var n=this.__data__,i=ur(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function Ui(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}function qi(){this.size=0,this.__data__={hash:new Ii,map:new(Qt||Fi),string:new Ii}}function Hi(e){var t=Hs(this,e)["delete"](e);return this.size-=t?1:0,t}function Wi(e){return Hs(this,e).get(e)}function Gi(e){return Hs(this,e).has(e)}function Zi(e,t){var n=Hs(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}function Xi(e){var t=-1,n=null==e?0:e.length;this.__data__=new Ui;while(++t<n)this.add(e[t])}function Ki(e){return this.__data__.set(e,u),this}function Yi(e){return this.__data__.has(e)}function Ji(e){var t=this.__data__=new Fi(e);this.size=t.size}function Qi(){this.__data__=new Fi,this.size=0}function er(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function tr(e){return this.__data__.get(e)}function nr(e){return this.__data__.has(e)}function ir(e,t){var n=this.__data__;if(n instanceof Fi){var i=n.__data__;if(!Qt||i.length<s-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ui(i)}return n.set(e,t),this.size=n.size,this}function rr(e,t){var n=lu(e),i=!n&&au(e),r=!n&&!i&&pu(e),o=!n&&!i&&!r&&Nu(e),s=n||i||r||o,a=s?Wn(e.length,rt):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||sa(c,l))||a.push(c);return a}function or(e){var t=e.length;return t?e[yo(0,t-1)]:r}function sr(e,t){return Aa(rs(e),gr(t,0,e.length))}function ar(e){return Aa(rs(e))}function lr(e,t,n){(n!==r&&!ru(e[t],n)||n===r&&!(t in e))&&fr(e,t,n)}function cr(e,t,n){var i=e[t];ht.call(e,t)&&ru(i,n)&&(n!==r||t in e)||fr(e,t,n)}function ur(e,t){var n=e.length;while(n--)if(ru(e[n][0],t))return n;return-1}function hr(e,t,n,i){return wr(e,(function(e,r,o){t(i,e,n(e),o)})),i}function dr(e,t){return e&&os(t,wh(t),e)}function pr(e,t){return e&&os(t,Ch(t),e)}function fr(e,t,n){"__proto__"==t&&At?At(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mr(e,t){var i=-1,o=t.length,s=n(o),a=null==e;while(++i<o)s[i]=a?r:gh(e,t[i]);return s}function gr(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function vr(e,t,n,i,o,s){var a,l=t&p,c=t&f,u=t&m;if(n&&(a=o?n(e,i,o,s):n(e)),a!==r)return a;if(!ku(e))return e;var h=lu(e);if(h){if(a=ta(e),!l)return rs(e,a)}else{var d=Ys(e),g=d==K||d==Y;if(pu(e))return Zo(e,l);if(d==te||d==U||g&&!o){if(a=c||g?{}:na(e),!l)return c?as(e,pr(a,e)):ss(e,dr(a,e))}else{if(!Yt[d])return o?e:{};a=ia(e,d,l)}}s||(s=new Ji);var v=s.get(e);if(v)return v;s.set(e,a),Fu(e)?e.forEach((function(i){a.add(vr(i,t,n,i,e,s))})):Eu(e)&&e.forEach((function(i,r){a.set(r,vr(i,t,n,r,e,s))}));var y=u?c?Ns:$s:c?Ch:wh,_=h?r:y(e);return xn(_||e,(function(i,r){_&&(r=i,i=e[r]),cr(a,r,vr(i,t,n,r,e,s))})),a}function yr(e){var t=wh(e);return function(n){return _r(n,e,t)}}function _r(e,t,n){var i=n.length;if(null==e)return!i;e=nt(e);while(i--){var o=n[i],s=t[o],a=e[o];if(a===r&&!(o in e)||!s(a))return!1}return!0}function br(e,t,n){if("function"!=typeof e)throw new ot(l);return Sa((function(){e.apply(r,n)}),t)}function xr(e,t,n,i){var r=-1,o=Sn,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=Tn(t,Xn(n))),i?(o=En,a=!1):t.length>=s&&(o=Yn,a=!1,t=new Xi(t));e:while(++r<l){var h=e[r],d=null==n?h:n(h);if(h=i||0!==h?h:0,a&&d===d){var p=u;while(p--)if(t[p]===d)continue e;c.push(h)}else o(t,d,i)||c.push(h)}return c}wi.templateSettings={escape:Ae,evaluate:Oe,interpolate:Ie,variable:"",imports:{_:wi}},wi.prototype=Si.prototype,wi.prototype.constructor=wi,Ei.prototype=ki(Si.prototype),Ei.prototype.constructor=Ei,Ti.prototype=ki(Si.prototype),Ti.prototype.constructor=Ti,Ii.prototype.clear=Di,Ii.prototype["delete"]=Pi,Ii.prototype.get=zi,Ii.prototype.has=Li,Ii.prototype.set=Bi,Fi.prototype.clear=Ri,Fi.prototype["delete"]=$i,Fi.prototype.get=Ni,Fi.prototype.has=ji,Fi.prototype.set=Vi,Ui.prototype.clear=qi,Ui.prototype["delete"]=Hi,Ui.prototype.get=Wi,Ui.prototype.has=Gi,Ui.prototype.set=Zi,Xi.prototype.add=Xi.prototype.push=Ki,Xi.prototype.has=Yi,Ji.prototype.clear=Qi,Ji.prototype["delete"]=er,Ji.prototype.get=tr,Ji.prototype.has=nr,Ji.prototype.set=ir;var wr=us(Ir),Cr=us(Dr,!0);function kr(e,t){var n=!0;return wr(e,(function(e,i,r){return n=!!t(e,i,r),n})),n}function Sr(e,t,n){var i=-1,o=e.length;while(++i<o){var s=e[i],a=t(s);if(null!=a&&(l===r?a===a&&!$u(a):n(a,l)))var l=a,c=s}return c}function Er(e,t,n,i){var o=e.length;n=Zu(n),n<0&&(n=-n>o?0:o+n),i=i===r||i>o?o:Zu(i),i<0&&(i+=o),i=n>i?0:Xu(i);while(n<i)e[n++]=t;return e}function Tr(e,t){var n=[];return wr(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function Mr(e,t,n,i,r){var o=-1,s=e.length;n||(n=oa),r||(r=[]);while(++o<s){var a=e[o];t>0&&n(a)?t>1?Mr(a,t-1,n,i,r):Mn(r,a):i||(r[r.length]=a)}return r}var Ar=hs(),Or=hs(!0);function Ir(e,t){return e&&Ar(e,t,wh)}function Dr(e,t){return e&&Or(e,t,wh)}function Pr(e,t){return kn(t,(function(t){return xu(e[t])}))}function zr(e,t){t=qo(t,e);var n=0,i=t.length;while(null!=e&&n<i)e=e[Ia(t[n++])];return n&&n==i?e:r}function Lr(e,t,n){var i=t(e);return lu(e)?i:Mn(i,n(e))}function Br(e){return null==e?e===r?le:ee:Mt&&Mt in nt(e)?Zs(e):_a(e)}function Fr(e,t){return e>t}function Rr(e,t){return null!=e&&ht.call(e,t)}function $r(e,t){return null!=e&&t in nt(e)}function Nr(e,t,n){return e>=jt(t,n)&&e<Nt(t,n)}function jr(e,t,i){var o=i?En:Sn,s=e[0].length,a=e.length,l=a,c=n(a),u=1/0,h=[];while(l--){var d=e[l];l&&t&&(d=Tn(d,Xn(t))),u=jt(d.length,u),c[l]=!i&&(t||s>=120&&d.length>=120)?new Xi(l&&d):r}d=e[0];var p=-1,f=c[0];e:while(++p<s&&h.length<u){var m=d[p],g=t?t(m):m;if(m=i||0!==m?m:0,!(f?Yn(f,g):o(h,g,i))){l=a;while(--l){var v=c[l];if(!(v?Yn(v,g):o(e[l],g,i)))continue e}f&&f.push(g),h.push(m)}}return h}function Vr(e,t,n,i){return Ir(e,(function(e,r,o){t(i,n(e),r,o)})),i}function Ur(e,t,n){t=qo(t,e),e=xa(e,t);var i=null==e?e:e[Ia(ol(t))];return null==i?r:_n(i,e,n)}function qr(e){return Su(e)&&Br(e)==U}function Hr(e){return Su(e)&&Br(e)==he}function Wr(e){return Su(e)&&Br(e)==G}function Gr(e,t,n,i,r){return e===t||(null==e||null==t||!Su(e)&&!Su(t)?e!==e&&t!==t:Zr(e,t,n,i,Gr,r))}function Zr(e,t,n,i,r,o){var s=lu(e),a=lu(t),l=s?q:Ys(e),c=a?q:Ys(t);l=l==U?te:l,c=c==U?te:c;var u=l==te,h=c==te,d=l==c;if(d&&pu(e)){if(!pu(t))return!1;s=!0,u=!1}if(d&&!u)return o||(o=new Ji),s||Nu(e)?Ls(e,t,n,i,r,o):Bs(e,t,l,n,i,r,o);if(!(n&g)){var p=u&&ht.call(e,"__wrapped__"),f=h&&ht.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return o||(o=new Ji),r(m,v,n,i,o)}}return!!d&&(o||(o=new Ji),Fs(e,t,n,i,r,o))}function Xr(e){return Su(e)&&Ys(e)==J}function Kr(e,t,n,i){var o=n.length,s=o,a=!i;if(null==e)return!s;e=nt(e);while(o--){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++o<s){l=n[o];var c=l[0],u=e[c],h=l[1];if(a&&l[2]){if(u===r&&!(c in e))return!1}else{var d=new Ji;if(i)var p=i(u,h,c,e,t,d);if(!(p===r?Gr(h,u,g|v,i,d):p))return!1}}return!0}function Yr(e){if(!ku(e)||ha(e))return!1;var t=xu(e)?vt:Xe;return t.test(Da(e))}function Jr(e){return Su(e)&&Br(e)==re}function Qr(e){return Su(e)&&Ys(e)==oe}function eo(e){return Su(e)&&Cu(e.length)&&!!Kt[Br(e)]}function to(e){return"function"==typeof e?e:null==e?Od:"object"==typeof e?lu(e)?ao(e[0],e[1]):so(e):Ud(e)}function no(e){if(!pa(e))return $t(e);var t=[];for(var n in nt(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function io(e){if(!ku(e))return ya(e);var t=pa(e),n=[];for(var i in e)("constructor"!=i||!t&&ht.call(e,i))&&n.push(i);return n}function ro(e,t){return e<t}function oo(e,t){var i=-1,r=uu(e)?n(e.length):[];return wr(e,(function(e,n,o){r[++i]=t(e,n,o)})),r}function so(e){var t=Ws(e);return 1==t.length&&t[0][2]?ma(t[0][0],t[0][1]):function(n){return n===e||Kr(n,e,t)}}function ao(e,t){return la(e)&&fa(t)?ma(Ia(e),t):function(n){var i=gh(n,e);return i===r&&i===t?yh(n,e):Gr(t,i,g|v)}}function lo(e,t,n,i,o){e!==t&&Ar(t,(function(s,a){if(o||(o=new Ji),ku(s))co(e,t,a,n,lo,i,o);else{var l=i?i(Ca(e,a),s,a+"",e,t,o):r;l===r&&(l=s),lr(e,a,l)}}),Ch)}function co(e,t,n,i,o,s,a){var l=Ca(e,n),c=Ca(t,n),u=a.get(c);if(u)lr(e,n,u);else{var h=s?s(l,c,n+"",e,t,a):r,d=h===r;if(d){var p=lu(c),f=!p&&pu(c),m=!p&&!f&&Nu(c);h=c,p||f||m?lu(l)?h=l:hu(l)?h=rs(l):f?(d=!1,h=Zo(c,!0)):m?(d=!1,h=Qo(c,!0)):h=[]:zu(c)||au(c)?(h=l,au(l)?h=Yu(l):ku(l)&&!xu(l)||(h=na(c))):d=!1}d&&(a.set(c,h),o(h,c,i,s,a),a["delete"](c)),lr(e,n,h)}}function uo(e,t){var n=e.length;if(n)return t+=t<0?n:0,sa(t,n)?e[t]:r}function ho(e,t,n){t=t.length?Tn(t,(function(e){return lu(e)?function(t){return zr(t,1===e.length?e[0]:e)}:e})):[Od];var i=-1;t=Tn(t,Xn(qs()));var r=oo(e,(function(e,n,r){var o=Tn(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return qn(r,(function(e,t){return ts(e,t,n)}))}function po(e,t){return fo(e,t,(function(t,n){return yh(e,n)}))}function fo(e,t,n){var i=-1,r=t.length,o={};while(++i<r){var s=t[i],a=zr(e,s);n(a,s)&&ko(o,qo(s,e),a)}return o}function mo(e){return function(t){return zr(t,e)}}function go(e,t,n,i){var r=i?Rn:Fn,o=-1,s=t.length,a=e;e===t&&(t=rs(t)),n&&(a=Tn(e,Xn(n)));while(++o<s){var l=0,c=t[o],u=n?n(c):c;while((l=r(a,u,l,i))>-1)a!==e&&St.call(a,l,1),St.call(e,l,1)}return e}function vo(e,t){var n=e?t.length:0,i=n-1;while(n--){var r=t[n];if(n==i||r!==o){var o=r;sa(r)?St.call(e,r,1):Bo(e,r)}}return e}function yo(e,t){return e+zt(Wt()*(t-e+1))}function _o(e,t,i,r){var o=-1,s=Nt(Pt((t-e)/(i||1)),0),a=n(s);while(s--)a[r?s:++o]=e,e+=i;return a}function bo(e,t){var n="";if(!e||t<1||t>B)return n;do{t%2&&(n+=e),t=zt(t/2),t&&(e+=e)}while(t);return n}function xo(e,t){return Ea(ba(e,t,Od),e+"")}function wo(e){return or(jh(e))}function Co(e,t){var n=jh(e);return Aa(n,gr(t,0,n.length))}function ko(e,t,n,i){if(!ku(e))return e;t=qo(t,e);var o=-1,s=t.length,a=s-1,l=e;while(null!=l&&++o<s){var c=Ia(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var h=l[c];u=i?i(h,c,l):r,u===r&&(u=ku(h)?h:sa(t[o+1])?[]:{})}cr(l,c,u),l=l[c]}return e}var So=ln?function(e,t){return ln.set(e,t),e}:Od,Eo=At?function(e,t){return At(e,"toString",{configurable:!0,enumerable:!1,value:Ed(t),writable:!0})}:Od;function To(e){return Aa(jh(e))}function Mo(e,t,i){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),i=i>o?o:i,i<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;var s=n(o);while(++r<o)s[r]=e[r+t];return s}function Ao(e,t){var n;return wr(e,(function(e,i,r){return n=t(e,i,r),!n})),!!n}function Oo(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t===t&&r<=j){while(i<r){var o=i+r>>>1,s=e[o];null!==s&&!$u(s)&&(n?s<=t:s<t)?i=o+1:r=o}return r}return Io(e,t,Od,n)}function Io(e,t,n,i){var o=0,s=null==e?0:e.length;if(0===s)return 0;t=n(t);var a=t!==t,l=null===t,c=$u(t),u=t===r;while(o<s){var h=zt((o+s)/2),d=n(e[h]),p=d!==r,f=null===d,m=d===d,g=$u(d);if(a)var v=i||m;else v=u?m&&(i||p):l?m&&p&&(i||!f):c?m&&p&&!f&&(i||!g):!f&&!g&&(i?d<=t:d<t);v?o=h+1:s=h}return jt(s,N)}function Do(e,t){var n=-1,i=e.length,r=0,o=[];while(++n<i){var s=e[n],a=t?t(s):s;if(!n||!ru(a,l)){var l=a;o[r++]=0===s?0:s}}return o}function Po(e){return"number"==typeof e?e:$u(e)?R:+e}function zo(e){if("string"==typeof e)return e;if(lu(e))return Tn(e,zo)+"";if($u(e))return bi?bi.call(e):"";var t=e+"";return"0"==t&&1/e==-L?"-0":t}function Lo(e,t,n){var i=-1,r=Sn,o=e.length,a=!0,l=[],c=l;if(n)a=!1,r=En;else if(o>=s){var u=t?null:As(e);if(u)return hi(u);a=!1,r=Yn,c=new Xi}else c=t?[]:l;e:while(++i<o){var h=e[i],d=t?t(h):h;if(h=n||0!==h?h:0,a&&d===d){var p=c.length;while(p--)if(c[p]===d)continue e;t&&c.push(d),l.push(h)}else r(c,d,n)||(c!==l&&c.push(d),l.push(h))}return l}function Bo(e,t){return t=qo(t,e),e=xa(e,t),null==e||delete e[Ia(ol(t))]}function Fo(e,t,n,i){return ko(e,t,n(zr(e,t)),i)}function Ro(e,t,n,i){var r=e.length,o=i?r:-1;while((i?o--:++o<r)&&t(e[o],o,e));return n?Mo(e,i?0:o,i?o+1:r):Mo(e,i?o+1:0,i?r:o)}function $o(e,t){var n=e;return n instanceof Ti&&(n=n.value()),An(t,(function(e,t){return t.func.apply(t.thisArg,Mn([e],t.args))}),n)}function No(e,t,i){var r=e.length;if(r<2)return r?Lo(e[0]):[];var o=-1,s=n(r);while(++o<r){var a=e[o],l=-1;while(++l<r)l!=o&&(s[o]=xr(s[o]||a,e[l],t,i))}return Lo(Mr(s,1),t,i)}function jo(e,t,n){var i=-1,o=e.length,s=t.length,a={};while(++i<o){var l=i<s?t[i]:r;n(a,e[i],l)}return a}function Vo(e){return hu(e)?e:[]}function Uo(e){return"function"==typeof e?e:Od}function qo(e,t){return lu(e)?e:la(e,t)?[e]:Oa(Qu(e))}var Ho=xo;function Wo(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:Mo(e,t,n)}var Go=Ot||function(e){return an.clearTimeout(e)};function Zo(e,t){if(t)return e.slice();var n=e.length,i=xt?xt(n):new e.constructor(n);return e.copy(i),i}function Xo(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t}function Ko(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Yo(e){var t=new e.constructor(e.source,We.exec(e));return t.lastIndex=e.lastIndex,t}function Jo(e){return _i?nt(_i.call(e)):{}}function Qo(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function es(e,t){if(e!==t){var n=e!==r,i=null===e,o=e===e,s=$u(e),a=t!==r,l=null===t,c=t===t,u=$u(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!u&&e<t||u&&n&&o&&!i&&!s||l&&n&&o||!a&&o||!c)return-1}return 0}function ts(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;while(++i<s){var l=es(r[i],o[i]);if(l){if(i>=a)return l;var c=n[i];return l*("desc"==c?-1:1)}}return e.index-t.index}function ns(e,t,i,r){var o=-1,s=e.length,a=i.length,l=-1,c=t.length,u=Nt(s-a,0),h=n(c+u),d=!r;while(++l<c)h[l]=t[l];while(++o<a)(d||o<s)&&(h[i[o]]=e[o]);while(u--)h[l++]=e[o++];return h}function is(e,t,i,r){var o=-1,s=e.length,a=-1,l=i.length,c=-1,u=t.length,h=Nt(s-l,0),d=n(h+u),p=!r;while(++o<h)d[o]=e[o];var f=o;while(++c<u)d[f+c]=t[c];while(++a<l)(p||o<s)&&(d[f+i[a]]=e[o++]);return d}function rs(e,t){var i=-1,r=e.length;t||(t=n(r));while(++i<r)t[i]=e[i];return t}function os(e,t,n,i){var o=!n;n||(n={});var s=-1,a=t.length;while(++s<a){var l=t[s],c=i?i(n[l],e[l],l,n,e):r;c===r&&(c=e[l]),o?fr(n,l,c):cr(n,l,c)}return n}function ss(e,t){return os(e,Xs(e),t)}function as(e,t){return os(e,Ks(e),t)}function ls(e,t){return function(n,i){var r=lu(n)?bn:hr,o=t?t():{};return r(n,e,qs(i,2),o)}}function cs(e){return xo((function(t,n){var i=-1,o=n.length,s=o>1?n[o-1]:r,a=o>2?n[2]:r;s=e.length>3&&"function"==typeof s?(o--,s):r,a&&aa(n[0],n[1],a)&&(s=o<3?r:s,o=1),t=nt(t);while(++i<o){var l=n[i];l&&e(t,l,i,s)}return t}))}function us(e,t){return function(n,i){if(null==n)return n;if(!uu(n))return e(n,i);var r=n.length,o=t?r:-1,s=nt(n);while(t?o--:++o<r)if(!1===i(s[o],o,s))break;return n}}function hs(e){return function(t,n,i){var r=-1,o=nt(t),s=i(t),a=s.length;while(a--){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}function ds(e,t,n){var i=t&y,r=ms(e);function o(){var t=this&&this!==an&&this instanceof o?r:e;return t.apply(i?n:this,arguments)}return o}function ps(e){return function(t){t=Qu(t);var n=oi(t)?gi(t):r,i=n?n[0]:t.charAt(0),o=n?Wo(n,1).join(""):t.slice(1);return i[e]()+o}}function fs(e){return function(t){return An(xd(Zh(t).replace(Vt,"")),e,"")}}function ms(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ki(e.prototype),i=e.apply(n,t);return ku(i)?i:n}}function gs(e,t,i){var o=ms(e);function s(){var a=arguments.length,l=n(a),c=a,u=Us(s);while(c--)l[c]=arguments[c];var h=a<3&&l[0]!==u&&l[a-1]!==u?[]:ui(l,u);if(a-=h.length,a<i)return Ts(e,t,_s,s.placeholder,r,l,h,r,r,i-a);var d=this&&this!==an&&this instanceof s?o:e;return _n(d,this,l)}return s}function vs(e){return function(t,n,i){var o=nt(t);if(!uu(t)){var s=qs(n,3);t=wh(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,i);return a>-1?o[s?t[a]:a]:r}}function ys(e){return Rs((function(t){var n=t.length,i=n,o=Ei.prototype.thru;e&&t.reverse();while(i--){var s=t[i];if("function"!=typeof s)throw new ot(l);if(o&&!a&&"wrapper"==Vs(s))var a=new Ei([],!0)}i=a?i:n;while(++i<n){s=t[i];var c=Vs(s),u="wrapper"==c?js(s):r;a=u&&ua(u[0])&&u[1]==(S|x|C|E)&&!u[4].length&&1==u[9]?a[Vs(u[0])].apply(a,u[3]):1==s.length&&ua(s)?a[c]():a.thru(s)}return function(){var e=arguments,i=e[0];if(a&&1==e.length&&lu(i))return a.plant(i).value();var r=0,o=n?t[r].apply(this,e):i;while(++r<n)o=t[r].call(this,o);return o}}))}function _s(e,t,i,o,s,a,l,c,u,h){var d=t&S,p=t&y,f=t&_,m=t&(x|w),g=t&T,v=f?r:ms(e);function b(){var r=arguments.length,y=n(r),_=r;while(_--)y[_]=arguments[_];if(m)var x=Us(b),w=ei(y,x);if(o&&(y=ns(y,o,s,m)),a&&(y=is(y,a,l,m)),r-=w,m&&r<h){var C=ui(y,x);return Ts(e,t,_s,b.placeholder,i,y,C,c,u,h-r)}var k=p?i:this,S=f?k[e]:e;return r=y.length,c?y=wa(y,c):g&&r>1&&y.reverse(),d&&u<r&&(y.length=u),this&&this!==an&&this instanceof b&&(S=v||ms(S)),S.apply(k,y)}return b}function bs(e,t){return function(n,i){return Vr(n,e,t(i),{})}}function xs(e,t){return function(n,i){var o;if(n===r&&i===r)return t;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=zo(n),i=zo(i)):(n=Po(n),i=Po(i)),o=e(n,i)}return o}}function ws(e){return Rs((function(t){return t=Tn(t,Xn(qs())),xo((function(n){var i=this;return e(t,(function(e){return _n(e,i,n)}))}))}))}function Cs(e,t){t=t===r?" ":zo(t);var n=t.length;if(n<2)return n?bo(t,e):t;var i=bo(t,Pt(e/mi(t)));return oi(t)?Wo(gi(i),0,e).join(""):i.slice(0,e)}function ks(e,t,i,r){var o=t&y,s=ms(e);function a(){var t=-1,l=arguments.length,c=-1,u=r.length,h=n(u+l),d=this&&this!==an&&this instanceof a?s:e;while(++c<u)h[c]=r[c];while(l--)h[c++]=arguments[++t];return _n(d,o?i:this,h)}return a}function Ss(e){return function(t,n,i){return i&&"number"!=typeof i&&aa(t,n,i)&&(n=i=r),t=Gu(t),n===r?(n=t,t=0):n=Gu(n),i=i===r?t<n?1:-1:Gu(i),_o(t,n,i,e)}}function Es(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ku(t),n=Ku(n)),e(t,n)}}function Ts(e,t,n,i,o,s,a,l,c,u){var h=t&x,d=h?a:r,p=h?r:a,f=h?s:r,m=h?r:s;t|=h?C:k,t&=~(h?k:C),t&b||(t&=~(y|_));var g=[e,t,o,f,d,m,p,l,c,u],v=n.apply(r,g);return ua(e)&&ka(v,g),v.placeholder=i,Ta(v,e,t)}function Ms(e){var t=tt[e];return function(e,n){if(e=Ku(e),n=null==n?0:jt(Zu(n),292),n&&Ft(e)){var i=(Qu(e)+"e").split("e"),r=t(i[0]+"e"+(+i[1]+n));return i=(Qu(r)+"e").split("e"),+(i[0]+"e"+(+i[1]-n))}return t(e)}}var As=tn&&1/hi(new tn([,-0]))[1]==L?function(e){return new tn(e)}:Rd;function Os(e){return function(t){var n=Ys(t);return n==J?li(t):n==oe?di(t):Gn(t,e(t))}}function Is(e,t,n,i,o,s,a,c){var u=t&_;if(!u&&"function"!=typeof e)throw new ot(l);var h=i?i.length:0;if(h||(t&=~(C|k),i=o=r),a=a===r?a:Nt(Zu(a),0),c=c===r?c:Zu(c),h-=o?o.length:0,t&k){var d=i,p=o;i=o=r}var f=u?r:js(e),m=[e,t,n,i,o,d,p,s,a,c];if(f&&va(m,f),e=m[0],t=m[1],n=m[2],i=m[3],o=m[4],c=m[9]=m[9]===r?u?0:e.length:Nt(m[9]-h,0),!c&&t&(x|w)&&(t&=~(x|w)),t&&t!=y)g=t==x||t==w?gs(e,t,c):t!=C&&t!=(y|C)||o.length?_s.apply(r,m):ks(e,t,n,i);else var g=ds(e,t,n);var v=f?So:ka;return Ta(v(g,m),e,t)}function Ds(e,t,n,i){return e===r||ru(e,lt[n])&&!ht.call(i,n)?t:e}function Ps(e,t,n,i,o,s){return ku(e)&&ku(t)&&(s.set(t,e),lo(e,t,r,Ps,s),s["delete"](t)),e}function zs(e){return zu(e)?r:e}function Ls(e,t,n,i,o,s){var a=n&g,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),h=s.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,f=n&v?new Xi:r;s.set(e,t),s.set(t,e);while(++d<l){var m=e[d],y=t[d];if(i)var _=a?i(y,m,d,t,e,s):i(m,y,d,e,t,s);if(_!==r){if(_)continue;p=!1;break}if(f){if(!In(t,(function(e,t){if(!Yn(f,t)&&(m===e||o(m,e,n,i,s)))return f.push(t)}))){p=!1;break}}else if(m!==y&&!o(m,y,n,i,s)){p=!1;break}}return s["delete"](e),s["delete"](t),p}function Bs(e,t,n,i,r,o,s){switch(n){case de:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case he:return!(e.byteLength!=t.byteLength||!o(new bt(e),new bt(t)));case W:case G:case Q:return ru(+e,+t);case X:return e.name==t.name&&e.message==t.message;case re:case se:return e==t+"";case J:var a=li;case oe:var l=i&g;if(a||(a=hi),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;i|=v,s.set(e,t);var u=Ls(a(e),a(t),i,r,o,s);return s["delete"](e),u;case ae:if(_i)return _i.call(e)==_i.call(t)}return!1}function Fs(e,t,n,i,o,s){var a=n&g,l=$s(e),c=l.length,u=$s(t),h=u.length;if(c!=h&&!a)return!1;var d=c;while(d--){var p=l[d];if(!(a?p in t:ht.call(t,p)))return!1}var f=s.get(e),m=s.get(t);if(f&&m)return f==t&&m==e;var v=!0;s.set(e,t),s.set(t,e);var y=a;while(++d<c){p=l[d];var _=e[p],b=t[p];if(i)var x=a?i(b,_,p,t,e,s):i(_,b,p,e,t,s);if(!(x===r?_===b||o(_,b,n,i,s):x)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var w=e.constructor,C=t.constructor;w==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof C&&C instanceof C||(v=!1)}return s["delete"](e),s["delete"](t),v}function Rs(e){return Ea(ba(e,r,Za),e+"")}function $s(e){return Lr(e,wh,Xs)}function Ns(e){return Lr(e,Ch,Ks)}var js=ln?function(e){return ln.get(e)}:Rd;function Vs(e){var t=e.name+"",n=cn[t],i=ht.call(cn,t)?n.length:0;while(i--){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Us(e){var t=ht.call(wi,"placeholder")?wi:e;return t.placeholder}function qs(){var e=wi.iteratee||Id;return e=e===Id?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Hs(e,t){var n=e.__data__;return ca(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ws(e){var t=wh(e),n=t.length;while(n--){var i=t[n],r=e[i];t[n]=[i,r,fa(r)]}return t}function Gs(e,t){var n=ri(e,t);return Yr(n)?n:r}function Zs(e){var t=ht.call(e,Mt),n=e[Mt];try{e[Mt]=r;var i=!0}catch(s){}var o=ft.call(e);return i&&(t?e[Mt]=n:delete e[Mt]),o}var Xs=Lt?function(e){return null==e?[]:(e=nt(e),kn(Lt(e),(function(t){return kt.call(e,t)})))}:Gd,Ks=Lt?function(e){var t=[];while(e)Mn(t,Xs(e)),e=wt(e);return t}:Gd,Ys=Br;function Js(e,t,n){var i=-1,r=n.length;while(++i<r){var o=n[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=jt(t,e+s);break;case"takeRight":e=Nt(e,t-s);break}}return{start:e,end:t}}function Qs(e){var t=e.match(Ne);return t?t[1].split(je):[]}function ea(e,t,n){t=qo(t,e);var i=-1,r=t.length,o=!1;while(++i<r){var s=Ia(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:(r=null==e?0:e.length,!!r&&Cu(r)&&sa(s,r)&&(lu(e)||au(e)))}function ta(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function na(e){return"function"!=typeof e.constructor||pa(e)?{}:ki(wt(e))}function ia(e,t,n){var i=e.constructor;switch(t){case he:return Xo(e);case W:case G:return new i(+e);case de:return Ko(e,n);case pe:case fe:case me:case ge:case ve:case ye:case _e:case be:case xe:return Qo(e,n);case J:return new i;case Q:case se:return new i(e);case re:return Yo(e);case oe:return new i;case ae:return Jo(e)}}function ra(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace($e,"{\n/* [wrapped with "+t+"] */\n")}function oa(e){return lu(e)||au(e)||!!(Et&&e&&e[Et])}function sa(e,t){var n=typeof e;return t=null==t?B:t,!!t&&("number"==n||"symbol"!=n&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function aa(e,t,n){if(!ku(n))return!1;var i=typeof t;return!!("number"==i?uu(n)&&sa(t,n.length):"string"==i&&t in n)&&ru(n[t],e)}function la(e,t){if(lu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$u(e))||(Pe.test(e)||!De.test(e)||null!=t&&e in nt(t))}function ca(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ua(e){var t=Vs(e),n=wi[t];if("function"!=typeof n||!(t in Ti.prototype))return!1;if(e===n)return!0;var i=js(n);return!!i&&e===i[0]}function ha(e){return!!pt&&pt in e}(Jt&&Ys(new Jt(new ArrayBuffer(1)))!=de||Qt&&Ys(new Qt)!=J||en&&Ys(en.resolve())!=ne||tn&&Ys(new tn)!=oe||on&&Ys(new on)!=ce)&&(Ys=function(e){var t=Br(e),n=t==te?e.constructor:r,i=n?Da(n):"";if(i)switch(i){case hn:return de;case dn:return J;case Dn:return ne;case Pn:return oe;case Vn:return ce}return t});var da=ct?xu:Zd;function pa(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||lt;return e===n}function fa(e){return e===e&&!ku(e)}function ma(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in nt(n)))}}function ga(e){var t=Nc(e,(function(e){return n.size===h&&n.clear(),e})),n=t.cache;return t}function va(e,t){var n=e[1],i=t[1],r=n|i,o=r<(y|_|S),s=i==S&&n==x||i==S&&n==E&&e[7].length<=t[8]||i==(S|E)&&t[7].length<=t[8]&&n==x;if(!o&&!s)return e;i&y&&(e[2]=t[2],r|=n&y?0:b);var a=t[3];if(a){var l=e[3];e[3]=l?ns(l,a,t[4]):a,e[4]=l?ui(e[3],d):t[4]}return a=t[5],a&&(l=e[5],e[5]=l?is(l,a,t[6]):a,e[6]=l?ui(e[5],d):t[6]),a=t[7],a&&(e[7]=a),i&S&&(e[8]=null==e[8]?t[8]:jt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r,e}function ya(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function _a(e){return ft.call(e)}function ba(e,t,i){return t=Nt(t===r?e.length-1:t,0),function(){var r=arguments,o=-1,s=Nt(r.length-t,0),a=n(s);while(++o<s)a[o]=r[t+o];o=-1;var l=n(t+1);while(++o<t)l[o]=r[o];return l[t]=i(a),_n(e,this,l)}}function xa(e,t){return t.length<2?e:zr(e,Mo(t,0,-1))}function wa(e,t){var n=e.length,i=jt(t.length,n),o=rs(e);while(i--){var s=t[i];e[i]=sa(s,n)?o[s]:r}return e}function Ca(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var ka=Ma(So),Sa=Dt||function(e,t){return an.setTimeout(e,t)},Ea=Ma(Eo);function Ta(e,t,n){var i=t+"";return Ea(e,ra(i,Pa(Qs(i),n)))}function Ma(e){var t=0,n=0;return function(){var i=qt(),o=I-(i-n);if(n=i,o>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Aa(e,t){var n=-1,i=e.length,o=i-1;t=t===r?i:t;while(++n<t){var s=yo(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Oa=ga((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ze,(function(e,n,i,r){t.push(i?r.replace(qe,"$1"):n||e)})),t}));function Ia(e){if("string"==typeof e||$u(e))return e;var t=e+"";return"0"==t&&1/e==-L?"-0":t}function Da(e){if(null!=e){try{return ut.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Pa(e,t){return xn(V,(function(n){var i="_."+n[0];t&n[1]&&!Sn(e,i)&&e.push(i)})),e.sort()}function za(e){if(e instanceof Ti)return e.clone();var t=new Ei(e.__wrapped__,e.__chain__);return t.__actions__=rs(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function La(e,t,i){t=(i?aa(e,t,i):t===r)?1:Nt(Zu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];var s=0,a=0,l=n(Pt(o/t));while(s<o)l[a++]=Mo(e,s,s+=t);return l}function Ba(e){var t=-1,n=null==e?0:e.length,i=0,r=[];while(++t<n){var o=e[t];o&&(r[i++]=o)}return r}function Fa(){var e=arguments.length;if(!e)return[];var t=n(e-1),i=arguments[0],r=e;while(r--)t[r-1]=arguments[r];return Mn(lu(i)?rs(i):[i],Mr(t,1))}var Ra=xo((function(e,t){return hu(e)?xr(e,Mr(t,1,hu,!0)):[]})),$a=xo((function(e,t){var n=ol(t);return hu(n)&&(n=r),hu(e)?xr(e,Mr(t,1,hu,!0),qs(n,2)):[]})),Na=xo((function(e,t){var n=ol(t);return hu(n)&&(n=r),hu(e)?xr(e,Mr(t,1,hu,!0),r,n):[]}));function ja(e,t,n){var i=null==e?0:e.length;return i?(t=n||t===r?1:Zu(t),Mo(e,t<0?0:t,i)):[]}function Va(e,t,n){var i=null==e?0:e.length;return i?(t=n||t===r?1:Zu(t),t=i-t,Mo(e,0,t<0?0:t)):[]}function Ua(e,t){return e&&e.length?Ro(e,qs(t,3),!0,!0):[]}function qa(e,t){return e&&e.length?Ro(e,qs(t,3),!0):[]}function Ha(e,t,n,i){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&aa(e,t,n)&&(n=0,i=r),Er(e,t,n,i)):[]}function Wa(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Zu(n);return r<0&&(r=Nt(i+r,0)),Bn(e,qs(t,3),r)}function Ga(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return n!==r&&(o=Zu(n),o=n<0?Nt(i+o,0):jt(o,i-1)),Bn(e,qs(t,3),o,!0)}function Za(e){var t=null==e?0:e.length;return t?Mr(e,1):[]}function Xa(e){var t=null==e?0:e.length;return t?Mr(e,L):[]}function Ka(e,t){var n=null==e?0:e.length;return n?(t=t===r?1:Zu(t),Mr(e,t)):[]}function Ya(e){var t=-1,n=null==e?0:e.length,i={};while(++t<n){var r=e[t];i[r[0]]=r[1]}return i}function Ja(e){return e&&e.length?e[0]:r}function Qa(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Zu(n);return r<0&&(r=Nt(i+r,0)),Fn(e,t,r)}function el(e){var t=null==e?0:e.length;return t?Mo(e,0,-1):[]}var tl=xo((function(e){var t=Tn(e,Vo);return t.length&&t[0]===e[0]?jr(t):[]})),nl=xo((function(e){var t=ol(e),n=Tn(e,Vo);return t===ol(n)?t=r:n.pop(),n.length&&n[0]===e[0]?jr(n,qs(t,2)):[]})),il=xo((function(e){var t=ol(e),n=Tn(e,Vo);return t="function"==typeof t?t:r,t&&n.pop(),n.length&&n[0]===e[0]?jr(n,r,t):[]}));function rl(e,t){return null==e?"":Rt.call(e,t)}function ol(e){var t=null==e?0:e.length;return t?e[t-1]:r}function sl(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;return n!==r&&(o=Zu(n),o=o<0?Nt(i+o,0):jt(o,i-1)),t===t?fi(e,t,o):Bn(e,$n,o,!0)}function al(e,t){return e&&e.length?uo(e,Zu(t)):r}var ll=xo(cl);function cl(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function ul(e,t,n){return e&&e.length&&t&&t.length?go(e,t,qs(n,2)):e}function hl(e,t,n){return e&&e.length&&t&&t.length?go(e,t,r,n):e}var dl=Rs((function(e,t){var n=null==e?0:e.length,i=mr(e,t);return vo(e,Tn(t,(function(e){return sa(e,n)?+e:e})).sort(es)),i}));function pl(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;t=qs(t,3);while(++i<o){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return vo(e,r),n}function fl(e){return null==e?e:Gt.call(e)}function ml(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&aa(e,t,n)?(t=0,n=i):(t=null==t?0:Zu(t),n=n===r?i:Zu(n)),Mo(e,t,n)):[]}function gl(e,t){return Oo(e,t)}function vl(e,t,n){return Io(e,t,qs(n,2))}function yl(e,t){var n=null==e?0:e.length;if(n){var i=Oo(e,t);if(i<n&&ru(e[i],t))return i}return-1}function _l(e,t){return Oo(e,t,!0)}function bl(e,t,n){return Io(e,t,qs(n,2),!0)}function xl(e,t){var n=null==e?0:e.length;if(n){var i=Oo(e,t,!0)-1;if(ru(e[i],t))return i}return-1}function wl(e){return e&&e.length?Do(e):[]}function Cl(e,t){return e&&e.length?Do(e,qs(t,2)):[]}function kl(e){var t=null==e?0:e.length;return t?Mo(e,1,t):[]}function Sl(e,t,n){return e&&e.length?(t=n||t===r?1:Zu(t),Mo(e,0,t<0?0:t)):[]}function El(e,t,n){var i=null==e?0:e.length;return i?(t=n||t===r?1:Zu(t),t=i-t,Mo(e,t<0?0:t,i)):[]}function Tl(e,t){return e&&e.length?Ro(e,qs(t,3),!1,!0):[]}function Ml(e,t){return e&&e.length?Ro(e,qs(t,3)):[]}var Al=xo((function(e){return Lo(Mr(e,1,hu,!0))})),Ol=xo((function(e){var t=ol(e);return hu(t)&&(t=r),Lo(Mr(e,1,hu,!0),qs(t,2))})),Il=xo((function(e){var t=ol(e);return t="function"==typeof t?t:r,Lo(Mr(e,1,hu,!0),r,t)}));function Dl(e){return e&&e.length?Lo(e):[]}function Pl(e,t){return e&&e.length?Lo(e,qs(t,2)):[]}function zl(e,t){return t="function"==typeof t?t:r,e&&e.length?Lo(e,r,t):[]}function Ll(e){if(!e||!e.length)return[];var t=0;return e=kn(e,(function(e){if(hu(e))return t=Nt(e.length,t),!0})),Wn(t,(function(t){return Tn(e,jn(t))}))}function Bl(e,t){if(!e||!e.length)return[];var n=Ll(e);return null==t?n:Tn(n,(function(e){return _n(t,r,e)}))}var Fl=xo((function(e,t){return hu(e)?xr(e,t):[]})),Rl=xo((function(e){return No(kn(e,hu))})),$l=xo((function(e){var t=ol(e);return hu(t)&&(t=r),No(kn(e,hu),qs(t,2))})),Nl=xo((function(e){var t=ol(e);return t="function"==typeof t?t:r,No(kn(e,hu),r,t)})),jl=xo(Ll);function Vl(e,t){return jo(e||[],t||[],cr)}function Ul(e,t){return jo(e||[],t||[],ko)}var ql=xo((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,Bl(e,n)}));function Hl(e){var t=wi(e);return t.__chain__=!0,t}function Wl(e,t){return t(e),e}function Gl(e,t){return t(e)}var Zl=Rs((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return mr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Ti&&sa(n)?(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:Gl,args:[o],thisArg:r}),new Ei(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(o)}));function Xl(){return Hl(this)}function Kl(){return new Ei(this.value(),this.__chain__)}function Yl(){this.__values__===r&&(this.__values__=Wu(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Jl(){return this}function Ql(e){var t,n=this;while(n instanceof Si){var i=za(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t}function ec(){var e=this.__wrapped__;if(e instanceof Ti){var t=e;return this.__actions__.length&&(t=new Ti(this)),t=t.reverse(),t.__actions__.push({func:Gl,args:[fl],thisArg:r}),new Ei(t,this.__chain__)}return this.thru(fl)}function tc(){return $o(this.__wrapped__,this.__actions__)}var nc=ls((function(e,t,n){ht.call(e,n)?++e[n]:fr(e,n,1)}));function ic(e,t,n){var i=lu(e)?Cn:kr;return n&&aa(e,t,n)&&(t=r),i(e,qs(t,3))}function rc(e,t){var n=lu(e)?kn:Tr;return n(e,qs(t,3))}var oc=vs(Wa),sc=vs(Ga);function ac(e,t){return Mr(gc(e,t),1)}function lc(e,t){return Mr(gc(e,t),L)}function cc(e,t,n){return n=n===r?1:Zu(n),Mr(gc(e,t),n)}function uc(e,t){var n=lu(e)?xn:wr;return n(e,qs(t,3))}function hc(e,t){var n=lu(e)?wn:Cr;return n(e,qs(t,3))}var dc=ls((function(e,t,n){ht.call(e,n)?e[n].push(t):fr(e,n,[t])}));function pc(e,t,n,i){e=uu(e)?e:jh(e),n=n&&!i?Zu(n):0;var r=e.length;return n<0&&(n=Nt(r+n,0)),Ru(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Fn(e,t,n)>-1}var fc=xo((function(e,t,i){var r=-1,o="function"==typeof t,s=uu(e)?n(e.length):[];return wr(e,(function(e){s[++r]=o?_n(t,e,i):Ur(e,t,i)})),s})),mc=ls((function(e,t,n){fr(e,n,t)}));function gc(e,t){var n=lu(e)?Tn:oo;return n(e,qs(t,3))}function vc(e,t,n,i){return null==e?[]:(lu(t)||(t=null==t?[]:[t]),n=i?r:n,lu(n)||(n=null==n?[]:[n]),ho(e,t,n))}var yc=ls((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function _c(e,t,n){var i=lu(e)?An:Un,r=arguments.length<3;return i(e,qs(t,4),n,r,wr)}function bc(e,t,n){var i=lu(e)?On:Un,r=arguments.length<3;return i(e,qs(t,4),n,r,Cr)}function xc(e,t){var n=lu(e)?kn:Tr;return n(e,jc(qs(t,3)))}function wc(e){var t=lu(e)?or:wo;return t(e)}function Cc(e,t,n){t=(n?aa(e,t,n):t===r)?1:Zu(t);var i=lu(e)?sr:Co;return i(e,t)}function kc(e){var t=lu(e)?ar:To;return t(e)}function Sc(e){if(null==e)return 0;if(uu(e))return Ru(e)?mi(e):e.length;var t=Ys(e);return t==J||t==oe?e.size:no(e).length}function Ec(e,t,n){var i=lu(e)?In:Ao;return n&&aa(e,t,n)&&(t=r),i(e,qs(t,3))}var Tc=xo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&aa(e,t[0],t[1])?t=[]:n>2&&aa(t[0],t[1],t[2])&&(t=[t[0]]),ho(e,Mr(t,1),[])})),Mc=It||function(){return an.Date.now()};function Ac(e,t){if("function"!=typeof t)throw new ot(l);return e=Zu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Oc(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Is(e,S,r,r,r,r,t)}function Ic(e,t){var n;if("function"!=typeof t)throw new ot(l);return e=Zu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Dc=xo((function(e,t,n){var i=y;if(n.length){var r=ui(n,Us(Dc));i|=C}return Is(e,i,t,n,r)})),Pc=xo((function(e,t,n){var i=y|_;if(n.length){var r=ui(n,Us(Pc));i|=C}return Is(t,i,e,n,r)}));function zc(e,t,n){t=n?r:t;var i=Is(e,x,r,r,r,r,r,t);return i.placeholder=zc.placeholder,i}function Lc(e,t,n){t=n?r:t;var i=Is(e,w,r,r,r,r,r,t);return i.placeholder=Lc.placeholder,i}function Bc(e,t,n){var i,o,s,a,c,u,h=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw new ot(l);function m(t){var n=i,s=o;return i=o=r,h=t,a=e.apply(s,n),a}function g(e){return h=e,c=Sa(_,t),d?m(e):a}function v(e){var n=e-u,i=e-h,r=t-n;return p?jt(r,s-i):r}function y(e){var n=e-u,i=e-h;return u===r||n>=t||n<0||p&&i>=s}function _(){var e=Mc();if(y(e))return b(e);c=Sa(_,v(e))}function b(e){return c=r,f&&i?m(e):(i=o=r,a)}function x(){c!==r&&Go(c),h=0,i=u=o=c=r}function w(){return c===r?a:b(Mc())}function C(){var e=Mc(),n=y(e);if(i=arguments,o=this,u=e,n){if(c===r)return g(u);if(p)return Go(c),c=Sa(_,t),m(u)}return c===r&&(c=Sa(_,t)),a}return t=Ku(t)||0,ku(n)&&(d=!!n.leading,p="maxWait"in n,s=p?Nt(Ku(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),C.cancel=x,C.flush=w,C}var Fc=xo((function(e,t){return br(e,1,t)})),Rc=xo((function(e,t,n){return br(e,Ku(t)||0,n)}));function $c(e){return Is(e,T)}function Nc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(l);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(Nc.Cache||Ui),n}function jc(e){if("function"!=typeof e)throw new ot(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vc(e){return Ic(2,e)}Nc.Cache=Ui;var Uc=Ho((function(e,t){t=1==t.length&&lu(t[0])?Tn(t[0],Xn(qs())):Tn(Mr(t,1),Xn(qs()));var n=t.length;return xo((function(i){var r=-1,o=jt(i.length,n);while(++r<o)i[r]=t[r].call(this,i[r]);return _n(e,this,i)}))})),qc=xo((function(e,t){var n=ui(t,Us(qc));return Is(e,C,r,t,n)})),Hc=xo((function(e,t){var n=ui(t,Us(Hc));return Is(e,k,r,t,n)})),Wc=Rs((function(e,t){return Is(e,E,r,r,r,t)}));function Gc(e,t){if("function"!=typeof e)throw new ot(l);return t=t===r?t:Zu(t),xo(e,t)}function Zc(e,t){if("function"!=typeof e)throw new ot(l);return t=null==t?0:Nt(Zu(t),0),xo((function(n){var i=n[t],r=Wo(n,0,t);return i&&Mn(r,i),_n(e,this,r)}))}function Xc(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new ot(l);return ku(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Bc(e,t,{leading:i,maxWait:t,trailing:r})}function Kc(e){return Oc(e,1)}function Yc(e,t){return qc(Uo(t),e)}function Jc(){if(!arguments.length)return[];var e=arguments[0];return lu(e)?e:[e]}function Qc(e){return vr(e,m)}function eu(e,t){return t="function"==typeof t?t:r,vr(e,m,t)}function tu(e){return vr(e,p|m)}function nu(e,t){return t="function"==typeof t?t:r,vr(e,p|m,t)}function iu(e,t){return null==t||_r(e,t,wh(t))}function ru(e,t){return e===t||e!==e&&t!==t}var ou=Es(Fr),su=Es((function(e,t){return e>=t})),au=qr(function(){return arguments}())?qr:function(e){return Su(e)&&ht.call(e,"callee")&&!kt.call(e,"callee")},lu=n.isArray,cu=pn?Xn(pn):Hr;function uu(e){return null!=e&&Cu(e.length)&&!xu(e)}function hu(e){return Su(e)&&uu(e)}function du(e){return!0===e||!1===e||Su(e)&&Br(e)==W}var pu=Bt||Zd,fu=fn?Xn(fn):Wr;function mu(e){return Su(e)&&1===e.nodeType&&!zu(e)}function gu(e){if(null==e)return!0;if(uu(e)&&(lu(e)||"string"==typeof e||"function"==typeof e.splice||pu(e)||Nu(e)||au(e)))return!e.length;var t=Ys(e);if(t==J||t==oe)return!e.size;if(pa(e))return!no(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0}function vu(e,t){return Gr(e,t)}function yu(e,t,n){n="function"==typeof n?n:r;var i=n?n(e,t):r;return i===r?Gr(e,t,r,n):!!i}function _u(e){if(!Su(e))return!1;var t=Br(e);return t==X||t==Z||"string"==typeof e.message&&"string"==typeof e.name&&!zu(e)}function bu(e){return"number"==typeof e&&Ft(e)}function xu(e){if(!ku(e))return!1;var t=Br(e);return t==K||t==Y||t==H||t==ie}function wu(e){return"number"==typeof e&&e==Zu(e)}function Cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=B}function ku(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Su(e){return null!=e&&"object"==typeof e}var Eu=mn?Xn(mn):Xr;function Tu(e,t){return e===t||Kr(e,t,Ws(t))}function Mu(e,t,n){return n="function"==typeof n?n:r,Kr(e,t,Ws(t),n)}function Au(e){return Pu(e)&&e!=+e}function Ou(e){if(da(e))throw new Re(a);return Yr(e)}function Iu(e){return null===e}function Du(e){return null==e}function Pu(e){return"number"==typeof e||Su(e)&&Br(e)==Q}function zu(e){if(!Su(e)||Br(e)!=te)return!1;var t=wt(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==mt}var Lu=gn?Xn(gn):Jr;function Bu(e){return wu(e)&&e>=-B&&e<=B}var Fu=vn?Xn(vn):Qr;function Ru(e){return"string"==typeof e||!lu(e)&&Su(e)&&Br(e)==se}function $u(e){return"symbol"==typeof e||Su(e)&&Br(e)==ae}var Nu=yn?Xn(yn):eo;function ju(e){return e===r}function Vu(e){return Su(e)&&Ys(e)==ce}function Uu(e){return Su(e)&&Br(e)==ue}var qu=Es(ro),Hu=Es((function(e,t){return e<=t}));function Wu(e){if(!e)return[];if(uu(e))return Ru(e)?gi(e):rs(e);if(Tt&&e[Tt])return ai(e[Tt]());var t=Ys(e),n=t==J?li:t==oe?hi:jh;return n(e)}function Gu(e){if(!e)return 0===e?e:0;if(e=Ku(e),e===L||e===-L){var t=e<0?-1:1;return t*F}return e===e?e:0}function Zu(e){var t=Gu(e),n=t%1;return t===t?n?t-n:t:0}function Xu(e){return e?gr(Zu(e),0,$):0}function Ku(e){if("number"==typeof e)return e;if($u(e))return R;if(ku(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ku(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zn(e);var n=Ze.test(e);return n||Ke.test(e)?rn(e.slice(2),n?2:8):Ge.test(e)?R:+e}function Yu(e){return os(e,Ch(e))}function Ju(e){return e?gr(Zu(e),-B,B):0===e?e:0}function Qu(e){return null==e?"":zo(e)}var eh=cs((function(e,t){if(pa(t)||uu(t))os(t,wh(t),e);else for(var n in t)ht.call(t,n)&&cr(e,n,t[n])})),th=cs((function(e,t){os(t,Ch(t),e)})),nh=cs((function(e,t,n,i){os(t,Ch(t),e,i)})),ih=cs((function(e,t,n,i){os(t,wh(t),e,i)})),rh=Rs(mr);function oh(e,t){var n=ki(e);return null==t?n:dr(n,t)}var sh=xo((function(e,t){e=nt(e);var n=-1,i=t.length,o=i>2?t[2]:r;o&&aa(t[0],t[1],o)&&(i=1);while(++n<i){var s=t[n],a=Ch(s),l=-1,c=a.length;while(++l<c){var u=a[l],h=e[u];(h===r||ru(h,lt[u])&&!ht.call(e,u))&&(e[u]=s[u])}}return e})),ah=xo((function(e){return e.push(r,Ps),_n(Th,r,e)}));function lh(e,t){return Ln(e,qs(t,3),Ir)}function ch(e,t){return Ln(e,qs(t,3),Dr)}function uh(e,t){return null==e?e:Ar(e,qs(t,3),Ch)}function hh(e,t){return null==e?e:Or(e,qs(t,3),Ch)}function dh(e,t){return e&&Ir(e,qs(t,3))}function ph(e,t){return e&&Dr(e,qs(t,3))}function fh(e){return null==e?[]:Pr(e,wh(e))}function mh(e){return null==e?[]:Pr(e,Ch(e))}function gh(e,t,n){var i=null==e?r:zr(e,t);return i===r?n:i}function vh(e,t){return null!=e&&ea(e,t,Rr)}function yh(e,t){return null!=e&&ea(e,t,$r)}var _h=bs((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ft.call(t)),e[t]=n}),Ed(Od)),bh=bs((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ft.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),qs),xh=xo(Ur);function wh(e){return uu(e)?rr(e):no(e)}function Ch(e){return uu(e)?rr(e,!0):io(e)}function kh(e,t){var n={};return t=qs(t,3),Ir(e,(function(e,i,r){fr(n,t(e,i,r),e)})),n}function Sh(e,t){var n={};return t=qs(t,3),Ir(e,(function(e,i,r){fr(n,i,t(e,i,r))})),n}var Eh=cs((function(e,t,n){lo(e,t,n)})),Th=cs((function(e,t,n,i){lo(e,t,n,i)})),Mh=Rs((function(e,t){var n={};if(null==e)return n;var i=!1;t=Tn(t,(function(t){return t=qo(t,e),i||(i=t.length>1),t})),os(e,Ns(e),n),i&&(n=vr(n,p|f|m,zs));var r=t.length;while(r--)Bo(n,t[r]);return n}));function Ah(e,t){return Ih(e,jc(qs(t)))}var Oh=Rs((function(e,t){return null==e?{}:po(e,t)}));function Ih(e,t){if(null==e)return{};var n=Tn(Ns(e),(function(e){return[e]}));return t=qs(t),fo(e,n,(function(e,n){return t(e,n[0])}))}function Dh(e,t,n){t=qo(t,e);var i=-1,o=t.length;o||(o=1,e=r);while(++i<o){var s=null==e?r:e[Ia(t[i])];s===r&&(i=o,s=n),e=xu(s)?s.call(e):s}return e}function Ph(e,t,n){return null==e?e:ko(e,t,n)}function zh(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:ko(e,t,n,i)}var Lh=Os(wh),Bh=Os(Ch);function Fh(e,t,n){var i=lu(e),r=i||pu(e)||Nu(e);if(t=qs(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:ku(e)&&xu(o)?ki(wt(e)):{}}return(r?xn:Ir)(e,(function(e,i,r){return t(n,e,i,r)})),n}function Rh(e,t){return null==e||Bo(e,t)}function $h(e,t,n){return null==e?e:Fo(e,t,Uo(n))}function Nh(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:Fo(e,t,Uo(n),i)}function jh(e){return null==e?[]:Kn(e,wh(e))}function Vh(e){return null==e?[]:Kn(e,Ch(e))}function Uh(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=Ku(n),n=n===n?n:0),t!==r&&(t=Ku(t),t=t===t?t:0),gr(Ku(e),t,n)}function qh(e,t,n){return t=Gu(t),n===r?(n=t,t=0):n=Gu(n),e=Ku(e),Nr(e,t,n)}function Hh(e,t,n){if(n&&"boolean"!=typeof n&&aa(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Gu(e),t===r?(t=e,e=0):t=Gu(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var o=Wt();return jt(e+o*(t-e+nn("1e-"+((o+"").length-1))),t)}return yo(e,t)}var Wh=fs((function(e,t,n){return t=t.toLowerCase(),e+(n?Gh(t):t)}));function Gh(e){return bd(Qu(e).toLowerCase())}function Zh(e){return e=Qu(e),e&&e.replace(Je,ti).replace(Ut,"")}function Xh(e,t,n){e=Qu(e),t=zo(t);var i=e.length;n=n===r?i:gr(Zu(n),0,i);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function Kh(e){return e=Qu(e),e&&Me.test(e)?e.replace(Ee,ni):e}function Yh(e){return e=Qu(e),e&&Be.test(e)?e.replace(Le,"\\$&"):e}var Jh=fs((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qh=fs((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ed=ps("toLowerCase");function td(e,t,n){e=Qu(e),t=Zu(t);var i=t?mi(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Cs(zt(r),n)+e+Cs(Pt(r),n)}function nd(e,t,n){e=Qu(e),t=Zu(t);var i=t?mi(e):0;return t&&i<t?e+Cs(t-i,n):e}function id(e,t,n){e=Qu(e),t=Zu(t);var i=t?mi(e):0;return t&&i<t?Cs(t-i,n)+e:e}function rd(e,t,n){return n||null==t?t=0:t&&(t=+t),Ht(Qu(e).replace(Fe,""),t||0)}function od(e,t,n){return t=(n?aa(e,t,n):t===r)?1:Zu(t),bo(Qu(e),t)}function sd(){var e=arguments,t=Qu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ad=fs((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function ld(e,t,n){return n&&"number"!=typeof n&&aa(e,t,n)&&(t=n=r),n=n===r?$:n>>>0,n?(e=Qu(e),e&&("string"==typeof t||null!=t&&!Lu(t))&&(t=zo(t),!t&&oi(e))?Wo(gi(e),0,n):e.split(t,n)):[]}var cd=fs((function(e,t,n){return e+(n?" ":"")+bd(t)}));function ud(e,t,n){return e=Qu(e),n=null==n?0:gr(Zu(n),0,e.length),t=zo(t),e.slice(n,n+t.length)==t}function hd(e,t,n){var i=wi.templateSettings;n&&aa(e,t,n)&&(t=r),e=Qu(e),t=nh({},t,i,Ds);var o,s,a=nh({},t.imports,i.imports,Ds),l=wh(a),u=Kn(a,l),h=0,d=t.interpolate||Qe,p="__p += '",f=it((t.escape||Qe).source+"|"+d.source+"|"+(d===Ie?He:Qe).source+"|"+(t.evaluate||Qe).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";e.replace(f,(function(t,n,i,r,a,l){return i||(i=r),p+=e.slice(h,l).replace(et,ii),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),h=l+t.length,t})),p+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if(Ue.test(g))throw new Re(c)}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(we,""):p).replace(Ce,"$1").replace(ke,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=wd((function(){return Ve(l,m+"return "+p).apply(r,u)}));if(v.source=p,_u(v))throw v;return v}function dd(e){return Qu(e).toLowerCase()}function pd(e){return Qu(e).toUpperCase()}function fd(e,t,n){if(e=Qu(e),e&&(n||t===r))return Zn(e);if(!e||!(t=zo(t)))return e;var i=gi(e),o=gi(t),s=Jn(i,o),a=Qn(i,o)+1;return Wo(i,s,a).join("")}function md(e,t,n){if(e=Qu(e),e&&(n||t===r))return e.slice(0,vi(e)+1);if(!e||!(t=zo(t)))return e;var i=gi(e),o=Qn(i,gi(t))+1;return Wo(i,0,o).join("")}function gd(e,t,n){if(e=Qu(e),e&&(n||t===r))return e.replace(Fe,"");if(!e||!(t=zo(t)))return e;var i=gi(e),o=Jn(i,gi(t));return Wo(i,o).join("")}function vd(e,t){var n=M,i=A;if(ku(t)){var o="separator"in t?t.separator:o;n="length"in t?Zu(t.length):n,i="omission"in t?zo(t.omission):i}e=Qu(e);var s=e.length;if(oi(e)){var a=gi(e);s=a.length}if(n>=s)return e;var l=n-mi(i);if(l<1)return i;var c=a?Wo(a,0,l).join(""):e.slice(0,l);if(o===r)return c+i;if(a&&(l+=c.length-l),Lu(o)){if(e.slice(l).search(o)){var u,h=c;o.global||(o=it(o.source,Qu(We.exec(o))+"g")),o.lastIndex=0;while(u=o.exec(h))var d=u.index;c=c.slice(0,d===r?l:d)}}else if(e.indexOf(zo(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+i}function yd(e){return e=Qu(e),e&&Te.test(e)?e.replace(Se,yi):e}var _d=fs((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),bd=ps("toUpperCase");function xd(e,t,n){return e=Qu(e),t=n?r:t,t===r?si(e)?xi(e):zn(e):e.match(t)||[]}var wd=xo((function(e,t){try{return _n(e,r,t)}catch(n){return _u(n)?n:new Re(n)}})),Cd=Rs((function(e,t){return xn(t,(function(t){t=Ia(t),fr(e,t,Dc(e[t],e))})),e}));function kd(e){var t=null==e?0:e.length,n=qs();return e=t?Tn(e,(function(e){if("function"!=typeof e[1])throw new ot(l);return[n(e[0]),e[1]]})):[],xo((function(n){var i=-1;while(++i<t){var r=e[i];if(_n(r[0],this,n))return _n(r[1],this,n)}}))}function Sd(e){return yr(vr(e,p))}function Ed(e){return function(){return e}}function Td(e,t){return null==e||e!==e?t:e}var Md=ys(),Ad=ys(!0);function Od(e){return e}function Id(e){return to("function"==typeof e?e:vr(e,p))}function Dd(e){return so(vr(e,p))}function Pd(e,t){return ao(e,vr(t,p))}var zd=xo((function(e,t){return function(n){return Ur(n,e,t)}})),Ld=xo((function(e,t){return function(n){return Ur(e,n,t)}}));function Bd(e,t,n){var i=wh(t),r=Pr(t,i);null!=n||ku(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=Pr(t,wh(t)));var o=!(ku(n)&&"chain"in n)||!!n.chain,s=xu(e);return xn(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=rs(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Mn([this.value()],arguments))})})),e}function Fd(){return an._===this&&(an._=gt),this}function Rd(){}function $d(e){return e=Zu(e),xo((function(t){return uo(t,e)}))}var Nd=ws(Tn),jd=ws(Cn),Vd=ws(In);function Ud(e){return la(e)?jn(Ia(e)):mo(e)}function qd(e){return function(t){return null==e?r:zr(e,t)}}var Hd=Ss(),Wd=Ss(!0);function Gd(){return[]}function Zd(){return!1}function Xd(){return{}}function Kd(){return""}function Yd(){return!0}function Jd(e,t){if(e=Zu(e),e<1||e>B)return[];var n=$,i=jt(e,$);t=qs(t),e-=$;var r=Wn(i,t);while(++n<e)t(n);return r}function Qd(e){return lu(e)?Tn(e,Ia):$u(e)?[e]:rs(Oa(Qu(e)))}function ep(e){var t=++dt;return Qu(e)+t}var tp=xs((function(e,t){return e+t}),0),np=Ms("ceil"),ip=xs((function(e,t){return e/t}),1),rp=Ms("floor");function op(e){return e&&e.length?Sr(e,Od,Fr):r}function sp(e,t){return e&&e.length?Sr(e,qs(t,2),Fr):r}function ap(e){return Nn(e,Od)}function lp(e,t){return Nn(e,qs(t,2))}function cp(e){return e&&e.length?Sr(e,Od,ro):r}function up(e,t){return e&&e.length?Sr(e,qs(t,2),ro):r}var hp=xs((function(e,t){return e*t}),1),dp=Ms("round"),pp=xs((function(e,t){return e-t}),0);function fp(e){return e&&e.length?Hn(e,Od):0}function mp(e,t){return e&&e.length?Hn(e,qs(t,2)):0}return wi.after=Ac,wi.ary=Oc,wi.assign=eh,wi.assignIn=th,wi.assignInWith=nh,wi.assignWith=ih,wi.at=rh,wi.before=Ic,wi.bind=Dc,wi.bindAll=Cd,wi.bindKey=Pc,wi.castArray=Jc,wi.chain=Hl,wi.chunk=La,wi.compact=Ba,wi.concat=Fa,wi.cond=kd,wi.conforms=Sd,wi.constant=Ed,wi.countBy=nc,wi.create=oh,wi.curry=zc,wi.curryRight=Lc,wi.debounce=Bc,wi.defaults=sh,wi.defaultsDeep=ah,wi.defer=Fc,wi.delay=Rc,wi.difference=Ra,wi.differenceBy=$a,wi.differenceWith=Na,wi.drop=ja,wi.dropRight=Va,wi.dropRightWhile=Ua,wi.dropWhile=qa,wi.fill=Ha,wi.filter=rc,wi.flatMap=ac,wi.flatMapDeep=lc,wi.flatMapDepth=cc,wi.flatten=Za,wi.flattenDeep=Xa,wi.flattenDepth=Ka,wi.flip=$c,wi.flow=Md,wi.flowRight=Ad,wi.fromPairs=Ya,wi.functions=fh,wi.functionsIn=mh,wi.groupBy=dc,wi.initial=el,wi.intersection=tl,wi.intersectionBy=nl,wi.intersectionWith=il,wi.invert=_h,wi.invertBy=bh,wi.invokeMap=fc,wi.iteratee=Id,wi.keyBy=mc,wi.keys=wh,wi.keysIn=Ch,wi.map=gc,wi.mapKeys=kh,wi.mapValues=Sh,wi.matches=Dd,wi.matchesProperty=Pd,wi.memoize=Nc,wi.merge=Eh,wi.mergeWith=Th,wi.method=zd,wi.methodOf=Ld,wi.mixin=Bd,wi.negate=jc,wi.nthArg=$d,wi.omit=Mh,wi.omitBy=Ah,wi.once=Vc,wi.orderBy=vc,wi.over=Nd,wi.overArgs=Uc,wi.overEvery=jd,wi.overSome=Vd,wi.partial=qc,wi.partialRight=Hc,wi.partition=yc,wi.pick=Oh,wi.pickBy=Ih,wi.property=Ud,wi.propertyOf=qd,wi.pull=ll,wi.pullAll=cl,wi.pullAllBy=ul,wi.pullAllWith=hl,wi.pullAt=dl,wi.range=Hd,wi.rangeRight=Wd,wi.rearg=Wc,wi.reject=xc,wi.remove=pl,wi.rest=Gc,wi.reverse=fl,wi.sampleSize=Cc,wi.set=Ph,wi.setWith=zh,wi.shuffle=kc,wi.slice=ml,wi.sortBy=Tc,wi.sortedUniq=wl,wi.sortedUniqBy=Cl,wi.split=ld,wi.spread=Zc,wi.tail=kl,wi.take=Sl,wi.takeRight=El,wi.takeRightWhile=Tl,wi.takeWhile=Ml,wi.tap=Wl,wi.throttle=Xc,wi.thru=Gl,wi.toArray=Wu,wi.toPairs=Lh,wi.toPairsIn=Bh,wi.toPath=Qd,wi.toPlainObject=Yu,wi.transform=Fh,wi.unary=Kc,wi.union=Al,wi.unionBy=Ol,wi.unionWith=Il,wi.uniq=Dl,wi.uniqBy=Pl,wi.uniqWith=zl,wi.unset=Rh,wi.unzip=Ll,wi.unzipWith=Bl,wi.update=$h,wi.updateWith=Nh,wi.values=jh,wi.valuesIn=Vh,wi.without=Fl,wi.words=xd,wi.wrap=Yc,wi.xor=Rl,wi.xorBy=$l,wi.xorWith=Nl,wi.zip=jl,wi.zipObject=Vl,wi.zipObjectDeep=Ul,wi.zipWith=ql,wi.entries=Lh,wi.entriesIn=Bh,wi.extend=th,wi.extendWith=nh,Bd(wi,wi),wi.add=tp,wi.attempt=wd,wi.camelCase=Wh,wi.capitalize=Gh,wi.ceil=np,wi.clamp=Uh,wi.clone=Qc,wi.cloneDeep=tu,wi.cloneDeepWith=nu,wi.cloneWith=eu,wi.conformsTo=iu,wi.deburr=Zh,wi.defaultTo=Td,wi.divide=ip,wi.endsWith=Xh,wi.eq=ru,wi.escape=Kh,wi.escapeRegExp=Yh,wi.every=ic,wi.find=oc,wi.findIndex=Wa,wi.findKey=lh,wi.findLast=sc,wi.findLastIndex=Ga,wi.findLastKey=ch,wi.floor=rp,wi.forEach=uc,wi.forEachRight=hc,wi.forIn=uh,wi.forInRight=hh,wi.forOwn=dh,wi.forOwnRight=ph,wi.get=gh,wi.gt=ou,wi.gte=su,wi.has=vh,wi.hasIn=yh,wi.head=Ja,wi.identity=Od,wi.includes=pc,wi.indexOf=Qa,wi.inRange=qh,wi.invoke=xh,wi.isArguments=au,wi.isArray=lu,wi.isArrayBuffer=cu,wi.isArrayLike=uu,wi.isArrayLikeObject=hu,wi.isBoolean=du,wi.isBuffer=pu,wi.isDate=fu,wi.isElement=mu,wi.isEmpty=gu,wi.isEqual=vu,wi.isEqualWith=yu,wi.isError=_u,wi.isFinite=bu,wi.isFunction=xu,wi.isInteger=wu,wi.isLength=Cu,wi.isMap=Eu,wi.isMatch=Tu,wi.isMatchWith=Mu,wi.isNaN=Au,wi.isNative=Ou,wi.isNil=Du,wi.isNull=Iu,wi.isNumber=Pu,wi.isObject=ku,wi.isObjectLike=Su,wi.isPlainObject=zu,wi.isRegExp=Lu,wi.isSafeInteger=Bu,wi.isSet=Fu,wi.isString=Ru,wi.isSymbol=$u,wi.isTypedArray=Nu,wi.isUndefined=ju,wi.isWeakMap=Vu,wi.isWeakSet=Uu,wi.join=rl,wi.kebabCase=Jh,wi.last=ol,wi.lastIndexOf=sl,wi.lowerCase=Qh,wi.lowerFirst=ed,wi.lt=qu,wi.lte=Hu,wi.max=op,wi.maxBy=sp,wi.mean=ap,wi.meanBy=lp,wi.min=cp,wi.minBy=up,wi.stubArray=Gd,wi.stubFalse=Zd,wi.stubObject=Xd,wi.stubString=Kd,wi.stubTrue=Yd,wi.multiply=hp,wi.nth=al,wi.noConflict=Fd,wi.noop=Rd,wi.now=Mc,wi.pad=td,wi.padEnd=nd,wi.padStart=id,wi.parseInt=rd,wi.random=Hh,wi.reduce=_c,wi.reduceRight=bc,wi.repeat=od,wi.replace=sd,wi.result=Dh,wi.round=dp,wi.runInContext=e,wi.sample=wc,wi.size=Sc,wi.snakeCase=ad,wi.some=Ec,wi.sortedIndex=gl,wi.sortedIndexBy=vl,wi.sortedIndexOf=yl,wi.sortedLastIndex=_l,wi.sortedLastIndexBy=bl,wi.sortedLastIndexOf=xl,wi.startCase=cd,wi.startsWith=ud,wi.subtract=pp,wi.sum=fp,wi.sumBy=mp,wi.template=hd,wi.times=Jd,wi.toFinite=Gu,wi.toInteger=Zu,wi.toLength=Xu,wi.toLower=dd,wi.toNumber=Ku,wi.toSafeInteger=Ju,wi.toString=Qu,wi.toUpper=pd,wi.trim=fd,wi.trimEnd=md,wi.trimStart=gd,wi.truncate=vd,wi.unescape=yd,wi.uniqueId=ep,wi.upperCase=_d,wi.upperFirst=bd,wi.each=uc,wi.eachRight=hc,wi.first=Ja,Bd(wi,function(){var e={};return Ir(wi,(function(t,n){ht.call(wi.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),wi.VERSION=o,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){wi[e].placeholder=wi})),xn(["drop","take"],(function(e,t){Ti.prototype[e]=function(n){n=n===r?1:Nt(Zu(n),0);var i=this.__filtered__&&!t?new Ti(this):this.clone();return i.__filtered__?i.__takeCount__=jt(n,i.__takeCount__):i.__views__.push({size:jt(n,$),type:e+(i.__dir__<0?"Right":"")}),i},Ti.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xn(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==D||n==z;Ti.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:qs(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),xn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Ti.prototype[e]=function(){return this[n](1).value()[0]}})),xn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Ti.prototype[e]=function(){return this.__filtered__?new Ti(this):this[n](1)}})),Ti.prototype.compact=function(){return this.filter(Od)},Ti.prototype.find=function(e){return this.filter(e).head()},Ti.prototype.findLast=function(e){return this.reverse().find(e)},Ti.prototype.invokeMap=xo((function(e,t){return"function"==typeof e?new Ti(this):this.map((function(n){return Ur(n,e,t)}))})),Ti.prototype.reject=function(e){return this.filter(jc(qs(e)))},Ti.prototype.slice=function(e,t){e=Zu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Ti(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=Zu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Ti.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ti.prototype.toArray=function(){return this.take($)},Ir(Ti.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=wi[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(wi.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof Ti,c=a[0],u=l||lu(t),h=function(e){var t=o.apply(wi,Mn([e],a));return i&&d?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=s&&!d,m=l&&!p;if(!s&&u){t=m?t:new Ti(this);var g=e.apply(t,a);return g.__actions__.push({func:Gl,args:[h],thisArg:r}),new Ei(g,d)}return f&&m?e.apply(this,a):(g=this.thru(h),f?i?g.value()[0]:g.value():g)})})),xn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=st[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);wi.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(lu(r)?r:[],e)}return this[n]((function(n){return t.apply(lu(n)?n:[],e)}))}})),Ir(Ti.prototype,(function(e,t){var n=wi[t];if(n){var i=n.name+"";ht.call(cn,i)||(cn[i]=[]),cn[i].push({name:t,func:n})}})),cn[_s(r,_).name]=[{name:"wrapper",func:r}],Ti.prototype.clone=Mi,Ti.prototype.reverse=Ai,Ti.prototype.value=Oi,wi.prototype.at=Zl,wi.prototype.chain=Xl,wi.prototype.commit=Kl,wi.prototype.next=Yl,wi.prototype.plant=Ql,wi.prototype.reverse=ec,wi.prototype.toJSON=wi.prototype.valueOf=wi.prototype.value=tc,wi.prototype.first=wi.prototype.head,Tt&&(wi.prototype[Tt]=Jl),wi},Ci=wi();an._=Ci,i=function(){return Ci}.call(t,n,t,e),i===r||(e.exports=i)}.call(this)},6416:function(e){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e,t,n;function i(i,r){if(e)if(t){var o="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk); self.onerror = null;",s={};e(s),n=r(s),"undefined"!==typeof window&&window&&window.URL&&window.URL.createObjectURL&&(n.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else t=r;else e=r}i(["exports"],(function(e){var t="undefined"!=typeof self?self:{},n="2.15.0";let i;const r={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==i){const e=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{i=null!={NODE_ENV:"production",VUE_APP_KOLLEKTIV_APP_HOST:"wos.afeefa.de",BASE_URL:"/vue/"}.API_URL_REGEX?new RegExp({NODE_ENV:"production",VUE_APP_KOLLEKTIV_APP_HOST:"wos.afeefa.de",BASE_URL:"/vue/"}.API_URL_REGEX):e}catch(t){i=e}}return i},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!r.API_URL)return null;try{const e=new URL(r.API_URL);return"api.mapbox.cn"===e.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===e.hostname?"https://events.mapbox.com/events/v2":null}catch(e){return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},o={supported:!1,testSupport:function(e){!l&&a&&(c?u(e):s=e)}};let s,a,l=!1,c=!1;function u(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a),e.isContextLost())return;o.supported=!0}catch(e){}e.deleteTexture(t),l=!0}t.document&&(a=t.document.createElement("img"),a.onload=function(){s&&u(s),s=null,c=!0},a.onerror=function(){l=!0,s=null},a.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const h="01";function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p=f;function f(e,t,n,i){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*(i-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=t,this.p2x=n,this.p2y=i}f.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,t){if(void 0===t&&(t=1e-6),e<0)return 0;if(e>1)return 1;for(var n=e,i=0;i<8;i++){var r=this.sampleCurveX(n)-e;if(Math.abs(r)<t)return n;var o=this.sampleCurveDerivativeX(n);if(Math.abs(o)<1e-6)break;n-=r/o}var s=0,a=1;for(n=e,i=0;i<20&&(r=this.sampleCurveX(n),!(Math.abs(r-e)<t));i++)e>r?s=n:a=n,n=.5*(a-s)+s;return n},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}};var m=d(p),g=v;function v(e,t){this.x=e,this.y=t}v.prototype={clone:function(){return new v(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)},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[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,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),i=n*this.x+t*this.y;return this.x=t*this.x-n*this.y,this.y=i,this},_rotateAround:function(e,t){var n=Math.cos(e),i=Math.sin(e),r=t.y+i*(this.x-t.x)+n*(this.y-t.y);return this.x=t.x+n*(this.x-t.x)-i*(this.y-t.y),this.y=r,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},v.convert=function(e){return e instanceof v?e:Array.isArray(e)?new v(e[0],e[1]):e};var y=d(g);const _=Math.PI/180,b=180/Math.PI;function x(e){return e*_}function w(e){return e*b}const C=[[0,0],[1,0],[1,1],[0,1]];function k(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function S(e,t,n,i){const r=new m(e,t,n,i);return function(e){return r.solve(e)}}const E=S(.25,.1,.25,1);function T(e,t,n){return Math.min(n,Math.max(t,e))}function M(e,t,n){return(n=T((n-e)/(t-e),0,1))*n*(3-2*n)}function A(e,t,n){const i=n-t,r=((e-t)%i+i)%i+t;return r===t?n:r}function O(e,t,n){if(!e.length)return n(null,[]);let i=e.length;const r=new Array(e.length);let o=null;e.forEach(((e,s)=>{t(e,((e,t)=>{e&&(o=e),r[s]=t,0==--i&&n(o,r)}))}))}function I(e){const t=[];for(const n in e)t.push(e[n]);return t}function D(e,...t){for(const n of t)for(const t in n)e[t]=n[t];return e}let P=1;function z(){return P++}function L(){return function e(t){return t?(t^Math.random()*(16>>t/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function B(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function F(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 R(e,t){e.forEach((e=>{t[e]&&(t[e]=t[e].bind(t))}))}function $(e,t){return-1!==e.indexOf(t,e.length-t.length)}function N(e,t,n){const i={};for(const r in e)i[r]=t.call(n||this,e[r],r,e);return i}function j(e,t,n){const i={};for(const r in e)t.call(n||this,e[r],r,e)&&(i[r]=e[r]);return i}function V(e){return Array.isArray(e)?e.map(V):"object"==typeof e&&e?N(e,V):e}const U={};function q(e){U[e]||("undefined"!=typeof console&&console.warn(e),U[e]=!0)}function H(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function W(e){let t=0;for(let n,i,r=0,o=e.length,s=o-1;r<o;s=r++)n=e[r],i=e[s],t+=(i.x-n.x)*(n.y+i.y);return t}function G(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function Z(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((e,n,i,r)=>{const o=i||r;return t[n]=!o||o.toLowerCase(),""})),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let X=null;function K(e){if(null==X){const t=e.navigator?e.navigator.userAgent:null;X=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return X}function Y(e){try{const n=t[e];return n.setItem("_mapbox_test_",1),n.removeItem("_mapbox_test_"),!0}catch(e){return!1}}function J(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]}const Q="mapbox-tiles";let ee,te,ne=500,ie=50;function re(){try{return t.caches}catch(e){}}function oe(){re()&&!ee&&(ee=t.caches.open(Q))}function se(e){const t=e.indexOf("?");if(t<0)return e;const n=function(e){const t=e.indexOf("?");return t>0?e.slice(t+1).split("&"):[]}(e),i=n.filter((e=>{const t=e.split("=");return"language"===t[0]||"worldview"===t[0]}));return i.length?`${e.slice(0,t)}?${i.join("&")}`:e.slice(0,t)}let ae=1/0;const le={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(le);class ce extends Error{constructor(e,t,n){401===t&&be(n)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=n}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const ue=G()?()=>self.worker&&self.worker.referrer:()=>("blob:"===t.location.protocol?t.parent:t).location.href,he=function(e,n){if(!(/^file:/.test(i=e.url)||/^file:/.test(ue())&&!/^\w+:/.test(i))){if(t.fetch&&t.Request&&t.AbortController&&t.Request.prototype.hasOwnProperty("signal"))return function(e,n){const i=new t.AbortController,r=new t.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:ue(),referrerPolicy:e.referrerPolicy,signal:i.signal});let o=!1,s=!1;const a=(l=r.url).indexOf("sku=")>0&&be(l);var l;"json"===e.type&&r.headers.set("Accept","application/json");const c=(i,o,l)=>{if(s)return;if(i&&"SecurityError"!==i.message&&q(i.toString()),o&&l)return u(o);const c=Date.now();t.fetch(r).then((t=>{if(t.ok){const e=a?t.clone():null;return u(t,e,c)}return n(new ce(t.statusText,t.status,e.url))})).catch((t=>{"AbortError"!==t.name&&n(new Error(`${t.message} ${e.url}`))}))},u=(i,a,l)=>{("arrayBuffer"===e.type?i.arrayBuffer():"json"===e.type?i.json():i.text()).then((e=>{s||(a&&l&&function(e,n,i){if(oe(),!ee)return;const r={status:n.status,statusText:n.statusText,headers:new t.Headers};n.headers.forEach(((e,t)=>r.headers.set(t,e)));const o=Z(n.headers.get("Cache-Control")||"");if(o["no-store"])return;o["max-age"]&&r.headers.set("Expires",new Date(i+1e3*o["max-age"]).toUTCString());const s=r.headers.get("Expires");s&&(new Date(s).getTime()-i<42e4||function(e,t){if(void 0===te)try{new Response(new ReadableStream),te=!0}catch(e){te=!1}te?t(e.body):e.blob().then(t)}(n,(n=>{const i=new t.Response(n,r);oe(),ee&&ee.then((t=>t.put(se(e.url),i))).catch((e=>q(e.message)))})))}(r,a,l),o=!0,n(null,e,i.headers.get("Cache-Control"),i.headers.get("Expires")))})).catch((e=>{s||n(new Error(e.message))}))};return a?function(e,t){if(oe(),!ee)return t(null);const n=se(e.url);ee.then((e=>{e.match(n).then((i=>{const r=function(e){if(!e)return!1;const t=new Date(e.headers.get("Expires")||0),n=Z(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(i);e.delete(n),r&&e.put(n,i.clone()),t(null,i,r)})).catch(t)})).catch(t)}(r,c):c(null,null),{cancel:()=>{s=!0,o||i.abort()}}}(e,n);if(G()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,n,void 0,!0)}var i;return function(e,n){const i=new t.XMLHttpRequest;i.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(i.responseType="arraybuffer");for(const t in e.headers)i.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(i.responseType="text",i.setRequestHeader("Accept","application/json")),i.withCredentials="include"===e.credentials,i.onerror=()=>{n(new Error(i.statusText))},i.onload=()=>{if((i.status>=200&&i.status<300||0===i.status)&&null!==i.response){let t=i.response;if("json"===e.type)try{t=JSON.parse(i.response)}catch(e){return n(e)}n(null,t,i.getResponseHeader("Cache-Control"),i.getResponseHeader("Expires"))}else n(new ce(i.statusText,i.status,e.url))},i.send(e.body),{cancel:()=>i.abort()}}(e,n)},de=function(e,t){return he(D(e,{type:"arrayBuffer"}),t)};function pe(e){const n=t.document.createElement("a");return n.href=e,n.protocol===t.document.location.protocol&&n.host===t.document.location.host}const fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let me,ge;me=[],ge=0;const ve=function(e,n){if(o.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),ge>=r.MAX_PARALLEL_IMAGE_REQUESTS){const t={requestParameters:e,callback:n,cancelled:!1,cancel(){this.cancelled=!0}};return me.push(t),t}ge++;let i=!1;const s=()=>{if(!i)for(i=!0,ge--;me.length&&ge<r.MAX_PARALLEL_IMAGE_REQUESTS;){const e=me.shift(),{requestParameters:t,callback:n,cancelled:i}=e;i||(e.cancel=ve(t,n).cancel)}},a=de(e,((e,i,r,o)=>{s(),e?n(e):i&&(t.createImageBitmap?function(e,n){const i=new t.Blob([new Uint8Array(e)],{type:"image/png"});t.createImageBitmap(i).then((e=>{n(null,e)})).catch((e=>{n(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))}))}(i,((e,t)=>n(e,t,r,o))):function(e,n){const i=new t.Image,r=t.URL;i.onload=()=>{n(null,i),r.revokeObjectURL(i.src),i.onload=null,t.requestAnimationFrame((()=>{i.src=fe}))},i.onerror=()=>n(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const o=new t.Blob([new Uint8Array(e)],{type:"image/png"});i.src=e.byteLength?r.createObjectURL(o):fe}(i,((e,t)=>n(e,t,r,o))))}));return{cancel:()=>{a.cancel(),s()}}},ye="NO_ACCESS_TOKEN";function _e(e){return 0===e.indexOf("mapbox:")}function be(e){return r.API_URL_REGEX.test(e)}function xe(e){return r.API_CDN_URL_REGEX.test(e)}function we(e){return r.API_STYLE_REGEX.test(e)&&!Ce(e)}function Ce(e){return r.API_SPRITE_REGEX.test(e)}const ke=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Se(e){const t=e.match(ke);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 Ee(e){const t=e.params.length?`?${e.params.join("&")}`:"";return`${e.protocol}://${e.authority}${e.path}${t}`}const Te="mapbox.eventData";function Me(e){if(!e)return null;const n=e.split(".");if(!n||3!==n.length)return null;try{return JSON.parse(decodeURIComponent(t.atob(n[1]).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join("")))}catch(e){return null}}class Ae{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const n=Me(r.ACCESS_TOKEN);let i="";return i=n&&n.u?t.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(Number("0x"+t))))):r.ACCESS_TOKEN||"",e?`${Te}.${e}:${i}`:`${Te}:${i}`}fetchEventData(){const e=Y("localStorage"),n=this.getStorageKey(),i=this.getStorageKey("uuid");if(e)try{const e=t.localStorage.getItem(n);e&&(this.eventData=JSON.parse(e));const r=t.localStorage.getItem(i);r&&(this.anonId=r)}catch(e){q("Unable to read from LocalStorage")}}saveEventData(){const e=Y("localStorage"),n=this.getStorageKey(),i=this.getStorageKey("uuid");if(e)try{t.localStorage.setItem(i,this.anonId),Object.keys(this.eventData).length>=1&&t.localStorage.setItem(n,JSON.stringify(this.eventData))}catch(e){q("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,t,n,i){if(!r.EVENTS_URL)return;const o=Se(r.EVENTS_URL);o.params.push(`access_token=${i||r.ACCESS_TOKEN||""}`);const s={event:this.type,created:new Date(e).toISOString()},a=t?D(s,t):s,l={url:Ee(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([a])};this.pendingRequest=function(e,t){return he(D(e,{method:"POST"}),t)}(l,(e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(i)}))}queueRequest(e,t){this.queue.push(e),this.processRequests(t)}}const Oe=new class extends Ae{constructor(e){super("appUserTurnstile"),this._customAccessToken=e}postTurnstileEvent(e,t){r.EVENTS_URL&&r.ACCESS_TOKEN&&Array.isArray(e)&&e.some((e=>_e(e)||be(e)))&&this.queueRequest(Date.now(),t)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const t=Me(r.ACCESS_TOKEN),i=t?t.u:r.ACCESS_TOKEN;let o=i!==this.eventData.tokenU;F(this.anonId)||(this.anonId=L(),o=!0);const s=this.queue.shift();if(this.eventData.lastSuccess){const e=new Date(this.eventData.lastSuccess),t=new Date(s),n=(s-this.eventData.lastSuccess)/864e5;o=o||n>=1||n<-1||e.getDate()!==t.getDate()}else o=!0;o?this.postEvent(s,{sdkIdentifier:"mapbox-gl-js",sdkVersion:n,skuId:h,"enabled.telemetry":!1,userId:this.anonId},(e=>{e||(this.eventData.lastSuccess=s,this.eventData.tokenU=i)}),e):this.processRequests()}},Ie=Oe.postTurnstileEvent.bind(Oe),De=new class extends Ae{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(e,t,n,i){this.skuToken=t,this.errorCb=i,r.EVENTS_URL&&(n||r.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},n):this.errorCb(new Error(ye)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:i}=this.queue.shift();t&&this.success[t]||(this.anonId||this.fetchEventData(),F(this.anonId)||(this.anonId=L()),this.postEvent(i,{sdkIdentifier:"mapbox-gl-js",sdkVersion:n,skuId:h,skuToken:this.skuToken,userId:this.anonId},(e=>{e?this.errorCb(e):t&&(this.success[t]=!0)}),e))}},Pe=De.postMapLoadEvent.bind(De),ze=new class extends Ae{constructor(){super("gljs.performance")}postPerformanceEvent(e,t){r.EVENTS_URL&&(e||r.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:t},e)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:i,performanceData:r}=this.queue.shift(),o=function(e){const i=t.performance.getEntriesByType("resource"),r=t.performance.getEntriesByType("mark"),o=function(e){const t={};if(e)for(const n in e)if("other"!==n)for(const i of e[n]){const e=`${n}ResolveRangeMin`,r=`${n}ResolveRangeMax`,o=`${n}RequestCount`,s=`${n}RequestCachedCount`;t[e]=Math.min(t[e]||1/0,i.startTime),t[r]=Math.max(t[r]||-1/0,i.responseEnd);const a=e=>{void 0===t[e]&&(t[e]=0),++t[e]};void 0!==i.transferSize&&0===i.transferSize&&a(s),a(o)}return t}(function(e,t){const n={};if(e)for(const i of e){const e=t(i);void 0===n[e]&&(n[e]=[]),n[e].push(i)}return n}(i,je)),s=t.devicePixelRatio,a=t.navigator.connection||t.navigator.mozConnection||t.navigator.webkitConnection,l={counters:[],metadata:[],attributes:[]},c=(e,t,n)=>{null!=n&&e.push({name:t,value:n.toString()})};for(const t in o)c(l.counters,t,o[t]);if(e.interactionRange[0]!==1/0&&e.interactionRange[1]!==-1/0&&(c(l.counters,"interactionRangeMin",e.interactionRange[0]),c(l.counters,"interactionRangeMax",e.interactionRange[1])),r)for(const t of Object.keys($e)){const e=$e[t],n=r.find((t=>t.name===e));n&&c(l.counters,e,n.startTime)}return c(l.counters,"visibilityHidden",e.visibilityHidden),c(l.attributes,"style",function(e){if(e)for(const t of e){const e=t.name.split("?")[0];if(we(e)){const t=e.split("/").slice(-2);if(2===t.length)return`mapbox://styles/${t[0]}/${t[1]}`}}}(i)),c(l.attributes,"terrainEnabled",e.terrainEnabled?"true":"false"),c(l.attributes,"fogEnabled",e.fogEnabled?"true":"false"),c(l.attributes,"projection",e.projection),c(l.attributes,"zoom",e.zoom),c(l.metadata,"devicePixelRatio",s),c(l.metadata,"connectionEffectiveType",a?a.effectiveType:void 0),c(l.metadata,"navigatorUserAgent",t.navigator.userAgent),c(l.metadata,"screenWidth",t.screen.width),c(l.metadata,"screenHeight",t.screen.height),c(l.metadata,"windowWidth",t.innerWidth),c(l.metadata,"windowHeight",t.innerHeight),c(l.metadata,"mapWidth",e.width/s),c(l.metadata,"mapHeight",e.height/s),c(l.metadata,"webglRenderer",e.renderer),c(l.metadata,"webglVendor",e.vendor),c(l.metadata,"sdkVersion",n),c(l.metadata,"sdkIdentifier","mapbox-gl-js"),l}(r);for(const t of o.metadata);for(const t of o.counters);for(const t of o.attributes);this.postEvent(i,o,(()=>{}),e)}},Le=ze.postPerformanceEvent.bind(ze),Be=new class extends Ae{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(e,t,n,i){if(!r.API_URL||!r.SESSION_PATH)return;const o=Se(r.API_URL+r.SESSION_PATH);o.params.push(`sku=${t||""}`),o.params.push(`access_token=${i||r.ACCESS_TOKEN||""}`);const s={url:Ee(o),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(e,t){return he(D(e,{method:"GET"}),t)}(s,(e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(i)}))}getSessionAPI(e,t,n,i){this.skuToken=t,this.errorCb=i,r.SESSION_PATH&&r.API_URL&&(n||r.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},n):this.errorCb(new Error(ye)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:n}=this.queue.shift();t&&this.success[t]||this.getSession(n,this.skuToken,(e=>{e?this.errorCb(e):t&&(this.success[t]=!0)}),e)}},Fe=Be.getSessionAPI.bind(Be),Re=new Set,$e={create:"create",load:"load",fullLoad:"fullLoad"},Ne={mark(e){t.performance.mark(e)},measure(e,n,i){t.performance.measure(e,n,i)}};function je(e){const t=e.name.split("?")[0];return xe(t)&&t.includes("mapbox-gl.js")?"javascript":xe(t)&&t.includes("mapbox-gl.css")?"css":function(e){return r.API_FONTS_REGEX.test(e)}(t)?"fontRange":Ce(t)?"sprite":we(t)?"style":function(e){return r.API_TILEJSON_REGEX.test(e)}(t)?"tilejson":"other"}const Ve=t.performance;function Ue(e){const t=e?e.url.toString():void 0;return Ve.getEntriesByName(t)}let qe,He,We,Ge;const Ze={now:()=>void 0!==We?We:t.performance.now(),setNow(e){We=e},restoreNow(){We=void 0},frame(e){const n=t.requestAnimationFrame(e);return{cancel:()=>t.cancelAnimationFrame(n)}},getImageData(e,n=0){const{width:i,height:r}=e;Ge||(Ge=t.document.createElement("canvas"));const o=Ge.getContext("2d",{willReadFrequently:!0});if(!o)throw new Error("failed to create canvas 2d context");return(i>Ge.width||r>Ge.height)&&(Ge.width=i,Ge.height=r),o.clearRect(-n,-n,i+2*n,r+2*n),o.drawImage(e,0,0,i,r),o.getImageData(-n,-n,i+2*n,r+2*n)},resolveURL:e=>(qe||(qe=t.document.createElement("a")),qe.href=e,qe.href),get devicePixelRatio(){return t.devicePixelRatio},get prefersReducedMotion(){return!!t.matchMedia&&(null==He&&(He=t.matchMedia("(prefers-reduced-motion: reduce)")),He.matches)}};function Xe(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function Ke(e,t,n){if(n&&n[e]){const i=n[e].indexOf(t);-1!==i&&n[e].splice(i,1)}}class Ye{constructor(e,t={}){D(this,t),this.type=e}}class Je extends Ye{constructor(e,t={}){super("error",D({error:e},t))}}class Qe{on(e,t){return this._listeners=this._listeners||{},Xe(e,t,this._listeners),this}off(e,t){return Ke(e,t,this._listeners),Ke(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},Xe(e,t,this._oneTimeListeners),this):new Promise((t=>this.once(e,t)))}fire(e,t){"string"==typeof e&&(e=new Ye(e,t||{}));const n=e.type;if(this.listens(n)){e.target=this;const t=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const n of t)n.call(this,e);const i=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const o of i)Ke(n,o,this._oneTimeListeners),o.call(this,e);const r=this._eventedParent;r&&(D(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),r.fire(e))}else e instanceof Je&&console.error(e.error);return this}listens(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))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var et=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["fill-extrusion-edge-radius"]},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"requires":["fill-extrusion-edge-radius"],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":false,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function tt(e,...t){for(const n of t)for(const t in n)e[t]=n[t];return e}function nt(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function it(e){if(Array.isArray(e))return e.map(it);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=it(e[n]);return t}return nt(e)}class rt extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}var ot=rt;class st{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[n,i]of t)this.bindings[n]=i}concat(e){return new st(this,e)}get(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.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}var at=st;const lt={kind:"null"},ct={kind:"number"},ut={kind:"string"},ht={kind:"boolean"},dt={kind:"color"},pt={kind:"object"},ft={kind:"value"},mt={kind:"collator"},gt={kind:"formatted"},vt={kind:"resolvedImage"};function yt(e,t){return{kind:"array",itemType:e,N:t}}function _t(e){if("array"===e.kind){const t=_t(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const bt=[lt,ct,ut,ht,dt,gt,pt,yt(ft),vt];function xt(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!xt(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(const e of bt)if(!xt(e,t))return null}return`Expected ${_t(e)} but found ${_t(t)} instead.`}function wt(e,t){return t.some((t=>t.kind===e.kind))}function Ct(e,t){return t.some((t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e))}var kt,St={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Et(e){return(e=Math.round(e))<0?0:e>255?255:e}function Tt(e){return Et("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function Mt(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function At(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}try{kt={}.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in St)return St[n].slice();if("#"===n[0])return 4===n.length?(t=parseInt(n.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===n.length&&(t=parseInt(n.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var i=n.indexOf("("),r=n.indexOf(")");if(-1!==i&&r+1===n.length){var o=n.substr(0,i),s=n.substr(i+1,r-(i+1)).split(","),a=1;switch(o){case"rgba":if(4!==s.length)return null;a=Mt(s.pop());case"rgb":return 3!==s.length?null:[Tt(s[0]),Tt(s[1]),Tt(s[2]),a];case"hsla":if(4!==s.length)return null;a=Mt(s.pop());case"hsl":if(3!==s.length)return null;var l=(parseFloat(s[0])%360+360)%360/360,c=Mt(s[1]),u=Mt(s[2]),h=u<=.5?u*(c+1):u+c-u*c,d=2*u-h;return[Et(255*At(d,h,l+1/3)),Et(255*At(d,h,l)),Et(255*At(d,h,l-1/3)),a];default:return null}}return null}}catch(e){}class Ot{constructor(e,t,n,i=1){this.r=e,this.g=t,this.b=n,this.a=i}static parse(e){if(!e)return;if(e instanceof Ot)return e;if("string"!=typeof e)return;const t=kt(e);return t?new Ot(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,n,i]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${i})`}toArray(){const{r:e,g:t,b:n,a:i}=this;return 0===i?[0,0,0,0]:[255*e/i,255*t/i,255*n/i,i]}toArray01(){const{r:e,g:t,b:n,a:i}=this;return 0===i?[0,0,0,0]:[e/i,t/i,n/i,i]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:n,a:i}=this;return[e,t,n,i]}}Ot.black=new Ot(0,0,0,1),Ot.white=new Ot(1,1,1,1),Ot.transparent=new Ot(0,0,0,0),Ot.red=new Ot(1,0,0,1),Ot.blue=new Ot(0,0,1,1);var It=Ot;class Dt{constructor(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"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Pt{constructor(e,t,n,i,r){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=n,this.fontStack=i,this.textColor=r}}class zt{constructor(e){this.sections=e}static fromString(e){return new zt([new Pt(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((e=>0!==e.text.length||e.image&&0!==e.image.name.length))}static factory(e){return e instanceof zt?e:zt.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map((e=>e.text)).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(n)}return e}}class Lt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Lt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function Bt(e,t,n,i){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===i||"number"==typeof i&&i>=0&&i<=1?null:`Invalid rgba value [${[e,t,n,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof i?[e,t,n,i]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Ft(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof It)return!0;if(e instanceof Dt)return!0;if(e instanceof zt)return!0;if(e instanceof Lt)return!0;if(Array.isArray(e)){for(const t of e)if(!Ft(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!Ft(e[t]))return!1;return!0}return!1}function Rt(e){if(null===e)return lt;if("string"==typeof e)return ut;if("boolean"==typeof e)return ht;if("number"==typeof e)return ct;if(e instanceof It)return dt;if(e instanceof Dt)return mt;if(e instanceof zt)return gt;if(e instanceof Lt)return vt;if(Array.isArray(e)){const t=e.length;let n;for(const i of e){const e=Rt(i);if(n){if(n===e)continue;n=ft;break}n=e}return yt(n||ft,t)}return pt}function $t(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof It||e instanceof zt||e instanceof Lt?e.toString():JSON.stringify(e)}class Nt{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Ft(e[1]))return t.error("invalid value");const n=e[1];let i=Rt(n);const r=t.expectedType;return"array"!==i.kind||0!==i.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(i=r),new Nt(i,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof It?["rgba"].concat(this.value.toArray()):this.value instanceof zt?this.value.serialize():this.value}}var jt=Nt,Vt=class{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}};const Ut={string:ut,number:ct,boolean:ht,object:pt};class qt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n,i=1;const r=e[0];if("array"===r){let r,o;if(e.length>2){const n=e[1];if("string"!=typeof n||!(n in Ut)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);r=Ut[n],i++}else r=ft;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);o=e[2],i++}n=yt(r,o)}else n=Ut[r];const o=[];for(;i<e.length;i++){const n=t.parse(e[i],i,ft);if(!n)return null;o.push(n)}return new qt(n,o)}evaluate(e){for(let t=0;t<this.args.length;t++){const n=this.args[t].evaluate(e);if(!xt(this.type,Rt(n)))return n;if(t===this.args.length-1)throw new Vt(`Expected value to be of type ${_t(this.type)}, but found ${_t(Rt(n))} instead.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);const i=e.N;("number"==typeof i||this.args.length>1)&&t.push(i)}}return t.concat(this.args.map((e=>e.serialize())))}}var Ht=qt;class Wt{constructor(e){this.type=gt,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");const i=[];let r=!1;for(let o=1;o<=e.length-1;++o){const n=e[o];if(r&&"object"==typeof n&&!Array.isArray(n)){r=!1;let e=null;if(n["font-scale"]&&(e=t.parse(n["font-scale"],1,ct),!e))return null;let o=null;if(n["text-font"]&&(o=t.parse(n["text-font"],1,yt(ut)),!o))return null;let s=null;if(n["text-color"]&&(s=t.parse(n["text-color"],1,dt),!s))return null;const a=i[i.length-1];a.scale=e,a.font=o,a.textColor=s}else{const n=t.parse(e[o],1,ft);if(!n)return null;const s=n.type.kind;if("string"!==s&&"value"!==s&&"null"!==s&&"resolvedImage"!==s)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");r=!0,i.push({content:n,scale:null,font:null,textColor:null})}}return new Wt(i)}evaluate(e){return new zt(this.sections.map((t=>{const n=t.content.evaluate(e);return Rt(n)===vt?new Pt("",n,null,null,null):new Pt($t(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class Gt{constructor(e){this.type=vt,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,ut);return n?new Gt(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=Lt.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Zt={"to-boolean":ht,"to-color":dt,"to-number":ct,"to-string":ut};class Xt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");const i=Zt[n],r=[];for(let o=1;o<e.length;o++){const n=t.parse(e[o],o,ft);if(!n)return null;r.push(n)}return new Xt(i,r)}evaluate(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){let t,n;for(const i of this.args){if(t=i.evaluate(e),n=null,t instanceof It)return t;if("string"==typeof t){const n=e.parseColor(t);if(n)return n}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.`:Bt(t[0],t[1],t[2],t[3]),!n))return new It(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new Vt(n||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const n of this.args){if(t=n.evaluate(e),null===t)return 0;const i=Number(t);if(!isNaN(i))return i}throw new Vt(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?zt.fromString($t(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Lt.fromString($t(this.args[0].evaluate(e))):$t(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){if("formatted"===this.type.kind)return new Wt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Gt(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Kt=Xt;const Yt=["Unknown","Point","LineString","Polygon"];var Jt=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Yt[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:n,y:i}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(n*t-e[0])+this.featureDistanceData.bearing[1]*(i*t-e[1])}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=It.parse(e)),t}};class Qt{constructor(e,t,n,i){this.name=e,this.type=t,this._evaluate=n,this.args=i}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map((e=>e.serialize())))}static parse(e,t){const n=e[0],i=Qt.definitions[n];if(!i)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const r=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((([t])=>!Array.isArray(t)||t.length===e.length-1));let a=null;for(const[l,c]of s){a=new Tn(t.registry,t.path,null,t.scope);const i=[];let o=!1;for(let t=1;t<e.length;t++){const n=e[t],r=Array.isArray(l)?l[t-1]:l.type,s=a.parse(n,1+i.length,r);if(!s){o=!0;break}i.push(s)}if(!o)if(Array.isArray(l)&&l.length!==i.length)a.error(`Expected ${l.length} arguments, but found ${i.length} instead.`);else{for(let e=0;e<i.length;e++){const t=Array.isArray(l)?l[e]:l.type,n=i[e];a.concat(e+1).checkSubtype(t,n.type)}if(0===a.errors.length)return new Qt(n,r,c,i)}}if(1===s.length)t.errors.push(...a.errors);else{const n=(s.length?s:o).map((([e])=>{return t=e,Array.isArray(t)?`(${t.map(_t).join(", ")})`:`(${_t(t.type)}...)`;var t})).join(" | "),i=[];for(let r=1;r<e.length;r++){const n=t.parse(e[r],1+i.length);if(!n)return null;i.push(_t(n.type))}t.error(`Expected arguments of type ${n}, but found (${i.join(", ")}) instead.`)}return null}static register(e,t){Qt.definitions=t;for(const n in t)e[n]=Qt}}var en=Qt;class tn{constructor(e,t,n){this.type=mt,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");const n=e[1];if("object"!=typeof n||Array.isArray(n))return t.error("Collator options argument must be an object.");const i=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,ht);if(!i)return null;const r=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,ht);if(!r)return null;let o=null;return n.locale&&(o=t.parse(n.locale,1,ut),!o)?null:new tn(i,r,o)}evaluate(e){return new Dt(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}const nn=8192;function rn(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function on(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function sn(e,t){const n=(180+e[0])/360,i=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,r=Math.pow(2,t.z);return[Math.round(n*r*nn),Math.round(i*r*nn)]}function an(e,t,n){const i=e[0]-t[0],r=e[1]-t[1],o=e[0]-n[0],s=e[1]-n[1];return i*s-o*r==0&&i*o<=0&&r*s<=0}function ln(e,t){let n=!1;for(let s=0,a=t.length;s<a;s++){const a=t[s];for(let t=0,s=a.length;t<s-1;t++){if(an(e,a[t],a[t+1]))return!1;(r=a[t])[1]>(i=e)[1]!=(o=a[t+1])[1]>i[1]&&i[0]<(o[0]-r[0])*(i[1]-r[1])/(o[1]-r[1])+r[0]&&(n=!n)}}var i,r,o;return n}function cn(e,t){for(let n=0;n<t.length;n++)if(ln(e,t[n]))return!0;return!1}function un(e,t,n,i){const r=i[0]-n[0],o=i[1]-n[1],s=(e[0]-n[0])*o-r*(e[1]-n[1]),a=(t[0]-n[0])*o-r*(t[1]-n[1]);return s>0&&a<0||s<0&&a>0}function hn(e,t,n){for(const c of n)for(let n=0;n<c.length-1;++n)if(0!=(a=[(s=c[n+1])[0]-(o=c[n])[0],s[1]-o[1]])[0]*(l=[(r=t)[0]-(i=e)[0],r[1]-i[1]])[1]-a[1]*l[0]&&un(i,r,o,s)&&un(o,s,i,r))return!0;var i,r,o,s,a,l;return!1}function dn(e,t){for(let n=0;n<e.length;++n)if(!ln(e[n],t))return!1;for(let n=0;n<e.length-1;++n)if(hn(e[n],e[n+1],t))return!1;return!0}function pn(e,t){for(let n=0;n<t.length;n++)if(dn(e,t[n]))return!0;return!1}function fn(e,t,n){const i=[];for(let r=0;r<e.length;r++){const o=[];for(let i=0;i<e[r].length;i++){const s=sn(e[r][i],n);rn(t,s),o.push(s)}i.push(o)}return i}function mn(e,t,n){const i=[];for(let r=0;r<e.length;r++){const o=fn(e[r],t,n);i.push(o)}return i}function gn(e,t,n,i){if(e[0]<n[0]||e[0]>n[2]){const t=.5*i;let r=e[0]-n[0]>t?-i:n[0]-e[0]>t?i:0;0===r&&(r=e[0]-n[2]>t?-i:n[2]-e[0]>t?i:0),e[0]+=r}rn(t,e)}function vn(e,t,n,i){const r=Math.pow(2,i.z)*nn,o=[i.x*nn,i.y*nn],s=[];if(!e)return s;for(const a of e)for(const e of a){const i=[e.x+o[0],e.y+o[1]];gn(i,t,n,r),s.push(i)}return s}function yn(e,t,n,i){const r=Math.pow(2,i.z)*nn,o=[i.x*nn,i.y*nn],s=[];if(!e)return s;for(const l of e){const e=[];for(const n of l){const i=[n.x+o[0],n.y+o[1]];rn(t,i),e.push(i)}s.push(e)}if(t[2]-t[0]<=r/2){(a=t)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(const e of s)for(const i of e)gn(i,t,n,r)}var a;return s}class _n{constructor(e,t){this.type=ht,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Ft(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const n=t.features[e].geometry.type;if("Polygon"===n||"MultiPolygon"===n)return new _n(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new _n(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new _n(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const n=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],r=e.canonicalID();if(!r)return!1;if("Polygon"===t.type){const o=fn(t.coordinates,i,r),s=vn(e.geometry(),n,i,r);if(!on(n,i))return!1;for(const e of s)if(!ln(e,o))return!1}if("MultiPolygon"===t.type){const o=mn(t.coordinates,i,r),s=vn(e.geometry(),n,i,r);if(!on(n,i))return!1;for(const e of s)if(!cn(e,o))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const n=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],r=e.canonicalID();if(!r)return!1;if("Polygon"===t.type){const o=fn(t.coordinates,i,r),s=yn(e.geometry(),n,i,r);if(!on(n,i))return!1;for(const e of s)if(!dn(e,o))return!1}if("MultiPolygon"===t.type){const o=mn(t.coordinates,i,r),s=yn(e.geometry(),n,i,r);if(!on(n,i))return!1;for(const e of s)if(!pn(e,o))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var bn=_n;function xn(e){if(e instanceof en){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}if(e instanceof bn)return!1;let t=!0;return e.eachChild((e=>{t&&!xn(e)&&(t=!1)})),t}function wn(e){if(e instanceof en&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!wn(e)&&(t=!1)})),t}function Cn(e,t){if(e instanceof en&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild((e=>{n&&!Cn(e,t)&&(n=!1)})),n}class kn{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new kn(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)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Sn=kn;class En{constructor(e,t=[],n,i=new at,r=[]){this.registry=e,this.path=t,this.key=t.map((e=>`[${e}]`)).join(""),this.scope=i,this.errors=r,this.expectedType=n}parse(e,t,n,i,r={}){return t?this.concat(t,n,i)._parse(e,r):this._parse(e,r)}_parse(e,t){function n(e,t,n){return"assert"===n?new Ht(t,[e]):"coerce"===n?new Kt(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", []].');const i=e[0];if("string"!=typeof i)return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const r=this.registry[i];if(r){let i=r.parse(e,this);if(!i)return null;if(this.expectedType){const e=this.expectedType,r=i.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==r.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==r.kind&&"string"!==r.kind){if(this.checkSubtype(e,r))return null}else i=n(i,e,t.typeAnnotation||"coerce");else i=n(i,e,t.typeAnnotation||"assert")}if(!(i instanceof jt)&&"resolvedImage"!==i.type.kind&&Mn(i)){const t=new Jt;try{i=new jt(i.type,i.evaluate(t))}catch(e){return this.error(e.message),null}}return i}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const i="number"==typeof e?this.path.concat(e):this.path,r=n?this.scope.concat(n):this.scope;return new En(this.registry,i,t||null,r,this.errors)}error(e,...t){const n=`${this.key}${t.map((e=>`[${e}]`)).join("")}`;this.errors.push(new ot(n,e))}checkSubtype(e,t){const n=xt(e,t);return n&&this.error(n),n}}var Tn=En;function Mn(e){if(e instanceof Sn)return Mn(e.boundExpression);if(e instanceof en&&"error"===e.name)return!1;if(e instanceof tn)return!1;if(e instanceof bn)return!1;const t=e instanceof Kt||e instanceof Ht;let n=!0;return e.eachChild((e=>{n=t?n&&Mn(e):n&&e instanceof jt})),!!n&&xn(e)&&Cn(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function An(e,t){const n=e.length-1;let i,r,o=0,s=n,a=0;for(;o<=s;)if(a=Math.floor((o+s)/2),i=e[a],r=e[a+1],i<=t){if(a===n||t<r)return a;o=a+1}else{if(!(i>t))throw new Vt("Input is not a number.");s=a-1}return 0}class On{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[i,r]of n)this.labels.push(i),this.outputs.push(r)}static parse(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.");const n=t.parse(e[1],1,ct);if(!n)return null;const i=[];let r=null;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(let o=1;o<e.length;o+=2){const n=1===o?-1/0:e[o],s=e[o+1],a=o,l=o+1;if("number"!=typeof n)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',a);if(i.length&&i[i.length-1][0]>=n)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const c=t.parse(s,l,r);if(!c)return null;r=r||c.type,i.push([n,c])}return new On(r,n,i)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return n[0].evaluate(e);const r=t.length;return i>=t[r-1]?n[r-1].evaluate(e):n[An(t,i)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){const e=["step",this.input.serialize()];for(let t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}var In=On;function Dn(e,t,n){return e*(1-n)+t*n}var Pn=Object.freeze({__proto__:null,array:function(e,t,n){return e.map(((e,i)=>Dn(e,t[i],n)))},color:function(e,t,n){return new It(Dn(e.r,t.r,n),Dn(e.g,t.g,n),Dn(e.b,t.b,n),Dn(e.a,t.a,n))},number:Dn});const zn=.95047,Ln=1.08883,Bn=4/29,Fn=6/29,Rn=3*Fn*Fn,$n=Fn*Fn*Fn,Nn=Math.PI/180,jn=180/Math.PI;function Vn(e){return e>$n?Math.pow(e,1/3):e/Rn+Bn}function Un(e){return e>Fn?e*e*e:Rn*(e-Bn)}function qn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Hn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Wn(e){const t=Hn(e.r),n=Hn(e.g),i=Hn(e.b),r=Vn((.4124564*t+.3575761*n+.1804375*i)/zn),o=Vn((.2126729*t+.7151522*n+.072175*i)/1);return{l:116*o-16,a:500*(r-o),b:200*(o-Vn((.0193339*t+.119192*n+.9503041*i)/Ln)),alpha:e.a}}function Gn(e){let t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,i=isNaN(e.b)?t:t-e.b/200;return t=1*Un(t),n=zn*Un(n),i=Ln*Un(i),new It(qn(3.2404542*n-1.5371385*t-.4985314*i),qn(-.969266*n+1.8760108*t+.041556*i),qn(.0556434*n-.2040259*t+1.0572252*i),e.alpha)}function Zn(e,t,n){const i=t-e;return e+n*(i>180||i<-180?i-360*Math.round(i/360):i)}const Xn={forward:Wn,reverse:Gn,interpolate:function(e,t,n){return{l:Dn(e.l,t.l,n),a:Dn(e.a,t.a,n),b:Dn(e.b,t.b,n),alpha:Dn(e.alpha,t.alpha,n)}}},Kn={forward:function(e){const{l:t,a:n,b:i}=Wn(e),r=Math.atan2(i,n)*jn;return{h:r<0?r+360:r,c:Math.sqrt(n*n+i*i),l:t,alpha:e.a}},reverse:function(e){const t=e.h*Nn,n=e.c;return Gn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:Zn(e.h,t.h,n),c:Dn(e.c,t.c,n),l:Dn(e.l,t.l,n),alpha:Dn(e.alpha,t.alpha,n)}}};var Yn=Object.freeze({__proto__:null,hcl:Kn,lab:Xn});class Jn{constructor(e,t,n,i,r){this.type=e,this.operator=t,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];for(const[o,s]of r)this.labels.push(o),this.outputs.push(s)}static interpolationFactor(e,t,n,i){let r=0;if("exponential"===e.name)r=Qn(t,e.base,n,i);else if("linear"===e.name)r=Qn(t,1,n,i);else if("cubic-bezier"===e.name){const o=e.controlPoints;r=new m(o[0],o[1],o[2],o[3]).solve(Qn(t,1,n,i))}return r}static parse(e,t){let[n,i,r,...o]=e;if(!Array.isArray(i)||0===i.length)return t.error("Expected an interpolation type expression.",1);if("linear"===i[0])i={name:"linear"};else if("exponential"===i[0]){const e=i[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:e}}else{if("cubic-bezier"!==i[0])return t.error(`Unknown interpolation type ${String(i[0])}`,1,0);{const e=i.slice(1);if(4!==e.length||e.some((e=>"number"!=typeof e||e<0||e>1)))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:e}}}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(r=t.parse(r,2,ct),!r)return null;const s=[];let a=null;"interpolate-hcl"===n||"interpolate-lab"===n?a=dt:t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(let l=0;l<o.length;l+=2){const e=o[l],n=o[l+1],i=l+3,r=l+4;if("number"!=typeof e)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',i);if(s.length&&s[s.length-1][0]>=e)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);const c=t.parse(n,r,a);if(!c)return null;a=a||c.type,s.push([e,c])}return"number"===a.kind||"color"===a.kind||"array"===a.kind&&"number"===a.itemType.kind&&"number"==typeof a.N?new Jn(a,n,i,r,s):t.error(`Type ${_t(a)} is not interpolatable.`)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return n[0].evaluate(e);const r=t.length;if(i>=t[r-1])return n[r-1].evaluate(e);const o=An(t,i),s=Jn.interpolationFactor(this.interpolation,i,t[o],t[o+1]),a=n[o].evaluate(e),l=n[o+1].evaluate(e);return"interpolate"===this.operator?Pn[this.type.kind.toLowerCase()](a,l,s):"interpolate-hcl"===this.operator?Kn.reverse(Kn.interpolate(Kn.forward(a),Kn.forward(l),s)):Xn.reverse(Xn.interpolate(Xn.forward(a),Xn.forward(l),s))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){let 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);const t=[this.operator,e,this.input.serialize()];for(let n=0;n<this.labels.length;n++)t.push(this.labels[n],this.outputs[n].serialize());return t}}function Qn(e,t,n,i){const r=i-n,o=e-n;return 0===r?0:1===t?o/r:(Math.pow(t,o)-1)/(Math.pow(t,r)-1)}var ei=Jn;class ti{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let n=null;const i=t.expectedType;i&&"value"!==i.kind&&(n=i);const r=[];for(const s of e.slice(1)){const e=t.parse(s,1+r.length,n,void 0,{typeAnnotation:"omit"});if(!e)return null;n=n||e.type,r.push(e)}const o=i&&r.some((e=>xt(i,e.type)));return new ti(o?ft:n,r)}evaluate(e){let t,n=null,i=0;for(const r of this.args){if(i++,n=r.evaluate(e),n&&n instanceof Lt&&!n.available&&(t||(t=n),n=null,i===this.args.length))return t;if(null!==n)break}return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=["coalesce"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var ni=ti;class ii{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let r=1;r<e.length-1;r+=2){const i=e[r];if("string"!=typeof i)return t.error(`Expected string, but found ${typeof i} instead.`,r);if(/[^a-zA-Z0-9_]/.test(i))return t.error("Variable names must contain only alphanumeric characters or '_'.",r);const o=t.parse(e[r+1],r+1);if(!o)return null;n.push([i,o])}const i=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return i?new ii(n,i):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[t,n]of this.bindings)e.push(t,n.serialize());return e.push(this.result.serialize()),e}}var ri=ii;class oi{constructor(e,t,n){this.type=e,this.index=t,this.input=n}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,ct),i=t.parse(e[2],2,yt(t.expectedType||ft));return n&&i?new oi(i.type.itemType,n,i):null}evaluate(e){const t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new Vt(`Array index out of bounds: ${t} < 0.`);if(t>=n.length)throw new Vt(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new Vt(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var si=oi;class ai{constructor(e,t){this.type=ht,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,ft),i=t.parse(e[2],2,ft);return n&&i?wt(n.type,[ht,ut,ct,lt,ft])?new ai(n,i):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${_t(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(null==n)return!1;if(!Ct(t,["boolean","string","number","null"]))throw new Vt(`Expected first argument to be of type boolean, string, number or null, but found ${_t(Rt(t))} instead.`);if(!Ct(n,["string","array"]))throw new Vt(`Expected second argument to be of type array or string, but found ${_t(Rt(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var li=ai;class ci{constructor(e,t,n){this.type=ct,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,ft),i=t.parse(e[2],2,ft);if(!n||!i)return null;if(!wt(n.type,[ht,ut,ct,lt,ft]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${_t(n.type)} instead`);if(4===e.length){const r=t.parse(e[3],3,ct);return r?new ci(n,i,r):null}return new ci(n,i)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!Ct(t,["boolean","string","number","null"]))throw new Vt(`Expected first argument to be of type boolean, string, number or null, but found ${_t(Rt(t))} instead.`);if(!Ct(n,["string","array"]))throw new Vt(`Expected second argument to be of type array or string, but found ${_t(Rt(n))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(e);return n.indexOf(t,i)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var ui=ci;class hi{constructor(e,t,n,i,r,o){this.inputType=e,this.type=t,this.input=n,this.cases=i,this.outputs=r,this.otherwise=o}static parse(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.");let n,i;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);const r={},o=[];for(let l=2;l<e.length-1;l+=2){let s=e[l];const a=e[l+1];Array.isArray(s)||(s=[s]);const c=t.concat(l);if(0===s.length)return c.error("Expected at least one branch label.");for(const e of s){if("number"!=typeof e&&"string"!=typeof e)return c.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,Rt(e)))return null}else n=Rt(e);if(void 0!==r[String(e)])return c.error("Branch labels must be unique.");r[String(e)]=o.length}const u=t.parse(a,l,i);if(!u)return null;i=i||u.type,o.push(u)}const s=t.parse(e[1],1,ft);if(!s)return null;const a=t.parse(e[e.length-1],e.length-1,i);return a?"value"!==s.type.kind&&t.concat(1).checkSubtype(n,s.type)?null:new hi(n,i,s,r,o,a):null}evaluate(e){const t=this.input.evaluate(e);return(Rt(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],i={};for(const o of t){const e=i[this.cases[o]];void 0===e?(i[this.cases[o]]=n.length,n.push([this.cases[o],[o]])):n[e][1].push(o)}const r=e=>"number"===this.inputType.kind?Number(e):e;for(const[o,s]of n)e.push(1===s.length?r(s[0]):s.map(r)),e.push(this.outputs[o].serialize());return e.push(this.otherwise.serialize()),e}}var di=hi;class pi{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(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.");let n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const i=[];for(let o=1;o<e.length-1;o+=2){const r=t.parse(e[o],o,ht);if(!r)return null;const s=t.parse(e[o+1],o+1,n);if(!s)return null;i.push([r,s]),n=n||s.type}const r=t.parse(e[e.length-1],e.length-1,n);return r?new pi(n,i,r):null}evaluate(e){for(const[t,n]of this.branches)if(t.evaluate(e))return n.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,n]of this.branches)e(t),e(n);e(this.otherwise)}outputDefined(){return this.branches.every((([e,t])=>t.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var fi=pi;class mi{constructor(e,t,n,i){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,ft),i=t.parse(e[2],2,ct);if(!n||!i)return null;if(!wt(n.type,[yt(ft),ut,ft]))return t.error(`Expected first argument to be of type array or string, but found ${_t(n.type)} instead`);if(4===e.length){const r=t.parse(e[3],3,ct);return r?new mi(n.type,n,i,r):null}return new mi(n.type,n,i)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!Ct(t,["string","array"]))throw new Vt(`Expected first argument to be of type array or string, but found ${_t(Rt(t))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(e);return t.slice(n,i)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var gi=mi;function vi(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 yi(e,t,n,i){return 0===i.compare(t,n)}function _i(e,t,n){const i="=="!==e&&"!="!==e;return class r{constructor(e,t,n){this.type=ht,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const n=e[0];let o=t.parse(e[1],1,ft);if(!o)return null;if(!vi(n,o.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${_t(o.type)}'.`);let s=t.parse(e[2],2,ft);if(!s)return null;if(!vi(n,s.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${_t(s.type)}'.`);if(o.type.kind!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return t.error(`Cannot compare types '${_t(o.type)}' and '${_t(s.type)}'.`);i&&("value"===o.type.kind&&"value"!==s.type.kind?o=new Ht(s.type,[o]):"value"!==o.type.kind&&"value"===s.type.kind&&(s=new Ht(o.type,[s])));let a=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return t.error("Cannot use collator to compare non-string types.");if(a=t.parse(e[3],3,mt),!a)return null}return new r(o,s,a)}evaluate(r){const o=this.lhs.evaluate(r),s=this.rhs.evaluate(r);if(i&&this.hasUntypedArgument){const t=Rt(o),n=Rt(s);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new Vt(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${n.kind}) instead.`)}if(this.collator&&!i&&this.hasUntypedArgument){const e=Rt(o),n=Rt(s);if("string"!==e.kind||"string"!==n.kind)return t(r,o,s)}return this.collator?n(r,o,s,this.collator.evaluate(r)):t(r,o,s)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild((e=>{t.push(e.serialize())})),t}}}const bi=_i("==",(function(e,t,n){return t===n}),yi),xi=_i("!=",(function(e,t,n){return t!==n}),(function(e,t,n,i){return!yi(0,t,n,i)})),wi=_i("<",(function(e,t,n){return t<n}),(function(e,t,n,i){return i.compare(t,n)<0})),Ci=_i(">",(function(e,t,n){return t>n}),(function(e,t,n,i){return i.compare(t,n)>0})),ki=_i("<=",(function(e,t,n){return t<=n}),(function(e,t,n,i){return i.compare(t,n)<=0})),Si=_i(">=",(function(e,t,n){return t>=n}),(function(e,t,n,i){return i.compare(t,n)>=0}));class Ei{constructor(e,t,n,i,r,o){this.type=ut,this.number=e,this.locale=t,this.currency=n,this.unit=i,this.minFractionDigits=r,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,ct);if(!n)return null;const i=e[2];if("object"!=typeof i||Array.isArray(i))return t.error("NumberFormat options argument must be an object.");let r=null;if(i.locale&&(r=t.parse(i.locale,1,ut),!r))return null;let o=null;if(i.currency&&(o=t.parse(i.currency,1,ut),!o))return null;let s=null;if(i.unit&&(s=t.parse(i.unit,1,ut),!s))return null;let a=null;if(i["min-fraction-digits"]&&(a=t.parse(i["min-fraction-digits"],1,ct),!a))return null;let l=null;return i["max-fraction-digits"]&&(l=t.parse(i["max-fraction-digits"],1,ct),!l)?null:new Ei(n,r,o,s,a,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.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))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.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]}}class Ti{constructor(e){this.type=ct,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const 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 ${_t(n.type)} instead.`):new Ti(n):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Vt(`Expected value to be of type string or array, but found ${_t(Rt(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}const Mi={"==":bi,"!=":xi,">":Ci,"<":wi,">=":Si,"<=":ki,array:Ht,at:si,boolean:Ht,case:fi,coalesce:ni,collator:tn,format:Wt,image:Gt,in:li,"index-of":ui,interpolate:ei,"interpolate-hcl":ei,"interpolate-lab":ei,length:Ti,let:ri,literal:jt,match:di,number:Ht,"number-format":Ei,object:Ht,slice:gi,step:In,string:Ht,"to-boolean":Kt,"to-color":Kt,"to-number":Kt,"to-string":Kt,var:Sn,within:bn};function Ai(e,[t,n,i,r]){t=t.evaluate(e),n=n.evaluate(e),i=i.evaluate(e);const o=r?r.evaluate(e):1,s=Bt(t,n,i,o);if(s)throw new Vt(s);return new It(t/255*o,n/255*o,i/255*o,o)}function Oi(e,t){return e in t}function Ii(e,t){const n=t[e];return void 0===n?null:n}function Di(e){return{type:e}}en.register(Mi,{error:[{kind:"error"},[ut],(e,[t])=>{throw new Vt(t.evaluate(e))}],typeof:[ut,[ft],(e,[t])=>_t(Rt(t.evaluate(e)))],"to-rgba":[yt(ct,4),[dt],(e,[t])=>t.evaluate(e).toArray()],rgb:[dt,[ct,ct,ct],Ai],rgba:[dt,[ct,ct,ct,ct],Ai],has:{type:ht,overloads:[[[ut],(e,[t])=>Oi(t.evaluate(e),e.properties())],[[ut,pt],(e,[t,n])=>Oi(t.evaluate(e),n.evaluate(e))]]},get:{type:ft,overloads:[[[ut],(e,[t])=>Ii(t.evaluate(e),e.properties())],[[ut,pt],(e,[t,n])=>Ii(t.evaluate(e),n.evaluate(e))]]},"feature-state":[ft,[ut],(e,[t])=>Ii(t.evaluate(e),e.featureState||{})],properties:[pt,[],e=>e.properties()],"geometry-type":[ut,[],e=>e.geometryType()],id:[ft,[],e=>e.id()],zoom:[ct,[],e=>e.globals.zoom],pitch:[ct,[],e=>e.globals.pitch||0],"distance-from-center":[ct,[],e=>e.distanceFromCenter()],"heatmap-density":[ct,[],e=>e.globals.heatmapDensity||0],"line-progress":[ct,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[ct,[],e=>e.globals.skyRadialProgress||0],accumulated:[ft,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[ct,Di(ct),(e,t)=>{let n=0;for(const i of t)n+=i.evaluate(e);return n}],"*":[ct,Di(ct),(e,t)=>{let n=1;for(const i of t)n*=i.evaluate(e);return n}],"-":{type:ct,overloads:[[[ct,ct],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[ct],(e,[t])=>-t.evaluate(e)]]},"/":[ct,[ct,ct],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[ct,[ct,ct],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[ct,[],()=>Math.LN2],pi:[ct,[],()=>Math.PI],e:[ct,[],()=>Math.E],"^":[ct,[ct,ct],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[ct,[ct],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[ct,[ct],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[ct,[ct],(e,[t])=>Math.log(t.evaluate(e))],log2:[ct,[ct],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[ct,[ct],(e,[t])=>Math.sin(t.evaluate(e))],cos:[ct,[ct],(e,[t])=>Math.cos(t.evaluate(e))],tan:[ct,[ct],(e,[t])=>Math.tan(t.evaluate(e))],asin:[ct,[ct],(e,[t])=>Math.asin(t.evaluate(e))],acos:[ct,[ct],(e,[t])=>Math.acos(t.evaluate(e))],atan:[ct,[ct],(e,[t])=>Math.atan(t.evaluate(e))],min:[ct,Di(ct),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[ct,Di(ct),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[ct,[ct],(e,[t])=>Math.abs(t.evaluate(e))],round:[ct,[ct],(e,[t])=>{const n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[ct,[ct],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[ct,[ct],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[ht,[ut,ft],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[ht,[ft],(e,[t])=>e.id()===t.value],"filter-type-==":[ht,[ut],(e,[t])=>e.geometryType()===t.value],"filter-<":[ht,[ut,ft],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i<r}],"filter-id-<":[ht,[ft],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n<i}],"filter->":[ht,[ut,ft],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i>r}],"filter-id->":[ht,[ft],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n>i}],"filter-<=":[ht,[ut,ft],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i<=r}],"filter-id-<=":[ht,[ft],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n<=i}],"filter->=":[ht,[ut,ft],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i>=r}],"filter-id->=":[ht,[ft],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n>=i}],"filter-has":[ht,[ft],(e,[t])=>t.value in e.properties()],"filter-has-id":[ht,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[ht,[yt(ut)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[ht,[yt(ft)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[ht,[ut,yt(ft)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[ht,[ut,yt(ft)],(e,[t,n])=>function(e,t,n,i){for(;n<=i;){const r=n+i>>1;if(t[r]===e)return!0;t[r]>e?i=r-1:n=r+1}return!1}(e.properties()[t.value],n.value,0,n.value.length-1)],all:{type:ht,overloads:[[[ht,ht],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[Di(ht),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:ht,overloads:[[[ht,ht],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[Di(ht),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[ht,[ht],(e,[t])=>!t.evaluate(e)],"is-supported-script":[ht,[ut],(e,[t])=>{const n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[ut,[ut],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[ut,[ut],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[ut,Di(ft),(e,t)=>t.map((t=>$t(t.evaluate(e)))).join("")],"resolved-locale":[ut,[mt],(e,[t])=>t.evaluate(e).resolvedLocale()]});var Pi=Mi;function zi(e){return{result:"success",value:e}}function Li(e){return{result:"error",value:e}}function Bi(e){return"data-driven"===e["property-type"]}function Fi(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Ri(e){return!!e.expression&&e.expression.interpolated}function $i(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function Ni(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function ji(e){return e}function Vi(e,t){const n="color"===t.type,i=e.stops&&"object"==typeof e.stops[0][0],r=i||!(i||void 0!==e.property),o=e.type||(Ri(t)?"exponential":"interval");if(n&&((e=tt({},e)).stops&&(e.stops=e.stops.map((e=>[e[0],It.parse(e[1])]))),e.default=It.parse(e.default?e.default:t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!Yn[e.colorSpace])throw new Error(`Unknown color space: ${e.colorSpace}`);let s,a,l;if("exponential"===o)s=Wi;else if("interval"===o)s=Hi;else if("categorical"===o){s=qi,a=Object.create(null);for(const t of e.stops)a[t[0]]=t[1];l=typeof e.stops[0][0]}else{if("identity"!==o)throw new Error(`Unknown function type "${o}"`);s=Gi}if(i){const n={},i=[];for(let t=0;t<e.stops.length;t++){const r=e.stops[t],o=r[0].zoom;void 0===n[o]&&(n[o]={zoom:o,type:e.type,property:e.property,default:e.default,stops:[]},i.push(o)),n[o].stops.push([r[0].value,r[1]])}const r=[];for(const e of i)r.push([n[e].zoom,Vi(n[e],t)]);const o={name:"linear"};return{kind:"composite",interpolationType:o,interpolationFactor:ei.interpolationFactor.bind(void 0,o),zoomStops:r.map((e=>e[0])),evaluate:({zoom:n},i)=>Wi({stops:r,base:e.base},t,n).evaluate(n,i)}}if(r){const n="exponential"===o?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:n,interpolationFactor:ei.interpolationFactor.bind(void 0,n),zoomStops:e.stops.map((e=>e[0])),evaluate:({zoom:n})=>s(e,t,n,a,l)}}return{kind:"source",evaluate(n,i){const r=i&&i.properties?i.properties[e.property]:void 0;return void 0===r?Ui(e.default,t.default):s(e,t,r,a,l)}}}function Ui(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function qi(e,t,n,i,r){return Ui(typeof n===r?i[n]:void 0,e.default,t.default)}function Hi(e,t,n){if("number"!==$i(n))return Ui(e.default,t.default);const i=e.stops.length;if(1===i)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[i-1][0])return e.stops[i-1][1];const r=An(e.stops.map((e=>e[0])),n);return e.stops[r][1]}function Wi(e,t,n){const i=void 0!==e.base?e.base:1;if("number"!==$i(n))return Ui(e.default,t.default);const 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];const o=An(e.stops.map((e=>e[0])),n),s=function(e,t,n,i){const r=i-n,o=e-n;return 0===r?0:1===t?o/r:(Math.pow(t,o)-1)/(Math.pow(t,r)-1)}(n,i,e.stops[o][0],e.stops[o+1][0]),a=e.stops[o][1],l=e.stops[o+1][1];let c=Pn[t.type]||ji;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=Yn[e.colorSpace];c=(e,n)=>t.reverse(t.interpolate(t.forward(e),t.forward(n),s))}return"function"==typeof a.evaluate?{evaluate(...e){const t=a.evaluate.apply(void 0,e),n=l.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==n)return c(t,n,s)}}:c(a,l,s)}function Gi(e,t,n){return"color"===t.type?n=It.parse(n):"formatted"===t.type?n=zt.fromString(n.toString()):"resolvedImage"===t.type?n=Lt.fromString(n.toString()):$i(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),Ui(n,e.default,t.default)}class Zi{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new Jt,this._defaultValue=t?function(e){return"color"===e.type&&(Ni(e.default)||Array.isArray(e.default))?new It(0,0,0,0):"color"===e.type?It.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,n,i,r,o,s,a){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=i||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,i,r,o,s,a){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=i||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new Vt(`Expected value to be one of ${Object.keys(this._enumValues).map((e=>JSON.stringify(e))).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function Xi(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Pi}function Ki(e,t){const n=new Tn(Pi,[],t?function(e){const t={color:dt,string:ut,number:ct,enum:ut,boolean:ht,formatted:gt,resolvedImage:vt};return"array"===e.type?yt(t[e.value]||ft,e.length):t[e.type]}(t):void 0),i=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return i?zi(new Zi(i,t)):Li(n.errors)}class Yi{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!wn(t.expression)}evaluateWithoutErrorHandling(e,t,n,i,r,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,i,r,o)}evaluate(e,t,n,i,r,o){return this._styleExpression.evaluate(e,t,n,i,r,o)}}class Ji{constructor(e,t,n,i){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!wn(t.expression),this.interpolationType=i}evaluateWithoutErrorHandling(e,t,n,i,r,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,i,r,o)}evaluate(e,t,n,i,r,o){return this._styleExpression.evaluate(e,t,n,i,r,o)}interpolationFactor(e,t,n){return this.interpolationType?ei.interpolationFactor(this.interpolationType,e,t,n):0}}function Qi(e,t){if("error"===(e=Ki(e,t)).result)return e;const n=e.value.expression,i=xn(n);if(!i&&!Bi(t))return Li([new ot("","data expressions not supported")]);const r=Cn(n,["zoom","pitch","distance-from-center"]);if(!r&&!Fi(t))return Li([new ot("","zoom expressions not supported")]);const o=tr(n);return o||r?o instanceof ot?Li([o]):o instanceof ei&&!Ri(t)?Li([new ot("",'"interpolate" expressions cannot be used with this property')]):zi(o?new Ji(i?"camera":"composite",e.value,o.labels,o instanceof ei?o.interpolation:void 0):new Yi(i?"constant":"source",e.value)):Li([new ot("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class er{constructor(e,t){this._parameters=e,this._specification=t,tt(this,Vi(this._parameters,this._specification))}static deserialize(e){return new er(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function tr(e){let t=null;if(e instanceof ri)t=tr(e.result);else if(e instanceof ni){for(const n of e.args)if(t=tr(n),t)break}else(e instanceof In||e instanceof ei)&&e.input instanceof en&&"zoom"===e.input.name&&(t=e);return t instanceof ot||e.eachChild((e=>{const n=tr(e);n instanceof ot?t=n:!t&&n?t=new ot("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&n&&t!==n&&(t=new ot("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}class nr{constructor(e,t,n,i){this.message=(e?`${e}: `:"")+n,i&&(this.identifier=i),null!=t&&t.__line__&&(this.line=t.__line__)}}function ir(e){const t=e.key,n=e.value,i=e.valueSpec||{},r=e.objectElementValidators||{},o=e.style,s=e.styleSpec;let a=[];const l=$i(n);if("object"!==l)return[new nr(t,n,`object expected, ${l} found`)];for(const c in n){const e=c.split(".")[0];let l;r[e]?l=r[e]:i[e]?l=Fr:r["*"]?l=r["*"]:i["*"]&&(l=Fr),l?a=a.concat(l({key:(t?`${t}.`:t)+c,value:n[c],valueSpec:i[e]||i["*"],style:o,styleSpec:s,object:n,objectKey:c},n)):a.push(new nr(t,n[c],`unknown property "${c}"`))}for(const c in i)r[c]||i[c].required&&void 0===i[c].default&&void 0===n[c]&&a.push(new nr(t,n,`missing required property "${c}"`));return a}function rr(e){const t=e.value,n=e.valueSpec,i=e.style,r=e.styleSpec,o=e.key,s=e.arrayElementValidator||Fr;if("array"!==$i(t))return[new nr(o,t,`array expected, ${$i(t)} found`)];if(n.length&&t.length!==n.length)return[new nr(o,t,`array length ${n.length} expected, length ${t.length} found`)];if(n["min-length"]&&t.length<n["min-length"])return[new nr(o,t,`array length at least ${n["min-length"]} expected, length ${t.length} found`)];let a={type:n.value,values:n.values,minimum:n.minimum,maximum:n.maximum,function:void 0};r.$version<7&&(a.function=n.function),"object"===$i(n.value)&&(a=n.value);let l=[];for(let c=0;c<t.length;c++)l=l.concat(s({array:t,arrayIndex:c,value:t[c],valueSpec:a,style:i,styleSpec:r,key:`${o}[${c}]`}));return l}function or(e){const t=e.key,n=e.value,i=e.valueSpec;let r=$i(n);if("number"===r&&n!=n&&(r="NaN"),"number"!==r)return[new nr(t,n,`number expected, ${r} found`)];if("minimum"in i){let r=i.minimum;if("array"===$i(i.minimum)&&(r=i.minimum[e.arrayIndex]),n<r)return[new nr(t,n,`${n} is less than the minimum value ${r}`)]}if("maximum"in i){let r=i.maximum;if("array"===$i(i.maximum)&&(r=i.maximum[e.arrayIndex]),n>r)return[new nr(t,n,`${n} is greater than the maximum value ${r}`)]}return[]}function sr(e){const t=e.valueSpec,n=nt(e.value.type);let i,r,o,s={};const a="categorical"!==n&&void 0===e.value.property,l=!a,c="array"===$i(e.value.stops)&&"array"===$i(e.value.stops[0])&&"object"===$i(e.value.stops[0][0]),u=ir({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===n)return[new nr(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const i=e.value;return t=t.concat(rr({key:e.key,value:i,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:h})),"array"===$i(i)&&0===i.length&&t.push(new nr(e.key,i,"array must have at least one stop")),t},default:function(e){return Fr({key:e.key,value:e.value,valueSpec:t,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===n&&a&&u.push(new nr(e.key,e.value,'missing required property "property"')),"identity"===n||e.value.stops||u.push(new nr(e.key,e.value,'missing required property "stops"')),"exponential"===n&&e.valueSpec.expression&&!Ri(e.valueSpec)&&u.push(new nr(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!Bi(e.valueSpec)?u.push(new nr(e.key,e.value,"property functions not supported")):a&&!Fi(e.valueSpec)&&u.push(new nr(e.key,e.value,"zoom functions not supported"))),"categorical"!==n&&!c||void 0!==e.value.property||u.push(new nr(e.key,e.value,'"property" property is required')),u;function h(e){let n=[];const i=e.value,a=e.key;if("array"!==$i(i))return[new nr(a,i,`array expected, ${$i(i)} found`)];if(2!==i.length)return[new nr(a,i,`array length 2 expected, length ${i.length} found`)];if(c){if("object"!==$i(i[0]))return[new nr(a,i,`object expected, ${$i(i[0])} found`)];if(void 0===i[0].zoom)return[new nr(a,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new nr(a,i,"object stop key must have value")];const t=nt(i[0].zoom);if("number"!=typeof t)return[new nr(a,i[0].zoom,"stop zoom values must be numbers")];if(o&&o>t)return[new nr(a,i[0].zoom,"stop zoom values must appear in ascending order")];t!==o&&(o=t,r=void 0,s={}),n=n.concat(ir({key:`${a}[0]`,value:i[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:or,value:d}}))}else n=n.concat(d({key:`${a}[0]`,value:i[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},i));return Xi(it(i[1]))?n.concat([new nr(`${a}[1]`,i[1],"expressions are not allowed in function stops.")]):n.concat(Fr({key:`${a}[1]`,value:i[1],valueSpec:t,style:e.style,styleSpec:e.styleSpec}))}function d(e,o){const a=$i(e.value),l=nt(e.value),c=null!==e.value?e.value:o;if(i){if(a!==i)return[new nr(e.key,c,`${a} stop domain type must match previous stop domain type ${i}`)]}else i=a;if("number"!==a&&"string"!==a&&"boolean"!==a&&"number"!=typeof l&&"string"!=typeof l&&"boolean"!=typeof l)return[new nr(e.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==a&&"categorical"!==n){let i=`number expected, ${a} found`;return Bi(t)&&void 0===n&&(i+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new nr(e.key,c,i)]}return"categorical"!==n||"number"!==a||"number"==typeof l&&isFinite(l)&&Math.floor(l)===l?"categorical"!==n&&"number"===a&&"number"==typeof l&&"number"==typeof r&&void 0!==r&&l<r?[new nr(e.key,c,"stop domain values must appear in ascending order")]:(r=l,"categorical"===n&&l in s?[new nr(e.key,c,"stop domain values must be unique")]:(s[l]=!0,[])):[new nr(e.key,c,`integer expected, found ${String(l)}`)]}}function ar(e){const t=("property"===e.expressionContext?Qi:Ki)(it(e.value),e.valueSpec);if("error"===t.result)return t.value.map((t=>new nr(`${e.key}${t.key}`,e.value,t.message)));const n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!n.outputDefined())return[new nr(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&&!wn(n))return[new nr(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext)return lr(n,e);if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!Cn(n,["zoom","feature-state"]))return[new nr(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!xn(n))return[new nr(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function lr(e,t){const n=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(t.valueSpec&&t.valueSpec.expression)for(const r of t.valueSpec.expression.parameters)n.delete(r);if(0===n.size)return[];const i=[];return e instanceof en&&n.has(e.name)?[new nr(t.key,t.value,`["${e.name}"] expression is not supported in a filter for a ${t.object.type} layer with id: ${t.object.id}`)]:(e.eachChild((e=>{i.push(...lr(e,t))})),i)}function cr(e){const t=e.key,n=e.value,i=e.valueSpec,r=[];return Array.isArray(i.values)?-1===i.values.indexOf(nt(n))&&r.push(new nr(t,n,`expected one of [${i.values.join(", ")}], ${JSON.stringify(n)} found`)):-1===Object.keys(i.values).indexOf(nt(n))&&r.push(new nr(t,n,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(n)} found`)),r}function ur(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":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));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(const t of e.slice(1))if(!ur(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function hr(e,t="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};ur(e)||(e=yr(e));const n=e;let i=!0;try{i=function(e){if(!fr(e))return e;let t=it(e);return pr(t),t=dr(t),t}(n)}catch(e){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(n,null,2)}\n        `)}const r=et[`filter_${t}`],o=Ki(i,r);let s=null;if("error"===o.result)throw new Error(o.value.map((e=>`${e.key}: ${e.message}`)).join(", "));s=(e,t,n)=>o.value.evaluate(e,t,{},n);let a=null,l=null;if(i!==n){const e=Ki(n,r);if("error"===e.result)throw new Error(e.value.map((e=>`${e.key}: ${e.message}`)).join(", "));a=(t,n,i,r,o)=>e.value.evaluate(t,n,{},i,void 0,void 0,r,o),l=!xn(e.value.expression)}return{filter:s,dynamicFilter:a||void 0,needGeometry:vr(i),needFeature:!!l}}function dr(e){if(!Array.isArray(e))return e;const t=function(e){if(mr.has(e[0]))for(let t=1;t<e.length;t++)if(fr(e[t]))return!0;return e}(e);return!0===t?t:t.map((e=>dr(e)))}function pr(e){let t=!1;const n=[];if("case"===e[0]){for(let i=1;i<e.length-1;i+=2)t=t||fr(e[i]),n.push(e[i+1]);n.push(e[e.length-1])}else if("match"===e[0]){t=t||fr(e[1]);for(let t=2;t<e.length-1;t+=2)n.push(e[t+1]);n.push(e[e.length-1])}else if("step"===e[0]){t=t||fr(e[1]);for(let t=1;t<e.length-1;t+=2)n.push(e[t+1])}t&&(e.length=0,e.push("any",...n));for(let i=1;i<e.length;i++)pr(e[i])}function fr(e){if(!Array.isArray(e))return!1;if("pitch"===(t=e[0])||"distance-from-center"===t)return!0;var t;for(let n=1;n<e.length;n++)if(fr(e[n]))return!0;return!1}const mr=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function gr(e,t){return e<t?-1:e>t?1:0}function vr(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t<e.length;t++)if(vr(e[t]))return!0;return!1}function yr(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?_r(e[1],e[2],"=="):"!="===t?wr(_r(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?_r(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(yr))):"all"===t?["all"].concat(e.slice(1).map(yr)):"none"===t?["all"].concat(e.slice(1).map(yr).map(wr)):"in"===t?br(e[1],e.slice(2)):"!in"===t?wr(br(e[1],e.slice(2))):"has"===t?xr(e[1]):"!has"===t?wr(xr(e[1])):"within"!==t||e;var n}function _r(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 br(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((e=>typeof e!=typeof t[0]))?["filter-in-large",e,["literal",t.sort(gr)]]:["filter-in-small",e,["literal",t]]}}function xr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function wr(e){return["!",e]}function Cr(e){return ur(it(e.value))?ar(tt({},e,{expressionContext:"filter",valueSpec:e.styleSpec[`filter_${e.layerType||"fill"}`]})):kr(e)}function kr(e){const t=e.value,n=e.key;if("array"!==$i(t))return[new nr(n,t,`array expected, ${$i(t)} found`)];const i=e.styleSpec;let r,o=[];if(t.length<1)return[new nr(n,t,"filter array must have at least 1 element")];switch(o=o.concat(cr({key:`${n}[0]`,value:t[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),nt(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===nt(t[1])&&o.push(new nr(n,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":3!==t.length&&o.push(new nr(n,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(r=$i(t[1]),"string"!==r&&o.push(new nr(`${n}[1]`,t[1],`string expected, ${r} found`)));for(let s=2;s<t.length;s++)r=$i(t[s]),"$type"===nt(t[1])?o=o.concat(cr({key:`${n}[${s}]`,value:t[s],valueSpec:i.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==r&&"number"!==r&&"boolean"!==r&&o.push(new nr(`${n}[${s}]`,t[s],`string, number, or boolean expected, ${r} found`));break;case"any":case"all":case"none":for(let i=1;i<t.length;i++)o=o.concat(kr({key:`${n}[${i}]`,value:t[i],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":r=$i(t[1]),2!==t.length?o.push(new nr(n,t,`filter array for "${t[0]}" operator must have 2 elements`)):"string"!==r&&o.push(new nr(`${n}[1]`,t[1],`string expected, ${r} found`));break;case"within":r=$i(t[1]),2!==t.length?o.push(new nr(n,t,`filter array for "${t[0]}" operator must have 2 elements`)):"object"!==r&&o.push(new nr(`${n}[1]`,t[1],`object expected, ${r} found`))}return o}function Sr(e,t){const n=e.key,i=e.style,r=e.styleSpec,o=e.value,s=e.objectKey,a=r[`${t}_${e.layerType}`];if(!a)return[];const l=s.match(/^(.*)-transition$/);if("paint"===t&&l&&a[l[1]]&&a[l[1]].transition)return Fr({key:n,value:o,valueSpec:r.transition,style:i,styleSpec:r});const c=e.valueSpec||a[s];if(!c)return[new nr(n,o,`unknown property "${s}"`)];let u;if("string"===$i(o)&&Bi(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(o))){const e=`\`{ "type": "identity", "property": ${u?JSON.stringify(u[1]):'"_"'} }\``;return[new nr(n,o,`"${s}" does not support interpolation syntax\nUse an identity property function instead: ${e}.`)]}const h=[];return"symbol"===e.layerType&&("text-field"===s&&i&&!i.glyphs&&h.push(new nr(n,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===s&&Ni(it(o))&&"identity"===nt(o.type)&&h.push(new nr(n,o,'"text-font" does not support identity functions'))),h.concat(Fr({key:e.key,value:o,valueSpec:c,style:i,styleSpec:r,expressionContext:"property",propertyType:t,propertyKey:s}))}function Er(e){return Sr(e,"paint")}function Tr(e){return Sr(e,"layout")}function Mr(e){let t=[];const n=e.value,i=e.key,r=e.style,o=e.styleSpec;n.type||n.ref||t.push(new nr(i,n,'either "type" or "ref" is required'));let s=nt(n.type);const a=nt(n.ref);if(n.id){const o=nt(n.id);for(let s=0;s<e.arrayIndex;s++){const e=r.layers[s];nt(e.id)===o&&t.push(new nr(i,n.id,`duplicate layer id "${n.id}", previously used at line ${e.id.__line__}`))}}if("ref"in n){let e;["type","source","source-layer","filter","layout"].forEach((e=>{e in n&&t.push(new nr(i,n[e],`"${e}" is prohibited for ref layers`))})),r.layers.forEach((t=>{nt(t.id)===a&&(e=t)})),e?e.ref?t.push(new nr(i,n.ref,"ref cannot reference another ref layer")):s=nt(e.type):"string"==typeof a&&t.push(new nr(i,n.ref,`ref layer "${a}" not found`))}else if("background"!==s&&"sky"!==s)if(n.source){const e=r.sources&&r.sources[n.source],o=e&&nt(e.type);e?"vector"===o&&"raster"===s?t.push(new nr(i,n.source,`layer "${n.id}" requires a raster source`)):"raster"===o&&"raster"!==s?t.push(new nr(i,n.source,`layer "${n.id}" requires a vector source`)):"vector"!==o||n["source-layer"]?"raster-dem"===o&&"hillshade"!==s?t.push(new nr(i,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!n.paint||!n.paint["line-gradient"]&&!n.paint["line-trim-offset"]||"geojson"===o&&e.lineMetrics||t.push(new nr(i,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new nr(i,n,`layer "${n.id}" must specify a "source-layer"`)):t.push(new nr(i,n.source,`source "${n.source}" not found`))}else t.push(new nr(i,n,'missing required property "source"'));return t=t.concat(ir({key:i,value:n,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":()=>[],type:()=>Fr({key:`${i}.type`,value:n.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"}),filter:e=>Cr(tt({layerType:s},e)),layout:e=>ir({layer:n,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>Tr(tt({layerType:s},e))}}),paint:e=>ir({layer:n,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>Er(tt({layerType:s},e))}})}})),t}function Ar(e){const t=e.value,n=e.key,i=$i(t);return"string"!==i?[new nr(n,t,`string expected, ${i} found`)]:[]}const Or={promoteId:function({key:e,value:t}){if("string"===$i(t))return Ar({key:e,value:t});{const n=[];for(const i in t)n.push(...Ar({key:`${e}.${i}`,value:t[i]}));return n}}};function Ir(e){const t=e.value,n=e.key,i=e.styleSpec,r=e.style;if(!t.type)return[new nr(n,t,'"type" is required')];const o=nt(t.type);let s;switch(o){case"vector":case"raster":case"raster-dem":return s=ir({key:n,value:t,valueSpec:i[`source_${o.replace("-","_")}`],style:e.style,styleSpec:i,objectElementValidators:Or}),s;case"geojson":if(s=ir({key:n,value:t,valueSpec:i.source_geojson,style:r,styleSpec:i,objectElementValidators:Or}),t.cluster)for(const e in t.clusterProperties){const[i,r]=t.clusterProperties[e],o="string"==typeof i?[i,["accumulated"],["get",e]]:i;s.push(...ar({key:`${n}.${e}.map`,value:r,expressionContext:"cluster-map"})),s.push(...ar({key:`${n}.${e}.reduce`,value:o,expressionContext:"cluster-reduce"}))}return s;case"video":return ir({key:n,value:t,valueSpec:i.source_video,style:r,styleSpec:i});case"image":return ir({key:n,value:t,valueSpec:i.source_image,style:r,styleSpec:i});case"canvas":return[new nr(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return cr({key:`${n}.type`,value:t.type,valueSpec:{values:Dr(i)},style:r,styleSpec:i})}}function Dr(e){return e.source.reduce(((t,n)=>{const i=e[n];return"enum"===i.type.type&&(t=t.concat(Object.keys(i.type.values))),t}),[])}function Pr(e){const t=e.value,n=e.styleSpec,i=n.light,r=e.style;let o=[];const s=$i(t);if(void 0===t)return o;if("object"!==s)return o=o.concat([new nr("light",t,`object expected, ${s} found`)]),o;for(const a in t){const e=a.match(/^(.*)-transition$/);o=o.concat(e&&i[e[1]]&&i[e[1]].transition?Fr({key:a,value:t[a],valueSpec:n.transition,style:r,styleSpec:n}):i[a]?Fr({key:a,value:t[a],valueSpec:i[a],style:r,styleSpec:n}):[new nr(a,t[a],`unknown property "${a}"`)])}return o}function zr(e){const t=e.value,n=e.key,i=e.style,r=e.styleSpec,o=r.terrain;let s=[];const a=$i(t);if(void 0===t)return s;if("object"!==a)return s=s.concat([new nr("terrain",t,`object expected, ${a} found`)]),s;for(const l in t){const e=l.match(/^(.*)-transition$/);s=s.concat(e&&o[e[1]]&&o[e[1]].transition?Fr({key:l,value:t[l],valueSpec:r.transition,style:i,styleSpec:r}):o[l]?Fr({key:l,value:t[l],valueSpec:o[l],style:i,styleSpec:r}):[new nr(l,t[l],`unknown property "${l}"`)])}if(t.source){const e=i.sources&&i.sources[t.source],r=e&&nt(e.type);e?"raster-dem"!==r&&s.push(new nr(n,t.source,`terrain cannot be used with a source of type ${String(r)}, it only be used with a "raster-dem" source type`)):s.push(new nr(n,t.source,`source "${t.source}" not found`))}else s.push(new nr(n,t,'terrain is missing required property "source"'));return s}function Lr(e){const t=e.value,n=e.style,i=e.styleSpec,r=i.fog;let o=[];const s=$i(t);if(void 0===t)return o;if("object"!==s)return o=o.concat([new nr("fog",t,`object expected, ${s} found`)]),o;for(const a in t){const e=a.match(/^(.*)-transition$/);o=o.concat(e&&r[e[1]]&&r[e[1]].transition?Fr({key:a,value:t[a],valueSpec:i.transition,style:n,styleSpec:i}):r[a]?Fr({key:a,value:t[a],valueSpec:r[a],style:n,styleSpec:i}):[new nr(a,t[a],`unknown property "${a}"`)])}return o}const Br={"*":()=>[],array:rr,boolean:function(e){const t=e.value,n=e.key,i=$i(t);return"boolean"!==i?[new nr(n,t,`boolean expected, ${i} found`)]:[]},number:or,color:function(e){const t=e.key,n=e.value,i=$i(n);return"string"!==i?[new nr(t,n,`color expected, ${i} found`)]:null===kt(n)?[new nr(t,n,`color expected, "${n}" found`)]:[]},enum:cr,filter:Cr,function:sr,layer:Mr,object:ir,source:Ir,light:Pr,terrain:zr,fog:Lr,string:Ar,formatted:function(e){return 0===Ar(e).length?[]:ar(e)},resolvedImage:function(e){return 0===Ar(e).length?[]:ar(e)},projection:function(e){const t=e.value,n=e.styleSpec,i=n.projection,r=e.style;let o=[];const s=$i(t);if("object"===s)for(const a in t)o=o.concat(Fr({key:a,value:t[a],valueSpec:i[a],style:r,styleSpec:n}));else"string"!==s&&(o=o.concat([new nr("projection",t,`object or string expected, ${s} found`)]));return o}};function Fr(e){const t=e.value,n=e.valueSpec,i=e.styleSpec;return n.expression&&Ni(nt(t))?sr(e):n.expression&&Xi(it(t))?ar(e):n.type&&Br[n.type]?Br[n.type](e):ir(tt({},e,{valueSpec:n.type?i[n.type]:n}))}function Rr(e){const t=e.value,n=e.key,i=Ar(e);return i.length||(-1===t.indexOf("{fontstack}")&&i.push(new nr(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&i.push(new nr(n,t,'"glyphs" url must include a "{range}" token'))),i}function $r(e,t=et){return Vr(Fr({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:Rr,"*":()=>[]}}))}const Nr=e=>Vr(Er(e)),jr=e=>Vr(Tr(e));function Vr(e){return e.slice().sort(((e,t)=>e.line&&t.line?e.line-t.line:0))}function Ur(e,t){let n=!1;if(t&&t.length)for(const i of t)e.fire(new Je(new Error(i.message))),n=!0;return n}var qr=Wr,Hr=3;function Wr(e,t,n){var i=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var r=new Int32Array(this.arrayBuffer);e=r[0],this.d=(t=r[1])+2*(n=r[2]);for(var o=0;o<this.d*this.d;o++){var s=r[Hr+o],a=r[Hr+o+1];i.push(s===a?null:r.subarray(s,a))}var l=r[Hr+i.length+1];this.keys=r.subarray(r[Hr+i.length],l),this.bboxes=r.subarray(l),this.insert=this._insertReadonly}else{this.d=t+2*n;for(var c=0;c<this.d*this.d;c++)i.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=n,this.scale=t/e,this.uid=0;var u=n/t*e;this.min=-u,this.max=e+u}Wr.prototype.insert=function(e,t,n,i,r){this._forEachCell(t,n,i,r,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(r)},Wr.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Wr.prototype._insertCell=function(e,t,n,i,r,o){this.cells[r].push(o)},Wr.prototype.query=function(e,t,n,i,r){var o=this.min,s=this.max;if(e<=o&&t<=o&&s<=n&&s<=i&&!r)return Array.prototype.slice.call(this.keys);var a=[];return this._forEachCell(e,t,n,i,this._queryCell,a,{},r),a},Wr.prototype._queryCell=function(e,t,n,i,r,o,s,a){var l=this.cells[r];if(null!==l)for(var c=this.keys,u=this.bboxes,h=0;h<l.length;h++){var d=l[h];if(void 0===s[d]){var p=4*d;(a?a(u[p+0],u[p+1],u[p+2],u[p+3]):e<=u[p+2]&&t<=u[p+3]&&n>=u[p+0]&&i>=u[p+1])?(s[d]=!0,o.push(c[d])):s[d]=!1}}},Wr.prototype._forEachCell=function(e,t,n,i,r,o,s,a){for(var l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),u=this._convertToCellCoord(n),h=this._convertToCellCoord(i),d=l;d<=u;d++)for(var p=c;p<=h;p++){var f=this.d*p+d;if((!a||a(this._convertFromCellCoord(d),this._convertFromCellCoord(p),this._convertFromCellCoord(d+1),this._convertFromCellCoord(p+1)))&&r.call(this,e,t,n,i,f,o,s,a))return}},Wr.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},Wr.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},Wr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=Hr+this.cells.length+1+1,n=0,i=0;i<this.cells.length;i++)n+=this.cells[i].length;var r=new Int32Array(t+n+this.keys.length+this.bboxes.length);r[0]=this.extent,r[1]=this.n,r[2]=this.padding;for(var o=t,s=0;s<e.length;s++){var a=e[s];r[Hr+s]=o,r.set(a,o),o+=a.length}return r[Hr+e.length]=o,r.set(this.keys,o),r[Hr+e.length+1]=o+=this.keys.length,r.set(this.bboxes,o),o+=this.bboxes.length,r.buffer};var Gr=d(qr);const Zr={};function Xr(e,t,n={}){Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),Zr[t]={klass:e,omit:n.omit||[]}}Xr(Object,"Object"),Gr.serialize=function(e,t){const n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}},Gr.deserialize=function(e){return new Gr(e.buffer)},Object.defineProperty(Gr,"name",{value:"Grid"}),Xr(Gr,"Grid"),Xr(It,"Color"),Xr(Error,"Error"),Xr(ce,"AJAXError"),Xr(Lt,"ResolvedImage"),Xr(er,"StylePropertyFunction"),Xr(Zi,"StyleExpression",{omit:["_evaluator"]}),Xr(Ji,"ZoomDependentExpression"),Xr(Yi,"ZoomConstantExpression"),Xr(en,"CompoundExpression",{omit:["_evaluate"]});for(const Cm in Pi)Zr[Pi[Cm]._classRegistryKey]||Xr(Pi[Cm],`Expression${Cm}`);function Kr(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Yr(e){return t.ImageBitmap&&e instanceof t.ImageBitmap}function Jr(e,n){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(Kr(e)||Yr(e))return n&&n.push(e),e;if(ArrayBuffer.isView(e)){const t=e;return n&&n.push(t.buffer),t}if(e instanceof t.ImageData)return n&&n.push(e.data.buffer),e;if(Array.isArray(e)){const t=[];for(const i of e)t.push(Jr(i,n));return t}if("object"==typeof e){const t=e.constructor,i=t._classRegistryKey;if(!i)throw new Error(`can't serialize object of unregistered class ${i}`);const r=t.serialize?t.serialize(e,n):{};if(!t.serialize){for(const t in e)e.hasOwnProperty(t)&&(Zr[i].omit.indexOf(t)>=0||(r[t]=Jr(e[t],n)));e instanceof Error&&(r.message=e.message)}if(r.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==i&&(r.$name=i),r}throw new Error("can't serialize object of type "+typeof e)}function Qr(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||Kr(e)||Yr(e)||ArrayBuffer.isView(e)||e instanceof t.ImageData)return e;if(Array.isArray(e))return e.map(Qr);if("object"==typeof e){const t=e.$name||"Object",{klass:n}=Zr[t];if(!n)throw new Error(`can't deserialize unregistered class ${t}`);if(n.deserialize)return n.deserialize(e);const i=Object.create(n.prototype);for(const r of Object.keys(e))"$name"!==r&&(i[r]=Qr(e[r]));return i}throw new Error("can't deserialize object of type "+typeof e)}const eo={"Latin-1 Supplement":e=>e>=128&&e<=255,Arabic:e=>e>=1536&&e<=1791,"Arabic Supplement":e=>e>=1872&&e<=1919,"Arabic Extended-A":e=>e>=2208&&e<=2303,"Hangul Jamo":e=>e>=4352&&e<=4607,"Unified Canadian Aboriginal Syllabics":e=>e>=5120&&e<=5759,Khmer:e=>e>=6016&&e<=6143,"Unified Canadian Aboriginal Syllabics Extended":e=>e>=6320&&e<=6399,"General Punctuation":e=>e>=8192&&e<=8303,"Letterlike Symbols":e=>e>=8448&&e<=8527,"Number Forms":e=>e>=8528&&e<=8591,"Miscellaneous Technical":e=>e>=8960&&e<=9215,"Control Pictures":e=>e>=9216&&e<=9279,"Optical Character Recognition":e=>e>=9280&&e<=9311,"Enclosed Alphanumerics":e=>e>=9312&&e<=9471,"Geometric Shapes":e=>e>=9632&&e<=9727,"Miscellaneous Symbols":e=>e>=9728&&e<=9983,"Miscellaneous Symbols and Arrows":e=>e>=11008&&e<=11263,"CJK Radicals Supplement":e=>e>=11904&&e<=12031,"Kangxi Radicals":e=>e>=12032&&e<=12255,"Ideographic Description Characters":e=>e>=12272&&e<=12287,"CJK Symbols and Punctuation":e=>e>=12288&&e<=12351,Hiragana:e=>e>=12352&&e<=12447,Katakana:e=>e>=12448&&e<=12543,Bopomofo:e=>e>=12544&&e<=12591,"Hangul Compatibility Jamo":e=>e>=12592&&e<=12687,Kanbun:e=>e>=12688&&e<=12703,"Bopomofo Extended":e=>e>=12704&&e<=12735,"CJK Strokes":e=>e>=12736&&e<=12783,"Katakana Phonetic Extensions":e=>e>=12784&&e<=12799,"Enclosed CJK Letters and Months":e=>e>=12800&&e<=13055,"CJK Compatibility":e=>e>=13056&&e<=13311,"CJK Unified Ideographs Extension A":e=>e>=13312&&e<=19903,"Yijing Hexagram Symbols":e=>e>=19904&&e<=19967,"CJK Unified Ideographs":e=>e>=19968&&e<=40959,"Yi Syllables":e=>e>=40960&&e<=42127,"Yi Radicals":e=>e>=42128&&e<=42191,"Hangul Jamo Extended-A":e=>e>=43360&&e<=43391,"Hangul Syllables":e=>e>=44032&&e<=55215,"Hangul Jamo Extended-B":e=>e>=55216&&e<=55295,"Private Use Area":e=>e>=57344&&e<=63743,"CJK Compatibility Ideographs":e=>e>=63744&&e<=64255,"Arabic Presentation Forms-A":e=>e>=64336&&e<=65023,"Vertical Forms":e=>e>=65040&&e<=65055,"CJK Compatibility Forms":e=>e>=65072&&e<=65103,"Small Form Variants":e=>e>=65104&&e<=65135,"Arabic Presentation Forms-B":e=>e>=65136&&e<=65279,"Halfwidth and Fullwidth Forms":e=>e>=65280&&e<=65519};function to(e){for(const t of e)if(ro(t.charCodeAt(0)))return!0;return!1}function no(e){for(const t of e)if(!io(t.charCodeAt(0)))return!1;return!0}function io(e){return!(eo.Arabic(e)||eo["Arabic Supplement"](e)||eo["Arabic Extended-A"](e)||eo["Arabic Presentation Forms-A"](e)||eo["Arabic Presentation Forms-B"](e))}function ro(e){return!(746!==e&&747!==e&&(e<4352||!(eo["Bopomofo Extended"](e)||eo.Bopomofo(e)||eo["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||eo["CJK Compatibility Ideographs"](e)||eo["CJK Compatibility"](e)||eo["CJK Radicals Supplement"](e)||eo["CJK Strokes"](e)||!(!eo["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||eo["CJK Unified Ideographs Extension A"](e)||eo["CJK Unified Ideographs"](e)||eo["Enclosed CJK Letters and Months"](e)||eo["Hangul Compatibility Jamo"](e)||eo["Hangul Jamo Extended-A"](e)||eo["Hangul Jamo Extended-B"](e)||eo["Hangul Jamo"](e)||eo["Hangul Syllables"](e)||eo.Hiragana(e)||eo["Ideographic Description Characters"](e)||eo.Kanbun(e)||eo["Kangxi Radicals"](e)||eo["Katakana Phonetic Extensions"](e)||eo.Katakana(e)&&12540!==e||!(!eo["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)||!(!eo["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||eo["Unified Canadian Aboriginal Syllabics"](e)||eo["Unified Canadian Aboriginal Syllabics Extended"](e)||eo["Vertical Forms"](e)||eo["Yijing Hexagram Symbols"](e)||eo["Yi Syllables"](e)||eo["Yi Radicals"](e))))}function oo(e){return!(ro(e)||function(e){return!!(eo["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||eo["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)||eo["Letterlike Symbols"](e)||eo["Number Forms"](e)||eo["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)||eo["Control Pictures"](e)&&9251!==e||eo["Optical Character Recognition"](e)||eo["Enclosed Alphanumerics"](e)||eo["Geometric Shapes"](e)||eo["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||eo["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||eo["CJK Symbols and Punctuation"](e)||eo.Katakana(e)||eo["Private Use Area"](e)||eo["CJK Compatibility Forms"](e)||eo["Small Form Variants"](e)||eo["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 so(e){return e>=1424&&e<=2303||eo["Arabic Presentation Forms-A"](e)||eo["Arabic Presentation Forms-B"](e)}function ao(e,t){return!(!t&&so(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||eo.Khmer(e))}function lo(e){for(const t of e)if(so(t.charCodeAt(0)))return!0;return!1}const co="deferred",uo="loading",ho="loaded";let po=null,fo="unavailable",mo=null;const go=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(fo="error"),po&&po(e)};function vo(){yo.fire(new Ye("pluginStateChange",{pluginStatus:fo,pluginURL:mo}))}const yo=new Qe,_o=function(){return fo},bo=function(){if(fo!==co||!mo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");fo=uo,vo(),mo&&de({url:mo},(e=>{e?go(e):(fo=ho,vo())}))},xo={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>fo===ho||null!=xo.applyArabicShaping,isLoading:()=>fo===uo,setState(e){fo=e.pluginStatus,mo=e.pluginURL},isParsed:()=>null!=xo.applyArabicShaping&&null!=xo.processBidirectionalText&&null!=xo.processStyledBidirectionalText,getPluginURL:()=>mo};class wo{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.transition=t.transition,this.pitch=t.pitch):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0)}isSupportedScript(e){return function(e,t){for(const n of e)if(!ao(n.charCodeAt(0),t))return!1;return!0}(e,xo.isLoaded())}}class Co{constructor(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(Ni(e))return new er(e,t);if(Xi(e)){const n=Qi(e,t);if("error"===n.result)throw new Error(n.value.map((e=>`${e.key}: ${e.message}`)).join(", "));return n.value}{let n=e;return"string"==typeof e&&"color"===t.type&&(n=It.parse(e)),{kind:"constant",evaluate:()=>n}}}(void 0===t?e.specification.default:t,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)}}class ko{constructor(e){this.property=e,this.value=new Co(e,void 0)}transitioned(e,t){return new Eo(this.property,this.value,t,D({},e.transition,this.transition),e.now)}untransitioned(){return new Eo(this.property,this.value,null,{},0)}}class So{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return V(this._values[e].value.value)}setValue(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ko(this._values[e].property)),this._values[e].value=new Co(this._values[e].property,null===t?void 0:V(t))}getTransition(e){return V(this._values[e].transition)}setTransition(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ko(this._values[e].property)),this._values[e].transition=V(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n);const i=this.getTransition(t);void 0!==i&&(e[`${t}-transition`]=i)}return e}transitioned(e,t){const n=new To(this._properties);for(const i of Object.keys(this._values))n._values[i]=this._values[i].transitioned(e,t._values[i]);return n}untransitioned(){const e=new To(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class Eo{constructor(e,t,n,i,r){const o=i.delay||0,s=i.duration||0;r=r||0,this.property=e,this.value=t,this.begin=r+o,this.end=this.begin+s,e.specification.transition&&(i.delay||i.duration)&&(this.prior=n)}possiblyEvaluate(e,t,n){const i=e.now||0,r=this.value.possiblyEvaluate(e,t,n),o=this.prior;if(o){if(i>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(i<this.begin)return o.possiblyEvaluate(e,t,n);{const s=(i-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,n),r,k(s))}}return r}}class To{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,n){const i=new Oo(this._properties);for(const r of Object.keys(this._values))i._values[r]=this._values[r].possiblyEvaluate(e,t,n);return i}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class Mo{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}getValue(e){return V(this._values[e].value)}setValue(e,t){this._values[e]=new Co(this._values[e].property,null===t?void 0:V(t))}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n)}return e}possiblyEvaluate(e,t,n){const i=new Oo(this._properties);for(const r of Object.keys(this._values))i._values[r]=this._values[r].possiblyEvaluate(e,t,n);return i}}class Ao{constructor(e,t,n){this.property=e,this.value=t,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,n,i){return this.property.evaluate(this.value,this.parameters,e,t,n,i)}}class Oo{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Io{constructor(e){this.specification=e}possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,n){const i=Pn[this.specification.type];return i?i(e,t,n):e}}class Do{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,n,i){return new Ao(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},n,i)}:e.expression,t)}interpolate(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 Ao(this,{kind:"constant",value:void 0},e.parameters);const i=Pn[this.specification.type];return i?new Ao(this,{kind:"constant",value:i(e.value.value,t.value.value,n)},e.parameters):e}evaluate(e,t,n,i,r,o){return"constant"===e.kind?e.value:e.evaluate(t,n,i,r,o)}}class Po{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,i){return!!e.expression.evaluate(t,null,{},n,i)}interpolate(){return!1}}class zo{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const t=new wo(0,{});for(const n in e){const i=e[n];i.specification.overridable&&this.overridableProperties.push(n);const r=this.defaultPropertyValues[n]=new Co(i,void 0),o=this.defaultTransitionablePropertyValues[n]=new ko(i);this.defaultTransitioningPropertyValues[n]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[n]=r.possiblyEvaluate(t)}}}function Lo(e,t){return 256*(e=T(Math.floor(e),0,255))+T(Math.floor(t),0,255)}Xr(Do,"DataDrivenProperty"),Xr(Io,"DataConstantProperty"),Xr(Po,"ColorRampProperty");const Bo={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Fo{constructor(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}}class Ro{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function $o(e,t=1){let n=0,i=0;return{members:e.map((e=>{const r=Bo[e.type].BYTES_PER_ELEMENT,o=n=No(n,Math.max(t,r)),s=e.components||1;return i=Math.max(i,r),n+=r*s,{name:e.name,type:e.type,components:s,offset:o}})),size:No(n,Math.max(i,t)),alignment:t}}function No(e,t){return Math.ceil(e/t)*t}class jo extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const i=2*e;return this.int16[i+0]=t,this.int16[i+1]=n,e}}jo.prototype.bytesPerElement=4,Xr(jo,"StructArrayLayout2i4");class Vo extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n)}emplace(e,t,n,i){const r=3*e;return this.int16[r+0]=t,this.int16[r+1]=n,this.int16[r+2]=i,e}}Vo.prototype.bytesPerElement=6,Xr(Vo,"StructArrayLayout3i6");class Uo extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=n,this.int16[o+2]=i,this.int16[o+3]=r,e}}Uo.prototype.bytesPerElement=8,Xr(Uo,"StructArrayLayout4i8");class qo extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,i,r,o,s)}emplace(e,t,n,i,r,o,s,a){const l=6*e,c=12*e,u=3*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.uint8[c+4]=i,this.uint8[c+5]=r,this.uint8[c+6]=o,this.uint8[c+7]=s,this.float32[u+2]=a,e}}qo.prototype.bytesPerElement=12,Xr(qo,"StructArrayLayout2i4ub1f12");class Ho extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const o=4*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=i,this.float32[o+3]=r,e}}Ho.prototype.bytesPerElement=16,Xr(Ho,"StructArrayLayout4f16");class Wo extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,i,r)}emplace(e,t,n,i,r,o){const s=6*e,a=3*e;return this.uint16[s+0]=t,this.uint16[s+1]=n,this.uint16[s+2]=i,this.uint16[s+3]=r,this.float32[a+2]=o,e}}Wo.prototype.bytesPerElement=12,Xr(Wo,"StructArrayLayout4ui1f12");class Go extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const o=4*e;return this.uint16[o+0]=t,this.uint16[o+1]=n,this.uint16[o+2]=i,this.uint16[o+3]=r,e}}Go.prototype.bytesPerElement=8,Xr(Go,"StructArrayLayout4ui8");class Zo extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,i,r,o)}emplace(e,t,n,i,r,o,s){const a=6*e;return this.int16[a+0]=t,this.int16[a+1]=n,this.int16[a+2]=i,this.int16[a+3]=r,this.int16[a+4]=o,this.int16[a+5]=s,e}}Zo.prototype.bytesPerElement=12,Xr(Zo,"StructArrayLayout6i12");class Xo extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,o,s,a,l,c,u,h){const d=this.length;return this.resize(d+1),this.emplace(d,e,t,n,i,r,o,s,a,l,c,u,h)}emplace(e,t,n,i,r,o,s,a,l,c,u,h,d){const p=12*e;return this.int16[p+0]=t,this.int16[p+1]=n,this.int16[p+2]=i,this.int16[p+3]=r,this.uint16[p+4]=o,this.uint16[p+5]=s,this.uint16[p+6]=a,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=h,this.int16[p+11]=d,e}}Xo.prototype.bytesPerElement=24,Xr(Xo,"StructArrayLayout4i4ui4i24");class Ko extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,i,r,o)}emplace(e,t,n,i,r,o,s){const a=10*e,l=5*e;return this.int16[a+0]=t,this.int16[a+1]=n,this.int16[a+2]=i,this.float32[l+2]=r,this.float32[l+3]=o,this.float32[l+4]=s,e}}Ko.prototype.bytesPerElement=20,Xr(Ko,"StructArrayLayout3i3f20");class Yo extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}Yo.prototype.bytesPerElement=4,Xr(Yo,"StructArrayLayout1ul4");class Jo extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,o,s,a,l,c,u,h,d){const p=this.length;return this.resize(p+1),this.emplace(p,e,t,n,i,r,o,s,a,l,c,u,h,d)}emplace(e,t,n,i,r,o,s,a,l,c,u,h,d,p){const f=20*e,m=10*e;return this.int16[f+0]=t,this.int16[f+1]=n,this.int16[f+2]=i,this.int16[f+3]=r,this.int16[f+4]=o,this.float32[m+3]=s,this.float32[m+4]=a,this.float32[m+5]=l,this.float32[m+6]=c,this.int16[f+14]=u,this.uint32[m+8]=h,this.uint16[f+18]=d,this.uint16[f+19]=p,e}}Jo.prototype.bytesPerElement=40,Xr(Jo,"StructArrayLayout5i4f1i1ul2ui40");class Qo extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,i,r,o,s)}emplace(e,t,n,i,r,o,s,a){const l=8*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.int16[l+2]=i,this.int16[l+4]=r,this.int16[l+5]=o,this.int16[l+6]=s,this.int16[l+7]=a,e}}Qo.prototype.bytesPerElement=16,Xr(Qo,"StructArrayLayout3i2i2i16");class es extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,i,r)}emplace(e,t,n,i,r,o){const s=4*e,a=8*e;return this.float32[s+0]=t,this.float32[s+1]=n,this.float32[s+2]=i,this.int16[a+6]=r,this.int16[a+7]=o,e}}es.prototype.bytesPerElement=16,Xr(es,"StructArrayLayout2f1f2i16");class ts extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const o=12*e,s=3*e;return this.uint8[o+0]=t,this.uint8[o+1]=n,this.float32[s+1]=i,this.float32[s+2]=r,e}}ts.prototype.bytesPerElement=12,Xr(ts,"StructArrayLayout2ub2f12");class ns extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n)}emplace(e,t,n,i){const r=3*e;return this.float32[r+0]=t,this.float32[r+1]=n,this.float32[r+2]=i,e}}ns.prototype.bytesPerElement=12,Xr(ns,"StructArrayLayout3f12");class is extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n)}emplace(e,t,n,i){const r=3*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,this.uint16[r+2]=i,e}}is.prototype.bytesPerElement=6,Xr(is,"StructArrayLayout3ui6");class rs extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v,y,_,b){const x=this.length;return this.resize(x+1),this.emplace(x,e,t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v,y,_,b)}emplace(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v,y,_,b,x){const w=30*e,C=15*e,k=60*e;return this.int16[w+0]=t,this.int16[w+1]=n,this.int16[w+2]=i,this.float32[C+2]=r,this.float32[C+3]=o,this.uint16[w+8]=s,this.uint16[w+9]=a,this.uint32[C+5]=l,this.uint32[C+6]=c,this.uint32[C+7]=u,this.uint16[w+16]=h,this.uint16[w+17]=d,this.uint16[w+18]=p,this.float32[C+10]=f,this.float32[C+11]=m,this.uint8[k+48]=g,this.uint8[k+49]=v,this.uint8[k+50]=y,this.uint32[C+13]=_,this.int16[w+28]=b,this.uint8[k+58]=x,e}}rs.prototype.bytesPerElement=60,Xr(rs,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class os extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v,y,_,b,x,w,C,k,S,E,T,M,A){const O=this.length;return this.resize(O+1),this.emplace(O,e,t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v,y,_,b,x,w,C,k,S,E,T,M,A)}emplace(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v,y,_,b,x,w,C,k,S,E,T,M,A,O){const I=38*e,D=19*e;return this.int16[I+0]=t,this.int16[I+1]=n,this.int16[I+2]=i,this.float32[D+2]=r,this.float32[D+3]=o,this.int16[I+8]=s,this.int16[I+9]=a,this.int16[I+10]=l,this.int16[I+11]=c,this.int16[I+12]=u,this.int16[I+13]=h,this.uint16[I+14]=d,this.uint16[I+15]=p,this.uint16[I+16]=f,this.uint16[I+17]=m,this.uint16[I+18]=g,this.uint16[I+19]=v,this.uint16[I+20]=y,this.uint16[I+21]=_,this.uint16[I+22]=b,this.uint16[I+23]=x,this.uint16[I+24]=w,this.uint16[I+25]=C,this.uint16[I+26]=k,this.uint16[I+27]=S,this.uint16[I+28]=E,this.uint32[D+15]=T,this.float32[D+16]=M,this.float32[D+17]=A,this.float32[D+18]=O,e}}os.prototype.bytesPerElement=76,Xr(os,"StructArrayLayout3i2f6i15ui1ul3f76");class ss extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}ss.prototype.bytesPerElement=4,Xr(ss,"StructArrayLayout1f4");class as extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,i,r)}emplace(e,t,n,i,r,o){const s=5*e;return this.float32[s+0]=t,this.float32[s+1]=n,this.float32[s+2]=i,this.float32[s+3]=r,this.float32[s+4]=o,e}}as.prototype.bytesPerElement=20,Xr(as,"StructArrayLayout5f20");class ls extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const o=6*e;return this.uint32[3*e+0]=t,this.uint16[o+2]=n,this.uint16[o+3]=i,this.uint16[o+4]=r,e}}ls.prototype.bytesPerElement=12,Xr(ls,"StructArrayLayout1ul3ui12");class cs extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const i=2*e;return this.uint16[i+0]=t,this.uint16[i+1]=n,e}}cs.prototype.bytesPerElement=4,Xr(cs,"StructArrayLayout2ui4");class us extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}us.prototype.bytesPerElement=2,Xr(us,"StructArrayLayout1ui2");class hs extends Ro{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const i=2*e;return this.float32[i+0]=t,this.float32[i+1]=n,e}}hs.prototype.bytesPerElement=8,Xr(hs,"StructArrayLayout2f8");class ds extends Fo{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}ds.prototype.size=40;class ps extends Jo{get(e){return new ds(this,e)}}Xr(ps,"CollisionBoxArray");class fs extends Fo{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}fs.prototype.size=60;class ms extends rs{get(e){return new fs(this,e)}}Xr(ms,"PlacedSymbolArray");class gs extends Fo{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(e){this._structArray.uint32[this._pos4+15]=e}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}gs.prototype.size=76;class vs extends os{get(e){return new gs(this,e)}}Xr(vs,"SymbolInstanceArray");class ys extends ss{getoffsetX(e){return this.float32[1*e+0]}}Xr(ys,"GlyphOffsetArray");class _s extends jo{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}Xr(_s,"SymbolLineVertexArray");class bs extends Fo{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}bs.prototype.size=12;class xs extends ls{get(e){return new bs(this,e)}}Xr(xs,"FeatureIndexArray");class ws extends cs{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}Xr(ws,"FillExtrusionCentroidArray");const Cs=$o([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),ks=$o([{name:"a_dash",components:4,type:"Uint16"}]);var Ss={exports:{}},Es={exports:{}};Es.exports=function(e,t){var n,i,r,o,s,a,l,c;for(i=e.length-(n=3&e.length),r=t,s=3432918353,a=461845907,c=0;c<i;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,r=27492+(65535&(o=5*(65535&(r=(r^=l=(65535&(l=(l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:r^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295}return r^=e.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0};var Ts=Es.exports,Ms={exports:{}};Ms.exports=function(e,t){for(var n,i=e.length,r=t^i,o=0;i>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),i-=4,++o;switch(i){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0};var As=Ts,Os=Ms.exports;Ss.exports=As,Ss.exports.murmur3=As,Ss.exports.murmur2=Os;var Is=d(Ss.exports);class Ds{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,t,n,i){this.ids.push(Ps(e)),this.positions.push(t,n,i)}getPositions(e){const t=Ps(e);let n=0,i=this.ids.length-1;for(;n<i;){const e=n+i>>1;this.ids[e]>=t?i=e:n=e+1}const r=[];for(;this.ids[n]===t;)r.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return r}static serialize(e,t){const n=new Float64Array(e.ids),i=new Uint32Array(e.positions);return zs(n,i,0,n.length-1),t&&t.push(n.buffer,i.buffer),{ids:n,positions:i}}static deserialize(e){const t=new Ds;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t}}function Ps(e){const t=+e;return!isNaN(t)&&Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER?t:Is(String(e))}function zs(e,t,n,i){for(;n<i;){const r=e[n+i>>1];let o=n-1,s=i+1;for(;;){do{o++}while(e[o]<r);do{s--}while(e[s]>r);if(o>=s)break;Ls(e,o,s),Ls(t,3*o,3*s),Ls(t,3*o+1,3*s+1),Ls(t,3*o+2,3*s+2)}s-n<i-s?(zs(e,t,n,s),n=s+1):(zs(e,t,s+1,i),i=s)}}function Ls(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}Xr(Ds,"FeaturePositionMap");class Bs{constructor(e){this.gl=e.gl,this.initialized=!1}fetchUniformLocation(e,t){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(e,t),this.initialized=!0),!!this.location}}class Fs extends Bs{constructor(e){super(e),this.current=0}set(e,t,n){this.fetchUniformLocation(e,t)&&this.current!==n&&(this.current=n,this.gl.uniform1f(this.location,n))}}class Rs extends Bs{constructor(e){super(e),this.current=[0,0,0,0]}set(e,t,n){this.fetchUniformLocation(e,t)&&(n[0]===this.current[0]&&n[1]===this.current[1]&&n[2]===this.current[2]&&n[3]===this.current[3]||(this.current=n,this.gl.uniform4f(this.location,n[0],n[1],n[2],n[3])))}}class $s extends Bs{constructor(e){super(e),this.current=It.transparent}set(e,t,n){this.fetchUniformLocation(e,t)&&(n.r===this.current.r&&n.g===this.current.g&&n.b===this.current.b&&n.a===this.current.a||(this.current=n,this.gl.uniform4f(this.location,n.r,n.g,n.b,n.a)))}}const Ns=new Float32Array(16),js=new Float32Array(9),Vs=new Float32Array(4);function Us(e){return[Lo(255*e.r,255*e.g),Lo(255*e.b,255*e.a)]}class qs{constructor(e,t,n){this.value=e,this.uniformNames=t.map((e=>`u_${e}`)),this.type=n}setUniform(e,t,n,i,r){t.set(e,r,i.constantOr(this.value))}getBinding(e,t){return"color"===this.type?new $s(e):new Fs(e)}}class Hs{constructor(e,t){this.uniformNames=t.map((e=>`u_${e}`)),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(e){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br)}setUniform(e,t,n,i,r){const o="u_pattern"===r||"u_dash"===r?this.pattern:"u_pixel_ratio"===r?this.pixelRatio:null;o&&t.set(e,r,o)}getBinding(e,t){return"u_pattern"===t||"u_dash"===t?new Rs(e):new Fs(e)}}class Ws{constructor(e,t,n,i){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===n?2:1,offset:0}))),this.paintVertexArray=new i}populatePaintArray(e,t,n,i,r,o){const s=this.paintVertexArray.length,a=this.expression.evaluate(new wo(0),t,{},r,i,o);this.paintVertexArray.resize(e),this._setPaintValue(s,e,a)}updatePaintArray(e,t,n,i,r){const o=this.expression.evaluate({zoom:0},n,i,void 0,r);this._setPaintValue(e,t,o)}_setPaintValue(e,t,n){if("color"===this.type){const i=Us(n);for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,i[0],i[1])}else{for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}}upload(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))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Gs{constructor(e,t,n,i,r,o){this.expression=e,this.uniformNames=t.map((e=>`u_${e}_t`)),this.type=n,this.useIntegerZoom=i,this.zoom=r,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===n?4:2,offset:0}))),this.paintVertexArray=new o}populatePaintArray(e,t,n,i,r,o){const s=this.expression.evaluate(new wo(this.zoom),t,{},r,i,o),a=this.expression.evaluate(new wo(this.zoom+1),t,{},r,i,o),l=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(l,e,s,a)}updatePaintArray(e,t,n,i,r){const o=this.expression.evaluate({zoom:this.zoom},n,i,void 0,r),s=this.expression.evaluate({zoom:this.zoom+1},n,i,void 0,r);this._setPaintValue(e,t,o,s)}_setPaintValue(e,t,n,i){if("color"===this.type){const r=Us(n),o=Us(i);for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,r[0],r[1],o[0],o[1])}else{for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,n,i);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(i))}}upload(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))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t,n,i,r){const o=this.useIntegerZoom?Math.floor(n.zoom):n.zoom,s=T(this.expression.interpolationFactor(o,this.zoom,this.zoom+1),0,1);t.set(e,r,s)}getBinding(e,t){return new Fs(e)}}class Zs{constructor(e,t,n,i,r){this.expression=e,this.layerId=r,this.paintVertexAttributes=("array"===n?ks:Cs).members;for(let o=0;o<t.length;++o);this.paintVertexArray=new i}populatePaintArray(e,t,n){const i=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValues(i,e,t.patterns&&t.patterns[this.layerId],n)}updatePaintArray(e,t,n,i,r,o){this._setPaintValues(e,t,n.patterns&&n.patterns[this.layerId],o)}_setPaintValues(e,t,n,i){if(!i||!n)return;const r=i[n];if(!r)return;const{tl:o,br:s,pixelRatio:a}=r;for(let l=e;l<t;l++)this.paintVertexArray.emplace(l,o[0],o[1],s[0],s[1],a)}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Xs{constructor(e,t,n=()=>!0){this.binders={},this._buffers=[];const i=[];for(const r in e.paint._values){if(!n(r))continue;const o=e.paint.get(r);if(!(o instanceof Ao&&Bi(o.property.specification)))continue;const s=Js(r,e.type),a=o.value,l=o.property.specification.type,c=!!o.property.useIntegerZoom,u="line-dasharray"===r||r.endsWith("pattern"),h="line-dasharray"===r&&"constant"!==e.layout.get("line-cap").value.kind;if("constant"!==a.kind||h)if("source"===a.kind||h||u){const t=ta(r,l,"source");this.binders[r]=u?new Zs(a,s,l,t,e.id):new Ws(a,s,l,t),i.push(`/a_${r}`)}else{const e=ta(r,l,"composite");this.binders[r]=new Gs(a,s,l,c,t,e),i.push(`/z_${r}`)}else this.binders[r]=u?new Hs(a.value,s):new qs(a.value,s,l),i.push(`/u_${r}`)}this.cacheKey=i.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof Ws||t instanceof Gs?t.maxValue:0}populatePaintArrays(e,t,n,i,r,o){for(const s in this.binders){const a=this.binders[s];(a instanceof Ws||a instanceof Gs||a instanceof Zs)&&a.populatePaintArray(e,t,n,i,r,o)}}setConstantPatternPositions(e){for(const t in this.binders){const n=this.binders[t];n instanceof Hs&&n.setConstantPatternPositions(e)}}updatePaintArrays(e,t,n,i,r,o){let s=!1;for(const a in e){const l=t.getPositions(a);for(const t of l){const l=n.feature(t.index);for(const n in this.binders){const c=this.binders[n];if((c instanceof Ws||c instanceof Gs||c instanceof Zs)&&!0===c.expression.isStateDependent){const u=i.paint.get(n);c.expression=u.value,c.updatePaintArray(t.start,t.end,l,e[a],r,o),s=!0}}}}return s}defines(){const e=[];for(const t in this.binders){const n=this.binders[t];(n instanceof qs||n instanceof Hs)&&e.push(...n.uniformNames.map((e=>`#define HAS_UNIFORM_${e}`)))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const n=this.binders[t];if(n instanceof Ws||n instanceof Gs||n instanceof Zs)for(let t=0;t<n.paintVertexAttributes.length;t++)e.push(n.paintVertexAttributes[t].name)}return e}getBinderUniforms(){const e=[];for(const t in this.binders){const n=this.binders[t];if(n instanceof qs||n instanceof Hs||n instanceof Gs)for(const t of n.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e){const t=[];for(const n in this.binders){const i=this.binders[n];if(i instanceof qs||i instanceof Hs||i instanceof Gs)for(const r of i.uniformNames)t.push({name:r,property:n,binding:i.getBinding(e,r)})}return t}setUniforms(e,t,n,i,r){for(const{name:o,property:s,binding:a}of n)this.binders[s].setUniform(e,a,r,i.get(s),o)}updatePaintBuffers(){this._buffers=[];for(const e in this.binders){const t=this.binders[e];(t instanceof Ws||t instanceof Gs||t instanceof Zs)&&t.paintVertexBuffer&&this._buffers.push(t.paintVertexBuffer)}}upload(e){for(const t in this.binders){const n=this.binders[t];(n instanceof Ws||n instanceof Gs||n instanceof Zs)&&n.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof Ws||t instanceof Gs||t instanceof Zs)&&t.destroy()}}}class Ks{constructor(e,t,n=()=>!0){this.programConfigurations={};for(const i of e)this.programConfigurations[i.id]=new Xs(i,t,n);this.needsUpload=!1,this._featureMap=new Ds,this._bufferOffset=0}populatePaintArrays(e,t,n,i,r,o,s){for(const a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(e,t,i,r,o,s);void 0!==t.id&&this._featureMap.add(t.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,n,i,r){for(const o of n)this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(e,this._featureMap,t,o,i,r)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const Ys={"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","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function Js(e,t){return Ys[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}const Qs={"line-pattern":{source:Wo,composite:Wo},"fill-pattern":{source:Wo,composite:Wo},"fill-extrusion-pattern":{source:Wo,composite:Wo},"line-dasharray":{source:Go,composite:Go}},ea={color:{source:hs,composite:Ho},number:{source:ss,composite:hs}};function ta(e,t,n){const i=Qs[e];return i&&i[n]||ea[t][n]}Xr(qs,"ConstantBinder"),Xr(Hs,"PatternConstantBinder"),Xr(Ws,"SourceExpressionBinder"),Xr(Zs,"PatternCompositeBinder"),Xr(Gs,"CompositeExpressionBinder"),Xr(Xs,"ProgramConfiguration",{omit:["_buffers"]}),Xr(Ks,"ProgramConfigurationSet");const na="-transition";class ia extends Qe{constructor(e,t){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&"sky"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),t.layout&&(this._unevaluatedLayout=new Mo(t.layout)),t.paint)){this._transitionablePaint=new So(t.paint);for(const t in e.paint)this.setPaintProperty(t,e.paint[t],{validate:!1});for(const t in e.layout)this.setLayoutProperty(t,e.layout[t],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Oo(t.paint)}}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t,n={}){null!=t&&this._validate(jr,`layers.${this.id}.layout.${e}`,e,t,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)}getPaintProperty(e){return $(e,na)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t,n={}){if(null!=t&&this._validate(Nr,`layers.${this.id}.paint.${e}`,e,t,n))return!1;if($(e,na))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;{const n=this._transitionablePaint._values[e],i=n.value.isDataDriven(),r=n.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);const o=this._transitionablePaint._values[e].value,s=o.isDataDriven(),a=$(e,"pattern")||"line-dasharray"===e;return s||i||a||this._handleOverridablePaintPropertyUpdate(e,r,o)}}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getProgramConfiguration(e){return null}_handleOverridablePaintPropertyUpdate(e,t,n){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){const 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),j(e,((e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)))}_validate(e,t,n,i,r={}){return(!r||!1!==r.validate)&&Ur(this,e.call($r,{key:t,layerType:this.type,objectKey:n,value:i,styleSpec:et,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof Ao&&Bi(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=hr(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const ra=$o([{name:"a_pos",components:2,type:"Int16"}],4),oa=$o([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class sa{constructor(e=[]){this.segments=e}prepareSegment(e,t,n,i){let r=this.segments[this.segments.length-1];return e>sa.MAX_VERTEX_ARRAY_LENGTH&&q(`Max vertices per segment is ${sa.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!r||r.vertexLength+e>sa.MAX_VERTEX_ARRAY_LENGTH||r.sortKey!==i)&&(r={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==i&&(r.sortKey=i),this.segments.push(r)),r}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,n,i){return new sa([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:i,vaos:{},sortKey:0}])}}sa.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Xr(sa,"SegmentVector");var aa=8192;class la{constructor(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]))}setNorthEast(e){return this._ne=e instanceof Vl?new Vl(e.lng,e.lat):Vl.convert(e),this}setSouthWest(e){return this._sw=e instanceof Vl?new Vl(e.lng,e.lat):Vl.convert(e),this}extend(e){const t=this._sw,n=this._ne;let i,r;if(e instanceof Vl)i=e,r=e;else{if(!(e instanceof la))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(la.convert(e)):this.extend(Vl.convert(e)):"object"==typeof e&&null!==e&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(Vl.convert(e)):this;if(i=e._sw,r=e._ne,!i||!r)return this}return t||n?(t.lng=Math.min(i.lng,t.lng),t.lat=Math.min(i.lat,t.lat),n.lng=Math.max(r.lng,n.lng),n.lat=Math.max(r.lat,n.lat)):(this._sw=new Vl(i.lng,i.lat),this._ne=new Vl(r.lng,r.lat)),this}getCenter(){return new Vl((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Vl(this.getWest(),this.getNorth())}getSouthEast(){return new Vl(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:n}=Vl.convert(e);let i=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=n&&n<=this._ne.lat&&i}static convert(e){return!e||e instanceof la?e:new la(e)}}var ca=1e-6,ua="undefined"!=typeof Float32Array?Float32Array:Array;function ha(){var e=new ua(9);return ua!=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}function da(e,t,n){var i=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=n[0],p=n[1],f=n[2],m=n[3],g=n[4],v=n[5],y=n[6],_=n[7],b=n[8];return e[0]=d*i+p*s+f*c,e[1]=d*r+p*a+f*u,e[2]=d*o+p*l+f*h,e[3]=m*i+g*s+v*c,e[4]=m*r+g*a+v*u,e[5]=m*o+g*l+v*h,e[6]=y*i+_*s+b*c,e[7]=y*r+_*a+b*u,e[8]=y*o+_*l+b*h,e}function pa(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,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function fa(e,t){var n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],u=t[8],h=t[9],d=t[10],p=t[11],f=t[12],m=t[13],g=t[14],v=t[15],y=n*a-i*s,_=n*l-r*s,b=n*c-o*s,x=i*l-r*a,w=i*c-o*a,C=r*c-o*l,k=u*m-h*f,S=u*g-d*f,E=u*v-p*f,T=h*g-d*m,M=h*v-p*m,A=d*v-p*g,O=y*A-_*M+b*T+x*E-w*S+C*k;return O?(e[0]=(a*A-l*M+c*T)*(O=1/O),e[1]=(r*M-i*A-o*T)*O,e[2]=(m*C-g*w+v*x)*O,e[3]=(d*w-h*C-p*x)*O,e[4]=(l*E-s*A-c*S)*O,e[5]=(n*A-r*E+o*S)*O,e[6]=(g*b-f*C-v*_)*O,e[7]=(u*C-d*b+p*_)*O,e[8]=(s*M-a*E+c*k)*O,e[9]=(i*E-n*M-o*k)*O,e[10]=(f*w-m*b+v*y)*O,e[11]=(h*b-u*w-p*y)*O,e[12]=(a*S-s*T-l*k)*O,e[13]=(n*T-i*S+r*k)*O,e[14]=(m*_-f*x-g*y)*O,e[15]=(u*x-h*_+d*y)*O,e):null}function ma(e,t,n){var i=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=t[9],p=t[10],f=t[11],m=t[12],g=t[13],v=t[14],y=t[15],_=n[0],b=n[1],x=n[2],w=n[3];return e[0]=_*i+b*a+x*h+w*m,e[1]=_*r+b*l+x*d+w*g,e[2]=_*o+b*c+x*p+w*v,e[3]=_*s+b*u+x*f+w*y,e[4]=(_=n[4])*i+(b=n[5])*a+(x=n[6])*h+(w=n[7])*m,e[5]=_*r+b*l+x*d+w*g,e[6]=_*o+b*c+x*p+w*v,e[7]=_*s+b*u+x*f+w*y,e[8]=(_=n[8])*i+(b=n[9])*a+(x=n[10])*h+(w=n[11])*m,e[9]=_*r+b*l+x*d+w*g,e[10]=_*o+b*c+x*p+w*v,e[11]=_*s+b*u+x*f+w*y,e[12]=(_=n[12])*i+(b=n[13])*a+(x=n[14])*h+(w=n[15])*m,e[13]=_*r+b*l+x*d+w*g,e[14]=_*o+b*c+x*p+w*v,e[15]=_*s+b*u+x*f+w*y,e}function ga(e,t,n){var i,r,o,s,a,l,c,u,h,d,p,f,m=n[0],g=n[1],v=n[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*v+t[12],e[13]=t[1]*m+t[5]*g+t[9]*v+t[13],e[14]=t[2]*m+t[6]*g+t[10]*v+t[14],e[15]=t[3]*m+t[7]*g+t[11]*v+t[15]):(r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=t[9],p=t[10],f=t[11],e[0]=i=t[0],e[1]=r,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e[6]=c,e[7]=u,e[8]=h,e[9]=d,e[10]=p,e[11]=f,e[12]=i*m+a*g+h*v+t[12],e[13]=r*m+l*g+d*v+t[13],e[14]=o*m+c*g+p*v+t[14],e[15]=s*m+u*g+f*v+t[15]),e}function va(e,t,n){var i=n[0],r=n[1],o=n[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function ya(e,t,n){var i=Math.sin(n),r=Math.cos(n),o=t[4],s=t[5],a=t[6],l=t[7],c=t[8],u=t[9],h=t[10],d=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]=o*r+c*i,e[5]=s*r+u*i,e[6]=a*r+h*i,e[7]=l*r+d*i,e[8]=c*r-o*i,e[9]=u*r-s*i,e[10]=h*r-a*i,e[11]=d*r-l*i,e}function _a(e,t,n){var i=Math.sin(n),r=Math.cos(n),o=t[0],s=t[1],a=t[2],l=t[3],c=t[8],u=t[9],h=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*r-c*i,e[1]=s*r-u*i,e[2]=a*r-h*i,e[3]=l*r-d*i,e[8]=o*i+c*r,e[9]=s*i+u*r,e[10]=a*i+h*r,e[11]=l*i+d*r,e}function ba(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function xa(e,t,n){var i,r,o,s=n[0],a=n[1],l=n[2],c=Math.hypot(s,a,l);return c<ca?null:(s*=c=1/c,a*=c,l*=c,i=Math.sin(t),r=Math.cos(t),e[0]=s*s*(o=1-r)+r,e[1]=a*s*o+l*i,e[2]=l*s*o-a*i,e[3]=0,e[4]=s*a*o-l*i,e[5]=a*a*o+r,e[6]=l*a*o+s*i,e[7]=0,e[8]=s*l*o+a*i,e[9]=a*l*o-s*i,e[10]=l*l*o+r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var wa=ma;function Ca(){var e=new ua(3);return ua!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function ka(e){var t=new ua(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Sa(e){return Math.hypot(e[0],e[1],e[2])}function Ea(e,t,n){var i=new ua(3);return i[0]=e,i[1]=t,i[2]=n,i}function Ta(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function Ma(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function Aa(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function Oa(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function Ia(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function Da(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function Pa(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e}function za(e,t){var n=t[0],i=t[1],r=t[2],o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function La(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Ba(e,t,n){var i=t[0],r=t[1],o=t[2],s=n[0],a=n[1],l=n[2];return e[0]=r*l-o*a,e[1]=o*s-i*l,e[2]=i*a-r*s,e}function Fa(e,t,n){var i=t[0],r=t[1],o=t[2],s=n[3]*i+n[7]*r+n[11]*o+n[15];return e[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/(s=s||1),e[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/s,e[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/s,e}function Ra(e,t,n){var i=n[0],r=n[1],o=n[2],s=t[0],a=t[1],l=t[2],c=r*l-o*a,u=o*s-i*l,h=i*a-r*s,d=r*h-o*u,p=o*c-i*h,f=i*u-r*c,m=2*n[3];return u*=m,h*=m,p*=2,f*=2,e[0]=s+(c*=m)+(d*=2),e[1]=a+u+p,e[2]=l+h+f,e}var $a,Na=Ma,ja=Aa,Va=Sa;function Ua(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 qa(e,t){var n=t[0],i=t[1],r=t[2],o=t[3],s=n*n+i*i+r*r+o*o;return s>0&&(s=1/Math.sqrt(s)),e[0]=n*s,e[1]=i*s,e[2]=r*s,e[3]=o*s,e}function Ha(e,t,n){var i=t[0],r=t[1],o=t[2],s=t[3];return e[0]=n[0]*i+n[4]*r+n[8]*o+n[12]*s,e[1]=n[1]*i+n[5]*r+n[9]*o+n[13]*s,e[2]=n[2]*i+n[6]*r+n[10]*o+n[14]*s,e[3]=n[3]*i+n[7]*r+n[11]*o+n[15]*s,e}function Wa(){var e=new ua(4);return ua!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function Ga(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}function Za(e,t,n){n*=.5;var i=t[0],r=t[1],o=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=i*l+s*a,e[1]=r*l+o*a,e[2]=o*l-r*a,e[3]=s*l-i*a,e}function Xa(e,t,n){n*=.5;var i=t[0],r=t[1],o=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=i*l-o*a,e[1]=r*l+s*a,e[2]=o*l+i*a,e[3]=s*l-r*a,e}Ca(),$a=new ua(4),ua!=Float32Array&&($a[0]=0,$a[1]=0,$a[2]=0,$a[3]=0);var Ka=qa;Ca(),Ea(1,0,0),Ea(0,1,0),Wa(),Wa(),ha();const Ya=$o([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:Ja}=Ya,Qa=$o([{name:"a_pos_3",components:3,type:"Int16"}]);var el=$o([{name:"a_pos",type:"Int16",components:2}]);class tl{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,n){const i=La(t,this.dir);if(Math.abs(i)<1e-6)return!1;const r=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1]+(e[2]-this.pos[2])*t[2])/i;return n[0]=this.pos[0]+this.dir[0]*r,n[1]=this.pos[1]+this.dir[1]*r,n[2]=this.pos[2]+this.dir[2]*r,!0}closestPointOnSphere(e,t,n){if(function(e,t){var n=e[0],i=e[1],r=e[2],o=t[0],s=t[1],a=t[2];return Math.abs(n-o)<=ca*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-s)<=ca*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(r-a)<=ca*Math.max(1,Math.abs(r),Math.abs(a))}(this.pos,e)||0===t)return n[0]=n[1]=n[2]=0,!1;const[i,r,o]=this.dir,s=this.pos[0]-e[0],a=this.pos[1]-e[1],l=this.pos[2]-e[2],c=i*i+r*r+o*o,u=2*(s*i+a*r+l*o),h=u*u-4*c*(s*s+a*a+l*l-t*t);if(h<0){const e=Math.max(-u/2,0),c=s+i*e,h=a+r*e,d=l+o*e,p=Math.hypot(c,h,d);return n[0]=c*t/p,n[1]=h*t/p,n[2]=d*t/p,!1}{const e=(-u-Math.sqrt(h))/(2*c);if(e<0){const e=Math.hypot(s,a,l);return n[0]=s*t/e,n[1]=a*t/e,n[2]=l*t/e,!1}return n[0]=s+i*e,n[1]=a+r*e,n[2]=l+o*e,!0}}}class nl{constructor(e,t,n,i,r){this.TL=e,this.TR=t,this.BR=n,this.BL=i,this.horizon=r}static fromInvProjectionMatrix(e,t,n){const i=[-1,1,1],r=[1,1,1],o=[1,-1,1],s=[-1,-1,1],a=Fa(i,i,e),l=Fa(r,r,e),c=Fa(o,o,e),u=Fa(s,s,e);return new nl(a,l,c,u,t/n)}}class il{constructor(e,t){this.points=e,this.planes=t}static fromInvProjectionMatrix(e,t,n,i){const r=Math.pow(2,n),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((n=>{const o=Ha([],n,e),s=1/o[3]/t*r;return function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}(o,o,[s,s,i?1/o[3]:s,s])})),s=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((e=>{const t=za([],Ba([],Na([],o[e[0]],o[e[1]]),Na([],o[e[2]],o[e[1]]))),n=-La(t,o[e[1]]);return t.concat(n)}));return new il(o,s)}}class rl{static fromPoints(e){const t=[1/0,1/0,1/0],n=[-1/0,-1/0,-1/0];for(const i of e)Oa(t,t,i),Ia(n,n,i);return new rl(t,n)}static applyTransform(e,t){const n=e.getCorners();for(let i=0;i<n.length;++i)Fa(n[i],n[i],t);return rl.fromPoints(n)}constructor(e,t){this.min=e,this.max=t,this.center=Da([],Ta([],this.min,this.max),.5)}quadrant(e){const t=[e%2==0,e<2],n=ka(this.min),i=ka(this.max);for(let r=0;r<t.length;r++)n[r]=t[r]?this.min[r]:this.center[r],i[r]=t[r]?this.center[r]:this.max[r];return i[2]=this.max[2],new rl(n,i)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}getCorners(){const e=this.min,t=this.max;return[[e[0],e[1],e[2]],[t[0],e[1],e[2]],[t[0],t[1],e[2]],[e[0],t[1],e[2]],[e[0],e[1],t[2]],[t[0],e[1],t[2]],[t[0],t[1],t[2]],[e[0],t[1],t[2]]]}intersects(e){const t=this.getCorners();let n=!0;for(let i=0;i<e.planes.length;i++){const r=e.planes[i];let o=0;for(let e=0;e<t.length;e++)o+=La(r,t[e])+r[3]>=0;if(0===o)return 0;o!==t.length&&(n=!1)}if(n)return 2;for(let i=0;i<3;i++){let t=Number.MAX_VALUE,n=-Number.MAX_VALUE;for(let r=0;r<e.points.length;r++){const o=e.points[r][i]-this.min[i];t=Math.min(t,o),n=Math.max(n,o)}if(n<0||t>this.max[i]-this.min[i])return 0}return 1}}const ol=5,sl=6,al=aa/Math.PI/2,ll=16383,cl=64,ul=[cl,32,16],hl=-al,dl=al,pl=[new rl([hl,hl,hl],[dl,dl,dl]),new rl([hl,hl,hl],[0,0,dl]),new rl([0,hl,hl],[dl,0,dl]),new rl([hl,0,hl],[0,dl,dl]),new rl([0,0,hl],[dl,dl,dl])];function fl(e){return e*al/$l}function ml(e,t,n,i=!0){const r=Da([],e._camera.position,e.worldSize),o=[t,n,1,1];Ha(o,o,e.pixelMatrixInverse),Ua(o,o,1/o[3]);const s=za([],Na([],o,r)),a=e.globeMatrix,l=[a[12],a[13],a[14]],c=Na([],l,r),u=Sa(c),h=za([],c),d=e.worldSize/(2*Math.PI),p=La(h,s),f=Math.asin(d/u);if(f<Math.acos(p)){if(!i)return null;const e=[],t=[];Da(e,s,u/p),za(t,Na(t,e,c)),za(s,Ta(s,c,Da(s,t,Math.tan(f)*u)))}const m=[];new tl(r,s).closestPointOnSphere(l,d,m);const g=za([],J(a,0)),v=za([],J(a,1)),y=za([],J(a,2)),_=La(g,m),b=La(v,m),x=La(y,m),C=w(Math.asin(-b/d));let k=w(Math.atan2(_,x));k=e.center.lng+function(e,t){const n=(t-e+180)%360-180;return n<-180?n+360:n}(e.center.lng,k);const S=ql(k),E=T(Hl(C),0,1);return new Jl(S,E)}class gl{constructor(e,t,n){this.a=Na([],e,n),this.b=Na([],t,n),this.center=n;const i=za([],this.a),r=za([],this.b);this.angle=Math.acos(La(i,r))}}function vl(e,t){if(0===e.angle)return null;let n;return n=0===e.a[t]?1/e.angle*.5*Math.PI:1/e.angle*Math.atan(e.b[t]/e.a[t]/Math.sin(e.angle)-1/Math.tan(e.angle)),n<0||n>1?null:function(e,t,n,i){const r=Math.sin(n);return e*(Math.sin((1-i)*n)/r)+t*(Math.sin(i*n)/r)}(e.a[t],e.b[t],e.angle,T(n,0,1))+e.center[t]}function yl(e){if(e.z<=1)return pl[e.z+2*e.y+e.x];const t=kl(Cl(e));return rl.fromPoints(t)}function _l(e,t,n){return Da(e,e,1-n),Pa(e,e,t,n)}function bl(e,t){const n=Pl(t.zoom);if(0===n)return yl(e);const i=Cl(e),r=kl(i),o=ql(i.getWest())*t.worldSize,s=ql(i.getEast())*t.worldSize,a=Hl(i.getNorth())*t.worldSize,l=Hl(i.getSouth())*t.worldSize,c=[o,a,0],u=[s,a,0],h=[o,l,0],d=[s,l,0],p=fa([],t.globeMatrix);return Fa(c,c,p),Fa(u,u,p),Fa(h,h,p),Fa(d,d,p),r[0]=_l(r[0],h,n),r[1]=_l(r[1],d,n),r[2]=_l(r[2],u,n),r[3]=_l(r[3],c,n),rl.fromPoints(r)}function xl(e,t,n){for(const i of e)Fa(i,i,t),Da(i,i,n)}function wl(e,t,n){const i=t/e.worldSize,r=e.globeMatrix;if(n.z<=1){const e=yl(n).getCorners();return xl(e,r,i),rl.fromPoints(e)}const o=Cl(n),s=kl(o);xl(s,r,i);const a=Number.MAX_VALUE,l=[-a,-a,-a],c=[a,a,a];if(o.contains(e.center)){for(const e of s)Oa(c,c,e),Ia(l,l,e);l[2]=0;const t=e.point,n=[t.x*i,t.y*i,0];return Oa(c,c,n),Ia(l,l,n),new rl(c,l)}const u=[r[12]*i,r[13]*i,r[14]*i],h=o.getCenter(),d=T(e.center.lat,-Kl,Kl),p=T(h.lat,-Kl,Kl),f=ql(e.center.lng),m=Hl(d);let g=f-ql(h.lng);const v=m-Hl(p);g>.5?g-=1:g<-.5&&(g+=1);let y=0;Math.abs(g)>Math.abs(v)?y=g>=0?1:3:(y=v>=0?0:2,Pa(u,u,[r[4]*i,r[5]*i,r[6]*i],-Math.sin(x(v>=0?o.getSouth():o.getNorth()))*al));const _=s[y],b=s[(y+1)%4],w=new gl(_,b,u),C=[vl(w,0)||_[0],vl(w,1)||_[1],vl(w,2)||_[2]],k=Pl(e.zoom);if(k>0){const i=function({x:e,y:t,z:n},i,r,o,s){const a=1/(1<<n);let l=e*a,c=l+a,u=t*a,h=u+a,d=0;const p=(l+c)/2-o;return p>.5?d=-1:p<-.5&&(d=1),l=((l+d)*i-(o*=i))*r+o,c=((c+d)*i-o)*r+o,u=(u*i-(s*=i))*r+s,h=(h*i-s)*r+s,[[l,h,0],[c,h,0],[c,u,0],[l,u,0]]}(n,t,e._pixelsPerMercatorPixel,f,m);for(let e=0;e<s.length;e++)_l(s[e],i[e],k);const r=Ta([],i[y],i[(y+1)%4]);Da(r,r,.5),_l(C,r,k)}for(const x of s)Oa(c,c,x),Ia(l,l,x);return c[2]=Math.min(_[2],b[2]),Oa(c,c,C),Ia(l,l,C),new rl(c,l)}function Cl({x:e,y:t,z:n}){const i=1/(1<<n),r=new Vl(Gl(e*i),Zl((t+1)*i)),o=new Vl(Gl((e+1)*i),Zl(t*i));return new la(r,o)}function kl(e){const t=x(e.getNorth()),n=x(e.getSouth()),i=Math.cos(t),r=Math.cos(n),o=Math.sin(t),s=Math.sin(n),a=e.getWest(),l=e.getEast();return[Sl(r,s,a),Sl(r,s,l),Sl(i,o,l),Sl(i,o,a)]}function Sl(e,t,n,i=al){return n=x(n),[e*Math.sin(n)*i,-t*i,e*Math.cos(n)*i]}function El(e,t,n){return Sl(Math.cos(x(e)),Math.sin(x(e)),t,n)}function Tl(e,t,n,i){const r=1<<n.z,o=(e/aa+n.x)/r;return El(Zl((t/aa+n.y)/r),Gl(o),i)}function Ml({min:e,max:t}){return ll/Math.max(t[0]-e[0],t[1]-e[1],t[2]-e[2])}const Al=new Float64Array(16);function Ol(e){const t=Ml(e),n=ba(Al,[t,t,t]);return ga(n,n,((i=[])[0]=-(r=e.min)[0],i[1]=-r[1],i[2]=-r[2],i));var i,r}function Il(e){const t=(i=e.min,(n=Al)[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=i[0],n[13]=i[1],n[14]=i[2],n[15]=1,n);var n,i;const r=1/Ml(e);return va(t,t,[r,r,r])}function Dl(e,t,n,i,r){const o=function(e){const t=aa/(2*Math.PI);return e/(2*Math.PI)/t}(n),s=[e,t,-n/(2*Math.PI)],a=pa(new Float64Array(16));return ga(a,a,s),va(a,a,[o,o,o]),ya(a,a,x(-r)),_a(a,a,x(-i)),a}function Pl(e){return M(ol,sl,e)}function zl(e,t){const n=El(t.lat,t.lng),i=function(e){const t=El(e._center.lat,e._center.lng);let n=Ba([],Ea(0,1,0),t);const i=xa([],-e.angle,t);n=Fa(n,n,i),xa(i,-e._pitch,n);const r=za([],t);return Da(r,r,fl(e.cameraToCenterDistance/e.pixelsPerMeter)),Fa(r,r,i),Ta([],t,r)}(e);return s=(r=Ma([],i,n))[0],a=r[1],l=r[2],c=(o=n)[0],u=o[1],h=o[2],p=(d=Math.sqrt(s*s+a*a+l*l)*Math.sqrt(c*c+u*u+h*h))&&La(r,o)/d,Math.acos(Math.min(Math.max(p,-1),1));var r,o,s,a,l,c,u,h,d,p}function Ll(e,t){return zl(e,t)>Math.PI/2*1.01}const Bl=x(85),Fl=Math.cos(Bl),Rl=Math.sin(Bl),$l=6371008.8,Nl=2*Math.PI*$l;class jl{constructor(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")}wrap(){return new jl(A(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,n=this.lat*t,i=e.lat*t,r=Math.sin(n)*Math.sin(i)+Math.cos(n)*Math.cos(i)*Math.cos((e.lng-this.lng)*t);return $l*Math.acos(Math.min(r,1))}toBounds(e=0){const t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return new la(new jl(this.lng-n,this.lat-t),new jl(this.lng+n,this.lat+t))}toEcef(e){const t=fl(e);return El(this.lat,this.lng,al+t)}static convert(e){if(e instanceof jl)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new jl(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new jl(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 Vl=jl;function Ul(e){return Nl*Math.cos(e*Math.PI/180)}function ql(e){return(180+e)/360}function Hl(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Wl(e,t){return e/Ul(t)}function Gl(e){return 360*e-180}function Zl(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}function Xl(e,t){return e*Ul(Zl(t))}const Kl=85.051129;function Yl(e){return 1/Math.cos(e*Math.PI/180)}class Jl{constructor(e,t,n=0){this.x=+e,this.y=+t,this.z=+n}static fromLngLat(e,t=0){const n=Vl.convert(e);return new Jl(ql(n.lng),Hl(n.lat),Wl(t,n.lat))}toLngLat(){return new Vl(Gl(this.x),Zl(this.y))}toAltitude(){return Xl(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Nl*Yl(Zl(this.y))}}function Ql(e,t,n,i,r,o,s,a,l){const c=(t+i)/2,u=(n+r)/2,h=new y(c,u);a(h),function(e,t,n,i,r,o){const s=n-r,a=i-o;return Math.abs((i-t)*s-(n-e)*a)/Math.hypot(s,a)}(h.x,h.y,o.x,o.y,s.x,s.y)>=l?(Ql(e,t,n,c,u,o,h,a,l),Ql(e,c,u,i,r,h,s,a,l)):e.push(s)}function ec(e,t,n){let i=e[0],r=i.x,o=i.y;t(i);const s=[i];for(let a=1;a<e.length;a++){const l=e[a],{x:c,y:u}=l;t(l),Ql(s,r,o,c,u,i,l,t,n),r=c,o=u,i=l}return s}function tc(e,t,n,i){if(i(t,n)){const r=t.add(n)._mult(.5);tc(e,t,r,i),tc(e,r,n,i)}else e.push(n)}function nc(e,t){let n=e[0];const i=[n];for(let r=1;r<e.length;r++){const o=e[r];tc(i,n,o,t),n=o}return i}const ic=Math.pow(2,14)-1,rc=-ic-1;function oc(e,t){const n=Math.round(e.x*t),i=Math.round(e.y*t);return e.x=T(n,rc,ic),e.y=T(i,rc,ic),(n<e.x||n>e.x+1||i<e.y||i>e.y+1)&&q("Geometry exceeds allowed extent, reduce your vector tile buffer size"),e}function sc(e,t,n){const i=e.loadGeometry(),r=e.extent,o=aa/r;if(t&&n&&n.projection.isReprojectedInTileSpace){const o=1<<t.z,{scale:s,x:a,y:l,projection:c}=n,u=e=>{const n=Gl((t.x+e.x/r)/o),i=Zl((t.y+e.y/r)/o),u=c.project(n,i);e.x=(u.x*s-a)*r,e.y=(u.y*s-l)*r};for(let t=0;t<i.length;t++)if(1!==e.type)i[t]=ec(i[t],u,1);else{const e=[];for(const n of i[t])n.x<0||n.x>=r||n.y<0||n.y>=r||(u(n),e.push(n));i[t]=e}}for(const s of i)for(const e of s)oc(e,o);return i}function ac(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?sc(e):[]}}function lc(e,t,n,i,r){e.emplaceBack(2*t+(i+1)/2,2*n+(r+1)/2)}function cc(e,t,n){const i=16384;e.emplaceBack(t.x,t.y,t.z,n[0]*i,n[1]*i,n[2]*i)}class uc{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new jo,this.indexArray=new is,this.segments=new sa,this.programConfigurations=new Ks(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,n,i){const r=this.layers[0],o=[];let s=null;"circle"===r.type&&(s=r.layout.get("circle-sort-key"));for(const{feature:l,id:c,index:u,sourceLayerIndex:h}of e){const e=this.layers[0]._featureFilter.needGeometry,t=ac(l,e);if(!this.layers[0]._featureFilter.filter(new wo(this.zoom),t,n))continue;const r=s?s.evaluate(t,{},n):void 0,a={id:c,properties:l.properties,type:l.type,sourceLayerIndex:h,index:u,geometry:e?t.geometry:sc(l,n,i),patterns:{},sortKey:r};o.push(a)}s&&o.sort(((e,t)=>e.sortKey-t.sortKey));let a=null;"globe"===i.projection.name&&(this.globeExtVertexArray=new Zo,a=i.projection);for(const l of o){const{geometry:i,index:r,sourceLayerIndex:o}=l,s=e[r].feature;this.addFeature(l,i,r,t.availableImages,n,a),t.featureIndex.insert(s,i,r,o,this.index)}}update(e,t,n,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ra.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,oa.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,t,n,i,r,o){for(const s of t)for(const t of s){const n=t.x,i=t.y;if(n<0||n>=aa||i<0||i>=aa)continue;if(o){const e=o.projectTilePoint(n,i,r),t=o.upVector(r,n,i),s=this.globeExtVertexArray;cc(s,e,t),cc(s,e,t),cc(s,e,t),cc(s,e,t)}const s=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),a=s.vertexLength;lc(this.layoutVertexArray,n,i,-1,-1),lc(this.layoutVertexArray,n,i,1,-1),lc(this.layoutVertexArray,n,i,1,1),lc(this.layoutVertexArray,n,i,-1,1),this.indexArray.emplaceBack(a,a+1,a+2),this.indexArray.emplaceBack(a,a+2,a+3),s.vertexLength+=4,s.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},i,r)}}function hc(e,t){for(let n=0;n<e.length;n++)if(bc(t,e[n]))return!0;for(let n=0;n<t.length;n++)if(bc(e,t[n]))return!0;return!!mc(e,t)}function dc(e,t,n){return!!bc(e,t)||!!vc(t,e,n)}function pc(e,t){if(1===e.length)return _c(t,e[0]);for(let n=0;n<t.length;n++){const i=t[n];for(let t=0;t<i.length;t++)if(bc(e,i[t]))return!0}for(let n=0;n<e.length;n++)if(_c(t,e[n]))return!0;for(let n=0;n<t.length;n++)if(mc(e,t[n]))return!0;return!1}function fc(e,t,n){if(e.length>1){if(mc(e,t))return!0;for(let i=0;i<t.length;i++)if(vc(t[i],e,n))return!0}for(let i=0;i<e.length;i++)if(vc(e[i],t,n))return!0;return!1}function mc(e,t){if(0===e.length||0===t.length)return!1;for(let n=0;n<e.length-1;n++){const i=e[n],r=e[n+1];for(let e=0;e<t.length-1;e++)if(gc(i,r,t[e],t[e+1]))return!0}return!1}function gc(e,t,n,i){return H(e,n,i)!==H(t,n,i)&&H(e,t,n)!==H(e,t,i)}function vc(e,t,n){const i=n*n;if(1===t.length)return e.distSqr(t[0])<i;for(let r=1;r<t.length;r++)if(yc(e,t[r-1],t[r])<i)return!0;return!1}function yc(e,t,n){const i=t.distSqr(n);if(0===i)return e.distSqr(t);const r=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/i;return e.distSqr(r<0?t:r>1?n:n.sub(t)._mult(r)._add(t))}function _c(e,t){let n,i,r,o=!1;for(let s=0;s<e.length;s++){n=e[s];for(let e=0,s=n.length-1;e<n.length;s=e++)i=n[e],r=n[s],i.y>t.y!=r.y>t.y&&t.x<(r.x-i.x)*(t.y-i.y)/(r.y-i.y)+i.x&&(o=!o)}return o}function bc(e,t){let n=!1;for(let i=0,r=e.length-1;i<e.length;r=i++){const o=e[i],s=e[r];o.y>t.y!=s.y>t.y&&t.x<(s.x-o.x)*(t.y-o.y)/(s.y-o.y)+o.x&&(n=!n)}return n}function xc(e,t,n,i,r){for(const s of e)if(t<=s.x&&n<=s.y&&i>=s.x&&r>=s.y)return!0;const o=[new y(t,n),new y(t,r),new y(i,r),new y(i,n)];if(e.length>2)for(const s of o)if(bc(e,s))return!0;for(let s=0;s<e.length-1;s++)if(wc(e[s],e[s+1],o))return!0;return!1}function wc(e,t,n){const i=n[0],r=n[2];if(e.x<i.x&&t.x<i.x||e.x>r.x&&t.x>r.x||e.y<i.y&&t.y<i.y||e.y>r.y&&t.y>r.y)return!1;const o=H(e,t,n[0]);return o!==H(e,t,n[1])||o!==H(e,t,n[2])||o!==H(e,t,n[3])}function Cc(e,t,n){const i=t.paint.get(e).value;return"constant"===i.kind?i.value:n.programConfigurations.get(t.id).getMaxValue(e)}function kc(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Sc(e,t,n,i,r){if(!t[0]&&!t[1])return e;const o=y.convert(t)._mult(r);"viewport"===n&&o._rotate(-i);const s=[];for(let a=0;a<e.length;a++)s.push(e[a].sub(o));return s}function Ec(e,t,n,i){const r=y.convert(e)._mult(i);return"viewport"===t&&r._rotate(-n),r}Xr(uc,"CircleBucket",{omit:["layers"]});const Tc=new zo({"circle-sort-key":new Do(et.layout_circle["circle-sort-key"])});var Mc={paint:new zo({"circle-radius":new Do(et.paint_circle["circle-radius"]),"circle-color":new Do(et.paint_circle["circle-color"]),"circle-blur":new Do(et.paint_circle["circle-blur"]),"circle-opacity":new Do(et.paint_circle["circle-opacity"]),"circle-translate":new Io(et.paint_circle["circle-translate"]),"circle-translate-anchor":new Io(et.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Io(et.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Io(et.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Do(et.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Do(et.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Do(et.paint_circle["circle-stroke-opacity"])}),layout:Tc};function Ac(e,t,n,i,r,o,s,a,l){if(o&&e.queryGeometry.isAboveHorizon)return!1;o&&(l*=e.pixelToTileUnitsFactor);const c=e.tileID.canonical,u=n.projection.upVectorScale(c,n.center.lat,n.worldSize).metersToTile;for(const h of t)for(const t of h){const h=t.add(a),d=r&&n.elevation?n.elevation.exaggeration()*r.getElevationAt(h.x,h.y,!0):0,p=n.projection.projectTilePoint(h.x,h.y,c);if(d>0){const e=n.projection.upVector(c,h.x,h.y);p.x+=e[0]*u*d,p.y+=e[1]*u*d,p.z+=e[2]*u*d}const f=o?h:Oc(p.x,p.y,p.z,i),m=o?e.tilespaceRays.map((e=>Pc(e,d))):e.queryGeometry.screenGeometry,g=Ha([],[p.x,p.y,p.z,1],i);if(!s&&o?l*=g[3]/n.cameraToCenterDistance:s&&!o&&(l*=n.cameraToCenterDistance/g[3]),o){const e=Zl((t.y/aa+c.y)/(1<<c.z));l/=n.projection.pixelsPerMeter(e,1)/Wl(1,e)}if(dc(m,f,l))return!0}return!1}function Oc(e,t,n,i){const r=Ha([],[e,t,n,1],i);return new y(r[0]/r[3],r[1]/r[3])}const Ic=Ea(0,0,0),Dc=Ea(0,0,1);function Pc(e,t){const n=Ca();return Ic[2]=t,e.intersectsPlane(Ic,Dc,n),new y(n[0],n[1])}class zc extends uc{}function Lc(e,{width:t,height:n},i,r){if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==t*n*i)throw new RangeError("mismatched image size")}else r=new Uint8Array(t*n*i);return e.width=t,e.height=n,e.data=r,e}function Bc(e,t,n){const{width:i,height:r}=t;i===e.width&&r===e.height||(Fc(e,t,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,i),height:Math.min(e.height,r)},n),e.width=i,e.height=r,e.data=t.data)}function Fc(e,t,n,i,r,o){if(0===r.width||0===r.height)return t;if(r.width>e.width||r.height>e.height||n.x>e.width-r.width||n.y>e.height-r.height)throw new RangeError("out of range source coordinates for image copy");if(r.width>t.width||r.height>t.height||i.x>t.width-r.width||i.y>t.height-r.height)throw new RangeError("out of range destination coordinates for image copy");const s=e.data,a=t.data;for(let l=0;l<r.height;l++){const c=((n.y+l)*e.width+n.x)*o,u=((i.y+l)*t.width+i.x)*o;for(let e=0;e<r.width*o;e++)a[u+e]=s[c+e]}return t}Xr(zc,"HeatmapBucket",{omit:["layers"]});class Rc{constructor(e,t){Lc(this,e,1,t)}resize(e){Bc(this,new Rc(e),1)}clone(){return new Rc({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,n,i,r){Fc(e,t,n,i,r,1)}}class $c{constructor(e,t){Lc(this,e,4,t)}resize(e){Bc(this,new $c(e),4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new $c({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,n,i,r){Fc(e,t,n,i,r,4)}}Xr(Rc,"AlphaImage"),Xr($c,"RGBAImage");var Nc={paint:new zo({"heatmap-radius":new Do(et.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Do(et.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Io(et.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Po(et.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Io(et.paint_heatmap["heatmap-opacity"])})};function jc(e){const t={},n=e.resolution||256,i=e.clips?e.clips.length:1,r=e.image||new $c({width:n,height:i}),o=(n,i,o)=>{t[e.evaluationKey]=o;const s=e.expression.evaluate(t);r.data[n+i+0]=Math.floor(255*s.r/s.a),r.data[n+i+1]=Math.floor(255*s.g/s.a),r.data[n+i+2]=Math.floor(255*s.b/s.a),r.data[n+i+3]=Math.floor(255*s.a)};if(e.clips)for(let s=0,a=0;s<i;++s,a+=4*n)for(let t=0,i=0;t<n;t++,i+=4){const r=t/(n-1),{start:l,end:c}=e.clips[s];o(a,i,l*(1-r)+c*r)}else for(let s=0,a=0;s<n;s++,a+=4)o(0,a,s/(n-1));return r}var Vc={paint:new zo({"hillshade-illumination-direction":new Io(et.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Io(et.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Io(et.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Io(et.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Io(et.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Io(et.paint_hillshade["hillshade-accent-color"])})};const Uc=$o([{name:"a_pos",components:2,type:"Int16"}],4),{members:qc}=Uc;var Hc={exports:{}};function Wc(e,t,n){n=n||2;var i,r,o,s,a,l,c,u=t&&t.length,h=u?t[0]*n:e.length,d=Gc(e,0,h,n,!0),p=[];if(!d||d.next===d.prev)return p;if(u&&(d=function(e,t,n,i){var r,o,s,a=[];for(r=0,o=t.length;r<o;r++)(s=Gc(e,t[r]*i,r<o-1?t[r+1]*i:e.length,i,!1))===s.next&&(s.steiner=!0),a.push(ru(s));for(a.sort(eu),r=0;r<a.length;r++)n=tu(a[r],n);return n}(e,t,d,n)),e.length>80*n){i=o=e[0],r=s=e[1];for(var f=n;f<h;f+=n)(a=e[f])<i&&(i=a),(l=e[f+1])<r&&(r=l),a>o&&(o=a),l>s&&(s=l);c=0!==(c=Math.max(o-i,s-r))?32767/c:0}return Xc(d,p,n,i,r,c,0),p}function Gc(e,t,n,i,r){var o,s;if(r===vu(e,t,n,i)>0)for(o=t;o<n;o+=i)s=fu(o,e[o],e[o+1],s);else for(o=n-i;o>=t;o-=i)s=fu(o,e[o],e[o+1],s);return s&&lu(s,s.next)&&(mu(s),s=s.next),s}function Zc(e,t){if(!e)return e;t||(t=e);var n,i=e;do{if(n=!1,i.steiner||!lu(i,i.next)&&0!==au(i.prev,i,i.next))i=i.next;else{if(mu(i),(i=t=i.prev)===i.next)break;n=!0}}while(n||i!==t);return t}function Xc(e,t,n,i,r,o,s){if(e){!s&&o&&function(e,t,n,i){var r=e;do{0===r.z&&(r.z=iu(r.x,r.y,t,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,function(e){var t,n,i,r,o,s,a,l,c=1;do{for(n=e,e=null,o=null,s=0;n;){for(s++,i=n,a=0,t=0;t<c&&(a++,i=i.nextZ);t++);for(l=c;a>0||l>0&&i;)0!==a&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,a--):(r=i,i=i.nextZ,l--),o?o.nextZ=r:e=r,r.prevZ=o,o=r;n=i}o.nextZ=null,c*=2}while(s>1)}(r)}(e,i,r,o);for(var a,l,c=e;e.prev!==e.next;)if(a=e.prev,l=e.next,o?Yc(e,i,r,o):Kc(e))t.push(a.i/n|0),t.push(e.i/n|0),t.push(l.i/n|0),mu(e),e=l.next,c=l.next;else if((e=l)===c){s?1===s?Xc(e=Jc(Zc(e),t,n),t,n,i,r,o,2):2===s&&Qc(e,t,n,i,r,o):Xc(Zc(e),t,n,i,r,o,1);break}}}function Kc(e){var t=e.prev,n=e,i=e.next;if(au(t,n,i)>=0)return!1;for(var r=t.x,o=n.x,s=i.x,a=t.y,l=n.y,c=i.y,u=r<o?r<s?r:s:o<s?o:s,h=a<l?a<c?a:c:l<c?l:c,d=r>o?r>s?r:s:o>s?o:s,p=a>l?a>c?a:c:l>c?l:c,f=i.next;f!==t;){if(f.x>=u&&f.x<=d&&f.y>=h&&f.y<=p&&ou(r,a,o,l,s,c,f.x,f.y)&&au(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function Yc(e,t,n,i){var r=e.prev,o=e,s=e.next;if(au(r,o,s)>=0)return!1;for(var a=r.x,l=o.x,c=s.x,u=r.y,h=o.y,d=s.y,p=a<l?a<c?a:c:l<c?l:c,f=u<h?u<d?u:d:h<d?h:d,m=a>l?a>c?a:c:l>c?l:c,g=u>h?u>d?u:d:h>d?h:d,v=iu(p,f,t,n,i),y=iu(m,g,t,n,i),_=e.prevZ,b=e.nextZ;_&&_.z>=v&&b&&b.z<=y;){if(_.x>=p&&_.x<=m&&_.y>=f&&_.y<=g&&_!==r&&_!==s&&ou(a,u,l,h,c,d,_.x,_.y)&&au(_.prev,_,_.next)>=0)return!1;if(_=_.prevZ,b.x>=p&&b.x<=m&&b.y>=f&&b.y<=g&&b!==r&&b!==s&&ou(a,u,l,h,c,d,b.x,b.y)&&au(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;_&&_.z>=v;){if(_.x>=p&&_.x<=m&&_.y>=f&&_.y<=g&&_!==r&&_!==s&&ou(a,u,l,h,c,d,_.x,_.y)&&au(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;b&&b.z<=y;){if(b.x>=p&&b.x<=m&&b.y>=f&&b.y<=g&&b!==r&&b!==s&&ou(a,u,l,h,c,d,b.x,b.y)&&au(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Jc(e,t,n){var i=e;do{var r=i.prev,o=i.next.next;!lu(r,o)&&cu(r,i,i.next,o)&&du(r,o)&&du(o,r)&&(t.push(r.i/n|0),t.push(i.i/n|0),t.push(o.i/n|0),mu(i),mu(i.next),i=e=o),i=i.next}while(i!==e);return Zc(i)}function Qc(e,t,n,i,r,o){var s=e;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&su(s,a)){var l=pu(s,a);return s=Zc(s,s.next),l=Zc(l,l.next),Xc(s,t,n,i,r,o,0),void Xc(l,t,n,i,r,o,0)}a=a.next}s=s.next}while(s!==e)}function eu(e,t){return e.x-t.x}function tu(e,t){var n=function(e,t){var n,i=t,r=e.x,o=e.y,s=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var a=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(a<=r&&a>s&&(s=a,n=i.x<i.next.x?i:i.next,a===r))return n}i=i.next}while(i!==t);if(!n)return null;var l,c=n,u=n.x,h=n.y,d=1/0;i=n;do{r>=i.x&&i.x>=u&&r!==i.x&&ou(o<h?r:s,o,u,h,o<h?s:r,o,i.x,i.y)&&(l=Math.abs(o-i.y)/(r-i.x),du(i,e)&&(l<d||l===d&&(i.x>n.x||i.x===n.x&&nu(n,i)))&&(n=i,d=l)),i=i.next}while(i!==c);return n}(e,t);if(!n)return t;var i=pu(n,e);return Zc(i,i.next),Zc(n,n.next)}function nu(e,t){return au(e.prev,e,t.prev)<0&&au(t.next,e,e.next)<0}function iu(e,t,n,i,r){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function ru(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 ou(e,t,n,i,r,o,s,a){return(r-s)*(t-a)>=(e-s)*(o-a)&&(e-s)*(i-a)>=(n-s)*(t-a)&&(n-s)*(o-a)>=(r-s)*(i-a)}function su(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&&cu(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(du(e,t)&&du(t,e)&&function(e,t){var n=e,i=!1,r=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==e);return i}(e,t)&&(au(e.prev,e,t.prev)||au(e,t.prev,t))||lu(e,t)&&au(e.prev,e,e.next)>0&&au(t.prev,t,t.next)>0)}function au(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function lu(e,t){return e.x===t.x&&e.y===t.y}function cu(e,t,n,i){var r=hu(au(e,t,n)),o=hu(au(e,t,i)),s=hu(au(n,i,e)),a=hu(au(n,i,t));return r!==o&&s!==a||!(0!==r||!uu(e,n,t))||!(0!==o||!uu(e,i,t))||!(0!==s||!uu(n,e,i))||!(0!==a||!uu(n,t,i))}function uu(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function hu(e){return e>0?1:e<0?-1:0}function du(e,t){return au(e.prev,e,e.next)<0?au(e,t,e.next)>=0&&au(e,e.prev,t)>=0:au(e,t,e.prev)<0||au(e,e.next,t)<0}function pu(e,t){var n=new gu(e.i,e.x,e.y),i=new gu(t.i,t.x,t.y),r=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function fu(e,t,n,i){var r=new gu(e,t,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function mu(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)}function gu(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function vu(e,t,n,i){for(var r=0,o=t,s=n-i;o<n;o+=i)r+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return r}Hc.exports=Wc,Hc.exports.default=Wc,Wc.deviation=function(e,t,n,i){var r=t&&t.length,o=Math.abs(vu(e,0,r?t[0]*n:e.length,n));if(r)for(var s=0,a=t.length;s<a;s++)o-=Math.abs(vu(e,t[s]*n,s<a-1?t[s+1]*n:e.length,n));var l=0;for(s=0;s<i.length;s+=3){var c=i[s]*n,u=i[s+1]*n,h=i[s+2]*n;l+=Math.abs((e[c]-e[h])*(e[u+1]-e[c+1])-(e[c]-e[u])*(e[h+1]-e[c+1]))}return 0===o&&0===l?0:Math.abs((l-o)/o)},Wc.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},i=0,r=0;r<e.length;r++){for(var o=0;o<e[r].length;o++)for(var s=0;s<t;s++)n.vertices.push(e[r][o][s]);r>0&&n.holes.push(i+=e[r-1].length)}return n};var yu=d(Hc.exports);function _u(e,t,n,i,r){bu(e,t,n||0,i||e.length-1,r||wu)}function bu(e,t,n,i,r){for(;i>n;){if(i-n>600){var o=i-n+1,s=t-n+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);bu(e,t,Math.max(n,Math.floor(t-s*l/o+c)),Math.min(i,Math.floor(t+(o-s)*l/o+c)),r)}var u=e[t],h=n,d=i;for(xu(e,n,t),r(e[i],u)>0&&xu(e,n,i);h<d;){for(xu(e,h,d),h++,d--;r(e[h],u)<0;)h++;for(;r(e[d],u)>0;)d--}0===r(e[n],u)?xu(e,n,d):xu(e,++d,i),d<=t&&(n=d+1),t<=d&&(i=d-1)}}function xu(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function wu(e,t){return e<t?-1:e>t?1:0}function Cu(e,t){const n=e.length;if(n<=1)return[e];const i=[];let r,o;for(let s=0;s<n;s++){const t=W(e[s]);0!==t&&(e[s].area=Math.abs(t),void 0===o&&(o=t<0),o===t<0?(r&&i.push(r),r=[e[s]]):r.push(e[s]))}if(r&&i.push(r),t>1)for(let s=0;s<i.length;s++)i[s].length<=t||(_u(i[s],t,1,i[s].length-1,ku),i[s]=i[s].slice(0,t));return i}function ku(e,t){return t.area-e.area}function Su(e,t,n){const i=n.patternDependencies;let r=!1;for(const o of t){const t=o.paint.get(`${e}-pattern`);t.isConstant()||(r=!0);const n=t.constantOr(null);n&&(r=!0,i[n]=!0)}return r}function Eu(e,t,n,i,r){const o=r.patternDependencies;for(const s of t){const t=s.paint.get(`${e}-pattern`).value;if("constant"!==t.kind){let e=t.evaluate({zoom:i},n,{},r.availableImages);e=e&&e.name?e.name:e,o[e]=!0,n.patterns[s.id]=e}}return n}class Tu{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new jo,this.indexArray=new is,this.indexArray2=new cs,this.programConfigurations=new Ks(e.layers,e.zoom),this.segments=new sa,this.segments2=new sa,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.projection=e.projection}populate(e,t,n,i){this.hasPattern=Su("fill",this.layers,t);const r=this.layers[0].layout.get("fill-sort-key"),o=[];for(const{feature:s,id:a,index:l,sourceLayerIndex:c}of e){const e=this.layers[0]._featureFilter.needGeometry,u=ac(s,e);if(!this.layers[0]._featureFilter.filter(new wo(this.zoom),u,n))continue;const h=r?r.evaluate(u,{},n,t.availableImages):void 0,d={id:a,properties:s.properties,type:s.type,sourceLayerIndex:c,index:l,geometry:e?u.geometry:sc(s,n,i),patterns:{},sortKey:h};o.push(d)}r&&o.sort(((e,t)=>e.sortKey-t.sortKey));for(const s of o){const{geometry:i,index:r,sourceLayerIndex:o}=s;if(this.hasPattern){const e=Eu("fill",this.layers,s,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(s,i,r,n,{},t.availableImages);t.featureIndex.insert(e[r].feature,i,r,o,this.index)}}update(e,t,n,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,i)}addFeatures(e,t,n,i,r){for(const o of this.patternFeatures)this.addFeature(o,o.geometry,o.index,t,n,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,qc),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,n,i,r,o=[]){for(const s of Cu(t,500)){let e=0;for(const a of s)e+=a.length;const t=this.segments.prepareSegment(e,this.layoutVertexArray,this.indexArray),n=t.vertexLength,i=[],r=[];for(const a of s){if(0===a.length)continue;a!==s[0]&&r.push(i.length/2);const e=this.segments2.prepareSegment(a.length,this.layoutVertexArray,this.indexArray2),t=e.vertexLength;this.layoutVertexArray.emplaceBack(a[0].x,a[0].y),this.indexArray2.emplaceBack(t+a.length-1,t),i.push(a[0].x),i.push(a[0].y);for(let n=1;n<a.length;n++)this.layoutVertexArray.emplaceBack(a[n].x,a[n].y),this.indexArray2.emplaceBack(t+n-1,t+n),i.push(a[n].x),i.push(a[n].y);e.vertexLength+=a.length,e.primitiveLength+=a.length}const o=yu(i,r);for(let s=0;s<o.length;s+=3)this.indexArray.emplaceBack(n+o[s],n+o[s+1],n+o[s+2]);t.vertexLength+=e,t.primitiveLength+=o.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r,o,i)}}Xr(Tu,"FillBucket",{omit:["layers","patternFeatures"]});const Mu=new zo({"fill-sort-key":new Do(et.layout_fill["fill-sort-key"])});var Au={paint:new zo({"fill-antialias":new Io(et.paint_fill["fill-antialias"]),"fill-opacity":new Do(et.paint_fill["fill-opacity"]),"fill-color":new Do(et.paint_fill["fill-color"]),"fill-outline-color":new Do(et.paint_fill["fill-outline-color"]),"fill-translate":new Io(et.paint_fill["fill-translate"]),"fill-translate-anchor":new Io(et.paint_fill["fill-translate-anchor"]),"fill-pattern":new Do(et.paint_fill["fill-pattern"])}),layout:Mu};const Ou=$o([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),Iu=$o([{name:"a_centroid_pos",components:2,type:"Uint16"}]),Du=$o([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:Pu}=Ou;var zu={},Lu=g,Bu=Fu;function Fu(e,t,n,i,r){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=r,e.readFields(Ru,this,t)}function Ru(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 i=t._keys[e.readVarint()],r=t._values[e.readVarint()];t.properties[i]=r}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function $u(e){for(var t,n,i=0,r=0,o=e.length,s=o-1;r<o;s=r++)i+=((n=e[s]).x-(t=e[r]).x)*(t.y+n.y);return i}Fu.types=["Unknown","Point","LineString","Polygon"],Fu.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,i=1,r=0,o=0,s=0,a=[];e.pos<n;){if(r<=0){var l=e.readVarint();i=7&l,r=l>>3}if(r--,1===i||2===i)o+=e.readSVarint(),s+=e.readSVarint(),1===i&&(t&&a.push(t),t=[]),t.push(new Lu(o,s));else{if(7!==i)throw new Error("unknown command "+i);t&&t.push(t[0].clone())}}return t&&a.push(t),a},Fu.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,i=0,r=0,o=0,s=1/0,a=-1/0,l=1/0,c=-1/0;e.pos<t;){if(i<=0){var u=e.readVarint();n=7&u,i=u>>3}if(i--,1===n||2===n)(r+=e.readSVarint())<s&&(s=r),r>a&&(a=r),(o+=e.readSVarint())<l&&(l=o),o>c&&(c=o);else if(7!==n)throw new Error("unknown command "+n)}return[s,l,a,c]},Fu.prototype.toGeoJSON=function(e,t,n){var i,r,o=this.extent*Math.pow(2,n),s=this.extent*e,a=this.extent*t,l=this.loadGeometry(),c=Fu.types[this.type];function u(e){for(var t=0;t<e.length;t++){var n=e[t];e[t]=[360*(n.x+s)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+a)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(i=0;i<l.length;i++)h[i]=l[i][0];u(l=h);break;case 2:for(i=0;i<l.length;i++)u(l[i]);break;case 3:for(l=function(e){var t=e.length;if(t<=1)return[e];for(var n,i,r=[],o=0;o<t;o++){var s=$u(e[o]);0!==s&&(void 0===i&&(i=s<0),i===s<0?(n&&r.push(n),n=[e[o]]):n.push(e[o]))}return n&&r.push(n),r}(l),i=0;i<l.length;i++)for(r=0;r<l[i].length;r++)u(l[i][r])}1===l.length?l=l[0]:c="Multi"+c;var d={type:"Feature",geometry:{type:c,coordinates:l},properties:this.properties};return"id"in this&&(d.id=this.id),d};var Nu=Bu,ju=Vu;function Vu(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(Uu,this,t),this.length=this._features.length}function Uu(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 i=e.readVarint()>>3;t=1===i?e.readString():2===i?e.readFloat():3===i?e.readDouble():4===i?e.readVarint64():5===i?e.readVarint():6===i?e.readSVarint():7===i?e.readBoolean():null}return t}(n))}Vu.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 Nu(this._pbf,t,this.extent,this._keys,this._values)};var qu=ju;function Hu(e,t,n){if(3===e){var i=new qu(n,n.readVarint()+n.pos);i.length&&(t[i.name]=i)}}var Wu=zu.VectorTile=function(e,t){this.layers=e.readFields(Hu,{},t)},Gu=zu.VectorTileFeature=Bu;function Zu(e,t,n,i){const r=[],o=0===i?(e,t,n,i,r,o)=>{e.push(new y(o,n+(o-t)/(i-t)*(r-n)))}:(e,t,n,i,r,o)=>{e.push(new y(t+(o-n)/(r-n)*(i-t),o))};for(const s of e){const e=[];for(const r of s){if(r.length<=2)continue;const s=[];for(let e=0;e<r.length-1;e++){const a=r[e].x,l=r[e].y,c=r[e+1].x,u=r[e+1].y,h=0===i?a:l,d=0===i?c:u;h<t?d>t&&o(s,a,l,c,u,t):h>n?d<n&&o(s,a,l,c,u,n):s.push(r[e]),d<t&&h>=t&&o(s,a,l,c,u,t),d>n&&h<=n&&o(s,a,l,c,u,n)}let a=r[r.length-1];const l=0===i?a.x:a.y;l>=t&&l<=n&&s.push(a),s.length&&(a=s[s.length-1],s[0].x===a.x&&s[0].y===a.y||s.push(s[0]),e.push(s))}e.length&&r.push(e)}return r}zu.VectorTileLayer=ju;const Xu=Gu.types,Ku=Math.pow(2,13);function Yu(e,t,n,i,r,o,s,a){e.emplaceBack((t<<1)+s,(n<<1)+o,(Math.floor(i*Ku)<<1)+r,Math.round(a))}function Ju(e,t,n){const i=16384;e.emplaceBack(t.x,t.y,t.z,n[0]*i,n[1]*i,n[2]*i)}class Qu{constructor(){this.acc=new y(0,0),this.polyCount=[]}startRing(e){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new y(e.x,e.y),this.max=new y(e.x,e.y))}append(e,t){this.currentPolyCount.edges++,this.acc._add(e);const n=this.min,i=this.max;e.x<n.x?n.x=e.x:e.x>i.x&&(i.x=e.x),e.y<n.y?n.y=e.y:e.y>i.y&&(i.y=e.y),((0===e.x||e.x===aa)&&e.x===t.x)!=((0===e.y||e.y===aa)&&e.y===t.y)&&this.processBorderOverlap(e,t),t.x<0!=e.x<0&&this.addBorderIntersection(0,Dn(t.y,e.y,(0-t.x)/(e.x-t.x))),t.x>aa!=e.x>aa&&this.addBorderIntersection(1,Dn(t.y,e.y,(aa-t.x)/(e.x-t.x))),t.y<0!=e.y<0&&this.addBorderIntersection(2,Dn(t.x,e.x,(0-t.y)/(e.y-t.y))),t.y>aa!=e.y>aa&&this.addBorderIntersection(3,Dn(t.x,e.x,(aa-t.y)/(e.y-t.y)))}addBorderIntersection(e,t){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const n=this.borders[e];t<n[0]&&(n[0]=t),t>n[1]&&(n[1]=t)}processBorderOverlap(e,t){if(e.x===t.x){if(e.y===t.y)return;const n=0===e.x?0:1;this.addBorderIntersection(n,t.y),this.addBorderIntersection(n,e.y)}else{const n=0===e.y?2:3;this.addBorderIntersection(n,t.x),this.addBorderIntersection(n,e.x)}}centroid(){const e=this.polyCount.reduce(((e,t)=>e+t.edges),0);return 0!==e?this.acc.div(e)._round():new y(0,0)}span(){return new y(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce(((e,t)=>e+ +(t[0]!==Number.MAX_VALUE)),0)}}class eh{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=e.projection,this.layoutVertexArray=new Uo,this.centroidVertexArray=new ws,this.indexArray=new is,this.programConfigurations=new Ks(e.layers,e.zoom),this.segments=new sa,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.enableTerrain=e.enableTerrain}populate(e,t,n,i){this.features=[],this.hasPattern=Su("fill-extrusion",this.layers,t),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(e){const t=Math.exp(Math.PI*(1-e.y/(1<<e.z)*2));return 80150034*t/(t*t+1)/aa/(1<<e.z)}(n),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter;for(const{feature:r,id:o,index:s,sourceLayerIndex:a}of e){const e=this.layers[0]._featureFilter.needGeometry,l=ac(r,e);if(!this.layers[0]._featureFilter.filter(new wo(this.zoom),l,n))continue;const c={id:o,sourceLayerIndex:a,index:s,geometry:e?l.geometry:sc(r,n,i),properties:r.properties,type:r.type,patterns:{}},u=this.layoutVertexArray.length;this.hasPattern?this.features.push(Eu("fill-extrusion",this.layers,c,this.zoom,t)):this.addFeature(c,c.geometry,s,n,{},t.availableImages,i),t.featureIndex.insert(r,c.geometry,s,a,this.index,u)}this.sortBorders()}addFeatures(e,t,n,i,r){for(const o of this.features){const{geometry:e}=o;this.addFeature(o,e,o.index,t,n,i,r)}this.sortBorders()}update(e,t,n,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Pu),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=e.createVertexBuffer(this.layoutVertexExtArray,Du.members,!0))),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,Iu.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,n,i,r,o,s){const a=[new y(0,0),new y(aa,aa)],l=s.projection,c="globe"===l.name,u=this.enableTerrain&&!c?new Qu:null,h="Polygon"===Xu[e.type];c&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Zo);const d=Cu(t,500);for(let g=d.length-1;g>=0;g--){const e=d[g];(0===e.length||(p=e[0]).every((e=>e.x<=0))||p.every((e=>e.x>=aa))||p.every((e=>e.y<=0))||p.every((e=>e.y>=aa)))&&d.splice(g,1)}var p;let f;if(c)f=lh(d,a,i);else{f=[];for(const e of d)f.push({polygon:e,bounds:a})}const m=h?this.edgeRadius:0;for(const{polygon:g,bounds:v}of f){let e=0,t=0;for(const i of g)h&&!i[0].equals(i[i.length-1])&&i.push(i[0]),t+=h?i.length-1:i.length;const n=this.segments.prepareSegment((h?5:4)*t,this.layoutVertexArray,this.indexArray);if(h){const t=[],r=[];e=n.vertexLength;for(const e of g){let o,s;e.length&&e!==g[0]&&r.push(t.length/2),o=e[1].sub(e[0])._perp()._unit();for(let r=1;r<e.length;r++){const a=e[r],u=e[r===e.length-1?1:r+1];let{x:h,y:d}=a;if(m){s=u.sub(a)._perp()._unit();const e=o.add(s)._unit(),t=m*Math.min(4,1/(o.x*e.x+o.y*e.y));h+=t*e.x,d+=t*e.y,o=s}Yu(this.layoutVertexArray,h,d,0,0,1,1,0),n.vertexLength++,t.push(a.x,a.y),c&&Ju(this.layoutVertexExtArray,l.projectTilePoint(h,d,i),l.upVector(i,h,d))}}const o=yu(t,r);for(let i=0;i<o.length;i+=3)this.indexArray.emplaceBack(e+o[i],e+o[i+2],e+o[i+1]),n.primitiveLength++}for(const r of g){u&&r.length&&u.startRing(r[0]);let t,o,s,a=r.length>4&&oh(r[r.length-2],r[0],r[1]),d=m?nh(r[r.length-2],r[0],r[1],m):0;o=r[1].sub(r[0])._perp()._unit();let p=!0;for(let f=1,g=0;f<r.length;f++){let y=r[f-1],_=r[f];const b=r[f===r.length-1?1:f+1];if(u&&h&&u.currentPolyCount.top++,rh(_,y,v)){m&&(o=b.sub(_)._perp()._unit(),p=!p);continue}u&&u.append(_,y);const x=_.sub(y)._perp(),w=x.x/(Math.abs(x.x)+Math.abs(x.y)),C=x.y>0?1:0,k=y.dist(_);if(g+k>32768&&(g=0),m){s=b.sub(_)._perp()._unit();let e=ih(y,_,b,th(o,s),m);isNaN(e)&&(e=0);const t=_.sub(y)._unit();y=y.add(t.mult(d))._round(),_=_.add(t.mult(-e))._round(),d=e,o=s}const S=n.vertexLength,E=r.length>4&&oh(y,_,b);let T=sh(g,a,p);if(Yu(this.layoutVertexArray,y.x,y.y,w,C,0,0,T),Yu(this.layoutVertexArray,y.x,y.y,w,C,0,1,T),g+=k,T=sh(g,E,!p),a=E,Yu(this.layoutVertexArray,_.x,_.y,w,C,0,0,T),Yu(this.layoutVertexArray,_.x,_.y,w,C,0,1,T),n.vertexLength+=4,this.indexArray.emplaceBack(S+0,S+1,S+2),this.indexArray.emplaceBack(S+1,S+3,S+2),n.primitiveLength+=2,m){const i=e+(1===f?r.length-2:f-2),o=1===f?e:i+1;if(this.indexArray.emplaceBack(S+1,i,S+3),this.indexArray.emplaceBack(i,o,S+3),n.primitiveLength+=2,void 0===t&&(t=S),!rh(b,r[f],v)){const e=f===r.length-1?t:n.vertexLength;this.indexArray.emplaceBack(S+2,S+3,e),this.indexArray.emplaceBack(S+3,e+1,e),this.indexArray.emplaceBack(S+3,o,e+1),n.primitiveLength+=3}p=!p}if(c){const e=this.layoutVertexExtArray,t=l.projectTilePoint(y.x,y.y,i),n=l.projectTilePoint(_.x,_.y,i),r=l.upVector(i,y.x,y.y),o=l.upVector(i,_.x,_.y);Ju(e,t,r),Ju(e,t,r),Ju(e,n,o),Ju(e,n,o)}}h&&(e+=r.length-1)}}if(u&&u.polyCount.length>0){if(u.borders){u.vertexArrayOffset=this.centroidVertexArray.length;const e=u.borders,t=this.featuresOnBorder.push(u)-1;for(let n=0;n<4;n++)e[n][0]!==Number.MAX_VALUE&&this.borders[n].push(t)}this.encodeCentroid(u.borders?void 0:u.centroid(),u)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r,o,i)}sortBorders(){for(let e=0;e<4;e++)this.borders[e].sort(((t,n)=>this.featuresOnBorder[t].borders[e][0]-this.featuresOnBorder[n].borders[e][0]))}encodeCentroid(e,t,n=!0){let i,r;if(e)if(0!==e.y){const n=t.span()._mult(this.tileToMeter);i=(Math.max(e.x,1)<<3)+Math.min(7,Math.round(n.x/10)),r=(Math.max(e.y,1)<<3)+Math.min(7,Math.round(n.y/10))}else i=Math.ceil(7*(e.x+450)),r=0;else i=0,r=+n;let o=n?this.centroidVertexArray.length:t.vertexArrayOffset;for(const s of t.polyCount){n&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*s.edges+s.top);for(let e=0;e<s.top;e++)this.centroidVertexArray.emplace(o++,i,r);for(let e=0;e<2*s.edges;e++)this.centroidVertexArray.emplace(o++,0,r),this.centroidVertexArray.emplace(o++,i,r)}}}function th(e,t){const n=e.add(t)._unit();return e.x*n.x+e.y*n.y}function nh(e,t,n,i){const r=t.sub(e)._perp()._unit(),o=n.sub(t)._perp()._unit();return ih(e,t,n,th(r,o),i)}function ih(e,t,n,i,r){const o=Math.sqrt(1-i*i);return Math.min(e.dist(t)/3,t.dist(n)/3,r*o/i)}function rh(e,t,n){return e.x<n[0].x&&t.x<n[0].x||e.x>n[1].x&&t.x>n[1].x||e.y<n[0].y&&t.y<n[0].y||e.y>n[1].y&&t.y>n[1].y}function oh(e,t,n){if(e.x<0||e.x>=aa||t.x<0||t.x>=aa||n.x<0||n.x>=aa)return!1;const i=n.sub(t),r=i.perp(),o=e.sub(t);return(i.x*o.x+i.y*o.y)/Math.sqrt((i.x*i.x+i.y*i.y)*(o.x*o.x+o.y*o.y))>-.866&&r.x*o.x+r.y*o.y<0}function sh(e,t,n){const i=t?2|e:-3&e;return n?1|i:-2&i}function ah(){const e=Math.PI/32,t=Math.tan(e),n=$l;return n*Math.sqrt(1+2*t*t)-n}function lh(e,t,n){const i=1<<n.z,r=Gl(n.x/i),o=Gl((n.x+1)/i),s=Zl(n.y/i),a=Zl((n.y+1)/i);return function(e,t,n,i,r=0,o){const s=[];if(!e.length||!n||!i)return s;const a=(e,t)=>{for(const n of e)s.push({polygon:n,bounds:t})},l=Math.ceil(Math.log2(n)),c=Math.ceil(Math.log2(i)),u=l-c,h=[];for(let f=0;f<Math.abs(u);f++)h.push(u>0?0:1);for(let f=0;f<Math.min(l,c);f++)h.push(0),h.push(1);let d=e;if(d=Zu(d,t[0].y-r,t[1].y+r,1),d=Zu(d,t[0].x-r,t[1].x+r,0),!d.length)return s;const p=[];for(h.length?p.push({polygons:d,bounds:t,depth:0}):a(d,t);p.length;){const e=p.pop(),t=e.depth,n=h[t],i=e.bounds[0],s=e.bounds[1],l=0===n?i.x:i.y,c=0===n?s.x:s.y,u=o?o(n,l,c):.5*(l+c),d=Zu(e.polygons,l-r,u+r,n),f=Zu(e.polygons,u-r,c+r,n);if(d.length){const e=[i,new y(0===n?u:s.x,1===n?u:s.y)];h.length>t+1?p.push({polygons:d,bounds:e,depth:t+1}):a(d,e)}if(f.length){const e=[new y(0===n?u:i.x,1===n?u:i.y),s];h.length>t+1?p.push({polygons:f,bounds:e,depth:t+1}):a(f,e)}}return s}(e,t,Math.ceil((o-r)/11.25),Math.ceil((s-a)/11.25),1,((e,t,r)=>{if(0===e)return.5*(t+r);{const e=Zl((n.y+t/aa)/i);return(Hl(.5*(Zl((n.y+r/aa)/i)+e))*i-n.y)*aa}}))}Xr(eh,"FillExtrusionBucket",{omit:["layers","features"]}),Xr(Qu,"PartMetadata");const ch=new zo({"fill-extrusion-edge-radius":new Io(et["layout_fill-extrusion"]["fill-extrusion-edge-radius"])});var uh={paint:new zo({"fill-extrusion-opacity":new Io(et["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Do(et["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Io(et["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Io(et["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Do(et["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Do(et["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Do(et["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Io(et["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new Io(et["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new Io(et["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"]),"fill-extrusion-rounded-roof":new Io(et["paint_fill-extrusion"]["fill-extrusion-rounded-roof"])}),layout:ch};function hh(e,t,n){var i=2*Math.PI*6378137/256/Math.pow(2,n);return[e*i-2*Math.PI*6378137/2,t*i-2*Math.PI*6378137/2]}class dh{constructor(e,t,n){this.z=e,this.x=t,this.y=n,this.key=mh(0,e,e,t,n)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t){const n=function(e,t,n){var i=hh(256*e,256*(t=Math.pow(2,n)-t-1),n),r=hh(256*(e+1),256*(t+1),n);return i[0]+","+i[1]+","+r[0]+","+r[1]}(this.x,this.y,this.z),i=function(e,t,n){let i,r="";for(let o=e;o>0;o--)i=1<<o-1,r+=(t&i?1:0)+(n&i?2:0);return r}(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}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",i).replace("{bbox-epsg-3857}",n)}toString(){return`${this.z}/${this.x}/${this.y}`}}class ph{constructor(e,t){this.wrap=e,this.canonical=t,this.key=mh(e,t.z,t.z,t.x,t.y)}}class fh{constructor(e,t,n,i,r){this.overscaledZ=e,this.wrap=t,this.canonical=new dh(n,+i,+r),this.key=0===t&&e===n?this.canonical.key:mh(t,e,n,i,r)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const t=this.canonical.z-e;return e>this.canonical.z?new fh(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new fh(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t=!0){if(this.overscaledZ===e&&t)return this.key;if(e>this.canonical.z)return mh(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const n=this.canonical.z-e;return mh(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const 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}children(e){if(this.overscaledZ>=e)return[new fh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,n=2*this.canonical.x,i=2*this.canonical.y;return[new fh(t,this.wrap,t,n,i),new fh(t,this.wrap,t,n+1,i),new fh(t,this.wrap,t,n,i+1),new fh(t,this.wrap,t,n+1,i+1)]}isLessThan(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))}wrapped(){return new fh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new fh(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new ph(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function mh(e,t,n,i,r){const o=1<<Math.min(n,22);let s=o*(r%o)+i%o;return e&&n<22&&(s+=o*o*((e<0?-2*e-1:2*e)%(1<<2*(22-n)))),16*(32*s+n)+(t-n)}Xr(dh,"CanonicalTileID"),Xr(fh,"OverscaledTileID",{omit:["projMatrix"]});class gh extends y{constructor(e,t,n){super(e,t),this.z=n}}function vh(e,t){return e.x*t.x+e.y*t.y}function yh(e,t){if(1===e.length){let n=0;const i=t[n++];let r;for(;!r||i.equals(r);)if(r=t[n++],!r)return 1/0;for(;n<t.length;n++){const o=t[n],s=e[0],a=r.sub(i),l=o.sub(i),c=s.sub(i),u=vh(a,a),h=vh(a,l),d=vh(l,l),p=vh(c,a),f=vh(c,l),m=u*d-h*h,g=(d*p-h*f)/m,v=(u*f-h*p)/m,y=i.z*(1-g-v)+r.z*g+o.z*v;if(isFinite(y))return y}return 1/0}{let e=1/0;for(const n of t)e=Math.min(e,n.z);return e}}function _h(e,t,n,i,r,o,s,a){const l=s*r.getElevationAt(e,t,!0,!0),c=0!==o[0],u=c?0===o[1]?s*(o[0]/7-450):s*function(e,t,n){const i=Math.floor(t[0]/8),r=Math.floor(t[1]/8),o=10*(t[0]-8*i),s=10*(t[1]-8*r),a=e.getElevationAt(i,r,!0,!0),l=e.getMeterToDEM(n),c=Math.floor(.5*(o*l-1)),u=Math.floor(.5*(s*l-1)),h=e.tileCoordToPixel(i,r),d=2*c+1,p=2*u+1,f=function(e,t,n,i,r){return[e.getElevationAtPixel(t,n,!0),e.getElevationAtPixel(t+r,n,!0),e.getElevationAtPixel(t,n+r,!0),e.getElevationAtPixel(t+i,n+r,!0)]}(e,h.x-c,h.y-u,d,p),m=Math.abs(f[0]-f[1]),g=Math.abs(f[2]-f[3]),v=Math.abs(f[0]-f[2])+Math.abs(f[1]-f[3]),y=Math.min(.25,.5*l*(m+g)/d),_=Math.min(.25,.5*l*v/p);return a+Math.max(y*o,_*s)}(r,o,a):l;return{base:l+(0===n)?-1:n,top:c?Math.max(u+i,l+n+2):l+i}}const bh=$o([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:xh}=bh,wh=$o([{name:"a_packed",components:4,type:"Float32"}]),{members:Ch}=wh,kh=Gu.types,Sh=Math.cos(Math.PI/180*37.5);class Eh{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.projection=e.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((e=>{this.gradients[e.id]={}})),this.layoutVertexArray=new qo,this.layoutVertexArray2=new Ho,this.indexArray=new is,this.programConfigurations=new Ks(e.layers,e.zoom),this.segments=new sa,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,n,i){this.hasPattern=Su("line",this.layers,t);const r=this.layers[0].layout.get("line-sort-key"),o=[];for(const{feature:c,id:u,index:h,sourceLayerIndex:d}of e){const e=this.layers[0]._featureFilter.needGeometry,t=ac(c,e);if(!this.layers[0]._featureFilter.filter(new wo(this.zoom),t,n))continue;const s=r?r.evaluate(t,{},n):void 0,a={id:u,properties:c.properties,type:c.type,sourceLayerIndex:d,index:h,geometry:e?t.geometry:sc(c,n,i),patterns:{},sortKey:s};o.push(a)}r&&o.sort(((e,t)=>e.sortKey-t.sortKey));const{lineAtlas:s,featureIndex:a}=t,l=this.addConstantDashes(s);for(const c of o){const{geometry:i,index:r,sourceLayerIndex:o}=c;if(l&&this.addFeatureDashes(c,s),this.hasPattern){const e=Eu("line",this.layers,c,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(c,i,r,n,s.positions,t.availableImages);a.insert(e[r].feature,i,r,o,this.index)}}addConstantDashes(e){let t=!1;for(const n of this.layers){const i=n.paint.get("line-dasharray").value,r=n.layout.get("line-cap").value;if("constant"!==i.kind||"constant"!==r.kind)t=!0;else{const t=r.value,n=i.value;if(!n)continue;e.addDash(n,t)}}return t}addFeatureDashes(e,t){const n=this.zoom;for(const i of this.layers){const r=i.paint.get("line-dasharray").value,o=i.layout.get("line-cap").value;if("constant"===r.kind&&"constant"===o.kind)continue;let s,a;if("constant"===r.kind){if(s=r.value,!s)continue}else s=r.evaluate({zoom:n},e);a="constant"===o.kind?o.value:o.evaluate({zoom:n},e),t.addDash(s,a),e.patterns[i.id]=t.getKey(s,a)}}update(e,t,n,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,i)}addFeatures(e,t,n,i,r){for(const o of this.patternFeatures)this.addFeature(o,o.geometry,o.index,t,n,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Ch)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,xh),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,n,i,r,o){const s=this.layers[0].layout,a=s.get("line-join").evaluate(e,{}),l=s.get("line-cap").evaluate(e,{}),c=s.get("line-miter-limit"),u=s.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const h of t)this.addLine(h,e,a,l,c,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r,o,i)}addLine(e,t,n,i,r,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t<e.length-1;t++)this.totalDistance+=e[t].dist(e[t+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const s="Polygon"===kh[t.type];let a=e.length;for(;a>=2&&e[a-1].equals(e[a-2]);)a--;let l=0;for(;l<a-1&&e[l].equals(e[l+1]);)l++;if(a<(s?3:2))return;"bevel"===n&&(r=1.05);const c=this.overscaling<=16?15*aa/(512*this.overscaling):0,u=this.segments.prepareSegment(10*a,this.layoutVertexArray,this.indexArray);let h,d,p,f,m;this.e1=this.e2=-1,s&&(h=e[a-2],m=e[l].sub(h)._unit()._perp());for(let g=l;g<a;g++){if(p=g===a-1?s?e[l+1]:void 0:e[g+1],p&&e[g].equals(p))continue;m&&(f=m),h&&(d=h),h=e[g],m=p?p.sub(h)._unit()._perp():f,f=f||m;let t=f.add(m);0===t.x&&0===t.y||t._unit();const v=f.x*m.x+f.y*m.y,y=t.x*m.x+t.y*m.y,_=0!==y?1/y:1/0,b=2*Math.sqrt(2-2*y),x=y<Sh&&d&&p,w=f.x*m.y-f.y*m.x>0;if(x&&g>l){const e=h.dist(d);if(e>2*c){const t=h.sub(h.sub(d)._mult(c/e)._round());this.updateDistance(d,t),this.addCurrentVertex(t,f,0,0,u),d=t}}const C=d&&p;let k=C?n:s?"butt":i;if(C&&"round"===k&&(_<o?k="miter":_<=2&&(k="fakeround")),"miter"===k&&_>r&&(k="bevel"),"bevel"===k&&(_>2&&(k="flipbevel"),_<r&&(k="miter")),d&&this.updateDistance(d,h),"miter"===k)t._mult(_),this.addCurrentVertex(h,t,0,0,u);else if("flipbevel"===k){if(_>100)t=m.mult(-1);else{const e=_*f.add(m).mag()/f.sub(m).mag();t._perp()._mult(e*(w?-1:1))}this.addCurrentVertex(h,t,0,0,u),this.addCurrentVertex(h,t.mult(-1),0,0,u)}else if("bevel"===k||"fakeround"===k){const e=-Math.sqrt(_*_-1),t=w?e:0,n=w?0:e;if(d&&this.addCurrentVertex(h,f,t,n,u),"fakeround"===k){const e=Math.round(180*b/Math.PI/20);for(let t=1;t<e;t++){let n=t/e;if(.5!==n){const e=n-.5;n+=n*e*(n-1)*((1.0904+v*(v*(3.55645-1.43519*v)-3.2452))*e*e+(.848013+v*(.215638*v-1.06021)))}const i=m.sub(f)._mult(n)._add(f)._unit()._mult(w?-1:1);this.addHalfVertex(h,i.x,i.y,!1,w,0,u)}}p&&this.addCurrentVertex(h,m,-t,-n,u)}else if("butt"===k)this.addCurrentVertex(h,t,0,0,u);else if("square"===k){const e=d?1:-1;d||this.addCurrentVertex(h,t,e,e,u),this.addCurrentVertex(h,t,0,0,u),d&&this.addCurrentVertex(h,t,e,e,u)}else"round"===k&&(d&&(this.addCurrentVertex(h,f,0,0,u),this.addCurrentVertex(h,f,1,1,u,!0)),p&&(this.addCurrentVertex(h,m,-1,-1,u,!0),this.addCurrentVertex(h,m,0,0,u)));if(x&&g<a-1){const e=h.dist(p);if(e>2*c){const t=h.add(p.sub(h)._mult(c/e)._round());this.updateDistance(h,t),this.addCurrentVertex(t,m,0,0,u),h=t}}}}addCurrentVertex(e,t,n,i,r,o=!1){const s=t.y*i-t.x,a=-t.y-t.x*i;this.addHalfVertex(e,t.x+t.y*n,t.y-t.x*n,o,!1,n,r),this.addHalfVertex(e,s,a,o,!0,-i,r)}addHalfVertex({x:e,y:t},n,i,r,o,s,a){this.layoutVertexArray.emplaceBack((e<<1)+(r?1:0),(t<<1)+(o?1:0),Math.round(63*n)+128,Math.round(63*i)+128,1+(0===s?0:s<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);const l=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,l),a.primitiveLength++),o?this.e2=l:this.e1=l}updateScaledDistance(){if(this.lineClips){const e=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=e*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}Xr(Eh,"LineBucket",{omit:["layers","patternFeatures"]});const Th=new zo({"line-cap":new Do(et.layout_line["line-cap"]),"line-join":new Do(et.layout_line["line-join"]),"line-miter-limit":new Io(et.layout_line["line-miter-limit"]),"line-round-limit":new Io(et.layout_line["line-round-limit"]),"line-sort-key":new Do(et.layout_line["line-sort-key"])});var Mh={paint:new zo({"line-opacity":new Do(et.paint_line["line-opacity"]),"line-color":new Do(et.paint_line["line-color"]),"line-translate":new Io(et.paint_line["line-translate"]),"line-translate-anchor":new Io(et.paint_line["line-translate-anchor"]),"line-width":new Do(et.paint_line["line-width"]),"line-gap-width":new Do(et.paint_line["line-gap-width"]),"line-offset":new Do(et.paint_line["line-offset"]),"line-blur":new Do(et.paint_line["line-blur"]),"line-dasharray":new Do(et.paint_line["line-dasharray"]),"line-pattern":new Do(et.paint_line["line-pattern"]),"line-gradient":new Po(et.paint_line["line-gradient"]),"line-trim-offset":new Io(et.paint_line["line-trim-offset"])}),layout:Th};const Ah=new class extends Do{possiblyEvaluate(e,t){return t=new wo(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,n,i){return t=D({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,n,i)}}(Mh.paint.properties["line-width"].specification);function Oh(e,t){return t>0?t+2*e:e}Ah.useIntegerZoom=!0;const Ih=$o([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Dh=$o([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),Ph=$o([{name:"a_projected_pos",components:4,type:"Float32"}],4);$o([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const zh=$o([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),Lh=$o([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);$o([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const Bh=$o([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Fh=$o([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);$o([{name:"triangle",components:3,type:"Uint16"}]),$o([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),$o([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),$o([{type:"Float32",name:"offsetX"}]),$o([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);var Rh=24;const $h=128;function Nh(e,t){const{expression:n}=t;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new wo(e+1))};if("source"===n.kind)return{kind:"source"};{const{zoomStops:t,interpolationType:i}=n;let r=0;for(;r<t.length&&t[r]<=e;)r++;r=Math.max(0,r-1);let o=r;for(;o<t.length&&t[o]<e+1;)o++;o=Math.min(t.length-1,o);const s=t[r],a=t[o];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:a,interpolationType:i}:{kind:"camera",minZoom:s,maxZoom:a,minSize:n.evaluate(new wo(s)),maxSize:n.evaluate(new wo(a)),interpolationType:i}}}function jh(e,{uSize:t,uSizeT:n},{lowerSize:i,upperSize:r}){return"source"===e.kind?i/$h:"composite"===e.kind?Dn(i/$h,r/$h,n):t}function Vh(e,t){let n=0,i=0;if("constant"===e.kind)i=e.layoutSize;else if("source"!==e.kind){const{interpolationType:r,minZoom:o,maxZoom:s}=e,a=r?T(ei.interpolationFactor(r,t,o,s),0,1):0;"camera"===e.kind?i=Dn(e.minSize,e.maxSize,a):n=a}return{uSizeT:n,uSize:i}}var Uh=Object.freeze({__proto__:null,SIZE_PACK_FACTOR:$h,evaluateSizeForFeature:jh,evaluateSizeForZoom:Vh,getSizeData:Nh});function qh(e,t,n){return e.sections.forEach((e=>{e.text=function(e,t,n){const i=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===i?e=e.toLocaleUpperCase():"lowercase"===i&&(e=e.toLocaleLowerCase()),xo.applyArabicShaping&&(e=xo.applyArabicShaping(e)),e}(e.text,t,n)})),e}const Hh={"!":"︕","#":"＃",$:"＄","%":"％","&":"＆","(":"︵",")":"︶","*":"＊","+":"＋",",":"︐","-":"︲",".":"・","/":"／",":":"︓",";":"︔","<":"︿","=":"＝",">":"﹀","?":"︖","@":"＠","[":"﹇","\\":"＼","]":"﹈","^":"＾",_:"︳","`":"｀","{":"︷","|":"―","}":"︸","~":"～","¢":"￠","£":"￡","¥":"￥","¦":"￤","¬":"￢","¯":"￣","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"￦","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","！":"︕","（":"︵","）":"︶","，":"︐","－":"︲","．":"・","：":"︓","；":"︔","＜":"︿","＞":"﹀","？":"︖","［":"﹇","］":"﹈","＿":"︳","｛":"︷","｜":"―","｝":"︸","｟":"︵","｠":"︶","｡":"︒","｢":"﹁","｣":"﹂","←":"↑","→":"↓"};function Wh(e){return"︶"===e||"﹈"===e||"︸"===e||"﹄"===e||"﹂"===e||"︾"===e||"︼"===e||"︺"===e||"︘"===e||"﹀"===e||"︐"===e||"︓"===e||"︔"===e||"｀"===e||"￣"===e||"︑"===e||"︒"===e}function Gh(e){return"︵"===e||"﹇"===e||"︷"===e||"﹃"===e||"﹁"===e||"︽"===e||"︻"===e||"︹"===e||"︗"===e||"︿"===e}var Zh=Yh,Xh=function(e,t,n,i,r){var o,s,a=8*r-i-1,l=(1<<a)-1,c=l>>1,u=-7,h=n?r-1:0,d=n?-1:1,p=e[t+h];for(h+=d,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=256*o+e[t+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),o-=c}return(p?-1:1)*s*Math.pow(2,o-i)},Kh=function(e,t,n,i,r,o){var s,a,l,c=8*o-r-1,u=(1<<c)-1,h=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(s++,l/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(t*l-1)*Math.pow(2,r),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;e[n+p]=255&a,p+=f,a/=256,r-=8);for(s=s<<r|a,c+=r;c>0;e[n+p]=255&s,p+=f,s/=256,c-=8);e[n+p-f]|=128*m};
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function Yh(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}Yh.Varint=0,Yh.Fixed64=1,Yh.Bytes=2,Yh.Fixed32=5;var Jh=4294967296,Qh=1/Jh,ed="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function td(e){return e.type===Yh.Bytes?e.readVarint()+e.pos:e.pos+1}function nd(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function id(e,t,n){var i=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(i);for(var r=n.pos-1;r>=e;r--)n.buf[r+i]=n.buf[r]}function rd(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function od(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function sd(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function ad(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function ld(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function cd(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function ud(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function hd(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function dd(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function pd(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function fd(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function md(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}Yh.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var i=this.readVarint(),r=i>>3,o=this.pos;this.type=7&i,e(r,t,this),this.pos===o&&this.skip(i)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=pd(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=md(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=pd(this.buf,this.pos)+pd(this.buf,this.pos+4)*Jh;return this.pos+=8,e},readSFixed64:function(){var e=pd(this.buf,this.pos)+md(this.buf,this.pos+4)*Jh;return this.pos+=8,e},readFloat:function(){var e=Xh(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Xh(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,i=this.buf;return t=127&(n=i[this.pos++]),n<128?t:(t|=(127&(n=i[this.pos++]))<<7,n<128?t:(t|=(127&(n=i[this.pos++]))<<14,n<128?t:(t|=(127&(n=i[this.pos++]))<<21,n<128?t:function(e,t,n){var i,r,o=n.buf;if(i=(112&(r=o[n.pos++]))>>4,r<128)return nd(e,i,t);if(i|=(127&(r=o[n.pos++]))<<3,r<128)return nd(e,i,t);if(i|=(127&(r=o[n.pos++]))<<10,r<128)return nd(e,i,t);if(i|=(127&(r=o[n.pos++]))<<17,r<128)return nd(e,i,t);if(i|=(127&(r=o[n.pos++]))<<24,r<128)return nd(e,i,t);if(i|=(1&(r=o[n.pos++]))<<31,r<128)return nd(e,i,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=i[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=this.pos;return this.pos=e,e-t>=12&&ed?function(e,t,n){return ed.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var i="",r=t;r<n;){var o,s,a,l=e[r],c=null,u=l>239?4:l>223?3:l>191?2:1;if(r+u>n)break;1===u?l<128&&(c=l):2===u?128==(192&(o=e[r+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===u?(s=e[r+2],128==(192&(o=e[r+1]))&&128==(192&s)&&((c=(15&l)<<12|(63&o)<<6|63&s)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(s=e[r+2],a=e[r+3],128==(192&(o=e[r+1]))&&128==(192&s)&&128==(192&a)&&((c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,i+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),i+=String.fromCharCode(c),r+=u}return i}(this.buf,t,e)},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!==Yh.Bytes)return e.push(this.readVarint(t));var n=td(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==Yh.Bytes)return e.push(this.readSVarint());var t=td(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==Yh.Bytes)return e.push(this.readBoolean());var t=td(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==Yh.Bytes)return e.push(this.readFloat());var t=td(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==Yh.Bytes)return e.push(this.readDouble());var t=td(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==Yh.Bytes)return e.push(this.readFixed32());var t=td(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==Yh.Bytes)return e.push(this.readSFixed32());var t=td(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==Yh.Bytes)return e.push(this.readFixed64());var t=td(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==Yh.Bytes)return e.push(this.readSFixed64());var t=td(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===Yh.Varint)for(;this.buf[this.pos++]>127;);else if(t===Yh.Bytes)this.pos=this.readVarint()+this.pos;else if(t===Yh.Fixed32)this.pos+=4;else{if(t!==Yh.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),fd(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),fd(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),fd(this.buf,-1&e,this.pos),fd(this.buf,Math.floor(e*Qh),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),fd(this.buf,-1&e,this.pos),fd(this.buf,Math.floor(e*Qh),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,i;if(e>=0?(n=e%4294967296|0,i=e/4294967296|0):(i=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,i=i+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,n.buf[n.pos]=127&(e>>>=7)}(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)))))}(i,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 i,r,o=0;o<t.length;o++){if((i=t.charCodeAt(o))>55295&&i<57344){if(!r){i>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):r=i;continue}if(i<56320){e[n++]=239,e[n++]=191,e[n++]=189,r=i;continue}i=r-55296<<10|i-56320|65536,r=null}else r&&(e[n++]=239,e[n++]=191,e[n++]=189,r=null);i<128?e[n++]=i:(i<2048?e[n++]=i>>6|192:(i<65536?e[n++]=i>>12|224:(e[n++]=i>>18|240,e[n++]=i>>12&63|128),e[n++]=i>>6&63|128),e[n++]=63&i|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&id(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),Kh(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Kh(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 i=this.pos-n;i>=128&&id(n,i,this),this.pos=n-1,this.writeVarint(i),this.pos+=i},writeMessage:function(e,t,n){this.writeTag(e,Yh.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,rd,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,od,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,ld,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,sd,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,ad,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,cd,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,ud,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,hd,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,dd,t)},writeBytesField:function(e,t){this.writeTag(e,Yh.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,Yh.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,Yh.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,Yh.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,Yh.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,Yh.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,Yh.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,Yh.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,Yh.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,Yh.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var gd=d(Zh);const vd=3;function yd(e,t,n){t.glyphs=[],1===e&&n.readMessage(_d,t)}function _d(e,t,n){if(3===e){const{id:e,bitmap:i,width:r,height:o,left:s,top:a,advance:l}=n.readMessage(bd,{});t.glyphs.push({id:e,bitmap:new Rc({width:r+2*vd,height:o+2*vd},i),metrics:{width:r,height:o,left:s,top:a,advance:l}})}else 4===e?t.ascender=n.readSVarint():5===e&&(t.descender=n.readSVarint())}function bd(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())}const xd=vd;function wd(e){let t=0,n=0;for(const s of e)t+=s.w*s.h,n=Math.max(n,s.w);e.sort(((e,t)=>t.h-e.h));const i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}];let r=0,o=0;for(const s of e)for(let e=i.length-1;e>=0;e--){const t=i[e];if(!(s.w>t.w||s.h>t.h)){if(s.x=t.x,s.y=t.y,o=Math.max(o,s.y+s.h),r=Math.max(r,s.x+s.w),s.w===t.w&&s.h===t.h){const t=i.pop();e<i.length&&(i[e]=t)}else s.h===t.h?(t.x+=s.w,t.w-=s.w):s.w===t.w?(t.y+=s.h,t.h-=s.h):(i.push({x:t.x+s.w,y:t.y,w:t.w-s.w,h:s.h}),t.y+=s.h,t.h-=s.h);break}}return{w:r,h:o,fill:t/(r*o)||0}}const Cd=1;class kd{constructor(e,{pixelRatio:t,version:n,stretchX:i,stretchY:r,content:o}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=i,this.stretchY=r,this.content=o,this.version=n}get tl(){return[this.paddedRect.x+Cd,this.paddedRect.y+Cd]}get br(){return[this.paddedRect.x+this.paddedRect.w-Cd,this.paddedRect.y+this.paddedRect.h-Cd]}get displaySize(){return[(this.paddedRect.w-2*Cd)/this.pixelRatio,(this.paddedRect.h-2*Cd)/this.pixelRatio]}}class Sd{constructor(e,t){const n={},i={};this.haveRenderCallbacks=[];const r=[];this.addImages(e,n,r),this.addImages(t,i,r);const{w:o,h:s}=wd(r),a=new $c({width:o||1,height:s||1});for(const l in e){const t=e[l],i=n[l].paddedRect;$c.copy(t.data,a,{x:0,y:0},{x:i.x+Cd,y:i.y+Cd},t.data)}for(const l in t){const e=t[l],n=i[l].paddedRect,r=n.x+Cd,o=n.y+Cd,s=e.data.width,c=e.data.height;$c.copy(e.data,a,{x:0,y:0},{x:r,y:o},e.data),$c.copy(e.data,a,{x:0,y:c-1},{x:r,y:o-1},{width:s,height:1}),$c.copy(e.data,a,{x:0,y:0},{x:r,y:o+c},{width:s,height:1}),$c.copy(e.data,a,{x:s-1,y:0},{x:r-1,y:o},{width:1,height:c}),$c.copy(e.data,a,{x:0,y:0},{x:r+s,y:o},{width:1,height:c})}this.image=a,this.iconPositions=n,this.patternPositions=i}addImages(e,t,n){for(const i in e){const r=e[i],o={x:0,y:0,w:r.data.width+2*Cd,h:r.data.height+2*Cd};n.push(o),t[i]=new kd(o,r),r.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(e,t){this.haveRenderCallbacks=this.haveRenderCallbacks.filter((t=>e.hasImage(t))),e.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const n in e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)}patchUpdatedImage(e,t,n){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[i,r]=e.tl;n.update(t.data,void 0,{x:i,y:r})}}Xr(kd,"ImagePosition"),Xr(Sd,"ImageAtlas");const Ed={horizontal:1,vertical:2,horizontalOnly:3},Td=-17;class Md{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,t){const n=new Md;return n.scale=e||1,n.fontStack=t,n}static forImage(e){const t=new Md;return t.imageName=e,t}}class Ad{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){const n=new Ad;for(let i=0;i<e.sections.length;i++){const r=e.sections[i];r.image?n.addImageSection(r):n.addTextSection(r,t)}return n}length(){return this.text.length}getSection(e){return this.sections[this.sectionIndex[e]]}getSections(){return this.sections}getSectionIndex(e){return this.sectionIndex[e]}getCharCode(e){return this.text.charCodeAt(e)}verticalizePunctuation(e){this.text=function(e,t){let n="";for(let i=0;i<e.length;i++){const r=e.charCodeAt(i+1)||null,o=e.charCodeAt(i-1)||null;n+=!t&&(r&&oo(r)&&!Hh[e[i+1]]||o&&oo(o)&&!Hh[e[i-1]])||!Hh[e[i]]?e[i]:Hh[e[i]]}return n}(this.text,e)}trim(){let e=0;for(let n=0;n<this.text.length&&Id[this.text.charCodeAt(n)];n++)e++;let t=this.text.length;for(let n=this.text.length-1;n>=0&&n>=e&&Id[this.text.charCodeAt(n)];n--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const n=new Ad;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((e,t)=>Math.max(e,this.sections[t].scale)),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(Md.forText(e.scale,e.fontStack||t));const n=this.sections.length-1;for(let i=0;i<e.text.length;++i)this.sectionIndex.push(n)}addImageSection(e){const t=e.image?e.image.name:"";if(0===t.length)return void q("Can't add FormattedSection with an empty image.");const n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(Md.forImage(t)),this.sectionIndex.push(this.sections.length-1)):q("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Od(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f){const m=Ad.fromFeature(e,r);h===Ed.vertical&&m.verticalizePunctuation(d);let g=[];const v=function(e,t,n,i,r,o){if(!e)return[];const s=[],a=function(e,t,n,i,r,o){let s=0;for(let a=0;a<e.length();a++){const n=e.getSection(a);s+=Pd(e.getCharCode(a),n,i,r,t,o)}return s/Math.max(1,Math.ceil(s/n))}(e,t,n,i,r,o),l=e.text.indexOf("​")>=0;let c=0;for(let h=0;h<e.length();h++){const n=e.getSection(h),d=e.getCharCode(h);if(Id[d]||(c+=Pd(d,n,i,r,t,o)),h<e.length()-1){const t=!((u=d)<11904||!(eo["Bopomofo Extended"](u)||eo.Bopomofo(u)||eo["CJK Compatibility Forms"](u)||eo["CJK Compatibility Ideographs"](u)||eo["CJK Compatibility"](u)||eo["CJK Radicals Supplement"](u)||eo["CJK Strokes"](u)||eo["CJK Symbols and Punctuation"](u)||eo["CJK Unified Ideographs Extension A"](u)||eo["CJK Unified Ideographs"](u)||eo["Enclosed CJK Letters and Months"](u)||eo["Halfwidth and Fullwidth Forms"](u)||eo.Hiragana(u)||eo["Ideographic Description Characters"](u)||eo["Kangxi Radicals"](u)||eo["Katakana Phonetic Extensions"](u)||eo.Katakana(u)||eo["Vertical Forms"](u)||eo["Yi Radicals"](u)||eo["Yi Syllables"](u)));(Dd[d]||t||n.imageName)&&s.push(Bd(h+1,c,a,s,Ld(d,e.getCharCode(h+1),t&&l),!1))}}var u;return Fd(Bd(e.length(),c,a,s,0,!0))}(m,c,o,t,i,p),{processBidirectionalText:y,processStyledBidirectionalText:_}=xo;if(y&&1===m.sections.length){const e=y(m.toString(),v);for(const t of e){const e=new Ad;e.text=t,e.sections=m.sections;for(let n=0;n<t.length;n++)e.sectionIndex.push(0);g.push(e)}}else if(_){const e=_(m.text,m.sectionIndex,v);for(const t of e){const e=new Ad;e.text=t[0],e.sectionIndex=t[1],e.sections=m.sections,g.push(e)}}else g=function(e,t){const n=[],i=e.text;let r=0;for(const o of t)n.push(e.substring(r,o)),r=o;return r<i.length&&n.push(e.substring(r,i.length)),n}(m,v);const b=[],x={positionedLines:b,text:m.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:h,iconsInText:!1,verticalizable:!1,hasBaseline:!1};return function(e,t,n,i,r,o,s,a,l,c,u,h){let d=0,p=0,f=0;const m="right"===a?1:"left"===a?0:.5;let g=!1;for(const w of r){const e=w.getSections();for(const n of e){if(n.imageName)continue;const e=t[n.fontStack];if(e&&(g=void 0!==e.ascender&&void 0!==e.descender,!g))break}if(!g)break}let v=0;for(const w of r){w.trim();const r=w.getMaxScale(),s=(r-1)*Rh,a={positionedGlyphs:[],lineOffset:0};e.positionedLines[v]=a;const _=a.positionedGlyphs;let b=0;if(!w.length()){p+=o,++v;continue}let x=0,C=0;for(let o=0;o<w.length();o++){const s=w.getSection(o),a=w.getSectionIndex(o),f=w.getCharCode(o);let m=s.scale,v=null,k=null,S=null,E=Rh,T=0;const M=!(l===Ed.horizontal||!u&&!ro(f)||u&&(Id[f]||(y=f,eo.Arabic(y)||eo["Arabic Supplement"](y)||eo["Arabic Extended-A"](y)||eo["Arabic Presentation Forms-A"](y)||eo["Arabic Presentation Forms-B"](y))));if(s.imageName){const t=i[s.imageName];if(!t)continue;S=s.imageName,e.iconsInText=e.iconsInText||!0,k=t.paddedRect;const n=t.displaySize;m=m*Rh/h,v={width:n[0],height:n[1],left:Cd,top:-xd,advance:M?n[1]:n[0],localGlyph:!1},T=g?-v.height*m:Td+r*Rh-n[1]*m,E=v.advance;const o=(M?n[0]:n[1])*m-Rh*r;o>0&&o>b&&(b=o)}else{const e=n[s.fontStack];if(!e)continue;e[f]&&(k=e[f]);const i=t[s.fontStack];if(!i)continue;const o=i.glyphs[f];if(!o)continue;if(v=o.metrics,E=8203!==f?Rh:0,g){const e=void 0!==i.ascender?Math.abs(i.ascender):0,t=void 0!==i.descender?Math.abs(i.descender):0,n=(e+t)*m;x<n&&(x=n,C=(e-t)/2*m),T=-e*m}else T=Td+(r-m)*Rh}M?(e.verticalizable=!0,_.push({glyph:f,imageName:S,x:d,y:p+T,vertical:M,scale:m,localGlyph:v.localGlyph,fontStack:s.fontStack,sectionIndex:a,metrics:v,rect:k}),d+=E*m+c):(_.push({glyph:f,imageName:S,x:d,y:p+T,vertical:M,scale:m,localGlyph:v.localGlyph,fontStack:s.fontStack,sectionIndex:a,metrics:v,rect:k}),d+=v.advance*m+c)}0!==_.length&&(f=Math.max(d-c,f),g?$d(_,m,b,C,o*r/2):$d(_,m,b,0,o/2)),d=0;const k=o*r+b;a.lineOffset=Math.max(b,s),p+=k,++v}var y;const _=p,{horizontalAlign:b,verticalAlign:x}=Rd(s);(function(e,t,n,i,r,o){const s=(t-n)*r,a=-o*i;for(const l of e)for(const e of l.positionedGlyphs)e.x+=s,e.y+=a})(e.positionedLines,m,b,x,f,_),e.top+=-x*_,e.bottom=e.top+_,e.left+=-b*f,e.right=e.left+f,e.hasBaseline=g}(x,t,n,i,g,s,a,l,h,c,d,f),!function(e){for(const t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(b)&&x}const Id={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Dd={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Pd(e,t,n,i,r,o){if(t.imageName){const e=i[t.imageName];return e?e.displaySize[0]*t.scale*Rh/o+r:0}{const i=n[t.fontStack],o=i&&i.glyphs[e];return o?o.metrics.advance*t.scale+r:0}}function zd(e,t,n,i){const r=Math.pow(e-t,2);return i?e<t?r/2:2*r:r+Math.abs(n)*n}function Ld(e,t,n){let i=0;return 10===e&&(i-=1e4),n&&(i+=150),40!==e&&65288!==e||(i+=50),41!==t&&65289!==t||(i+=50),i}function Bd(e,t,n,i,r,o){let s=null,a=zd(t,n,r,o);for(const l of i){const e=zd(t-l.x,n,r,o)+l.badness;e<=a&&(s=l,a=e)}return{index:e,x:t,priorBreak:s,badness:a}}function Fd(e){return e?Fd(e.priorBreak).concat(e.index):[]}function Rd(e){let 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 $d(e,t,n,i,r){if(!(t||n||i||r))return;const o=e.length-1,s=e[o],a=(s.x+s.metrics.advance*s.scale)*t;for(let l=0;l<=o;l++)e[l].x-=a,e[l].y+=n+i+r}function Nd(e,t,n){const{horizontalAlign:i,verticalAlign:r}=Rd(n),o=t[0]-e.displaySize[0]*i,s=t[1]-e.displaySize[1]*r;return{image:e,top:s,bottom:s+e.displaySize[1],left:o,right:o+e.displaySize[0]}}function jd(e,t,n,i,r,o){const s=e.image;let a;if(s.content){const e=s.content,t=s.pixelRatio||1;a=[e[0]/t,e[1]/t,s.displaySize[0]-e[2]/t,s.displaySize[1]-e[3]/t]}const l=t.left*o,c=t.right*o;let u,h,d,p;"width"===n||"both"===n?(p=r[0]+l-i[3],h=r[0]+c+i[1]):(p=r[0]+(l+c-s.displaySize[0])/2,h=p+s.displaySize[0]);const f=t.top*o,m=t.bottom*o;return"height"===n||"both"===n?(u=r[1]+f-i[0],d=r[1]+m+i[2]):(u=r[1]+(f+m-s.displaySize[1])/2,d=u+s.displaySize[1]),{image:s,top:u,right:h,bottom:d,left:p,collisionPadding:a}}class Vd extends y{constructor(e,t,n,i,r){super(e,t),this.angle=i,this.z=n,void 0!==r&&(this.segment=r)}clone(){return new Vd(this.x,this.y,this.z,this.angle,this.segment)}}function Ud(e,t,n,i,r){if(void 0===t.segment)return!0;let o=t,s=t.segment+1,a=0;for(;a>-n/2;){if(s--,s<0)return!1;a-=e[s].dist(o),o=e[s]}a+=e[s].dist(e[s+1]),s++;const l=[];let c=0;for(;a<n/2;){const t=e[s],n=e[s+1];if(!n)return!1;let o=e[s-1].angleTo(t)-t.angleTo(n);for(o=Math.abs((o+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:a,angleDelta:o}),c+=o;a-l[0].distance>i;)c-=l.shift().angleDelta;if(c>r)return!1;s++,a+=t.dist(n)}return!0}function qd(e){let t=0;for(let n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function Hd(e,t,n){return e?.6*t*n:0}function Wd(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function Gd(e,t,n,i,r,o){const s=Hd(n,r,o),a=Wd(n,i)*o;let l=0;const c=qd(e)/2;for(let u=0;u<e.length-1;u++){const n=e[u],i=e[u+1],r=n.dist(i);if(l+r>c){const o=(c-l)/r,h=Dn(n.x,i.x,o),d=Dn(n.y,i.y,o),p=new Vd(h,d,0,i.angleTo(n),u);return!s||Ud(e,p,a,s,t)?p:void 0}l+=r}}function Zd(e,t,n,i,r,o,s,a,l){const c=Hd(i,o,s),u=Wd(i,r),h=u*s,d=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-h<t/4&&(t=h+t/4),Xd(e,d?t/2*a%t:(u/2+2*o)*s*a%t,t,c,n,h,d,!1,l)}function Xd(e,t,n,i,r,o,s,a,l){const c=o/2,u=qd(e);let h=0,d=t-n,p=[];for(let f=0;f<e.length-1;f++){const t=e[f],s=e[f+1],a=t.dist(s),m=s.angleTo(t);for(;d+n<h+a;){d+=n;const g=(d-h)/a,v=Dn(t.x,s.x,g),y=Dn(t.y,s.y,g);if(v>=0&&v<l&&y>=0&&y<l&&d-c>=0&&d+c<=u){const t=new Vd(v,y,0,m,f);t._round(),i&&!Ud(e,t,o,i,r)||p.push(t)}}h+=a}return a||p.length||s||(p=Xd(e,h/2,n,i,r,o,s,!0,l)),p}function Kd(e,t,n,i,r){const o=[];for(let s=0;s<e.length;s++){const a=e[s];let l;for(let e=0;e<a.length-1;e++){let s=a[e],c=a[e+1];s.x<t&&c.x<t||(s.x<t?s=new y(t,s.y+(t-s.x)/(c.x-s.x)*(c.y-s.y))._round():c.x<t&&(c=new y(t,s.y+(t-s.x)/(c.x-s.x)*(c.y-s.y))._round()),s.y<n&&c.y<n||(s.y<n?s=new y(s.x+(n-s.y)/(c.y-s.y)*(c.x-s.x),n)._round():c.y<n&&(c=new y(s.x+(n-s.y)/(c.y-s.y)*(c.x-s.x),n)._round()),s.x>=i&&c.x>=i||(s.x>=i?s=new y(i,s.y+(i-s.x)/(c.x-s.x)*(c.y-s.y))._round():c.x>=i&&(c=new y(i,s.y+(i-s.x)/(c.x-s.x)*(c.y-s.y))._round()),s.y>=r&&c.y>=r||(s.y>=r?s=new y(s.x+(r-s.y)/(c.y-s.y)*(c.x-s.x),r)._round():c.y>=r&&(c=new y(s.x+(r-s.y)/(c.y-s.y)*(c.x-s.x),r)._round()),l&&s.equals(l[l.length-1])||(l=[s],o.push(l)),l.push(c)))))}}return o}Xr(Vd,"Anchor");const Yd=1e20;function Jd(e,t,n,i,r,o,s,a,l){for(let c=t;c<t+i;c++)Qd(e,n*o+c,o,r,s,a,l);for(let c=n;c<n+r;c++)Qd(e,c*o+t,1,i,s,a,l)}function Qd(e,t,n,i,r,o,s){o[0]=0,s[0]=-Yd,s[1]=Yd,r[0]=e[t];for(let a=1,l=0,c=0;a<i;a++){r[a]=e[t+a*n];const i=a*a;do{const e=o[l];c=(r[a]-r[e]+i-e*e)/(a-e)/2}while(c<=s[l]&&--l>-1);l++,o[l]=a,s[l]=c,s[l+1]=Yd}for(let a=0,l=0;a<i;a++){for(;s[l+1]<a;)l++;const i=o[l],c=a-i;e[t+a*n]=r[i]+c*c}}const ep=2,tp={none:0,ideographs:1,all:2};class np{constructor(e,t,n){this.requestManager=e,this.localGlyphMode=t,this.localFontFamily=n,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(e){this.url=e}getGlyphs(e,t){const n=[];for(const i in e)for(const t of e[i])n.push({stack:i,id:t});O(n,(({stack:e,id:t},n)=>{let i=this.entries[e];i||(i=this.entries[e]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let r=i.glyphs[t];if(void 0!==r)return void n(null,{stack:e,id:t,glyph:r});if(r=this._tinySDF(i,e,t),r)return i.glyphs[t]=r,void n(null,{stack:e,id:t,glyph:r});const o=Math.floor(t/256);if(256*o>65535)return void n(new Error("glyphs > 65535 not supported"));if(i.ranges[o])return void n(null,{stack:e,id:t,glyph:r});let s=i.requests[o];s||(s=i.requests[o]=[],np.loadGlyphRange(e,o,this.url,this.requestManager,((e,t)=>{if(t){i.ascender=t.ascender,i.descender=t.descender;for(const e in t.glyphs)this._doesCharSupportLocalGlyph(+e)||(i.glyphs[+e]=t.glyphs[+e]);i.ranges[o]=!0}for(const n of s)n(e,t);delete i.requests[o]}))),s.push(((i,r)=>{i?n(i):r&&n(null,{stack:e,id:t,glyph:r.glyphs[t]||null})}))}),((e,n)=>{if(e)t(e);else if(n){const e={};for(const{stack:t,id:i,glyph:r}of n)void 0===e[t]&&(e[t]={}),void 0===e[t].glyphs&&(e[t].glyphs={}),e[t].glyphs[i]=r&&{id:r.id,bitmap:r.bitmap.clone(),metrics:r.metrics},e[t].ascender=this.entries[t].ascender,e[t].descender=this.entries[t].descender;t(null,e)}}))}_doesCharSupportLocalGlyph(e){return this.localGlyphMode!==tp.none&&(this.localGlyphMode===tp.all?!!this.localFontFamily:!!this.localFontFamily&&(eo["CJK Unified Ideographs"](e)||eo["Hangul Syllables"](e)||eo.Hiragana(e)||eo.Katakana(e)||eo["CJK Symbols and Punctuation"](e)))}_tinySDF(e,t,n){const i=this.localFontFamily;if(!i||!this._doesCharSupportLocalGlyph(n))return;let r=e.tinySDF;if(!r){let n="400";/bold/i.test(t)?n="900":/medium/i.test(t)?n="500":/light/i.test(t)&&(n="200"),r=e.tinySDF=new np.TinySDF({fontFamily:i,fontWeight:n,fontSize:24*ep,buffer:3*ep,radius:8*ep}),r.fontWeight=n}if(this.localGlyphs[r.fontWeight][n])return this.localGlyphs[r.fontWeight][n];const o=String.fromCharCode(n),{data:s,width:a,height:l,glyphWidth:c,glyphHeight:u,glyphLeft:h,glyphTop:d,glyphAdvance:p}=r.draw(o);return this.localGlyphs[r.fontWeight][n]={id:n,bitmap:new Rc({width:a,height:l},s),metrics:{width:c/ep,height:u/ep,left:h/ep,top:d/ep-27,advance:p/ep,localGlyph:!0}}}}np.loadGlyphRange=function(e,t,n,i,r){const o=256*t,s=o+255,a=i.transformRequest(i.normalizeGlyphsURL(n).replace("{fontstack}",e).replace("{range}",`${o}-${s}`),le.Glyphs);de(a,((e,t)=>{if(e)r(e);else if(t){const e={},n=function(e){return new gd(e).readFields(yd,{})}(t);for(const t of n.glyphs)e[t.id]=t;r(null,{glyphs:e,ascender:n.ascender,descender:n.descender})}}))},np.TinySDF=class{constructor({fontSize:e=24,buffer:t=3,radius:n=8,cutoff:i=.25,fontFamily:r="sans-serif",fontWeight:o="normal",fontStyle:s="normal"}={}){this.buffer=t,this.cutoff=i,this.radius=n;const a=this.size=e+4*t,l=this._createCanvas(a),c=this.ctx=l.getContext("2d",{willReadFrequently:!0});c.font=`${s} ${o} ${e}px ${r}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Uint16Array(a)}_createCanvas(e){const t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){const{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:i,actualBoundingBoxLeft:r,actualBoundingBoxRight:o}=this.ctx.measureText(e),s=Math.ceil(n),a=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(o-r))),l=Math.min(this.size-this.buffer,s+Math.ceil(i)),c=a+2*this.buffer,u=l+2*this.buffer,h=Math.max(c*u,0),d=new Uint8ClampedArray(h),p={data:d,width:c,height:u,glyphWidth:a,glyphHeight:l,glyphTop:s,glyphLeft:0,glyphAdvance:t};if(0===a||0===l)return p;const{ctx:f,buffer:m,gridInner:g,gridOuter:v}=this;f.clearRect(m,m,a,l),f.fillText(e,m,m+s);const y=f.getImageData(m,m,a,l);v.fill(Yd,0,h),g.fill(0,0,h);for(let _=0;_<l;_++)for(let e=0;e<a;e++){const t=y.data[4*(_*a+e)+3]/255;if(0===t)continue;const n=(_+m)*c+e+m;if(1===t)v[n]=0,g[n]=Yd;else{const e=.5-t;v[n]=e>0?e*e:0,g[n]=e<0?e*e:0}}Jd(v,0,0,c,u,c,this.f,this.v,this.z),Jd(g,m,m,a,l,c,this.f,this.v,this.z);for(let _=0;_<h;_++){const e=Math.sqrt(v[_])-Math.sqrt(g[_]);d[_]=Math.round(255-255*(e/this.radius+this.cutoff))}return p}};const ip=Cd;function rp(e,t,n,i){const r=[],o=e.image,s=o.pixelRatio,a=o.paddedRect.w-2*ip,l=o.paddedRect.h-2*ip,c=e.right-e.left,u=e.bottom-e.top,h=o.stretchX||[[0,a]],d=o.stretchY||[[0,l]],p=(e,t)=>e+t[1]-t[0],f=h.reduce(p,0),m=d.reduce(p,0),g=a-f,v=l-m;let _=0,b=f,x=0,w=m,C=0,k=g,S=0,E=v;if(o.content&&i){const e=o.content;_=op(h,0,e[0]),x=op(d,0,e[1]),b=op(h,e[0],e[2]),w=op(d,e[1],e[3]),C=e[0]-_,S=e[1]-x,k=e[2]-e[0]-b,E=e[3]-e[1]-w}const T=(i,r,a,l)=>{const h=ap(i.stretch-_,b,c,e.left),d=lp(i.fixed-C,k,i.stretch,f),p=ap(r.stretch-x,w,u,e.top),g=lp(r.fixed-S,E,r.stretch,m),v=ap(a.stretch-_,b,c,e.left),T=lp(a.fixed-C,k,a.stretch,f),M=ap(l.stretch-x,w,u,e.top),A=lp(l.fixed-S,E,l.stretch,m),O=new y(h,p),I=new y(v,p),D=new y(v,M),P=new y(h,M),z=new y(d/s,g/s),L=new y(T/s,A/s),B=t*Math.PI/180;if(B){const e=Math.sin(B),t=Math.cos(B),n=[t,-e,e,t];O._matMult(n),I._matMult(n),P._matMult(n),D._matMult(n)}const F=i.stretch+i.fixed,R=r.stretch+r.fixed;return{tl:O,tr:I,bl:P,br:D,tex:{x:o.paddedRect.x+ip+F,y:o.paddedRect.y+ip+R,w:a.stretch+a.fixed-F,h:l.stretch+l.fixed-R},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:z,pixelOffsetBR:L,minFontScaleX:k/s/c,minFontScaleY:E/s/u,isSDF:n}};if(i&&(o.stretchX||o.stretchY)){const e=sp(h,g,f),t=sp(d,v,m);for(let n=0;n<e.length-1;n++){const i=e[n],o=e[n+1];for(let e=0;e<t.length-1;e++)r.push(T(i,t[e],o,t[e+1]))}}else r.push(T({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:a+1},{fixed:0,stretch:l+1}));return r}function op(e,t,n){let i=0;for(const r of e)i+=Math.max(t,Math.min(n,r[1]))-Math.max(t,Math.min(n,r[0]));return i}function sp(e,t,n){const i=[{fixed:-ip,stretch:0}];for(const[r,o]of e){const e=i[i.length-1];i.push({fixed:r-e.stretch,stretch:e.stretch}),i.push({fixed:r-e.stretch,stretch:e.stretch+(o-r)})}return i.push({fixed:t+ip,stretch:n}),i}function ap(e,t,n,i){return e/t*n+i}function lp(e,t,n,i){return e-t*n/i}function cp(e,t,n,i){const r=t+e.positionedLines[i].lineOffset;return 0===i?n+r/2:n+(r+(t+e.positionedLines[i-1].lineOffset))/2}class up{constructor(e=[],t=hp){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,i=t[e];for(;e>0;){const r=e-1>>1,o=t[r];if(n(i,o)>=0)break;t[e]=o,e=r}t[e]=i}_down(e){const{data:t,compare:n}=this,i=this.length>>1,r=t[e];for(;e<i;){let i=1+(e<<1),o=t[i];const s=i+1;if(s<this.length&&n(t[s],o)<0&&(i=s,o=t[s]),n(o,r)>=0)break;t[e]=o,e=i}t[e]=r}}function hp(e,t){return e<t?-1:e>t?1:0}function dp(e,t=1,n=!1){let i=1/0,r=1/0,o=-1/0,s=-1/0;const a=e[0];for(let p=0;p<a.length;p++){const e=a[p];(!p||e.x<i)&&(i=e.x),(!p||e.y<r)&&(r=e.y),(!p||e.x>o)&&(o=e.x),(!p||e.y>s)&&(s=e.y)}const l=Math.min(o-i,s-r);let c=l/2;const u=new up([],pp);if(0===l)return new y(i,r);for(let p=i;p<o;p+=l)for(let t=r;t<s;t+=l)u.push(new fp(p+c,t+c,c,e));let h=function(e){let t=0,n=0,i=0;const r=e[0];for(let o=0,s=r.length,a=s-1;o<s;a=o++){const e=r[o],s=r[a],l=e.x*s.y-s.x*e.y;n+=(e.x+s.x)*l,i+=(e.y+s.y)*l,t+=3*l}return new fp(n/t,i/t,0,e)}(e),d=u.length;for(;u.length;){const i=u.pop();(i.d>h.d||!h.d)&&(h=i,n&&console.log("found best %d after %d probes",Math.round(1e4*i.d)/1e4,d)),i.max-h.d<=t||(c=i.h/2,u.push(new fp(i.p.x-c,i.p.y-c,c,e)),u.push(new fp(i.p.x+c,i.p.y-c,c,e)),u.push(new fp(i.p.x-c,i.p.y+c,c,e)),u.push(new fp(i.p.x+c,i.p.y+c,c,e)),d+=4)}return n&&(console.log(`num probes: ${d}`),console.log(`best distance: ${h.d}`)),h.p}function pp(e,t){return t.max-e.max}class fp{constructor(e,t,n,i){this.p=new y(e,t),this.h=n,this.d=function(e,t){let n=!1,i=1/0;for(let r=0;r<t.length;r++){const o=t[r];for(let t=0,r=o.length,s=r-1;t<r;s=t++){const r=o[t],a=o[s];r.y>e.y!=a.y>e.y&&e.x<(a.x-r.x)*(e.y-r.y)/(a.y-r.y)+r.x&&(n=!n),i=Math.min(i,yc(e,r,a))}}return(n?1:-1)*Math.sqrt(i)}(this.p,i),this.max=this.d+this.h*Math.SQRT2}}const mp=7,gp=Number.POSITIVE_INFINITY,vp=Math.sqrt(2);function yp(e,[t,n]){let i=0,r=0;if(n===gp){t<0&&(t=0);const n=t/vp;switch(e){case"top-right":case"top-left":r=n-mp;break;case"bottom-right":case"bottom-left":r=-n+mp;break;case"bottom":r=-t+mp;break;case"top":r=t-mp}switch(e){case"top-right":case"bottom-right":i=-n;break;case"top-left":case"bottom-left":i=n;break;case"left":i=t;break;case"right":i=-t}}else{switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":r=n-mp;break;case"bottom-right":case"bottom-left":case"bottom":r=-n+mp}switch(e){case"top-right":case"bottom-right":case"right":i=-t;break;case"top-left":case"bottom-left":case"left":i=t}}return[i,r]}function _p(e,t,n,i,r,o,s,a,l,c){e.createArrays(),e.tilePixelRatio=aa/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;const u=e.layers[0].layout,h=e.layers[0]._unevaluatedLayout._values,d={};if("composite"===e.textSizeData.kind){const{minZoom:t,maxZoom:n}=e.textSizeData;d.compositeTextSizes=[h["text-size"].possiblyEvaluate(new wo(t),a),h["text-size"].possiblyEvaluate(new wo(n),a)]}if("composite"===e.iconSizeData.kind){const{minZoom:t,maxZoom:n}=e.iconSizeData;d.compositeIconSizes=[h["icon-size"].possiblyEvaluate(new wo(t),a),h["icon-size"].possiblyEvaluate(new wo(n),a)]}d.layoutTextSize=h["text-size"].possiblyEvaluate(new wo(l+1),a),d.layoutIconSize=h["icon-size"].possiblyEvaluate(new wo(l+1),a),d.textMaxSize=h["text-size"].possiblyEvaluate(new wo(18),a);const p="map"===u.get("text-rotation-alignment")&&"point"!==u.get("symbol-placement"),f=u.get("text-size");for(const m of e.features){const o=u.get("text-font").evaluate(m,{},a).join(","),l=f.evaluate(m,{},a),h=d.layoutTextSize.evaluate(m,{},a),g=(d.layoutIconSize.evaluate(m,{},a),{horizontal:{},vertical:void 0}),v=m.text;let y,_=[0,0];if(v){const i=v.toString(),s=u.get("text-letter-spacing").evaluate(m,{},a)*Rh,c=u.get("text-line-height").evaluate(m,{},a)*Rh,d=no(i)?s:0,f=u.get("text-anchor").evaluate(m,{},a),y=u.get("text-variable-anchor");if(!y){const e=u.get("text-radial-offset").evaluate(m,{},a);_=e?yp(f,[e*Rh,gp]):u.get("text-offset").evaluate(m,{},a).map((e=>e*Rh))}let b=p?"center":u.get("text-justify").evaluate(m,{},a);const x="point"===u.get("symbol-placement"),w=x?u.get("text-max-width").evaluate(m,{},a)*Rh:1/0,C=s=>{e.allowVerticalPlacement&&to(i)&&(g.vertical=Od(v,t,n,r,o,w,c,f,s,d,_,Ed.vertical,!0,h,l))};if(!p&&y){const e="auto"===b?y.map((e=>bp(e))):[b];let i=!1;for(let s=0;s<e.length;s++){const a=e[s];if(!g.horizontal[a])if(i)g.horizontal[a]=g.horizontal[0];else{const e=Od(v,t,n,r,o,w,c,"center",a,d,_,Ed.horizontal,!1,h,l);e&&(g.horizontal[a]=e,i=1===e.positionedLines.length)}}C("left")}else{if("auto"===b&&(b=bp(f)),x||u.get("text-writing-mode").indexOf("horizontal")>=0||!to(i)){const e=Od(v,t,n,r,o,w,c,f,b,d,_,Ed.horizontal,!1,h,l);e&&(g.horizontal[b]=e)}C(x?"left":b)}}let b=!1;if(m.icon&&m.icon.name){const t=i[m.icon.name];t&&(y=Nd(r[m.icon.name],u.get("icon-offset").evaluate(m,{},a),u.get("icon-anchor").evaluate(m,{},a)),b=t.sdf,void 0===e.sdfIcons?e.sdfIcons=t.sdf:e.sdfIcons!==t.sdf&&q("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(t.pixelRatio!==e.pixelRatio||0!==u.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}const x=Sp(g.horizontal)||g.vertical;e.iconsInText||(e.iconsInText=!!x&&x.iconsInText),(x||y)&&xp(e,m,g,y,i,d,h,0,_,b,s,a,c)}o&&e.generateCollisionDebugBuffers(l,e.collisionBoxArray)}function bp(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 xp(e,t,n,i,r,o,s,a,l,c,u,h,d){let p=o.textMaxSize.evaluate(t,{},h);void 0===p&&(p=s);const f=e.layers[0].layout,m=f.get("icon-offset").evaluate(t,{},h),g=Sp(n.horizontal)||n.vertical,v="globe"===d.name,y=Rh,_=s/y,b=e.tilePixelRatio*p/y,w=(O=e.overscaling,e.zoom>18&&O>2&&(O>>=1),Math.max(aa/(512*O),1)*f.get("symbol-spacing")),C=f.get("text-padding")*e.tilePixelRatio,k=f.get("icon-padding")*e.tilePixelRatio,S=x(f.get("text-max-angle")),E="map"===f.get("text-rotation-alignment")&&"point"!==f.get("symbol-placement"),T="map"===f.get("icon-rotation-alignment")&&"point"!==f.get("symbol-placement"),M=f.get("symbol-placement"),A=w/2;var O;const I=f.get("icon-text-fit");let D;i&&"none"!==I&&(e.allowVerticalPlacement&&n.vertical&&(D=jd(i,n.vertical,I,f.get("icon-text-fit-padding"),m,_)),g&&(i=jd(i,g,I,f.get("icon-text-fit-padding"),m,_)));const P=(s,a,p)=>{if(a.x<0||a.x>=aa||a.y<0||a.y>=aa)return;let f=null;if(v){const{x:e,y:t,z:n}=d.projectTilePoint(a.x,a.y,p);f={anchor:new Vd(e,t,n,0,void 0),up:d.upVector(p,a.x,a.y)}}!function(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v,y,_,b,x,w,C,k){const S=e.addToLineVertexArray(t,i);let E,T,M,A,O,I,D,P=0,z=0,L=0,B=0,F=-1,R=-1;const $={};let N=Is("");const j=n?n.anchor:t;let V=0,U=0;if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")?[V,U]=l.layout.get("text-offset").evaluate(b,{},k).map((e=>e*Rh)):(V=l.layout.get("text-radial-offset").evaluate(b,{},k)*Rh,U=gp),e.allowVerticalPlacement&&r.vertical){const e=r.vertical;if(f)I=Tp(e),a&&(D=Tp(a));else{const n=l.layout.get("text-rotate").evaluate(b,{},k)+90;M=Ep(c,j,t,u,h,d,e,p,n,m),a&&(A=Ep(c,j,t,u,h,d,a,v,n))}}if(o){const i=l.layout.get("icon-rotate").evaluate(b,{},k),r="none"!==l.layout.get("icon-text-fit"),s=rp(o,i,w,r),p=a?rp(a,i,w,r):void 0;T=Ep(c,j,t,u,h,d,o,v,i),P=4*s.length;const f=e.iconSizeData;let m=null;"source"===f.kind?(m=[$h*l.layout.get("icon-size").evaluate(b,{},k)],m[0]>Cp&&q(`${e.layerIds[0]}: Value for "icon-size" is >= ${wp}. Reduce your "icon-size".`)):"composite"===f.kind&&(m=[$h*x.compositeIconSizes[0].evaluate(b,{},k),$h*x.compositeIconSizes[1].evaluate(b,{},k)],(m[0]>Cp||m[1]>Cp)&&q(`${e.layerIds[0]}: Value for "icon-size" is >= ${wp}. Reduce your "icon-size".`)),e.addSymbols(e.icon,s,m,_,y,b,!1,n,t,S.lineStartIndex,S.lineLength,-1,C,k),F=e.icon.placedSymbolArray.length-1,p&&(z=4*p.length,e.addSymbols(e.icon,p,m,_,y,b,Ed.vertical,n,t,S.lineStartIndex,S.lineLength,-1,C,k),R=e.icon.placedSymbolArray.length-1)}for(const q in r.horizontal){const i=r.horizontal[q];E||(N=Is(i.text),f?O=Tp(i):E=Ep(c,j,t,u,h,d,i,p,l.layout.get("text-rotate").evaluate(b,{},k),m));const o=1===i.positionedLines.length;if(L+=kp(e,n,t,i,s,l,f,b,m,S,r.vertical?Ed.horizontal:Ed.horizontalOnly,o?Object.keys(r.horizontal):[q],$,F,x,C,k),o)break}r.vertical&&(B+=kp(e,n,t,r.vertical,s,l,f,b,m,S,Ed.vertical,["vertical"],$,R,x,C,k));let H=-1;const W=(e,t)=>e?Math.max(e,t):t;H=W(O,H),H=W(I,H),H=W(D,H);const G=H>-1?1:0;e.glyphOffsetArray.length>=af.MAX_GLYPHS&&q("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==b.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,b.sortKey),e.symbolInstances.emplaceBack(j.x,j.y,j.z,t.x,t.y,$.right>=0?$.right:-1,$.center>=0?$.center:-1,$.left>=0?$.left:-1,$.vertical>=0?$.vertical:-1,F,R,N,void 0!==E?E:e.collisionBoxArray.length,void 0!==E?E+1:e.collisionBoxArray.length,void 0!==M?M:e.collisionBoxArray.length,void 0!==M?M+1:e.collisionBoxArray.length,void 0!==T?T:e.collisionBoxArray.length,void 0!==T?T+1:e.collisionBoxArray.length,A||e.collisionBoxArray.length,A?A+1:e.collisionBoxArray.length,u,L,B,P,z,G,0,V,U,H)}(e,a,f,s,n,i,r,D,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,C,E,l,0,k,T,m,t,o,c,u,h)};if("line"===M)for(const x of Kd(t.geometry,0,0,aa,aa)){const t=Zd(x,w,S,n.vertical||g,i,y,b,e.overscaling,aa);for(const n of t)g&&Mp(e,g.text,A,n)||P(x,n,h)}else if("line-center"===M){for(const x of t.geometry)if(x.length>1){const e=Gd(x,S,n.vertical||g,i,y,b);e&&P(x,e,h)}}else if("Polygon"===t.type)for(const x of Cu(t.geometry,0)){const e=dp(x,16);P(x[0],new Vd(e.x,e.y,0,0,void 0),h)}else if("LineString"===t.type)for(const x of t.geometry)P(x,new Vd(x[0].x,x[0].y,0,0,void 0),h);else if("Point"===t.type)for(const x of t.geometry)for(const e of x)P([e],new Vd(e.x,e.y,0,0,void 0),h)}const wp=255,Cp=wp*$h;function kp(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g){const v=function(e,t,n,i,r,o,s,a){const l=[];if(0===t.positionedLines.length)return l;const c=i.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=function(e){const t=e[0],n=e[1],i=t*n;return i>0?[t,-n]:i<0?[-t,n]:0===t?[n,t]:[n,-t]}(n);let h=Math.abs(t.top-t.bottom);for(const m of t.positionedLines)h-=m.lineOffset;const d=t.positionedLines.length,p=h/d;let f=t.top-n[1];for(let m=0;m<d;++m){const e=t.positionedLines[m];f=cp(t,p,f,m);for(const i of e.positionedGlyphs){if(!i.rect)continue;const e=i.rect||{};let o=xd+1,h=!0,d=1,p=0;if(i.imageName){const e=s[i.imageName];if(!e)continue;if(e.sdf){q("SDF images are not supported in formatted text and will be ignored.");continue}h=!1,d=e.pixelRatio,o=Cd/d}const m=(r||a)&&i.vertical,g=i.metrics.advance*i.scale/2,v=i.metrics,_=i.rect;if(null===_)continue;a&&t.verticalizable&&(p=i.imageName?g-i.metrics.width*i.scale/2:0);const b=r?[i.x+g,i.y]:[0,0];let x=[0,0],w=[0,0],C=!1;r||(m?(w=[i.x+g+u[0],i.y+u[1]-p],C=!0):x=[i.x+g+n[0],i.y+n[1]-p]);const k=_.w*i.scale/(d*(i.localGlyph?ep:1)),S=_.h*i.scale/(d*(i.localGlyph?ep:1));let E,T,M,A;if(m){const e=i.y-f,t=new y(-g,g-e),n=-Math.PI/2,r=new y(...w);E=new y(-g+x[0],x[1]),E._rotateAround(n,t)._add(r),E.x+=-e+g,E.y-=(v.left-o)*i.scale;const s=i.imageName?v.advance*i.scale:Rh*i.scale,a=String.fromCharCode(i.glyph);Wh(a)?E.x+=(1-o)*i.scale:Gh(a)?E.x+=s-v.height*i.scale+(-o-1)*i.scale:E.x+=i.imageName||v.width+2*o===_.w&&v.height+2*o===_.h?(s-S)/2:(s-(v.height+2*o)*i.scale)/2,T=new y(E.x,E.y-k),M=new y(E.x+S,E.y),A=new y(E.x+S,E.y-k)}else{const e=(v.left-o)*i.scale-g+x[0],t=(-v.top-o)*i.scale+x[1],n=e+k,r=t+S;E=new y(e,t),T=new y(n,t),M=new y(e,r),A=new y(n,r)}if(c){let e;e=r?new y(0,0):C?new y(u[0],u[1]):new y(n[0],n[1]),E._rotateAround(c,e),T._rotateAround(c,e),M._rotateAround(c,e),A._rotateAround(c,e)}const O=new y(0,0),I=new y(0,0);l.push({tl:E,tr:T,bl:M,br:A,tex:e,writingMode:t.writingMode,glyphOffset:b,sectionIndex:i.sectionIndex,isSDF:h,pixelOffsetTL:O,pixelOffsetBR:I,minFontScaleX:0,minFontScaleY:0})}}return l}(0,i,l,o,s,a,r,e.allowVerticalPlacement),_=e.textSizeData;let b=null;"source"===_.kind?(b=[$h*o.layout.get("text-size").evaluate(a,{},g)],b[0]>Cp&&q(`${e.layerIds[0]}: Value for "text-size" is >= ${wp}. Reduce your "text-size".`)):"composite"===_.kind&&(b=[$h*f.compositeTextSizes[0].evaluate(a,{},g),$h*f.compositeTextSizes[1].evaluate(a,{},g)],(b[0]>Cp||b[1]>Cp)&&q(`${e.layerIds[0]}: Value for "text-size" is >= ${wp}. Reduce your "text-size".`)),e.addSymbols(e.text,v,b,l,s,a,u,t,n,c.lineStartIndex,c.lineLength,p,m,g);for(const y of h)d[y]=e.text.placedSymbolArray.length-1;return 4*v.length}function Sp(e){for(const t in e)return e[t];return null}function Ep(e,t,n,i,r,o,s,a,l,c){let u=s.top,h=s.bottom,d=s.left,p=s.right;const f=s.collisionPadding;if(f&&(d-=f[0],u-=f[1],p+=f[2],h+=f[3]),l){const e=new y(d,u),t=new y(p,u),n=new y(d,h),i=new y(p,h),r=x(l);let o=new y(0,0);c&&(o=new y(c[0],c[1])),e._rotateAround(r,o),t._rotateAround(r,o),n._rotateAround(r,o),i._rotateAround(r,o),d=Math.min(e.x,t.x,n.x,i.x),p=Math.max(e.x,t.x,n.x,i.x),u=Math.min(e.y,t.y,n.y,i.y),h=Math.max(e.y,t.y,n.y,i.y)}return e.emplaceBack(t.x,t.y,t.z,n.x,n.y,d,u,p,h,a,i,r,o),e.length-1}function Tp(e){e.collisionPadding&&(e.top-=e.collisionPadding[1],e.bottom+=e.collisionPadding[3]);const t=e.bottom-e.top;return t>0?Math.max(10,t):null}function Mp(e,t,n,i){const r=e.compareText;if(t in r){const e=r[t];for(let t=e.length-1;t>=0;t--)if(i.dist(e[t])<n)return!0}else r[t]=[];return r[t].push(i),!1}function Ap(e,t){const n=e.fovAboveCenter,i=e.elevation?e.elevation.getMinElevationBelowMSL()*t:0,r=(e._camera.position[2]*e.worldSize-i)/Math.cos(e._pitch),o=Math.sin(n)*r/Math.sin(Math.max(Math.PI/2-e._pitch-n,.01)),s=Math.sin(e._pitch)*o+r;return Math.min(1.01*s,r*(1/e._horizonShift))}function Op(e,t){if(!t.isReprojectedInTileSpace)return{scale:1<<e.z,x:e.x,y:e.y,x2:e.x+1,y2:e.y+1,projection:t};const n=Math.pow(2,-e.z),i=e.x*n,r=(e.x+1)*n,o=e.y*n,s=(e.y+1)*n,a=Gl(i),l=Gl(r),c=Zl(o),u=Zl(s),h=t.project(a,c),d=t.project(l,c),p=t.project(l,u),f=t.project(a,u);let m=Math.min(h.x,d.x,p.x,f.x),g=Math.min(h.y,d.y,p.y,f.y),v=Math.max(h.x,d.x,p.x,f.x),y=Math.max(h.y,d.y,p.y,f.y);const _=n/16;function b(e,n,i,r,o,s){const a=(i+o)/2,l=(r+s)/2,c=t.project(Gl(a),Zl(l)),u=Math.max(0,m-c.x,g-c.y,c.x-v,c.y-y);m=Math.min(m,c.x),v=Math.max(v,c.x),g=Math.min(g,c.y),y=Math.max(y,c.y),u>_&&(b(e,c,i,r,a,l),b(c,n,a,l,o,s))}b(h,d,i,o,r,o),b(d,p,r,o,r,s),b(p,f,r,s,i,s),b(f,h,i,s,i,o),m-=_,g-=_,v+=_,y+=_;const x=1/Math.max(v-m,y-g);return{scale:x,x:m*x,y:g*x,x2:v*x,y2:y*x,projection:t}}const Ip=pa(new Float32Array(16));class Dp{constructor(e){this.spec=e,this.name=e.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(e,t){return{x:0,y:0,z:0}}unproject(e,t){return new Vl(0,0)}projectTilePoint(e,t,n){return{x:e,y:t,z:0}}locationPoint(e,t,n=!0){return e._coordinatePoint(e.locationCoordinate(t),n)}pixelsPerMeter(e,t){return Wl(1,e)*t}pixelSpaceConversion(e,t,n){return 1}farthestPixelDistance(e){return Ap(e,e.pixelsPerMeter)}pointCoordinate(e,t,n,i){const r=e.horizonLineFromTop(!1),o=new y(t,Math.max(r,n));return e.rayIntersectionCoordinate(e.pointRayIntersection(o,i))}pointCoordinate3D(e,t,n){const i=new y(t,n);if(e.elevation)return e.elevation.pointCoordinate(i);{const t=this.pointCoordinate(e,i.x,i.y,0);return[t.x,t.y,t.z]}}isPointAboveHorizon(e,t){if(e.elevation)return!this.pointCoordinate3D(e,t.x,t.y);const n=e.horizonLineFromTop();return t.y<n}createInversionMatrix(e,t){return Ip}createTileMatrix(e,t,n){let i,r,o;const s=n.canonical,a=pa(new Float64Array(16));if(this.isReprojectedInTileSpace){const l=Op(s,this);i=1,r=l.x+n.wrap*l.scale,o=l.y,va(a,a,[i/l.scale,i/l.scale,e.pixelsPerMeter/t])}else i=t/e.zoomScale(s.z),r=(s.x+Math.pow(2,s.z)*n.wrap)*i,o=s.y*i;return ga(a,a,[r,o,0]),va(a,a,[i/aa,i/aa,1]),a}upVector(e,t,n){return[0,0,1]}upVectorScale(e,t,n){return{metersToTile:1}}}class Pp extends Dp{constructor(e){super(e),this.range=[4,7],this.center=e.center||[-96,37.5];const[t,n]=this.parallels=e.parallels||[29.5,45.5],i=Math.sin(x(t));this.n=(i+Math.sin(x(n)))/2,this.c=1+i*(2*this.n-i),this.r0=Math.sqrt(this.c)/this.n}project(e,t){const{n:n,c:i,r0:r}=this,o=x(e-this.center[0]),s=x(t),a=Math.sqrt(i-2*n*Math.sin(s))/n;return{x:a*Math.sin(o*n),y:a*Math.cos(o*n)-r,z:0}}unproject(e,t){const{n:n,c:i,r0:r}=this,o=r+t;let s=Math.atan2(e,Math.abs(o))*Math.sign(o);o*n<0&&(s-=Math.PI*Math.sign(e)*Math.sign(o));const a=x(this.center[0])*n;s=A(s,-Math.PI-a,Math.PI-a);const l=T(w(s/n)+this.center[0],-180,180),c=Math.asin(T((i-(e*e+o*o)*n*n)/(2*n),-1,1)),u=T(w(c),-Kl,Kl);return new Vl(l,u)}}const zp=1.340264,Lp=-.081106,Bp=893e-6,Fp=.003796,Rp=Math.sqrt(3)/2;class $p extends Dp{project(e,t){t=t/180*Math.PI,e=e/180*Math.PI;const n=Math.asin(Rp*Math.sin(t)),i=n*n,r=i*i*i;return{x:.5*(e*Math.cos(n)/(Rp*(zp+3*Lp*i+r*(7*Bp+9*Fp*i)))/Math.PI+.5),y:1-.5*(n*(zp+Lp*i+r*(Bp+Fp*i))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let n=t=(2*(1-t)-1)*Math.PI,i=n*n,r=i*i*i;for(let c,u,h,d=0;d<12&&(u=n*(zp+Lp*i+r*(Bp+Fp*i))-t,h=zp+3*Lp*i+r*(7*Bp+9*Fp*i),c=u/h,n=T(n-c,-Math.PI/3,Math.PI/3),i=n*n,r=i*i*i,!(Math.abs(c)<1e-12));++d);const o=Rp*e*(zp+3*Lp*i+r*(7*Bp+9*Fp*i))/Math.cos(n),s=Math.asin(Math.sin(n)/Rp),a=T(180*o/Math.PI,-180,180),l=T(180*s/Math.PI,-Kl,Kl);return new Vl(a,l)}}class Np extends Dp{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){return{x:.5+e/360,y:.5-t/360,z:0}}unproject(e,t){const n=360*(e-.5),i=T(360*(.5-t),-Kl,Kl);return new Vl(n,i)}}const jp=Math.PI/2;function Vp(e){return Math.tan((jp+e)/2)}class Up extends Dp{constructor(e){super(e),this.center=e.center||[0,30];const[t,n]=this.parallels=e.parallels||[30,30];let i=x(t),r=x(n);this.southernCenter=i+r<0,this.southernCenter&&(i=-i,r=-r);const o=Math.cos(i),s=Vp(i);this.n=i===r?Math.sin(i):Math.log(o/Math.cos(r))/Math.log(Vp(r)/s),this.f=o*Math.pow(Vp(i),this.n)/this.n}project(e,t){t=x(t),this.southernCenter&&(t=-t),e=x(e-this.center[0]);const n=1e-6,{n:i,f:r}=this;r>0?t<-jp+n&&(t=-jp+n):t>jp-n&&(t=jp-n);const o=r/Math.pow(Vp(t),i);let s=o*Math.sin(i*e),a=r-o*Math.cos(i*e);return s=.5*(s/Math.PI+.5),a=.5*(a/Math.PI+.5),{x:s,y:this.southernCenter?a:1-a,z:0}}unproject(e,t){e=(2*e-.5)*Math.PI,this.southernCenter&&(t=1-t),t=(2*(1-t)-.5)*Math.PI;const{n:n,f:i}=this,r=i-t,o=Math.sign(r),s=Math.sign(n)*Math.sqrt(e*e+r*r);let a=Math.atan2(e,Math.abs(r))*o;r*n<0&&(a-=Math.PI*Math.sign(e)*o);const l=T(w(a/n)+this.center[0],-180,180),c=T(w(2*Math.atan(Math.pow(i/s,1/n))-jp),-Kl,Kl);return new Vl(l,this.southernCenter?-c:c)}}class qp extends Dp{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(e,t){return{x:ql(e),y:Hl(t),z:0}}unproject(e,t){const n=Gl(e),i=Zl(t);return new Vl(n,i)}}const Hp=x(Kl);class Wp extends Dp{project(e,t){const n=(t=x(t))*t,i=n*n;return{x:.5*((e=x(e))*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791))/Math.PI+.5),y:1-.5*(t*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let n=t=(2*(1-t)-1)*Math.PI,i=25,r=0,o=n*n;do{o=n*n;const e=o*o;r=(n*(1.007226+o*(.015085+e*(.028874*o-.044475-.005916*e)))-t)/(1.007226+o*(.045255+e*(.259866*o-.311325-.005916*11*e))),n=T(n-r,-Hp,Hp)}while(Math.abs(r)>1e-6&&--i>0);o=n*n;const s=T(w(e/(.8707+o*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979))),-180,180),a=w(n);return new Vl(s,a)}}const Gp=x(Kl);class Zp extends Dp{project(e,t){t=x(t),e=x(e);const n=Math.cos(t),i=2/Math.PI,r=Math.acos(n*Math.cos(e/2)),o=Math.sin(r)/r,s=.5*(e*i+2*n*Math.sin(e/2)/o)||0,a=.5*(t+Math.sin(t)/o)||0;return{x:.5*(s/Math.PI+.5),y:1-.5*(a/Math.PI+1),z:0}}unproject(e,t){let n=e=(2*e-.5)*Math.PI,i=t=(2*(1-t)-1)*Math.PI,r=25;const o=1e-6;let s=0,a=0;do{const r=Math.cos(i),o=Math.sin(i),l=2*o*r,c=o*o,u=r*r,h=Math.cos(n/2),d=Math.sin(n/2),p=2*h*d,f=d*d,m=1-u*h*h,g=m?1/m:0,v=m?Math.acos(r*h)*Math.sqrt(1/m):0,y=.5*(2*v*r*d+2*n/Math.PI)-e,_=.5*(v*o+i)-t,b=.5*g*(u*f+v*r*h*c)+1/Math.PI,x=g*(p*l/4-v*o*d),w=.125*g*(l*d-v*o*u*p),C=.5*g*(c*h+v*f*r)+.5,k=x*w-C*b;s=(_*x-y*C)/k,a=(y*w-_*b)/k,n=T(n-s,-Math.PI,Math.PI),i=T(i-a,-Gp,Gp)}while((Math.abs(s)>o||Math.abs(a)>o)&&--r>0);return new Vl(w(n),w(i))}}class Xp extends Dp{constructor(e){super(e),this.center=e.center||[0,0],this.parallels=e.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(x(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){const{scale:n,cosPhi:i}=this;return{x:x(e)*i*n+.5,y:-Math.sin(x(t))/i*n+.5,z:0}}unproject(e,t){const{scale:n,cosPhi:i}=this,r=-(t-.5)/n,o=T(w((e-.5)/n)/i,-180,180),s=Math.asin(T(r*i,-1,1)),a=T(w(s),-Kl,Kl);return new Vl(o,a)}}class Kp extends qp{constructor(e){super(e),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(e,t,n){const i=Tl(e,t,n);return Fa(i,i,Ol(yl(n))),{x:i[0],y:i[1],z:i[2]}}locationPoint(e,t){const n=El(t.lat,t.lng),i=za([],n),r=e.elevation?e.elevation.getAtPointOrZero(e.locationCoordinate(t),e._centerAltitude):e._centerAltitude;Pa(n,n,i,Wl(1,0)*aa*r);const o=pa(new Float64Array(16));return ma(o,e.pixelMatrix,e.globeMatrix),Fa(n,n,o),new y(n[0],n[1])}pixelsPerMeter(e,t){return Wl(1,0)*t}pixelSpaceConversion(e,t,n){const i=Wl(1,e)*t,r=Dn(Wl(1,45)*t,i,n);return this.pixelsPerMeter(e,t)/r}createTileMatrix(e,t,n){const i=Il(yl(n.canonical));return ma(new Float64Array(16),e.globeMatrix,i)}createInversionMatrix(e,t){const{center:n}=e,i=Ol(yl(t));return _a(i,i,x(n.lng)),ya(i,i,x(n.lat)),va(i,i,[e._pixelsPerMercatorPixel,e._pixelsPerMercatorPixel,1]),Float32Array.from(i)}pointCoordinate(e,t,n,i){return ml(e,t,n,!0)||new Jl(0,0)}pointCoordinate3D(e,t,n){const i=this.pointCoordinate(e,t,n,0);return[i.x,i.y,i.z]}isPointAboveHorizon(e,t){return!ml(e,t.x,t.y,!1)}farthestPixelDistance(e){const t=function(e,t){const n=e.cameraToCenterDistance,i=e._centerAltitude*t,r=e._camera,o=e._camera.forward(),s=Ta([],Da([],o,-n),[0,0,i]),a=e.worldSize/(2*Math.PI),l=[0,0,-a],c=e.width/e.height,u=Math.tan(e.fovAboveCenter),h=Da([],r.up(),u),d=Da([],r.right(),u*c),p=za([],Ta([],Ta([],o,h),d)),f=[];let m;if(new tl(s,p).closestPointOnSphere(l,a,f)){const t=Ta([],f,l),n=Na([],t,s);m=Math.cos(e.fovAboveCenter)*Sa(n)}else{const e=Na([],s,l),t=Na([],l,s);za(t,t);const n=Sa(e)-a;m=Math.sqrt(n*(n+2*a));const i=Math.acos(m/(a+n))-Math.acos(La(o,t));m*=Math.cos(i)}return 1.01*m}(e,this.pixelsPerMeter(e.center.lat,e.worldSize)),n=Pl(e.zoom);if(n>0){const i=Ap(e,Wl(1,e.center.lat)*e.worldSize),r=e.worldSize/(2*Math.PI),o=Math.max(e.width,e.height)/e.worldSize*Math.PI;return Dn(t,i+r*(1-Math.cos(o)),Math.pow(n,10))}return t}upVector(e,t,n){return Tl(t,n,e,1)}upVectorScale(e){return{metersToTile:fl(Ml(yl(e)))}}}function Yp(e){const t=e.parallels,n=!!t&&Math.abs(t[0]+t[1])<.01;switch(e.name){case"mercator":return new qp(e);case"equirectangular":return new Np(e);case"naturalEarth":return new Wp(e);case"equalEarth":return new $p(e);case"winkelTripel":return new Zp(e);case"albers":return n?new Xp(e):new Pp(e);case"lambertConformalConic":return n?new Xp(e):new Up(e);case"globe":return new Kp(e)}throw new Error(`Invalid projection name: ${e.name}`)}const Jp=Gu.types,Qp=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function ef(e,t,n,i,r,o,s,a,l,c,u,h,d){const p=a?Math.min(Cp,Math.round(a[0])):0,f=a?Math.min(Cp,Math.round(a[1])):0;e.emplaceBack(t,n,Math.round(32*i),Math.round(32*r),o,s,(p<<1)+(l?1:0),f,16*c,16*u,256*h,256*d)}function tf(e,t,n,i,r,o,s){e.emplaceBack(t,n,i,r,o,s)}function nf(e,t,n,i,r){e.emplaceBack(t,n,i,r),e.emplaceBack(t,n,i,r),e.emplaceBack(t,n,i,r),e.emplaceBack(t,n,i,r)}function rf(e){for(const t of e.sections)if(lo(t.text))return!0;return!1}class of{constructor(e){this.layoutVertexArray=new Xo,this.indexArray=new is,this.programConfigurations=e,this.segments=new sa,this.dynamicLayoutVertexArray=new Ho,this.opacityVertexArray=new Yo,this.placedSymbolArray=new ms,this.globeExtVertexArray=new Ko}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(e,t,n,i){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ih.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Ph.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Qp,!0),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Dh.members,!0)),this.opacityVertexBuffer.itemSize=1),(n||i)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}}Xr(of,"SymbolBuffers");class sf{constructor(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new sa,this.collisionVertexArray=new ts,this.collisionVertexArrayExt=new ns}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,zh.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,Lh.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.destroy())}}Xr(sf,"CollisionBuffers");class af{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=pa([]),this.placementViewportMatrix=pa([]);const t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Nh(this.zoom,t["text-size"]),this.iconSizeData=Nh(this.zoom,t["icon-size"]);const n=this.layers[0].layout,i=n.get("symbol-sort-key"),r=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==r&&void 0!==i.constantOr(1),this.sortFeaturesByY=("viewport-y"===r||"auto"===r&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=n.get("text-writing-mode").map((e=>Ed[e])),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.sourceID=e.sourceID,this.projection=e.projection}createArrays(){this.text=new of(new Ks(this.layers,this.zoom,(e=>/^text/.test(e)))),this.icon=new of(new Ks(this.layers,this.zoom,(e=>/^icon/.test(e)))),this.glyphOffsetArray=new ys,this.lineVertexArray=new _s,this.symbolInstances=new vs}calculateGlyphDependencies(e,t,n,i,r){for(let o=0;o<e.length;o++)if(t[e.charCodeAt(o)]=!0,i&&r){const n=Hh[e.charAt(o)];n&&(t[n.charCodeAt(0)]=!0)}}populate(e,t,n,i){const r=this.layers[0],o=r.layout,s="globe"===this.projection.name,a=o.get("text-font"),l=o.get("text-field"),c=o.get("icon-image"),u=("constant"!==l.value.kind||l.value.value instanceof zt&&!l.value.value.isEmpty()||l.value.value.toString().length>0)&&("constant"!==a.value.kind||a.value.value.length>0),h="constant"!==c.value.kind||!!c.value.value||Object.keys(c.parameters).length>0,d=o.get("symbol-sort-key");if(this.features=[],!u&&!h)return;const p=t.iconDependencies,f=t.glyphDependencies,m=t.availableImages,g=new wo(this.zoom);for(const{feature:v,id:y,index:_,sourceLayerIndex:b}of e){const e=r._featureFilter.needGeometry,t=ac(v,e);if(!r._featureFilter.filter(g,t,n))continue;if(e||(t.geometry=sc(v,n,i)),s&&1!==v.type&&n.z<=5){const e=t.geometry,i=.98078528056,r=(e,t)=>La(Tl(e.x,e.y,n,1),Tl(t.x,t.y,n,1))<i;for(let t=0;t<e.length;t++)e[t]=nc(e[t],r)}let l,c;if(u){const e=r.getValueAndResolveTokens("text-field",t,n,m),i=zt.factory(e);rf(i)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===_o()||this.hasRTLText&&xo.isParsed())&&(l=qh(i,r,t))}if(h){const e=r.getValueAndResolveTokens("icon-image",t,n,m);c=e instanceof Lt?e:Lt.fromString(e)}if(!l&&!c)continue;const x=this.sortFeaturesByKey?d.evaluate(t,{},n):void 0;if(this.features.push({id:y,text:l,icon:c,index:_,sourceLayerIndex:b,geometry:t.geometry,properties:v.properties,type:Jp[v.type],sortKey:x}),c&&(p[c.name]=!0),l){const e=a.evaluate(t,{},n).join(","),i="map"===o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(Ed.vertical)>=0;for(const t of l.sections)if(t.image)p[t.image.name]=!0;else{const n=to(l.toString()),r=t.fontStack||e,o=f[r]=f[r]||{};this.calculateGlyphDependencies(t.text,o,i,this.allowVerticalPlacement,n)}}}"line"===o.get("symbol-placement")&&(this.features=function(e){const t={},n={},i=[];let r=0;function o(t){i.push(e[t]),r++}function s(e,t,r){const o=n[e];return delete n[e],n[t]=o,i[o].geometry[0].pop(),i[o].geometry[0]=i[o].geometry[0].concat(r[0]),o}function a(e,n,r){const o=t[n];return delete t[n],t[e]=o,i[o].geometry[0].shift(),i[o].geometry[0]=r[0].concat(i[o].geometry[0]),o}function l(e,t,n){const i=n?t[0][t[0].length-1]:t[0][0];return`${e}:${i.x}:${i.y}`}for(let c=0;c<e.length;c++){const u=e[c],h=u.geometry,d=u.text?u.text.toString():null;if(!d){o(c);continue}const p=l(d,h),f=l(d,h,!0);if(p in n&&f in t&&n[p]!==t[f]){const e=a(p,f,h),r=s(p,f,i[e].geometry);delete t[p],delete n[f],n[l(d,i[r].geometry,!0)]=r,i[e].geometry=null}else p in n?s(p,f,h):f in t?a(p,f,h):(o(c),t[p]=r-1,n[f]=r-1)}return i.filter((e=>e.geometry))}(this.features)),this.sortFeaturesByKey&&this.features.sort(((e,t)=>e.sortKey-t.sortKey))}update(e,t,n,i){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n,i),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n,i))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.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}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=Yp(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const n=this.lineVertexArray.length;if(void 0!==e.segment)for(const{x:i,y:r}of t)this.lineVertexArray.emplaceBack(i,r);return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(e,t,n,i,r,o,s,a,l,c,u,h,d,p){const f=e.indexArray,m=e.layoutVertexArray,g=e.globeExtVertexArray,v=e.segments.prepareSegment(4*t.length,m,f,this.canOverlap?o.sortKey:void 0),y=this.glyphOffsetArray.length,_=v.vertexLength,b=this.allowVerticalPlacement&&s===Ed.vertical?Math.PI/2:0,x=o.text&&o.text.sections;for(let C=0;C<t.length;C++){const{tl:i,tr:r,bl:s,br:c,tex:u,pixelOffsetTL:h,pixelOffsetBR:y,minFontScaleX:_,minFontScaleY:w,glyphOffset:k,isSDF:S,sectionIndex:E}=t[C],T=v.vertexLength,M=k[1];if(ef(m,l.x,l.y,i.x,M+i.y,u.x,u.y,n,S,h.x,h.y,_,w),ef(m,l.x,l.y,r.x,M+r.y,u.x+u.w,u.y,n,S,y.x,h.y,_,w),ef(m,l.x,l.y,s.x,M+s.y,u.x,u.y+u.h,n,S,h.x,y.y,_,w),ef(m,l.x,l.y,c.x,M+c.y,u.x+u.w,u.y+u.h,n,S,y.x,y.y,_,w),a){const{x:t,y:n,z:i}=a.anchor,[r,o,s]=a.up;tf(g,t,n,i,r,o,s),tf(g,t,n,i,r,o,s),tf(g,t,n,i,r,o,s),tf(g,t,n,i,r,o,s),nf(e.dynamicLayoutVertexArray,t,n,i,b)}else nf(e.dynamicLayoutVertexArray,l.x,l.y,l.z,b);f.emplaceBack(T,T+1,T+2),f.emplaceBack(T+1,T+2,T+3),v.vertexLength+=4,v.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(k[0]),C!==t.length-1&&E===t[C+1].sectionIndex||e.programConfigurations.populatePaintArrays(m.length,o,o.index,{},d,p,x&&x[E])}const w=a?a.anchor:l;e.placedSymbolArray.emplaceBack(w.x,w.y,w.z,l.x,l.y,y,this.glyphOffsetArray.length-y,_,c,u,l.segment,n?n[0]:0,n?n[1]:0,i[0],i[1],s,0,!1,0,h,0)}_commitLayoutVertex(e,t,n,i,r,o,s){e.emplaceBack(t,n,i,r,o,Math.round(s.x),Math.round(s.y))}_addCollisionDebugVertices(e,t,n,i,r,o,s){const a=n.segments.prepareSegment(4,n.layoutVertexArray,n.indexArray),l=a.vertexLength,c=s.tileAnchorX,u=s.tileAnchorY;for(let d=0;d<4;d++)n.collisionVertexArray.emplaceBack(0,0,0,0);n.collisionVertexArrayExt.emplaceBack(t,-e.padding,-e.padding),n.collisionVertexArrayExt.emplaceBack(t,e.padding,-e.padding),n.collisionVertexArrayExt.emplaceBack(t,e.padding,e.padding),n.collisionVertexArrayExt.emplaceBack(t,-e.padding,e.padding),this._commitLayoutVertex(n.layoutVertexArray,i,r,o,c,u,new y(e.x1,e.y1)),this._commitLayoutVertex(n.layoutVertexArray,i,r,o,c,u,new y(e.x2,e.y1)),this._commitLayoutVertex(n.layoutVertexArray,i,r,o,c,u,new y(e.x2,e.y2)),this._commitLayoutVertex(n.layoutVertexArray,i,r,o,c,u,new y(e.x1,e.y2)),a.vertexLength+=4;const h=n.indexArray;h.emplaceBack(l,l+1),h.emplaceBack(l+1,l+2),h.emplaceBack(l+2,l+3),h.emplaceBack(l+3,l),a.primitiveLength+=4}_addTextDebugCollisionBoxes(e,t,n,i,r,o){for(let s=i;s<r;s++){const i=n.get(s),r=this.getSymbolInstanceTextSize(e,o,t,s);this._addCollisionDebugVertices(i,r,this.textCollisionBox,i.projectedAnchorX,i.projectedAnchorY,i.projectedAnchorZ,o)}}_addIconDebugCollisionBoxes(e,t,n,i,r,o){for(let s=i;s<r;s++){const i=n.get(s),r=this.getSymbolInstanceIconSize(e,t,o.placedIconSymbolIndex);this._addCollisionDebugVertices(i,r,this.iconCollisionBox,i.projectedAnchorX,i.projectedAnchorY,i.projectedAnchorZ,o)}}generateCollisionDebugBuffers(e,t){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new sf(Qo,Bh.members,cs),this.iconCollisionBox=new sf(Qo,Bh.members,cs);const n=Vh(this.iconSizeData,e),i=Vh(this.textSizeData,e);for(let r=0;r<this.symbolInstances.length;r++){const o=this.symbolInstances.get(r);this._addTextDebugCollisionBoxes(i,e,t,o.textBoxStartIndex,o.textBoxEndIndex,o),this._addTextDebugCollisionBoxes(i,e,t,o.verticalTextBoxStartIndex,o.verticalTextBoxEndIndex,o),this._addIconDebugCollisionBoxes(n,e,t,o.iconBoxStartIndex,o.iconBoxEndIndex,o),this._addIconDebugCollisionBoxes(n,e,t,o.verticalIconBoxStartIndex,o.verticalIconBoxEndIndex,o)}}getSymbolInstanceTextSize(e,t,n,i){const r=this.text.placedSymbolArray.get(t.rightJustifiedTextSymbolIndex>=0?t.rightJustifiedTextSymbolIndex:t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.leftJustifiedTextSymbolIndex>=0?t.leftJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex>=0?t.verticalPlacedTextSymbolIndex:i),o=jh(this.textSizeData,e,r)/Rh;return this.tilePixelRatio*o}getSymbolInstanceIconSize(e,t,n){const i=this.icon.placedSymbolArray.get(n),r=jh(this.iconSizeData,e,i);return this.tilePixelRatio*r}_commitDebugCollisionVertexUpdate(e,t,n){e.emplaceBack(t,-n,-n),e.emplaceBack(t,n,-n),e.emplaceBack(t,n,n),e.emplaceBack(t,-n,n)}_updateTextDebugCollisionBoxes(e,t,n,i,r,o){for(let s=i;s<r;s++){const i=n.get(s),r=this.getSymbolInstanceTextSize(e,o,t,s);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,r,i.padding)}}_updateIconDebugCollisionBoxes(e,t,n,i,r,o){for(let s=i;s<r;s++){const i=n.get(s),r=this.getSymbolInstanceIconSize(e,t,o);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,r,i.padding)}}updateCollisionDebugBuffers(e,t){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const n=Vh(this.iconSizeData,e),i=Vh(this.textSizeData,e);for(let r=0;r<this.symbolInstances.length;r++){const o=this.symbolInstances.get(r);this._updateTextDebugCollisionBoxes(i,e,t,o.textBoxStartIndex,o.textBoxEndIndex,o),this._updateTextDebugCollisionBoxes(i,e,t,o.verticalTextBoxStartIndex,o.verticalTextBoxEndIndex,o),this._updateIconDebugCollisionBoxes(n,e,t,o.iconBoxStartIndex,o.iconBoxEndIndex,o.placedIconSymbolIndex),this._updateIconDebugCollisionBoxes(n,e,t,o.verticalIconBoxStartIndex,o.verticalIconBoxEndIndex,o.placedIconSymbolIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(e,t,n,i,r,o,s,a,l){const c={};if(t<n){const{x1:n,y1:i,x2:r,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:p}=e.get(t);c.textBox={x1:n,y1:i,x2:r,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.textFeatureIndex=p}if(i<r){const{x1:t,y1:n,x2:r,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:p}=e.get(i);c.verticalTextBox={x1:t,y1:n,x2:r,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.verticalTextFeatureIndex=p}if(o<s){const{x1:t,y1:n,x2:i,y2:r,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:p}=e.get(o);c.iconBox={x1:t,y1:n,x2:i,y2:r,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.iconFeatureIndex=p}if(a<l){const{x1:t,y1:n,x2:i,y2:r,padding:o,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:p}=e.get(a);c.verticalIconBox={x1:t,y1:n,x2:i,y2:r,padding:o,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.verticalIconFeatureIndex=p}return c}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){const n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){const n=e.placedSymbolArray.get(t),i=n.vertexStartIndex+4*n.numGlyphs;for(let r=n.vertexStartIndex;r<i;r+=4)e.indexArray.emplaceBack(r,r+1,r+2),e.indexArray.emplaceBack(r+1,r+2,r+3)}getSortedSymbolIndexes(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const t=Math.sin(e),n=Math.cos(e),i=[],r=[],o=[];for(let s=0;s<this.symbolInstances.length;++s){o.push(s);const e=this.symbolInstances.get(s);i.push(0|Math.round(t*e.tileAnchorX+n*e.tileAnchorY)),r.push(e.featureIndex)}return o.sort(((e,t)=>i[e]-i[t]||r[t]-r[e])),o}addToSortKeyRanges(e,t){const n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){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(const e of this.symbolInstanceIndexes){const t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex);const{rightJustifiedTextSymbolIndex:n,centerJustifiedTextSymbolIndex:i,leftJustifiedTextSymbolIndex:r,verticalPlacedTextSymbolIndex:o,placedIconSymbolIndex:s,verticalPlacedIconSymbolIndex:a}=t;n>=0&&this.addIndicesForPlacedSymbol(this.text,n),i>=0&&i!==n&&this.addIndicesForPlacedSymbol(this.text,i),r>=0&&r!==i&&r!==n&&this.addIndicesForPlacedSymbol(this.text,r),o>=0&&this.addIndicesForPlacedSymbol(this.text,o),s>=0&&this.addIndicesForPlacedSymbol(this.icon,s),a>=0&&this.addIndicesForPlacedSymbol(this.icon,a)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Xr(af,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),af.MAX_GLYPHS=65535,af.addDynamicAttributes=nf;const lf=new zo({"symbol-placement":new Io(et.layout_symbol["symbol-placement"]),"symbol-spacing":new Io(et.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Io(et.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Do(et.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Io(et.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Io(et.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Io(et.layout_symbol["icon-ignore-placement"]),"icon-optional":new Io(et.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Io(et.layout_symbol["icon-rotation-alignment"]),"icon-size":new Do(et.layout_symbol["icon-size"]),"icon-text-fit":new Io(et.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Io(et.layout_symbol["icon-text-fit-padding"]),"icon-image":new Do(et.layout_symbol["icon-image"]),"icon-rotate":new Do(et.layout_symbol["icon-rotate"]),"icon-padding":new Io(et.layout_symbol["icon-padding"]),"icon-keep-upright":new Io(et.layout_symbol["icon-keep-upright"]),"icon-offset":new Do(et.layout_symbol["icon-offset"]),"icon-anchor":new Do(et.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Io(et.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Io(et.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Io(et.layout_symbol["text-rotation-alignment"]),"text-field":new Do(et.layout_symbol["text-field"]),"text-font":new Do(et.layout_symbol["text-font"]),"text-size":new Do(et.layout_symbol["text-size"]),"text-max-width":new Do(et.layout_symbol["text-max-width"]),"text-line-height":new Do(et.layout_symbol["text-line-height"]),"text-letter-spacing":new Do(et.layout_symbol["text-letter-spacing"]),"text-justify":new Do(et.layout_symbol["text-justify"]),"text-radial-offset":new Do(et.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Io(et.layout_symbol["text-variable-anchor"]),"text-anchor":new Do(et.layout_symbol["text-anchor"]),"text-max-angle":new Io(et.layout_symbol["text-max-angle"]),"text-writing-mode":new Io(et.layout_symbol["text-writing-mode"]),"text-rotate":new Do(et.layout_symbol["text-rotate"]),"text-padding":new Io(et.layout_symbol["text-padding"]),"text-keep-upright":new Io(et.layout_symbol["text-keep-upright"]),"text-transform":new Do(et.layout_symbol["text-transform"]),"text-offset":new Do(et.layout_symbol["text-offset"]),"text-allow-overlap":new Io(et.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Io(et.layout_symbol["text-ignore-placement"]),"text-optional":new Io(et.layout_symbol["text-optional"])});var cf={paint:new zo({"icon-opacity":new Do(et.paint_symbol["icon-opacity"]),"icon-color":new Do(et.paint_symbol["icon-color"]),"icon-halo-color":new Do(et.paint_symbol["icon-halo-color"]),"icon-halo-width":new Do(et.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Do(et.paint_symbol["icon-halo-blur"]),"icon-translate":new Io(et.paint_symbol["icon-translate"]),"icon-translate-anchor":new Io(et.paint_symbol["icon-translate-anchor"]),"text-opacity":new Do(et.paint_symbol["text-opacity"]),"text-color":new Do(et.paint_symbol["text-color"],{runtimeType:dt,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new Do(et.paint_symbol["text-halo-color"]),"text-halo-width":new Do(et.paint_symbol["text-halo-width"]),"text-halo-blur":new Do(et.paint_symbol["text-halo-blur"]),"text-translate":new Io(et.paint_symbol["text-translate"]),"text-translate-anchor":new Io(et.paint_symbol["text-translate-anchor"])}),layout:lf};class uf{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:lt,this.defaultValue=e}evaluate(e){if(e.formattedSection){const 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}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Xr(uf,"FormatSectionOverride",{omit:["defaultValue"]});class hf extends ia{constructor(e){super(e,cf)}recalculate(e,t){super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"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"));const n=this.layout.get("text-writing-mode");if(n){const e=[];for(const t of n)e.indexOf(t)<0&&e.push(t);this.layout._values["text-writing-mode"]=e}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(e,t,n,i){const r=this.layout.get(e).evaluate(t,{},n,i),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||Xi(o.value)||!r?r:function(e,t){return t.replace(/{([^{}]+)}/g,((t,n)=>n in e?String(e[n]):""))}(t.properties,r)}createBucket(e){return new af(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of cf.paint.overridableProperties){if(!hf.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),n=new uf(t),i=new Zi(n,t.property.specification);let r=null;r="constant"===t.value.kind||"source"===t.value.kind?new Yi("source",i):new Ji("composite",i,t.value.zoomStops,t.value._interpolationType),this.paint._values[e]=new Ao(t.property,r,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,n){return!(!this.layout||t.isDataDriven()||n.isDataDriven())&&hf.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const n=e.get("text-field"),i=cf.paint.properties[t];let r=!1;const o=e=>{for(const t of e)if(i.overrides&&i.overrides.hasOverride(t))return void(r=!0)};if("constant"===n.value.kind&&n.value.value instanceof zt)o(n.value.value.sections);else if("source"===n.value.kind){const e=t=>{r||(t instanceof jt&&Rt(t.value)===gt?o(t.value.sections):t instanceof Wt?o(t.sections):t.eachChild(e))},t=n.value;t._styleExpression&&e(t._styleExpression.expression)}return r}getProgramConfiguration(e){return new Xs(this,e)}}var df={paint:new zo({"background-color":new Io(et.paint_background["background-color"]),"background-pattern":new Io(et.paint_background["background-pattern"]),"background-opacity":new Io(et.paint_background["background-opacity"])})},pf={paint:new zo({"raster-opacity":new Io(et.paint_raster["raster-opacity"]),"raster-hue-rotate":new Io(et.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Io(et.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Io(et.paint_raster["raster-brightness-max"]),"raster-saturation":new Io(et.paint_raster["raster-saturation"]),"raster-contrast":new Io(et.paint_raster["raster-contrast"]),"raster-resampling":new Io(et.paint_raster["raster-resampling"]),"raster-fade-duration":new Io(et.paint_raster["raster-fade-duration"])})};class ff extends ia{constructor(e){super(e,{}),this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}isLayerDraped(){return void 0!==this.implementation.renderToTile}shouldRedrape(){return!!this.implementation.shouldRerenderTiles&&this.implementation.shouldRerenderTiles()}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)}onRemove(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)}}var mf={paint:new zo({"sky-type":new Io(et.paint_sky["sky-type"]),"sky-atmosphere-sun":new Io(et.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new Io(et.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new Io(et.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new Io(et.paint_sky["sky-gradient-radius"]),"sky-gradient":new Po(et.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new Io(et.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new Io(et.paint_sky["sky-atmosphere-color"]),"sky-opacity":new Io(et.paint_sky["sky-opacity"])})};function gf(e,t,n){const i=[0,0,1],r=Ga([]);return Xa(r,r,n?-x(e)+Math.PI:x(e)),Za(r,r,-x(t)),Ra(i,i,r),za(i,i)}const vf={circle:class extends ia{constructor(e){super(e,Mc)}createBucket(e){return new uc(e)}queryRadius(e){const t=e;return Cc("circle-radius",this,t)+Cc("circle-stroke-width",this,t)+kc(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,n,i,r,o,s,a){const l=Ec(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),c=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n);return Ac(e,i,o,s,a,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),l,c)}getProgramIds(){return["circle"]}getProgramConfiguration(e){return new Xs(this,e)}},heatmap:class extends ia{createBucket(e){return new zc(e)}constructor(e){super(e,Nc),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=jc({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(e){return Cc("heatmap-radius",this,e)}queryIntersectsFeature(e,t,n,i,r,o,s,a){const l=this.paint.get("heatmap-radius").evaluate(t,n);return Ac(e,i,o,s,a,!0,!0,new y(0,0),l)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(e){return new Xs(this,e)}},hillshade:class extends ia{constructor(e){super(e,Vc)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends ia{constructor(e){super(e,Au)}getProgramIds(){const e=this.paint.get("fill-pattern"),t=e&&e.constantOr(1),n=[t?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&n.push(t&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),n}getProgramConfiguration(e){return new Xs(this,e)}recalculate(e,t){super.recalculate(e,t);const 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"])}createBucket(e){return new Tu(e)}queryRadius(){return kc(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,n,i,r,o){return!e.queryGeometry.isAboveHorizon&&pc(Sc(e.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),i)}isTileClipped(){return!0}},"fill-extrusion":class extends ia{constructor(e){super(e,uh)}createBucket(e){return new eh(e)}queryRadius(){return kc(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(e){return new Xs(this,e)}queryIntersectsFeature(e,t,n,i,r,o,s,a,l){const c=Ec(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),u=this.paint.get("fill-extrusion-height").evaluate(t,n),h=this.paint.get("fill-extrusion-base").evaluate(t,n),d=[0,0],p=a&&o.elevation,f=o.elevation?o.elevation.exaggeration():1,m=e.tile.getBucket(this);if(p&&m instanceof eh){const e=m.centroidVertexArray,t=l+1;t<e.length&&(d[0]=e.geta_centroid_pos0(t),d[1]=e.geta_centroid_pos1(t))}if(0===d[0]&&1===d[1])return!1;"globe"===o.projection.name&&(i=lh([i],[new y(0,0),new y(aa,aa)],e.tileID.canonical).map((e=>e.polygon)).flat());const g=p?a:null,[v,_]=function(e,t,n,i,r,o,s,a,l,c,u){return"globe"===e.projection.name?function(e,t,n,i,r,o,s,a,l,c,u){const h=[],d=[],p=e.projection.upVectorScale(u,e.center.lat,e.worldSize).metersToTile,f=[0,0,0,1],m=[0,0,0,1],g=(e,t,n,i)=>{e[0]=t,e[1]=n,e[2]=i,e[3]=1},v=ah();n>0&&(n+=v),i+=v;for(const y of t){const t=[],v=[];for(const h of y){const d=h.x+r.x,y=h.y+r.y,_=e.projection.projectTilePoint(d,y,u),b=e.projection.upVector(u,h.x,h.y);let x=n,w=i;if(s){const e=_h(d,y,n,i,s,a,l,c);x+=e.base,w+=e.top}0!==n?g(f,_.x+b[0]*p*x,_.y+b[1]*p*x,_.z+b[2]*p*x):g(f,_.x,_.y,_.z),g(m,_.x+b[0]*p*w,_.y+b[1]*p*w,_.z+b[2]*p*w),Fa(f,f,o),Fa(m,m,o),t.push(new gh(f[0],f[1],f[2])),v.push(new gh(m[0],m[1],m[2]))}h.push(t),d.push(v)}return[h,d]}(e,t,n,i,r,o,s,a,l,c,u):s?function(e,t,n,i,r,o,s,a,l){const c=[],u=[],h=[0,0,0,1];for(const d of e){const e=[],p=[];for(const c of d){const u=c.x+i.x,d=c.y+i.y,f=_h(u,d,t,n,o,s,a,l);h[0]=u,h[1]=d,h[2]=f.base,h[3]=1,Ha(h,h,r),h[3]=Math.max(h[3],1e-5);const m=new gh(h[0]/h[3],h[1]/h[3],h[2]/h[3]);h[0]=u,h[1]=d,h[2]=f.top,h[3]=1,Ha(h,h,r),h[3]=Math.max(h[3],1e-5);const g=new gh(h[0]/h[3],h[1]/h[3],h[2]/h[3]);e.push(m),p.push(g)}c.push(e),u.push(p)}return[c,u]}(t,n,i,r,o,s,a,l,c):function(e,t,n,i,r){const o=[],s=[],a=r[8]*t,l=r[9]*t,c=r[10]*t,u=r[11]*t,h=r[8]*n,d=r[9]*n,p=r[10]*n,f=r[11]*n;for(const m of e){const e=[],t=[];for(const n of m){const o=n.x+i.x,s=n.y+i.y,m=r[0]*o+r[4]*s+r[12],g=r[1]*o+r[5]*s+r[13],v=r[2]*o+r[6]*s+r[14],y=r[3]*o+r[7]*s+r[15],_=m+a,b=g+l,x=v+c,w=Math.max(y+u,1e-5),C=m+h,k=g+d,S=v+p,E=Math.max(y+f,1e-5);e.push(new gh(_/w,b/w,x/w)),t.push(new gh(C/E,k/E,S/E))}o.push(e),s.push(t)}return[o,s]}(t,n,i,r,o)}(o,i,h,u,c,s,g,d,f,o.center.lat,e.tileID.canonical),b=e.queryGeometry;return function(e,t,n){let i=1/0;pc(n,t)&&(i=yh(n,t[0]));for(let r=0;r<t.length;r++){const o=t[r],s=e[r];for(let e=0;e<o.length-1;e++){const t=o[e],r=[t,o[e+1],s[e+1],s[e],t];hc(n,r)&&(i=Math.min(i,yh(n,r)))}}return i!==1/0&&i}(v,_,b.isPointQuery()?b.screenBounds:b.screenGeometry)}},line:class extends ia{constructor(e){super(e,Mh),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(e){if("line-gradient"===e){const e=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=e._styleExpression&&e._styleExpression.expression instanceof In,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}widthExpression(){return this._transitionablePaint._values["line-width"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=Ah.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Eh(e)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getProgramConfiguration(e){return new Xs(this,e)}queryRadius(e){const t=e,n=Oh(Cc("line-width",this,t),Cc("line-gap-width",this,t)),i=Cc("line-offset",this,t);return n/2+Math.abs(i)+kc(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,n,i,r,o){if(e.queryGeometry.isAboveHorizon)return!1;const s=Sc(e.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),a=e.pixelToTileUnitsFactor/2*Oh(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),l=this.paint.get("line-offset").evaluate(t,n);return l&&(i=function(e,t){const n=[],i=new y(0,0);for(let r=0;r<e.length;r++){const o=e[r],s=[];for(let e=0;e<o.length;e++){const n=o[e],r=o[e+1],a=0===e?i:n.sub(o[e-1])._unit()._perp(),l=e===o.length-1?i:r.sub(n)._unit()._perp(),c=a._add(l)._unit();c._mult(1/(c.x*l.x+c.y*l.y)),s.push(c._mult(t)._add(n))}n.push(s)}return n}(i,l*e.pixelToTileUnitsFactor)),function(e,t,n){for(let i=0;i<t.length;i++){const r=t[i];if(e.length>=3)for(let t=0;t<r.length;t++)if(bc(e,r[t]))return!0;if(fc(e,r,n))return!0}return!1}(s,i,a)}isTileClipped(){return!0}},symbol:hf,background:class extends ia{constructor(e){super(e,df)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends ia{constructor(e){super(e,pf)}getProgramIds(){return["raster"]}},sky:class extends ia{constructor(e){super(e,mf),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"sky-gradient"===e?this._updateColorRamp():"sky-atmosphere-sun"!==e&&"sky-atmosphere-halo-color"!==e&&"sky-atmosphere-color"!==e&&"sky-atmosphere-sun-intensity"!==e||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=jc({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(e){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const t=e.style.light.properties.get("position");return this._lightPosition.azimuthal!==t.azimuthal||this._lightPosition.polar!==t.polar}return!1}getCenter(e,t){if("atmosphere"===this.paint.get("sky-type")){const n=this.paint.get("sky-atmosphere-sun"),i=!n,r=e.style.light,o=r.properties.get("position");return i&&"viewport"===r.properties.get("anchor")&&q("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),i?gf(o.azimuthal,90-o.polar,t):gf(n[0],90-n[1],t)}const n=this.paint.get("sky-gradient-center");return gf(n[0],90-n[1],t)}is3D(){return!1}isSky(){return!0}markSkyboxValid(e){this._skyboxInvalidated=!1,this._lightPosition=e.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const e=this.paint.get("sky-type");return"atmosphere"===e?["skyboxCapture","skybox"]:"gradient"===e?["skyboxGradient"]:null}}};class yf{constructor(e,t,n,i){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,i)}update(e,n,i){const{width:r,height:o}=e,{context:s}=this,{gl:a}=s,{HTMLImageElement:l,HTMLCanvasElement:c,HTMLVideoElement:u,ImageData:h,ImageBitmap:d}=t;if(a.bindTexture(a.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1),s.pixelStoreUnpackPremultiplyAlpha.set(this.format===a.RGBA&&(!n||!1!==n.premultiply)),i||this.size&&this.size[0]===r&&this.size[1]===o){const{x:t,y:n}=i||{x:0,y:0};e instanceof l||e instanceof c||e instanceof u||e instanceof h||d&&e instanceof d?a.texSubImage2D(a.TEXTURE_2D,0,t,n,a.RGBA,a.UNSIGNED_BYTE,e):a.texSubImage2D(a.TEXTURE_2D,0,t,n,r,o,a.RGBA,a.UNSIGNED_BYTE,e.data)}else this.size=[r,o],e instanceof l||e instanceof c||e instanceof u||e instanceof h||d&&e instanceof d?a.texImage2D(a.TEXTURE_2D,0,this.format,this.format,a.UNSIGNED_BYTE,e):a.texImage2D(a.TEXTURE_2D,0,this.format,r,o,0,this.format,a.UNSIGNED_BYTE,e.data);this.useMipmap=Boolean(n&&n.useMipmap&&this.isSizePowerOfTwo()),this.useMipmap&&a.generateMipmap(a.TEXTURE_2D)}bind(e,t){const{context:n}=this,{gl:i}=n;i.bindTexture(i.TEXTURE_2D,this.texture),e!==this.filter&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,e),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,this.useMipmap?e===i.NEAREST?i.NEAREST_MIPMAP_NEAREST:i.LINEAR_MIPMAP_NEAREST:e),this.filter=e),t!==this.wrap&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,t),this.wrap=t)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}class _f{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._callback()}),0))}remove(){this._channel=void 0,this._callback=()=>{}}}class bf{constructor(){this.tasks={},this.taskQueue=[],R(["process"],this),this.invoker=new _f(this.process),this.nextId=0}add(e,t){const n=this.nextId++,i=function({type:e,isSymbolTile:t,zoom:n}){return n=n||0,"message"===e?0:"maybePrepare"!==e||t?"parseTile"!==e||t?"parseTile"===e&&t?300-n:"maybePrepare"===e&&t?400-n:500:200-n:100-n}(t);if(0===i){G();try{e()}finally{}return{cancel:()=>{}}}return this.tasks[n]={fn:e,metadata:t,priority:i,id:n},this.taskQueue.push(n),this.invoker.trigger(),{cancel:()=>{delete this.tasks[n]}}}process(){G();try{if(this.taskQueue=this.taskQueue.filter((e=>!!this.tasks[e])),!this.taskQueue.length)return;const e=this.pick();if(null===e)return;const t=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),!t)return;t.fn()}finally{}}pick(){let e=null,t=1/0;for(let i=0;i<this.taskQueue.length;i++){const n=this.tasks[this.taskQueue[i]];n.priority<t&&(t=n.priority,e=i)}if(null===e)return null;const n=this.taskQueue[e];return this.taskQueue.splice(e,1),n}remove(){this.invoker.remove()}}class xf{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){const n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}}encode(e){return this._stringToNumber[e]}decode(e){return this._numberToString[e]}}const wf=["tile","layer","source","sourceLayer","state"];class Cf{constructor(e,t,n,i,r){this.type="Feature",this._vectorTileFeature=e,this._z=t,this._x=n,this._y=i,this.properties=e.properties,this.id=r}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={type:"Feature",state:void 0,geometry:this.geometry,properties:this.properties};void 0!==this.id&&(e.id=this.id);for(const t of wf)void 0!==this[t]&&(e[t]=this[t]);return e}}const kf=32,Sf=33,Ef=new Uint16Array(8184);for(let Cm=0;Cm<2046;Cm++){let e=Cm+2,t=0,n=0,i=0,r=0,o=0,s=0;for(1&e?i=r=o=kf:t=n=s=kf;(e>>=1)>1;){const a=t+i>>1,l=n+r>>1;1&e?(i=t,r=n,t=o,n=s):(t=i,n=r,i=o,r=s),o=a,s=l}const a=4*Cm;Ef[a+0]=t,Ef[a+1]=n,Ef[a+2]=i,Ef[a+3]=r}const Tf=new Uint16Array(2178),Mf=new Uint8Array(1089),Af=new Uint16Array(1089);function Of(e){return 0===e?-.03125:32===e?.03125:0}var If=$o([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const Df={type:2,extent:aa,loadGeometry:()=>[[new y(0,0),new y(aa+1,0),new y(aa+1,aa+1),new y(0,aa+1),new y(0,0)]]};class Pf{constructor(e,t,n,i,r){this.tileID=e,this.uid=z(),this.uses=0,this.tileSize=t,this.tileZoom=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=r,this.expiredRequestCount=0,this.state="loading",i&&i.transform&&(this.projection=i.transform.projection)}registerFadeDuration(e){const t=e+this.timeAdded;t<Ze.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}get tileTransform(){return this._tileTransform||(this._tileTransform=Op(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(e,t,n){if(this.unloadVectorData(),this.state="loaded",e){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){const n={};if(!t)return n;for(const i of e){const e=i.layerIds.map((e=>t.getLayer(e))).filter(Boolean);if(0!==e.length){i.layers=e,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map((t=>e.filter((e=>e.id===t))[0])));for(const t of e)n[t.id]=i}}return n}(e.buckets,t.style),this.hasSymbolBuckets=!1;for(const e in this.buckets){const t=this.buckets[e];if(t instanceof af){if(this.hasSymbolBuckets=!0,!n)break;t.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const e in this.buckets){const t=this.buckets[e];if(t instanceof af&&t.hasRTLText){this.hasRTLText=!0,xo.isLoading()||xo.isLoaded()||"deferred"!==_o()||bo();break}}this.queryPadding=0;for(const e in this.buckets){const n=this.buckets[e];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(e).queryRadius(n))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),e.lineAtlas&&(this.lineAtlas=e.lineAtlas)}else this.collisionBoxArray=new ps}unloadVectorData(){if(this.hasData()){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(e){return this.buckets[e.id]}upload(e){for(const n in this.buckets){const t=this.buckets[n];t.uploadPending()&&t.upload(e)}const t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new yf(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new yf(e,this.glyphAtlasImage,t.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new yf(e,this.lineAtlas.image,t.ALPHA),this.lineAtlas.uploaded=!0)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,n,i,r,o,s,a){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:i,pixelPosMatrix:s,transform:o,params:r,tileTransform:this.tileTransform},e,t,n):{}}querySourceFeatures(e,t){const n=this.latestFeatureIndex;if(!n||!n.rawTileData)return;const i=n.loadVTLayers(),r=t?t.sourceLayer:"",o=i._geojsonTileLayer||i[r];if(!o)return;const s=hr(t&&t.filter),{z:a,x:l,y:c}=this.tileID.canonical,u={z:a,x:l,y:c};for(let h=0;h<o.length;h++){const t=o.feature(h);if(s.needGeometry){const e=ac(t,!0);if(!s.filter(new wo(this.tileID.overscaledZ),e,this.tileID.canonical))continue}else if(!s.filter(new wo(this.tileID.overscaledZ),t))continue;const i=n.getId(t,r),d=new Cf(t,a,l,c,i);d.tile=u,e.push(d)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(e){const t=this.expirationTime;if(e.cacheControl){const t=Z(e.cacheControl);t["max-age"]&&(this.expirationTime=Date.now()+1e3*t["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){const e=Date.now();let n=!1;if(this.expirationTime>e)n=!1;else if(t)if(this.expirationTime<t)n=!0;else{const i=this.expirationTime-t;i?this.expirationTime=e+Math.max(i,3e4):n=!0}else n=!0;n?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(e,t){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(e).length||!t)return;const n=this.latestFeatureIndex.loadVTLayers(),i=t.style.listImages();for(const r in this.buckets){if(!t.style.hasLayer(r))continue;const o=this.buckets[r],s=o.layers[0].sourceLayer||"_geojsonTileLayer",a=n[s],l=e[s];if(!a||!l||0===Object.keys(l).length)continue;if(o.update(l,a,i,this.imageAtlas&&this.imageAtlas.patternPositions||{}),o instanceof Eh||o instanceof Tu){const e=t.style._getSourceCache(o.layers[0].source);t._terrain&&t._terrain.enabled&&e&&o.programConfigurations.needsUpload&&t._terrain._clearRenderCacheForTile(e.id,this.tileID)}const c=t&&t.style&&t.style.getLayer(r);c&&(this.queryPadding=Math.max(this.queryPadding,c.queryRadius(o)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<Ze.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(e){this.symbolFadeHoldUntil=Ze.now()+e}setTexture(e,t){const n=t.context,i=n.gl;this.texture=this.texture||t.getTileTexture(e.width),this.texture?this.texture.update(e,{useMipmap:!0}):(this.texture=new yf(n,e,i.RGBA,{useMipmap:!0}),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE))}setDependencies(e,t){const n={};for(const i of t)n[i]=!0;this.dependencies[e]=n}hasDependency(e,t){for(const n of e){const e=this.dependencies[n];if(e)for(const n of t)if(e[n])return!0}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(e,t){if(!t||"mercator"===t.name||this._tileDebugBuffer)return;const n=sc(Df,this.tileID.canonical,this.tileTransform)[0],i=new jo,r=new us;for(let o=0;o<n.length;o++){const{x:e,y:t}=n[o];i.emplaceBack(e,t),r.emplaceBack(o)}r.emplaceBack(0),this._tileDebugIndexBuffer=e.createIndexBuffer(r),this._tileDebugBuffer=e.createVertexBuffer(i,el.members),this._tileDebugSegments=sa.simpleSegment(0,0,i.length,r.length)}_makeTileBoundsBuffers(e,t){if(this._tileBoundsBuffer||!t||"mercator"===t.name)return;const n=sc(Df,this.tileID.canonical,this.tileTransform)[0];let i,r;if(this.isRaster){const e=function(e,t){const n=Op(e,t),i=Math.pow(2,e.z);for(let c=0;c<Sf;c++)for(let r=0;r<Sf;r++){const o=Gl((e.x+(r+Of(r))/kf)/i),s=Zl((e.y+(c+Of(c))/kf)/i),a=t.project(o,s),l=c*Sf+r;Tf[2*l+0]=Math.round((a.x*n.scale-n.x)*aa),Tf[2*l+1]=Math.round((a.y*n.scale-n.y)*aa)}Mf.fill(0),Af.fill(0);for(let c=2045;c>=0;c--){const e=4*c,t=Ef[e+0],n=Ef[e+1],i=Ef[e+2],r=Ef[e+3],o=t+i>>1,s=n+r>>1,a=o+s-n,l=s+t-o,u=n*Sf+t,h=r*Sf+i,d=s*Sf+o,p=Math.hypot((Tf[2*u+0]+Tf[2*h+0])/2-Tf[2*d+0],(Tf[2*u+1]+Tf[2*h+1])/2-Tf[2*d+1])>=16;Mf[d]=Mf[d]||(p?1:0),c<1022&&(Mf[d]=Mf[d]||Mf[(n+l>>1)*Sf+(t+a>>1)]||Mf[(r+l>>1)*Sf+(i+a>>1)])}const r=new Uo,o=new is;let s=0;function a(e,t){const n=t*Sf+e;return 0===Af[n]&&(r.emplaceBack(Tf[2*n+0],Tf[2*n+1],e*aa/kf,t*aa/kf),Af[n]=++s),Af[n]-1}function l(e,t,n,i,r,s){const c=e+n>>1,u=t+i>>1;if(Math.abs(e-r)+Math.abs(t-s)>1&&Mf[u*Sf+c])l(r,s,e,t,c,u),l(n,i,r,s,c,u);else{const l=a(e,t),c=a(n,i),u=a(r,s);o.emplaceBack(l,c,u)}}return l(0,0,kf,kf,kf,0),l(kf,kf,0,0,0,kf),{vertices:r,indices:o}}(this.tileID.canonical,t);i=e.vertices,r=e.indices}else{i=new Uo,r=new is;for(const{x:t,y:r}of n)i.emplaceBack(t,r,0,0);const e=yu(i.int16,void 0,4);for(let t=0;t<e.length;t+=3)r.emplaceBack(e[t],e[t+1],e[t+2])}this._tileBoundsBuffer=e.createVertexBuffer(i,If.members),this._tileBoundsIndexBuffer=e.createIndexBuffer(r),this._tileBoundsSegments=sa.simpleSegment(0,0,i.length,r.length)}_makeGlobeTileDebugBuffers(e,t){const n=t.projection;if(!n||"globe"!==n.name||t.freezeTileCoverage)return;const i=this.tileID.canonical,r=Ol(bl(i,t)),o=Pl(t.zoom);let s;o>0&&(s=fa(new Float64Array(16),t.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(e,i,t,r,s,o),this._makeGlobeTileDebugTextBuffer(e,i,t,r,s,o)}_globePoint(e,t,n,i,r,o,s){let a=Tl(e,t,n);if(o){const r=1<<n.z,l=ql(i.center.lng),c=Hl(i.center.lat),u=(n.x+.5)/r-l;let h=0;u>.5?h=-1:u<-.5&&(h=1);let d=(e/aa+n.x)/r+h,p=(t/aa+n.y)/r;d=(d-l)*i._pixelsPerMercatorPixel+l,p=(p-c)*i._pixelsPerMercatorPixel+c;const f=[d*i.worldSize,p*i.worldSize,0];Fa(f,f,o),a=_l(a,f,s)}return Fa(a,a,r)}_makeGlobeTileDebugBorderBuffer(e,t,n,i,r,o){const s=new jo,a=new us,l=new Vo,c=(e,c,u,h,d)=>{const p=(u-e)/(d-1),f=(h-c)/(d-1),m=s.length;for(let g=0;g<d;g++){const u=e+g*p,h=c+g*f;s.emplaceBack(u,h);const d=this._globePoint(u,h,t,n,i,r,o);l.emplaceBack(d[0],d[1],d[2]),a.emplaceBack(m+g)}},u=aa;c(0,0,u,0,16),c(u,0,u,u,16),c(u,u,0,u,16),c(0,u,0,0,16),this._tileDebugIndexBuffer=e.createIndexBuffer(a),this._tileDebugBuffer=e.createVertexBuffer(s,el.members),this._globeTileDebugBorderBuffer=e.createVertexBuffer(l,Qa.members),this._tileDebugSegments=sa.simpleSegment(0,0,s.length,a.length)}_makeGlobeTileDebugTextBuffer(e,t,n,i,r,o){const s=aa/4,a=new jo,l=new is,c=new Vo,u=25;l.reserve(32),a.reserve(u),c.reserve(u);const h=(e,t)=>u*e+t;for(let d=0;d<u;d++){const e=d*s;for(let l=0;l<u;l++){const u=l*s;a.emplaceBack(u,e);const h=this._globePoint(u,e,t,n,i,r,o);c.emplaceBack(h[0],h[1],h[2])}}for(let d=0;d<4;d++)for(let e=0;e<4;e++){const t=h(d,e),n=h(d,e+1),i=h(d+1,e),r=h(d+1,e+1);l.emplaceBack(t,n,i),l.emplaceBack(i,n,r)}this._tileDebugTextIndexBuffer=e.createIndexBuffer(l),this._tileDebugTextBuffer=e.createVertexBuffer(a,el.members),this._globeTileDebugTextBuffer=e.createVertexBuffer(c,Qa.members),this._tileDebugTextSegments=sa.simpleSegment(0,0,u,32)}}class zf{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(e,t,n){const i=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][i]=this.stateChanges[e][i]||{},D(this.stateChanges[e][i],n),null===this.deletedStates[e]){this.deletedStates[e]={};for(const t in this.state[e])t!==i&&(this.deletedStates[e][t]=null)}else if(this.deletedStates[e]&&null===this.deletedStates[e][i]){this.deletedStates[e][i]={};for(const t in this.state[e][i])n[t]||(this.deletedStates[e][i][t]=null)}else for(const r in n)this.deletedStates[e]&&this.deletedStates[e][i]&&null===this.deletedStates[e][i][r]&&delete this.deletedStates[e][i][r]}removeFeatureState(e,t,n){if(null===this.deletedStates[e])return;const i=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t)null!==this.deletedStates[e][i]&&(this.deletedStates[e][i]=this.deletedStates[e][i]||{},this.deletedStates[e][i][n]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][i])for(n in this.deletedStates[e][i]={},this.stateChanges[e][i])this.deletedStates[e][i][n]=null;else this.deletedStates[e][i]=null;else this.deletedStates[e]=null}getState(e,t){const n=String(t),i=D({},(this.state[e]||{})[n],(this.stateChanges[e]||{})[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){const n=this.deletedStates[e][t];if(null===n)return{};for(const e in n)delete i[e]}return i}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(e,t){const n={};for(const i in this.stateChanges){this.state[i]=this.state[i]||{};const e={};for(const t in this.stateChanges[i])this.state[i][t]||(this.state[i][t]={}),D(this.state[i][t],this.stateChanges[i][t]),e[t]=this.state[i][t];n[i]=e}for(const i in this.deletedStates){this.state[i]=this.state[i]||{};const e={};if(null===this.deletedStates[i])for(const t in this.state[i])e[t]={},this.state[i][t]={};else for(const t in this.deletedStates[i]){if(null===this.deletedStates[i][t])this.state[i][t]={};else if(this.state[i][t])for(const e of Object.keys(this.deletedStates[i][t]))delete this.state[i][t][e];e[t]=this.state[i][t]}n[i]=n[i]||{},D(n[i],e)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(const i in e)e[i].setFeatureState(n,t)}}class Lf{constructor(e){this.size=e,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(e,t){const n=this.toIdx(e,t);return{min:this.minimums[n],max:this.maximums[n]}}isLeaf(e,t){return this.leaves[this.toIdx(e,t)]}toIdx(e,t){return t*this.size+e}}function Bf(e,t,n,i){let r=0,o=Number.MAX_VALUE;for(let s=0;s<3;s++)if(Math.abs(i[s])<1e-15){if(n[s]<e[s]||n[s]>t[s])return null}else{const a=1/i[s];let l=(e[s]-n[s])*a,c=(t[s]-n[s])*a;if(l>c){const e=l;l=c,c=e}if(l>r&&(r=l),c<o&&(o=c),r>o)return null}return r}function Ff(e,t,n,i,r,o,s,a,l,c,u){const h=i-e,d=r-t,p=o-n,f=s-e,m=a-t,g=l-n,v=u[1]*g-u[2]*m,y=u[2]*f-u[0]*g,_=u[0]*m-u[1]*f,b=h*v+d*y+p*_;if(Math.abs(b)<1e-15)return null;const x=1/b,w=c[0]-e,C=c[1]-t,k=c[2]-n,S=(w*v+C*y+k*_)*x;if(S<0||S>1)return null;const E=C*p-k*d,T=k*h-w*p,M=w*d-C*h,A=(u[0]*E+u[1]*T+u[2]*M)*x;return A<0||S+A>1?null:(f*E+m*T+g*M)*x}function Rf(e,t,n){return(e-t)/(n-t)}function $f(e,t,n,i,r,o,s,a,l){const c=1<<n,u=o-i,h=s-r,d=(e+1)/c*u+i,p=(t+0)/c*h+r,f=(t+1)/c*h+r;a[0]=(e+0)/c*u+i,a[1]=p,l[0]=d,l[1]=f}class Nf{constructor(e){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=e,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const t=function(e){const t=Math.ceil(Math.log2(e.dim/8)),n=[];let i=Math.ceil(Math.pow(2,t));const r=1/i,o=(e,t,n,i,r)=>{const o=i?1:0,s=(e+1)*n-o,a=t*n,l=(t+1)*n-o;r[0]=e*n,r[1]=a,r[2]=s,r[3]=l};let s=new Lf(i);const a=[];for(let l=0;l<i*i;l++){o(l%i,Math.floor(l/i),r,!1,a);const t=Vf(a[0],a[1],e),n=Vf(a[2],a[1],e),c=Vf(a[2],a[3],e),u=Vf(a[0],a[3],e);s.minimums.push(Math.min(t,n,c,u)),s.maximums.push(Math.max(t,n,c,u)),s.leaves.push(1)}for(n.push(s),i/=2;i>=1;i/=2){const e=n[n.length-1];s=new Lf(i);for(let t=0;t<i*i;t++){o(t%i,Math.floor(t/i),2,!0,a);const n=e.getElevation(a[0],a[1]),r=e.getElevation(a[2],a[1]),l=e.getElevation(a[2],a[3]),c=e.getElevation(a[0],a[3]),u=e.isLeaf(a[0],a[1]),h=e.isLeaf(a[2],a[1]),d=e.isLeaf(a[2],a[3]),p=e.isLeaf(a[0],a[3]),f=Math.min(n.min,r.min,l.min,c.min),m=Math.max(n.max,r.max,l.max,c.max),g=u&&h&&d&&p;s.maximums.push(m),s.minimums.push(f),s.leaves.push(m-f<=5&&g?1:0)}n.push(s)}return n}(this.dem),n=t.length-1,i=t[n];this._addNode(i.minimums[0],i.maximums[0],i.leaves[0]),this._construct(t,0,0,n,0)}raycastRoot(e,t,n,i,r,o,s=1){return Bf([e,t,-100],[n,i,this.maximums[0]*s],r,o)}raycast(e,t,n,i,r,o,s=1){if(!this.nodeCount)return null;const a=this.raycastRoot(e,t,n,i,r,o,s);if(null==a)return null;const l=[],c=[],u=[],h=[],d=[{idx:0,t:a,nodex:0,nodey:0,depth:0}];for(;d.length>0;){const{idx:a,t:p,nodex:f,nodey:m,depth:g}=d.pop();if(this.leaves[a]){$f(f,m,g,e,t,n,i,u,h);const a=1<<g,l=(f+0)/a,c=(f+1)/a,d=(m+0)/a,v=(m+1)/a,y=Vf(l,d,this.dem)*s,_=Vf(c,d,this.dem)*s,b=Vf(c,v,this.dem)*s,x=Vf(l,v,this.dem)*s,w=Ff(u[0],u[1],y,h[0],u[1],_,h[0],h[1],b,r,o),C=Ff(h[0],h[1],b,u[0],h[1],x,u[0],u[1],y,r,o),k=Math.min(null!==w?w:Number.MAX_VALUE,null!==C?C:Number.MAX_VALUE);if(k!==Number.MAX_VALUE)return k;{const e=Pa([],r,o,p);if(jf(y,_,x,b,Rf(e[0],u[0],h[0]),Rf(e[1],u[1],h[1]))>=e[2])return p}continue}let v=0;for(let d=0;d<this._siblingOffset.length;d++){$f((f<<1)+this._siblingOffset[d][0],(m<<1)+this._siblingOffset[d][1],g+1,e,t,n,i,u,h),u[2]=-100,h[2]=this.maximums[this.childOffsets[a]+d]*s;const p=Bf(u,h,r,o);if(null!=p){const e=p;l[d]=e;let t=!1;for(let n=0;n<v&&!t;n++)e>=l[c[n]]&&(c.splice(n,0,d),t=!0);t||(c[v]=d),v++}}for(let e=0;e<v;e++){const t=c[e];d.push({idx:this.childOffsets[a]+t,t:l[t],nodex:(f<<1)+this._siblingOffset[t][0],nodey:(m<<1)+this._siblingOffset[t][1],depth:g+1})}}return null}_addNode(e,t,n){return this.minimums.push(e),this.maximums.push(t),this.leaves.push(n),this.childOffsets.push(0),this.nodeCount++}_construct(e,t,n,i,r){if(1===e[i].isLeaf(t,n))return;this.childOffsets[r]||(this.childOffsets[r]=this.nodeCount);const o=i-1,s=e[o];let a=0,l=0;for(let c=0;c<this._siblingOffset.length;c++){const e=2*t+this._siblingOffset[c][0],i=2*n+this._siblingOffset[c][1],r=s.getElevation(e,i),o=s.isLeaf(e,i),u=this._addNode(r.min,r.max,o);o&&(a|=1<<c),l||(l=u)}for(let c=0;c<this._siblingOffset.length;c++)a&1<<c||this._construct(e,2*t+this._siblingOffset[c][0],2*n+this._siblingOffset[c][1],o,l+c)}}function jf(e,t,n,i,r,o){return Dn(Dn(e,n,o),Dn(t,i,o),r)}function Vf(e,t,n){const i=n.dim,r=T(e*i-.5,0,i-1),o=T(t*i-.5,0,i-1),s=Math.floor(r),a=Math.floor(o),l=Math.min(s+1,i-1),c=Math.min(a+1,i-1);return jf(n.get(s,a),n.get(l,a),n.get(s,c),n.get(l,c),r-s,o-a)}const Uf={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};function qf(e,t,n){return(256*e*256+256*t+n)/10-1e4}function Hf(e,t,n){return 256*e+t+n/256-32768}class Wf{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(e,t,n,i=!1,r=!1){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return q(`"${n}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=t.height;const o=this.dim=t.height-2,s=new Uint32Array(t.data.buffer);if(this.pixels=new Uint8Array(t.data.buffer),this.encoding=n||"mapbox",this.borderReady=i,!i){for(let e=0;e<o;e++)s[this._idx(-1,e)]=s[this._idx(0,e)],s[this._idx(o,e)]=s[this._idx(o-1,e)],s[this._idx(e,-1)]=s[this._idx(e,0)],s[this._idx(e,o)]=s[this._idx(e,o-1)];s[this._idx(-1,-1)]=s[this._idx(0,0)],s[this._idx(o,-1)]=s[this._idx(o-1,0)],s[this._idx(-1,o)]=s[this._idx(0,o-1)],s[this._idx(o,o)]=s[this._idx(o-1,o-1)],r&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new Nf(this)}get(e,t,n=!1){n&&(e=T(e,-1,this.dim),t=T(t,-1,this.dim));const i=4*this._idx(e,t);return("terrarium"===this.encoding?Hf:qf)(this.pixels[i],this.pixels[i+1],this.pixels[i+2])}static getUnpackVector(e){return Uf[e]}get unpackVector(){return Uf[this.encoding]}_idx(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)}static pack(e,t){const n=[0,0,0,0],i=Wf.getUnpackVector(t);let r=Math.floor((e+i[3])/i[2]);return n[2]=r%256,r=Math.floor(r/256),n[1]=r%256,r=Math.floor(r/256),n[0]=r,n}getPixels(){return new $c({width:this.stride,height:this.stride},this.pixels)}backfillBorder(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let i=t*this.dim,r=t*this.dim+this.dim,o=n*this.dim,s=n*this.dim+this.dim;switch(t){case-1:i=r-1;break;case 1:r=i+1}switch(n){case-1:o=s-1;break;case 1:s=o+1}const a=-t*this.dim,l=-n*this.dim;for(let c=o;c<s;c++)for(let t=i;t<r;t++){const n=4*this._idx(t,c),i=4*this._idx(t+a,c+l);this.pixels[n+0]=e.pixels[i+0],this.pixels[n+1]=e.pixels[i+1],this.pixels[n+2]=e.pixels[i+2],this.pixels[n+3]=e.pixels[i+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}Xr(Wf,"DEMData"),Xr(Nf,"DemMinMaxQuadTree",{omit:["dem"]});class Gf{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(const e in this.data)for(const t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,n){const i=e.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);const r={value:t,timeout:void 0};if(void 0!==n&&(r.timeout=setTimeout((()=>{this.remove(e,r)}),n)),this.data[i].push(r),this.order.push(i),this.order.length>this.max){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const 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}getByKey(e){const t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const n=e.wrapped().key,i=void 0===t?0:this.data[n].indexOf(t),r=this.data[n][i];return this.data[n].splice(i,1),r.timeout&&clearTimeout(r.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(r.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){const t=[];for(const n in this.data)for(const i of this.data[n])e(i.value)||t.push(i);for(const n of t)this.remove(n.value.tileID,n)}}class Zf{constructor(e,t,n){this.func=e,this.mask=t,this.range=n}}Zf.ReadOnly=!1,Zf.ReadWrite=!0,Zf.disabled=new Zf(519,Zf.ReadOnly,[0,1]);const Xf=7680;class Kf{constructor(e,t,n,i,r,o){this.test=e,this.ref=t,this.mask=n,this.fail=i,this.depthFail=r,this.pass=o}}Kf.disabled=new Kf({func:519,mask:0},0,0,Xf,Xf,Xf);class Yf{constructor(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n}}Yf.Replace=[1,0],Yf.disabled=new Yf(Yf.Replace,It.transparent,[!1,!1,!1,!1]),Yf.unblended=new Yf(Yf.Replace,It.transparent,[!0,!0,!0,!0]),Yf.alphaBlended=new Yf([1,771],It.transparent,[!0,!0,!0,!0]);const Jf=1029,Qf=2305;class em{constructor(e,t,n){this.enable=e,this.mode=t,this.frontFace=n}}em.disabled=new em(!1,Jf,Qf),em.backCCW=new em(!0,Jf,Qf),em.backCW=new em(!0,Jf,2304),em.frontCW=new em(!0,1028,2304),em.frontCCW=new em(!0,1028,Qf);class tm extends Qe{constructor(e,t,n){super(),this.id=e,this._onlySymbols=n,t.on("data",(e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))})),t.on("error",(()=>{this._sourceErrored=!0})),this._source=t,this._tiles={},this._cache=new Gf(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new zf,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(e){this.map=e,this._minTileCacheSize=void 0===this._minTileCacheSize&&e?e._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&e?e._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const e in this._tiles){const t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,t){return e.isSymbolTile=this._onlySymbols,this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,(()=>{}))}_abortTile(e){if(this._source.abortTile)return this._source.abortTile(e,(()=>{}))}serialize(){return this._source.serialize()}prepare(e){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const t in this._tiles){const n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}}getIds(){return I(this._tiles).map((e=>e.tileID)).sort(nm).map((e=>e.key))}getRenderableIds(e){const t=[];for(const n in this._tiles)this._isIdRenderable(+n,e)&&t.push(this._tiles[n]);return e?t.sort(((e,t)=>{const n=e.tileID,i=t.tileID,r=new y(n.canonical.x,n.canonical.y)._rotate(this.transform.angle),o=new y(i.canonical.x,i.canonical.y)._rotate(this.transform.angle);return n.overscaledZ-i.overscaledZ||o.y-r.y||o.x-r.x})).map((e=>e.tileID.key)):t.map((e=>e.tileID)).sort(nm).map((e=>e.key))}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(+e,"reloading")}}_reloadTile(e,t){const n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))}_tileLoaded(e,t,n,i){if(i)if(e.state="errored",404!==i.status)this._source.fire(new Je(i,{tile:e}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const e=this.map.painter.terrain;this.update(this.transform,e.getScaledDemTileSize(),!0),e.resetTileLookupCache(this.id)}else this.update(this.transform);else e.timeAdded=Ze.now(),"expired"===n&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(t,e),"raster-dem"===this._source.type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new Ye("data",{dataType:"source",tile:e,coord:e.tileID,sourceCacheId:this.id}))}_backfillDEM(e){const t=this.getRenderableIds();for(let i=0;i<t.length;i++){const r=t[i];if(e.neighboringTiles&&e.neighboringTiles[r]){const t=this.getTileByID(r);n(e,t),n(t,e)}}function n(e,t){if(!e.dem||e.dem.borderReady)return;e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0;let n=t.tileID.canonical.x-e.tileID.canonical.x;const i=t.tileID.canonical.y-e.tileID.canonical.y,r=Math.pow(2,e.tileID.canonical.z),o=t.tileID.key;0===n&&0===i||Math.abs(i)>1||(Math.abs(n)>1&&(1===Math.abs(n+r)?n+=r:1===Math.abs(n-r)&&(n-=r)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,i),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,n,i){for(const r in this._tiles){let o=this._tiles[r];if(i[r]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>n)continue;let s=o.tileID;for(;o&&o.tileID.overscaledZ>t+1;){const e=o.tileID.scaledTo(o.tileID.overscaledZ-1);o=this._tiles[e.key],o&&o.hasData()&&(s=e)}let a=s;for(;a.overscaledZ>t;)if(a=a.scaledTo(a.overscaledZ-1),e[a.key]){i[s.key]=s;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(let n=e.overscaledZ-1;n>=t;n--){const t=e.scaledTo(n),i=this._getLoadedTile(t);if(i)return i}}_getLoadedTile(e){const t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(this._source.reparseOverscaled?e.wrapped().key:e.canonical.key)}updateCacheSize(e,t){t=t||this._source.tileSize;const n=Math.ceil(e.width/t)+1,i=Math.ceil(e.height/t)+1,r=Math.floor(n*i*5),o="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,r):r,s="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,o):o;this._cache.setMaxSize(s)}handleWrapJump(e){const t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){const e={};for(const n in this._tiles){const i=this._tiles[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+t),e[i.tileID.key]=i}this._tiles=e;for(const t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(const t in this._tiles)this._setTileReloadTimer(+t,this._tiles[t])}}update(e,t,n){if(this.transform=e,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!n)return;let i;this.updateCacheSize(e,t),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((e=>new fh(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y))):(i=e.coveringTiles({tileSize:t||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!n,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(i=i.filter((e=>this._source.hasTile(e))))):i=[];const r=this._updateRetainedTiles(i);if(im(this._source.type)&&0!==i.length){const e={},t={},n=Object.keys(r);for(const i of n){const n=r[i],o=this._tiles[i];if(!o||o.fadeEndTime&&o.fadeEndTime<=Ze.now())continue;const s=this.findLoadedParent(n,Math.max(n.overscaledZ-tm.maxOverzooming,this._source.minzoom));s&&(this._addTile(s.tileID),e[s.tileID.key]=s.tileID),t[i]=n}const o=i[i.length-1].overscaledZ;for(const i in this._tiles){const e=this._tiles[i];if(r[i]||!e.hasData())continue;let n=e.tileID;for(;n.overscaledZ>o;){n=n.scaledTo(n.overscaledZ-1);const o=this._tiles[n.key];if(o&&o.hasData()&&t[n.key]){r[i]=e.tileID;break}}}for(const i in e)r[i]||(this._coveredTiles[i]=!0,r[i]=e[i])}for(const s in r)this._tiles[s].clearFadeHold();const o=function(e,t){const n=[];for(const i in e)i in t||n.push(i);return n}(this._tiles,r);for(const s of o){const e=this._tiles[s];e.hasSymbolBuckets&&!e.holdingForFade()?e.setHoldDuration(this.map._fadeDuration):e.hasSymbolBuckets&&!e.symbolFadeFinished()||this._removeTile(+s)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(+e)}_updateRetainedTiles(e){const t={};if(0===e.length)return t;const n={},i=e.reduce(((e,t)=>Math.min(e,t.overscaledZ)),1/0),r=e[0].overscaledZ,o=Math.max(r-tm.maxOverzooming,this._source.minzoom),s=Math.max(r+tm.maxUnderzooming,this._source.minzoom),a={};for(const l of e){const e=this._addTile(l);t[l.key]=l,e.hasData()||i<this._source.maxzoom&&(a[l.key]=l)}this._retainLoadedChildren(a,i,s,t);for(const l of e){let e=this._tiles[l.key];if(e.hasData())continue;if(l.canonical.z>=this._source.maxzoom){const e=l.children(this._source.maxzoom)[0],n=this.getTile(e);if(n&&n.hasData()){t[e.key]=e;continue}}else{const e=l.children(this._source.maxzoom);if(t[e[0].key]&&t[e[1].key]&&t[e[2].key]&&t[e[3].key])continue}let i=e.wasRequested();for(let r=l.overscaledZ-1;r>=o;--r){const o=l.scaledTo(r);if(n[o.key])break;if(n[o.key]=!0,e=this.getTile(o),!e&&i&&(e=this._addTile(o)),e&&(t[o.key]=o,i=e.wasRequested(),e.hasData()))break}}return t}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let n,i=this._tiles[e].tileID;for(;i.overscaledZ>0;){if(i.key in this._loadedParentTiles){n=this._loadedParentTiles[i.key];break}t.push(i.key);const e=i.scaledTo(i.overscaledZ-1);if(n=this._getLoadedTile(e),n)break;i=e}for(const e of t)this._loadedParentTiles[e]=n}}_addTile(e){let t=this._tiles[e.key];if(t)return t;t=this._cache.getAndRemove(e),t&&(this._setTileReloadTimer(e.key,t),t.tileID=e,this._state.initializeTileState(t,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,t)));const n=Boolean(t);if(!n){const n=this.map?this.map.painter:null;t=new Pf(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,n,this._isRaster),this._loadTile(t,this._tileLoaded.bind(this,t,e.key,t.state))}return t?(t.uses++,this._tiles[e.key]=t,n||this._source.fire(new Ye("dataloading",{tile:t,coord:t.tileID,dataType:"source"})),t):null}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const n=t.getExpiryTimeout();n&&(this._timers[e]=setTimeout((()=>{this._reloadTile(e,"expired"),delete this._timers[e]}),n))}_removeTile(e){const 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))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(+e);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(e,t,n){const i=[],r=this.transform;if(!r)return i;const o="globe"===r.projection.name,s=ql(r.center.lng);for(const a in this._tiles){const l=this._tiles[a];if(n&&l.clearQueryDebugViz(),l.holdingForFade())continue;let c;if(o){const e=l.tileID.canonical;if(0===e.z){const t=[Math.abs(T(s,...rm(e,-1))-s),Math.abs(T(s,...rm(e,1))-s)];c=[0,2*t.indexOf(Math.min(...t))-1]}else{const t=[Math.abs(T(s,...rm(e,-1))-s),Math.abs(T(s,...rm(e,0))-s),Math.abs(T(s,...rm(e,1))-s)];c=[t.indexOf(Math.min(...t))-1]}}else c=[0];for(const n of c){const o=e.containsTile(l,r,t,n);o&&i.push(o)}}return i}getVisibleCoordinates(e){const t=this.getRenderableIds(e).map((e=>this._tiles[e].tileID));for(const n of t)n.projMatrix=this.transform.calculateProjMatrix(n.toUnwrapped());return t}hasTransition(){if(this._source.hasTransition())return!0;if(im(this._source.type))for(const e in this._tiles){const t=this._tiles[e];if(void 0!==t.fadeEndTime&&t.fadeEndTime>=Ze.now())return!0}return!1}setFeatureState(e,t,n){this._state.updateState(e=e||"_geojsonTileLayer",t,n)}removeFeatureState(e,t,n){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,n)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,n){const i=this._tiles[e];i&&i.setDependencies(t,n)}reloadTilesForDependencies(e,t){for(const n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(+n,"reloading");this._cache.filter((n=>!n.hasDependency(e,t)))}_preloadTiles(e,t){if(!this._sourceLoaded){const n=()=>{this._sourceLoaded&&(this._source.off("data",n),this._preloadTiles(e,t))};return void this._source.on("data",n)}const n=new Map,i=Array.isArray(e)?e:[e],r=this.map.painter.terrain,o=this.usedForTerrain&&r?r.getScaledDemTileSize():this._source.tileSize;for(const s of i){const e=s.coveringTiles({tileSize:o,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const t of e)n.set(t.key,t);this.usedForTerrain&&s.updateElevation(!1)}O(Array.from(n.values()),((e,t)=>{const n=new Pf(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(n,(e=>{"raster-dem"===this._source.type&&n.dem&&this._backfillDEM(n),t(e,n)}))}),t)}}function nm(e,t){const n=Math.abs(2*e.wrap)-+(e.wrap<0),i=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||i-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function im(e){return"raster"===e||"image"===e||"video"===e||"custom"===e}function rm(e,t){const n=1<<e.z;return[e.x/n+t,(e.x+1)/n+t]}tm.maxOverzooming=10,tm.maxUnderzooming=3;class om{constructor(e,t,n){this._demTile=e,this._dem=this._demTile.dem,this._scale=t,this._offset=n}static create(e,t,n){const i=n||e.findDEMTileFor(t);if(!i||!i.dem)return;const r=i.dem,o=i.tileID,s=1<<t.canonical.z-o.canonical.z;return new om(i,i.tileSize/aa/s,[(t.canonical.x/s-o.canonical.x)*r.dim,(t.canonical.y/s-o.canonical.y)*r.dim])}tileCoordToPixel(e,t){const n=t*this._scale+this._offset[1],i=Math.floor(e*this._scale+this._offset[0]),r=Math.floor(n);return new y(i,r)}getElevationAt(e,t,n,i){const r=e*this._scale+this._offset[0],o=t*this._scale+this._offset[1],s=Math.floor(r),a=Math.floor(o),l=this._dem;return i=!!i,n?Dn(Dn(l.get(s,a,i),l.get(s,a+1,i),o-a),Dn(l.get(s+1,a,i),l.get(s+1,a+1,i),o-a),r-s):l.get(s,a,i)}getElevationAtPixel(e,t,n){return this._dem.get(e,t,!!n)}getMeterToDEM(e){return(1<<this._demTile.tileID.canonical.z)*Wl(1,e)*this._dem.stride}}class sm{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new Gr(aa,16,0),this.featureIndexArray=new xs,this.promoteId=t}insert(e,t,n,i,r,o=0){const s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,i,r,o);const a=this.grid;for(let l=0;l<t.length;l++){const e=t[l],n=[1/0,1/0,-1/0,-1/0];for(let t=0;t<e.length;t++){const i=e[t];n[0]=Math.min(n[0],i.x),n[1]=Math.min(n[1],i.y),n[2]=Math.max(n[2],i.x),n[3]=Math.max(n[3],i.y)}n[0]<aa&&n[1]<aa&&n[2]>=0&&n[3]>=0&&a.insert(s,n[0],n[1],n[2],n[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new Wu(new gd(this.rawTileData)).layers,this.sourceLayerCoder=new xf(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const e in this.vtLayers)this.vtFeatures[e]=[]}return this.vtLayers}query(e,t,n,i){this.loadVTLayers();const r=e.params||{},o=hr(r.filter),s=e.tileResult,a=e.transform,l=s.bufferedTilespaceBounds,c=this.grid.query(l.min.x,l.min.y,l.max.x,l.max.y,((e,t,n,i)=>xc(s.bufferedTilespaceGeometry,e,t,n,i)));c.sort(lm);let u=null;a.elevation&&c.length>0&&(u=om.create(a.elevation,this.tileID));const h={};let d;for(let p=0;p<c.length;p++){const a=c[p];if(a===d)continue;d=a;const l=this.featureIndexArray.get(a);let f=null;this.loadMatchingFeature(h,l,o,r.layers,r.availableImages,t,n,i,((t,n,i,r=0)=>(f||(f=sc(t,this.tileID.canonical,e.tileTransform)),n.queryIntersectsFeature(s,t,i,f,this.z,e.transform,e.pixelPosMatrix,u,r))))}return h}loadMatchingFeature(e,t,n,i,r,o,s,a,l){const{featureIndex:c,bucketIndex:u,sourceLayerIndex:h,layoutVertexArrayOffset:d}=t,p=this.bucketLayerIDs[u];if(i&&!function(e,t){for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>=0)return!0;return!1}(i,p))return;const f=this.sourceLayerCoder.decode(h),m=this.vtLayers[f].feature(c);if(n.needGeometry){const e=ac(m,!0);if(!n.filter(new wo(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!n.filter(new wo(this.tileID.overscaledZ),m))return;const g=this.getId(m,f);for(let v=0;v<p.length;v++){const t=p[v];if(i&&i.indexOf(t)<0)continue;const n=o[t];if(!n)continue;let u={};void 0!==g&&a&&(u=a.getState(n.sourceLayer||"_geojsonTileLayer",g));const h=D({},s[t]);h.paint=am(h.paint,n.paint,m,u,r),h.layout=am(h.layout,n.layout,m,u,r);const f=!l||l(m,n,u,d);if(!f)continue;const y=new Cf(m,this.z,this.x,this.y,g);y.layer=h;let _=e[t];void 0===_&&(_=e[t]=[]),_.push({featureIndex:c,feature:y,intersectionZ:f})}}lookupSymbolFeatures(e,t,n,i,r,o,s,a){const l={};this.loadVTLayers();const c=hr(r);for(const u of e)this.loadMatchingFeature(l,{bucketIndex:n,sourceLayerIndex:i,featureIndex:u,layoutVertexArrayOffset:0},c,o,s,a,t);return l}loadFeature(e){const{featureIndex:t,sourceLayerIndex:n}=e;this.loadVTLayers();const i=this.sourceLayerCoder.decode(n),r=this.vtFeatures[i];if(r[t])return r[t];const o=this.vtLayers[i].feature(t);return r[t]=o,o}hasLayer(e){for(const t of this.bucketLayerIDs)for(const n of t)if(e===n)return!0;return!1}getId(e,t){let n=e.id;if(this.promoteId){const i="string"==typeof this.promoteId?this.promoteId:this.promoteId[t];null!=i&&(n=e.properties[i]),"boolean"==typeof n&&(n=Number(n))}return n}}function am(e,t,n,i,r){return N(e,((e,o)=>{const s=t instanceof Oo?t.get(o):null;return s&&s.evaluate?s.evaluate(n,i,r):s}))}function lm(e,t){return t-e}Xr(sm,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class cm{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.image=new Rc({width:e,height:t}),this.positions={},this.uploaded=!1}getDash(e,t){const n=this.getKey(e,t);return this.positions[n]}trim(){const e=this.width,t=this.height=B(this.nextRow);this.image.resize({width:e,height:t})}getKey(e,t){return e.join(",")+t}getDashRanges(e,t,n){const i=[];let r=e.length%2==1?-e[e.length-1]*n:0,o=e[0]*n,s=!0;i.push({left:r,right:o,isDash:s,zeroLength:0===e[0]});let a=e[0];for(let l=1;l<e.length;l++){s=!s;const t=e[l];r=a*n,a+=t,o=a*n,i.push({left:r,right:o,isDash:s,zeroLength:0===t})}return i}addRoundDash(e,t,n){const i=t/2;for(let r=-n;r<=n;r++){const t=this.width*(this.nextRow+n+r);let o=0,s=e[o];for(let a=0;a<this.width;a++){a/s.right>1&&(s=e[++o]);const l=Math.abs(a-s.left),c=Math.abs(a-s.right),u=Math.min(l,c);let h;const d=r/n*(i+1);if(s.isDash){const e=i-Math.abs(d);h=Math.sqrt(u*u+e*e)}else h=i-Math.sqrt(u*u+d*d);this.image.data[t+a]=Math.max(0,Math.min(255,h+128))}}}addRegularDash(e,t){for(let a=e.length-1;a>=0;--a){const t=e[a],n=e[a+1];t.zeroLength?e.splice(a,1):n&&n.isDash===t.isDash&&(n.left=t.left,e.splice(a,1))}const n=e[0],i=e[e.length-1];n.isDash===i.isDash&&(n.left=i.left-this.width,i.right=n.right+this.width);const r=this.width*this.nextRow;let o=0,s=e[o];for(let a=0;a<this.width;a++){a/s.right>1&&(s=e[++o]);const n=Math.abs(a-s.left),i=Math.abs(a-s.right),l=Math.min(n,i);this.image.data[r+a]=Math.max(0,Math.min(255,(s.isDash?l:-l)+t+128))}}addDash(e,t){const n=this.getKey(e,t);if(this.positions[n])return this.positions[n];const i="round"===t,r=i?7:0,o=2*r+1;if(this.nextRow+o>this.height)return q("LineAtlas out of space"),null;0===e.length&&e.push(1);let s=0;for(let c=0;c<e.length;c++)e[c]<0&&(q("Negative value is found in line dasharray, replacing values with 0"),e[c]=0),s+=e[c];if(0!==s){const n=this.width/s,o=this.getDashRanges(e,this.width,n);i?this.addRoundDash(o,n,r):this.addRegularDash(o,"square"===t?.5*n:0)}const a=this.nextRow+r;this.nextRow+=o;const l={tl:[a,r],br:[s,0]};return this.positions[n]=l,l}}Xr(cm,"LineAtlas");const um=1*ep;class hm{constructor(e){const t={},n=[];for(const s in e){const i=e[s],r=t[s]={};for(const e in i.glyphs){const t=i.glyphs[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const o=t.metrics.localGlyph?um:1,s={x:0,y:0,w:t.bitmap.width+2*o,h:t.bitmap.height+2*o};n.push(s),r[e]=s}}const{w:i,h:r}=wd(n),o=new Rc({width:i||1,height:r||1});for(const s in e){const n=e[s];for(const e in n.glyphs){const i=n.glyphs[+e];if(!i||0===i.bitmap.width||0===i.bitmap.height)continue;const r=t[s][e],a=i.metrics.localGlyph?um:1;Rc.copy(i.bitmap,o,{x:0,y:0},{x:r.x+a,y:r.y+a},i.bitmap)}}this.image=o,this.positions=t}}Xr(hm,"GlyphAtlas");class dm{constructor(e){this.tileID=new fh(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.tileZoom=e.tileZoom,this.uid=e.uid,this.zoom=e.zoom,this.canonical=e.tileID.canonical,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId,this.enableTerrain=!!e.enableTerrain,this.isSymbolTile=e.isSymbolTile,this.tileTransform=Op(e.tileID.canonical,e.projection),this.projection=e.projection}parse(e,t,n,i,r){this.status="parsing",this.data=e,this.collisionBoxArray=new ps;const o=new xf(Object.keys(e.layers).sort()),s=new sm(this.tileID,this.promoteId);s.bucketLayerIDs=[];const a={},l=new cm(256,256),c={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:l,availableImages:n},u=t.familiesBySource[this.source];for(const b in u){const t=e.layers[b];if(!t)continue;let i=!1,r=!1;for(const e of u[b])"symbol"===e[0].type?i=!0:r=!0;if(!0===this.isSymbolTile&&!i)continue;if(!1===this.isSymbolTile&&!r)continue;1===t.version&&q(`Vector tile source "${this.source}" layer "${b}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const l=o.encode(b),h=[];for(let e=0;e<t.length;e++){const n=t.feature(e),i=s.getId(n,b);h.push({feature:n,id:i,index:e,sourceLayerIndex:l})}for(const e of u[b]){const t=e[0];void 0!==this.isSymbolTile&&"symbol"===t.type!==this.isSymbolTile||t.minzoom&&this.zoom<Math.floor(t.minzoom)||t.maxzoom&&this.zoom>=t.maxzoom||"none"!==t.visibility&&(pm(e,this.zoom,n),(a[t.id]=t.createBucket({index:s.bucketLayerIDs.length,layers:e,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:l,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.spec,availableImages:n})).populate(h,c,this.tileID.canonical,this.tileTransform),s.bucketLayerIDs.push(e.map((e=>e.id))))}}let h,d,p,f;l.trim();const m={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},g=()=>{if(h)return r(h);if(d&&p&&f){const e=new hm(d),t=new Sd(p,f);for(const i in a){const r=a[i];r instanceof af?(pm(r.layers,this.zoom,n),_p(r,d,e.positions,p,t.iconPositions,this.showCollisionBoxes,n,this.tileID.canonical,this.tileZoom,this.projection)):r.hasPattern&&(r instanceof Eh||r instanceof Tu||r instanceof eh)&&(pm(r.layers,this.zoom,n),r.addFeatures(c,this.tileID.canonical,t.patternPositions,n,this.tileTransform))}this.status="done",r(null,{buckets:I(a).filter((e=>!e.isEmpty())),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,lineAtlas:l,imageAtlas:t,glyphMap:this.returnDependencies?d:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}},v=N(c.glyphDependencies,(e=>Object.keys(e).map(Number)));Object.keys(v).length?i.send("getGlyphs",{uid:this.uid,stacks:v},((e,t)=>{h||(h=e,d=t,g())}),void 0,!1,m):d={};const y=Object.keys(c.iconDependencies);y.length?i.send("getImages",{icons:y,source:this.source,tileID:this.tileID,type:"icons"},((e,t)=>{h||(h=e,p=t,g())}),void 0,!1,m):p={};const _=Object.keys(c.patternDependencies);_.length?i.send("getImages",{icons:_,source:this.source,tileID:this.tileID,type:"patterns"},((e,t)=>{h||(h=e,f=t,g())}),void 0,!1,m):f={},g()}}function pm(e,t,n){const i=new wo(t);for(const r of e)r.recalculate(i,n)}class fm{constructor(e){this.entries={},this.scheduler=e}request(e,t,n,i){const r=this.entries[e]=this.entries[e]||{callbacks:[]};if(r.result){const[e,n]=r.result;return this.scheduler?this.scheduler.add((()=>{i(e,n)}),t):i(e,n),()=>{}}return r.callbacks.push(i),r.cancel||(r.cancel=n(((n,i)=>{r.result=[n,i];for(const e of r.callbacks)this.scheduler?this.scheduler.add((()=>{e(n,i)}),t):e(n,i);setTimeout((()=>delete this.entries[e]),3e3)}))),()=>{r.result||(r.callbacks=r.callbacks.filter((e=>e!==i)),r.callbacks.length||(r.cancel(),delete this.entries[e]))}}}function mm(e,t,n){const i=JSON.stringify(e.request);return e.data&&(this.deduped.entries[i]={result:[null,e.data]}),this.deduped.request(i,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom},(t=>{const i=de(e.request,((e,i,r,o)=>{e?t(e):i&&t(null,{vectorTile:n?void 0:new Wu(new gd(i)),rawData:i,cacheControl:r,expires:o})}));return()=>{i.cancel(),t()}}),t)}const gm=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class vm{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,n]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const i=n>>4;if(1!==i)throw new Error(`Got v${i} data when expected v1.`);const r=gm[15&n];if(!r)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(e,2,1),[s]=new Uint32Array(e,4,1);return new vm(s,o,r,e)}constructor(e,t=64,n=Float64Array,i){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const r=gm.indexOf(this.ArrayType),o=2*e*this.ArrayType.BYTES_PER_ELEMENT,s=e*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-s%8)%8;if(r<0)throw new Error(`Unexpected typed array class: ${n}.`);i&&i instanceof ArrayBuffer?(this.data=i,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+a,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+o+s+a),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+a,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+r]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return ym(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:o,nodeSize:s}=this,a=[0,r.length-1,0],l=[];for(;a.length;){const c=a.pop()||0,u=a.pop()||0,h=a.pop()||0;if(u-h<=s){for(let s=h;s<=u;s++){const a=o[2*s],c=o[2*s+1];a>=e&&a<=n&&c>=t&&c<=i&&l.push(r[s])}continue}const d=h+u>>1,p=o[2*d],f=o[2*d+1];p>=e&&p<=n&&f>=t&&f<=i&&l.push(r[d]),(0===c?e<=p:t<=f)&&(a.push(h),a.push(d-1),a.push(1-c)),(0===c?n>=p:i>=f)&&(a.push(d+1),a.push(u),a.push(1-c))}return l}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:r,nodeSize:o}=this,s=[0,i.length-1,0],a=[],l=n*n;for(;s.length;){const c=s.pop()||0,u=s.pop()||0,h=s.pop()||0;if(u-h<=o){for(let n=h;n<=u;n++)wm(r[2*n],r[2*n+1],e,t)<=l&&a.push(i[n]);continue}const d=h+u>>1,p=r[2*d],f=r[2*d+1];wm(p,f,e,t)<=l&&a.push(i[d]),(0===c?e-n<=p:t-n<=f)&&(s.push(h),s.push(d-1),s.push(1-c)),(0===c?e+n>=p:t+n>=f)&&(s.push(d+1),s.push(u),s.push(1-c))}return a}}function ym(e,t,n,i,r,o){if(r-i<=n)return;const s=i+r>>1;_m(e,t,s,i,r,o),ym(e,t,n,i,s-1,1-o),ym(e,t,n,s+1,r,1-o)}function _m(e,t,n,i,r,o){for(;r>i;){if(r-i>600){const s=r-i+1,a=n-i+1,l=Math.log(s),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(s-c)/s)*(a-s/2<0?-1:1);_m(e,t,n,Math.max(i,Math.floor(n-a*c/s+u)),Math.min(r,Math.floor(n+(s-a)*c/s+u)),o)}const s=t[2*n+o];let a=i,l=r;for(bm(e,t,i,n),t[2*r+o]>s&&bm(e,t,i,r);a<l;){for(bm(e,t,a,l),a++,l--;t[2*a+o]<s;)a++;for(;t[2*l+o]>s;)l--}t[2*i+o]===s?bm(e,t,i,l):(l++,bm(e,t,l,r)),l<=n&&(i=l+1),n<=l&&(r=l-1)}}function bm(e,t,n,i){xm(e,n,i),xm(t,2*n,2*i),xm(t,2*n+1,2*i+1)}function xm(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function wm(e,t,n,i){const r=e-n,o=t-i;return r*r+o*o}e.ARRAY_TYPE=ua,e.AUTH_ERR_MSG=ye,e.Aabb=rl,e.Actor=class{constructor(e,n,i){this.target=e,this.parent=n,this.mapId=i,this.callbacks={},this.cancelCallbacks={},R(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=G()?e:t,this.scheduler=new bf}send(e,t,n,i,r=!1,o){const s=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(n.metadata=o,this.callbacks[s]=n);const a=K(this.globalScope)?void 0:[];return this.target.postMessage({id:s,type:e,hasCallback:!!n,targetMapId:i,mustQueue:r,sourceMapId:this.mapId,data:Jr(t,a)},a),{cancel:()=>{n&&delete this.callbacks[s],this.target.postMessage({id:s,type:"<cancel>",targetMapId:i,sourceMapId:this.mapId})}}}receive(e){const t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){const e=this.cancelCallbacks[n];delete this.cancelCallbacks[n],e&&e.cancel()}else if(t.mustQueue||G()){const e=this.callbacks[n];this.cancelCallbacks[n]=this.scheduler.add((()=>this.processTask(n,t)),e&&e.metadata||{type:"message"})}else this.processTask(n,t)}processTask(e,t){if("<response>"===t.type){const n=this.callbacks[e];delete this.callbacks[e],n&&(t.error?n(Qr(t.error)):n(null,Qr(t.data)))}else{const n=K(this.globalScope)?void 0:[],i=t.hasCallback?(t,i)=>{delete this.cancelCallbacks[e],this.target.postMessage({id:e,type:"<response>",sourceMapId:this.mapId,error:t?Jr(t):null,data:Jr(i,n)},n)}:e=>{},r=Qr(t.data);if(this.parent[t.type])this.parent[t.type](t.sourceMapId,r,i);else if(this.parent.getWorkerSource){const e=t.type.split(".");this.parent.getWorkerSource(t.sourceMapId,e[0],r.source)[e[1]](r,i)}else i(new Error(`Could not find function ${t.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},e.CanonicalTileID=dh,e.Color=It,e.ColorMode=Yf,e.CullFaceMode=em,e.DEMData=Wf,e.DataConstantProperty=Io,e.DedupedRequest=fm,e.DepthMode=Zf,e.EXTENT=aa,e.Elevation=class{isDataAvailableAtPoint(e){const t=this._source();if(this.isUsingMockSource()||!t||e.y<0||e.y>1)return!1;const n=t.getSource().maxzoom,i=1<<n,r=Math.floor(e.x),o=Math.floor((e.x-r)*i),s=Math.floor(e.y*i),a=this.findDEMTileFor(new fh(n,r,n,o,s));return!(!a||!a.dem)}getAtPointOrZero(e,t=0){return this.getAtPoint(e,t)||0}getAtPoint(e,t,n=!0){if(this.isUsingMockSource())return null;null==t&&(t=null);const i=this._source();if(!i)return t;if(e.y<0||e.y>1)return t;const r=i.getSource().maxzoom,o=1<<r,s=Math.floor(e.x),a=e.x-s,l=new fh(r,s,r,Math.floor(a*o),Math.floor(e.y*o)),c=this.findDEMTileFor(l);if(!c||!c.dem)return t;const u=c.dem,h=1<<c.tileID.canonical.z,d=(a*h-c.tileID.canonical.x)*u.dim,p=(e.y*h-c.tileID.canonical.y)*u.dim,f=Math.floor(d),m=Math.floor(p);return(n?this.exaggeration():1)*Dn(Dn(u.get(f,m),u.get(f,m+1),p-m),Dn(u.get(f+1,m),u.get(f+1,m+1),p-m),d-f)}getAtTileOffset(e,t,n){const i=1<<e.canonical.z;return this.getAtPointOrZero(new Jl(e.wrap+(e.canonical.x+t/aa)/i,(e.canonical.y+n/aa)/i))}getAtTileOffsetFunc(e,t,n,i){return r=>{const o=this.getAtTileOffset(e,r.x,r.y),s=i.upVector(e.canonical,r.x,r.y);return Da(s,s,o*i.upVectorScale(e.canonical,t,n).metersToTile),s}}getForTilePoints(e,t,n,i){if(this.isUsingMockSource())return!1;const r=om.create(this,e,i);return!!r&&(t.forEach((e=>{e[2]=this.exaggeration()*r.getElevationAt(e[0],e[1],n)})),!0)}getMinMaxForTile(e){if(this.isUsingMockSource())return null;const t=this.findDEMTileFor(e);if(!t||!t.dem)return null;const n=t.dem.tree,i=t.tileID,r=1<<e.canonical.z-i.canonical.z;let o=e.canonical.x/r-i.canonical.x,s=e.canonical.y/r-i.canonical.y,a=0;for(let l=0;l<e.canonical.z-i.canonical.z&&!n.leaves[a];l++){o*=2,s*=2;const e=2*Math.floor(s)+Math.floor(o);a=n.childOffsets[a]+e,o%=1,s%=1}return{min:this.exaggeration()*n.minimums[a],max:this.exaggeration()*n.maximums[a]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(e,t,n){throw new Error("Pure virtual method called.")}pointCoordinate(e){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}isUsingMockSource(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(e){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}},e.ErrorEvent=Je,e.EvaluationParameters=wo,e.Event=Ye,e.Evented=Qe,e.FillExtrusionBucket=eh,e.Frustum=il,e.FrustumCorners=nl,e.GLOBE_RADIUS=al,e.GLOBE_SCALE_MATCH_LATITUDE=45,e.GLOBE_ZOOM_THRESHOLD_MAX=sl,e.GLOBE_ZOOM_THRESHOLD_MIN=ol,e.GlobeSharedBuffers=class{constructor(e){this._createGrid(e),this._createPoles(e)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const e of this._poleSegments)e.destroy();for(const e of this._gridSegments)e.withSkirts.destroy(),e.withoutSkirts.destroy();if(this._wireframeIndexBuffer){this._wireframeIndexBuffer.destroy();for(const e of this._wireframeSegments)e.destroy()}}_fillGridMeshWithLods(e,t){const n=new jo,i=new is,r=[],o=e+1+2,s=t[0]+1,a=t[0]+1+(1+t.length),l=(e,t,n)=>{let i=e===o-1?e-2:0===e?e:e-1;return i+=n?24575:0,[i,t]};for(let c=0;c<o;++c)n.emplaceBack(...l(c,0,!0));for(let c=0;c<s;++c)for(let e=0;e<o;++e)n.emplaceBack(...l(e,c,(0===e||e===o-1)&&!0));for(let c=0;c<t.length;++c){const e=t[c];for(let t=0;t<o;++t)n.emplaceBack(...l(t,e,!0))}for(let c=0;c<t.length;++c){const e=i.length,s=t[c]+1+2,l=new is;for(let n=0;n<s-1;n++){const e=n===s-2,r=e?o*(a-t.length+c-n):o;for(let t=0;t<o-1;t++){const s=n*o+t;0===n||e||0===t||t===o-2?(l.emplaceBack(s+1,s,s+r),l.emplaceBack(s+r,s+r+1,s+1)):(i.emplaceBack(s+1,s,s+r),i.emplaceBack(s+r,s+r+1,s+1))}}const u=sa.simpleSegment(0,e,n.length,i.length-e);for(let t=0;t<l.uint16.length;t+=3)i.emplaceBack(l.uint16[t],l.uint16[t+1],l.uint16[t+2]);const h=sa.simpleSegment(0,e,n.length,i.length-e);r.push({withoutSkirts:u,withSkirts:h})}return{vertices:n,indices:i,segments:r}}_createGrid(e){const t=this._fillGridMeshWithLods(cl,ul);this._gridSegments=t.segments,this._gridBuffer=e.createVertexBuffer(t.vertices,el.members),this._gridIndexBuffer=e.createIndexBuffer(t.indices,!0)}_createPoles(e){const t=new is;for(let r=0;r<=cl;r++)t.emplaceBack(0,r+1,r+2);this._poleIndexBuffer=e.createIndexBuffer(t,!0);const n=new as,i=new as;this._poleSegments=[];for(let r=0,o=0;r<ol;r++){const e=360/(1<<r);n.emplaceBack(0,-al,0,.5,0),i.emplaceBack(0,-al,0,.5,1);for(let t=0;t<=cl;t++){const r=t/cl,o=Dn(0,e,r),[s,a,l]=Sl(Fl,Rl,o,al);n.emplaceBack(s,a,l,r,0),i.emplaceBack(s,a,l,r,1)}this._poleSegments.push(sa.simpleSegment(o,0,66,64)),o+=66}this._poleNorthVertexBuffer=e.createVertexBuffer(n,Ja,!1),this._poleSouthVertexBuffer=e.createVertexBuffer(i,Ja,!1)}getGridBuffers(e,t){return[this._gridBuffer,this._gridIndexBuffer,t?this._gridSegments[e].withSkirts:this._gridSegments[e].withoutSkirts]}getPoleBuffers(e){return[this._poleNorthVertexBuffer,this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[e]]}getWirefameBuffers(e,t){if(!this._wireframeSegments){const t=new cs,n=cl,i=n+1+2,r=1;this._wireframeSegments=[];for(let e=0,o=0;e<ul.length;e++){const s=ul[e];for(let e=r;e<s+r;e++)for(let o=r;o<n+r;o++){const n=e*i+o;t.emplaceBack(n,n+1),t.emplaceBack(n,n+i),t.emplaceBack(n,n+i+1)}const a=s*n*3;this._wireframeSegments.push(sa.simpleSegment(0,o,(s+1)*i,a)),o+=a}this._wireframeIndexBuffer=e.createIndexBuffer(t)}return[this._gridBuffer,this._wireframeIndexBuffer,this._wireframeSegments[t]]}},e.GlyphManager=np,e.ImagePosition=kd,e.KDBush=vm,e.LivePerformanceUtils=Ne,e.LngLat=Vl,e.LngLatBounds=la,e.LocalGlyphMode=tp,e.MAX_MERCATOR_LATITUDE=Kl,e.MercatorCoordinate=Jl,e.ONE_EM=Rh,e.OverscaledTileID=fh,e.PerformanceMarkers=$e,e.Point=y,e.Properties=zo,e.RGBAImage=$c,e.Ray=tl,e.RequestManager=class{constructor(e,t,n){this._transformRequestFn=e,this._customAccessToken=t,this._silenceAuthErrors=!!n,this._createSkuToken()}_createSkuToken(){const e=function(){let e="";for(let t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",h,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeStyleURL(e,t){if(!_e(e))return e;const n=Se(e);return n.path=`/styles/v1${n.path}`,this._makeAPIURL(n,this._customAccessToken||t)}normalizeGlyphsURL(e,t){if(!_e(e))return e;const n=Se(e);return n.path=`/fonts/v1${n.path}`,this._makeAPIURL(n,this._customAccessToken||t)}normalizeSourceURL(e,t,n,i){if(!_e(e))return e;const r=Se(e);return r.path=`/v4/${r.authority}.json`,r.params.push("secure"),n&&r.params.push(`language=${n}`),i&&r.params.push(`worldview=${i}`),this._makeAPIURL(r,this._customAccessToken||t)}normalizeSpriteURL(e,t,n,i){const r=Se(e);return _e(e)?(r.path=`/styles/v1${r.path}/sprite${t}${n}`,this._makeAPIURL(r,this._customAccessToken||i)):(r.path+=`${t}${n}`,Ee(r))}normalizeTileURL(e,t,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!_e(e))return e;const i=Se(e);i.path=i.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${t||n&&"raster"!==i.authority&&512===n?"@2x":""}${o.supported?".webp":"$1"}`),"raster"===i.authority?i.path=`/${r.RASTER_URL_PREFIX}${i.path}`:(i.path=i.path.replace(/^.+\/v4\//,"/"),i.path=`/${r.TILE_URL_VERSION}${i.path}`);const s=this._customAccessToken||function(e){for(const t of e){const e=t.match(/^access_token=(.*)$/);if(e)return e[1]}return null}(i.params)||r.ACCESS_TOKEN;return r.REQUIRE_ACCESS_TOKEN&&s&&this._skuToken&&i.params.push(`sku=${this._skuToken}`),this._makeAPIURL(i,s)}canonicalizeTileURL(e,t){const n=Se(e);if(!n.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!n.path.match(/\.[\w]+$/))return e;let i="mapbox://";n.path.match(/^\/raster\/v1\//)?i+=`raster/${n.path.replace(`/${r.RASTER_URL_PREFIX}/`,"")}`:i+=`tiles/${n.path.replace(`/${r.TILE_URL_VERSION}/`,"")}`;let o=n.params;return t&&(o=o.filter((e=>!e.match(/^access_token=/)))),o.length&&(i+=`?${o.join("&")}`),i}canonicalizeTileset(e,t){const n=!!t&&_e(t),i=[];for(const r of e.tiles||[])be(r)?i.push(this.canonicalizeTileURL(r,n)):i.push(r);return i}_makeAPIURL(e,t){const n="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",i=Se(r.API_URL);if(e.protocol=i.protocol,e.authority=i.authority,"http"===e.protocol){const t=e.params.indexOf("secure");t>=0&&e.params.splice(t,1)}if("/"!==i.path&&(e.path=`${i.path}${e.path}`),!r.REQUIRE_ACCESS_TOKEN)return Ee(e);if(t=t||r.ACCESS_TOKEN,!this._silenceAuthErrors){if(!t)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((e=>-1===e.indexOf("access_token"))),e.params.push(`access_token=${t||""}`),Ee(e)}},e.ResourceType=le,e.SegmentVector=sa,e.SourceCache=tm,e.StencilMode=Kf,e.StructArrayLayout1ui2=us,e.StructArrayLayout2f1f2i16=es,e.StructArrayLayout2i4=jo,e.StructArrayLayout2ui4=cs,e.StructArrayLayout3f12=ns,e.StructArrayLayout3ui6=is,e.StructArrayLayout4i8=Uo,e.StructArrayLayout5f20=as,e.Texture=yf,e.Tile=Pf,e.Transitionable=So,e.Uniform1f=Fs,e.Uniform1i=class extends Bs{constructor(e){super(e),this.current=0}set(e,t,n){this.fetchUniformLocation(e,t)&&this.current!==n&&(this.current=n,this.gl.uniform1i(this.location,n))}},e.Uniform2f=class extends Bs{constructor(e){super(e),this.current=[0,0]}set(e,t,n){this.fetchUniformLocation(e,t)&&(n[0]===this.current[0]&&n[1]===this.current[1]||(this.current=n,this.gl.uniform2f(this.location,n[0],n[1])))}},e.Uniform3f=class extends Bs{constructor(e){super(e),this.current=[0,0,0]}set(e,t,n){this.fetchUniformLocation(e,t)&&(n[0]===this.current[0]&&n[1]===this.current[1]&&n[2]===this.current[2]||(this.current=n,this.gl.uniform3f(this.location,n[0],n[1],n[2])))}},e.Uniform4f=Rs,e.UniformColor=$s,e.UniformMatrix2f=class extends Bs{constructor(e){super(e),this.current=Vs}set(e,t,n){if(this.fetchUniformLocation(e,t))for(let i=0;i<4;i++)if(n[i]!==this.current[i]){this.current=n,this.gl.uniformMatrix2fv(this.location,!1,n);break}}},e.UniformMatrix3f=class extends Bs{constructor(e){super(e),this.current=js}set(e,t,n){if(this.fetchUniformLocation(e,t))for(let i=0;i<9;i++)if(n[i]!==this.current[i]){this.current=n,this.gl.uniformMatrix3fv(this.location,!1,n);break}}},e.UniformMatrix4f=class extends Bs{constructor(e){super(e),this.current=Ns}set(e,t,n){if(this.fetchUniformLocation(e,t)){if(n[12]!==this.current[12]||n[0]!==this.current[0])return this.current=n,void this.gl.uniformMatrix4fv(this.location,!1,n);for(let e=1;e<16;e++)if(n[e]!==this.current[e]){this.current=n,this.gl.uniformMatrix4fv(this.location,!1,n);break}}}},e.UnwrappedTileID=ph,e.ValidationError=nr,e.VectorTileFeature=Gu,e.VectorTileWorkerSource=class extends Qe{constructor(e,t,n,i,r){super(),this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=r||mm,this.loading={},this.loaded={},this.deduped=new fm(e.scheduler),this.isSpriteLoaded=i,this.scheduler=e.scheduler}loadTile(e,t){const n=e.uid,i=e&&e.request,r=i&&i.collectResourceTiming,o=this.loading[n]=new dm(e);o.abort=this.loadVectorData(e,((s,a)=>{const l=!this.loading[n];if(delete this.loading[n],l||s||!a)return o.status="done",l||(this.loaded[n]=o),t(s);const c=a.rawData,u={};a.expires&&(u.expires=a.expires),a.cacheControl&&(u.cacheControl=a.cacheControl),o.vectorTile=a.vectorTile||new Wu(new gd(c));const h=()=>{o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,((e,n)=>{if(e||!n)return t(e);const o={};if(r){const e=Ue(i);e.length>0&&(o.resourceTiming=JSON.parse(JSON.stringify(e)))}t(null,D({rawTileData:c.slice(0)},n,u,o))}))};this.isSpriteLoaded?h():this.once("isSpriteLoaded",(()=>{this.scheduler?this.scheduler.add(h,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom}):h()})),this.loaded=this.loaded||{},this.loaded[n]=o}))}reloadTile(e,t){const n=this.loaded,i=e.uid,r=this;if(n&&n[i]){const o=n[i];o.showCollisionBoxes=e.showCollisionBoxes,o.enableTerrain=!!e.enableTerrain,o.projection=e.projection,o.tileTransform=Op(e.tileID.canonical,e.projection);const s=(e,n)=>{const i=o.reloadCallback;i&&(delete o.reloadCallback,o.parse(o.vectorTile,r.layerIndex,this.availableImages,r.actor,i)),t(e,n)};"parsing"===o.status?o.reloadCallback=s:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}}abortTile(e,t){const n=e.uid,i=this.loading[n];i&&(i.abort&&i.abort(),delete this.loading[n]),t()}removeTile(e,t){const n=this.loaded,i=e.uid;n&&n[i]&&delete n[i],t()}},e.WritingMode=Ed,e.ZoomDependentExpression=Ji,e.add=Ta,e.addDynamicAttributes=nf,e.adjoint=function(e,t){var n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],u=t[8];return e[0]=s*u-a*c,e[1]=r*c-i*u,e[2]=i*a-r*s,e[3]=a*l-o*u,e[4]=n*u-r*l,e[5]=r*o-n*a,e[6]=o*c-s*l,e[7]=i*l-n*c,e[8]=n*s-i*o,e},e.asyncAll=O,e.bezier=S,e.bindAll=R,e.boundsAttributes=If,e.bufferConvexPolygon=function(e,t){const n=[];for(let i=0;i<e.length;i++){const r=A(i-1,-1,e.length-1),o=A(i+1,-1,e.length-1),s=e[i],a=e[o],l=e[r].sub(s).unit(),c=a.sub(s).unit(),u=c.angleWithSep(l.x,l.y),h=l.add(c).unit().mult(-1*t/Math.sin(u/2));n.push(s.add(h))}return n},e.cacheEntryPossiblyAdded=function(e){ae++,ae>ie&&(e.getActor().send("enforceCacheSizeLimit",ne),ae=0)},e.calculateGlobeLabelMatrix=function(e,t){const{x:n,y:i}=e.point,r=Dl(n,i,e.worldSize/e._pixelsPerMercatorPixel,0,0);return ma(r,r,Il(yl(t)))},e.calculateGlobeMatrix=function(e){const{x:t,y:n}=e.point,{lng:i,lat:r}=e._center;return Dl(t,n,e.worldSize,i,r)},e.calculateGlobeMercatorMatrix=function(e){const t=e.pixelsPerMeter,n=t/Wl(1,e.center.lat),i=pa(new Float64Array(16));return ga(i,i,[e.point.x,e.point.y,0]),va(i,i,[n,n,t]),Float32Array.from(i)},e.circumferenceAtLatitude=Ul,e.clamp=T,e.clearTileCache=function(e){if(!re())return;const n=t.caches.delete(Q);e&&n.catch(e).then((()=>e()))},e.clipLine=Kd,e.clone=function(e){var t=new ua(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=V,e.collisionCircleLayout=Fh,e.config=r,e.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},e.create=function(){var e=new ua(16);return ua!=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=ha,e.createExpression=Ki,e.createLayout=$o,e.createStyleLayer=function(e){return"custom"===e.type?new ff(e):new vf[e.type](e)},e.cross=Ba,e.degToRad=x,e.distance=function(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1],t[2]-e[2])},e.div=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e},e.dot=La,e.earthRadius=$l,e.ease=E,e.easeCubicInOut=k,e.ecefToLatLng=function([e,t,n]){const i=Math.hypot(e,t,n),r=Math.atan2(e,n),o=.5*Math.PI-Math.acos(-t/i);return new Vl(w(r),w(o))},e.emitValidationErrors=Ur,e.endsWith=$,e.enforceCacheSizeLimit=function(e){oe(),ee&&ee.then((t=>{t.keys().then((n=>{for(let i=0;i<n.length-e;i++)t.delete(n[i])}))}))},e.evaluateSizeForFeature=jh,e.evaluateSizeForZoom=Vh,e.evaluateVariableOffset=yp,e.evented=yo,e.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},e.exactEquals$1=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},e.exported=Ze,e.exported$1=o,e.extend=D,e.extend$1=tt,e.fillExtrusionHeightLift=ah,e.filterObject=j,e.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},e.fromQuat=function(e,t){var n=t[0],i=t[1],r=t[2],o=t[3],s=n+n,a=i+i,l=r+r,c=n*s,u=i*s,h=i*a,d=r*s,p=r*a,f=r*l,m=o*s,g=o*a,v=o*l;return e[0]=1-h-f,e[1]=u+v,e[2]=d-g,e[3]=0,e[4]=u-v,e[5]=1-c-f,e[6]=p+m,e[7]=0,e[8]=d+g,e[9]=p-m,e[10]=1-c-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.fromRotation=function(e,t){var n=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=n,e[2]=0,e[3]=-n,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},e.fromScaling=ba,e.furthestTileCorner=function(e){const t=Math.round((e+45+360)%360/90)%4;return C[t]},e.getAABBPointSquareDist=function(e,t,n){let i=0;for(let r=0;r<2;++r){const o=n?n[r]:0;e[r]>o&&(i+=(e[r]-o)*(e[r]-o)),t[r]<o&&(i+=(o-t[r])*(o-t[r]))}return i},e.getAnchorAlignment=Rd,e.getAnchorJustification=bp,e.getBounds=function(e){let t=1/0,n=1/0,i=-1/0,r=-1/0;for(const o of e)t=Math.min(t,o.x),n=Math.min(n,o.y),i=Math.max(i,o.x),r=Math.max(r,o.y);return{min:new y(t,n),max:new y(i,r)}},e.getColumn=J,e.getDefaultExportFromCjs=d,e.getGridMatrix=function(e,t,n,i){const r=t.getNorth(),o=t.getSouth(),s=t.getWest(),a=t.getEast(),l=1<<e.z,c=a-s,u=r-o,h=c/cl,d=-u/ul[n],p=[0,h,0,d,0,0,r,s,0];if(e.z>0){const e=180/i;da(p,p,[e/c+1,0,0,0,e/u+1,0,-.5*e/h,.5*e/d,1])}return p[2]=l,p[5]=e.x,p[8]=e.y,p},e.getImage=ve,e.getJSON=function(e,t){return he(D(e,{type:"json"}),t)},e.getLatitudinalLod=function(e){const t=Kl-5;e=T(e,-t,t)/t*90;const n=Math.pow(Math.abs(Math.sin(x(e))),3);return Math.round(n*(ul.length-1))},e.getMapSessionAPI=Fe,e.getPerformanceMeasurement=Ue,e.getProjection=Yp,e.getRTLTextPluginStatus=_o,e.getReferrer=ue,e.getTilePoint=function(e,{x:t,y:n},i=0){return new y(((t-i)*e.scale-e.x)*aa,(n*e.scale-e.y)*aa)},e.getTileVec3=function(e,t,n=0){return Ea(((t.x-n)*e.scale-e.x)*aa,(t.y*e.scale-e.y)*aa,Xl(t.z,t.y))},e.getVideo=function(e,n){const i=t.document.createElement("video");i.muted=!0,i.onloadstart=function(){n(null,i)};for(let r=0;r<e.length;r++){const n=t.document.createElement("source");pe(e[r])||(i.crossOrigin="Anonymous"),n.src=e[r],i.appendChild(n)}return{cancel:()=>{}}},e.globeCenterToScreenPoint=function(e){const t=[0,0,0],n=pa(new Float64Array(16));return ma(n,e.pixelMatrix,e.globeMatrix),Fa(t,t,n),new y(t[0],t[1])},e.globeDenormalizeECEF=Il,e.globeECEFOrigin=function(e,t){const n=[0,0,0];return Fa(n,n,Ol(yl(t.canonical))),Fa(n,n,e),n},e.globeMetersToEcef=fl,e.globeNormalizeECEF=Ol,e.globePixelsToTileUnits=function(e,t){return aa/(512*Math.pow(2,e))*Ml(yl(t))},e.globePoleMatrixForTile=function(e,t,n){const i=pa(new Float64Array(16)),r=(t/(1<<e)-.5)*Math.PI*2;return _a(i,n.globeMatrix,r),Float32Array.from(i)},e.globeTileBounds=yl,e.globeTiltAtLngLat=zl,e.globeToMercatorTransition=Pl,e.globeUseCustomAntiAliasing=function(e,t,n){const i=Pl(n.zoom),r=e.style.map._antialias,o=!!t.extStandardDerivatives,s=t.extStandardDerivativesForceOff||e.terrain&&e.terrain.exaggeration()>0;return 0===i&&!r&&!s&&o},e.identity=pa,e.identity$1=Ga,e.invert=fa,e.isFullscreen=function(){return!!t.document.fullscreenElement||!!t.document.webkitFullscreenElement},e.isLngLatBehindGlobe=Ll,e.isMapAuthenticated=function(e){return Re.has(e)},e.isMapboxURL=_e,e.isSafariWithAntialiasingBug=function(e){const t=e.navigator?e.navigator.userAgent:null;return!!K(e)&&t&&(t.match("Version/15.4")||t.match("Version/15.5")||t.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},e.latFromMercatorY=Zl,e.latLngToECEF=El,e.len=Va,e.length=Sa,e.length$1=function(e){return Math.hypot(e[0],e[1],e[2],e[3])},e.lngFromMercatorX=Gl,e.loadVectorTile=mm,e.makeRequest=he,e.mapValue=function(e,t,n,i,r){return T((e-t)/(n-t)*(r-i)+i,i,r)},e.mercatorScale=Yl,e.mercatorXfromLng=ql,e.mercatorYfromLat=Hl,e.mercatorZfromAltitude=Wl,e.mul=wa,e.mul$1=ja,e.multiply=ma,e.multiply$1=da,e.multiply$2=Aa,e.nextPowerOfTwo=B,e.normalize=za,e.normalize$1=Ka,e.normalize$2=qa,e.number=Dn,e.ortho=function(e,t,n,i,r,o,s){var a=1/(t-n),l=1/(i-r),c=1/(o-s);return e[0]=-2*a,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*c,e[11]=0,e[12]=(t+n)*a,e[13]=(r+i)*l,e[14]=(s+o)*c,e[15]=1,e},e.pbf=Zh,e.perspective=function(e,t,n,i,r){var o,s=1/Math.tan(t/2);return e[0]=s/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,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!=r&&r!==1/0?(e[10]=(r+i)*(o=1/(i-r)),e[14]=2*r*i*o):(e[10]=-1,e[14]=-2*i),e},e.pick=function(e,t){const n={};for(let i=0;i<t.length;i++){const r=t[i];r in e&&(n[r]=e[r])}return n},e.plugin=xo,e.pointGeometry=g,e.polesInViewport=function(e){const t=pa(new Float64Array(16));ma(t,e.pixelMatrix,e.globeMatrix);const n=[0,hl,0],i=[0,dl,0];return Fa(n,n,t),Fa(i,i,t),[n[0]>0&&n[0]<=e.width&&n[1]>0&&n[1]<=e.height&&!Ll(e,new Vl(e.center.lat,90)),i[0]>0&&i[0]<=e.width&&i[1]>0&&i[1]<=e.height&&!Ll(e,new Vl(e.center.lat,-90))]},e.polygonContainsPoint=bc,e.polygonIntersectsBox=xc,e.polygonIntersectsPolygon=hc,e.polygonizeBounds=function(e,t,n=0,i=!0){const r=new y(n,n),o=e.sub(r),s=t.add(r),a=[o,new y(s.x,o.y),s,new y(o.x,s.y)];return i&&a.push(o.clone()),a},e.posAttributes=el,e.postMapLoadEvent=Pe,e.postPerformanceEvent=Le,e.postTurnstileEvent=Ie,e.potpack=wd,e.prevPowerOfTwo=function(e){return e<=1?1:Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},e.radToDeg=w,e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.registerForPluginStateChange=function(e){return e({pluginStatus:fo,pluginURL:mo}),yo.on("pluginStateChange",e),e},e.removeAuthState=function(e){Re.delete(e)},e.renderColorRamp=jc,e.resample=ec,e.rotateX=ya,e.rotateX$1=Za,e.rotateY=_a,e.rotateY$1=Xa,e.rotateZ=function(e,t,n){var i=Math.sin(n),r=Math.cos(n),o=t[0],s=t[1],a=t[2],l=t[3],c=t[4],u=t[5],h=t[6],d=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]=o*r+c*i,e[1]=s*r+u*i,e[2]=a*r+h*i,e[3]=l*r+d*i,e[4]=c*r-o*i,e[5]=u*r-s*i,e[6]=h*r-a*i,e[7]=d*r-l*i,e},e.rotateZ$1=function(e,t,n){n*=.5;var i=t[0],r=t[1],o=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=i*l+r*a,e[1]=r*l-i*a,e[2]=o*l+s*a,e[3]=s*l-o*a,e},e.scale=va,e.scale$1=Ua,e.scale$2=Da,e.scaleAndAdd=Pa,e.set=function(e,t,n,i){return e[0]=t,e[1]=n,e[2]=i,e},e.setCacheLimits=function(e,t){ne=e,ie=t},e.setColumn=function(e,t,n){e[4*t+0]=n[0],e[4*t+1]=n[1],e[4*t+2]=n[2],e[4*t+3]=n[3]},e.setRTLTextPlugin=function(e,t,n=!1){if(fo===co||fo===uo||fo===ho)throw new Error("setRTLTextPlugin cannot be called multiple times.");mo=Ze.resolveURL(e),fo=co,po=t,vo(),n||bo()},e.smoothstep=M,e.spec=et,e.squaredLength=function(e){var t=e[0],n=e[1],i=e[2];return t*t+n*n+i*i},e.storeAuthState=function(e,t){t?Re.add(e):Re.delete(e)},e.sub=Na,e.subtract=Ma,e.symbolSize=Uh,e.tileAABB=function(e,t,n,i,r,o,s,a,l){if("globe"===l.name)return wl(e,t,new dh(n,i,r));const c=Op({z:n,x:i,y:r},l);return new rl([(o+c.x/c.scale)*t,t*(c.y/c.scale),s],[(o+c.x2/c.scale)*t,t*(c.y2/c.scale),a])},e.tileCornersToBounds=Cl,e.tileTransform=Op,e.transformMat3=function(e,t,n){var i=t[0],r=t[1],o=t[2];return e[0]=i*n[0]+r*n[3]+o*n[6],e[1]=i*n[1]+r*n[4]+o*n[7],e[2]=i*n[2]+r*n[5]+o*n[8],e},e.transformMat4=Fa,e.transformMat4$1=Ha,e.transformQuat=Ra,e.transitionTileAABBinECEF=bl,e.translate=ga,e.transpose=function(e,t){if(e===t){var n=t[1],i=t[2],r=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=i,e[7]=r}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e},e.triggerPluginCompletionEvent=go,e.uniqueId=z,e.updateGlobeVertexNormal=function(e,t,n,i,r){const o=5*t+2;e.float32[o+0]=n,e.float32[o+1]=i,e.float32[o+2]=r},e.validateCustomStyleLayer=function(e){const 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.validateFilter=e=>Vr(Cr(e)),e.validateFog=e=>Vr(Lr(e)),e.validateLayer=e=>Vr(Mr(e)),e.validateLight=e=>Vr(Pr(e)),e.validateSource=e=>Vr(Ir(e)),e.validateStyle=$r,e.validateTerrain=e=>Vr(zr(e)),e.values=I,e.vectorTile=zu,e.version=n,e.warnOnce=q,e.window=t,e.wrap=A})),i(["./shared"],(function(e){function t(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return JSON.stringify(e);if(Array.isArray(e)){let n="[";for(const i of e)n+=`${t(i)},`;return`${n}]`}let n="{";for(const i of Object.keys(e).sort())n+=`${i}:${t(e[i])},`;return`${n}}`}function n(n){let i="";for(const r of e.refProperties)i+=`/${t(n[r])}`;return i}class i{constructor(e){this.keyCache={},e&&this.replace(e)}replace(e){this._layerConfigs={},this._layers={},this.update(e,[])}update(t,i){for(const n of t)this._layerConfigs[n.id]=n,(this._layers[n.id]=e.createStyleLayer(n)).compileFilter(),this.keyCache[n.id]&&delete this.keyCache[n.id];for(const e of i)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};const r=function(e,t){const i={};for(let o=0;o<e.length;o++){const r=t&&t[e[o].id]||n(e[o]);t&&(t[e[o].id]=r);let s=i[r];s||(s=i[r]=[]),s.push(e[o])}const r=[];for(const n in i)r.push(i[n]);return r}(e.values(this._layerConfigs),this.keyCache);for(const e of r){const t=e.map((e=>this._layers[e.id])),n=t[0];if("none"===n.visibility)continue;const i=n.source||"";let r=this.familiesBySource[i];r||(r=this.familiesBySource[i]={});const o=n.sourceLayer||"_geojsonTileLayer";let s=r[o];s||(s=r[o]=[]),s.push(t)}}}class r{loadTile(t,n){const{uid:i,encoding:r,rawImageData:o,padding:s,buildQuadTree:a}=t,l=e.window.ImageBitmap&&o instanceof e.window.ImageBitmap?this.getImageData(o,s):o;n(null,new e.DEMData(i,l,r,s<1,a))}getImageData(e,t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);const n=this.offscreenCanvasContext.getImageData(-t,-t,e.width+2*t,e.height+2*t);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),n}}function o(e,t){if(0!==e.length){s(e[0],t);for(var n=1;n<e.length;n++)s(e[n],!t)}}function s(e,t){for(var n=0,i=0,r=0,o=e.length,s=o-1;r<o;s=r++){var a=(e[r][0]-e[s][0])*(e[s][1]+e[r][1]),l=n+a;i+=Math.abs(n)>=Math.abs(a)?n-l+a:a-l+n,n=l}n+i>=0!=!!t&&e.reverse()}var a=e.getDefaultExportFromCjs((function e(t,n){var i,r=t&&t.type;if("FeatureCollection"===r)for(i=0;i<t.features.length;i++)e(t.features[i],n);else if("GeometryCollection"===r)for(i=0;i<t.geometries.length;i++)e(t.geometries[i],n);else if("Feature"===r)e(t.geometry,n);else if("Polygon"===r)o(t.coordinates,n);else if("MultiPolygon"===r)for(i=0;i<t.coordinates.length;i++)o(t.coordinates[i],n);return t}));const l=e.VectorTileFeature.prototype.toGeoJSON;var c={exports:{}},u=e.pointGeometry,h=e.vectorTile.VectorTileFeature,d=p;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}p.prototype.feature=function(e){return new f(this.features[e],this.options.extent)},f.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var t=0;t<e.length;t++){for(var n=e[t],i=[],r=0;r<n.length;r++)i.push(new u(n[r][0],n[r][1]));this.geometry.push(i)}return this.geometry},f.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,n=-1/0,i=1/0,r=-1/0,o=0;o<e.length;o++)for(var s=e[o],a=0;a<s.length;a++){var l=s[a];t=Math.min(t,l.x),n=Math.max(n,l.x),i=Math.min(i,l.y),r=Math.max(r,l.y)}return[t,i,n,r]},f.prototype.toGeoJSON=h.prototype.toGeoJSON;var m=e.pbf,g=d;function v(e){var t=new m;return function(e,t){for(var n in e.layers)t.writeMessage(3,y,e.layers[n])}(e,t),t.finish()}function y(e,t){var n;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var i={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<e.length;n++)i.feature=e.feature(n),t.writeMessage(2,_,i);var r=i.keys;for(n=0;n<r.length;n++)t.writeStringField(3,r[n]);var o=i.values;for(n=0;n<o.length;n++)t.writeMessage(4,k,o[n])}function _(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,b,e),t.writeVarintField(3,n.type),t.writeMessage(4,C,n)}function b(e,t){var n=e.feature,i=e.keys,r=e.values,o=e.keycache,s=e.valuecache;for(var a in n.properties){var l=n.properties[a],c=o[a];if(null!==l){void 0===c&&(i.push(a),o[a]=c=i.length-1),t.writeVarint(c);var u=typeof l;"string"!==u&&"boolean"!==u&&"number"!==u&&(l=JSON.stringify(l));var h=u+":"+l,d=s[h];void 0===d&&(r.push(l),s[h]=d=r.length-1),t.writeVarint(d)}}}function x(e,t){return(t<<3)+(7&e)}function w(e){return e<<1^e>>31}function C(e,t){for(var n=e.loadGeometry(),i=e.type,r=0,o=0,s=n.length,a=0;a<s;a++){var l=n[a],c=1;1===i&&(c=l.length),t.writeVarint(x(1,c));for(var u=3===i?l.length-1:l.length,h=0;h<u;h++){1===h&&1!==i&&t.writeVarint(x(2,u-1));var d=l[h].x-r,p=l[h].y-o;t.writeVarint(w(d)),t.writeVarint(w(p)),r+=d,o+=p}3===i&&t.writeVarint(x(7,1))}}function k(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))}c.exports=v,c.exports.fromVectorTileJs=v,c.exports.fromGeojsonVt=function(e,t){t=t||{};var n={};for(var i in e)n[i]=new g(e[i].features,t),n[i].name=i,n[i].version=t.version,n[i].extent=t.extent;return v({layers:n})},c.exports.GeoJSONWrapper=g;var S=e.getDefaultExportFromCjs(c.exports);const E={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},T=Math.fround||(M=new Float32Array(1),e=>(M[0]=+e,M[0]));var M;const A=3,O=5,I=6;class D{constructor(e){this.options=Object.assign(Object.create(E),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:n,maxZoom:i}=this.options;t&&console.time("total time");const r=`prepare ${e.length} points`;t&&console.time(r),this.points=e;const o=[];for(let a=0;a<e.length;a++){const t=e[a];if(!t.geometry)continue;const[n,i]=t.geometry.coordinates,r=T(L(n)),s=T(B(i));o.push(r,s,1/0,a,-1,1),this.options.reduce&&o.push(0)}let s=this.trees[i+1]=this._createTree(o);t&&console.timeEnd(r);for(let a=i;a>=n;a--){const e=+Date.now();s=this.trees[a]=this._createTree(this._cluster(s,a)),t&&console.log("z%d: %d clusters in %dms",a,s.numItems,+Date.now()-e)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[1]));let r=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,r=180;else if(n>r){const e=this.getClusters([n,i,180,o],t),s=this.getClusters([-180,i,r,o],t);return e.concat(s)}const s=this.trees[this._limitZoom(t)],a=s.range(L(n),B(o),L(r),B(i)),l=s.data,c=[];for(const u of a){const e=this.stride*u;c.push(l[e+O]>1?P(l,e,this.clusterProps):this.points[l[e+A]])}return c}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),i="No cluster with the specified id.",r=this.trees[n];if(!r)throw new Error(i);const o=r.data;if(t*this.stride>=o.length)throw new Error(i);const s=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=r.within(o[t*this.stride],o[t*this.stride+1],s),l=[];for(const c of a){const t=c*this.stride;o[t+4]===e&&l.push(o[t+O]>1?P(o,t,this.clusterProps):this.points[o[t+A]])}if(0===l.length)throw new Error(i);return l}getLeaves(e,t,n){const i=[];return this._appendLeaves(i,e,t=t||10,n=n||0,0),i}getTile(e,t,n){const i=this.trees[this._limitZoom(e)],r=Math.pow(2,e),{extent:o,radius:s}=this.options,a=s/o,l=(n-a)/r,c=(n+1+a)/r,u={features:[]};return this._addTileFeatures(i.range((t-a)/r,l,(t+1+a)/r,c),i.data,t,n,r,u),0===t&&this._addTileFeatures(i.range(1-a/r,l,1,c),i.data,r,n,r,u),t===r-1&&this._addTileFeatures(i.range(0,l,a/r,c),i.data,-1,n,r,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,i,r){const o=this.getChildren(t);for(const s of o){const t=s.properties;if(t&&t.cluster?r+t.point_count<=i?r+=t.point_count:r=this._appendLeaves(e,t.cluster_id,n,i,r):r<i?r++:e.push(s),e.length===n)break}return r}_createTree(t){const n=new e.KDBush(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let e=0;e<t.length;e+=this.stride)n.add(t[e],t[e+1]);return n.finish(),n.data=t,n}_addTileFeatures(e,t,n,i,r,o){for(const s of e){const e=s*this.stride,a=t[e+O]>1;let l,c,u;if(a)l=z(t,e,this.clusterProps),c=t[e],u=t[e+1];else{const n=this.points[t[e+A]];l=n.properties;const[i,r]=n.geometry.coordinates;c=L(i),u=B(r)}const h={type:1,geometry:[[Math.round(this.options.extent*(c*r-n)),Math.round(this.options.extent*(u*r-i))]],tags:l};let d;d=a||this.options.generateId?t[e+A]:this.points[t[e+A]].id,void 0!==d&&(h.id=d),o.features.push(h)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:n,extent:i,reduce:r,minPoints:o}=this.options,s=n/(i*Math.pow(2,t)),a=e.data,l=[],c=this.stride;for(let u=0;u<a.length;u+=c){if(a[u+2]<=t)continue;a[u+2]=t;const n=a[u],i=a[u+1],h=e.within(a[u],a[u+1],s),d=a[u+O];let p=d;for(const e of h){const n=e*c;a[n+2]>t&&(p+=a[n+O])}if(p>d&&p>=o){let e,o=n*d,s=i*d,f=-1;const m=(u/c<<5)+(t+1)+this.points.length;for(const n of h){const i=n*c;if(a[i+2]<=t)continue;a[i+2]=t;const l=a[i+O];o+=a[i]*l,s+=a[i+1]*l,a[i+4]=m,r&&(e||(e=this._map(a,u,!0),f=this.clusterProps.length,this.clusterProps.push(e)),r(e,this._map(a,i)))}a[u+4]=m,l.push(o/p,s/p,1/0,m,-1,p),r&&l.push(f)}else{for(let e=0;e<c;e++)l.push(a[u+e]);if(p>1)for(const e of h){const n=e*c;if(!(a[n+2]<=t)){a[n+2]=t;for(let e=0;e<c;e++)l.push(a[n+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+O]>1){const i=this.clusterProps[e[t+I]];return n?Object.assign({},i):i}const i=this.points[e[t+A]].properties,r=this.options.map(i);return n&&r===i?Object.assign({},r):r}}function P(e,t,n){return{type:"Feature",id:e[t+A],properties:z(e,t,n),geometry:{type:"Point",coordinates:[(i=e[t],360*(i-.5)),F(e[t+1])]}};var i}function z(e,t,n){const i=e[t+O],r=i>=1e4?`${Math.round(i/1e3)}k`:i>=1e3?Math.round(i/100)/10+"k":i,o=e[t+I],s=-1===o?{}:Object.assign({},n[o]);return Object.assign(s,{cluster:!0,cluster_id:e[t+A],point_count:i,point_count_abbreviated:r})}function L(e){return e/360+.5}function B(e){const 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 F(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function R(e,t,n,i){for(var r,o=i,s=n-t>>1,a=n-t,l=e[t],c=e[t+1],u=e[n],h=e[n+1],d=t+3;d<n;d+=3){var p=$(e[d],e[d+1],l,c,u,h);if(p>o)r=d,o=p;else if(p===o){var f=Math.abs(d-s);f<a&&(r=d,a=f)}}o>i&&(r-t>3&&R(e,t,r,i),e[r+2]=o,n-r>3&&R(e,r,n,i))}function $(e,t,n,i,r,o){var s=r-n,a=o-i;if(0!==s||0!==a){var l=((e-n)*s+(t-i)*a)/(s*s+a*a);l>1?(n=r,i=o):l>0&&(n+=s*l,i+=a*l)}return(s=e-n)*s+(a=t-i)*a}function N(e,t,n,i){var r={id:void 0===e?null:e,type:t,geometry:n,tags:i,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 i=0;i<t.length;i++)j(e,t[i]);else if("MultiPolygon"===n)for(i=0;i<t.length;i++)for(var r=0;r<t[i].length;r++)j(e,t[i][r])}(r),r}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 V(e,t,n,i){if(t.geometry){var r=t.geometry.coordinates,o=t.geometry.type,s=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),a=[],l=t.id;if(n.promoteId?l=t.properties[n.promoteId]:n.generateId&&(l=i||0),"Point"===o)U(r,a);else if("MultiPoint"===o)for(var c=0;c<r.length;c++)U(r[c],a);else if("LineString"===o)q(r,a,s,!1);else if("MultiLineString"===o){if(n.lineMetrics){for(c=0;c<r.length;c++)q(r[c],a=[],s,!1),e.push(N(l,"LineString",a,t.properties));return}H(r,a,s,!1)}else if("Polygon"===o)H(r,a,s,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(c=0;c<t.geometry.geometries.length;c++)V(e,{id:l,geometry:t.geometry.geometries[c],properties:t.properties},n,i);return}throw new Error("Input data is not a valid GeoJSON object.")}for(c=0;c<r.length;c++){var u=[];H(r[c],u,s,!0),a.push(u)}}e.push(N(l,o,a,t.properties))}}function U(e,t){t.push(W(e[0])),t.push(G(e[1])),t.push(0)}function q(e,t,n,i){for(var r,o,s=0,a=0;a<e.length;a++){var l=W(e[a][0]),c=G(e[a][1]);t.push(l),t.push(c),t.push(0),a>0&&(s+=i?(r*c-l*o)/2:Math.sqrt(Math.pow(l-r,2)+Math.pow(c-o,2))),r=l,o=c}var u=t.length-3;t[2]=1,R(t,0,u,n),t[u+2]=1,t.size=Math.abs(s),t.start=0,t.end=t.size}function H(e,t,n,i){for(var r=0;r<e.length;r++){var o=[];q(e[r],o,n,i),t.push(o)}}function W(e){return e/360+.5}function G(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 Z(e,t,n,i,r,o,s,a){if(i/=t,o>=(n/=t)&&s<i)return e;if(s<n||o>=i)return null;for(var l=[],c=0;c<e.length;c++){var u=e[c],h=u.geometry,d=u.type,p=0===r?u.minX:u.minY,f=0===r?u.maxX:u.maxY;if(p>=n&&f<i)l.push(u);else if(!(f<n||p>=i)){var m=[];if("Point"===d||"MultiPoint"===d)X(h,m,n,i,r);else if("LineString"===d)K(h,m,n,i,r,!1,a.lineMetrics);else if("MultiLineString"===d)J(h,m,n,i,r,!1);else if("Polygon"===d)J(h,m,n,i,r,!0);else if("MultiPolygon"===d)for(var g=0;g<h.length;g++){var v=[];J(h[g],v,n,i,r,!0),v.length&&m.push(v)}if(m.length){if(a.lineMetrics&&"LineString"===d){for(g=0;g<m.length;g++)l.push(N(u.id,d,m[g],u.tags));continue}"LineString"!==d&&"MultiLineString"!==d||(1===m.length?(d="LineString",m=m[0]):d="MultiLineString"),"Point"!==d&&"MultiPoint"!==d||(d=3===m.length?"Point":"MultiPoint"),l.push(N(u.id,d,m,u.tags))}}}return l.length?l:null}function X(e,t,n,i,r){for(var o=0;o<e.length;o+=3){var s=e[o+r];s>=n&&s<=i&&(t.push(e[o]),t.push(e[o+1]),t.push(e[o+2]))}}function K(e,t,n,i,r,o,s){for(var a,l,c=Y(e),u=0===r?ee:te,h=e.start,d=0;d<e.length-3;d+=3){var p=e[d],f=e[d+1],m=e[d+2],g=e[d+3],v=e[d+4],y=0===r?p:f,_=0===r?g:v,b=!1;s&&(a=Math.sqrt(Math.pow(p-g,2)+Math.pow(f-v,2))),y<n?_>n&&(l=u(c,p,f,g,v,n),s&&(c.start=h+a*l)):y>i?_<i&&(l=u(c,p,f,g,v,i),s&&(c.start=h+a*l)):Q(c,p,f,m),_<n&&y>=n&&(l=u(c,p,f,g,v,n),b=!0),_>i&&y<=i&&(l=u(c,p,f,g,v,i),b=!0),!o&&b&&(s&&(c.end=h+a*l),t.push(c),c=Y(e)),s&&(h+=a)}var x=e.length-3;p=e[x],f=e[x+1],m=e[x+2],(y=0===r?p:f)>=n&&y<=i&&Q(c,p,f,m),x=c.length-3,o&&x>=3&&(c[x]!==c[0]||c[x+1]!==c[1])&&Q(c,c[0],c[1],c[2]),c.length&&t.push(c)}function Y(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function J(e,t,n,i,r,o){for(var s=0;s<e.length;s++)K(e[s],t,n,i,r,o,!1)}function Q(e,t,n,i){e.push(t),e.push(n),e.push(i)}function ee(e,t,n,i,r,o){var s=(o-t)/(i-t);return e.push(o),e.push(n+(r-n)*s),e.push(1),s}function te(e,t,n,i,r,o){var s=(o-n)/(r-n);return e.push(t+(i-t)*s),e.push(o),e.push(1),s}function ne(e,t){for(var n=[],i=0;i<e.length;i++){var r,o=e[i],s=o.type;if("Point"===s||"MultiPoint"===s||"LineString"===s)r=ie(o.geometry,t);else if("MultiLineString"===s||"Polygon"===s){r=[];for(var a=0;a<o.geometry.length;a++)r.push(ie(o.geometry[a],t))}else if("MultiPolygon"===s)for(r=[],a=0;a<o.geometry.length;a++){for(var l=[],c=0;c<o.geometry[a].length;c++)l.push(ie(o.geometry[a][c],t));r.push(l)}n.push(N(o.id,s,r,o.tags))}return n}function ie(e,t){var n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(var i=0;i<e.length;i+=3)n.push(e[i]+t,e[i+1],e[i+2]);return n}function re(e,t){if(e.transformed)return e;var n,i,r,o=1<<e.z,s=e.x,a=e.y;for(n=0;n<e.features.length;n++){var l=e.features[n],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(i=0;i<c.length;i+=2)l.geometry.push(oe(c[i],c[i+1],t,o,s,a));else for(i=0;i<c.length;i++){var h=[];for(r=0;r<c[i].length;r+=2)h.push(oe(c[i][r],c[i][r+1],t,o,s,a));l.geometry.push(h)}}return e.transformed=!0,e}function oe(e,t,n,i,r,o){return[Math.round(n*(e*i-r)),Math.round(n*(t*i-o))]}function se(e,t,n,i,r){for(var o=t===r.maxZoom?0:r.tolerance/((1<<t)*r.extent),s={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:i,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},a=0;a<e.length;a++){s.numFeatures++,ae(s,e[a],o,r);var l=e[a].minX,c=e[a].minY,u=e[a].maxX,h=e[a].maxY;l<s.minX&&(s.minX=l),c<s.minY&&(s.minY=c),u>s.maxX&&(s.maxX=u),h>s.maxY&&(s.maxY=h)}return s}function ae(e,t,n,i){var r=t.geometry,o=t.type,s=[];if("Point"===o||"MultiPoint"===o)for(var a=0;a<r.length;a+=3)s.push(r[a]),s.push(r[a+1]),e.numPoints++,e.numSimplified++;else if("LineString"===o)le(s,r,e,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(a=0;a<r.length;a++)le(s,r[a],e,n,"Polygon"===o,0===a);else if("MultiPolygon"===o)for(var l=0;l<r.length;l++){var c=r[l];for(a=0;a<c.length;a++)le(s,c[a],e,n,!0,0===a)}if(s.length){var u=t.tags||null;if("LineString"===o&&i.lineMetrics){for(var h in u={},t.tags)u[h]=t.tags[h];u.mapbox_clip_start=r.start/r.size,u.mapbox_clip_end=r.end/r.size}var d={geometry:s,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:u};null!==t.id&&(d.id=t.id),e.features.push(d)}}function le(e,t,n,i,r,o){var s=i*i;if(i>0&&t.size<(r?s:i))n.numPoints+=t.length/3;else{for(var a=[],l=0;l<t.length;l+=3)(0===i||t[l+2]>s)&&(n.numSimplified++,a.push(t[l]),a.push(t[l+1])),n.numPoints++;r&&function(e,t){for(var n=0,i=0,r=e.length,o=r-2;i<r;o=i,i+=2)n+=(e[i]-e[o])*(e[i+1]+e[o+1]);if(n>0===t)for(i=0,r=e.length;i<r/2;i+=2){var s=e[i],a=e[i+1];e[i]=e[r-2-i],e[i+1]=e[r-1-i],e[r-2-i]=s,e[r-1-i]=a}}(a,o),e.push(a)}}function ce(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 i=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var i=0;i<e.features.length;i++)V(n,e.features[i],t,i);else V(n,"Feature"===e.type?e:{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),i=function(e,t){var n=t.buffer/t.extent,i=e,r=Z(e,1,-1-n,n,0,-1,2,t),o=Z(e,1,1-n,2+n,0,-1,2,t);return(r||o)&&(i=Z(e,1,-n,1+n,0,-1,2,t)||[],r&&(i=ne(r,1).concat(i)),o&&(i=i.concat(ne(o,-1)))),i}(i,t),i.length&&this.splitTile(i,0,0,0),n&&(i.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 ue(e,t,n){return 32*((1<<e)*n+t)+e}function he(t,n){const i=t.tileID.canonical;if(!this._geoJSONIndex)return n(null,null);const r=this._geoJSONIndex.getTile(i.z,i.x,i.y);if(!r)return n(null,null);const o=new class{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t}feature(t){return new class{constructor(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))}loadGeometry(){if(1===this._feature.type){const t=[];for(const n of this._feature.geometry)t.push([new e.Point(n[0],n[1])]);return t}{const t=[];for(const n of this._feature.geometry){const i=[];for(const t of n)i.push(new e.Point(t[0],t[1]));t.push(i)}return t}}toGeoJSON(e,t,n){return l.call(this,e,t,n)}}(this._features[t])}}(r.features);let s=S(o);0===s.byteOffset&&s.byteLength===s.buffer.byteLength||(s=new Uint8Array(s)),n(null,{vectorTile:o,rawData:s.buffer})}ce.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ce.prototype.splitTile=function(e,t,n,i,r,o,s){for(var a=[e,t,n,i],l=this.options,c=l.debug;a.length;){i=a.pop(),n=a.pop(),t=a.pop(),e=a.pop();var u=1<<t,h=ue(t,n,i),d=this.tiles[h];if(!d&&(c>1&&console.time("creation"),d=this.tiles[h]=se(e,t,n,i,l),this.tileCoords.push({z:t,x:n,y:i}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,i,d.numFeatures,d.numPoints,d.numSimplified),console.timeEnd("creation"));var p="z"+t;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(d.source=e,r){if(t===l.maxZoom||t===r)continue;var f=1<<r-t;if(n!==Math.floor(o/f)||i!==Math.floor(s/f))continue}else if(t===l.indexMaxZoom||d.numPoints<=l.indexMaxPoints)continue;if(d.source=null,0!==e.length){c>1&&console.time("clipping");var m,g,v,y,_,b,x=.5*l.buffer/l.extent,w=.5-x,C=.5+x,k=1+x;m=g=v=y=null,_=Z(e,u,n-x,n+C,0,d.minX,d.maxX,l),b=Z(e,u,n+w,n+k,0,d.minX,d.maxX,l),e=null,_&&(m=Z(_,u,i-x,i+C,1,d.minY,d.maxY,l),g=Z(_,u,i+w,i+k,1,d.minY,d.maxY,l),_=null),b&&(v=Z(b,u,i-x,i+C,1,d.minY,d.maxY,l),y=Z(b,u,i+w,i+k,1,d.minY,d.maxY,l),b=null),c>1&&console.timeEnd("clipping"),a.push(m||[],t+1,2*n,2*i),a.push(g||[],t+1,2*n,2*i+1),a.push(v||[],t+1,2*n+1,2*i),a.push(y||[],t+1,2*n+1,2*i+1)}}},ce.prototype.getTile=function(e,t,n){var i=this.options,r=i.extent,o=i.debug;if(e<0||e>24)return null;var s=1<<e,a=ue(e,t=(t%s+s)%s,n);if(this.tiles[a])return re(this.tiles[a],r);o>1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var l,c=e,u=t,h=n;!l&&c>0;)c--,u=Math.floor(u/2),h=Math.floor(h/2),l=this.tiles[ue(c,u,h)];return l&&l.source?(o>1&&console.log("found parent tile z%d-%d-%d",c,u,h),o>1&&console.time("drilling down"),this.splitTile(l.source,c,u,h,e,t,n),o>1&&console.timeEnd("drilling down"),this.tiles[a]?re(this.tiles[a],r):null):null};class de extends e.VectorTileWorkerSource{constructor(e,t,n,i,r){super(e,t,n,i,he),r&&(this.loadGeoJSON=r)}loadData(t,n){const i=t&&t.request,r=i&&i.collectResourceTiming;this.loadGeoJSON(t,((o,s)=>{if(o||!s)return n(o);if("object"!=typeof s)return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));{a(s,!0);try{if(t.filter){const n=e.createExpression(t.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===n.result)throw new Error(n.value.map((e=>`${e.key}: ${e.message}`)).join(", "));const i=s.features.filter((e=>n.value.evaluate({zoom:0},e)));s={type:"FeatureCollection",features:i}}this._geoJSONIndex=t.cluster?new D(function({superclusterOptions:t,clusterProperties:n}){if(!n||!t)return t;const i={},r={},o={accumulated:null,zoom:0},s={properties:null},a=Object.keys(n);for(const l of a){const[t,o]=n[l],s=e.createExpression(o),a=e.createExpression("string"==typeof t?[t,["accumulated"],["get",l]]:t);i[l]=s.value,r[l]=a.value}return t.map=e=>{s.properties=e;const t={};for(const n of a)t[n]=i[n].evaluate(o,s);return t},t.reduce=(e,t)=>{s.properties=t;for(const n of a)o.accumulated=e[n],e[n]=r[n].evaluate(o,s)},t}(t)).load(s.features):function(e,t){return new ce(e,t)}(s,t.geojsonVtOptions)}catch(o){return n(o)}this.loaded={};const l={};if(r){const n=e.getPerformanceMeasurement(i);n&&(l.resourceTiming={},l.resourceTiming[t.source]=JSON.parse(JSON.stringify(n)))}n(null,l)}}))}reloadTile(e,t){const n=this.loaded;return n&&n[e.uid]?super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(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.`))}}}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class pe{constructor(t){this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=e.getProjection({name:"mercator"}),this.workerSourceTypes={vector:e.VectorTileWorkerSource,geojson:de},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=t=>{if(e.plugin.isParsed())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}}clearCaches(e,t,n){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],n()}checkIfReady(e,t,n){n()}setReferrer(e,t){this.referrer=t}spriteLoaded(t,n){this.isSpriteLoaded[t]=n;for(const i in this.workerSources[t]){const r=this.workerSources[t][i];for(const t in r)r[t]instanceof e.VectorTileWorkerSource&&(r[t].isSpriteLoaded=n,r[t].fire(new e.Event("isSpriteLoaded")))}}setImages(e,t,n){this.availableImages[e]=t;for(const i in this.workerSources[e]){const n=this.workerSources[e][i];for(const e in n)n[e].availableImages=t}n()}enableTerrain(e,t,n){this.terrain=t,n()}setProjection(t,n){this.projections[t]=e.getProjection(n)}setLayers(e,t,n){this.getLayerIndex(e).replace(t),n()}updateLayers(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()}loadTile(t,n,i){const r=this.enableTerrain?e.extend({enableTerrain:this.terrain},n):n;r.projection=this.projections[t]||this.defaultProjection,this.getWorkerSource(t,n.type,n.source).loadTile(r,i)}loadDEMTile(t,n,i){const r=this.enableTerrain?e.extend({buildQuadTree:this.terrain},n):n;this.getDEMWorkerSource(t,n.source).loadTile(r,i)}reloadTile(t,n,i){const r=this.enableTerrain?e.extend({enableTerrain:this.terrain},n):n;r.projection=this.projections[t]||this.defaultProjection,this.getWorkerSource(t,n.type,n.source).reloadTile(r,i)}abortTile(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)}removeTile(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)}removeSource(e,t,n){if(!this.workerSources[e]||!this.workerSources[e][t.type]||!this.workerSources[e][t.type][t.source])return;const i=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==i.removeSource?i.removeSource(t,n):n()}loadWorkerSource(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}}syncRTLPluginState(t,n,i){try{e.plugin.setState(n);const t=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=t){this.self.importScripts(t);const n=e.plugin.isParsed();i(n?void 0:new Error(`RTL Text Plugin failed to import scripts from ${t}`),n)}}catch(e){i(e.toString())}}getAvailableImages(e){let t=this.availableImages[e];return t||(t=[]),t}getLayerIndex(e){let t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new i),t}getWorkerSource(e,t,n){if(this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),!this.workerSources[e][t][n]){const i={send:(t,n,i,r,o,s)=>{this.actor.send(t,n,i,e,o,s)},scheduler:this.actor.scheduler};this.workerSources[e][t][n]=new this.workerSourceTypes[t](i,this.getLayerIndex(e),this.getAvailableImages(e),this.isSpriteLoaded[e])}return this.workerSources[e][t][n]}getDEMWorkerSource(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new r),this.demWorkerSources[e][t]}enforceCacheSizeLimit(t,n){e.enforceCacheSizeLimit(n)}getWorkerPerformanceMetrics(e,t,n){n(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new pe(self)),pe})),i(["./shared"],(function(e){function t(e,n){if(Array.isArray(e)){if(!Array.isArray(n)||e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(!t(e[i],n[i]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==n){if("object"!=typeof n)return!1;if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const i in e)if(!t(e[i],n[i]))return!1;return!0}return e===n}var n=i;function i(e){return!function(e){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,n=new Blob([""],{type:"text/javascript"}),i=URL.createObjectURL(n);try{t=new Worker(i),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(i),e}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var n=t.getImageData(0,0,1,1);return n&&n.width===e.width}()?(void 0===r[t=e&&e.failIfMajorPerformanceCaveat]&&(r[t]=function(e){var t,n=function(e){var t=document.createElement("canvas"),n=Object.create(i.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=e,t.getContext("webgl",n)||t.getContext("experimental-webgl",n)}(e);if(!n)return!1;try{t=n.createShader(n.VERTEX_SHADER)}catch(e){return!1}return!(!t||n.isContextLost())&&(n.shaderSource(t,"void main() {}"),n.compileShader(t),!0===n.getShaderParameter(t,n.COMPILE_STATUS))}(t)),r[t]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var t}(e)}var r={};function o(t,n,i){const r=e.window.document.createElement(t);return void 0!==n&&(r.className=n),i&&i.appendChild(r),r}function s(t,n,i){const r=e.window.document.createElementNS("http://www.w3.org/2000/svg",t);for(const e of Object.keys(n))r.setAttributeNS(null,e,n[e]);return i&&i.appendChild(r),r}i.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const a=e.window.document&&e.window.document.documentElement.style,l=a&&void 0!==a.userSelect?"userSelect":"WebkitUserSelect";let c;function u(){a&&l&&(c=a[l],a[l]="none")}function h(){a&&l&&(a[l]=c)}function d(t){t.preventDefault(),t.stopPropagation(),e.window.removeEventListener("click",d,!0)}function p(){e.window.addEventListener("click",d,!0),e.window.setTimeout((()=>{e.window.removeEventListener("click",d,!0)}),0)}function f(e,t){const n=e.getBoundingClientRect();return v(e,n,t)}function m(e,t){const n=e.getBoundingClientRect(),i=[];for(let r=0;r<t.length;r++)i.push(v(e,n,t[r]));return i}function g(t){return void 0!==e.window.InstallTrigger&&2===t.button&&t.ctrlKey&&e.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button}function v(t,n,i){const r=t.offsetWidth===n.width?1:t.offsetWidth/n.width;return new e.Point((i.clientX-n.left)*r,(i.clientY-n.top)*r)}function y(e,t){var n=t[0],i=t[1],r=t[2],o=t[3],s=n*o-r*i;return s?(e[0]=o*(s=1/s),e[1]=-i*s,e[2]=-r*s,e[3]=n*s,e):null}function _(e){const{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}class b extends e.Evented{constructor(){super(),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}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(const{ids:e,callback:t}of this.requestors)this._notify(e,t);this.requestors=[]}}hasImage(e){return!!this.getImage(e)}getImage(e){return this.images[e]}addImage(e,t){this._validate(e,t)&&(this.images[e]=t)}_validate(t,n){let i=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "stretchX" value`))),i=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "stretchY" value`))),i=!1),this._validateContent(n.content,n)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "content" value`))),i=!1),i}_validateStretch(e,t){if(!e)return!0;let n=0;for(const i of e){if(i[0]<n||i[1]<i[0]||t<i[1])return!1;n=i[1]}return!0}_validateContent(e,t){return!(e&&(4!==e.length||e[0]<0||t.data.width<e[0]||e[1]<0||t.data.height<e[1]||e[2]<0||t.data.width<e[2]||e[3]<0||t.data.height<e[3]||e[2]<e[0]||e[3]<e[1]))}updateImage(e,t){t.version=this.images[e].version+1,this.images[e]=t,this.updatedImages[e]=!0}removeImage(e){const t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(e,t){let n=!0;if(!this.isLoaded())for(const i of e)this.images[i]||(n=!1);this.isLoaded()||n?this._notify(e,t):this.requestors.push({ids:e,callback:t})}_notify(t,n){const i={};for(const r of t){this.images[r]||this.fire(new e.Event("styleimagemissing",{id:r}));const t=this.images[r];t?i[r]={data:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,hasRenderCallback:Boolean(t.userImage&&t.userImage.render)}:e.warnOnce(`Image "${r}" 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,i)}getPixelSize(){const{width:e,height:t}=this.atlasImage;return{width:e,height:t}}getPattern(t){const n=this.patterns[t],i=this.getImage(t);if(!i)return null;if(n&&n.position.version===i.version)return n.position;if(n)n.position.version=i.version;else{const n={w:i.data.width+2,h:i.data.height+2,x:0,y:0},r=new e.ImagePosition(n,i);this.patterns[t]={bin:n,position:r}}return this._updatePatternAtlas(),this.patterns[t].position}bind(t){const 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&&this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}_updatePatternAtlas(){const t=[];for(const e in this.patterns)t.push(this.patterns[e].bin);const{w:n,h:i}=e.potpack(t),r=this.atlasImage;r.resize({width:n||1,height:i||1});for(const o in this.patterns){const{bin:t}=this.patterns[o],n=t.x+1,i=t.y+1,s=this.images[o].data,a=s.width,l=s.height;e.RGBAImage.copy(s,r,{x:0,y:0},{x:n,y:i},{width:a,height:l}),e.RGBAImage.copy(s,r,{x:0,y:l-1},{x:n,y:i-1},{width:a,height:1}),e.RGBAImage.copy(s,r,{x:0,y:0},{x:n,y:i+l},{width:a,height:1}),e.RGBAImage.copy(s,r,{x:a-1,y:0},{x:n-1,y:i},{width:1,height:l}),e.RGBAImage.copy(s,r,{x:0,y:0},{x:n+a,y:i},{width:1,height:l})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(const t of e){if(this.callbackDispatchedThisFrame[t])continue;this.callbackDispatchedThisFrame[t]=!0;const e=this.images[t];_(e)&&this.updateImage(t,e)}}}const x=new e.Properties({anchor:new e.DataConstantProperty(e.spec.light.anchor),position:new class{constructor(){this.specification=e.spec.light.position}possiblyEvaluate(t,n){return function([t,n,i]){const r=e.degToRad(n+90),o=e.degToRad(i);return{x:t*Math.cos(r)*Math.sin(o),y:t*Math.sin(r)*Math.sin(o),z:t*Math.cos(o),azimuthal:n,polar:i}}(t.expression.evaluate(n))}interpolate(t,n,i){return{x:e.number(t.x,n.x,i),y:e.number(t.y,n.y,i),z:e.number(t.z,n.z,i),azimuthal:e.number(t.azimuthal,n.azimuthal,i),polar:e.number(t.polar,n.polar,i)}}},color:new e.DataConstantProperty(e.spec.light.color),intensity:new e.DataConstantProperty(e.spec.light.intensity)});class w extends e.Evented{constructor(t){super(),this._transitionable=new e.Transitionable(x),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(t,n={}){if(!this._validate(e.validateLight,t,n))for(const i in t){const n=t[i];e.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-11),n):this._transitionable.setValue(i,n)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,n,i){return(!i||!1!==i.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.spec})))}}const C=new e.Properties({source:new e.DataConstantProperty(e.spec.terrain.source),exaggeration:new e.DataConstantProperty(e.spec.terrain.exaggeration)});let k=class extends e.Evented{constructor(t,n){super(),this._transitionable=new e.Transitionable(C),this.set(t),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=n}get(){return this._transitionable.serialize()}set(t){for(const n in t){const i=t[n];e.endsWith(n,"-transition")?this._transitionable.setTransition(n.slice(0,-11),i):this._transitionable.setValue(n,i)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}};function S(t,n,i,r){const o=e.smoothstep(45,65,i),[s,a]=E(t,r),l=e.length(n);let c=1-Math.min(1,Math.exp((l-s)/(a-s)*-6));return c*=c*c,c=Math.min(1,1.00747*c),c*o*t.alpha}function E(e,t){const n=.5/Math.tan(.5*t);return[e.range[0]+n,e.range[1]+n]}const T=new e.Properties({range:new e.DataConstantProperty(e.spec.fog.range),color:new e.DataConstantProperty(e.spec.fog.color),"high-color":new e.DataConstantProperty(e.spec.fog["high-color"]),"space-color":new e.DataConstantProperty(e.spec.fog["space-color"]),"horizon-blend":new e.DataConstantProperty(e.spec.fog["horizon-blend"]),"star-intensity":new e.DataConstantProperty(e.spec.fog["star-intensity"])});class M extends e.Evented{constructor(t,n){super(),this._transitionable=new e.Transitionable(T),this.set(t),this._transitioning=this._transitionable.untransitioned(),this._transform=n}get state(){const t=this._transform,n="globe"===t.projection.name,i=e.globeToMercatorTransition(t.zoom),r=this.properties.get("range"),o=[.5,3];return{range:n?[e.number(o[0],r[0],i),e.number(o[1],r[1],i)]:r,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(t,n={}){if(!this._validate(e.validateFog,t,n)){for(const n of Object.keys(e.spec.fog))t&&void 0===t[n]&&(t[n]=e.spec.fog[n].default);for(const n in t){const i=t[n];e.endsWith(n,"-transition")?this._transitionable.setTransition(n.slice(0,-11),i):this._transitionable.setValue(n,i)}}}getOpacity(t){if(!this._transform.projection.supportsFog)return 0;const n=this.properties&&this.properties.get("color")||1;return("globe"===this._transform.projection.name?1:e.smoothstep(45,65,t))*n.a}getOpacityAtLatLng(t,n){return this._transform.projection.supportsFog?function(t,n,i){const r=e.MercatorCoordinate.fromLngLat(n),o=i.elevation?i.elevation.getAtPointOrZero(r):0,s=[r.x,r.y,o];return e.transformMat4(s,s,i.mercatorFogMatrix),S(t,s,i.pitch,i._fov)}(this.state,t,n):0}getFovAdjustedRange(e){return this._transform.projection.supportsFog?E(this.state,e):[0,1]}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,n,i){return(!i||!1!==i.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.spec})))}}class A{constructor(t,n){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=e.uniqueId();const i=this.workerPool.acquire(this.id);for(let e=0;e<i.length;e++){const t=new A.Actor(i[e],n,this.id);t.name=`Worker ${e}`,this.actors.push(t)}this.ready=!1,this.broadcast("checkIfReady",null,(()=>{this.ready=!0}))}broadcast(t,n,i){e.asyncAll(this.actors,((e,i)=>{e.send(t,n,i)}),i=i||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach((e=>{e.remove()})),this.actors=[],this.workerPool.release(this.id)}}function O(t,n,i){return n*(e.EXTENT/(t.tileSize*Math.pow(2,i-t.tileID.overscaledZ)))}A.Actor=e.Actor;class I{constructor(e,t,n,i){this.screenBounds=e,this.cameraPoint=t,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=n,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,i)}static createFromScreenPoints(t,n){let i,r;if(t instanceof e.Point||"number"==typeof t[0]){const o=e.Point.convert(t);i=[o],r=n.isPointAboveHorizon(o)}else{const o=e.Point.convert(t[0]),s=e.Point.convert(t[1]);i=[o,s],r=e.polygonizeBounds(o,s).every((e=>n.isPointAboveHorizon(e)))}return new I(i,n.getCameraPoint(),r,n)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(t){return e.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],t)}bufferedCameraGeometry(t){const n=this.screenBounds[0],i=1===this.screenBounds.length?this.screenBounds[0].add(new e.Point(1,1)):this.screenBounds[1],r=e.polygonizeBounds(n,i,0,!1);return this.cameraPoint.y>i.y&&(this.cameraPoint.x>n.x&&this.cameraPoint.x<i.x?r.splice(3,0,this.cameraPoint):this.cameraPoint.x>=i.x?r[2]=this.cameraPoint:this.cameraPoint.x<=n.x&&(r[3]=this.cameraPoint)),e.bufferConvexPolygon(r,t)}bufferedCameraGeometryGlobe(t){const n=this.screenBounds[0],i=1===this.screenBounds.length?this.screenBounds[0].add(new e.Point(1,1)):this.screenBounds[1],r=e.polygonizeBounds(n,i,t),o=this.cameraPoint.clone();switch(3*((o.y>n.y)+(o.y>i.y))+((o.x>n.x)+(o.x>i.x))){case 0:r[0]=o,r[4]=o.clone();break;case 1:r.splice(1,0,o);break;case 2:r[1]=o;break;case 3:r.splice(4,0,o);break;case 5:r.splice(2,0,o);break;case 6:r[3]=o;break;case 7:r.splice(3,0,o);break;case 8:r[2]=o}return r}containsTile(t,n,i,r=0){const o=t.queryPadding/n._pixelsPerMercatorPixel+1,s=i?this._bufferedCameraMercator(o,n):this._bufferedScreenMercator(o,n);let a=t.tileID.wrap+(s.unwrapped?r:0);const l=s.polygon.map((n=>e.getTilePoint(t.tileTransform,n,a)));if(!e.polygonIntersectsBox(l,0,0,e.EXTENT,e.EXTENT))return;a=t.tileID.wrap+(this.screenGeometryMercator.unwrapped?r:0);const c=this.screenGeometryMercator.polygon.map((n=>e.getTileVec3(t.tileTransform,n,a))),u=c.map((t=>new e.Point(t[0],t[1]))),h=n.getFreeCameraOptions().position||new e.MercatorCoordinate(0,0,0),d=e.getTileVec3(t.tileTransform,h,a),p=c.map((t=>{const n=e.sub(t,t,d);return e.normalize(n,n),new e.Ray(d,n)})),f=O(t,1,n.zoom)*n._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:u,tilespaceRays:p,bufferedTilespaceGeometry:l,bufferedTilespaceBounds:(m=e.getBounds(l),m.min.x=e.clamp(m.min.x,0,e.EXTENT),m.min.y=e.clamp(m.min.y,0,e.EXTENT),m.max.x=e.clamp(m.max.x,0,e.EXTENT),m.max.y=e.clamp(m.max.y,0,e.EXTENT),m),tile:t,tileID:t.tileID,pixelToTileUnitsFactor:f};var m}_bufferedScreenMercator(e,t){const n=z(e);if(this._screenRaycastCache[n])return this._screenRaycastCache[n];{let i;return i="globe"===t.projection.name?this._projectAndResample(this.bufferedScreenGeometry(e),t):{polygon:this.bufferedScreenGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._screenRaycastCache[n]=i,i}}_bufferedCameraMercator(e,t){const n=z(e);if(this._cameraRaycastCache[n])return this._cameraRaycastCache[n];{let i;return i="globe"===t.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(e),t):{polygon:this.bufferedCameraGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._cameraRaycastCache[n]=i,i}}_projectAndResample(t,n){const i=function(t,n){const i=e.multiply([],n.pixelMatrix,n.globeMatrix),r=[0,-e.GLOBE_RADIUS,0,1],o=[0,e.GLOBE_RADIUS,0,1],s=[0,0,0,1];e.transformMat4$1(r,r,i),e.transformMat4$1(o,o,i),e.transformMat4$1(s,s,i);const a=new e.Point(r[0]/r[3],r[1]/r[3]),l=new e.Point(o[0]/o[3],o[1]/o[3]),c=e.polygonContainsPoint(t,a)&&r[3]<s[3],u=e.polygonContainsPoint(t,l)&&o[3]<s[3];if(!c&&!u)return null;const h=function(e,t,n){for(let i=1;i<e.length;i++){const r=P(t.pointCoordinate3D(e[i-1]).x),o=P(t.pointCoordinate3D(e[i]).x);if(n<0){if(r<o)return{idx:i,t:-r/(o-1-r)}}else if(o<r)return{idx:i,t:(1-r)/(o+1-r)}}return null}(t,n,c?-1:1);if(!h)return null;const{idx:d,t:p}=h;let f=d>1?D(t.slice(0,d),n):[],m=d<t.length?D(t.slice(d),n):[];f=f.map((t=>new e.Point(P(t.x),t.y))),m=m.map((t=>new e.Point(P(t.x),t.y)));const g=[...f];0===g.length&&g.push(m[m.length-1]);const v=e.number(g[g.length-1].y,(0===m.length?f[0]:m[0]).y,p);let y;return y=c?[new e.Point(0,v),new e.Point(0,0),new e.Point(1,0),new e.Point(1,v)]:[new e.Point(1,v),new e.Point(1,1),new e.Point(0,1),new e.Point(0,v)],g.push(...y),0===m.length?g.push(f[0]):g.push(...m),{polygon:g.map((t=>new e.MercatorCoordinate(t.x,t.y))),unwrapped:!1}}(t,n);if(i)return i;const r=function(t,n){let i=!1,r=-1/0,o=0;for(let e=0;e<t.length-1;e++)t[e].x>r&&(r=t[e].x,o=e);for(let e=0;e<t.length-1;e++){const n=(o+e)%(t.length-1),r=t[n],s=t[n+1];Math.abs(r.x-s.x)>.5&&(r.x<s.x?(r.x+=1,0===n&&(t[t.length-1].x+=1)):(s.x+=1,n+1===t.length-1&&(t[0].x+=1)),i=!0)}const s=e.mercatorXfromLng(n.center.lng);return i&&s<Math.abs(s-1)&&t.forEach((e=>{e.x-=1})),{polygon:t,unwrapped:i}}(D(t,n).map((t=>new e.Point(P(t.x),t.y))),n);return{polygon:r.polygon.map((t=>new e.MercatorCoordinate(t.x,t.y))),unwrapped:r.unwrapped}}}function D(t,n){return e.resample(t,(e=>{const t=n.pointCoordinate3D(e);e.x=t.x,e.y=t.y}),1/256)}function P(e){return e<0?1+e%1:e%1}function z(e){return 100*e|0}function L(t,n,i,r,o){const s=function(i,r){if(i)return o(i);if(r){t.url&&r.tiles&&t.tiles&&delete t.tiles;const i=e.pick(e.extend(r,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);r.vector_layers&&(i.vectorLayers=r.vector_layers,i.vectorLayerIds=i.vectorLayers.map((e=>e.id))),i.tiles=n.canonicalizeTileset(i,t.url),o(null,i)}};return t.url?e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url,null,i,r),e.ResourceType.Source),s):e.exported.frame((()=>s(null,t)))}class B{constructor(t,n,i){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=i||24}validateBounds(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]}contains(t){const n=Math.pow(2,t.z),i=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*n),r=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*n),o=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*n),s=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=i&&t.x<o&&t.y>=r&&t.y<s}}class F{constructor(e,t,n){this.context=e;const i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||t.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const R={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class ${constructor(e,t,n,i){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=i,this.context=e;const r=e.gl;this.buffer=r.createBuffer(),e.bindVertexBuffer.set(this.buffer),r.bufferData(r.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||t.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let n=0;n<this.attributes.length;n++){const i=t.attributes[this.attributes[n].name];void 0!==i&&e.enableVertexAttribArray(i)}}setVertexAttribPointers(e,t,n){for(let i=0;i<this.attributes.length;i++){const r=this.attributes[i],o=t.attributes[r.name];void 0!==o&&e.vertexAttribPointer(o,r.components,e[R[r.type]],!1,this.itemSize,r.offset+this.itemSize*(n||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class N{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class j extends N{getDefault(){return e.Color.transparent}set(e){const 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)}}class V extends N{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class U extends N{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}class q extends N{getDefault(){return[!0,!0,!0,!0]}set(e){const 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)}}class H extends N{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class W extends N{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class G extends N{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){const 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)}}class Z extends N{getDefault(){const e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){const 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)}}class X extends N{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}}class K extends N{getDefault(){return[0,1]}set(e){const 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)}}class Y extends N{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}}class J extends N{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class Q extends N{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}}class ee extends N{getDefault(){const e=this.gl;return[e.ONE,e.ZERO]}set(e){const 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)}}class te extends N{getDefault(){return e.Color.transparent}set(e){const 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)}}class ne extends N{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}}class ie extends N{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}}class re extends N{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class oe extends N{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}let se,ae=class extends N{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}};class le extends N{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class ce extends N{getDefault(){const e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){const 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)}}class ue extends N{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}}class he extends N{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class de extends N{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}}class pe extends N{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class fe extends N{getDefault(){return null}set(e){const t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class me extends N{constructor(e){super(e),this.vao=e.extVertexArrayObject}getDefault(){return null}set(e){this.vao&&(e!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(e),this.current=e,this.dirty=!1)}}class ge extends N{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}}class ve extends N{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}}class ye extends N{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}}class _e extends N{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class be extends _e{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class xe extends _e{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,this.attachment(),t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class we extends xe{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class Ce{constructor(e,t,n,i){this.context=e,this.width=t,this.height=n;const r=this.framebuffer=e.gl.createFramebuffer();this.colorAttachment=new be(e,r),i&&(this.depthAttachment=new xe(e,r))}destroy(){const e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){const t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}e.deleteFramebuffer(this.framebuffer)}}class ke{constructor(e,t=!1){if(this.gl=e,this.isWebGL2=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),t){const t=e;this.extVertexArrayObject={createVertexArrayOES:t.createVertexArray.bind(e),deleteVertexArrayOES:t.deleteVertexArray.bind(e),bindVertexArrayOES:t.bindVertexArray.bind(e)}}this.clearColor=new j(this),this.clearDepth=new V(this),this.clearStencil=new U(this),this.colorMask=new q(this),this.depthMask=new H(this),this.stencilMask=new W(this),this.stencilFunc=new G(this),this.stencilOp=new Z(this),this.stencilTest=new X(this),this.depthRange=new K(this),this.depthTest=new Y(this),this.depthFunc=new J(this),this.blend=new Q(this),this.blendFunc=new ee(this),this.blendColor=new te(this),this.blendEquation=new ne(this),this.cullFace=new ie(this),this.cullFaceSide=new re(this),this.frontFace=new oe(this),this.program=new ae(this),this.activeTexture=new le(this),this.viewport=new ce(this),this.bindFramebuffer=new ue(this),this.bindRenderbuffer=new he(this),this.bindTexture=new de(this),this.bindVertexBuffer=new pe(this),this.bindElementBuffer=new fe(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new me(this),this.pixelStoreUnpack=new ge(this),this.pixelStoreUnpackPremultiplyAlpha=new ve(this),this.pixelStoreUnpackFlipY=new ye(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.extTextureFilterAnisotropicForceOff=!1,this.extStandardDerivativesForceOff=!1,this.extDebugRendererInfo=e.getExtension("WEBGL_debug_renderer_info"),this.extDebugRendererInfo&&(this.renderer=e.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL),this.vendor=e.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)),t||(this.extTextureHalfFloat=e.getExtension("OES_texture_half_float")),(t||this.extTextureHalfFloat&&e.getExtension("OES_texture_half_float_linear"))&&(this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float")),this.extStandardDerivatives=t||e.getExtension("OES_standard_derivatives"),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(e,t){return new F(this,e,t)}createVertexBuffer(e,t,n){return new $(this,e,t,n)}createRenderbuffer(e,t,n){const i=this.gl,r=i.createRenderbuffer();return this.bindRenderbuffer.set(r),i.renderbufferStorage(i.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),r}createFramebuffer(e,t,n){return new Ce(this,e,t,n)}clear({color:e,depth:t,stencil:n}){const i=this.gl;let r=0;e&&(r|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==t&&(r|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),void 0!==n&&(r|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(n),this.stencilMask.set(255)),i.clear(r)}setCullFace(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(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)}setStencilMode(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)}setColorMode(n){t(n.blendFunction,e.ColorMode.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(n.blendFunction),this.blendColor.set(n.blendColor)),this.colorMask.set(n.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}}class Se extends e.Evented{constructor(t,n,i,r){if(super(),this.id=t,this.dispatcher=i,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick(n,["url","scheme","tileSize","promoteId"])),this._options=e.extend({type:"vector"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(r),this._tileWorkers={},this._deduped=new e.DedupedRequest}load(t){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"}));const n=Array.isArray(this.map._language)?this.map._language.join():this.map._language,i=this.map._worldview;this._tileJSONRequest=L(this._options,this.map._requestManager,n,i,((r,o)=>{this._tileJSONRequest=null,this._loaded=!0,r?(n&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${n}`),i&&2!==i.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${i}`),this.fire(new e.ErrorEvent(r))):o&&(e.extend(this,o),o.bounds&&(this.tileBounds=new B(o.bounds,this.minzoom,this.maxzoom)),e.postTurnstileEvent(o.tiles,this.map._requestManager._customAccessToken),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))),t&&t(r)}))}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest(),this.load((()=>this.map.style._clearSource(this.id)))}setTiles(e){return this._options.tiles=e,this.reload(),this}setUrl(e){return this.url=e,this._options.url=e,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return e.extend({},this._options)}loadTile(t,n){const i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),r={request:this.map._requestManager.transformRequest(i,e.ResourceType.Tile),data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:e.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:t.isSymbolTile};if(r.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state)"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",r,o.bind(this));else if(t.actor=this._tileWorkers[i]=this._tileWorkers[i]||this.dispatcher.getActor(),this.dispatcher.ready)t.request=t.actor.send("loadTile",r,o.bind(this),void 0,!0);else{const n=e.loadVectorTile.call({deduped:this._deduped},r,((e,n)=>{e||!n?o.call(this,e):(r.data={cacheControl:n.cacheControl,expires:n.expires,rawData:n.rawData.slice(0)},t.actor&&t.actor.send("loadTile",r,o.bind(this),void 0,!0))}),!0);t.request={cancel:n}}function o(i,r){return delete t.request,t.aborted?n(null):i&&404!==i.status?n(i):(r&&r.resourceTiming&&(t.resourceTiming=r.resourceTiming),this.map._refreshExpiredTiles&&r&&t.setExpiryData(r),t.loadVectorData(r,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id})}unloadTile(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class Ee extends e.Evented{constructor(t,n,i,r){super(),this.id=t,this.dispatcher=i,this.setEventedParent(r),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},n),e.extend(this,e.pick(n,["url","scheme","tileSize"]))}load(t){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=L(this._options,this.map._requestManager,null,null,((n,i)=>{this._tileJSONRequest=null,this._loaded=!0,n?this.fire(new e.ErrorEvent(n)):i&&(e.extend(this,i),i.bounds&&(this.tileBounds=new B(i.bounds,this.minzoom,this.maxzoom)),e.postTurnstileEvent(i.tiles),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))),t&&t(n)}))}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest(),this.load((()=>this.map.style._clearSource(this.id)))}setTiles(e){return this._options.tiles=e,this.reload(),this}setUrl(e){return this.url=e,this._options.url=e,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return e.extend({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,n){const i=e.exported.devicePixelRatio>=2,r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),i,this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),((i,r,o,s)=>(delete t.request,t.aborted?(t.state="unloaded",n(null)):i?(t.state="errored",n(i)):r?(this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:o,expires:s}),t.setTexture(r,this.map.painter),t.state="loaded",e.cacheEntryPossiblyAdded(this.dispatcher),void n(null)):n(null))))}static loadTileData(e,t,n){e.setTexture(t,n)}static unloadTileData(e,t){e.texture&&t.saveTileTexture(e.texture)}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t()}unloadTile(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}function Te(t,n,i,r,o,s,a,l){const c=[t,i,o,n,r,s,1,1,1],u=[a,l,1],h=e.adjoint([],c),[d,p,f]=e.transformMat3(u,u,e.transpose(h,h));return e.multiply$1(c,[d,0,0,0,p,0,0,0,f],c)}class Me extends e.Evented{constructor(e,t,n,i){super(),this.id=e,this.dispatcher=n,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=t,this._dirty=!1}load(t,n){this._loaded=n||!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._imageRequest=e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),((n,i)=>{if(this._imageRequest=null,this._loaded=!0,n)this.fire(new e.ErrorEvent(n));else if(i){const{HTMLImageElement:n}=e.window;this.image=i instanceof n?e.exported.getImageData(i):i,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,t&&(this.coordinates=t),this._finishLoading()}}))}loaded(){return this._loaded}updateImage(e){return this.image&&e.url?(this._imageRequest&&e.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=e.url,this.load(e.coordinates,this._loaded),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),this.texture&&this.texture.destroy()}setCoordinates(t){this.coordinates=t,this._boundsArray=void 0;const n=t.map(e.MercatorCoordinate.fromLngLat);return this.tileID=function(t){let n=1/0,i=1/0,r=-1/0,o=-1/0;for(const e of t)n=Math.min(n,e.x),i=Math.min(i,e.y),r=Math.max(r,e.x),o=Math.max(o,e.y);const s=Math.max(r-n,o-i),a=Math.max(0,Math.floor(-Math.log(s)/Math.LN2)),l=Math.pow(2,a);return new e.CanonicalTileID(a,Math.floor((n+r)/2*l),Math.floor((i+o)/2*l))}(n),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(t){for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}if(this._boundsArray)return;const n=e.tileTransform(this.tileID,this.map.transform.projection),[i,r,o,s]=this.coordinates.map((t=>{const i=n.projection.project(t[0],t[1]);return e.getTilePoint(n,i)._round()}));this.perspectiveTransform=function(t,n,i,r,o,s,a,l,c,u){const h=Te(0,0,t,0,0,n,t,n),d=Te(i,r,o,s,a,l,c,u);return e.multiply$1(d,e.adjoint(h,h),d),[d[6]/d[8]*t/e.EXTENT,d[7]/d[8]*n/e.EXTENT]}(this.width,this.height,i.x,i.y,r.x,r.y,s.x,s.y,o.x,o.y);const a=this._boundsArray=new e.StructArrayLayout4i8;a.emplaceBack(i.x,i.y,0,0),a.emplaceBack(r.x,r.y,e.EXTENT,0),a.emplaceBack(s.x,s.y,0,e.EXTENT),a.emplaceBack(o.x,o.y,e.EXTENT,e.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=t.createVertexBuffer(a,e.boundsAttributes.members),this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const t=this.map.painter.context,n=t.gl;this._dirty&&(this.texture?this.texture.update(this.image):(this.texture=new e.Texture(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this._dirty=!1),this._prepareData(t)}loadTile(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))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const Ae={vector:Se,raster:Ee,"raster-dem":class extends Ee{constructor(t,n,i,r){super(t,n,i,r),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}loadTile(t,n){const i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function r(e,i){e&&(t.state="errored",n(e)),i&&(t.dem=i,t.dem.onDeserialize(),t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0,t.state="loaded",n(null))}t.request=e.getImage(this.map._requestManager.transformRequest(i,e.ResourceType.Tile),function(i,o,s,a){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(i)t.state="errored",n(i);else if(o){this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:s,expires:a});const n=e.window.ImageBitmap&&o instanceof e.window.ImageBitmap&&(null==se&&(se=e.window.OffscreenCanvas&&new e.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof e.window.createImageBitmap),se),i=1-(o.width-e.prevPowerOfTwo(o.width))/2;i<1||t.neighboringTiles||(t.neighboringTiles=this._getNeighboringTiles(t.tileID));const l=n?o:e.exported.getImageData(o,i),c={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:l,encoding:this.encoding,padding:i};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",c,r.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(t){const n=t.canonical,i=Math.pow(2,n.z),r=(n.x-1+i)%i,o=0===n.x?t.wrap-1:t.wrap,s=(n.x+1+i)%i,a=n.x+1===i?t.wrap+1:t.wrap,l={};return l[new e.OverscaledTileID(t.overscaledZ,o,n.z,r,n.y).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,a,n.z,s,n.y).key]={backfilled:!1},n.y>0&&(l[new e.OverscaledTileID(t.overscaledZ,o,n.z,r,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,a,n.z,s,n.y-1).key]={backfilled:!1}),n.y+1<i&&(l[new e.OverscaledTileID(t.overscaledZ,o,n.z,r,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,a,n.z,s,n.y+1).key]={backfilled:!1}),l}unloadTile(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"}},geojson:class extends e.Evented{constructor(t,n,i,r){super(),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(r),this._data=n.data,this._options=e.extend({},n),this._collectResourceTiming=n.collectResourceTiming,void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId;const o=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:e.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?n.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,n.clusterMinPoints||2),extent:e.EXTENT,radius:(void 0!==n.clusterRadius?n.clusterRadius:50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties,filter:n.filter},n.workerOptions)}onAdd(e){this.map=e,this.setData(this._data)}setData(e){return this._data=e,this._updateWorkerData(),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this}getClusterLeaves(e,t,n,i){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:n},i),this}_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new e.Event("dataloading",{dataType:"source"})),this._loaded=!1;const t=e.extend({},this.workerOptions),n=this._data;"string"==typeof n?(t.request=this.map._requestManager.transformRequest(e.exported.resolveURL(n),e.ResourceType.Source),t.request.collectResourceTiming=this._collectResourceTiming):t.data=JSON.stringify(n),this._pendingLoad=this.actor.send(`${this.type}.loadData`,t,((t,n)=>{if(this._loaded=!0,this._pendingLoad=null,t)this.fire(new e.ErrorEvent(t));else{const t={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&n&&n.resourceTiming&&n.resourceTiming[this.id]&&(t.resourceTiming=n.resourceTiming[this.id]),this.fire(new e.Event("data",t)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)}))}loaded(){return this._loaded}loadTile(t,n){const i=t.actor?"reloadTile":"loadTile";t.actor=this.actor,t.request=this.actor.send(i,{type:this.type,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},((e,r)=>(delete t.request,t.unloadVectorData(),t.aborted?n(null):e?n(e):(t.loadVectorData(r,this.map.painter,"reloadTile"===i),n(null)))),void 0,"loadTile"===i)}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return e.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends Me{constructor(e,t,n,i){super(e,t,n,i),this.roundZoom=!0,this.type="video",this.options=t}load(){this._loaded=!1;const t=this.options;this.urls=[];for(const n of t.urls)this.urls.push(this.map._requestManager.transformRequest(n,e.ResourceType.Source).url);e.getVideo(this.urls,((t,n)=>{this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):n&&(this.video=n,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",(()=>{this.map.triggerRepaint()})),this.map&&this.video.play(),this._finishLoading())}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const n=this.video.seekable;t<n.start(0)||t>n.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const t=this.map.painter.context,n=t.gl;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.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(t)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:Me,canvas:class extends Me{constructor(t,n,i,r){super(t,n,i,r),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some((e=>!Array.isArray(e)||2!==e.length||e.some((e=>"number"!=typeof e))))||this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof e.window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}load(){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())}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let 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())return;if(0===Object.keys(this.tiles).length)return;const n=this.map.painter.context;this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(n,this.canvas,n.gl.RGBA,{premultiply:!0}),this._prepareData(n)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},custom:class extends e.Evented{constructor(t,n,i,r){super(),this.id=t,this.type="custom",this._dataType="raster",this._dispatcher=i,this._implementation=n,this.setEventedParent(r),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new e.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new e.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new B(this._implementation.bounds,this.minzoom,this.maxzoom)),n.update=this._update.bind(this),n.clearTiles=this._clearTiles.bind(this),n.coveringTiles=this._coveringTiles.bind(this),e.extend(this,e.pick(n,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return e.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(t){this._map=t,this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(t),this.load()}onRemove(e){this._implementation.onRemove&&this._implementation.onRemove(e)}hasTile(e){if(this._implementation.hasTile){const{x:t,y:n,z:i}=e.canonical;return this._implementation.hasTile({x:t,y:n,z:i})}return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,n){const{x:i,y:r,z:o}=t.tileID.canonical,s=new e.window.AbortController;t.request=Promise.resolve(this._implementation.loadTile({x:i,y:r,z:o},{signal:s.signal})).then(function(i){return delete t.request,t.aborted?(t.state="unloaded",n(null)):void 0===i?(t.state="errored",n(null)):null===i?(this.loadTileData(t,{width:this.tileSize,height:this.tileSize,data:null}),t.state="loaded",n(null)):function(t){return t instanceof e.window.ImageData||t instanceof e.window.HTMLCanvasElement||t instanceof e.window.ImageBitmap||t instanceof e.window.HTMLImageElement}(i)?(this.loadTileData(t,i),t.state="loaded",void n(null)):(t.state="errored",n(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)))}.bind(this)).catch((e=>{20!==e.code&&(t.state="errored",n(e))})),t.request.cancel=()=>s.abort()}loadTileData(e,t){Ee.loadTileData(e,t,this._map.painter)}unloadTileData(e){Ee.unloadTileData(e,this._map.painter)}unloadTile(e,t){if(this.unloadTileData(e),this._implementation.unloadTile){const{x:t,y:n,z:i}=e.tileID.canonical;this._implementation.unloadTile({x:t,y:n,z:i})}t()}abortTile(e,t){e.request&&e.request.cancel&&(e.request.cancel(),delete e.request),t()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map((e=>({x:e.canonical.x,y:e.canonical.y,z:e.canonical.z})))}_clearTiles(){this._map.style._clearSource(this.id)}_update(){this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))}}},Oe=function(t,n,i,r){const o=new Ae[n.type](t,n,i,r);if(o.id!==t)throw new Error(`Expected Source id to be ${t} instead of ${o.id}`);return e.bindAll(["load","abort","unload","serialize","prepare"],o),o};function Ie(t,n){const i=e.identity([]);return e.scale(i,i,[.5*t.width,.5*-t.height,1]),e.translate(i,i,[1,-1,0]),e.multiply(i,i,t.calculateProjMatrix(n.toUnwrapped())),Float32Array.from(i)}function De(e,t,n,i,r,o,s,a=!1){const l=e.tilesIn(i,s,a);l.sort(ze);const c=[];for(const h of l)c.push({wrappedTileID:h.tile.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(t,n,e._state,h,r,o,Ie(e.transform,h.tile.tileID),a)});const u=function(e){const t={},n={};for(const i of e){const e=i.queryResults,r=i.wrappedTileID,o=n[r]=n[r]||{};for(const n in e){const i=e[n],r=o[n]=o[n]||{},s=t[n]=t[n]||[];for(const e of i)r[e.featureIndex]||(r[e.featureIndex]=!0,s.push(e))}}return t}(c);for(const h in u)u[h].forEach((t=>{const n=t.feature,i=n.layer;i&&"background"!==i.type&&"sky"!==i.type&&(n.source=i.source,i["source-layer"]&&(n.sourceLayer=i["source-layer"]),n.state=void 0!==n.id?e.getFeatureState(i["source-layer"],n.id):{})}));return u}function Pe(e,t){const n=e.getRenderableIds().map((t=>e.getTileByID(t))),i=[],r={};for(let o=0;o<n.length;o++){const e=n[o],s=e.tileID.canonical.key;r[s]||(r[s]=!0,e.querySourceFeatures(i,t))}return i}function ze(e,t){const n=e.tileID,i=t.tileID;return n.overscaledZ-i.overscaledZ||n.canonical.y-i.canonical.y||n.wrap-i.wrap||n.canonical.x-i.canonical.x}function Le(){return null!=po.workerClass?new po.workerClass:new e.window.Worker(po.workerUrl)}const Be="mapboxgl_preloaded_worker_pool";class Fe{constructor(){this.active={}}acquire(e){if(!this.workers)for(this.workers=[];this.workers.length<Fe.workerCount;)this.workers.push(new Le);return this.active[e]=!0,this.workers.slice()}release(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach((e=>{e.terminate()})),this.workers=null)}isPreloaded(){return!!this.active[Be]}numActive(){return Object.keys(this.active).length}}let Re;function $e(){return Re||(Re=new Fe),Re}function Ne(t,n){const i={};for(const e in t)"ref"!==e&&(i[e]=t[e]);return e.refProperties.forEach((e=>{e in n&&(i[e]=n[e])})),i}function je(e){e=e.slice();const t=Object.create(null);for(let n=0;n<e.length;n++)t[e[n].id]=e[n];for(let n=0;n<e.length;n++)"ref"in e[n]&&(e[n]=Ne(e[n],t[e[n].ref]));return e}Fe.workerCount=2;const Ve={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain",setFog:"setFog",setProjection:"setProjection"};function Ue(e,t,n){n.push({command:Ve.addSource,args:[e,t[e]]})}function qe(e,t,n){t.push({command:Ve.removeSource,args:[e]}),n[e]=!0}function He(e,t,n,i){qe(e,n,i),Ue(e,t,n)}function We(e,n,i){let r;for(r in e[i])if(e[i].hasOwnProperty(r)&&"data"!==r&&!t(e[i][r],n[i][r]))return!1;for(r in n[i])if(n[i].hasOwnProperty(r)&&"data"!==r&&!t(e[i][r],n[i][r]))return!1;return!0}function Ge(e,n,i,r,o,s){let a;for(a in n=n||{},e=e||{})e.hasOwnProperty(a)&&(t(e[a],n[a])||i.push({command:s,args:[r,a,n[a],o]}));for(a in n)n.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(t(e[a],n[a])||i.push({command:s,args:[r,a,n[a],o]}))}function Ze(e){return e.id}function Xe(e,t){return e[t.id]=t,e}class Ke{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(t){if(1===this.points.length)return this.points[0];t=e.clamp(t,0,1);let n=1,i=this._distances[n];const r=t*this.paddedLength+this.padding;for(;i<r&&n<this._distances.length;)i=this._distances[++n];const o=n-1,s=this._distances[o],a=i-s,l=a>0?(r-s)/a:0;return this.points[o].mult(1-l).add(this.points[n].mult(l))}}class Ye{constructor(e,t,n){const i=this.boxCells=[],r=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(let o=0;o<this.xCellCount*this.yCellCount;o++)i.push([]),r.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}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(e,t,n,i,r){this._forEachCell(t,n,i,r,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(r)}insertCircle(e,t,n,i){this._forEachCell(t-i,n-i,t+i,n+i,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(i)}_insertBoxCell(e,t,n,i,r,o){this.boxCells[r].push(o)}_insertCircleCell(e,t,n,i,r,o){this.circleCells[r].push(o)}_query(e,t,n,i,r,o){if(n<0||e>this.width||i<0||t>this.height)return!r&&[];const s=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=i){if(r)return!0;for(let e=0;e<this.boxKeys.length;e++)s.push({key:this.boxKeys[e],x1:this.bboxes[4*e],y1:this.bboxes[4*e+1],x2:this.bboxes[4*e+2],y2:this.bboxes[4*e+3]});for(let e=0;e<this.circleKeys.length;e++){const t=this.circles[3*e],n=this.circles[3*e+1],i=this.circles[3*e+2];s.push({key:this.circleKeys[e],x1:t-i,y1:n-i,x2:t+i,y2:n+i})}return o?s.filter(o):s}return this._forEachCell(e,t,n,i,this._queryCell,s,{hitTest:r,seenUids:{box:{},circle:{}}},o),r?s.length>0:s}_queryCircle(e,t,n,i,r){const o=e-n,s=e+n,a=t-n,l=t+n;if(s<0||o>this.width||l<0||a>this.height)return!i&&[];const c=[];return this._forEachCell(o,a,s,l,this._queryCellCircle,c,{hitTest:i,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}},r),i?c.length>0:c}query(e,t,n,i,r){return this._query(e,t,n,i,!1,r)}hitTest(e,t,n,i,r){return this._query(e,t,n,i,!0,r)}hitTestCircle(e,t,n,i){return this._queryCircle(e,t,n,!0,i)}_queryCell(e,t,n,i,r,o,s,a){const l=s.seenUids,c=this.boxCells[r];if(null!==c){const r=this.bboxes;for(const u of c)if(!l.box[u]){l.box[u]=!0;const c=4*u;if(e<=r[c+2]&&t<=r[c+3]&&n>=r[c+0]&&i>=r[c+1]&&(!a||a(this.boxKeys[u]))){if(s.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[u],x1:r[c],y1:r[c+1],x2:r[c+2],y2:r[c+3]})}}}const u=this.circleCells[r];if(null!==u){const r=this.circles;for(const c of u)if(!l.circle[c]){l.circle[c]=!0;const u=3*c;if(this._circleAndRectCollide(r[u],r[u+1],r[u+2],e,t,n,i)&&(!a||a(this.circleKeys[c]))){if(s.hitTest)return o.push(!0),!0;{const e=r[u],t=r[u+1],n=r[u+2];o.push({key:this.circleKeys[c],x1:e-n,y1:t-n,x2:e+n,y2:t+n})}}}}}_queryCellCircle(e,t,n,i,r,o,s,a){const l=s.circle,c=s.seenUids,u=this.boxCells[r];if(null!==u){const e=this.bboxes;for(const t of u)if(!c.box[t]){c.box[t]=!0;const n=4*t;if(this._circleAndRectCollide(l.x,l.y,l.radius,e[n+0],e[n+1],e[n+2],e[n+3])&&(!a||a(this.boxKeys[t])))return o.push(!0),!0}}const h=this.circleCells[r];if(null!==h){const e=this.circles;for(const t of h)if(!c.circle[t]){c.circle[t]=!0;const n=3*t;if(this._circlesCollide(e[n],e[n+1],e[n+2],l.x,l.y,l.radius)&&(!a||a(this.circleKeys[t])))return o.push(!0),!0}}}_forEachCell(e,t,n,i,r,o,s,a){const l=this._convertToXCellCoord(e),c=this._convertToYCellCoord(t),u=this._convertToXCellCoord(n),h=this._convertToYCellCoord(i);for(let d=l;d<=u;d++)for(let l=c;l<=h;l++)if(r.call(this,e,t,n,i,this.xCellCount*l+d,o,s,a))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,n,i,r,o){const s=i-e,a=r-t,l=n+o;return l*l>s*s+a*a}_circleAndRectCollide(e,t,n,i,r,o,s){const a=(o-i)/2,l=Math.abs(e-(i+a));if(l>a+n)return!1;const c=(s-r)/2,u=Math.abs(t-(r+c));if(u>c+n)return!1;if(l<=a||u<=c)return!0;const h=l-a,d=u-c;return h*h+d*d<=n*n}}const Je={unknown:0,flipRequired:1,flipNotRequired:2},Qe=Math.tan(85*Math.PI/180);function et(t,n,i,r,o,s,a){const l=e.create();if(i)if("globe"===s.name){const t=e.calculateGlobeLabelMatrix(o,n);e.multiply(l,l,t)}else{const t=y([],a);l[0]=t[0],l[1]=t[1],l[4]=t[2],l[5]=t[3],r||e.rotateZ(l,l,o.angle)}else e.multiply(l,o.labelPlaneMatrix,t);return l}function tt(e,t,n,i,r,o,s){const a=et(e,t,n,i,r,o,s);return"globe"===o.name&&n||(a[2]=a[6]=a[10]=a[14]=0),a}function nt(t,n,i,r,o,s,a){if(i){if("globe"===s.name){const l=et(t,n,i,r,o,s,a);return e.invert(l,l),e.multiply(l,t,l),l}{const n=e.clone(t),i=e.identity([]);return i[0]=a[0],i[1]=a[1],i[4]=a[2],i[5]=a[3],e.multiply(n,n,i),r||e.rotateZ(n,n,-o.angle),n}}return o.glCoordMatrix}function it(t,n,i,r){const o=[t,n,i,1];i?e.transformMat4$1(o,o,r):ft(o,o,r);const s=o[3];return o[0]/=s,o[1]/=s,o[2]/=s,o}function rt(e,t){return Math.min(.5+e/t*.5,1.5)}function ot(e,t){const n=e[0]/e[3],i=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&i>=-t[1]&&i<=t[1]}function st(t,n,i,r,o,s,a,l,c,u){const h=i.transform,d=r?t.textSizeData:t.iconSizeData,p=e.evaluateSizeForZoom(d,i.transform.zoom),f="globe"===h.projection.name,m=[256/i.width*2+1,256/i.height*2+1],g=r?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;g.clear();let v=null;f&&(v=r?t.text.globeExtVertexArray:t.icon.globeExtVertexArray);const y=t.lineVertexArray,_=r?t.text.placedSymbolArray:t.icon.placedSymbolArray,b=i.transform.width/i.transform.height;let x,w=!1;for(let C=0;C<_.length;C++){const r=_.get(C),{numGlyphs:f,writingMode:k}=r;if(k!==e.WritingMode.vertical||w||x===e.WritingMode.horizontal||(w=!0),x=k,(r.hidden||k===e.WritingMode.vertical)&&!w){pt(f,g);continue}w=!1;const S=new e.Point(r.tileAnchorX,r.tileAnchorY);let{x:E,y:T,z:M}=h.projection.projectTilePoint(S.x,S.y,u.canonical);if(c){const[e,t,n]=c(S);E+=e,T+=t,M+=n}const A=[E,T,M,1];if(e.transformMat4$1(A,A,n),!ot(A,m)){pt(f,g);continue}const O=rt(i.transform.cameraToCenterDistance,A[3]),I=e.evaluateSizeForFeature(d,p,r),D=a?I/O:I*O,P=it(E,T,M,o);if(P[3]<=0){pt(f,g);continue}let z={};const L=a?null:c,B=ct(r,D,!1,l,n,o,s,t.glyphOffsetArray,y,g,v,P,S,z,b,L,h.projection,u,a);w=B.useVertical,L&&B.needsFlipping&&(z={}),(B.notEnoughRoom||w||B.needsFlipping&&ct(r,D,!0,l,n,o,s,t.glyphOffsetArray,y,g,v,P,S,z,b,L,h.projection,u,a).notEnoughRoom)&&pt(f,g)}r?(t.text.dynamicLayoutVertexBuffer.updateData(g),v&&t.text.globeExtVertexBuffer.updateData(v)):(t.icon.dynamicLayoutVertexBuffer.updateData(g),v&&t.icon.globeExtVertexBuffer.updateData(v))}function at(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f,m){const{lineStartIndex:g,glyphStartIndex:v,segment:y}=a,_=v+a.numGlyphs,b=g+a.lineLength,x=t.getoffsetX(v),w=t.getoffsetX(_-1),C=dt(e*x,n,i,r,o,s,y,g,b,l,c,u,h,d,!0,p,f,m);if(!C)return null;const k=dt(e*w,n,i,r,o,s,y,g,b,l,c,u,h,d,!0,p,f,m);return k?{first:C,last:k}:null}function lt(t,n,i,r){return t===e.WritingMode.horizontal&&Math.abs(r)>Math.abs(i)?{useVertical:!0}:t===e.WritingMode.vertical?r>0?{needsFlipping:!0}:null:n!==Je.unknown&&function(e,t){return 0===e||Math.abs(t/e)>Qe}(i,r)?n===Je.flipRequired?{needsFlipping:!0}:null:i<0?{needsFlipping:!0}:null}function ct(t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v,y,_){const b=n/24,x=t.lineOffsetX*b,w=t.lineOffsetY*b,{lineStartIndex:C,glyphStartIndex:k,numGlyphs:S,segment:E,writingMode:T,flipState:M}=t,A=C+t.lineLength,O=t=>{if(h){const[n,i,r]=t.up,o=u.length;e.updateGlobeVertexNormal(h,o+0,n,i,r),e.updateGlobeVertexNormal(h,o+1,n,i,r),e.updateGlobeVertexNormal(h,o+2,n,i,r),e.updateGlobeVertexNormal(h,o+3,n,i,r)}const[n,i,r]=t.point;e.addDynamicAttributes(u,n,i,r,t.angle)};if(S>1){const e=at(b,l,x,w,i,d,p,t,c,s,f,g,!1,v,y,_);if(!e)return{notEnoughRoom:!0};if(r&&!i){let[n,i,r]=e.first.point,[o,s,l]=e.last.point;[n,i]=it(n,i,r,a),[o,s]=it(o,s,l,a);const c=lt(T,M,(o-n)*m,s-i);if(t.flipState=c&&c.needsFlipping?Je.flipRequired:Je.flipNotRequired,c)return c}O(e.first);for(let t=k+1;t<k+S-1;t++){const e=dt(b*l.getoffsetX(t),x,w,i,d,p,E,C,A,c,s,f,g,!1,!1,v,y,_);if(!e)return u.length-=4*(t-k),{notEnoughRoom:!0};O(e)}O(e.last)}else{if(r&&!i){const n=it(p.x,p.y,0,o),i=C+E+1,r=new e.Point(c.getx(i),c.gety(i)),s=it(r.x,r.y,0,o),a=s[3]>0?s:ht(p,r,n,1,o,void 0,v,y.canonical),l=lt(T,M,(a[0]-n[0])*m,a[1]-n[1]);if(t.flipState=l&&l.needsFlipping?Je.flipRequired:Je.flipNotRequired,l)return l}const n=dt(b*l.getoffsetX(k),x,w,i,d,p,E,C,A,c,s,f,g,!1,!1,v,y,_);if(!n)return{notEnoughRoom:!0};O(n)}return{}}function ut(e,t,n,i,r){const{x:o,y:s,z:a}=i.projectTilePoint(e.x,e.y,t);if(!r)return it(o,s,a,n);const[l,c,u]=r(e);return it(o+l,s+c,a+u,n)}function ht(t,n,i,r,o,s,a,l){const c=ut(t.sub(n)._unit()._add(t),l,o,a,s);return e.sub(c,i,c),e.normalize(c,c),e.scaleAndAdd(c,i,c,r)}function dt(t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v,y){const _=r?t-n:t+n;let b=_>0?1:-1,x=0;r&&(b*=-1,x=Math.PI),b<0&&(x+=Math.PI);let w=l+a+(b>0?0:1)|0,C=o,k=o,S=0,E=0;const T=Math.abs(_),M=[],A=[];let O=s,I=O;const D=()=>ht(I,O,k,T-S+1,h,p,g,v.canonical);for(;S+E<=T;){if(w+=b,w<l||w>=c)return null;if(k=C,I=O,M.push(k),f&&A.push(I),O=new e.Point(u.getx(w),u.gety(w)),C=d[w],!C){const e=ut(O,v.canonical,h,g,p);C=e[3]>0?d[w]=e:D()}S+=E,E=e.distance(k,C)}m&&p&&(d[w]&&(C=D(),E=e.distance(k,C)),d[w]=C);const P=(T-S)/E,z=O.sub(I)._mult(P)._add(I),L=e.sub([],C,k),B=e.scaleAndAdd([],k,L,P);let F=[0,0,1],R=L[0],$=L[1];if(y&&(F=g.upVector(v.canonical,z.x,z.y),0!==F[0]||0!==F[1]||1!==F[2])){const t=[F[2],0,-F[0]],n=e.cross([],F,t);e.normalize(t,t),e.normalize(n,n),R=e.dot(L,t),$=e.dot(L,n)}if(i){const t=e.cross([],F,L);e.normalize(t,t),e.scaleAndAdd(B,B,t,i*b)}const N=x+Math.atan2($,R);return M.push(B),f&&A.push(z),{point:B,angle:N,path:M,tilePath:A,up:F}}function pt(e,t){const n=t.length,i=n+4*e;t.resize(i),t.float32.fill(-1/0,4*n,4*i)}function ft(e,t,n){const i=t[0],r=t[1];return e[0]=n[0]*i+n[4]*r+n[12],e[1]=n[1]*i+n[5]*r+n[13],e[3]=n[3]*i+n[7]*r+n[15],e}const mt=100;class gt{constructor(e,t,n=new Ye(e.width+200,e.height+200,25),i=new Ye(e.width+200,e.height+200,25)){this.transform=e,this.grid=n,this.ignoredGrid=i,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+mt,this.screenBottomBoundary=e.height+mt,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.fogState=t}placeCollisionBox(e,t,n,i,r,o,s,a){let l=n.projectedAnchorX,c=n.projectedAnchorY,u=n.projectedAnchorZ;const h=n.elevation,d=n.tileID,p=e.getProjection();if(h&&d){const[e,t,i]=p.upVector(d.canonical,n.tileAnchorX,n.tileAnchorY),r=p.upVectorScale(d.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;l+=e*h*r,c+=t*h*r,u+=i*h*r}const f=this.projectAndGetPerspectiveRatio(s,l,c,u,n.tileID,"globe"===p.name||!!h||this.transform.pitch>0,p),m=o*f.perspectiveRatio,g=(n.x1*t+i.x-n.padding)*m+f.point.x,v=(n.y1*t+i.y-n.padding)*m+f.point.y,y=(n.x2*t+i.x+n.padding)*m+f.point.x,_=(n.y2*t+i.y+n.padding)*m+f.point.y,b=f.perspectiveRatio<=.55||f.occluded;return!this.isInsideGrid(g,v,y,_)||!r&&this.grid.hitTest(g,v,y,_,a)||b?{box:[],offscreen:!1,occluded:f.occluded}:{box:[g,v,y,_],offscreen:this.isOffscreen(g,v,y,_),occluded:!1}}placeCollisionCircles(t,n,i,r,o,s,a,l,c,u,h,d,p,f,m){const g=[],v=this.transform.elevation,y=t.getProjection(),_=v?v.getAtTileOffsetFunc(m,this.transform.center.lat,this.transform.worldSize,y):null,b=new e.Point(i.tileAnchorX,i.tileAnchorY);let{x:x,y:w,z:C}=y.projectTilePoint(b.x,b.y,m.canonical);if(_){const[e,t,n]=_(b);x+=e,w+=t,C+=n}const k="globe"===y.name,S=this.projectAndGetPerspectiveRatio(a,x,w,C,m,k||!!v||this.transform.pitch>0,y),{perspectiveRatio:E}=S,T=(h?s/E:s*E)/e.ONE_EM,M=it(x,w,C,l),A=S.signedDistanceFromCamera>0?at(T,o,i.lineOffsetX*T,i.lineOffsetY*T,!1,M,b,i,r,l,{},v&&!h?_:null,h&&!!v,y,m,h):null;let O=!1,I=!1,D=!0;if(A&&!S.occluded){const t=.5*p*E+f,i=new e.Point(-100,-100),r=new e.Point(this.screenRightBoundary,this.screenBottomBoundary),o=new Ke,{first:s,last:a}=A,l=s.path.length;let h=[];for(let e=l-1;e>=1;e--)h.push(s.path[e]);for(let e=1;e<a.path.length;e++)h.push(a.path[e]);const m=2.5*t;c&&(h=h.map((([e,t,n],i)=>(_&&!k&&(n=_(i<l-1?s.tilePath[l-1-i]:a.tilePath[i-l+2])[2]),it(e,t,n,c)))),h.some((e=>e[3]<=0))&&(h=[]));let v=[];if(h.length>0){let t=1/0,n=-1/0,o=1/0,s=-1/0;for(const e of h)t=Math.min(t,e[0]),o=Math.min(o,e[1]),n=Math.max(n,e[0]),s=Math.max(s,e[1]);n>=i.x&&t<=r.x&&s>=i.y&&o<=r.y&&(v=[h.map((t=>new e.Point(t[0],t[1])))],(t<i.x||n>r.x||o<i.y||s>r.y)&&(v=e.clipLine(v,i.x,i.y,r.x,r.y)))}for(const e of v){o.reset(e,.25*t);let i=0;i=o.length<=.5*t?1:Math.ceil(o.paddedLength/m)+1;for(let e=0;e<i;e++){const r=e/Math.max(i-1,1),s=o.lerp(r),a=s.x+mt,l=s.y+mt;g.push(a,l,t,0);const c=a-t,h=l-t,p=a+t,f=l+t;if(D=D&&this.isOffscreen(c,h,p,f),I=I||this.isInsideGrid(c,h,p,f),!n&&this.grid.hitTestCircle(a,l,t,d)&&(O=!0,!u))return{circles:[],offscreen:!1,collisionDetected:O,occluded:!1}}}}return{circles:!u&&O||!I?[]:g,offscreen:D,collisionDetected:O,occluded:S.occluded}}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const n=[];let i=1/0,r=1/0,o=-1/0,s=-1/0;for(const u of t){const t=new e.Point(u.x+mt,u.y+mt);i=Math.min(i,t.x),r=Math.min(r,t.y),o=Math.max(o,t.x),s=Math.max(s,t.y),n.push(t)}const a=this.grid.query(i,r,o,s).concat(this.ignoredGrid.query(i,r,o,s)),l={},c={};for(const u of a){const t=u.key;if(void 0===l[t.bucketInstanceId]&&(l[t.bucketInstanceId]={}),l[t.bucketInstanceId][t.featureIndex])continue;const i=[new e.Point(u.x1,u.y1),new e.Point(u.x2,u.y1),new e.Point(u.x2,u.y2),new e.Point(u.x1,u.y2)];e.polygonIntersectsPolygon(n,i)&&(l[t.bucketInstanceId][t.featureIndex]=!0,void 0===c[t.bucketInstanceId]&&(c[t.bucketInstanceId]=[]),c[t.bucketInstanceId].push(t.featureIndex))}return c}insertCollisionBox(e,t,n,i,r){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:i,collisionGroupID:r},e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,n,i,r){const o=t?this.ignoredGrid:this.grid,s={bucketInstanceId:n,featureIndex:i,collisionGroupID:r};for(let a=0;a<e.length;a+=4)o.insertCircle(s,e[a],e[a+1],e[a+2])}projectAndGetPerspectiveRatio(t,n,i,r,o,s,a){const l=[n,i,r,1];let c=!1;if(r||this.transform.pitch>0){if(e.transformMat4$1(l,l,t),this.fogState&&o&&"globe"!==a.name){const t=function(t,n,i,r,o,s){const a=s.calculateFogTileMatrix(o),l=[n,i,r];return e.transformMat4(l,l,a),S(t,l,s.pitch,s._fov)}(this.fogState,n,i,r,o.toUnwrapped(),this.transform);c=t>.9}}else ft(l,l,t);const u=l[3];return{point:new e.Point((l[0]/u+1)/2*this.transform.width+mt,(-l[1]/u+1)/2*this.transform.height+mt),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(a)/u*.5,1.5),signedDistanceFromCamera:u,occluded:s&&l[2]>u||c}}isOffscreen(e,t,n,i){return n<mt||e>=this.screenRightBoundary||i<mt||t>this.screenBottomBoundary}isInsideGrid(e,t,n,i){return n>=0&&e<this.gridRightBoundary&&i>=0&&t<this.gridBottomBoundary}getViewportMatrix(){const t=e.identity([]);return e.translate(t,t,[-100,-100,0]),t}}function vt(t,n,i){const r=n.createTileMatrix(t,t.worldSize,i.toUnwrapped());return e.multiply(new Float32Array(16),t.projMatrix,r)}function yt(e,t,n){if(t.projection.name===n.projection.name)return e.projMatrix;const i=n.clone();return i.setProjection(t.projection),vt(i,t.getProjection(),e)}function _t(e,t,n){return t.name===n.projection.name?e.projMatrix:vt(n,t,e)}class bt{constructor(e,t,n,i){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):i&&n?1:0,this.placed=n}isHidden(){return 0===this.opacity&&!this.placed}}class xt{constructor(e,t,n,i,r,o=!1){this.text=new bt(e?e.text:null,t,n,r),this.icon=new bt(e?e.icon:null,t,i,r),this.clipped=o}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class wt{constructor(e,t,n,i=!1){this.text=e,this.icon=t,this.skipFade=n,this.clipped=i}}class Ct{constructor(){this.invProjMatrix=e.create(),this.viewportMatrix=e.create(),this.circles=[]}}class kt{constructor(e,t,n,i,r){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=i,this.tileID=r}}class St{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){const t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:e=>e.collisionGroupID===t}}return this.collisionGroups[e]}}function Et(t,n,i,r,o){const{horizontalAlign:s,verticalAlign:a}=e.getAnchorAlignment(t),l=-(s-.5)*n,c=-(a-.5)*i,u=e.evaluateVariableOffset(t,r);return new e.Point(l+u[0]*o,c+u[1]*o)}function Tt(t,n,i,r,o){const s=new e.Point(t,n);return i&&s._rotate(r?o:-o),s}class Mt{constructor(e,t,n,i,r){this.transform=e.clone(),this.projection=e.projection.name,this.collisionIndex=new gt(this.transform,r),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new St(n),this.collisionCircleArrays={},this.prevPlacement=i,i&&(i.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,n,i,r){const o=i.getBucket(n),s=i.latestFeatureIndex;if(!o||!s||n.id!==o.layerIds[0])return;const a=o.layers[0].layout,l=i.collisionBoxArray,c=Math.pow(2,this.transform.zoom-i.tileID.overscaledZ),u=i.tileSize/e.EXTENT,h=i.tileID.toUnwrapped();this.transform.setProjection(o.projection);const d=(p=i.tileID,f=o.getProjection(),m=this.transform,f.name===this.projection?m.calculateProjMatrix(p.toUnwrapped()):vt(m,f,p));var p,f,m;const g="map"===a.get("text-pitch-alignment"),v="map"===a.get("text-rotation-alignment");n.compileFilter();const y=n.dynamicFilter(),_=n.dynamicFilterNeedsFeature(),b=this.transform.calculatePixelsToTileUnitsMatrix(i),x=tt(d,i.tileID.canonical,g,v,this.transform,o.getProjection(),b);let w=null;if(g){const t=nt(d,i.tileID.canonical,g,v,this.transform,o.getProjection(),b);w=e.multiply([],this.transform.labelPlaneMatrix,t)}let C=null;y&&i.latestFeatureIndex&&(C={unwrappedTileID:h,dynamicFilter:y,dynamicFilterNeedsFeature:_,featureIndex:i.latestFeatureIndex}),this.retainedQueryData[o.bucketInstanceId]=new kt(o.bucketInstanceId,s,o.sourceLayerIndex,o.index,i.tileID);const k={bucket:o,layout:a,posMatrix:d,textLabelPlaneMatrix:x,labelToScreenMatrix:w,clippingData:C,scale:c,textPixelRatio:u,holdingForFade:i.holdingForFade(),collisionBoxArray:l,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(o.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:e.evaluateSizeForZoom(o.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(r)for(const e of o.sortKeyRanges){const{sortKey:n,symbolInstanceStart:i,symbolInstanceEnd:r}=e;t.push({sortKey:n,symbolInstanceStart:i,symbolInstanceEnd:r,parameters:k})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:k})}attemptAnchorPlacement(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v){const{textOffset0:y,textOffset1:_,crossTileID:b}=h,x=[y,_],w=Et(e,n,i,x,r),C=this.collisionIndex.placeCollisionBox(p,r,t,Tt(w.x,w.y,o,s,this.transform.angle),u,a,l,c.predicate);if(m){const e=p.getSymbolInstanceIconSize(v,this.transform.zoom,h.placedIconSymbolIndex);if(0===this.collisionIndex.placeCollisionBox(p,e,m,Tt(w.x,w.y,o,s,this.transform.angle),u,a,l,c.predicate).box.length)return}if(C.box.length>0){let t;return this.prevPlacement&&this.prevPlacement.variableOffsets[b]&&this.prevPlacement.placements[b]&&this.prevPlacement.placements[b].text&&(t=this.prevPlacement.variableOffsets[b].anchor),this.variableOffsets[b]={textOffset:x,width:n,height:i,anchor:e,textScale:r,prevAnchor:t},this.markUsedJustification(p,e,h,f),p.allowVerticalPlacement&&(this.markUsedOrientation(p,f,h),this.placedOrientations[b]=f),{shift:w,placedGlyphBoxes:C}}}placeLayerBucketPart(t,n,i,r){const{bucket:o,layout:s,posMatrix:a,textLabelPlaneMatrix:l,labelToScreenMatrix:c,clippingData:u,textPixelRatio:h,holdingForFade:d,collisionBoxArray:p,partiallyEvaluatedTextSize:f,partiallyEvaluatedIconSize:m,collisionGroup:g}=t.parameters,v=s.get("text-optional"),y=s.get("icon-optional"),_=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),x="map"===s.get("text-rotation-alignment"),w="map"===s.get("text-pitch-alignment"),C="none"!==s.get("icon-text-fit"),k="viewport-y"===s.get("symbol-z-order");this.transform.setProjection(o.projection);let S=_&&(b||!o.hasIconData()||y),E=b&&(_||!o.hasTextData()||v);!o.collisionArrays&&p&&o.deserializeCollisionBoxes(p),i&&r&&o.updateCollisionDebugBuffers(this.transform.zoom,p);const T=(t,r,p)=>{const{crossTileID:k,numVerticalGlyphVertices:T}=t;if(u){const i={zoom:this.transform.zoom,pitch:this.transform.pitch};let r=null;if(u.dynamicFilterNeedsFeature){const e=this.retainedQueryData[o.bucketInstanceId];r=u.featureIndex.loadFeature({featureIndex:t.featureIndex,bucketIndex:e.bucketIndex,sourceLayerIndex:e.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,u.dynamicFilter)(i,r,this.retainedQueryData[o.bucketInstanceId].tileID.canonical,new e.Point(t.tileAnchorX,t.tileAnchorY),this.transform.calculateDistanceTileData(u.unwrappedTileID)))return this.placements[k]=new wt(!1,!1,!1,!0),void n.add(k)}if(n.has(k))return;if(d)return void(this.placements[k]=new wt(!1,!1,!1));let M=!1,A=!1,O=!0,I=!1,D=!1,P=null,z={box:null,offscreen:null,occluded:null},L={box:null,offscreen:null,occluded:null},B=null,F=null,R=null,$=0,N=0,j=0;p.textFeatureIndex?$=p.textFeatureIndex:t.useRuntimeCollisionCircles&&($=t.featureIndex),p.verticalTextFeatureIndex&&(N=p.verticalTextFeatureIndex);const V=e=>{e.tileID=this.retainedQueryData[o.bucketInstanceId].tileID;const t=this.transform.elevation;(t||e.elevation)&&(e.elevation=t?t.getAtTileOffset(e.tileID,e.tileAnchorX,e.tileAnchorY):0)},U=p.textBox;if(U){V(U);const n=n=>{let i=e.WritingMode.horizontal;if(o.allowVerticalPlacement&&!n&&this.prevPlacement){const e=this.prevPlacement.placedOrientations[k];e&&(this.placedOrientations[k]=e,i=e,this.markUsedOrientation(o,i,t))}return i},i=(t,n)=>{if(o.allowVerticalPlacement&&T>0&&p.verticalTextBox){for(const i of o.writingModes)if(i===e.WritingMode.vertical?(z=n(),L=z):z=t(),z&&z.box&&z.box.length)break}else z=t()};if(s.get("text-variable-anchor")){let l=s.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[k]){const e=this.prevPlacement.variableOffsets[k];l.indexOf(e.anchor)>0&&(l=l.filter((t=>t!==e.anchor)),l.unshift(e.anchor))}const c=(e,n,i)=>{const s=o.getSymbolInstanceTextSize(f,t,this.transform.zoom,r),c=(e.x2-e.x1)*s+2*e.padding,u=(e.y2-e.y1)*s+2*e.padding,d=C&&!b?n:null;d&&V(d);let p={box:[],offscreen:!1,occluded:!1};const v=_?2*l.length:l.length;for(let y=0;y<v;++y){const n=this.attemptAnchorPlacement(l[y%l.length],e,c,u,s,x,w,h,a,g,y>=l.length,t,r,o,i,d,f,m);if(n&&(p=n.placedGlyphBoxes,p&&p.box&&p.box.length)){M=!0,P=n.shift;break}}return p};i((()=>c(U,p.iconBox,e.WritingMode.horizontal)),(()=>{const t=p.verticalTextBox;return t&&V(t),o.allowVerticalPlacement&&!(z&&z.box&&z.box.length)&&T>0&&t?c(t,p.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null,occluded:null}})),z&&(M=z.box,O=z.offscreen,I=z.occluded);const u=n(!(!z||!z.box));if(!M&&this.prevPlacement){const e=this.prevPlacement.variableOffsets[k];e&&(this.variableOffsets[k]=e,this.markUsedJustification(o,e.anchor,t,u))}}else{const s=(n,i)=>{const s=o.getSymbolInstanceTextSize(f,t,this.transform.zoom,r),l=this.collisionIndex.placeCollisionBox(o,s,n,new e.Point(0,0),_,h,a,g.predicate);return l&&l.box&&l.box.length&&(this.markUsedOrientation(o,i,t),this.placedOrientations[k]=i),l};i((()=>s(U,e.WritingMode.horizontal)),(()=>{const t=p.verticalTextBox;return o.allowVerticalPlacement&&T>0&&t?(V(t),s(t,e.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}})),n(!!(z&&z.box&&z.box.length))}}if(B=z,M=B&&B.box&&B.box.length>0,O=B&&B.offscreen,I=B&&B.occluded,t.useRuntimeCollisionCircles){const n=o.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex),r=e.evaluateSizeForFeature(o.textSizeData,f,n),u=s.get("text-padding");F=this.collisionIndex.placeCollisionCircles(o,_,n,o.lineVertexArray,o.glyphOffsetArray,r,a,l,c,i,w,g.predicate,t.collisionCircleDiameter*r/e.ONE_EM,u,this.retainedQueryData[o.bucketInstanceId].tileID),M=_||F.circles.length>0&&!F.collisionDetected,O=O&&F.offscreen,I=F.occluded}if(p.iconFeatureIndex&&(j=p.iconFeatureIndex),p.iconBox){const n=n=>{V(n);const i=C&&P?Tt(P.x,P.y,x,w,this.transform.angle):new e.Point(0,0),r=o.getSymbolInstanceIconSize(m,this.transform.zoom,t.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(o,r,n,i,b,h,a,g.predicate)};L&&L.box&&L.box.length&&p.verticalIconBox?(R=n(p.verticalIconBox),A=R.box.length>0):(R=n(p.iconBox),A=R.box.length>0),O=O&&R.offscreen,D=R.occluded}const q=v||0===t.numHorizontalGlyphVertices&&0===T,H=y||0===t.numIconVertices;if(q||H?H?q||(A=A&&M):M=A&&M:A=M=A&&M,M&&B&&B.box&&this.collisionIndex.insertCollisionBox(B.box,s.get("text-ignore-placement"),o.bucketInstanceId,L&&L.box&&N?N:$,g.ID),A&&R&&this.collisionIndex.insertCollisionBox(R.box,s.get("icon-ignore-placement"),o.bucketInstanceId,j,g.ID),F&&(M&&this.collisionIndex.insertCollisionCircles(F.circles,s.get("text-ignore-placement"),o.bucketInstanceId,$,g.ID),i)){const e=o.bucketInstanceId;let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new Ct);for(let n=0;n<F.circles.length;n+=4)t.circles.push(F.circles[n+0]),t.circles.push(F.circles[n+1]),t.circles.push(F.circles[n+2]),t.circles.push(F.collisionDetected?1:0)}const W="globe"!==o.projection.name;S=S&&(W||!I),E=E&&(W||!D),this.placements[k]=new wt(M||S,A||E,O||o.justReloaded),n.add(k)};if(k){const e=o.getSortedSymbolIndexes(this.transform.angle);for(let t=e.length-1;t>=0;--t){const n=e[t];T(o.symbolInstances.get(n),n,o.collisionArrays[n])}}else for(let e=t.symbolInstanceStart;e<t.symbolInstanceEnd;e++)T(o.symbolInstances.get(e),e,o.collisionArrays[e]);if(i&&o.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[o.bucketInstanceId];e.invert(t.invProjMatrix,a),t.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1}markUsedJustification(t,n,i,r){const{leftJustifiedTextSymbolIndex:o,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:a,verticalPlacedTextSymbolIndex:l,crossTileID:c}=i,u=e.getAnchorJustification(n),h=r===e.WritingMode.vertical?l:"left"===u?o:"center"===u?s:"right"===u?a:-1;o>=0&&(t.text.placedSymbolArray.get(o).crossTileID=h>=0&&o!==h?0:c),s>=0&&(t.text.placedSymbolArray.get(s).crossTileID=h>=0&&s!==h?0:c),a>=0&&(t.text.placedSymbolArray.get(a).crossTileID=h>=0&&a!==h?0:c),l>=0&&(t.text.placedSymbolArray.get(l).crossTileID=h>=0&&l!==h?0:c)}markUsedOrientation(t,n,i){const r=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,o=n===e.WritingMode.vertical?n:0,{leftJustifiedTextSymbolIndex:s,centerJustifiedTextSymbolIndex:a,rightJustifiedTextSymbolIndex:l,verticalPlacedTextSymbolIndex:c}=i,u=t.text.placedSymbolArray;s>=0&&(u.get(s).placedOrientation=r),a>=0&&(u.get(a).placedOrientation=r),l>=0&&(u.get(l).placedOrientation=r),c>=0&&(u.get(c).placedOrientation=o)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const i=t?t.symbolFadeChange(e):1,r=t?t.opacities:{},o=t?t.variableOffsets:{},s=t?t.placedOrientations:{};for(const a in this.placements){const e=this.placements[a],t=r[a];t?(this.opacities[a]=new xt(t,i,e.text,e.icon,null,e.clipped),n=n||e.text!==t.text.placed||e.icon!==t.icon.placed):(this.opacities[a]=new xt(null,i,e.text,e.icon,e.skipFade,e.clipped),n=n||e.text||e.icon)}for(const a in r){const e=r[a];if(!this.opacities[a]){const t=new xt(e,i,!1,!1);t.isHidden()||(this.opacities[a]=t,n=n||e.text.placed||e.icon.placed)}}for(const a in o)this.variableOffsets[a]||!this.opacities[a]||this.opacities[a].isHidden()||(this.variableOffsets[a]=o[a]);for(const a in s)this.placedOrientations[a]||!this.opacities[a]||this.opacities[a].isHidden()||(this.placedOrientations[a]=s[a]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){const n=new Set;for(const i of t){const t=i.getBucket(e);t&&i.latestFeatureIndex&&e.id===t.layerIds[0]&&this.updateBucketOpacities(t,n,i.collisionBoxArray)}}updateBucketOpacities(t,n,i){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const r=t.layers[0].layout,o=!!t.layers[0].dynamicFilter(),s=new xt(null,0,!1,!1,!0),a=r.get("text-allow-overlap"),l=r.get("icon-allow-overlap"),c=r.get("text-variable-anchor"),u="map"===r.get("text-rotation-alignment"),h="map"===r.get("text-pitch-alignment"),d="none"!==r.get("icon-text-fit"),p=new xt(null,0,a&&(l||!t.hasIconData()||r.get("icon-optional")),l&&(a||!t.hasTextData()||r.get("text-optional")),!0);!t.collisionArrays&&i&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(i);const f=(e,t,n)=>{for(let i=0;i<t/4;i++)e.opacityVertexArray.emplaceBack(n)};let m=0;for(let g=0;g<t.symbolInstances.length;g++){const i=t.symbolInstances.get(g),{numHorizontalGlyphVertices:r,numVerticalGlyphVertices:a,crossTileID:l,numIconVertices:v}=i,y=n.has(l);let _=this.opacities[l];y?_=s:_||(_=p,this.opacities[l]=_),n.add(l);const b=r>0||a>0,x=v>0,w=this.placedOrientations[l],C=w===e.WritingMode.vertical,k=w===e.WritingMode.horizontal||w===e.WritingMode.horizontalOnly;if(!b&&!x||_.isHidden()||m++,b){const e=Ft(_.text);f(t.text,r,C?Rt:e),f(t.text,a,k?Rt:e);const n=_.text.isHidden(),{leftJustifiedTextSymbolIndex:o,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:c,verticalPlacedTextSymbolIndex:u}=i,h=t.text.placedSymbolArray,d=n||C?1:0;o>=0&&(h.get(o).hidden=d),s>=0&&(h.get(s).hidden=d),c>=0&&(h.get(c).hidden=d),u>=0&&(h.get(u).hidden=n||k?1:0);const p=this.variableOffsets[l];p&&this.markUsedJustification(t,p.anchor,i,w);const m=this.placedOrientations[l];m&&(this.markUsedJustification(t,"left",i,m),this.markUsedOrientation(t,m,i))}if(x){const e=Ft(_.icon),{placedIconSymbolIndex:n,verticalPlacedIconSymbolIndex:r}=i,o=t.icon.placedSymbolArray,s=_.icon.isHidden()?1:0;n>=0&&(f(t.icon,v,C?Rt:e),o.get(n).hidden=s),r>=0&&(f(t.icon,i.numVerticalIconVertices,k?Rt:e),o.get(r).hidden=s)}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const n=t.collisionArrays[g];if(n){let i=new e.Point(0,0),r=!0;if(n.textBox||n.verticalTextBox){if(c){const e=this.variableOffsets[l];e?(i=Et(e.anchor,e.width,e.height,e.textOffset,e.textScale),u&&i._rotate(h?this.transform.angle:-this.transform.angle)):r=!1}o&&(r=!_.clipped),n.textBox&&At(t.textCollisionBox.collisionVertexArray,_.text.placed,!r||C,i.x,i.y),n.verticalTextBox&&At(t.textCollisionBox.collisionVertexArray,_.text.placed,!r||k,i.x,i.y)}const s=r&&Boolean(!k&&n.verticalIconBox);n.iconBox&&At(t.iconCollisionBox.collisionVertexArray,_.icon.placed,s,d?i.x:0,d?i.y:0),n.verticalIconBox&&At(t.iconCollisionBox.collisionVertexArray,_.icon.placed,!s,d?i.x:0,d?i.y:0)}}}if(t.fullyClipped=0===m,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.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){const n=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*n>e}setStale(){this.stale=!0}}function At(e,t,n,i,r){e.emplaceBack(t?1:0,n?1:0,i||0,r||0),e.emplaceBack(t?1:0,n?1:0,i||0,r||0),e.emplaceBack(t?1:0,n?1:0,i||0,r||0),e.emplaceBack(t?1:0,n?1:0,i||0,r||0)}const Ot=Math.pow(2,25),It=Math.pow(2,24),Dt=Math.pow(2,17),Pt=Math.pow(2,16),zt=Math.pow(2,9),Lt=Math.pow(2,8),Bt=Math.pow(2,1);function Ft(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*Ot+t*It+n*Dt+t*Pt+n*zt+t*Lt+n*Bt+t}const Rt=0;class $t{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(e,t,n,i,r){const o=this._bucketParts;for(;this._currentTileIndex<e.length;)if(t.getBucketParts(o,i,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,r())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort(((e,t)=>e.sortKey-t.sortKey)));this._currentPartIndex<o.length;){const e=o[this._currentPartIndex];if(t.placeLayerBucketPart(e,this._seenCrossTileIDs,n,0===e.symbolInstanceStart),this._currentPartIndex++,r())return!0}return!1}}class Nt{constructor(e,t,n,i,r,o,s,a){this.placement=new Mt(e,r,o,s,a),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=i,this._done=!1}isDone(){return this._done}continuePlacement(t,n,i){const r=e.exported.now(),o=()=>{const t=e.exported.now()-r;return!this._forceFullPlacement&&t>2};for(;this._currentPlacementIndex>=0;){const e=n[t[this._currentPlacementIndex]],r=this.placement.collisionIndex.transform.zoom;if("symbol"===e.type&&(!e.minzoom||e.minzoom<=r)&&(!e.maxzoom||e.maxzoom>r)){if(this._inProgressLayer||(this._inProgressLayer=new $t(e)),this._inProgressLayer.continuePlacement(i[e.source],this.placement,this._showCollisionBoxes,e,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}const jt=512/e.EXTENT/2;class Vt{constructor(t,n,i){this.tileID=t,this.bucketInstanceId=i,this.index=new e.KDBush(n.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];const r=t.canonical.x*e.EXTENT,o=t.canonical.y*e.EXTENT;for(let e=0;e<n.length;e++){const{key:t,crossTileID:i,tileAnchorX:s,tileAnchorY:a}=n.get(e),l=Math.floor((r+s)*jt),c=Math.floor((o+a)*jt);this.index.add(l,c),this.keys.push(t),this.crossTileIDs.push(i)}this.index.finish()}findMatches(t,n,i){const r=this.tileID.canonical.z<n.canonical.z?1:Math.pow(2,this.tileID.canonical.z-n.canonical.z),o=jt/Math.pow(2,n.canonical.z-this.tileID.canonical.z),s=n.canonical.x*e.EXTENT,a=n.canonical.y*e.EXTENT;for(let e=0;e<t.length;e++){const n=t.get(e);if(n.crossTileID)continue;const{key:l,tileAnchorX:c,tileAnchorY:u}=n,h=Math.floor((s+c)*o),d=Math.floor((a+u)*o),p=this.index.range(h-r,d-r,h+r,d+r);for(const e of p){const t=this.crossTileIDs[e];if(this.keys[e]===l&&!i.has(t)){i.add(t),n.crossTileID=t;break}}}}}class Ut{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class qt{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){const t=Math.round((e-this.lng)/360);if(0!==t)for(const n in this.indexes){const e=this.indexes[n],i={};for(const n in e){const r=e[n];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+t),i[r.tileID.key]=r}this.indexes[n]=i}this.lng=e}addBucket(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(let r=0;r<t.symbolInstances.length;r++)t.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]=new Set);const i=this.usedCrossTileIDs[e.overscaledZ];for(const r in this.indexes){const n=this.indexes[r];if(Number(r)>e.overscaledZ)for(const r in n){const o=n[r];o.tileID.isChildOf(e)&&o.findMatches(t.symbolInstances,e,i)}else{const o=n[e.scaledTo(Number(r)).key];o&&o.findMatches(t.symbolInstances,e,i)}}for(let r=0;r<t.symbolInstances.length;r++){const e=t.symbolInstances.get(r);e.crossTileID||(e.crossTileID=n.generate(),i.add(e.crossTileID))}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new Vt(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(const n of t.crossTileIDs)this.usedCrossTileIDs[e].delete(n)}removeStaleBuckets(e){let t=!1;for(const n in this.indexes){const i=this.indexes[n];for(const r in i)e[i[r].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,i[r]),delete i[r],t=!0)}return t}}class Ht{constructor(){this.layerIndexes={},this.crossTileIDs=new Ut,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,n,i){let r=this.layerIndexes[e.id];void 0===r&&(r=this.layerIndexes[e.id]=new qt);let o=!1;const s={};"globe"!==i.name&&r.handleWrapJump(n);for(const a of t){const t=a.getBucket(e);t&&e.id===t.layerIds[0]&&(t.bucketInstanceId||(t.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(a.tileID,t,this.crossTileIDs)&&(o=!0),s[t.bucketInstanceId]=!0)}return r.removeStaleBuckets(s)&&(o=!0),o}pruneUnusedLayers(e){const t={};e.forEach((e=>{t[e]=!0}));for(const n in this.layerIndexes)t[n]||delete this.layerIndexes[n]}}const Wt=(t,n)=>e.emitValidationErrors(t,n&&n.filter((e=>"source.canvas"!==e.identifier))),Gt=e.pick(Ve,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),Zt=e.pick(Ve,["setCenter","setZoom","setBearing","setPitch"]),Xt={version:8,layers:[],sources:{}},Kt={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class Yt extends e.Evented{constructor(t,n={}){super(),this.map=t,this.dispatcher=new A($e(),this),this.imageManager=new b,this.imageManager.setEventedParent(this),this.glyphManager=new e.GlyphManager(t._requestManager,n.localFontFamily?e.LocalGlyphMode.all:n.localIdeographFontFamily?e.LocalGlyphMode.ideographs:e.LocalGlyphMode.none,n.localFontFamily||n.localIdeographFontFamily),this.crossTileSymbolIndex=new Ht,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());const i=this;this._rtlTextPluginCallback=Yt.registerForPluginStateChange((t=>{i.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},((t,n)=>{if(e.triggerPluginCompletionEvent(t),n&&n.every((e=>e)))for(const e in i._sourceCaches){const t=i._sourceCaches[e],n=t.getSource().type;"vector"!==n&&"geojson"!==n||t.reload()}}))})),this.on("data",(e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.getSource(e.sourceId);if(t&&t.vectorLayerIds)for(const n in this._layers){const e=this._layers[n];e.source===t.id&&this._validateLayer(e)}}))}loadURL(t,n={}){this.fire(new e.Event("dataloading",{dataType:"style"}));const i="boolean"==typeof n.validate?n.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,n.accessToken);const r=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(r,((t,n)=>{this._request=null,t?this.fire(new e.ErrorEvent(t)):n&&this._load(n,i)}))}loadJSON(t,n={}){this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.exported.frame((()=>{this._request=null,this._load(t,!1!==n.validate)}))}loadEmpty(){this.fire(new e.Event("dataloading",{dataType:"style"})),this._load(Xt,!1)}_updateLayerCount(e,t){const n=t?1:-1;e.is3D()&&(this._num3DLayers+=n),"circle"===e.type&&(this._numCircleLayers+=n),"symbol"===e.type&&(this._numSymbolLayers+=n)}_load(t,n){if(n&&Wt(this,e.validateStyle(t)))return;this._loaded=!0,this.stylesheet=e.clone$1(t),this._updateMapProjection();for(const e in t.sources)this.addSource(e,t.sources[e],{validate:!1});this._changed=!1,t.sprite?this._loadSprite(t.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(t.glyphs);const i=je(this.stylesheet.layers);this._order=i.map((e=>e.id)),this._layers={},this._serializedLayers={};for(const r of i){const t=e.createStyleLayer(r);t.setEventedParent(this,{layer:{id:t.id}}),this._layers[t.id]=t,this._serializedLayers[t.id]=t.serialize(),this._updateLayerCount(t,!0)}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}setProjection(e){e?this.stylesheet.projection=e:delete this.stylesheet.projection,this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_updateMapProjection(){this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.stylesheet.projection)}_loadSprite(t){this._spriteRequest=function(t,n,i){let r,o,s;const a=e.exported.devicePixelRatio>1?"@2x":"";let l=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,a,".json"),e.ResourceType.SpriteJSON),((e,t)=>{l=null,s||(s=e,r=t,u())})),c=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,a,".png"),e.ResourceType.SpriteImage),((e,t)=>{c=null,s||(s=e,o=t,u())}));function u(){if(s)i(s);else if(r&&o){const t=e.exported.getImageData(o),n={};for(const i in r){const{width:o,height:s,x:a,y:l,sdf:c,pixelRatio:u,stretchX:h,stretchY:d,content:p}=r[i],f=new e.RGBAImage({width:o,height:s});e.RGBAImage.copy(t,f,{x:a,y:l},{x:0,y:0},{width:o,height:s}),n[i]={data:f,pixelRatio:u,sdf:c,stretchX:h,stretchY:d,content:p}}i(null,n)}}return{cancel(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(t,this.map._requestManager,((t,n)=>{if(this._spriteRequest=null,t)this.fire(new e.ErrorEvent(t));else if(n)for(const e in n)this.imageManager.addImage(e,n[e]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new e.Event("data",{dataType:"style"}))}))}_validateLayer(t){const n=this.getSource(t.source);if(!n)return;const i=t.sourceLayer;i&&("geojson"===n.type||n.vectorLayerIds&&-1===n.vectorLayerIds.indexOf(i))&&this.fire(new e.ErrorEvent(new Error(`Source layer "${i}" does not exist on source "${n.id}" as specified by style layer "${t.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(const e in this._sourceCaches)if(!this._sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(e){const t=[];for(const n of e){const e=this._layers[n];"custom"!==e.type&&t.push(e.serialize())}return t}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;if(this.fog&&this.fog.hasTransition())return!0;for(const e in this._sourceCaches)if(this._sourceCaches[e].hasTransition())return!0;for(const e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(e){return!!this.terrain&&("function"==typeof e.isLayerDraped?e.isLayerDraped():Kt[e.type])}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(t){if(!this._loaded)return;const n=this._changed;if(this._changed){const e=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);(e.length||n.length)&&this._updateWorkerLayers(e,n);for(const t in this._updatedSources){const e=this._updatedSources[t];"reload"===e?this._reloadSource(t):"clear"===e&&this._clearSource(t)}this._updateTilesForChangedImages();for(const i in this._updatedPaintProps)this._layers[i].updateTransitions(t);this.light.updateTransitions(t),this.fog&&this.fog.updateTransitions(t),this._resetUpdates()}const i={};for(const e in this._sourceCaches){const t=this._sourceCaches[e];i[e]=t.used,t.used=!1}for(const e of this._order){const n=this._layers[e];if(n.recalculate(t,this._availableImages),!n.isHidden(t.zoom)){const e=this._getLayerSourceCache(n);e&&(e.used=!0)}const i=this.map.painter;if(i){const e=n.getProgramIds();if(!e)continue;const r=n.getProgramConfiguration(t.zoom);for(const t of e)i.useProgram(t,r)}}for(const r in i){const t=this._sourceCaches[r];i[r]!==t.used&&t.getSource().fire(new e.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:t.getSource().id}))}this.light.recalculate(t),this.terrain&&this.terrain.recalculate(t),this.fog&&this.fog.recalculate(t),this.z=t.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),n&&this.fire(new e.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const e=Object.keys(this._changedImages);if(e.length){for(const t in this._sourceCaches)this._sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(n){if(this._checkLoaded(),Wt(this,e.validateStyle(n)))return!1;(n=e.clone$1(n)).layers=je(n.layers);const i=function(e,n){if(!e)return[{command:Ve.setStyle,args:[n]}];let i=[];try{if(!t(e.version,n.version))return[{command:Ve.setStyle,args:[n]}];t(e.center,n.center)||i.push({command:Ve.setCenter,args:[n.center]}),t(e.zoom,n.zoom)||i.push({command:Ve.setZoom,args:[n.zoom]}),t(e.bearing,n.bearing)||i.push({command:Ve.setBearing,args:[n.bearing]}),t(e.pitch,n.pitch)||i.push({command:Ve.setPitch,args:[n.pitch]}),t(e.sprite,n.sprite)||i.push({command:Ve.setSprite,args:[n.sprite]}),t(e.glyphs,n.glyphs)||i.push({command:Ve.setGlyphs,args:[n.glyphs]}),t(e.transition,n.transition)||i.push({command:Ve.setTransition,args:[n.transition]}),t(e.light,n.light)||i.push({command:Ve.setLight,args:[n.light]}),t(e.fog,n.fog)||i.push({command:Ve.setFog,args:[n.fog]}),t(e.projection,n.projection)||i.push({command:Ve.setProjection,args:[n.projection]});const r={},o=[];!function(e,n,i,r){let o;for(o in n=n||{},e=e||{})e.hasOwnProperty(o)&&(n.hasOwnProperty(o)||qe(o,i,r));for(o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];e.hasOwnProperty(o)?t(e[o],s)||("geojson"===e[o].type&&"geojson"===s.type&&We(e,n,o)?i.push({command:Ve.setGeoJSONSourceData,args:[o,s.data]}):He(o,n,i,r)):Ue(o,n,i)}}(e.sources,n.sources,o,r);const s=[];e.layers&&e.layers.forEach((e=>{e.source&&r[e.source]?i.push({command:Ve.removeLayer,args:[e.id]}):s.push(e)}));let a=e.terrain;a&&r[a.source]&&(i.push({command:Ve.setTerrain,args:[void 0]}),a=void 0),i=i.concat(o),t(a,n.terrain)||i.push({command:Ve.setTerrain,args:[n.terrain]}),function(e,n,i){n=n||[];const r=(e=e||[]).map(Ze),o=n.map(Ze),s=e.reduce(Xe,{}),a=n.reduce(Xe,{}),l=r.slice(),c=Object.create(null);let u,h,d,p,f,m,g;for(u=0,h=0;u<r.length;u++)d=r[u],a.hasOwnProperty(d)?h++:(i.push({command:Ve.removeLayer,args:[d]}),l.splice(l.indexOf(d,h),1));for(u=0,h=0;u<o.length;u++)d=o[o.length-1-u],l[l.length-1-u]!==d&&(s.hasOwnProperty(d)?(i.push({command:Ve.removeLayer,args:[d]}),l.splice(l.lastIndexOf(d,l.length-h),1)):h++,m=l[l.length-u],i.push({command:Ve.addLayer,args:[a[d],m]}),l.splice(l.length-u,0,d),c[d]=!0);for(u=0;u<o.length;u++)if(d=o[u],p=s[d],f=a[d],!c[d]&&!t(p,f))if(t(p.source,f.source)&&t(p["source-layer"],f["source-layer"])&&t(p.type,f.type)){for(g in Ge(p.layout,f.layout,i,d,null,Ve.setLayoutProperty),Ge(p.paint,f.paint,i,d,null,Ve.setPaintProperty),t(p.filter,f.filter)||i.push({command:Ve.setFilter,args:[d,f.filter]}),t(p.minzoom,f.minzoom)&&t(p.maxzoom,f.maxzoom)||i.push({command:Ve.setLayerZoomRange,args:[d,f.minzoom,f.maxzoom]}),p)p.hasOwnProperty(g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&(0===g.indexOf("paint.")?Ge(p[g],f[g],i,d,g.slice(6),Ve.setPaintProperty):t(p[g],f[g])||i.push({command:Ve.setLayerProperty,args:[d,g,f[g]]}));for(g in f)f.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&(0===g.indexOf("paint.")?Ge(p[g],f[g],i,d,g.slice(6),Ve.setPaintProperty):t(p[g],f[g])||i.push({command:Ve.setLayerProperty,args:[d,g,f[g]]}))}else i.push({command:Ve.removeLayer,args:[d]}),m=l[l.lastIndexOf(d)+1],i.push({command:Ve.addLayer,args:[f,m]})}(s,n.layers,i)}catch(e){console.warn("Unable to compute style diff:",e),i=[{command:Ve.setStyle,args:[n]}]}return i}(this.serialize(),n).filter((e=>!(e.command in Zt)));if(0===i.length)return!1;const r=i.filter((e=>!(e.command in Gt)));if(r.length>0)throw new Error(`Unimplemented: ${r.map((e=>e.command)).join(", ")}.`);return i.forEach((e=>{"setTransition"!==e.command&&"setProjection"!==e.command&&this[e.command].apply(this,e.args)})),this.stylesheet=n,this._updateMapProjection(),!0}addImage(t,n){return this.getImage(t)?this.fire(new e.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(t,n),this._afterImageUpdated(t),this)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}removeImage(t){return this.getImage(t)?(this.imageManager.removeImage(t),this._afterImageUpdated(t),this):this.fire(new e.ErrorEvent(new Error("No image with this name exists.")))}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(t,n,i={}){if(this._checkLoaded(),void 0!==this.getSource(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 only the following properties were given: ${Object.keys(n).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(e.validateSource,`sources.${t}`,n,null,i))return;this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);const r=Oe(t,n,this.dispatcher,this);r.setEventedParent(this,(()=>({isSourceLoaded:this._isSourceCacheLoaded(t),source:r.serialize(),sourceId:t})));const o=n=>{const i=(n?"symbol:":"other:")+t,o=this._sourceCaches[i]=new e.SourceCache(i,r,n);(n?this._symbolSourceCaches:this._otherSourceCaches)[t]=o,o.style=this,o.onAdd(this.map)};o(!1),"vector"!==n.type&&"geojson"!==n.type||o(!0),r.onAdd&&r.onAdd(this.map),this._changed=!0}removeSource(t){this._checkLoaded();const n=this.getSource(t);if(!n)throw new Error("There is no source with this ID");for(const r in this._layers)if(this._layers[r].source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while layer "${r}" is using it.`)));if(this.terrain&&this.terrain.get().source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while terrain is using it.`)));const i=this._getSourceCaches(t);for(const r of i)delete this._sourceCaches[r.id],delete this._updatedSources[r.id],r.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:r.getSource().id})),r.setEventedParent(null),r.clearTiles();return delete this._otherSourceCaches[t],delete this._symbolSourceCaches[t],n.setEventedParent(null),n.onRemove&&n.onRemove(this.map),this._changed=!0,this}setGeoJSONSourceData(e,t){this._checkLoaded(),this.getSource(e).setData(t),this._changed=!0}getSource(e){const t=this._getSourceCache(e);return t&&t.getSource()}_getSources(){const e=[];for(const t in this._otherSourceCaches){const n=this._getSourceCache(t);n&&e.push(n.getSource())}return e}addLayer(t,n,i={}){this._checkLoaded();const r=t.id;if(this.getLayer(r))return void this.fire(new e.ErrorEvent(new Error(`Layer with id "${r}" already exists on this map`)));let o;if("custom"===t.type){if(Wt(this,e.validateCustomStyleLayer(t)))return;o=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(r,t.source),t=e.clone$1(t),t=e.extend(t,{source:r})),this._validate(e.validateLayer,`layers.${r}`,t,{arrayIndex:-1},i))return;o=e.createStyleLayer(t),this._validateLayer(o),o.setEventedParent(this,{layer:{id:r}}),this._serializedLayers[o.id]=o.serialize(),this._updateLayerCount(o,!0)}const s=n?this._order.indexOf(n):this._order.length;if(n&&-1===s)return void this.fire(new e.ErrorEvent(new Error(`Layer with id "${n}" does not exist on this map.`)));this._order.splice(s,0,r),this._layerOrderChanged=!0,this._layers[r]=o;const a=this._getLayerSourceCache(o);if(this._removedLayers[r]&&o.source&&a&&"custom"!==o.type){const e=this._removedLayers[r];delete this._removedLayers[r],e.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",a.pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(t,n){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===n)return;const i=this._order.indexOf(t);this._order.splice(i,1);const r=n?this._order.indexOf(n):this._order.length;n&&-1===r?this.fire(new e.ErrorEvent(new Error(`Layer with id "${n}" does not exist on this map.`))):(this._order.splice(r,0,t),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(t){this._checkLoaded();const n=this._layers[t];if(!n)return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be removed.`)));n.setEventedParent(null),this._updateLayerCount(n,!1);const i=this._order.indexOf(t);this._order.splice(i,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(e){return this._layers[e]}hasLayer(e){return e in this._layers}hasLayerType(e){for(const t in this._layers)if(this._layers[t].type===e)return!0;return!1}setLayerZoomRange(t,n,i){this._checkLoaded();const r=this.getLayer(t);r?r.minzoom===n&&r.maxzoom===i||(null!=n&&(r.minzoom=n),null!=i&&(r.maxzoom=i),this._updateLayer(r)):this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(n,i,r={}){this._checkLoaded();const o=this.getLayer(n);if(o){if(!t(o.filter,i))return null==i?(o.filter=void 0,void this._updateLayer(o)):void(this._validate(e.validateFilter,`layers.${o.id}.filter`,i,{layerType:o.type},r)||(o.filter=e.clone$1(i),this._updateLayer(o)))}else this.fire(new e.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be filtered.`)))}getFilter(t){const n=this.getLayer(t);return n&&e.clone$1(n.filter)}setLayoutProperty(n,i,r,o={}){this._checkLoaded();const s=this.getLayer(n);s?t(s.getLayoutProperty(i),r)||(s.setLayoutProperty(i,r,o),this._updateLayer(s)):this.fire(new e.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(t,n){const i=this.getLayer(t);if(i)return i.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style.`)))}setPaintProperty(n,i,r,o={}){this._checkLoaded();const s=this.getLayer(n);s?t(s.getPaintProperty(i),r)||(s.setPaintProperty(i,r,o)&&this._updateLayer(s),this._changed=!0,this._updatedPaintProps[n]=!0):this.fire(new e.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(e,t){const n=this.getLayer(e);return n&&n.getPaintProperty(t)}setFeatureState(t,n){this._checkLoaded();const i=t.source,r=t.sourceLayer,o=this.getSource(i);if(!o)return void this.fire(new e.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)));const s=o.type;if("geojson"===s&&r)return void this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===s&&!r)return void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided.")));const a=this._getSourceCaches(i);for(const e of a)e.setFeatureState(r,t.id,n)}removeFeatureState(t,n){this._checkLoaded();const i=t.source,r=this.getSource(i);if(!r)return void this.fire(new e.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)));const o=r.type,s="vector"===o?t.sourceLayer:void 0;if("vector"===o&&!s)return void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(n&&"string"!=typeof t.id&&"number"!=typeof t.id)return void this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const a=this._getSourceCaches(i);for(const e of a)e.removeFeatureState(s,t.id,n)}getFeatureState(t){this._checkLoaded();const n=t.source,i=t.sourceLayer,r=this.getSource(n);if(r){if("vector"!==r.type||i)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(n)[0].getFeatureState(i,t.id);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.`)))}getTransition(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const t={};for(const e in this._sourceCaches){const n=this._sourceCaches[e].getSource();t[n.id]||(t[n.id]=n.serialize())}return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.getTerrain()||void 0,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:t,layers:this._serializeLayers(this._order)},(e=>void 0!==e))}_updateLayer(e){this._updatedLayers[e.id]=!0;const t=this._getLayerSourceCache(e);e.source&&!this._updatedSources[e.source]&&t&&"raster"!==t.getSource().type&&(this._updatedSources[e.source]="reload",t.pause()),this._changed=!0,e.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(e){const t=e=>"fill-extrusion"===this._layers[e].type,n={},i=[];for(let o=this._order.length-1;o>=0;o--){const r=this._order[o];if(t(r)){n[r]=o;for(const t of e){const e=t[r];if(e)for(const t of e)i.push(t)}}}i.sort(((e,t)=>t.intersectionZ-e.intersectionZ));const r=[];for(let o=this._order.length-1;o>=0;o--){const s=this._order[o];if(t(s))for(let e=i.length-1;e>=0;e--){const t=i[e].feature;if(n[t.layer.id]<o)break;r.push(t),i.pop()}else for(const t of e){const e=t[s];if(e)for(const t of e)r.push(t.feature)}}return r}queryRenderedFeatures(t,n,i){n&&n.filter&&this._validate(e.validateFilter,"queryRenderedFeatures.filter",n.filter,null,n);const r={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new e.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const t of n.layers){const n=this._layers[t];if(!n)return this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be queried for features.`))),[];r[n.source]=!0}}const o=[];n.availableImages=this._availableImages;const s=n&&n.layers?n.layers.some((e=>{const t=this.getLayer(e);return t&&t.is3D()})):this.has3DLayers(),a=I.createFromScreenPoints(t,i);for(const e in this._sourceCaches){const t=this._sourceCaches[e].getSource().id;n.layers&&!r[t]||o.push(De(this._sourceCaches[e],this._layers,this._serializedLayers,a,n,i,s,!!this.map._showQueryGeometry))}return this.placement&&o.push(function(e,t,n,i,r,o,s){const a={},l=o.queryRenderedSymbols(i),c=[];for(const u of Object.keys(l).map(Number))c.push(s[u]);c.sort(ze);for(const u of c){const n=u.featureIndex.lookupSymbolFeatures(l[u.bucketInstanceId],t,u.bucketIndex,u.sourceLayerIndex,r.filter,r.layers,r.availableImages,e);for(const e in n){const t=a[e]=a[e]||[],i=n[e];i.sort(((e,t)=>{const n=u.featureSortOrder;if(n){const i=n.indexOf(e.featureIndex);return n.indexOf(t.featureIndex)-i}return t.featureIndex-e.featureIndex}));for(const e of i)t.push(e)}}for(const u in a)a[u].forEach((t=>{const i=t.feature,r=n(e[u]);if(!r)return;const o=r.getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=o}));return a}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),a.screenGeometry,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(o)}querySourceFeatures(t,n){n&&n.filter&&this._validate(e.validateFilter,"querySourceFeatures.filter",n.filter,null,n);const i=this._getSourceCaches(t);let r=[];for(const e of i)r=r.concat(Pe(e,n));return r}addSourceType(e,t,n){return Yt.getSourceType(e)?n(new Error(`A source type called "${e}" already exists.`)):(Yt.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},n):n(null,null))}getLight(){return this.light.getLight()}setLight(e,n={}){this._checkLoaded();const i=this.light.getLight();let r=!1;for(const s in e)if(!t(e[s],i[s])){r=!0;break}if(!r)return;const o=this._setTransitionParameters({duration:300,delay:0});this.light.setLight(e,n),this.light.updateTransitions(o)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(n,i=1){if(this._checkLoaded(),!n)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);let r=n;if(1===i){if("object"==typeof r.source){const t="terrain-dem-src";this.addSource(t,r.source),r=e.clone$1(r),r=e.extend(r,{source:t})}if(this._validate(e.validateTerrain,"terrain",r))return}if(!this.terrain||this.terrain&&i!==this.terrain.drapeRenderMode){if(!r)return;this._createTerrain(r,i)}else{const n=this.terrain,i=n.get();for(const t of Object.keys(e.spec.terrain))!r.hasOwnProperty(t)&&e.spec.terrain[t].default&&(r[t]=e.spec.terrain[t].default);for(const e in r)if(!t(r[e],i[e])){n.set(r),this.stylesheet.terrain=r;const e=this._setTransitionParameters({duration:0});n.updateTransitions(e);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(e){const t=this.fog=new M(e,this.map.transform);this.stylesheet.fog=e;const n=this._setTransitionParameters({duration:0});t.updateTransitions(n)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask((()=>{for(const e of this.map._markers)e._evaluateOpacity()}))}getFog(){return this.fog?this.fog.get():null}setFog(e){if(this._checkLoaded(),!e)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const n=this.fog,i=n.get();0===Object.keys(e).length&&n.set(e);for(const r in e)if(!t(e[r],i[r])){n.set(e),this.stylesheet.fog=e;const t=this._setTransitionParameters({duration:0});n.updateTransitions(t);break}}else this._createFog(e);this._markersNeedUpdate=!0}_setTransitionParameters(t){return{now:e.exported.now(),transition:e.extend(t,this.stylesheet.transition)}}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const e=this._order.filter((e=>this.isLayerDraped(this._layers[e]))),t=this._order.filter((e=>!this.isLayerDraped(this._layers[e])));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...e),this._drapedFirstOrder.push(...t)}_createTerrain(e,t){const n=this.terrain=new k(e,t);this.stylesheet.terrain=e,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();const i=this._setTransitionParameters({duration:0});n.updateTransitions(i)}_force3DLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"fill-extrusion"===t.type&&this._updateLayer(t)}}_forceSymbolLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"symbol"===t.type&&this._updateLayer(t)}}_validate(t,n,i,r,o={}){return(!o||!1!==o.validate)&&Wt(this,t.call(e.validateStyle,e.extend({key:n,style:this.serialize(),value:i,styleSpec:e.spec},r)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const e in this._layers)this._layers[e].setEventedParent(null);for(const e in this._sourceCaches)this._sourceCaches[e].clearTiles(),this._sourceCaches[e].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(e){const t=this._getSourceCaches(e);for(const n of t)n.clearTiles()}_reloadSource(e){const t=this._getSourceCaches(e);for(const n of t)n.resume(),n.reload()}_reloadSources(){for(const e of this._getSources())e.reload&&e.reload()}_updateSources(e){for(const t in this._sourceCaches)this._sourceCaches[t].update(e)}_generateCollisionBoxes(){for(const e in this._sourceCaches){const t=this._sourceCaches[e];t.resume(),t.reload()}}_updatePlacement(t,n,i,r,o=!1){let s=!1,a=!1;const l={};for(const e of this._order){const n=this._layers[e];if("symbol"!==n.type)continue;if(!l[n.source]){const e=this._getLayerSourceCache(n);if(!e)continue;l[n.source]=e.getRenderableIds(!0).map((t=>e.getTileByID(t))).sort(((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)))}const i=this.crossTileSymbolIndex.addLayer(n,l[n.source],t.center.lng,t.projection);s=s||i}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),o=o||this._layerOrderChanged||0===i,this._layerOrderChanged&&this.fire(new e.Event("neworder")),(o||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.exported.now(),t.zoom))&&(this.pauseablePlacement=new Nt(t,this._order,o,n,i,r,this.placement,this.fog&&t.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.exported.now()),a=!0),s&&this.pauseablePlacement.placement.setStale()),a||s)for(const e of this._order){const t=this._layers[e];"symbol"===t.type&&this.placement.updateLayerOpacities(t,l[t.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.exported.now())}_releaseSymbolFadeTiles(){for(const e in this._sourceCaches)this._sourceCaches[e].releaseSymbolFadeTiles()}getImages(e,t,n){this.imageManager.getImages(t.icons,n),this._updateTilesForChangedImages();const i=e=>{e&&e.setDependencies(t.tileID.key,t.type,t.icons)};i(this._otherSourceCaches[t.source]),i(this._symbolSourceCaches[t.source])}getGlyphs(e,t,n){this.glyphManager.getGlyphs(t.stacks,n)}getResource(t,n,i){return e.makeRequest(n,i)}_getSourceCache(e){return this._otherSourceCaches[e]}_getLayerSourceCache(e){return"symbol"===e.type?this._symbolSourceCaches[e.source]:this._otherSourceCaches[e.source]}_getSourceCaches(e){const t=[];return this._otherSourceCaches[e]&&t.push(this._otherSourceCaches[e]),this._symbolSourceCaches[e]&&t.push(this._symbolSourceCaches[e]),t}_isSourceCacheLoaded(t){const n=this._getSourceCaches(t);return 0===n.length?(this.fire(new e.ErrorEvent(new Error(`There is no source with ID '${t}'`))),!1):n.every((e=>e.loaded()))}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}Yt.getSourceType=function(e){return Ae[e]},Yt.setSourceType=function(e,t){Ae[e]=t},Yt.registerForPluginStateChange=e.registerForPluginStateChange;var Jt="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0",Qt="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",en="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\nconst float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)\n{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nreturn currentElevation(apos);}\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",tn="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",nn="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif";let rn={},on={};const sn=[];hn(Jt,sn),hn(en,sn),hn(tn,sn),hn(nn,sn),rn=dn("",en),on=dn(nn,tn);const an=dn("\n#if __VERSION__ >=300\n#define varying in\n#define gl_FragColor glFragColor\n#define texture2D texture\n#define textureCube texture\nout vec4 glFragColor;\n#endif\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}","\n#if __VERSION__ >=300\n#define attribute in\n#define varying out\n#define texture2D texture\n#endif\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\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(\nunpack_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;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),ln=Jt,cn="\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif";var un={background:dn("uniform vec4 u_color;uniform float u_opacity;\n#ifdef LIGHTING_3D_MODE\nvarying vec4 v_color;\n#endif\nvoid main() {vec4 out_color;\n#ifdef LIGHTING_3D_MODE\nout_color=v_color;\n#else\nout_color=u_color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#ifdef LIGHTING_3D_MODE\nuniform vec4 u_color;varying vec4 v_color;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(u_color);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:dn("uniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:dn("varying vec3 v_data;varying float v_visibility;\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(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\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\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void 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);vec4 world_center;mat3 surface_vectors;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);\n#else \nsurface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nocclusion_world_center=world_center;occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:dn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:dn("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 FOG\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\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;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying 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;vec2 tilePos=floor(a_pos*0.5);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\npos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:dn("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}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:dn("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:dn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:dn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:dn("#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\nvec4 out_color=color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_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);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:dn("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);vec4 out_color=outline_color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_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;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:dn("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(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 float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:dn("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*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 float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:dn("varying vec4 v_color;\n#ifdef RENDER_SHADOWS\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\nvoid main() {\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvec3 normal=v_normal;\n#endif\nfloat z;vec4 color;\n#ifdef ZERO_ROOF_RADIUS\nz=float(normal.z > 0.00001);color=mix(v_color,v_roof_color,z);\n#else\ncolor=v_color;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\n#ifdef ZERO_ROOF_RADIUS\nconcave*=(1.0-z);\n#endif\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;\n#endif\n#ifdef RENDER_SHADOWS\n#ifdef ZERO_ROOF_RADIUS\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\n#endif\ncolor.xyz=shadowed_color_normal(color.xyz,normalize(normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=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;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\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\nvec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nv_normal=normal;\n#endif\nbase=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;float c_ele;vec3 pos;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nv_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_depth=gl_Position.w;\n#endif\nfloat NdotL=0.0;float colorvalue=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}v_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(color,NdotL);\n#else\nv_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_color*=u_opacity;\n#ifdef ZERO_ROOF_RADIUS\nv_roof_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef LIGHTING_3D_MODE\nv_roof_color=apply_lighting(color,calculate_NdotL(vec3(0.0,0.0,1.0)));\n#else\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_roof_color*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:dn("uniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;uniform lowp float u_opacity;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color,v_NdotL)*u_opacity;\n#else\nout_color=out_color*v_lighting;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\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 float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h);\n#else\np=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_NdotL=NdotL;\n#else\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#endif \n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:dn("#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 vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.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;}"),hillshade:dn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef LIGHTING_3D_MODE\ngl_FragColor=apply_lighting(gl_FragColor);\n#endif\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\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;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:dn("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\nuniform float u_border_width;uniform vec4 u_border_color;float luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nfloat linearstep(float edge0,float edge1,float x) {return  clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\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);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist=texture2D(u_dash_image,v_tex).a;float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\nhighp vec4 out_color;\n#ifdef RENDER_LINE_GRADIENT\nout_color=texture2D(u_gradient_image,v_uv.xy);\n#else\nout_color=color;\n#endif\nfloat trimmed=1.0;\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);trimmed=0.0;}}\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\n#ifdef RENDER_LINE_BORDER\nfloat edgeBlur=(u_border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);\n#ifdef RENDER_LINE_BORDER_AUTO\nfloat Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}\n#else\nout_color.rgb=mix(u_border_color.rgb*u_border_color.a*trimmed,out_color.rgb,smoothAlpha);\n#endif\n}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nattribute highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\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 floorwidth\n#pragma mapbox: initialize lowp vec4 dash\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;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat 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;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:dn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;vec2 pattern_size=vec2(display_size.x/u_tile_units_to_pixels,display_size.y);float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x=mod(v_linesofar/pattern_size.x*aspect,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec4 color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\ncolor=apply_lighting(color);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_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;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\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 float floorwidth\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\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 lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\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;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat 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;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:dn("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(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*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 vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:dn("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}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying 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_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:dn("#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}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying 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_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:dn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_sdf);}"),terrainRaster:dn("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#else\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nconst float wireframeOffset=0.00015;void main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=wireframeOffset;\n#endif\nv_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\nv_fog_pos=fog_position(decodedPos);\n#else\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\n#endif\n}"),terrainDepth:dn("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;varying float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:dn("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Qt),skyboxGradient:dn("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Qt),skyboxCapture:dn("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R                  vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M                  vec3(21e-6,21e-6,21e-6)\n#define MIE_G                   0.76\n#define DENSITY_HEIGHT_SCALE_R  8000.0\n#define DENSITY_HEIGHT_SCALE_M  1200.0\n#define PLANET_RADIUS           6360e3\n#define ATMOSPHERE_RADIUS       6420e3\n#define SAMPLE_STEPS            10\n#define DENSITY_STEPS           4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:dn("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {vec4 color;\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);color=vec4(raster.rgb*antialias,raster.a*antialias);\n#else\ncolor=texture2D(u_image0,v_pos0);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\n#ifdef GLOBE_POLES\nvec3 up_vector=globe_derived_up_vector;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nglobe_pos+=up_vector*height;\n#ifndef GLOBE_POLES\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\n#endif\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}"),globeAtmosphere:dn("uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\n#ifdef PROJECTION_GLOBE_VIEW\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(dot(dir,horizon_dir)),0.0);float horizon_angle;\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nhorizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:\n(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:\nuv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}","attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}")};function hn(e,t){const n=e.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let i of n)if(i=i.trim(),"#"===i[0]&&i.includes("if")&&!i.includes("endif")){i=i.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const e=i.split(" ");for(const n of e)t.includes(n)||t.push(n)}}function dn(e,t){const n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,i=t.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),r={},o=[...sn];return hn(e,o),hn(t,o),{fragmentSource:e=e.replace(n,((e,t,n,i,o)=>(r[o]=!0,"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nvarying ${n} ${i} ${o};\n#else\nuniform ${n} ${i} u_${o};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${o}\n    ${n} ${i} ${o} = u_${o};\n#endif\n`))),vertexSource:t=t.replace(n,((e,t,n,i,o)=>{const s="float"===i?"vec2":"vec4",a=o.match(/color/)?"color":s;return r[o]?"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\nattribute ${n} ${s} a_${o};\nvarying ${n} ${i} ${o};\n#else\nuniform ${n} ${i} u_${o};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${o}\n    ${o} = a_${o};\n#else\n    ${n} ${i} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n    ${o} = unpack_mix_${a}(a_${o}, u_${o}_t);\n#else\n    ${n} ${i} ${o} = u_${o};\n#endif\n`:"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\nattribute ${n} ${s} a_${o};\n#else\nuniform ${n} ${i} u_${o};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${o}\n    ${n} ${i} ${o} = a_${o};\n#else\n    ${n} ${i} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n    ${n} ${i} ${o} = unpack_mix_${a}(a_${o}, u_${o}_t);\n#else\n    ${n} ${i} ${o} = u_${o};\n#endif\n`})),staticAttributes:i,usedDefines:o}}class pn{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(e,t,n,i,r,o,s){this.context=e;let a=this.boundPaintVertexBuffers.length!==i.length;for(let c=0;!a&&c<i.length;c++)this.boundPaintVertexBuffers[c]!==i[c]&&(a=!0);let l=this.boundDynamicVertexBuffers.length!==s.length;for(let c=0;!l&&c<s.length;c++)this.boundDynamicVertexBuffers[c]!==s[c]&&(l=!0);if(!e.extVertexArrayObject||!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==n||a||l||this.boundIndexBuffer!==r||this.boundVertexOffset!==o)this.freshBind(t,n,i,r,o,s);else{e.bindVertexArrayOES.set(this.vao);for(const e of s)e&&e.bind();r&&r.dynamicDraw&&r.bind()}}freshBind(e,t,n,i,r,o){let s;const a=e.numAttributes,l=this.context,c=l.gl;if(l.extVertexArrayObject)this.vao&&this.destroy(),this.vao=l.extVertexArrayObject.createVertexArrayOES(),l.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=i,this.boundVertexOffset=r,this.boundDynamicVertexBuffers=o;else{s=l.currentNumAttributes||0;for(let e=a;e<s;e++)c.disableVertexAttribArray(e)}t.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,r);for(const u of n)u.enableAttributes(c,e),u.bind(),u.setVertexAttribPointers(c,e,r);for(const u of o)u&&(u.enableAttributes(c,e),u.bind(),u.setVertexAttribPointers(c,e,r));i&&i.bind(),l.currentNumAttributes=a}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function fn(t,n){const i=Math.pow(2,n.canonical.z),r=n.canonical.y;return[new e.MercatorCoordinate(0,r/i).toLngLat().lat,new e.MercatorCoordinate(0,(r+1)/i).toLngLat().lat]}function mn(t,n,i,r,o,s,a){const l=t.context,c=l.gl,u=i.fbo;if(!u)return;t.prepareDrawTile();const h=t.useProgram("hillshade");l.activeTexture.set(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,u.colorAttachment.get());const d=((e,t,n,i)=>{const r=n.paint.get("hillshade-shadow-color"),o=n.paint.get("hillshade-highlight-color"),s=n.paint.get("hillshade-accent-color");let a=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(a-=e.transform.angle);const l=!e.options.moving;return{u_matrix:i||e.transform.calculateProjMatrix(t.tileID.toUnwrapped(),l),u_image:0,u_latrange:fn(0,t.tileID),u_light:[n.paint.get("hillshade-exaggeration"),a],u_shadow:r,u_highlight:o,u_accent:s}})(t,i,r,t.terrain?n.projMatrix:null);t.prepareDrawProgram(l,h,n.toUnwrapped());const{tileBoundsBuffer:p,tileBoundsIndexBuffer:f,tileBoundsSegments:m}=t.getTileBoundsBuffers(i);h.draw(l,c.TRIANGLES,o,s,a,e.CullFaceMode.disabled,d,r.id,p,f,m)}function gn(t,n,i){if(!n.needsDEMTextureUpload)return;const r=t.context,o=r.gl;r.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||t.getTileTexture(i.stride);const s=i.getPixels();n.demTexture?n.demTexture.update(s,{premultiply:!1}):n.demTexture=new e.Texture(r,s,o.RGBA,{premultiply:!1}),n.needsDEMTextureUpload=!1}function vn(t,n,i,r,o,s){const a=t.context,l=a.gl;if(!n.dem)return;const c=n.dem;if(a.activeTexture.set(l.TEXTURE1),gn(t,n,c),!n.demTexture)return;n.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);const u=c.dim;a.activeTexture.set(l.TEXTURE0);let h=n.fbo;if(!h){const t=new e.Texture(a,{width:u,height:u,data:null},l.RGBA);t.bind(l.LINEAR,l.CLAMP_TO_EDGE),h=n.fbo=a.createFramebuffer(u,u,!0),h.colorAttachment.set(t.texture)}a.bindFramebuffer.set(h.framebuffer),a.viewport.set([0,0,u,u]);const{tileBoundsBuffer:d,tileBoundsIndexBuffer:p,tileBoundsSegments:f}=t.getMercatorTileBoundsBuffers();t.useProgram("hillshadePrepare").draw(a,l.TRIANGLES,r,o,s,e.CullFaceMode.disabled,((t,n)=>{const i=n.stride,r=e.create();return e.ortho(r,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(r,r,[0,-e.EXTENT,0]),{u_matrix:r,u_image:1,u_dimension:[i,i],u_zoom:t.overscaledZ,u_unpack:n.unpackVector}})(n.tileID,c),i.id,d,p,f),n.needsHillshadePrepare=!1}const yn=t=>({u_matrix:new e.UniformMatrix4f(t),u_image0:new e.Uniform1i(t),u_skirt_height:new e.Uniform1f(t)}),_n=(e,t)=>({u_matrix:e,u_image0:0,u_skirt_height:t}),bn=(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f)=>({u_proj_matrix:Float32Array.from(e),u_globe_matrix:t,u_normalize_matrix:Float32Array.from(i),u_merc_matrix:n,u_zoom_transition:r,u_merc_center:o,u_image0:0,u_frustum_tl:s,u_frustum_tr:a,u_frustum_br:l,u_frustum_bl:c,u_globe_pos:u,u_globe_radius:h,u_viewport:d,u_grid_matrix:f?Float32Array.from(f):new Float32Array(9),u_skirt_height:p});function xn(e,t){return null!=e&&null!=t&&!(!e.hasData()||!t.hasData())&&null!=e.demTexture&&null!=t.demTexture&&e.tileID.key!==t.tileID.key}const wn=new class{constructor(){this.operations={}}newMorphing(e,t,n,i,r){if(e in this.operations){const t=this.operations[e];t.to.tileID.key!==n.tileID.key&&(t.queued=n)}else this.operations[e]={startTime:i,phase:0,duration:r,from:t,to:n,queued:null}}getMorphValuesForProxy(e){if(!(e in this.operations))return null;const t=this.operations[e];return{from:t.from,to:t.to,phase:t.phase}}update(e){for(const t in this.operations){const n=this.operations[t];for(n.phase=(e-n.startTime)/n.duration;n.phase>=1||!this._validOp(n);)if(!this._nextOp(n,e)){delete this.operations[t];break}}}_nextOp(e,t){return!!e.queued&&(e.from=e.to,e.to=e.queued,e.queued=null,e.phase=0,e.startTime=t,!0)}_validOp(e){return e.from.hasData()&&e.to.hasData()}},Cn={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function kn(e){return 6*Math.pow(1.5,22-e)}function Sn(e,t){const n=1<<e.z;return!t&&(0===e.x||e.x===n-1)||0===e.y||e.y===n-1}const En=e=>({u_matrix:e});function Tn(t,n,i,r,o){if(o>0){const s=e.exported.now(),a=(s-t.timeAdded)/o,l=n?(s-n.timeAdded)/o:-1,c=i.getSource(),u=r.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),h=!n||Math.abs(n.tileID.overscaledZ-u)>Math.abs(t.tileID.overscaledZ-u),d=h&&t.refreshedUponExpiration?1:e.clamp(h?a:1-l,0,1);return t.refreshedUponExpiration&&a>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}class Mn extends e.SourceCache{constructor(e){const t={type:"raster-dem",maxzoom:e.transform.maxZoom},n=new A($e(),null),i=Oe("mock-dem",t,n,e.style);super("mock-dem",i,!1),i.setEventedParent(this),this._sourceLoaded=!0}_loadTile(e,t){e.state="loaded",t(null)}}class An extends e.SourceCache{constructor(e){const t=Oe("proxy",{type:"geojson",maxzoom:e.transform.maxZoom},new A($e(),null),e.style);super("proxy",t,!1),t.setEventedParent(this),this.map=this.getSource().map=e,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(t,n,i){if(t.freezeTileCoverage)return;this.transform=t;const r=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce(((n,i)=>{if(n[i.key]="",!this._tiles[i.key]){const n=new e.Tile(i,this._source.tileSize*i.overscaleFactor(),t.tileZoom);n.state="loaded",this._tiles[i.key]=n}return n}),{});for(const e in this._tiles)e in r||(this.freeFBO(e),this._tiles[e].unloadVectorData(),delete this._tiles[e])}freeFBO(e){const t=this.proxyCachedFBO[e];if(void 0!==t){const n=Object.values(t);this.renderCachePool.push(...n),delete this.proxyCachedFBO[e]}}deallocRenderCache(){this.renderCache.forEach((e=>e.fb.destroy())),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class On extends e.OverscaledTileID{constructor(e,t,n){super(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y),this.proxyTileKey=t,this.projMatrix=n}}class In extends e.Elevation{constructor(t,n){super(),this.painter=t,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[i,r,o]=function(){const t=new e.StructArrayLayout2i4,n=new e.StructArrayLayout3ui6,i=131;t.reserve(17161),n.reserve(33800);const r=e.EXTENT/128,o=e.EXTENT+r/2,s=o+r;for(let l=-r;l<s;l+=r)for(let n=-r;n<s;n+=r){const i=n<0||n>o||l<0||l>o?24575:0,r=e.clamp(Math.round(n),0,e.EXTENT),s=e.clamp(Math.round(l),0,e.EXTENT);t.emplaceBack(r+i,s)}const a=(e,t)=>{const r=t*i+e;n.emplaceBack(r+1,r,r+i),n.emplaceBack(r+i,r+i+1,r+1)};for(let e=1;e<129;e++)for(let t=1;t<129;t++)a(t,e);return[0,129].forEach((e=>{for(let t=0;t<130;t++)a(t,e),a(e,t)})),[t,n,32768]}(),s=t.context;this.gridBuffer=s.createVertexBuffer(i,e.posAttributes.members),this.gridIndexBuffer=s.createIndexBuffer(r),this.gridSegments=e.SegmentVector.simpleSegment(0,0,i.length,r.length),this.gridNoSkirtSegments=e.SegmentVector.simpleSegment(0,0,i.length,o),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new An(n.map),this.orthoMatrix=e.create(),e.ortho(this.orthoMatrix,"globe"===this.painter.transform.projection.name?.015:0,e.EXTENT,0,e.EXTENT,0,1);const a=s.gl;this._overlapStencilMode=new e.StencilMode({func:a.GEQUAL,mask:255},0,255,a.KEEP,a.KEEP,a.REPLACE),this._previousZoom=t.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=n,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new Mn(n.map)}set style(e){e.on("data",this._onStyleDataEvent.bind(this)),e.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=e,this._checkRenderCacheEfficiency(),this._style.map.on("moveend",(()=>{this._clearLineLayersFromRenderCache()}))}update(t,n,i){if(t&&t.terrain){this._style!==t&&(this.style=t),this.enabled=!0;const r=t.terrain.properties;this.sourceCache=0===t.terrain.drapeRenderMode?this._mockSourceCache:t._getSourceCache(r.get("source")),this._exaggeration=r.get("exaggeration");const o=()=>{this.sourceCache.used&&e.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const t=this.getScaledDemTileSize();this.sourceCache.update(n,t,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,o(),this._initializing=!0),o(),n.updateElevation(!0,i),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(n),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(e){this._findCoveringTileCache[e]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const t=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==t.efficiency&&e.warnOnce(`Terrain render cache efficiency is not optimal (${t.efficiency}%) and performance\n                may be affected negatively, consider placing all background, fill and line layers before layer\n                with id '${t.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(e){e.coord&&"source"===e.dataType?this._clearRenderCacheForTile(e.sourceCacheId,e.coord):"style"===e.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const e in this._style._sourceCaches)this._style._sourceCaches[e].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach((e=>e.fb.destroy())),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const e=2*this.proxySourceCache.getSource().tileSize;return[e,e]}set useVertexMorphing(e){this._useVertexMorphing=e}updateTileBinding(t){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const n=this.proxySourceCache,i=this.painter.transform;this._initializing&&(this._initializing=0===i._centerAltitude&&-1===this.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(i.center),-1),this._emptyDEMTextureDirty=!this._initializing);const r=this.proxyCoords=n.getIds().map((e=>{const t=n.getTileByID(e).tileID;return t.projMatrix=i.calculateProjMatrix(t.toUnwrapped()),t}));!function(t,n){const i=n.transform.pointCoordinate(n.transform.getCameraPoint()),r=new e.Point(i.x,i.y);t.sort(((t,n)=>{if(n.overscaledZ-t.overscaledZ)return n.overscaledZ-t.overscaledZ;const i=new e.Point(t.canonical.x+(1<<t.canonical.z)*t.wrap,t.canonical.y),o=new e.Point(n.canonical.x+(1<<n.canonical.z)*n.wrap,n.canonical.y),s=r.mult(1<<t.canonical.z);return s.x-=.5,s.y-=.5,s.distSqr(i)-s.distSqr(o)}))}(r,this.painter),this._previousZoom=i.zoom;const o=this.proxyToSource||{};this.proxyToSource={},r.forEach((e=>{this.proxyToSource[e.key]={}})),this.terrainTileForTile={};const s=this._style._sourceCaches;for(const e in s){const n=s[e];if(!n.used)continue;if(n!==this.sourceCache&&this.resetTileLookupCache(n.id),this._setupProxiedCoordsForOrtho(n,t[e],o),n.usedForTerrain)continue;const i=t[e];n.getSource().reparseOverscaled&&this._assignTerrainTiles(i)}this.proxiedCoords[n.id]=r.map((e=>new On(e,e.key,this.orthoMatrix))),this._assignTerrainTiles(r),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(o),this.renderingToTexture=!1,this._updateTimestamp=e.exported.now();const a={};this._visibleDemTiles=[];for(const e of this.proxyCoords){const t=this.terrainTileForTile[e.key];if(!t)continue;const n=t.tileID.key;n in a||(this._visibleDemTiles.push(t),a[n]=n)}}_assignTerrainTiles(e){this._initializing||e.forEach((e=>{if(this.terrainTileForTile[e.key])return;const t=this._findTileCoveringTileID(e,this.sourceCache);t&&(this.terrainTileForTile[e.key]=t)}))}_prepareDEMTextures(){const e=this.painter.context,t=e.gl;for(const n in this.terrainTileForTile){const i=this.terrainTileForTile[n],r=i.dem;!r||i.demTexture&&!i.needsDEMTextureUpload||(e.activeTexture.set(t.TEXTURE1),gn(this.painter,i,r))}}_prepareDemTileUniforms(e,t,n,i){if(!t||null==t.demTexture)return!1;const r=e.tileID.canonical,o=Math.pow(2,t.tileID.canonical.z-r.z),s=i||"";return n[`u_dem_tl${s}`]=[r.x*o%1,r.y*o%1],n[`u_dem_scale${s}`]=o,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const t=this.painter.context,n=t.gl;if(!this._emptyDepthBufferTexture){const i=new e.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new e.Texture(t,i,n.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let e=0;const t=this._visibleDemTiles.reduce(((t,n)=>{if(!n.dem)return t;const i=n.dem.tree.minimums[0];return i>0&&e++,t+i}),0);return e?t/e:0}_updateEmptyDEMTexture(){const t=this.painter.context,n=t.gl;t.activeTexture.set(n.TEXTURE2);const i=this._getLoadedAreaMinimum(),r=new e.RGBAImage({width:1,height:1},new Uint8Array(e.DEMData.pack(i,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let o=this._emptyDEMTexture;return o?o.update(r,{premultiply:!1}):o=this._emptyDEMTexture=new e.Texture(t,r,n.RGBA,{premultiply:!1}),o}setupElevationDraw(t,n,i){const r=this.painter.context,o=r.gl,s=(a=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:e.DEMData.getUnpackVector(a),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0});var a;s.u_dem_size=this.sourceCache.getSource().tileSize,s.u_exaggeration=this.exaggeration();let l=null,c=null,u=1;if(i&&i.morphing&&this._useVertexMorphing){const e=i.morphing.srcDemTile,n=i.morphing.dstDemTile;u=i.morphing.phase,e&&n&&(this._prepareDemTileUniforms(t,e,s,"_prev")&&(c=e),this._prepareDemTileUniforms(t,n,s)&&(l=n))}if(c&&l?(r.activeTexture.set(o.TEXTURE2),l.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),r.activeTexture.set(o.TEXTURE4),c.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),s.u_dem_lerp=u):(l=this.terrainTileForTile[t.tileID.key],r.activeTexture.set(o.TEXTURE2),(this._prepareDemTileUniforms(t,l,s)?l.demTexture:this.emptyDEMTexture).bind(o.NEAREST,o.CLAMP_TO_EDGE)),r.activeTexture.set(o.TEXTURE3),i&&i.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),this._depthFBO&&(s.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),s.u_depth_size_inv=[1,1]),i&&i.useMeterToDem&&l){const t=(1<<l.tileID.canonical.z)*e.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;s.u_meter_to_dem=t}if(i&&i.labelPlaneMatrixInv&&(s.u_label_plane_matrix_inv=i.labelPlaneMatrixInv),n.setTerrainUniformValues(r,s),"globe"===this.painter.transform.projection.name){const e=this.globeUniformValues(this.painter.transform,t.tileID.canonical,i&&i.useDenormalizedUpVectorScale);n.setGlobeUniformValues(r,e)}}globeUniformValues(t,n,i){const r=t.projection;return{u_tile_tl_up:r.upVector(n,0,0),u_tile_tr_up:r.upVector(n,e.EXTENT,0),u_tile_br_up:r.upVector(n,e.EXTENT,e.EXTENT),u_tile_bl_up:r.upVector(n,0,e.EXTENT),u_tile_up_scale:i?e.globeMetersToEcef(1):r.upVectorScale(n,t.center.lat,t.worldSize).metersToTile}}renderToBackBuffer(t){const n=this.painter,i=this.painter.context;0!==t.length&&(i.bindFramebuffer.set(null),i.viewport.set([0,0,n.width,n.height]),n.gpuTimingDeferredRenderStart(),this.renderingToTexture=!1,function(t,n,i,r,o){if("globe"===t.transform.projection.name)!function(t,n,i,r,o){const s=t.context,a=s.gl;let l,c;const u=t.options.showTerrainWireframe?2:0,h=t.transform,d=e.globeUseCustomAntiAliasing(t,s,h),p=(e,n)=>{if(c===e)return;const i=[Cn[e],"PROJECTION_GLOBE_VIEW"];d&&i.push("CUSTOM_ANTIALIASING"),n&&i.push(Cn[u]),l=t.useProgram("globeRaster",null,i),c=e},f=t.colorModeForRenderPass(),m=new e.DepthMode(a.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);wn.update(o);const g=e.calculateGlobeMercatorMatrix(h),v=[e.mercatorXfromLng(h.center.lng),e.mercatorYfromLat(h.center.lat)],y=u?[!1,!0]:[!1],_=t.globeSharedBuffers,b=[h.width*e.exported.devicePixelRatio,h.height*e.exported.devicePixelRatio],x=Float32Array.from(h.globeMatrix),w={useDenormalizedUpVectorScale:!0};if(y.forEach((u=>{const h=t.transform,d=kn(h.zoom)*n.exaggeration();c=-1;const y=u?a.LINES:a.TRIANGLES;for(const c of r){const r=i.getTile(c),C=e.StencilMode.disabled,k=n.prevTerrainTileForTile[c.key],S=n.terrainTileForTile[c.key];xn(k,S)&&wn.newMorphing(c.key,k,S,o,250),s.activeTexture.set(a.TEXTURE0),r.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);const E=wn.getMorphValuesForProxy(c.key),T=E?1:0;E&&e.extend$1(w,{morphing:{srcDemTile:E.from,dstDemTile:E.to,phase:e.easeCubicInOut(E.phase)}});const M=e.tileCornersToBounds(c.canonical),A=e.getLatitudinalLod(M.getCenter().lat),O=e.getGridMatrix(c.canonical,M,A,h.worldSize/h._pixelsPerMercatorPixel),I=e.globeNormalizeECEF(e.globeTileBounds(c.canonical)),D=bn(h.projMatrix,x,g,I,e.globeToMercatorTransition(h.zoom),v,h.frustumCorners.TL,h.frustumCorners.TR,h.frustumCorners.BR,h.frustumCorners.BL,h.globeCenterInViewSpace,h.globeRadius,b,d,O);if(p(T,u),n.setupElevationDraw(r,l,w),t.prepareDrawProgram(s,l,c.toUnwrapped()),_){const[n,i,r]=u?_.getWirefameBuffers(t.context,A):_.getGridBuffers(A,0!==d);l.draw(s,y,m,C,f,e.CullFaceMode.backCCW,D,"globe_raster",n,i,r)}}})),_){const o=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];d&&o.push("CUSTOM_ANTIALIASING"),l=t.useProgram("globeRaster",null,o);for(const c of r){const{x:r,y:o,z:u}=c.canonical,d=0===o,p=o===(1<<u)-1,[g,y,x,C]=_.getPoleBuffers(u);if(C&&(d||p)){const o=i.getTile(c);s.activeTexture.set(a.TEXTURE0),o.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);let _=e.globePoleMatrixForTile(u,r,h);const k=e.globeNormalizeECEF(e.globeTileBounds(c.canonical)),S=(t,n)=>t.draw(s,a.TRIANGLES,m,e.StencilMode.disabled,f,e.CullFaceMode.disabled,bn(h.projMatrix,_,_,k,0,v,h.frustumCorners.TL,h.frustumCorners.TR,h.frustumCorners.BR,h.frustumCorners.BL,h.globeCenterInViewSpace,h.globeRadius,b,0),"globe_pole_raster",n,x,C);n.setupElevationDraw(o,l,w),t.prepareDrawProgram(s,l,c.toUnwrapped()),d&&S(l,g),p&&(_=e.scale(e.create(),_,[1,-1,1]),S(l,y))}}}}(t,n,i,r,o);else{const s=t.context,a=s.gl;let l,c;const u=t.options.showTerrainWireframe?2:0,h=(e,n)=>{if(c===e)return;const i=[Cn[e]];n&&i.push(Cn[u]),l=t.useProgram("terrainRaster",null,i),c=e},d=t.colorModeForRenderPass(),p=new e.DepthMode(a.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);wn.update(o);const f=t.transform,m=kn(f.zoom)*n.exaggeration();(u?[!1,!0]:[!1]).forEach((u=>{c=-1;const g=u?a.LINES:a.TRIANGLES,[v,y]=u?n.getWirefameBuffer():[n.gridIndexBuffer,n.gridSegments];for(const c of r){const r=i.getTile(c),_=e.StencilMode.disabled,b=n.prevTerrainTileForTile[c.key],x=n.terrainTileForTile[c.key];xn(b,x)&&wn.newMorphing(c.key,b,x,o,250),s.activeTexture.set(a.TEXTURE0),r.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);const w=wn.getMorphValuesForProxy(c.key),C=w?1:0;let k;w&&(k={morphing:{srcDemTile:w.from,dstDemTile:w.to,phase:e.easeCubicInOut(w.phase)}});const S=_n(c.projMatrix,Sn(c.canonical,f.renderWorldCopies)?m/10:m);h(C,u),n.setupElevationDraw(r,l,k),t.prepareDrawProgram(s,l,c.toUnwrapped()),l.draw(s,g,p,_,d,e.CullFaceMode.backCCW,S,"terrain_raster",n.gridBuffer,v,y)}}))}}(n,this,this.proxySourceCache,t,this._updateTimestamp),this.renderingToTexture=!0,n.gpuTimingDeferredRenderEnd(),t.splice(0,t.length))}renderBatch(t){if(0===this._drapedRenderBatches.length)return t+1;this.renderingToTexture=!0;const n=this.painter,i=this.painter.context,r=this.proxySourceCache,o=this.proxiedCoords[r.id],s=this._drapedRenderBatches.shift(),a=[],l=n.style.order;let c=0;for(const u of o){const o=r.getTileByID(u.proxyTileKey),h=r.proxyCachedFBO[u.key]?r.proxyCachedFBO[u.key][t]:void 0,d=void 0!==h?r.renderCache[h]:this.pool[c++],p=void 0!==h;if(o.texture=d.tex,p&&!d.dirty){a.push(o.tileID);continue}let f;i.bindFramebuffer.set(d.fb.framebuffer),this.renderedToTile=!1,d.dirty&&(i.clear({color:e.Color.transparent,stencil:0}),d.dirty=!1);for(let e=s.start;e<=s.end;++e){const t=n.style._layers[l[e]];if(t.isHidden(n.transform.zoom))continue;const r=n.style._getLayerSourceCache(t),o=r?this.proxyToSource[u.key][r.id]:[u];if(!o)continue;const s=o;i.viewport.set([0,0,d.fb.width,d.fb.height]),f!==(r?r.id:null)&&(this._setupStencil(d,o,t,r),f=r?r.id:null),n.renderLayer(n,r,t,s)}this.renderedToTile?(d.dirty=!0,a.push(o.tileID)):p||--c,5===c&&(c=0,this.renderToBackBuffer(a))}return this.renderToBackBuffer(a),this.renderingToTexture=!1,i.bindFramebuffer.set(null),i.viewport.set([0,0,n.width,n.height]),s.end+1}postRender(){}renderCacheEfficiency(e){const t=e.order.length;if(0===t)return{efficiency:100};let n,i=0,r=0,o=!1;for(let s=0;s<t;++s){const t=e._layers[e.order[s]];this._style.isLayerDraped(t)?(o&&++i,++r):o||(o=!0,n=t.id)}return 0===r?{efficiency:100}:{efficiency:100*(1-i/r),firstUndrapedLayer:n}}getMinElevationBelowMSL(){let e=0;return this._visibleDemTiles.filter((e=>e.dem)).forEach((t=>{e=Math.min(e,t.dem.tree.minimums[0])})),0===e?e:(e-30)*this._exaggeration}raycast(e,t,n){if(!this._visibleDemTiles)return null;const i=this._visibleDemTiles.filter((e=>e.dem)).map((i=>{const r=i.tileID,o=1<<r.overscaledZ,{x:s,y:a}=r.canonical,l=s/o,c=(s+1)/o,u=a/o,h=(a+1)/o;return{minx:l,miny:u,maxx:c,maxy:h,t:i.dem.tree.raycastRoot(l,u,c,h,e,t,n),tile:i}}));i.sort(((e,t)=>(null!==e.t?e.t:Number.MAX_VALUE)-(null!==t.t?t.t:Number.MAX_VALUE)));for(const r of i){if(null==r.t)return null;const i=r.tile.dem.tree.raycast(r.minx,r.miny,r.maxx,r.maxy,e,t,n);if(null!=i)return i}return null}_createFBO(){const t=this.painter.context,n=t.gl,i=this.drapeBufferSize;t.activeTexture.set(n.TEXTURE0);const r=new e.Texture(t,{width:i[0],height:i[1],data:null},n.RGBA);r.bind(n.LINEAR,n.CLAMP_TO_EDGE);const o=t.createFramebuffer(i[0],i[1],!1);return o.colorAttachment.set(r.texture),o.depthAttachment=new we(t,o.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=t.createRenderbuffer(t.gl.DEPTH_STENCIL,i[0],i[1]),this._stencilRef=0,o.depthAttachment.set(this._sharedDepthStencil),t.clear({stencil:0})):o.depthAttachment.set(this._sharedDepthStencil),t.extTextureFilterAnisotropic&&!t.extTextureFilterAnisotropicForceOff&&n.texParameterf(n.TEXTURE_2D,t.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,t.extTextureFilterAnisotropicMax),{fb:o,tex:r,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.light&&this._style.light.hasTransition())return!0;for(const e in this._style._sourceCaches)if(this._style._sourceCaches[e].hasTransition())return!0;return this._style.order.some((e=>{const t=this._style._layers[e],n=t.isHidden(this.painter.transform.zoom);return"custom"===t.type?!n&&t.shouldRedrape():!n&&t.hasTransition()}))}_clearLineLayersFromRenderCache(){let t=!1;for(const e of this._style._getSources())if(e instanceof Se){t=!0;break}if(!t)return;const n={};for(let i=0;i<this._style.order.length;++i){const t=this._style._layers[this._style.order[i]],r=this._style._getLayerSourceCache(t);if(r&&!n[r.id]&&!t.isHidden(this.painter.transform.zoom)&&"line"===t.type&&t.widthExpression()instanceof e.ZoomDependentExpression){n[r.id]=!0;for(const e of this.proxyCoords){const t=this.proxyToSource[e.key][r.id];if(t)for(const e of t)this._clearRenderCacheForTile(r.id,e)}}}}_clearRasterLayersFromRenderCache(){let e=!1;for(const n in this._style._sourceCaches)if(this._style._sourceCaches[n]._source instanceof Ee){e=!0;break}if(!e)return;const t={};for(let n=0;n<this._style.order.length;++n){const e=this._style._layers[this._style.order[n]],i=this._style._getLayerSourceCache(e);if(!i||t[i.id])continue;if(e.isHidden(this.painter.transform.zoom)||"raster"!==e.type)continue;const r=e.paint.get("raster-fade-duration");for(const t of this.proxyCoords){const e=this.proxyToSource[t.key][i.id];if(e)for(const t of e){const e=Tn(i.getTile(t),i.findLoadedParent(t,0),i,this.painter.transform,r);(1!==e.opacity||0!==e.mix)&&this._clearRenderCacheForTile(i.id,t)}}}}_setupDrapedRenderBatches(){const e=this._style.order,t=e.length;if(0===t)return;const n=[];let i,r=0,o=this._style._layers[e[r]];for(;!this._style.isLayerDraped(o)&&o.isHidden(this.painter.transform.zoom)&&++r<t;)o=this._style._layers[e[r]];for(;r<t;++r){const t=this._style._layers[e[r]];t.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(t)?void 0===i&&(i=r):void 0!==i&&(n.push({start:i,end:r-1}),i=void 0))}void 0!==i&&n.push({start:i,end:r-1}),this._drapedRenderBatches=n}_setupRenderCache(e){const t=this.proxySourceCache;if(this._shouldDisableRenderCache()||this._invalidateRenderCache){if(this._invalidateRenderCache=!1,t.renderCache.length>t.renderCachePool.length){const e=Object.values(t.proxyCachedFBO);t.proxyCachedFBO={};for(let n=0;n<e.length;++n){const i=Object.values(e[n]);t.renderCachePool.push(...i)}}return}this._clearRasterLayersFromRenderCache();const n=this.proxyCoords,i=this._tilesDirty;for(let o=n.length-1;o>=0;o--){const r=n[o];if(t.getTileByID(r.key),void 0!==t.proxyCachedFBO[r.key]){const n=e[r.key],o=this.proxyToSource[r.key];let s=0;for(const e in o){const t=o[e],r=n[e];if(!r||r.length!==t.length||t.some(((t,n)=>t!==r[n]||i[e]&&i[e].hasOwnProperty(t.key)))){s=-1;break}++s}for(const e in t.proxyCachedFBO[r.key])t.renderCache[t.proxyCachedFBO[r.key][e]].dirty=s<0||s!==Object.values(n).length}}const r=[...this._drapedRenderBatches];r.sort(((e,t)=>t.end-t.start-(e.end-e.start)));for(const o of r)for(const e of n){if(t.proxyCachedFBO[e.key])continue;let n=t.renderCachePool.pop();void 0===n&&t.renderCache.length<50&&(n=t.renderCache.length,t.renderCache.push(this._createFBO())),void 0!==n&&(t.proxyCachedFBO[e.key]={},t.proxyCachedFBO[e.key][o.start]=n,t.renderCache[n].dirty=!0)}this._tilesDirty={}}_setupStencil(e,t,n,i){if(!i||!this._sourceTilesOverlap[i.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const r=this.painter.context,o=r.gl;if(t.length<=1)return void(this._overlapStencilType=!1);let s;if(n.isTileClipped())s=t.length,this._overlapStencilMode.test={func:o.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>t[t.length-1].overscaledZ))return void(this._overlapStencilType=!1);s=1,this._overlapStencilMode.test={func:o.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+s>255&&(r.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=s,this._overlapStencilMode.ref=this._stencilRef,n.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(t){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[t.key]),this._overlapStencilMode):e.StencilMode.disabled}_renderTileClippingMasks(t,n){const i=this.painter,r=this.painter.context,o=r.gl;i._tileClippingMaskIDs={},r.setColorMode(e.ColorMode.disabled),r.setDepthMode(e.DepthMode.disabled);const s=i.useProgram("clippingMask");for(const a of t){const t=i._tileClippingMaskIDs[a.key]=--n;s.draw(r,o.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:o.ALWAYS,mask:0},t,255,o.KEEP,o.KEEP,o.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,En(a.projMatrix),"$clipping",i.tileExtentBuffer,i.quadTriangleIndexBuffer,i.tileExtentSegments)}}pointCoordinate(t){const n=this.painter.transform;if(t.x<0||t.x>n.width||t.y<0||t.y>n.height)return null;const i=[t.x,t.y,1,1];e.transformMat4$1(i,i,n.pixelMatrixInverse),e.scale$1(i,i,1/i[3]),i[0]/=n.worldSize,i[1]/=n.worldSize;const r=n._camera.position,o=e.mercatorZfromAltitude(1,n.center.lat),s=[r[0],r[1],r[2]/o,0],a=e.subtract([],i.slice(0,3),s);e.normalize(a,a);const l=this.raycast(s,a,this._exaggeration);return null!==l&&l?(e.scaleAndAdd(s,s,a,l),s[3]=s[2],s[2]*=o,s):null}drawDepth(){const t=this.painter,n=t.context,i=this.proxySourceCache,r=Math.ceil(t.width),o=Math.ceil(t.height);if(!this._depthFBO||this._depthFBO.width===r&&this._depthFBO.height===o||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const t=n.gl,i=n.createFramebuffer(r,o,!0);n.activeTexture.set(t.TEXTURE0);const s=new e.Texture(n,{width:r,height:o,data:null},t.RGBA);s.bind(t.NEAREST,t.CLAMP_TO_EDGE),i.colorAttachment.set(s.texture);const a=n.createRenderbuffer(n.gl.DEPTH_COMPONENT16,r,o);i.depthAttachment.set(a),this._depthFBO=i,this._depthTexture=s}n.bindFramebuffer.set(this._depthFBO.framebuffer),n.viewport.set([0,0,r,o]),function(t,n,i,r){if("globe"===t.transform.projection.name)return;const o=t.context,s=o.gl;o.clear({depth:1});const a=t.useProgram("terrainDepth"),l=new e.DepthMode(s.LESS,e.DepthMode.ReadWrite,t.depthRangeFor3D);for(const c of r){const t=i.getTile(c),r=_n(c.projMatrix,0);n.setupElevationDraw(t,a),a.draw(o,s.TRIANGLES,l,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.backCCW,r,"terrain_depth",n.gridBuffer,n.gridIndexBuffer,n.gridNoSkirtSegments)}}(t,this,i,this.proxyCoords)}_setupProxiedCoordsForOrtho(e,t,n){if(e.getSource()instanceof Me)return this._setupProxiedCoordsForImageSource(e,t,n);this._findCoveringTileCache[e.id]=this._findCoveringTileCache[e.id]||{};const i=this.proxiedCoords[e.id]=[],r=this.proxyCoords;for(let s=0;s<r.length;s++){const t=r[s],o=this._findTileCoveringTileID(t,e);if(o){const r=this._createProxiedId(t,o,n[t.key]&&n[t.key][e.id]);i.push(r),this.proxyToSource[t.key][e.id]=[r]}}let o=!1;for(let s=0;s<t.length;s++){const r=e.getTile(t[s]);if(!r||!r.hasData())continue;const a=this._findTileCoveringTileID(r.tileID,this.proxySourceCache);if(a&&a.tileID.canonical.z!==r.tileID.canonical.z){const t=this.proxyToSource[a.tileID.key][e.id],s=this._createProxiedId(a.tileID,r,n[a.tileID.key]&&n[a.tileID.key][e.id]);t?t.splice(t.length-1,0,s):this.proxyToSource[a.tileID.key][e.id]=[s],i.push(s),o=!0}}this._sourceTilesOverlap[e.id]=o}_setupProxiedCoordsForImageSource(t,n,i){if(!t.getSource().loaded())return;const r=this.proxiedCoords[t.id]=[],o=this.proxyCoords,s=t.getSource(),a=new e.Point(s.tileID.x,s.tileID.y)._div(1<<s.tileID.z),l=s.coordinates.map(e.MercatorCoordinate.fromLngLat).reduce(((e,t)=>(e.min.x=Math.min(e.min.x,t.x-a.x),e.min.y=Math.min(e.min.y,t.y-a.y),e.max.x=Math.max(e.max.x,t.x-a.x),e.max.y=Math.max(e.max.y,t.y-a.y),e)),{min:new e.Point(Number.MAX_VALUE,Number.MAX_VALUE),max:new e.Point(-Number.MAX_VALUE,-Number.MAX_VALUE)}),c=(t,n)=>{const i=t.wrap+t.canonical.x/(1<<t.canonical.z),r=t.canonical.y/(1<<t.canonical.z),o=e.EXTENT/(1<<t.canonical.z),s=n.wrap+n.canonical.x/(1<<n.canonical.z),a=n.canonical.y/(1<<n.canonical.z);return i+o<s+l.min.x||i>s+l.max.x||r+o<a+l.min.y||r>a+l.max.y};for(let e=0;e<o.length;e++){const s=o[e];for(let e=0;e<n.length;e++){const o=t.getTile(n[e]);if(!o||!o.hasData())continue;if(c(s,o.tileID))continue;const a=this._createProxiedId(s,o,i[s.key]&&i[s.key][t.id]),l=this.proxyToSource[s.key][t.id];l?l.push(a):this.proxyToSource[s.key][t.id]=[a],r.push(a)}}}_createProxiedId(t,n,i){let r=this.orthoMatrix;if(i){const e=i.find((e=>e.key===n.tileID.key));if(e)return e}if(n.tileID.key!==t.key){const i=t.canonical.z-n.tileID.canonical.z;let o,s,a;r=e.create();const l=n.tileID.wrap-t.wrap<<t.overscaledZ;i>0?(o=e.EXTENT>>i,s=o*((n.tileID.canonical.x<<i)-t.canonical.x+l),a=o*((n.tileID.canonical.y<<i)-t.canonical.y)):(o=e.EXTENT<<-i,s=e.EXTENT*(n.tileID.canonical.x-(t.canonical.x+l<<-i)),a=e.EXTENT*(n.tileID.canonical.y-(t.canonical.y<<-i))),e.ortho(r,0,o,0,o,0,1),e.translate(r,r,[s,a,0])}return new On(n.tileID,t.key,r)}_findTileCoveringTileID(t,n){let i=n.getTile(t);if(i&&i.hasData())return i;const r=this._findCoveringTileCache[n.id],o=r[t.key];if(i=o?n.getTileByID(o):null,i&&i.hasData()||null===o)return i;let s=i?i.tileID:t,a=s.overscaledZ;const l=n.getSource().minzoom,c=[];if(!o){const r=n.getSource().maxzoom;if(t.canonical.z>=r){const i=t.canonical.z-r;n.getSource().reparseOverscaled?(a=Math.max(t.canonical.z+2,n.transform.tileZoom),s=new e.OverscaledTileID(a,t.wrap,r,t.canonical.x>>i,t.canonical.y>>i)):0!==i&&(a=r,s=new e.OverscaledTileID(a,t.wrap,r,t.canonical.x>>i,t.canonical.y>>i))}s.key!==t.key&&(c.push(s.key),i=n.getTile(s))}const u=e=>{c.forEach((t=>{r[t]=e})),c.length=0};for(a-=1;a>=l&&(!i||!i.hasData());a--){i&&u(i.tileID.key);const e=s.calculateScaledKey(a);if(i=n.getTileByID(e),i&&i.hasData())break;const t=r[e];if(null===t)break;void 0===t?c.push(e):i=n.getTileByID(t)}return u(i?i.tileID.key:null),i&&i.hasData()?i:null}findDEMTileFor(e){return this.enabled?this._findTileCoveringTileID(e,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(e,t){let n=this._tilesDirty[e];n||(n=this._tilesDirty[e]={}),n[t.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const t=function(){let t=0;const n=new e.StructArrayLayout2ui4,i=131;for(let e=1;e<129;e++){for(let r=1;r<129;r++)t=e*i+r,n.emplaceBack(t,t+1),n.emplaceBack(t,t+i),n.emplaceBack(t+1,t+i),128===e&&n.emplaceBack(t+i,t+i+1);n.emplaceBack(t+1,t+1+i)}return n}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(t),this.wireframeSegments=e.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,t.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}class Dn{static cacheKey(e,t,n,i){let r=`${t}${i?i.cacheKey:""}`;for(const o of n)e.usedDefines.includes(o)&&(r+=`/${o}`);return r}constructor(t,n,i,r,o,s){const a=t.gl;this.program=a.createProgram();const l=function(e){const t=[];for(let n=0;n<e.length;n++){if(null===e[n])continue;const i=e[n].split(" ");t.push(i.pop())}return t}(i.staticAttributes),c=r?r.getBinderAttributes():[],u=l.concat(c);let h=r?r.defines():[];h=h.concat(s.map((e=>`#define ${e}`)));const d=t.isWebGL2?"#version 300 es\n":"",p=d+h.concat(t.extStandardDerivatives&&0===d.length?"#extension GL_OES_standard_derivatives : enable\n".concat(cn):cn,cn,ln,an.fragmentSource,on.fragmentSource,i.fragmentSource).join("\n"),f=d+h.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",ln,an.vertexSource,on.vertexSource,rn.vertexSource,i.vertexSource).join("\n"),m=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())return void(this.failedToCreate=!0);a.shaderSource(m,p),a.compileShader(m),a.attachShader(this.program,m);const g=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(g,f),a.compileShader(g),a.attachShader(this.program,g),this.attributes={},this.numAttributes=u.length;for(let e=0;e<this.numAttributes;e++)u[e]&&(a.bindAttribLocation(this.program,e,u[e]),this.attributes[u[e]]=e);a.linkProgram(this.program),a.deleteShader(g),a.deleteShader(m),this.fixedUniforms=o(t),this.binderUniforms=r?r.getUniforms(t):[],s.includes("TERRAIN")&&(this.terrainUniforms=(t=>({u_dem:new e.Uniform1i(t),u_dem_prev:new e.Uniform1i(t),u_dem_unpack:new e.Uniform4f(t),u_dem_tl:new e.Uniform2f(t),u_dem_scale:new e.Uniform1f(t),u_dem_tl_prev:new e.Uniform2f(t),u_dem_scale_prev:new e.Uniform1f(t),u_dem_size:new e.Uniform1f(t),u_dem_lerp:new e.Uniform1f(t),u_exaggeration:new e.Uniform1f(t),u_depth:new e.Uniform1i(t),u_depth_size_inv:new e.Uniform2f(t),u_meter_to_dem:new e.Uniform1f(t),u_label_plane_matrix_inv:new e.UniformMatrix4f(t)}))(t)),s.includes("GLOBE")&&(this.globeUniforms=(t=>({u_tile_tl_up:new e.Uniform3f(t),u_tile_tr_up:new e.Uniform3f(t),u_tile_br_up:new e.Uniform3f(t),u_tile_bl_up:new e.Uniform3f(t),u_tile_up_scale:new e.Uniform1f(t)}))(t)),s.includes("FOG")&&(this.fogUniforms=(t=>({u_fog_matrix:new e.UniformMatrix4f(t),u_fog_range:new e.Uniform2f(t),u_fog_color:new e.Uniform4f(t),u_fog_horizon_blend:new e.Uniform1f(t),u_fog_temporal_offset:new e.Uniform1f(t),u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_globe_pos:new e.Uniform3f(t),u_globe_radius:new e.Uniform1f(t),u_globe_transition:new e.Uniform1f(t),u_is_globe:new e.Uniform1i(t),u_viewport:new e.Uniform2f(t)}))(t))}}setTerrainUniformValues(e,t){if(!this.terrainUniforms)return;const n=this.terrainUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e]&&n[e].set(this.program,e,t[e])}}setGlobeUniformValues(e,t){if(!this.globeUniforms)return;const n=this.globeUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e]&&n[e].set(this.program,e,t[e])}}setFogUniformValues(e,t){if(!this.fogUniforms)return;const n=this.fogUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e].set(this.program,e,t[e])}}draw(e,t,n,i,r,o,s,a,l,c,u,h,d,p,f){const m=e.gl;if(this.failedToCreate)return;e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(i),e.setColorMode(r),e.setCullFace(o);for(const v of Object.keys(this.fixedUniforms))this.fixedUniforms[v].set(this.program,v,s[v]);p&&p.setUniforms(this.program,e,this.binderUniforms,h,{zoom:d});const g={[m.LINES]:2,[m.TRIANGLES]:3,[m.LINE_STRIP]:1}[t];for(const v of u.get()){const n=v.vaos||(v.vaos={});(n[a]||(n[a]=new pn)).bind(e,this,l,p?p.getPaintVertexBuffers():[],c,v.vertexOffset,f||[]),m.drawElements(t,v.primitiveLength*g,m.UNSIGNED_SHORT,v.primitiveOffset*g*2)}}}function Pn(e,t){const n=Math.pow(2,t.tileID.overscaledZ),i=t.tileSize*Math.pow(2,e.transform.tileZoom)/n,r=i*(t.tileID.canonical.x+t.tileID.wrap*n),o=i*t.tileID.canonical.y;return{u_image:0,u_texsize:t.imageAtlasTexture.size,u_tile_units_to_pixels:1/O(t,1,e.transform.tileZoom),u_pixel_coord_upper:[r>>16,o>>16],u_pixel_coord_lower:[65535&r,65535&o]}}const zn=e.create(),Ln=(t,n,i,r,o,s,a,l,c,u,h)=>{const d=n.style.light,p=d.properties.get("position"),f=[p.x,p.y,p.z],m=e.create$1();"viewport"===d.properties.get("anchor")&&(e.fromRotation(m,-n.transform.angle),e.transformMat3(f,f,m));const g=d.properties.get("color"),v=n.transform,y={u_matrix:t,u_lightpos:f,u_lightintensity:d.properties.get("intensity"),u_lightcolor:[g.r,g.g,g.b],u_vertical_gradient:+i,u_opacity:r,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:zn,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:o,u_edge_radius:s};return"globe"===v.projection.name&&(y.u_tile_id=[a.canonical.x,a.canonical.y,1<<a.canonical.z],y.u_zoom_transition=c,y.u_inv_rot_matrix=h,y.u_merc_center=u,y.u_up_dir=v.projection.upVector(new e.CanonicalTileID(0,0,0),u[0]*e.EXTENT,u[1]*e.EXTENT),y.u_height_lift=l),y},Bn=(t,n,i,r,o,s,a,l,c,u,h,d)=>{const p=Ln(t,n,i,r,o,s,a,c,u,h,d),f={u_height_factor:-Math.pow(2,a.overscaledZ)/l.tileSize/8};return e.extend(p,Pn(n,l),f)},Fn=e=>({u_matrix:e}),Rn=(t,n,i)=>e.extend(Fn(t),Pn(n,i)),$n=(e,t)=>({u_matrix:e,u_world:t}),Nn=(t,n,i,r)=>e.extend(Rn(t,n,i),{u_world:r}),jn=e.create(),Vn=(t,n,i,r,o,s)=>{const a=t.transform,l="globe"===a.projection.name;let c;if("map"===s.paint.get("circle-pitch-alignment"))if(l){const t=e.globePixelsToTileUnits(a.zoom,n.canonical)*a._pixelsPerMercatorPixel;c=Float32Array.from([t,0,0,t])}else c=a.calculatePixelsToTileUnitsMatrix(i);else c=new Float32Array([a.pixelsToGLUnits[0],0,0,a.pixelsToGLUnits[1]]);const u={u_camera_to_center_distance:a.cameraToCenterDistance,u_matrix:t.translatePosMatrix(n.projMatrix,i,s.paint.get("circle-translate"),s.paint.get("circle-translate-anchor")),u_device_pixel_ratio:e.exported.devicePixelRatio,u_extrude_scale:c,u_inv_rot_matrix:jn,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(l){u.u_inv_rot_matrix=r,u.u_merc_center=o,u.u_tile_id=[n.canonical.x,n.canonical.y,1<<n.canonical.z],u.u_zoom_transition=e.globeToMercatorTransition(a.zoom);const t=o[0]*e.EXTENT,i=o[1]*e.EXTENT;u.u_up_dir=a.projection.upVector(new e.CanonicalTileID(0,0,0),t,i)}return u},Un=e=>{const t=[];return"map"===e.paint.get("circle-pitch-alignment")&&t.push("PITCH_WITH_MAP"),"map"===e.paint.get("circle-pitch-scale")&&t.push("SCALE_WITH_MAP"),t},qn=(t,n,i,r)=>{const o=e.EXTENT/i.tileSize;return{u_matrix:t,u_camera_to_center_distance:n.getCameraToCenterDistance(r),u_extrude_scale:[n.pixelsToGLUnits[0]/o,n.pixelsToGLUnits[1]/o]}},Hn=(e,t,n=1)=>({u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:n}),Wn=e.create(),Gn=(t,n,i,r,o,s,a)=>{const l=t.transform,c="globe"===l.projection.name,u=c?e.globePixelsToTileUnits(l.zoom,n.canonical)*l._pixelsPerMercatorPixel:O(i,1,s),h={u_matrix:n.projMatrix,u_extrude_scale:u,u_intensity:a,u_inv_rot_matrix:Wn,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(c){h.u_inv_rot_matrix=r,h.u_merc_center=o,h.u_tile_id=[n.canonical.x,n.canonical.y,1<<n.canonical.z],h.u_zoom_transition=e.globeToMercatorTransition(l.zoom);const t=o[0]*e.EXTENT,i=o[1]*e.EXTENT;h.u_up_dir=l.projection.upVector(new e.CanonicalTileID(0,0,0),t,i)}return h},Zn=(e,t,n,i,r,o,s)=>{const a=e.transform,l=a.calculatePixelsToTileUnitsMatrix(t);return{u_matrix:Yn(e,t,n,i),u_pixels_to_tile_units:l,u_device_pixel_ratio:o,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:r,u_texsize:Jn(n)?t.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:Kn(t,e.transform),u_alpha_discard_threshold:0,u_trim_offset:s}},Xn=(e,t,n,i,r)=>{const o=e.transform;return{u_matrix:Yn(e,t,n,i),u_texsize:t.imageAtlasTexture.size,u_pixels_to_tile_units:o.calculatePixelsToTileUnitsMatrix(t),u_device_pixel_ratio:r,u_image:0,u_tile_units_to_pixels:Kn(t,o),u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function Kn(e,t){return 1/O(e,1,t.tileZoom)}function Yn(e,t,n,i){return e.translatePosMatrix(i||t.tileID.projMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}function Jn(e){const t=e.paint.get("line-dasharray").value;return t.value||"constant"!==t.kind}const Qn=(e,t,n,i,r,o)=>{return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_fade_t:i.mix,u_opacity:i.opacity*r.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:r.paint.get("raster-brightness-min"),u_brightness_high:r.paint.get("raster-brightness-max"),u_saturation_factor:(a=r.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(s=r.paint.get("raster-contrast"),s>0?1/(1-s):1+s),u_spin_weights:ei(r.paint.get("raster-hue-rotate")),u_perspective_transform:o};var s,a};function ei(e){e*=Math.PI/180;const 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]}const ti=e.create(),ni=(t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g)=>{const v=o.transform,y={u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:n?n.uSizeT:0,u_size:n?n.uSize:0,u_camera_to_center_distance:v.cameraToCenterDistance,u_rotate_symbol:+i,u_aspect_ratio:v.width/v.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:a,u_coord_matrix:l,u_is_text:+c,u_pitch_with_map:+r,u_texsize:u,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:ti,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:ti,u_up_vector:[0,-1,0]};return"globe"===g.name&&(y.u_tile_id=[h.canonical.x,h.canonical.y,1<<h.canonical.z],y.u_zoom_transition=d,y.u_inv_rot_matrix=f,y.u_merc_center=p,y.u_camera_forward=v._camera.forward(),y.u_ecef_origin=e.globeECEFOrigin(v.globeMatrix,h.toUnwrapped()),y.u_tile_matrix=Float32Array.from(v.globeMatrix),y.u_up_vector=m),y},ii=(t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,v)=>e.extend(ni(t,n,i,r,o,s,a,l,c,u,d,p,f,m,g,v),{u_gamma_scale:r?o.transform.cameraToCenterDistance*Math.cos(o.terrain?0:o.transform._pitch):1,u_device_pixel_ratio:e.exported.devicePixelRatio,u_is_halo:+h}),ri=(t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g)=>e.extend(ii(t,n,i,r,o,s,a,l,!0,c,!0,h,d,p,f,m,g),{u_texsize_icon:u,u_texture_icon:1}),oi=(e,t,n)=>({u_matrix:e,u_opacity:t,u_color:n}),si=(t,n,i,r,o)=>e.extend(function(e,t,n){const i=t.imageManager.getPattern(e.toString()),{width:r,height:o}=t.imageManager.getPixelSize(),s=Math.pow(2,n.tileID.overscaledZ),a=n.tileSize*Math.pow(2,t.transform.tileZoom)/s,l=a*(n.tileID.canonical.x+n.tileID.wrap*s),c=a*n.tileID.canonical.y;return{u_image:0,u_pattern_tl:i.tl,u_pattern_br:i.br,u_texsize:[r,o],u_pattern_size:i.displaySize,u_tile_units_to_pixels:1/O(n,1,t.transform.tileZoom),u_pixel_coord_upper:[l>>16,c>>16],u_pixel_coord_lower:[65535&l,65535&c]}}(r,i,o),{u_matrix:t,u_opacity:n}),ai={fillExtrusion:t=>({u_matrix:new e.UniformMatrix4f(t),u_lightpos:new e.Uniform3f(t),u_lightintensity:new e.Uniform1f(t),u_lightcolor:new e.Uniform3f(t),u_vertical_gradient:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_edge_radius:new e.Uniform1f(t),u_ao:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_up_dir:new e.Uniform3f(t),u_height_lift:new e.Uniform1f(t)}),fillExtrusionPattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_lightpos:new e.Uniform3f(t),u_lightintensity:new e.Uniform1f(t),u_lightcolor:new e.Uniform3f(t),u_vertical_gradient:new e.Uniform1f(t),u_height_factor:new e.Uniform1f(t),u_edge_radius:new e.Uniform1f(t),u_ao:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_up_dir:new e.Uniform3f(t),u_height_lift:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_tile_units_to_pixels:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t)}),fill:t=>({u_matrix:new e.UniformMatrix4f(t)}),fillPattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_tile_units_to_pixels:new e.Uniform1f(t)}),fillOutline:t=>({u_matrix:new e.UniformMatrix4f(t),u_world:new e.Uniform2f(t)}),fillOutlinePattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_world:new e.Uniform2f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_tile_units_to_pixels:new e.Uniform1f(t)}),circle:t=>({u_camera_to_center_distance:new e.Uniform1f(t),u_extrude_scale:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_up_dir:new e.Uniform3f(t)}),collisionBox:t=>({u_matrix:new e.UniformMatrix4f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_extrude_scale:new e.Uniform2f(t)}),collisionCircle:t=>({u_matrix:new e.UniformMatrix4f(t),u_inv_matrix:new e.UniformMatrix4f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_viewport_size:new e.Uniform2f(t)}),debug:t=>({u_color:new e.UniformColor(t),u_matrix:new e.UniformMatrix4f(t),u_overlay:new e.Uniform1i(t),u_overlay_scale:new e.Uniform1f(t)}),clippingMask:t=>({u_matrix:new e.UniformMatrix4f(t)}),heatmap:t=>({u_extrude_scale:new e.Uniform1f(t),u_intensity:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_up_dir:new e.Uniform3f(t)}),heatmapTexture:t=>({u_image:new e.Uniform1i(t),u_color_ramp:new e.Uniform1i(t),u_opacity:new e.Uniform1f(t)}),hillshade:t=>({u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_latrange:new e.Uniform2f(t),u_light:new e.Uniform2f(t),u_shadow:new e.UniformColor(t),u_highlight:new e.UniformColor(t),u_accent:new e.UniformColor(t)}),hillshadePrepare:t=>({u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_dimension:new e.Uniform2f(t),u_zoom:new e.Uniform1f(t),u_unpack:new e.Uniform4f(t)}),line:t=>({u_matrix:new e.UniformMatrix4f(t),u_pixels_to_tile_units:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_units_to_pixels:new e.Uniform2f(t),u_dash_image:new e.Uniform1i(t),u_gradient_image:new e.Uniform1i(t),u_image_height:new e.Uniform1f(t),u_texsize:new e.Uniform2f(t),u_tile_units_to_pixels:new e.Uniform1f(t),u_alpha_discard_threshold:new e.Uniform1f(t),u_trim_offset:new e.Uniform2f(t)}),linePattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_texsize:new e.Uniform2f(t),u_pixels_to_tile_units:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_units_to_pixels:new e.Uniform2f(t),u_tile_units_to_pixels:new e.Uniform1f(t),u_alpha_discard_threshold:new e.Uniform1f(t)}),raster:t=>({u_matrix:new e.UniformMatrix4f(t),u_tl_parent:new e.Uniform2f(t),u_scale_parent:new e.Uniform1f(t),u_fade_t:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_image0:new e.Uniform1i(t),u_image1:new e.Uniform1i(t),u_brightness_low:new e.Uniform1f(t),u_brightness_high:new e.Uniform1f(t),u_saturation_factor:new e.Uniform1f(t),u_contrast_factor:new e.Uniform1f(t),u_spin_weights:new e.Uniform3f(t),u_perspective_transform:new e.Uniform2f(t)}),symbolIcon:t=>({u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_camera_forward:new e.Uniform3f(t),u_tile_matrix:new e.UniformMatrix4f(t),u_up_vector:new e.Uniform3f(t),u_ecef_origin:new e.Uniform3f(t),u_texture:new e.Uniform1i(t)}),symbolSDF:t=>({u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_texture:new e.Uniform1i(t),u_gamma_scale:new e.Uniform1f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_camera_forward:new e.Uniform3f(t),u_tile_matrix:new e.UniformMatrix4f(t),u_up_vector:new e.Uniform3f(t),u_ecef_origin:new e.Uniform3f(t),u_is_halo:new e.Uniform1i(t)}),symbolTextAndIcon:t=>({u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_texsize_icon:new e.Uniform2f(t),u_texture:new e.Uniform1i(t),u_texture_icon:new e.Uniform1i(t),u_gamma_scale:new e.Uniform1f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_is_halo:new e.Uniform1i(t)}),background:t=>({u_matrix:new e.UniformMatrix4f(t),u_opacity:new e.Uniform1f(t),u_color:new e.UniformColor(t)}),backgroundPattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_opacity:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_pattern_tl:new e.Uniform2f(t),u_pattern_br:new e.Uniform2f(t),u_texsize:new e.Uniform2f(t),u_pattern_size:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_tile_units_to_pixels:new e.Uniform1f(t)}),terrainRaster:yn,terrainDepth:yn,skybox:t=>({u_matrix:new e.UniformMatrix4f(t),u_sun_direction:new e.Uniform3f(t),u_cubemap:new e.Uniform1i(t),u_opacity:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t)}),skyboxGradient:t=>({u_matrix:new e.UniformMatrix4f(t),u_color_ramp:new e.Uniform1i(t),u_center_direction:new e.Uniform3f(t),u_radius:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t)}),skyboxCapture:t=>({u_matrix_3f:new e.UniformMatrix3f(t),u_sun_direction:new e.Uniform3f(t),u_sun_intensity:new e.Uniform1f(t),u_color_tint_r:new e.Uniform4f(t),u_color_tint_m:new e.Uniform4f(t),u_luminance:new e.Uniform1f(t)}),globeRaster:t=>({u_proj_matrix:new e.UniformMatrix4f(t),u_globe_matrix:new e.UniformMatrix4f(t),u_normalize_matrix:new e.UniformMatrix4f(t),u_merc_matrix:new e.UniformMatrix4f(t),u_zoom_transition:new e.Uniform1f(t),u_merc_center:new e.Uniform2f(t),u_image0:new e.Uniform1i(t),u_grid_matrix:new e.UniformMatrix3f(t),u_skirt_height:new e.Uniform1f(t),u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_globe_pos:new e.Uniform3f(t),u_globe_radius:new e.Uniform1f(t),u_viewport:new e.Uniform2f(t)}),globeAtmosphere:t=>({u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_horizon:new e.Uniform1f(t),u_transition:new e.Uniform1f(t),u_fadeout_range:new e.Uniform1f(t),u_color:new e.Uniform4f(t),u_high_color:new e.Uniform4f(t),u_space_color:new e.Uniform4f(t),u_star_intensity:new e.Uniform1f(t),u_star_density:new e.Uniform1f(t),u_star_size:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t),u_horizon_angle:new e.Uniform1f(t),u_rotation_matrix:new e.UniformMatrix4f(t)})};let li;function ci(t,n,i,r,o,s,a){const l=t.context,c=l.gl,u=t.transform,h=t.useProgram("collisionBox"),d=[];let p=0,f=0;for(let x=0;x<r.length;x++){const m=r[x],g=n.getTile(m),v=g.getBucket(i);if(!v)continue;const y=yt(m,v,u);let _=y;0===o[0]&&0===o[1]||(_=t.translatePosMatrix(y,g,o,s));const b=a?v.textCollisionBox:v.iconCollisionBox,w=v.collisionCircleArray;if(w.length>0){const t=e.create(),n=_;e.mul(t,v.placementInvProjMatrix,u.glCoordMatrix),e.mul(t,t,v.placementViewportMatrix),d.push({circleArray:w,circleOffset:f,transform:n,invTransform:t,projection:v.getProjection()}),p+=w.length/4,f=p}b&&(t.terrain&&t.terrain.setupElevationDraw(g,h),h.draw(l,c.LINES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,qn(_,u,g,v.getProjection()),i.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,u.zoom,null,[b.collisionVertexBuffer,b.collisionVertexBufferExt]))}if(!a||!d.length)return;const m=t.useProgram("collisionCircle"),g=new e.StructArrayLayout2f1f2i16;g.resize(4*p),g._trim();let v=0;for(const e of d)for(let t=0;t<e.circleArray.length/4;t++){const n=4*t,i=e.circleArray[n+0],r=e.circleArray[n+1],o=e.circleArray[n+2],s=e.circleArray[n+3];g.emplace(v++,i,r,o,s,0),g.emplace(v++,i,r,o,s,1),g.emplace(v++,i,r,o,s,2),g.emplace(v++,i,r,o,s,3)}(!li||li.length<2*p)&&(li=function(t){const n=2*t,i=new e.StructArrayLayout3ui6;i.resize(n),i._trim();for(let e=0;e<n;e++){const t=6*e;i.uint16[t+0]=4*e+0,i.uint16[t+1]=4*e+1,i.uint16[t+2]=4*e+2,i.uint16[t+3]=4*e+2,i.uint16[t+4]=4*e+3,i.uint16[t+5]=4*e+0}return i}(p));const y=l.createIndexBuffer(li,!0),_=l.createVertexBuffer(g,e.collisionCircleLayout.members,!0);for(const x of d){const n={u_matrix:x.transform,u_inv_matrix:x.invTransform,u_camera_to_center_distance:(b=u).getCameraToCenterDistance(x.projection),u_viewport_size:[b.width,b.height]};m.draw(l,c.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,n,i.id,_,y,e.SegmentVector.simpleSegment(0,2*x.circleOffset,x.circleArray.length,x.circleArray.length/2),null,u.zoom)}var b;_.destroy(),y.destroy()}const ui=e.create();function hi({width:t,height:n,anchor:i,textOffset:r,textScale:o},s){const{horizontalAlign:a,verticalAlign:l}=e.getAnchorAlignment(i),c=-(a-.5)*t,u=-(l-.5)*n,h=e.evaluateVariableOffset(i,r);return new e.Point((c/o+h[0])*s,(u/o+h[1])*s)}function di(t,n,i,r,o,s,a,l,c,u,h){const d=t.text.placedSymbolArray,p=t.text.dynamicLayoutVertexArray,f=t.icon.dynamicLayoutVertexArray,m={},g=t.getProjection(),v=_t(l,g,s),y=s.elevation,_=g.upVectorScale(l.canonical,s.center.lat,s.worldSize).metersToTile;p.clear();for(let b=0;b<d.length;b++){const f=d.get(b),{tileAnchorX:x,tileAnchorY:w,numGlyphs:C}=f,k=f.hidden||!f.crossTileID||t.allowVerticalPlacement&&!f.placedOrientation?null:r[f.crossTileID];if(k){let r=0,d=0,b=0;if(y){const e=y?y.getAtTileOffset(l,x,w):0,[t,n,i]=g.upVector(l.canonical,x,w);r=e*t*_,d=e*n*_,b=e*i*_}let[S,E,T,M]=it(f.projectedAnchorX+r,f.projectedAnchorY+d,f.projectedAnchorZ+b,i?v:a);const A=rt(s.getCameraToCenterDistance(g),M);let O=o.evaluateSizeForFeature(t.textSizeData,u,f)*A/e.ONE_EM;i&&(O*=t.tilePixelRatio/c);const I=hi(k,O);i?(({x:S,y:E,z:T}=g.projectTilePoint(x+I.x,w+I.y,l.canonical)),[S,E,T]=it(S+r,E+d,T+b,a)):(n&&I._rotate(-s.angle),S+=I.x,E+=I.y,T=0);const D=t.allowVerticalPlacement&&f.placedOrientation===e.WritingMode.vertical?Math.PI/2:0;for(let t=0;t<C;t++)e.addDynamicAttributes(p,S,E,T,D);h&&f.associatedIconIndex>=0&&(m[f.associatedIconIndex]={x:S,y:E,z:T,angle:D})}else pt(C,p)}if(h){f.clear();const n=t.icon.placedSymbolArray;for(let t=0;t<n.length;t++){const i=n.get(t),{numGlyphs:r}=i,o=m[t];if(i.hidden||!o)pt(r,f);else{const{x:t,y:n,z:i,angle:s}=o;for(let o=0;o<r;o++)e.addDynamicAttributes(f,t,n,i,s)}}t.icon.dynamicLayoutVertexBuffer.updateData(f)}t.text.dynamicLayoutVertexBuffer.updateData(p)}function pi(e,t,n){return n.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function fi(t,n,i,r,o,s,a,l,c,u,h,d){const p=t.context,f=p.gl,m=t.transform,g="map"===l,v="map"===c,y=g&&"point"!==i.layout.get("symbol-placement"),_=g&&!v&&!y,b=void 0!==i.layout.get("symbol-sort-key").constantOr(1);let x=!1;const w=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),C=[e.mercatorXfromLng(m.center.lng),e.mercatorYfromLat(m.center.lat)],k=i.layout.get("text-variable-anchor"),S="globe"===m.projection.name,E=[],T=[0,-1,0];let M=T;!S&&!m.mercatorFromTransition||g||(M=function(t){const n=t._camera.getWorldToCamera(t.worldSize,1),i=e.multiply([],n,t.globeMatrix);e.invert(i,i);const r=[0,0,0],o=[0,1,0,0];return e.transformMat4$1(o,o,i),r[0]=o[0],r[1]=o[1],r[2]=o[2],e.normalize(r,r),r}(m));for(const A of r){const r=n.getTile(A),l=r.getBucket(i);if(!l)continue;if("mercator"===l.projection.name&&S)continue;const c=o?l.text:l.icon;if(!c||l.fullyClipped||!c.segments.get().length)continue;const h=c.programConfigurations.get(i.id),d=o||l.sdfIcons,p=o?l.textSizeData:l.iconSizeData,w=v||0!==m.pitch,O=e.evaluateSizeForZoom(p,m.zoom);let I,D,P,z,L=[0,0],B=null;if(o)D=r.glyphAtlasTexture,P=f.LINEAR,I=r.glyphAtlasTexture.size,l.iconsInText&&(L=r.imageAtlasTexture.size,B=r.imageAtlasTexture,z=w||t.options.rotating||t.options.zooming||"composite"===p.kind||"camera"===p.kind?f.LINEAR:f.NEAREST);else{const e=1!==i.layout.get("icon-size").constantOr(0)||l.iconsNeedLinear;D=r.imageAtlasTexture,P=d||t.options.rotating||t.options.zooming||e||w?f.LINEAR:f.NEAREST,I=r.imageAtlasTexture.size}const F="globe"===l.projection.name,R=F?M:T,$=F?e.globeToMercatorTransition(m.zoom):0,N=_t(A,l.getProjection(),m),j=m.calculatePixelsToTileUnitsMatrix(r),V=et(N,r.tileID.canonical,v,g,m,l.getProjection(),j),U=t.terrain&&v&&y?e.invert(e.create(),V):ui,q=nt(N,r.tileID.canonical,v,g,m,l.getProjection(),j),H=k&&l.hasTextData(),W="none"!==i.layout.get("icon-text-fit")&&H&&l.hasIconData();if(y){const e=m.elevation,n=e?e.getAtTileOffsetFunc(A,m.center.lat,m.worldSize,l.getProjection()):null,i=tt(N,r.tileID.canonical,v,g,m,l.getProjection(),j);st(l,N,t,o,i,q,v,u,n,A)}const G=y||o&&k||W,Z=t.translatePosMatrix(N,r,s,a),X=G?ui:V,K=t.translatePosMatrix(q,r,s,a,!0),Y=l.getProjection().createInversionMatrix(m,A.canonical),J=[];t.terrainRenderModeElevated()&&v&&J.push("PITCH_WITH_MAP_TERRAIN"),F&&J.push("PROJECTION_GLOBE_VIEW"),G&&J.push("PROJECTED_POS_ON_VIEWPORT");const Q=d&&0!==i.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1);let ee;ee=d?l.iconsInText?ri(p.kind,O,_,v,t,Z,X,K,I,L,A,$,C,Y,R,l.getProjection()):ii(p.kind,O,_,v,t,Z,X,K,o,I,!0,A,$,C,Y,R,l.getProjection()):ni(p.kind,O,_,v,t,Z,X,K,o,I,A,$,C,Y,R,l.getProjection());const te={program:t.useProgram(pi(d,o,l),h,J),buffers:c,uniformValues:ee,atlasTexture:D,atlasTextureIcon:B,atlasInterpolation:P,atlasInterpolationIcon:z,isSDF:d,hasHalo:Q,tile:r,labelPlaneMatrixInv:U};if(b&&l.canOverlap){x=!0;const t=c.segments.get();for(const n of t)E.push({segments:new e.SegmentVector([n]),sortKey:n.sortKey,state:te})}else E.push({segments:c.segments,sortKey:0,state:te})}x&&E.sort(((e,t)=>e.sortKey-t.sortKey));for(const e of E){const n=e.state;if(t.terrain&&t.terrain.setupElevationDraw(n.tile,n.program,{useDepthForOcclusion:!S,labelPlaneMatrixInv:n.labelPlaneMatrixInv}),p.activeTexture.set(f.TEXTURE0),n.atlasTexture.bind(n.atlasInterpolation,f.CLAMP_TO_EDGE),n.atlasTextureIcon&&(p.activeTexture.set(f.TEXTURE1),n.atlasTextureIcon&&n.atlasTextureIcon.bind(n.atlasInterpolationIcon,f.CLAMP_TO_EDGE)),n.isSDF){const r=n.uniformValues;n.hasHalo&&(r.u_is_halo=1,mi(n.buffers,e.segments,i,t,n.program,w,h,d,r)),r.u_is_halo=0}mi(n.buffers,e.segments,i,t,n.program,w,h,d,n.uniformValues)}}function mi(t,n,i,r,o,s,a,l,c){const u=r.context,h=[t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer,t.globeExtVertexBuffer];o.draw(u,u.gl.TRIANGLES,s,a,l,e.CullFaceMode.disabled,c,i.id,t.layoutVertexBuffer,t.indexBuffer,n,i.paint,r.transform.zoom,t.programConfigurations.get(i.id),h)}function gi(t,n,i,r,o,s,a){const l=t.context.gl,c=i.paint.get("fill-pattern"),u=c&&c.constantOr(1);let h,d,p,f,m;a?(d=u&&!i.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",h=l.LINES):(d=u?"fillPattern":"fill",h=l.TRIANGLES);for(const g of r){const r=n.getTile(g);if(u&&!r.patternsLoaded())continue;const v=r.getBucket(i);if(!v)continue;t.prepareDrawTile();const y=v.programConfigurations.get(i.id),_=t.useProgram(d,y);u&&(t.context.activeTexture.set(l.TEXTURE0),r.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers());const b=c.constantOr(null);if(b&&r.imageAtlas){const e=r.imageAtlas.patternPositions[b.toString()];e&&y.setConstantPatternPositions(e)}const x=t.translatePosMatrix(g.projMatrix,r,i.paint.get("fill-translate"),i.paint.get("fill-translate-anchor"));if(a){f=v.indexBuffer2,m=v.segments2;const e=t.terrain&&t.terrain.renderingToTexture?t.terrain.drapeBufferSize:[l.drawingBufferWidth,l.drawingBufferHeight];p="fillOutlinePattern"===d&&u?Nn(x,t,r,e):$n(x,e)}else f=v.indexBuffer,m=v.segments,p=u?Rn(x,t,r):Fn(x);t.prepareDrawProgram(t.context,_,g.toUnwrapped()),_.draw(t.context,h,o,t.stencilModeForClipping(g),s,e.CullFaceMode.disabled,p,i.id,v.layoutVertexBuffer,f,m,i.paint,t.transform.zoom,y)}}function vi(t,n,i,r,o,s,a){const l=t.context,c=l.gl,u=t.transform,h=i.paint.get("fill-extrusion-pattern"),d=h.constantOr(1),p=i.paint.get("fill-extrusion-opacity"),f=[i.paint.get("fill-extrusion-ambient-occlusion-intensity"),i.paint.get("fill-extrusion-ambient-occlusion-radius")],m=i.layout.get("fill-extrusion-edge-radius"),g=m>0&&!i.paint.get("fill-extrusion-rounded-roof"),v=g?0:m,y="globe"===u.projection.name?e.fillExtrusionHeightLift():0,_="globe"===u.projection.name,b=_?e.globeToMercatorTransition(u.zoom):0,x=[e.mercatorXfromLng(u.center.lng),e.mercatorYfromLat(u.center.lat)],w=[];_&&w.push("PROJECTION_GLOBE_VIEW"),f[0]>0&&w.push("FAUX_AO"),g&&w.push("ZERO_ROOF_RADIUS");for(const C of r){const r=n.getTile(C),m=r.getBucket(i);if(!m||m.projection.name!==u.projection.name)continue;const g=m.programConfigurations.get(i.id),k=t.useProgram(d?"fillExtrusionPattern":"fillExtrusion",g,w);if(t.terrain){const e=t.terrain;if(t.style.terrainSetForDrapingOnly())e.setupElevationDraw(r,k,{useMeterToDem:!0});else{if(!m.enableTerrain)continue;if(e.setupElevationDraw(r,k,{useMeterToDem:!0}),yi(l,n,C,m,i,e),!m.centroidVertexBuffer){const e=k.attributes.a_centroid_pos;void 0!==e&&c.vertexAttrib2f(e,0,0)}}}d&&(t.context.activeTexture.set(c.TEXTURE0),r.imageAtlasTexture.bind(c.LINEAR,c.CLAMP_TO_EDGE),g.updatePaintBuffers());const S=h.constantOr(null);if(S&&r.imageAtlas){const e=r.imageAtlas.patternPositions[S.toString()];e&&g.setConstantPatternPositions(e)}const E=t.translatePosMatrix(C.projMatrix,r,i.paint.get("fill-extrusion-translate"),i.paint.get("fill-extrusion-translate-anchor")),T=u.projection.createInversionMatrix(u,C.canonical),M=i.paint.get("fill-extrusion-vertical-gradient"),A=d?Bn(E,t,M,p,f,v,C,r,y,b,x,T):Ln(E,t,M,p,f,v,C,y,b,x,T);t.prepareDrawProgram(l,k,C.toUnwrapped());const O=[];t.terrain&&O.push(m.centroidVertexBuffer),_&&O.push(m.layoutVertexExtBuffer),k.draw(l,l.gl.TRIANGLES,o,s,a,e.CullFaceMode.backCCW,A,i.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,i.paint,t.transform.zoom,g,O)}}function yi(t,n,i,r,o,s){const a=[t=>{let n=t.canonical.x-1,i=t.wrap;return n<0&&(n=(1<<t.canonical.z)-1,i--),new e.OverscaledTileID(t.overscaledZ,i,t.canonical.z,n,t.canonical.y)},t=>{let n=t.canonical.x+1,i=t.wrap;return n===1<<t.canonical.z&&(n=0,i++),new e.OverscaledTileID(t.overscaledZ,i,t.canonical.z,n,t.canonical.y)},t=>new e.OverscaledTileID(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,(0===t.canonical.y?1<<t.canonical.z:t.canonical.y)-1),t=>new e.OverscaledTileID(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y===(1<<t.canonical.z)-1?0:t.canonical.y+1)],l=e=>{const t=n.getSource().minzoom,i=e=>{const t=n.getTileByID(e);if(t&&t.hasData())return t.getBucket(o)},r=[0,-1,1];for(const n of r){if(e.overscaledZ+n<t)continue;const r=i(e.calculateScaledKey(e.overscaledZ+n));if(r)return r}},c=[0,0,0],u=(t,n)=>(c[0]=Math.min(t.min.y,n.min.y),c[1]=Math.max(t.max.y,n.max.y),c[2]=e.EXTENT-n.min.x>t.max.x?n.min.x-e.EXTENT:t.max.x,c),h=(t,n)=>(c[0]=Math.min(t.min.x,n.min.x),c[1]=Math.max(t.max.x,n.max.x),c[2]=e.EXTENT-n.min.y>t.max.y?n.min.y-e.EXTENT:t.max.y,c),d=[(e,t)=>u(e,t),(e,t)=>u(t,e),(e,t)=>h(e,t),(e,t)=>h(t,e)],p=new e.Point(0,0);let f,m,g;const v=(t,n,r,o,a)=>{const l=[[o?r:t,o?t:r,0],[o?r:n,o?n:r,0]],c=a<0?e.EXTENT+a:a,u=[o?c:(t+n)/2,o?(t+n)/2:c,0];return 0===r&&a<0||0!==r&&a>0?s.getForTilePoints(g,[u],!0,m):l.push(u),s.getForTilePoints(i,l,!0,f),Math.max(l[0][2],l[1][2],u[2])/s.exaggeration()};for(let y=0;y<4;y++){const t=(y<2?1:5)-y,n=r.borders[y];if(0===n.length)continue;const o=g=a[y](i),c=l(o);if(!(c&&c instanceof e.FillExtrusionBucket&&c.enableTerrain))continue;if(r.borderDoneWithNeighborZ[y]===c.canonical.z&&c.borderDoneWithNeighborZ[t]===r.canonical.z)continue;if(m=s.findDEMTileFor(o),!m||!m.dem)continue;if(!f){const e=s.findDEMTileFor(i);if(!e||!e.dem)return;f=e}const u=c.borders[t];let h=0;const _=c.borderDoneWithNeighborZ[t]!==r.canonical.z;if(r.canonical.z===c.canonical.z){for(let i=0;i<n.length;i++){const o=r.featuresOnBorder[n[i]],s=o.borders[y];let a;for(;h<u.length&&(a=c.featuresOnBorder[u[h]],!(a.borders[t][1]>s[0]+3));)_&&c.encodeCentroid(void 0,a,!1),h++;if(a&&h<u.length){const n=h;let i=0;for(;!(a.borders[t][0]>s[1]-3)&&(i++,++h!==u.length);)a=c.featuresOnBorder[u[h]];if(a=c.featuresOnBorder[u[n]],o.intersectsCount()>1||a.intersectsCount()>1||1!==i){1!==i&&(h=n),r.encodeCentroid(void 0,o,!1),_&&c.encodeCentroid(void 0,a,!1);continue}const l=d[y](o,a),f=y%2?e.EXTENT-1:0;p.x=v(l[0],Math.min(e.EXTENT-1,l[1]),f,y<2,l[2]),p.y=0,r.encodeCentroid(p,o,!1),_&&c.encodeCentroid(p,a,!1)}else r.encodeCentroid(void 0,o,!1)}r.borderDoneWithNeighborZ[y]=c.canonical.z,r.needsCentroidUpdate=!0,_&&(c.borderDoneWithNeighborZ[t]=r.canonical.z,c.needsCentroidUpdate=!0)}else{for(const e of n)r.encodeCentroid(void 0,r.featuresOnBorder[e],!1);if(_){for(const e of u)c.encodeCentroid(void 0,c.featuresOnBorder[e],!1);c.borderDoneWithNeighborZ[t]=r.canonical.z,c.needsCentroidUpdate=!0}r.borderDoneWithNeighborZ[y]=c.canonical.z,r.needsCentroidUpdate=!0}}(r.needsCentroidUpdate||!r.centroidVertexBuffer&&0!==r.centroidVertexArray.length)&&r.uploadCentroid(t)}const _i=new e.Color(1,0,0,1),bi=new e.Color(0,1,0,1),xi=new e.Color(0,0,1,1),wi=new e.Color(1,0,1,1),Ci=new e.Color(0,1,1,1);function ki(t,n,i){const r=t.context,o=t.transform,s=r.gl,a="globe"===o.projection.name,l=a?["PROJECTION_GLOBE_VIEW"]:null;let c=i.projMatrix;if(a&&e.globeToMercatorTransition(o.zoom)>0){const t=e.transitionTileAABBinECEF(i.canonical,o),n=e.globeDenormalizeECEF(t);c=e.multiply(new Float32Array(16),o.globeMatrix,n),e.multiply(c,o.projMatrix,c)}const u=t.useProgram("debug",null,l),h=n.getTileByID(i.key);t.terrain&&t.terrain.setupElevationDraw(h,u);const d=e.DepthMode.disabled,p=e.StencilMode.disabled,f=t.colorModeForRenderPass(),m="$debug";r.activeTexture.set(s.TEXTURE0),t.emptyTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),a?h._makeGlobeTileDebugBuffers(t.context,o):h._makeDebugTileBoundsBuffers(t.context,o.projection);const g=h._tileDebugBuffer||t.debugBuffer,v=h._tileDebugIndexBuffer||t.debugIndexBuffer,y=h._tileDebugSegments||t.debugSegments;u.draw(r,s.LINE_STRIP,d,p,f,e.CullFaceMode.disabled,Hn(c,e.Color.red),m,g,v,y,null,null,null,[h._globeTileDebugBorderBuffer]);const _=h.latestRawTileData,b=Math.floor((_&&_.byteLength||0)/1024),x=n.getTile(i).tileSize,w=512/Math.min(x,512)*(i.overscaledZ/o.zoom)*.5;let C=i.canonical.toString();i.overscaledZ!==i.canonical.z&&(C+=` => ${i.overscaledZ}`),C+=` ${b}kb`,function(e,t){e.initDebugOverlayCanvas();const n=e.debugOverlayCanvas,i=e.context.gl,r=e.debugOverlayCanvas.getContext("2d");r.clearRect(0,0,n.width,n.height),r.shadowColor="white",r.shadowBlur=2,r.lineWidth=1.5,r.strokeStyle="white",r.textBaseline="top",r.font="bold 36px Open Sans, sans-serif",r.fillText(t,5,5),r.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}(t,C);const k=h._tileDebugTextBuffer||t.debugBuffer,S=h._tileDebugTextIndexBuffer||t.quadTriangleIndexBuffer,E=h._tileDebugTextSegments||t.debugSegments;u.draw(r,s.TRIANGLES,d,p,e.ColorMode.alphaBlended,e.CullFaceMode.disabled,Hn(c,e.Color.transparent,w),m,k,S,E,null,null,null,[h._globeTileDebugTextBuffer])}function Si(e,t,n,i){Ti(e,0,t+n/2,e.transform.width,n,i)}function Ei(e,t,n,i){Ti(e,t-n/2,0,n,e.transform.height,i)}function Ti(t,n,i,r,o,s){const a=t.context,l=a.gl;l.enable(l.SCISSOR_TEST),l.scissor(n*e.exported.devicePixelRatio,i*e.exported.devicePixelRatio,r*e.exported.devicePixelRatio,o*e.exported.devicePixelRatio),a.clear({color:s}),l.disable(l.SCISSOR_TEST)}const Mi=e.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:Ai}=Mi;function Oi(e,t,n,i){e.emplaceBack(t,n,i)}class Ii{constructor(t){this.vertexArray=new e.StructArrayLayout3f12,this.indices=new e.StructArrayLayout3ui6,Oi(this.vertexArray,-1,-1,1),Oi(this.vertexArray,1,-1,1),Oi(this.vertexArray,-1,1,1),Oi(this.vertexArray,1,1,1),Oi(this.vertexArray,-1,-1,-1),Oi(this.vertexArray,1,-1,-1),Oi(this.vertexArray,-1,1,-1),Oi(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=t.createVertexBuffer(this.vertexArray,Ai),this.indexBuffer=t.createIndexBuffer(this.indices),this.segment=e.SegmentVector.simpleSegment(0,0,36,12)}}function Di(t,n,i,r,o,s){const a=t.gl,l=n.paint.get("sky-atmosphere-color"),c=n.paint.get("sky-atmosphere-halo-color"),u=n.paint.get("sky-atmosphere-sun-intensity"),h=((e,t,n,i,r)=>({u_matrix_3f:e,u_sun_direction:t,u_sun_intensity:n,u_color_tint_r:[i.r,i.g,i.b,i.a],u_color_tint_m:[r.r,r.g,r.b,r.a],u_luminance:5e-5}))(e.fromMat4(e.create$1(),r),o,u,l,c);a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_CUBE_MAP_POSITIVE_X+s,n.skyboxTexture,0),i.draw(t,a.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.frontCW,h,"skyboxCapture",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}const Pi=e.createLayout([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class zi{constructor(t){const n=new e.StructArrayLayout5f20;n.emplaceBack(-1,1,1,0,0),n.emplaceBack(1,1,1,1,0),n.emplaceBack(1,-1,1,1,1),n.emplaceBack(-1,-1,1,0,1);const i=new e.StructArrayLayout3ui6;i.emplaceBack(0,1,2),i.emplaceBack(2,3,0),this.vertexBuffer=t.createVertexBuffer(n,Pi.members),this.indexBuffer=t.createIndexBuffer(i),this.segments=e.SegmentVector.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const Li={symbol:function(t,n,i,r,o){if("translucent"!==t.renderPass)return;const s=e.StencilMode.disabled,a=t.colorModeForRenderPass();i.layout.get("text-variable-anchor")&&function(t,n,i,r,o,s,a){const l=n.transform,c="map"===o,u="map"===s;for(const h of t){const t=r.getTile(h),n=t.getBucket(i);if(!n||!n.text||!n.text.segments.get().length)continue;const o=e.evaluateSizeForZoom(n.textSizeData,l.zoom),s=_t(h,n.getProjection(),l),d=l.calculatePixelsToTileUnitsMatrix(t),p=et(s,t.tileID.canonical,u,c,l,n.getProjection(),d),f="none"!==i.layout.get("icon-text-fit")&&n.hasIconData();if(o){const i=Math.pow(2,l.zoom-t.tileID.overscaledZ);di(n,c,u,a,e.symbolSize,l,p,h,i,o,f)}}}(r,t,i,n,i.layout.get("text-rotation-alignment"),i.layout.get("text-pitch-alignment"),o),0!==i.paint.get("icon-opacity").constantOr(1)&&fi(t,n,i,r,!1,i.paint.get("icon-translate"),i.paint.get("icon-translate-anchor"),i.layout.get("icon-rotation-alignment"),i.layout.get("icon-pitch-alignment"),i.layout.get("icon-keep-upright"),s,a),0!==i.paint.get("text-opacity").constantOr(1)&&fi(t,n,i,r,!0,i.paint.get("text-translate"),i.paint.get("text-translate-anchor"),i.layout.get("text-rotation-alignment"),i.layout.get("text-pitch-alignment"),i.layout.get("text-keep-upright"),s,a),n.map.showCollisionBoxes&&(ci(t,n,i,r,i.paint.get("text-translate"),i.paint.get("text-translate-anchor"),!0),ci(t,n,i,r,i.paint.get("icon-translate"),i.paint.get("icon-translate-anchor"),!1))},circle:function(t,n,i,r){if("translucent"!==t.renderPass)return;const o=i.paint.get("circle-opacity"),s=i.paint.get("circle-stroke-width"),a=i.paint.get("circle-stroke-opacity"),l=void 0!==i.layout.get("circle-sort-key").constantOr(1);if(0===o.constantOr(1)&&(0===s.constantOr(1)||0===a.constantOr(1)))return;const c=t.context,u=c.gl,h=t.transform,d=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),p=e.StencilMode.disabled,f=t.colorModeForRenderPass(),m="globe"===h.projection.name,g=[e.mercatorXfromLng(h.center.lng),e.mercatorYfromLat(h.center.lat)],v=[];for(let _=0;_<r.length;_++){const o=r[_],s=n.getTile(o),a=s.getBucket(i);if(!a||a.projection.name!==h.projection.name)continue;const c=a.programConfigurations.get(i.id),u=Un(i);m&&u.push("PROJECTION_GLOBE_VIEW");const d=t.useProgram("circle",c,u),p=a.layoutVertexBuffer,f=a.globeExtVertexBuffer,y=a.indexBuffer,b=h.projection.createInversionMatrix(h,o.canonical),x={programConfiguration:c,program:d,layoutVertexBuffer:p,globeExtVertexBuffer:f,indexBuffer:y,uniformValues:Vn(t,o,s,b,g,i),tile:s};if(l){const t=a.segments.get();for(const n of t)v.push({segments:new e.SegmentVector([n]),sortKey:n.sortKey,state:x})}else v.push({segments:a.segments,sortKey:0,state:x})}l&&v.sort(((e,t)=>e.sortKey-t.sortKey));const y={useDepthForOcclusion:!m};for(const _ of v){const{programConfiguration:n,program:r,layoutVertexBuffer:o,globeExtVertexBuffer:s,indexBuffer:a,uniformValues:l,tile:m}=_.state,g=_.segments;t.terrain&&t.terrain.setupElevationDraw(m,r,y),t.prepareDrawProgram(c,r,m.tileID.toUnwrapped()),r.draw(c,u.TRIANGLES,d,p,f,e.CullFaceMode.disabled,l,i.id,o,a,g,i.paint,h.zoom,n,[s])}},heatmap:function(t,n,i,r){if(0!==i.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){const o=t.context,s=o.gl,a=e.StencilMode.disabled,l=new e.ColorMode([s.ONE,s.ONE],e.Color.transparent,[!0,!0,!0,!0]);!function(e,t,n,i){const r=e.gl,o=t.width*i,s=t.height*i;e.activeTexture.set(r.TEXTURE1),e.viewport.set([0,0,o,s]);let a=n.heatmapFbo;if(!a||a&&(a.width!==o||a.height!==s)){a&&a.destroy();const t=r.createTexture();r.bindTexture(r.TEXTURE_2D,t),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),a=n.heatmapFbo=e.createFramebuffer(o,s,!1),function(e,t,n,i,r,o){const s=e.gl;s.texImage2D(s.TEXTURE_2D,0,e.isWebGL2&&e.extRenderToTextureHalfFloat?s.RGBA16F:s.RGBA,r,o,0,s.RGBA,e.extRenderToTextureHalfFloat?e.isWebGL2?s.HALF_FLOAT:e.extTextureHalfFloat.HALF_FLOAT_OES:s.UNSIGNED_BYTE,null),i.colorAttachment.set(n)}(e,0,t,a,o,s)}else r.bindTexture(r.TEXTURE_2D,a.colorAttachment.get()),e.bindFramebuffer.set(a.framebuffer)}(o,t,i,"globe"===t.transform.projection.name?.5:.25),o.clear({color:e.Color.transparent});const c=t.transform,u="globe"===c.projection.name,h=u?["PROJECTION_GLOBE_VIEW"]:null,d=u?e.CullFaceMode.frontCCW:e.CullFaceMode.disabled,p=[e.mercatorXfromLng(c.center.lng),e.mercatorYfromLat(c.center.lat)];for(let f=0;f<r.length;f++){const m=r[f];if(n.hasRenderableParent(m))continue;const g=n.getTile(m),v=g.getBucket(i);if(!v||v.projection.name!==c.projection.name)continue;const y=v.programConfigurations.get(i.id),_=t.useProgram("heatmap",y,h),{zoom:b}=t.transform;t.terrain&&t.terrain.setupElevationDraw(g,_),t.prepareDrawProgram(o,_,m.toUnwrapped());const x=c.projection.createInversionMatrix(c,m.canonical);_.draw(o,s.TRIANGLES,e.DepthMode.disabled,a,l,d,Gn(t,m,g,x,p,b,i.paint.get("heatmap-intensity")),i.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,i.paint,t.transform.zoom,y,u?[v.globeExtVertexBuffer]:null)}o.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,n){const i=t.context,r=i.gl,o=n.heatmapFbo;if(!o)return;i.activeTexture.set(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,o.colorAttachment.get()),i.activeTexture.set(r.TEXTURE1);let s=n.colorRampTexture;s||(s=n.colorRampTexture=new e.Texture(i,n.colorRamp,r.RGBA)),s.bind(r.LINEAR,r.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(i,r.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,((e,t)=>({u_image:0,u_color_ramp:1,u_opacity:t.paint.get("heatmap-opacity")}))(0,n),n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,n.paint,t.transform.zoom)}(t,i))},line:function(t,n,i,r){if("translucent"!==t.renderPass)return;const o=i.paint.get("line-opacity"),s=i.paint.get("line-width");if(0===o.constantOr(1)||0===s.constantOr(1))return;const a=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),l=t.colorModeForRenderPass(),c=t.terrain&&t.terrain.renderingToTexture?1:e.exported.devicePixelRatio,u=i.paint.get("line-dasharray"),h=u.constantOr(1),d=i.layout.get("line-cap"),p=i.paint.get("line-pattern"),f=p.constantOr(1),m=i.paint.get("line-gradient"),g=f?"linePattern":"line",v=t.context,y=v.gl,_=(e=>{const t=[];Jn(e)&&t.push("RENDER_LINE_DASH"),e.paint.get("line-gradient")&&t.push("RENDER_LINE_GRADIENT");const n=e.paint.get("line-trim-offset");0===n[0]&&0===n[1]||t.push("RENDER_LINE_TRIM_OFFSET");const i=e.paint.get("line-pattern").constantOr(1),r=1!==e.paint.get("line-opacity").constantOr(1);return!i&&r&&t.push("RENDER_LINE_ALPHA_DISCARD"),t})(i);let b=_.includes("RENDER_LINE_ALPHA_DISCARD");t.terrain&&t.terrain.clipOrMaskOverlapStencilType()&&(b=!1);for(const x of r){const r=n.getTile(x);if(f&&!r.patternsLoaded())continue;const o=r.getBucket(i);if(!o)continue;t.prepareDrawTile();const s=o.programConfigurations.get(i.id),w=t.useProgram(g,s,_),C=p.constantOr(null);if(C&&r.imageAtlas){const e=r.imageAtlas.patternPositions[C.toString()];e&&s.setConstantPatternPositions(e)}const k=u.constantOr(null),S=d.constantOr(null);if(!f&&k&&S&&r.lineAtlas){const e=r.lineAtlas.getDash(k,S);e&&s.setConstantPatternPositions(e)}let[E,T]=i.paint.get("line-trim-offset");if("round"===S||"square"===S){const e=1;E!==T&&(0===E&&(E-=e),1===T&&(T+=e))}const M=t.terrain?x.projMatrix:null,A=f?Xn(t,r,i,M,c):Zn(t,r,i,M,o.lineClipsArray.length,c,[E,T]);if(m){const r=o.gradients[i.id];let s=r.texture;if(i.gradientVersion!==r.version){let a=256;if(i.stepInterpolant){const i=n.getSource().maxzoom,r=x.canonical.z===i?Math.ceil(1<<t.transform.maxZoom-x.canonical.z):1;a=e.clamp(e.nextPowerOfTwo(o.maxLineLength/e.EXTENT*1024*r),256,v.maxTextureSize)}r.gradient=e.renderColorRamp({expression:i.gradientExpression(),evaluationKey:"lineProgress",resolution:a,image:r.gradient||void 0,clips:o.lineClipsArray}),r.texture?r.texture.update(r.gradient):r.texture=new e.Texture(v,r.gradient,y.RGBA),r.version=i.gradientVersion,s=r.texture}v.activeTexture.set(y.TEXTURE1),s.bind(i.stepInterpolant?y.NEAREST:y.LINEAR,y.CLAMP_TO_EDGE)}h&&(v.activeTexture.set(y.TEXTURE0),r.lineAtlasTexture.bind(y.LINEAR,y.REPEAT),s.updatePaintBuffers()),f&&(v.activeTexture.set(y.TEXTURE0),r.imageAtlasTexture.bind(y.LINEAR,y.CLAMP_TO_EDGE),s.updatePaintBuffers()),t.prepareDrawProgram(v,w,x.toUnwrapped());const O=n=>{w.draw(v,y.TRIANGLES,a,n,l,e.CullFaceMode.disabled,A,i.id,o.layoutVertexBuffer,o.indexBuffer,o.segments,i.paint,t.transform.zoom,s,[o.layoutVertexBuffer2])};if(b){const n=t.stencilModeForClipping(x).ref;0===n&&t.terrain&&v.clear({stencil:0});const i={func:y.EQUAL,mask:255};A.u_alpha_discard_threshold=.8,O(new e.StencilMode(i,n,255,y.KEEP,y.KEEP,y.INVERT)),A.u_alpha_discard_threshold=0,O(new e.StencilMode(i,n,255,y.KEEP,y.KEEP,y.KEEP))}else O(t.stencilModeForClipping(x))}b&&(t.resetStencilClippingMasks(),t.terrain&&v.clear({stencil:0}))},fill:function(t,n,i,r){const o=i.paint.get("fill-color"),s=i.paint.get("fill-opacity");if(0===s.constantOr(1))return;const a=t.colorModeForRenderPass(),l=i.paint.get("fill-pattern"),c=t.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===o.constantOr(e.Color.transparent).a&&1===s.constantOr(0)?"opaque":"translucent";if(t.renderPass===c){const o=t.depthModeForSublayer(1,"opaque"===t.renderPass?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly);gi(t,n,i,r,o,a,!1)}if("translucent"===t.renderPass&&i.paint.get("fill-antialias")){const o=t.depthModeForSublayer(i.getPaintProperty("fill-outline-color")?2:0,e.DepthMode.ReadOnly);gi(t,n,i,r,o,a,!0)}},"fill-extrusion":function(t,n,i,r){const o=i.paint.get("fill-extrusion-opacity");if(0!==o&&"translucent"===t.renderPass){const s=new e.DepthMode(t.context.gl.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);if(1!==o||i.paint.get("fill-extrusion-pattern").constantOr(1))vi(t,n,i,r,s,e.StencilMode.disabled,e.ColorMode.disabled),vi(t,n,i,r,s,t.stencilModeFor3D(),t.colorModeForRenderPass()),t.resetStencilClippingMasks();else{const o=t.colorModeForRenderPass();vi(t,n,i,r,s,e.StencilMode.disabled,o)}}},hillshade:function(t,n,i,r){if("offscreen"!==t.renderPass&&"translucent"!==t.renderPass)return;const o=t.context,s=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),a=t.colorModeForRenderPass(),l=t.terrain&&t.terrain.renderingToTexture,[c,u]="translucent"!==t.renderPass||l?[{},r]:t.stencilConfigForOverlap(r);for(const h of u){const r=n.getTile(h);if(r.needsHillshadePrepare&&"offscreen"===t.renderPass)vn(t,r,i,s,e.StencilMode.disabled,a);else if("translucent"===t.renderPass){const e=l&&t.terrain?t.terrain.stencilModeForRTTOverlap(h):c[h.overscaledZ];mn(t,h,r,i,s,e,a)}}o.viewport.set([0,0,t.width,t.height]),t.resetStencilClippingMasks()},raster:function(t,n,i,r,o,s){if("translucent"!==t.renderPass)return;if(0===i.paint.get("raster-opacity"))return;if(!r.length)return;const a=t.context,l=a.gl,c=n.getSource(),u=t.useProgram("raster"),h=t.colorModeForRenderPass(),d=t.terrain&&t.terrain.renderingToTexture,[p,f]=c instanceof Me||d?[{},r]:t.stencilConfigForOverlap(r),m=f[f.length-1].overscaledZ,g=!t.options.moving;for(const v of f){const r=d?e.DepthMode.disabled:t.depthModeForSublayer(v.overscaledZ-m,1===i.paint.get("raster-opacity")?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly,l.LESS),o=v.toUnwrapped(),f=n.getTile(v);if(d&&(!f||!f.hasData()))continue;const y=d?v.projMatrix:t.transform.calculateProjMatrix(o,g),_=t.terrain&&d?t.terrain.stencilModeForRTTOverlap(v):p[v.overscaledZ],b=s?0:i.paint.get("raster-fade-duration");f.registerFadeDuration(b);const x=n.findLoadedParent(v,0),w=Tn(f,x,n,t.transform,b);let C,k;t.terrain&&t.terrain.prepareDrawTile();const S="nearest"===i.paint.get("raster-resampling")?l.NEAREST:l.LINEAR;a.activeTexture.set(l.TEXTURE0),f.texture.bind(S,l.CLAMP_TO_EDGE),a.activeTexture.set(l.TEXTURE1),x?(x.texture.bind(S,l.CLAMP_TO_EDGE),C=Math.pow(2,x.tileID.overscaledZ-f.tileID.overscaledZ),k=[f.tileID.canonical.x*C%1,f.tileID.canonical.y*C%1]):f.texture.bind(S,l.CLAMP_TO_EDGE),f.texture.useMipmap&&a.extTextureFilterAnisotropic&&t.transform.pitch>20&&l.texParameterf(l.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax);const E=Qn(y,k||[0,0],C||1,w,i,c instanceof Me?c.perspectiveTransform:[0,0]);if(t.prepareDrawProgram(a,u,o),c instanceof Me)c.boundsBuffer&&c.boundsSegments&&u.draw(a,l.TRIANGLES,r,e.StencilMode.disabled,h,e.CullFaceMode.disabled,E,i.id,c.boundsBuffer,t.quadTriangleIndexBuffer,c.boundsSegments);else{const{tileBoundsBuffer:n,tileBoundsIndexBuffer:o,tileBoundsSegments:s}=t.getTileBoundsBuffers(f);u.draw(a,l.TRIANGLES,r,_,h,e.CullFaceMode.disabled,E,i.id,n,o,s)}}t.resetStencilClippingMasks()},background:function(t,n,i,r){const o=i.paint.get("background-color"),s=i.paint.get("background-opacity");if(0===s)return;const a=t.context,l=a.gl,c=t.transform,u=c.tileSize,h=i.paint.get("background-pattern");if(t.isPatternMissing(h))return;const d=!h&&1===o.a&&1===s&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass!==d)return;const p=e.StencilMode.disabled,f=t.depthModeForSublayer(0,"opaque"===d?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly),m=t.colorModeForRenderPass(),g=t.useProgram(h?"backgroundPattern":"background");let v,y=r;y||(v=t.getBackgroundTiles(),y=Object.values(v).map((e=>e.tileID))),h&&(a.activeTexture.set(l.TEXTURE0),t.imageManager.bind(t.context));for(const _ of y){const d=_.toUnwrapped(),y=r?_.projMatrix:t.transform.calculateProjMatrix(d);t.prepareDrawTile();const b=n?n.getTile(_):v?v[_.key]:new e.Tile(_,u,c.zoom,t),x=h?si(y,s,t,h,{tileID:_,tileSize:u}):oi(y,s,o);t.prepareDrawProgram(a,g,d);const{tileBoundsBuffer:w,tileBoundsIndexBuffer:C,tileBoundsSegments:k}=t.getTileBoundsBuffers(b);g.draw(a,l.TRIANGLES,f,p,m,e.CullFaceMode.disabled,x,i.id,w,C,k)}},sky:function(t,n,i){const r=t.transform,o="mercator"===r.projection.name||"globe"===r.projection.name?1:e.smoothstep(7,8,r.zoom),s=i.paint.get("sky-opacity")*o;if(0===s)return;const a=t.context,l=i.paint.get("sky-type"),c=new e.DepthMode(a.gl.LEQUAL,e.DepthMode.ReadOnly,[0,1]),u=t.frameCounter/1e3%1;"atmosphere"===l?"offscreen"===t.renderPass?i.needsSkyboxCapture(t)&&(function(t,n){const i=t.context,r=i.gl;let o=n.skyboxFbo;if(!o){o=n.skyboxFbo=i.createFramebuffer(32,32,!1),n.skyboxGeometry=new Ii(i),n.skyboxTexture=i.gl.createTexture(),r.bindTexture(r.TEXTURE_CUBE_MAP,n.skyboxTexture),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MAG_FILTER,r.LINEAR);for(let e=0;e<6;++e)r.texImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,r.RGBA,32,32,0,r.RGBA,r.UNSIGNED_BYTE,null)}i.bindFramebuffer.set(o.framebuffer),i.viewport.set([0,0,32,32]);const s=n.getCenter(t,!0),a=t.useProgram("skyboxCapture"),l=new Float64Array(16);e.identity(l),e.rotateY(l,l,.5*-Math.PI),Di(i,n,a,l,s,0),e.identity(l),e.rotateY(l,l,.5*Math.PI),Di(i,n,a,l,s,1),e.identity(l),e.rotateX(l,l,.5*-Math.PI),Di(i,n,a,l,s,2),e.identity(l),e.rotateX(l,l,.5*Math.PI),Di(i,n,a,l,s,3),e.identity(l),Di(i,n,a,l,s,4),e.identity(l),e.rotateY(l,l,Math.PI),Di(i,n,a,l,s,5),i.viewport.set([0,0,t.width,t.height])}(t,i),i.markSkyboxValid(t)):"sky"===t.renderPass&&function(t,n,i,r,o){const s=t.context,a=s.gl,l=t.transform,c=t.useProgram("skybox");s.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_CUBE_MAP,n.skyboxTexture);const u=((e,t,n,i,r)=>({u_matrix:e,u_sun_direction:t,u_cubemap:0,u_opacity:i,u_temporal_offset:r}))(l.skyboxMatrix,n.getCenter(t,!1),0,r,o);t.prepareDrawProgram(s,c),c.draw(s,a.TRIANGLES,i,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.backCW,u,"skybox",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(t,i,c,s,u):"gradient"===l&&"sky"===t.renderPass&&function(t,n,i,r,o){const s=t.context,a=s.gl,l=t.transform,c=t.useProgram("skyboxGradient");n.skyboxGeometry||(n.skyboxGeometry=new Ii(s)),s.activeTexture.set(a.TEXTURE0);let u=n.colorRampTexture;u||(u=n.colorRampTexture=new e.Texture(s,n.colorRamp,a.RGBA)),u.bind(a.LINEAR,a.CLAMP_TO_EDGE);const h=((t,n,i,r,o)=>({u_matrix:t,u_color_ramp:0,u_center_direction:n,u_radius:e.degToRad(i),u_opacity:r,u_temporal_offset:o}))(l.skyboxMatrix,n.getCenter(t,!1),n.paint.get("sky-gradient-radius"),r,o);t.prepareDrawProgram(s,c),c.draw(s,a.TRIANGLES,i,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.backCW,h,"skyboxGradient",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(t,i,c,s,u)},debug:function(e,t,n){for(let i=0;i<n.length;i++)ki(e,t,n[i])},custom:function(t,n,i,r){const o=t.context,s=i.implementation;if(!t.transform.projection.unsupportedLayers||!t.transform.projection.unsupportedLayers.includes("custom")||t.terrain&&(t.terrain.renderingToTexture||"offscreen"===t.renderPass)&&i.isLayerDraped()){if("offscreen"===t.renderPass){const n=s.prerender;if(n){if(t.setCustomLayerDefaults(),o.setColorMode(t.colorModeForRenderPass()),"globe"===t.transform.projection.name){const i=t.transform.pointMerc;n.call(s,o.gl,t.transform.customLayerMatrix(),t.transform.getProjection(),t.transform.globeToMercatorMatrix(),e.globeToMercatorTransition(t.transform.zoom),[i.x,i.y],t.transform.pixelsPerMeterRatio)}else n.call(s,o.gl,t.transform.customLayerMatrix());o.setDirty(),t.setBaseState()}}else if("translucent"===t.renderPass){if(t.terrain&&t.terrain.renderingToTexture){const n=s.renderToTile;if(n){const i=r[0].canonical,a=new e.MercatorCoordinate(i.x+r[0].wrap*(1<<i.z),i.y,i.z);o.setDepthMode(e.DepthMode.disabled),o.setStencilMode(e.StencilMode.disabled),o.setColorMode(t.colorModeForRenderPass()),t.setCustomLayerDefaults(),n.call(s,o.gl,a),o.setDirty(),t.setBaseState()}return}t.setCustomLayerDefaults(),o.setColorMode(t.colorModeForRenderPass()),o.setStencilMode(e.StencilMode.disabled);const n="3d"===s.renderingMode?new e.DepthMode(t.context.gl.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,e.DepthMode.ReadOnly);if(o.setDepthMode(n),"globe"===t.transform.projection.name){const n=t.transform.pointMerc;s.render(o.gl,t.transform.customLayerMatrix(),t.transform.getProjection(),t.transform.globeToMercatorMatrix(),e.globeToMercatorTransition(t.transform.zoom),[n.x,n.y],t.transform.pixelsPerMeterRatio)}else s.render(o.gl,t.transform.customLayerMatrix());o.setDirty(),t.setBaseState(),o.bindFramebuffer.set(null)}}else e.warnOnce("Custom layers are not yet supported with this projection. Use mercator or globe to enable usage of custom layers.")}};class Bi{constructor(t,n,i=!1){this.context=new ke(t,i),this.transform=n,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=e.SourceCache.maxUnderzooming+e.SourceCache.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={}}updateTerrain(e,t){const n=!!e&&!!e.terrain&&this.transform.projection.supportsTerrain;if(!(n||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new In(this,e));const i=this._terrain;this.transform.elevation=n?i:null,i.update(e,this.transform,t)}_updateFog(e){const t=e.fog;if(!t||"globe"===this.transform.projection.name||t.getOpacity(this.transform.pitch)<1||t.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[n,i]=t.getFovAdjustedRange(this.transform._fov);if(n>i)return void(this.transform.fogCullDistSq=null);const r=n+.78*(i-n);this.transform.fogCullDistSq=r*r}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(t,n){if(this.width=t*e.exported.devicePixelRatio,this.height=n*e.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style.order)this.style._layers[e].resize()}setup(){const 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,e.posAttributes.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);const i=new e.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(e.EXTENT,0),i.emplaceBack(0,e.EXTENT),i.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(i,e.posAttributes.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);const r=new e.StructArrayLayout2i4;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(-1,1),r.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(r,e.posAttributes.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);const 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.mercatorBoundsBuffer=t.createVertexBuffer(o,e.boundsAttributes.members),this.mercatorBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);const s=new e.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s);const a=new e.StructArrayLayout1ui2;for(const e of[0,1,3,2,0])a.emplaceBack(e);this.debugIndexBuffer=t.createIndexBuffer(a),this.emptyTexture=new e.Texture(t,new e.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),t.gl.RGBA),this.identityMat=e.create();const l=this.context.gl;this.stencilClearMode=new e.StencilMode({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO),this.loadTimeStamps.push(e.window.performance.now()),this.atmosphereBuffer=new zi(this.context)}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(e){return e._makeTileBoundsBuffers(this.context,this.transform.projection),e._tileBoundsBuffer?{tileBoundsBuffer:e._tileBoundsBuffer,tileBoundsIndexBuffer:e._tileBoundsIndexBuffer,tileBoundsSegments:e._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(t,n.TRIANGLES,e.DepthMode.disabled,this.stencilClearMode,e.ColorMode.disabled,e.CullFaceMode.disabled,En(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(t,n,i){if(!n||this.currentStencilSource===n.id||!t.isTileClipped()||!i||0===i.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let e=!1;for(const t of i)if(void 0===this._tileClippingMaskIDs[t.key]){e=!0;break}if(!e)return}this.currentStencilSource=n.id;const r=this.context,o=r.gl;this.nextStencilID+i.length>256&&this.clearStencil(),r.setColorMode(e.ColorMode.disabled),r.setDepthMode(e.DepthMode.disabled);const s=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const a of i){const t=n.getTile(a),i=this._tileClippingMaskIDs[a.key]=this.nextStencilID++,{tileBoundsBuffer:l,tileBoundsIndexBuffer:c,tileBoundsSegments:u}=this.getTileBoundsBuffers(t);s.draw(r,o.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:o.ALWAYS,mask:0},i,255,o.KEEP,o.KEEP,o.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,En(a.projMatrix),"$clipping",l,c,u)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const t=this.nextStencilID++,n=this.context.gl;return new e.StencilMode({func:n.NOTEQUAL,mask:255},t,255,n.KEEP,n.KEEP,n.REPLACE)}stencilModeForClipping(t){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(t);const n=this.context.gl;return new e.StencilMode({func:n.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,n.KEEP,n.KEEP,n.REPLACE)}stencilConfigForOverlap(t){const n=this.context.gl,i=t.sort(((e,t)=>t.overscaledZ-e.overscaledZ)),r=i[i.length-1].overscaledZ,o=i[0].overscaledZ-r+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();const t={};for(let i=0;i<o;i++)t[i+r]=new e.StencilMode({func:n.GEQUAL,mask:255},i+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=o,[t,i]}return[{[r]:e.StencilMode.disabled},i]}colorModeForRenderPass(){const t=this.context.gl;if(this._showOverdrawInspector){const n=1/8;return new e.ColorMode([t.CONSTANT_COLOR,t.ONE],new e.Color(n,n,n,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?e.ColorMode.unblended:e.ColorMode.alphaBlended}depthModeForSublayer(t,n,i){if(!this.opaquePassEnabledForLayer())return e.DepthMode.disabled;const r=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new e.DepthMode(i||this.context.gl.LEQUAL,n,[r,r])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(t,n){this.style=t,this.options=n,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.exported.now()),this.imageManager.beginFrame();const i=this.style.order,r=this.style._sourceCaches;for(const e in r){const t=r[e];t.used&&t.prepare(this.context)}const o={},s={},a={};for(const e in r){const t=r[e];o[e]=t.getVisibleCoordinates(),s[e]=o[e].slice().reverse(),a[e]=t.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let e=0;e<i.length;e++)if(this.style._layers[i[e]].is3D()){this.opaquePassCutoff=e;break}if(this.terrain&&(this.terrain.updateTileBinding(a),this.opaquePassCutoff=0),"globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new e.GlobeSharedBuffers(this.context)),!e.isMapAuthenticated(this.context.gl))return;this.renderPass="offscreen";for(const e of i){const n=this.style._layers[e],i=t._getLayerSourceCache(n);if(!n.hasOffscreenPass()||n.isHidden(this.transform.zoom))continue;const r=i?s[i.id]:void 0;("custom"===n.type||n.isSky()||r&&r.length)&&this.renderLayer(this,i,n,r)}this.depthRangeFor3D=[0,1-(t.order.length+2)*this.numSublayers*this.depthEpsilon];const l=this.terrain;if(l&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&l.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]),this.context.clear({color:n.showOverdrawInspector?e.Color.black:e.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=i.length-1;this.currentLayer>=0;this.currentLayer--){const e=this.style._layers[i[this.currentLayer]],n=t._getLayerSourceCache(e);if(e.isSky())continue;const r=n?s[n.id]:void 0;this._renderTileClippingMasks(e,n,r),this.renderLayer(this,n,e,r)}if(this.style.fog&&this.transform.projection.supportsFog&&function(t,n){const i=t.context,r=i.gl,o=t.transform,s=new e.DepthMode(r.LEQUAL,e.DepthMode.ReadOnly,[0,1]),a=t.useProgram("globeAtmosphere",null,"globe"===o.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"]),l=e.globeToMercatorTransition(o.zoom),c=n.properties.get("color").toArray01(),u=n.properties.get("high-color").toArray01(),h=n.properties.get("space-color").toArray01PremultipliedAlpha(),d=e.identity$1([]);e.rotateY$1(d,d,-e.degToRad(o._center.lng)),e.rotateX$1(d,d,e.degToRad(o._center.lat)),e.rotateZ$1(d,d,o.angle),e.rotateX$1(d,d,-o._pitch);const p=e.fromQuat(new Float32Array(16),d),f=e.mapValue(n.properties.get("star-intensity"),0,1,0,.25),m=5e-4,g=e.mapValue(n.properties.get("horizon-blend"),0,1,m,.25),v=e.globeUseCustomAntiAliasing(t,i,o)&&g===m?o.worldSize/(2*Math.PI*1.025)-1:o.globeRadius,y=t.frameCounter/1e3%1,_=e.length(o.globeCenterInViewSpace),b=Math.sqrt(Math.pow(_,2)-Math.pow(v,2)),x=Math.acos(b/_),w=((t,n,i,r,o,s,a,l,c,u,h,d,p,f)=>({u_frustum_tl:t,u_frustum_tr:n,u_frustum_br:i,u_frustum_bl:r,u_horizon:o,u_transition:s,u_fadeout_range:a,u_color:l,u_high_color:c,u_space_color:u,u_star_intensity:h,u_star_size:5*e.exported.devicePixelRatio,u_star_density:0,u_temporal_offset:d,u_horizon_angle:p,u_rotation_matrix:f}))(o.frustumCorners.TL,o.frustumCorners.TR,o.frustumCorners.BR,o.frustumCorners.BL,o.frustumCorners.horizon,l,g,c,u,h,f,y,x,p);t.prepareDrawProgram(i,a);const C=t.atmosphereBuffer;C&&a.draw(i,r.TRIANGLES,s,e.StencilMode.disabled,e.ColorMode.alphaBlended,e.CullFaceMode.backCW,w,"skybox",C.vertexBuffer,C.indexBuffer,C.segments)}(this,this.style.fog),this.renderPass="sky",(e.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer<i.length;this.currentLayer++){const e=this.style._layers[i[this.currentLayer]],n=t._getLayerSourceCache(e);e.isSky()&&this.renderLayer(this,n,e,n?s[n.id]:void 0)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<i.length;){const e=this.style._layers[i[this.currentLayer]],n=t._getLayerSourceCache(e);if(e.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(e)){if(e.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}const r=n?("symbol"===e.type?a:s)[n.id]:void 0;this._renderTileClippingMasks(e,n,n?o[n.id]:void 0),this.renderLayer(this,n,e,r),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry||this.options.showTileAABBs){let n=null;e.values(this.style._layers).forEach((e=>{const i=t._getLayerSourceCache(e);i&&!e.isHidden(this.transform.zoom)&&(!n||n.getSource().maxzoom<i.getSource().maxzoom)&&(n=i)})),n&&this.options.showTileBoundaries&&Li.debug(this,n,n.getVisibleCoordinates())}this.options.showPadding&&function(e){const t=e.transform.padding;Si(e,e.transform.height-(t.top||0),3,_i),Si(e,t.bottom||0,3,bi),Ei(e,t.left||0,3,xi),Ei(e,e.transform.width-(t.right||0),3,wi);const n=e.transform.centerPoint;!function(e,t,n,i){Ti(e,t-1,n-10,2,20,i),Ti(e,t-10,n-1,20,2,i)}(e,n.x,e.transform.height-n.y,Ci)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(e.window.performance.now()),this.saveCanvasCopy())}renderLayer(e,t,n,i){n.isHidden(this.transform.zoom)||("background"===n.type||"sky"===n.type||"custom"===n.type||i&&i.length)&&(this.id=n.id,this.gpuTimingStart(n),(!e.transform.projection.unsupportedLayers||!e.transform.projection.unsupportedLayers.includes(n.type)||e.terrain&&"custom"===n.type)&&Li[n.type](e,t,n,i,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(e){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery;let n=this.gpuTimers[e.id];n||(n=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:t.createQueryEXT()}),n.calls++,t.beginQueryEXT(t.TIME_ELAPSED_EXT,n.query)}gpuTimingDeferredRenderStart(){if(this.options.gpuTimingDeferredRender){const e=this.context.extTimerQuery,t=e.createQueryEXT();this.deferredRenderGpuTimeQueries.push(t),e.beginQueryEXT(e.TIME_ELAPSED_EXT,t)}}gpuTimingDeferredRenderEnd(){if(!this.options.gpuTimingDeferredRender)return;const e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}gpuTimingEnd(){if(!this.options.gpuTiming)return;const e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}collectGpuTimers(){const e=this.gpuTimers;return this.gpuTimers={},e}collectDeferredRenderGpuQueries(){const e=this.deferredRenderGpuTimeQueries;return this.deferredRenderGpuTimeQueries=[],e}queryGpuTimers(e){const t={};for(const n in e){const i=e[n],r=this.context.extTimerQuery,o=r.getQueryObjectEXT(i.query,r.QUERY_RESULT_EXT)/1e6;r.deleteQueryEXT(i.query),t[n]=o}return t}queryGpuTimeDeferredRender(e){if(!this.options.gpuTimingDeferredRender)return 0;const t=this.context.extTimerQuery;let n=0;for(const i of e)n+=t.getQueryObjectEXT(i,t.QUERY_RESULT_EXT)/1e6,t.deleteQueryEXT(i);return n}translatePosMatrix(t,n,i,r,o){if(!i[0]&&!i[1])return t;const s=o?"map"===r?this.transform.angle:0:"viewport"===r?-this.transform.angle:0;if(s){const e=Math.sin(s),t=Math.cos(s);i=[i[0]*t-i[1]*e,i[0]*e+i[1]*t]}const a=[o?i[0]:O(n,i[0],this.transform.zoom),o?i[1]:O(n,i[1],this.transform.zoom),0],l=new Float32Array(16);return e.translate(l,t,a),l}saveTileTexture(e){const t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]}getTileTexture(e){const t=this._tileTextures[e];return t&&t.length>0?t.pop():null}isPatternMissing(e){return null===e||void 0!==e&&!this.imageManager.getPattern(e.toString())}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture}currentGlobalDefines(){const e=this.terrain&&this.terrain.renderingToTexture,t=this.terrain&&0===this.terrain.exaggeration(),n=this.style&&this.style.fog,i=[];return this.terrainRenderModeElevated()&&i.push("TERRAIN"),"globe"===this.transform.projection.name&&i.push("GLOBE"),t&&i.push("ZERO_EXAGGERATION"),n&&!e&&0!==n.getOpacity(this.transform.pitch)&&i.push("FOG"),e&&i.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&i.push("OVERDRAW_INSPECTOR"),i}useProgram(e,t,n){this.cache=this.cache||{};const i=n||[],r=this.currentGlobalDefines().concat(i),o=Dn.cacheKey(un[e],e,r,t);return this.cache[o]||(this.cache[o]=new Dn(this.context,e,un[e],t,ai[e],r)),this.cache[o]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const 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)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.atmosphereBuffer&&this.atmosphereBuffer.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(t,n,i){if(this.terrain&&this.terrain.renderingToTexture)return;const r=this.style.fog;if(r){const o=r.getOpacity(this.transform.pitch),s=((t,n,i,r,o,s,a,l,c,u,h)=>{const d=t.transform,p=n.properties.get("color").toArray01();p[3]=r;const f=t.frameCounter/1e3%1;return{u_fog_matrix:i?d.calculateFogTileMatrix(i):t.identityMat,u_fog_range:n.getFovAdjustedRange(d._fov),u_fog_color:p,u_fog_horizon_blend:n.properties.get("horizon-blend"),u_fog_temporal_offset:f,u_frustum_tl:o,u_frustum_tr:s,u_frustum_br:a,u_frustum_bl:l,u_globe_pos:c,u_globe_radius:u,u_viewport:h,u_globe_transition:e.globeToMercatorTransition(d.zoom),u_is_globe:+("globe"===d.projection.name)}})(this,r,i,o,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*e.exported.devicePixelRatio,this.transform.height*e.exported.devicePixelRatio]);n.setFogUniformValues(t,s)}}setTileLoadedFlag(e){this.tileLoaded=e}saveCanvasCopy(){const e=this.canvasCopy();e&&(this.frameCopies.push(e),this.tileLoaded=!1)}canvasCopy(){const e=this.context.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.copyTexImage2D(e.TEXTURE_2D,0,e.RGBA,0,0,e.drawingBufferWidth,e.drawingBufferHeight,0),t}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const e=this.style&&this.style.fog;return!!e&&0!==e.getOpacity(this.transform.pitch)}getBackgroundTiles(){const t=this._backgroundTiles,n=this._backgroundTiles={},i=this.transform.coveringTiles({tileSize:512});for(const r of i)n[r.key]=t[r.key]||new e.Tile(r,512,this.transform.tileZoom,this);return n}clearBackgroundTiles(){this._backgroundTiles={}}}class Fi{constructor(e=0,t=0,n=0,i=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(i)||i<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=n,this.right=i}interpolate(t,n,i){return null!=n.top&&null!=t.top&&(this.top=e.number(t.top,n.top,i)),null!=n.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,n.bottom,i)),null!=n.left&&null!=t.left&&(this.left=e.number(t.left,n.left,i)),null!=n.right&&null!=t.right&&(this.right=e.number(t.right,n.right,i)),this}getCenter(t,n){const i=e.clamp((this.left+t-this.right)/2,0,t),r=e.clamp((this.top+n-this.bottom)/2,0,n);return new e.Point(i,r)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new Fi(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Ri(t,n){const i=e.getColumn(t,3);e.fromQuat(t,n),e.setColumn(t,3,i)}function $i(t,n){const i=e.identity$1([]);return e.rotateZ$1(i,i,-n),e.rotateX$1(i,i,-t),i}function Ni(t,n){const i=[t[0],t[1],0],r=[n[0],n[1],0];if(e.length(i)>=1e-15){const t=e.normalize([],i);e.scale$2(r,t,e.dot(r,t)),n[0]=r[0],n[1]=r[1]}const o=e.cross([],n,t);if(e.len(o)<1e-15)return null;const s=Math.atan2(-o[1],o[0]);return $i(Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2]),s)}class ji{constructor(e,t){this.position=e,this.orientation=t}get position(){return this._position}set position(t){if(t){const n=t instanceof e.MercatorCoordinate?t:new e.MercatorCoordinate(t[0],t[1],t[2]);this._renderWorldCopies&&(n.x=e.wrap(n.x,0,1)),this._position=n}else this._position=null}lookAtPoint(t,n){if(this.orientation=null,!this.position)return;const i=this.position,r=this._elevation?this._elevation.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(t)):0,o=e.MercatorCoordinate.fromLngLat(t,r),s=[o.x-i.x,o.y-i.y,o.z-i.z];n||(n=[0,0,1]),n[2]=Math.abs(n[2]),this.orientation=Ni(s,n)}setPitchBearing(t,n){this.orientation=$i(e.degToRad(t),e.degToRad(-n))}}class Vi{constructor(t,n){this._transform=e.identity([]),this.orientation=n,this.position=t}get mercatorPosition(){const t=this.position;return new e.MercatorCoordinate(t[0],t[1],t[2])}get position(){const t=e.getColumn(this._transform,3);return[t[0],t[1],t[2]]}set position(t){var n;t&&e.setColumn(this._transform,3,[(n=t)[0],n[1],n[2],1])}get orientation(){return this._orientation}set orientation(t){this._orientation=t||e.identity$1([]),t&&Ri(this._transform,this._orientation)}getPitchBearing(){const e=this.forward(),t=this.right();return{bearing:Math.atan2(-t[1],t[0]),pitch:Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2])}}setPitchBearing(e,t){this._orientation=$i(e,t),Ri(this._transform,this._orientation)}forward(){const t=e.getColumn(this._transform,2);return[-t[0],-t[1],-t[2]]}up(){const t=e.getColumn(this._transform,1);return[-t[0],-t[1],-t[2]]}right(){const t=e.getColumn(this._transform,0);return[t[0],t[1],t[2]]}getCameraToWorld(t,n){const i=new Float64Array(16);return e.invert(i,this.getWorldToCamera(t,n)),i}getWorldToCameraPosition(t,n,i){const r=this.position;e.scale$2(r,r,-t);const o=new Float64Array(16);return e.fromScaling(o,[i,i,i]),e.translate(o,o,r),o[10]*=n,o}getWorldToCamera(t,n){const i=new Float64Array(16),r=new Float64Array(4),o=this.position;return e.conjugate(r,this._orientation),e.scale$2(o,o,-t),e.fromQuat(i,r),e.translate(i,i,o),i[1]*=-1,i[5]*=-1,i[9]*=-1,i[13]*=-1,i[8]*=n,i[9]*=n,i[10]*=n,i[11]*=n,i}getCameraToClipPerspective(t,n,i,r){const o=new Float64Array(16);return e.perspective(o,t,n,i,r),o}getDistanceToElevation(t,n=!1){const i=0===t?0:e.mercatorZfromAltitude(t,n?e.latFromMercatorY(this.position[1]):this.position[1]),r=this.forward();return(i-this.position[2])/r[2]}clone(){return new Vi([...this.position],[...this.orientation])}}function Ui(t,n){const i=Hi(t.projection,t.zoom,t.width,t.height),r=function(t,n,i,r,o){const s=new e.LngLat(i.lng-180*Wi,i.lat),a=new e.LngLat(i.lng+180*Wi,i.lat),l=t.project(s.lng,s.lat),c=t.project(a.lng,a.lat),u=-Math.atan2(c.y-l.y,c.x-l.x),h=e.MercatorCoordinate.fromLngLat(i);h.y=e.clamp(h.y,-1+Wi,1-Wi);const d=h.toLngLat(),p=t.project(d.lng,d.lat),f=e.MercatorCoordinate.fromLngLat(d);f.x+=Wi;const m=f.toLngLat(),g=t.project(m.lng,m.lat),v=Zi(g.x-p.x,g.y-p.y,u),y=e.MercatorCoordinate.fromLngLat(d);y.y+=Wi;const _=y.toLngLat(),b=t.project(_.lng,_.lat),x=Zi(b.x-p.x,b.y-p.y,u),w=Math.abs(v.x)/Math.abs(x.y),C=e.identity([]);e.rotateZ(C,C,-u*(1-(o?0:r)));const k=e.identity([]);return e.scale(k,k,[1,1-(1-w)*r,1]),k[4]=-x.x/x.y*r,e.rotateZ(k,k,u),e.multiply(k,C,k),k}(t.projection,0,t.center,i,n),o=qi(t);return e.scale(r,r,[o,o,1]),r}function qi(t){const n=t.projection,i=Hi(t.projection,t.zoom,t.width,t.height),r=Gi(n,t.center),o=Gi(n,e.LngLat.convert(n.center));return Math.pow(2,r*i+(1-i)*o)}function Hi(t,n,i,r,o=1/0){const s=t.range;if(!s)return 0;const a=Math.min(o,Math.max(i,r)),l=Math.log(a/1024)/Math.LN2;return e.smoothstep(s[0]+l,s[1]+l,n)}const Wi=1/4e4;function Gi(t,n){const i=e.clamp(n.lat,-e.MAX_MERCATOR_LATITUDE,e.MAX_MERCATOR_LATITUDE),r=new e.LngLat(n.lng-180*Wi,i),o=new e.LngLat(n.lng+180*Wi,i),s=t.project(r.lng,i),a=t.project(o.lng,i),l=e.MercatorCoordinate.fromLngLat(r),c=e.MercatorCoordinate.fromLngLat(o),u=a.x-s.x,h=a.y-s.y,d=c.x-l.x,p=c.y-l.y,f=Math.sqrt((d*d+p*p)/(u*u+h*h));return Math.log(f)/Math.LN2}function Zi(e,t,n){const i=Math.cos(n),r=Math.sin(n);return{x:e*i-t*r,y:e*r+t*i}}class Xi{constructor(t,n,i,r,o,s,a){this.tileSize=512,this._renderWorldCopies=void 0===o||o,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=null==i?0:i,this._maxPitch=null==r?60:r,this.setProjection(s),this.setMaxBounds(a),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._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new Fi,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new Vi,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1}clone(){const e=new Xi(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return e._elevation=this._elevation,e._centerAltitude=this._centerAltitude,e._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,e.tileSize=this.tileSize,e.mercatorFromTransition=this.mercatorFromTransition,e.width=this.width,e.height=this.height,e.cameraElevationReference=this.cameraElevationReference,e._center=this._center,e._setZoom(this.zoom),e._seaLevelZoom=this._seaLevelZoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._nearZ=this._nearZ,e._farZ=this._farZ,e._averageElevation=this._averageElevation,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._camera=this._camera.clone(),e._calcMatrices(),e.freezeTileCoverage=this.freezeTileCoverage,e.frustumCorners=this.frustumCorners,e}get elevation(){return this._elevation}set elevation(e){this._elevation!==e&&(this._elevation=e,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(e,t=!1){const n=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||n)&&this._updateCameraOnTerrain(),(e||n)&&this._constrainCamera(t),this._calcMatrices()}getProjection(){return e.pick(this.projection,["name","center","parallels"])}setProjection(n){this.projectionOptions=n||{name:"mercator"};const i=this.projection?this.getProjection():void 0;this.projection=e.getProjection(this.projectionOptions);const r=!t(i,this.getProjection());return r&&this._calcMatrices(),this.mercatorFromTransition=!1,r}setMercatorFromTransition(){const t=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=e.getProjection({name:"mercator"});const n=t!==this.projection.name;return n&&this._calcMatrices(),n}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get cameraWorldSize(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return e.mercatorZfromAltitude(this.center.lat,this.cameraWorldSizeForFog)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.Point(this.width,this.height)}get bearing(){return e.wrap(this.rotation,-180,180)}set bearing(e){this.rotation=e}get rotation(){return-this.angle/Math.PI*180}set rotation(t){const n=-t*Math.PI/180;var i;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=(i=new e.ARRAY_TYPE(4),e.ARRAY_TYPE!=Float32Array&&(i[1]=0,i[2]=0),i[0]=1,i[3]=1,i),function(e,t,n){var i=t[0],r=t[1],o=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);e[0]=i*l+o*a,e[1]=r*l+s*a,e[2]=i*-a+o*l,e[3]=r*-a+s*l}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const n=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){const e=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/e)}set fov(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=e.degToRad(t),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(e){this._averageElevation=e,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(e){const t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._setZoom(t),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(e){this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);const e=this._elevation;this._centerAltitude=e.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=e.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const t=this._elevation,n=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],i=this.horizonLineFromTop();let r=0,o=0;for(let s=0;s<n.length;s++){const a=new e.Point(n[s][0]*this.width,i+n[s][1]*(this.height-i)),l=t.pointCoordinate(a);if(!l)continue;const c=1/Math.hypot(l[0]-this._camera.position[0],l[1]-this._camera.position[1]);r+=l[3]*c,o+=c}return 0===o?NaN:r/o}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._seaLevelZoom||!this._elevation)return;const e=this._seaLevelZoom,t=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),n=this.pixelsPerMeter/this.worldSize*t,i=this._mercatorZfromZoom(e),r=this._mercatorZfromZoom(this._maxZoom),o=Math.max(i-n,r);this._setZoom(this._zoomFromMercatorZ(o))}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}computeZoomRelativeTo(t){const n=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,t.toAltitude()));let i;i=t.z<this._camera.position[2]?[n.x,n.y,n.z]:[t.x,t.y,t.z];const r=e.length(e.sub([],this._camera.position,i));return e.clamp(this._zoomFromMercatorZ(r),this._minZoom,this._maxZoom)}setFreeCameraOptions(t){if(!this.height)return;if(!t.position&&!t.orientation)return;this._updateCameraState();let n=!1;if(t.orientation&&!e.exactEquals(t.orientation,this._camera.orientation)&&(n=this._setCameraOrientation(t.orientation)),t.position){const i=[t.position.x,t.position.y,t.position.z];e.exactEquals$1(i,this._camera.position)||(this._setCameraPosition(i),n=!0)}n&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const t=this._camera.position,n=new ji;return n.position=new e.MercatorCoordinate(t[0],t[1],t[2]),n.orientation=this._camera.orientation,n._elevation=this.elevation,n._renderWorldCopies=this.renderWorldCopies,n}_setCameraOrientation(t){if(!e.length$1(t))return!1;e.normalize$1(t,t);const n=e.transformQuat([],[0,0,-1],t),i=e.transformQuat([],[0,-1,0],t);if(i[2]<0)return!1;const r=Ni(n,i);return!!r&&(this._camera.orientation=r,!0)}_setCameraPosition(t){const n=this.zoomScale(this.minZoom)*this.tileSize,i=this.zoomScale(this.maxZoom)*this.tileSize,r=this.cameraToCenterDistance;t[2]=e.clamp(t[2],r/i,r/n),this._camera.position=t}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}getVisibleUnwrappedCoordinates(t){const n=[new e.UnwrappedTileID(0,t)];if(this.renderWorldCopies){const i=this.pointCoordinate(new e.Point(0,0)),r=this.pointCoordinate(new e.Point(this.width,0)),o=this.pointCoordinate(new e.Point(this.width,this.height)),s=this.pointCoordinate(new e.Point(0,this.height)),a=Math.floor(Math.min(i.x,r.x,o.x,s.x)),l=Math.floor(Math.max(i.x,r.x,o.x,s.x)),c=1;for(let u=a-c;u<=l+c;u++)0!==u&&n.push(new e.UnwrappedTileID(u,t))}return n}coveringTiles(t){let n=this.coveringZoomLevel(t);const i=n,r=this.elevation&&!t.isTerrainDEM,o="mercator"===this.projection.name;if(void 0!==t.minzoom&&n<t.minzoom)return[];void 0!==t.maxzoom&&n>t.maxzoom&&(n=t.maxzoom);const s=this.locationCoordinate(this.center),a=this.center.lat,l=1<<n,c=[l*s.x,l*s.y,0],u="globe"===this.projection.name,h=!u,d=e.Frustum.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n,h),p=u?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),f=l*e.mercatorZfromAltitude(1,this.center.lat),m=this._camera.position[2]/e.mercatorZfromAltitude(1,this.center.lat),g=[l*p.x,l*p.y,m*(h?1:f)],v=this.cameraToCenterDistance/t.tileSize*(t.roundZoom?1:.502),y=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace?n:0,_=t.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,b=t.isTerrainDEM?-_:this._elevation?this._elevation.getMinElevationBelowMSL():0,x=this.projection.isReprojectedInTileSpace?qi(this):1,w=t=>{const n=1/4e4,i=new e.MercatorCoordinate(t.x+n,t.y,t.z),r=new e.MercatorCoordinate(t.x,t.y+n,t.z),o=t.toLngLat(),s=i.toLngLat(),a=r.toLngLat(),l=this.locationCoordinate(o),c=this.locationCoordinate(s),u=this.locationCoordinate(a),h=Math.hypot(c.x-l.x,c.y-l.y),d=Math.hypot(u.x-l.x,u.y-l.y);return Math.sqrt(h*d)*x/n},C=t=>{const n=_,i=b;return{aabb:e.tileAABB(this,l,0,0,0,t,i,n,this.projection),zoom:0,x:0,y:0,minZ:i,maxZ:n,wrap:t,fullyVisible:!1}},k=[];let S=[];const E=n,T=t.reparseOverscaled?i:n,M=e=>e*e,A=M((m-this._centerAltitude)*f),O=e=>{if(!this._elevation||!e.tileID||!o)return;const t=this._elevation.getMinMaxForTile(e.tileID),n=e.aabb;t?(n.min[2]=t.min,n.max[2]=t.max,n.center[2]=(n.min[2]+n.max[2])/2):(e.shouldSplit=I(e),e.shouldSplit||(n.min[2]=n.max[2]=n.center[2]=this._centerAltitude))},I=t=>{if(t.zoom<y)return!0;if(t.zoom===E)return!1;if(null!=t.shouldSplit)return t.shouldSplit;const n=t.aabb.distanceX(g),o=t.aabb.distanceY(g);let s=A,l=1;if(u){s=M(t.aabb.distanceZ(g));const n=Math.pow(2,t.zoom),i=e.latFromMercatorY((t.y+1)/n),r=e.latFromMercatorY(t.y/n),o=Math.min(Math.max(a,i),r),c=e.circumferenceAtLatitude(o)/e.circumferenceAtLatitude(a);if(l=o===a?1/Math.max(1,this._mercatorScaleRatio-.3):Math.min(1,c/this._mercatorScaleRatio),this.zoom<=e.GLOBE_ZOOM_THRESHOLD_MIN&&t.zoom===E-1&&c>=.9)return!0}else if(r&&(s=M(t.aabb.distanceZ(g)*f)),this.projection.isReprojectedInTileSpace&&i<=5){const n=Math.pow(2,t.zoom),i=w(new e.MercatorCoordinate((t.x+.5)/n,(t.y+.5)/n));l=i>.85?1:i}const c=n*n+o*o+s,h=M((1<<E-t.zoom)*v*l*((e,t)=>{if(t*M(.707)<e)return 1;const n=Math.sqrt(t/e);return n/(1.4144271570014144+(Math.pow(1.1,n-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(s,A),c));return c<h};if(this.renderWorldCopies)for(let e=1;e<=3;e++)k.push(C(-e)),k.push(C(e));for(k.push(C(0));k.length>0;){const i=k.pop(),s=i.x,a=i.y;let h=i.fullyVisible;if(!h){const e=i.aabb.intersects(d);if(0===e)continue;h=2===e}if(i.zoom!==E&&I(i))for(let t=0;t<4;t++){const n=(s<<1)+t%2,c=(a<<1)+(t>>1),d={aabb:o?i.aabb.quadrant(t):e.tileAABB(this,l,i.zoom+1,n,c,i.wrap,i.minZ,i.maxZ,this.projection),zoom:i.zoom+1,x:n,y:c,wrap:i.wrap,fullyVisible:h,tileID:void 0,shouldSplit:void 0,minZ:i.minZ,maxZ:i.maxZ};r&&!u&&(d.tileID=new e.OverscaledTileID(i.zoom+1===E?T:i.zoom+1,i.wrap,i.zoom+1,n,c),O(d)),k.push(d)}else{const r=i.zoom===E?T:i.zoom;if(t.minzoom&&t.minzoom>r)continue;const o=c[0]-(.5+s+(i.wrap<<i.zoom))*(1<<n-i.zoom),l=c[1]-.5-a,u=i.tileID?i.tileID:new e.OverscaledTileID(r,i.wrap,i.zoom,s,a);S.push({tileID:u,distanceSq:o*o+l*l})}}if(this.fogCullDistSq){const n=this.fogCullDistSq,i=this.horizonLineFromTop();S=S.filter((r=>{const o=[0,0,0,1],s=[e.EXTENT,e.EXTENT,0,1],a=this.calculateFogTileMatrix(r.tileID.toUnwrapped());e.transformMat4$1(o,o,a),e.transformMat4$1(s,s,a);const l=e.getAABBPointSquareDist(o,s);if(0===l)return!0;let c=!1;const u=this._elevation;if(u&&l>n&&0!==i){const n=this.calculateProjMatrix(r.tileID.toUnwrapped());let o;t.isTerrainDEM||(o=u.getMinMaxForTile(r.tileID)),o||(o={min:b,max:_});const s=e.furthestTileCorner(this.rotation),a=[s[0]*e.EXTENT,s[1]*e.EXTENT,o.max];e.transformMat4(a,a,n),c=(1-a[1])*this.height*.5<i}return l<n||c}))}return S.sort(((e,t)=>e.distanceSq-t.distanceSq)).map((e=>e.tileID))}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(t){const n=e.clamp(t.lat,-e.MAX_MERCATOR_LATITUDE,e.MAX_MERCATOR_LATITUDE),i=this.projection.project(t.lng,n);return new e.Point(i.x*this.worldSize,i.y*this.worldSize)}unproject(e){return this.projection.unproject(e.x/this.worldSize,e.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/e.mercatorZfromAltitude(1,this.center.lat)/this.worldSize}setLocationAtPoint(t,n){let i,r;const o=this.centerPoint;if("globe"===this.projection.name){const e=this.worldSize;i=(n.x-o.x)/e,r=(n.y-o.y)/e}else{const e=this.pointCoordinate(n),t=this.pointCoordinate(o);i=e.x-t.x,r=e.y-t.y}const s=this.locationCoordinate(t);this.setLocation(new e.MercatorCoordinate(s.x-i,s.y-r))}setLocation(e){this.center=this.coordinateLocation(e),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(e){return this.projection.locationPoint(this,e)}locationPoint3D(e){return this.projection.locationPoint(this,e,!0)}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}pointLocation3D(e){return this.coordinateLocation(this.pointCoordinate3D(e))}locationCoordinate(t,n){const i=n?e.mercatorZfromAltitude(n,t.lat):void 0,r=this.projection.project(t.lng,t.lat);return new e.MercatorCoordinate(r.x,r.y,i)}coordinateLocation(e){return this.projection.unproject(e.x,e.y)}pointRayIntersection(t,n){const i=null!=n?n:this._centerAltitude,r=[t.x,t.y,0,1],o=[t.x,t.y,1,1];e.transformMat4$1(r,r,this.pixelMatrixInverse),e.transformMat4$1(o,o,this.pixelMatrixInverse);const s=o[3];e.scale$1(r,r,1/r[3]),e.scale$1(o,o,1/s);const a=r[2],l=o[2];return{p0:r,p1:o,t:a===l?0:(i-a)/(l-a)}}screenPointToMercatorRay(t){const n=[t.x,t.y,0,1],i=[t.x,t.y,1,1];return e.transformMat4$1(n,n,this.pixelMatrixInverse),e.transformMat4$1(i,i,this.pixelMatrixInverse),e.scale$1(n,n,1/n[3]),e.scale$1(i,i,1/i[3]),n[2]=e.mercatorZfromAltitude(n[2],this._center.lat)*this.worldSize,i[2]=e.mercatorZfromAltitude(i[2],this._center.lat)*this.worldSize,e.scale$1(n,n,1/this.worldSize),e.scale$1(i,i,1/this.worldSize),new e.Ray([n[0],n[1],n[2]],e.normalize([],e.sub([],i,n)))}rayIntersectionCoordinate(t){const{p0:n,p1:i,t:r}=t,o=e.mercatorZfromAltitude(n[2],this._center.lat),s=e.mercatorZfromAltitude(i[2],this._center.lat);return new e.MercatorCoordinate(e.number(n[0],i[0],r)/this.worldSize,e.number(n[1],i[1],r)/this.worldSize,e.number(o,s,r))}pointCoordinate(e,t=this._centerAltitude){return this.projection.pointCoordinate(this,e.x,e.y,t)}pointCoordinate3D(t){if(!this.elevation)return this.pointCoordinate(t);let n=this.projection.pointCoordinate3D(this,t.x,t.y);if(n)return new e.MercatorCoordinate(n[0],n[1],n[2]);let i=0,r=this.horizonLineFromTop();if(t.y>r)return this.pointCoordinate(t);const o=.02*r,s=t.clone();for(let a=0;a<10&&r-i>o;a++){s.y=e.number(i,r,.66);const t=this.projection.pointCoordinate3D(this,s.x,s.y);t?(r=s.y,n=t):i=s.y}return n?new e.MercatorCoordinate(n[0],n[1],n[2]):this.pointCoordinate(t)}isPointAboveHorizon(e){return this.projection.isPointAboveHorizon(this,e)}isPointOnSurface(t){if(t.y<0||t.y>this.height||t.x<0||t.x>this.width)return!1;if(this.elevation||this.zoom>=e.GLOBE_ZOOM_THRESHOLD_MAX)return!this.isPointAboveHorizon(t);const n=this.pointCoordinate(t);return n.y>=0&&n.y<=1}_coordinatePoint(t,n){const i=n&&this.elevation?this.elevation.getAtPointOrZero(t,this._centerAltitude):this._centerAltitude,r=[t.x*this.worldSize,t.y*this.worldSize,i+t.toAltitude(),1];return e.transformMat4$1(r,r,this.pixelMatrix),r[3]>0?new e.Point(r[0]/r[3],r[1]/r[3]):new e.Point(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){const{top:t,left:n}=this._edgeInsets,i=this.height-this._edgeInsets.bottom,r=this.width-this._edgeInsets.right,o=this.pointLocation3D(new e.Point(n,t)),s=this.pointLocation3D(new e.Point(r,t)),a=this.pointLocation3D(new e.Point(r,i)),l=this.pointLocation3D(new e.Point(n,i));let c=Math.min(o.lng,s.lng,a.lng,l.lng),u=Math.max(o.lng,s.lng,a.lng,l.lng),h=Math.min(o.lat,s.lat,a.lat,l.lat),d=Math.max(o.lat,s.lat,a.lat,l.lat);const p=Math.pow(2,-this.zoom)/16*270,f="globe"===this.projection.name?1:4,m=(t,n,i,r,o)=>{const s=(t+i)/2,a=(n+r)/2,l=new e.Point(s,a),{lng:g,lat:v}=this.pointLocation3D(l),y=Math.max(0,c-g,h-v,g-u,v-d);c=Math.min(c,g),u=Math.max(u,g),h=Math.min(h,v),d=Math.max(d,v),(o<f||y>p)&&(m(t,n,s,a,o+1),m(s,a,i,r,o+1))};if(m(n,t,r,t,1),m(r,t,r,i,1),m(r,i,n,i,1),m(n,i,n,t,1),"globe"===this.projection.name){const[t,n]=e.polesInViewport(this);t?(d=90,u=180,c=-180):n&&(h=-90,u=180,c=-180)}return new e.LngLatBounds(new e.LngLat(c,h),new e.LngLat(u,d))}_getBoundsRectangular(t,n){const{top:i,left:r}=this._edgeInsets,o=this.height-this._edgeInsets.bottom,s=this.width-this._edgeInsets.right,a=new e.Point(r,i),l=new e.Point(s,i),c=new e.Point(s,o),u=new e.Point(r,o);let h=this.pointCoordinate(a,t),d=this.pointCoordinate(l,t);const p=this.pointCoordinate(c,n),f=this.pointCoordinate(u,n),m=(e,t)=>(t.y-e.y)/(t.x-e.x);return h.y>1&&d.y>=0?h=new e.MercatorCoordinate((1-f.y)/m(f,h)+f.x,1):h.y<0&&d.y<=1&&(h=new e.MercatorCoordinate(-f.y/m(f,h)+f.x,0)),d.y>1&&h.y>=0?d=new e.MercatorCoordinate((1-p.y)/m(p,d)+p.x,1):d.y<0&&h.y<=1&&(d=new e.MercatorCoordinate(-p.y/m(p,d)+p.x,0)),(new e.LngLatBounds).extend(this.coordinateLocation(h)).extend(this.coordinateLocation(d)).extend(this.coordinateLocation(f)).extend(this.coordinateLocation(p))}_getBoundsRectangularTerrain(){const e=this.elevation;if(!e.visibleDemTiles.length||e.isUsingMockSource())return this._getBoundsRectangular(0,0);const t=e.visibleDemTiles.reduce(((e,t)=>{if(t.dem){const n=t.dem.tree;e.min=Math.min(e.min,n.minimums[0]),e.max=Math.max(e.max,n.maximums[0])}return e}),{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(t.min*e.exaggeration(),t.max*e.exaggeration())}getBounds(){return"mercator"===this.projection.name||"equirectangular"===this.projection.name?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(e=!0){const t=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,n=this.height/2-t*(1-this._horizonShift);return e?Math.max(0,n):n}getMaxBounds(){return this.maxBounds}setMaxBounds(t){this.maxBounds=t,this.minLat=-e.MAX_MERCATOR_LATITUDE,this.maxLat=e.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,t&&(this.minLat=t.getSouth(),this.maxLat=t.getNorth(),this.minLng=t.getWest(),this.maxLng=t.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=e.mercatorXfromLng(this.minLng)*this.tileSize,this.worldMaxX=e.mercatorXfromLng(this.maxLng)*this.tileSize,this.worldMinY=e.mercatorYfromLat(this.maxLat)*this.tileSize,this.worldMaxY=e.mercatorYfromLat(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(e,t){return this.projection.createTileMatrix(this,t,e)}calculateDistanceTileData(t){const n=t.key,i=this._distanceTileDataCache;if(i[n])return i[n];const r=t.canonical,o=1/this.height,s=this.cameraWorldSize,a=s/this.zoomScale(r.z),l=(r.x+Math.pow(2,r.z)*t.wrap)*a,c=r.y*a,u=this.point;u.x*=s/this.worldSize,u.y*=s/this.worldSize;const h=this.angle,d=Math.sin(-h),p=-Math.cos(-h);return i[n]={bearing:[d,p],center:[(u.x-l)*o,(u.y-c)*o],scale:a/e.EXTENT*o},i[n]}calculateFogTileMatrix(t){const n=t.key,i=this._fogTileMatrixCache;if(i[n])return i[n];const r=this.projection.createTileMatrix(this,this.cameraWorldSizeForFog,t);return e.multiply(r,this.worldToFogMatrix,r),i[n]=new Float32Array(r),i[n]}calculateProjMatrix(t,n=!1){const i=t.key,r=n?this._alignedProjMatrixCache:this._projMatrixCache;if(r[i])return r[i];const o=this.calculatePosMatrix(t,this.worldSize);return e.multiply(o,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:n?this.alignedProjMatrix:this.projMatrix,o),r[i]=new Float32Array(o),r[i]}calculatePixelsToTileUnitsMatrix(t){const n=t.tileID.key,i=this._pixelsToTileUnitsCache;if(i[n])return i[n];const r=function(t,n){const{scale:i}=t.tileTransform,r=i*e.EXTENT/(t.tileSize*Math.pow(2,n.zoom-t.tileID.overscaledZ+t.tileID.canonical.z));return o=new Float32Array(4),l=(s=n.inverseAdjustmentMatrix)[1],c=s[2],u=s[3],d=(a=[r,r])[1],o[0]=s[0]*(h=a[0]),o[1]=l*h,o[2]=c*d,o[3]=u*d,o;var o,s,a,l,c,u,h,d}(t,this);return i[n]=r,i[n]}customLayerMatrix(){return this.mercatorMatrix.slice()}globeToMercatorMatrix(){if("globe"===this.projection.name){const t=1/this.worldSize,n=e.fromScaling([],[t,t,t]);return e.multiply(n,n,this.globeMatrix),n}}recenterOnTerrain(){if(!this._elevation||"globe"===this.projection.name)return;const t=this._elevation;this._updateCameraState();const n=e.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,i=this._computeCameraPosition(n),r=this._camera.forward(),o=e.mercatorZfromAltitude(1,this._center.lat);i[2]/=o,r[2]/=o,e.normalize(r,r);const s=t.raycast(i,r,t.exaggeration());if(s){const t=e.scaleAndAdd([],i,r,s),n=new e.MercatorCoordinate(t[0],t[1],e.mercatorZfromAltitude(t[2],e.latFromMercatorY(t[1]))),a=(n.z+e.length([n.x-i[0],n.y-i[1],n.z-i[2]*o]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(a),this._centerAltitude=n.toAltitude(),this._center=this.coordinateLocation(n),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCamera(t=!1){if(!this._elevation)return;const n=this._elevation,i=e.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(i),o=n.getAtPointOrZero(new e.MercatorCoordinate(...r)),s=this.pixelsPerMeter/this.worldSize*o,a=this._minimumHeightOverTerrain(),l=r[2]-s;if(l<=a)if(l<0||t){const t=this.locationCoordinate(this._center,this._centerAltitude),n=[r[0],r[1],t.z-r[2]],i=e.length(n);n[2]-=(a-l)/this._pixelsPerMercatorPixel;const o=e.length(n);if(0===o)return;e.scale$2(n,n,i/o*this._pixelsPerMercatorPixel),this._camera.position=[r[0],r[1],t.z*this._pixelsPerMercatorPixel-n[2]],this._updateStateFromCamera()}else this._isCameraConstrained=!0}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const t="globe"===this.projection.name||this.mercatorFromTransition;if(this.projection.isReprojectedInTileSpace||t){const n=this.center;return n.lat=e.clamp(n.lat,this.minLat,this.maxLat),(this.maxBounds||!this.renderWorldCopies&&!t)&&(n.lng=e.clamp(n.lng,this.minLng,this.maxLng)),this.center=n,void(this._constraining=!1)}const n=this._unmodified,{x:i,y:r}=this.point;let o=0,s=i,a=r;const l=this.width/2,c=this.height/2,u=this.worldMinY*this.scale,h=this.worldMaxY*this.scale;if(r-c<u&&(a=u+c),r+c>h&&(a=h-c),h-u<this.height&&(o=Math.max(o,this.height/(h-u)),a=(h+u)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){const e=this.worldMinX*this.scale,t=this.worldMaxX*this.scale,n=this.worldSize/2-(e+t)/2;s=(i+n+this.worldSize)%this.worldSize-n,s-l<e&&(s=e+l),s+l>t&&(s=t-l),t-e<this.width&&(o=Math.max(o,this.width/(t-e)),s=(t+e)/2)}s===i&&a===r||(this.center=this.unproject(new e.Point(s,a))),o&&(this.zoom+=this.scaleZoom(o)),this._constrainCamera(),this._unmodified=n,this._constraining=!1}_minZoomForBounds(){let e=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(e=Math.max(e,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),e}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}_calcMatrices(){if(!this.height)return;const t=this.centerOffset,n=this.pixelsPerMeter;"globe"===this.projection.name&&(this._mercatorScaleRatio=e.mercatorZfromAltitude(1,this.center.lat)/e.mercatorZfromAltitude(1,e.GLOBE_SCALE_MATCH_LATITUDE));const i=Hi(this.projection,this.zoom,this.width,this.height,1024);this._pixelsPerMercatorPixel=this.projection.pixelSpaceConversion(this.center.lat,this.worldSize,i),this.cameraToCenterDistance=.5/Math.tan(.5*this._fov)*this.height*this._pixelsPerMercatorPixel,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const r="meters"===this.projection.zAxisUnit?n:1,o=this._camera.getWorldToCamera(this.worldSize,r),s=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);s[8]=2*-t.x/this.width,s[9]=2*t.y/this.height;let a=e.mul([],s,o);if(this.projection.isReprojectedInTileSpace){const t=this.locationCoordinate(this.center),n=e.identity([]);e.translate(n,n,[t.x*this.worldSize,t.y*this.worldSize,0]),e.multiply(n,n,Ui(this)),e.translate(n,n,[-t.x*this.worldSize,-t.y*this.worldSize,0]),e.multiply(a,a,n),this.inverseAdjustmentMatrix=function(e){const t=Ui(e,!0);return y([],[t[0],t[1],t[4],t[5]])}(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];this.mercatorMatrix=e.scale([],a,[this.worldSize,this.worldSize,this.worldSize/r,1]),this.projMatrix=a,this.invProjMatrix=e.invert(new Float64Array(16),this.projMatrix);const l=e.invert([],s);this.frustumCorners=e.FrustumCorners.fromInvProjectionMatrix(l,this.horizonLineFromTop(),this.height);const c=new Float32Array(16);e.identity(c),e.scale(c,c,[1,-1,1]),e.rotateX(c,c,this._pitch),e.rotateZ(c,c,this.angle);const u=e.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ),h=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;u[8]=2*-t.x/this.width,u[9]=2*(t.y+h)/this.height,this.skyboxMatrix=e.multiply(c,u,c);const d=this.point,p=d.x,f=d.y,m=this.width%2/2,g=this.height%2/2,v=Math.cos(this.angle),_=Math.sin(this.angle),b=p-Math.round(p)+v*m+_*g,x=f-Math.round(f)+v*g+_*m,w=new Float64Array(a);if(e.translate(w,w,[b>.5?b-1:b,x>.5?x-1:x,0]),this.alignedProjMatrix=w,a=e.create(),e.scale(a,a,[this.width/2,-this.height/2,1]),e.translate(a,a,[1,-1,0]),this.labelPlaneMatrix=a,a=e.create(),e.scale(a,a,[1,-1,1]),e.translate(a,a,[-1,-1,0]),e.scale(a,a,[2/this.width,2/this.height,1]),this.glCoordMatrix=a,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},a=e.invert(new Float64Array(16),this.pixelMatrix),!a)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=a,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=e.calculateGlobeMatrix(this);const t=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=e.transformMat4(t,t,o),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=a;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const t=this.cameraWorldSizeForFog,n=this.cameraPixelsPerMeter,i=this._camera.position,r=1/this.height/this._pixelsPerMercatorPixel,o=[t,t,n];e.scale$2(o,o,r),e.scale$2(i,i,-1),e.multiply$2(i,i,o);const s=e.create();e.translate(s,s,i),e.scale(s,s,o),this.mercatorFogMatrix=s,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(t,n,r)}_computeCameraPosition(e){const t=(e=e||this.pixelsPerMeter)/this.pixelsPerMeter,n=this._camera.forward(),i=this.point,r=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*t-e/this.worldSize*this._centerAltitude;return[i.x/this.worldSize-n[0]*r,i.y/this.worldSize-n[1]*r,e/this.worldSize*this._centerAltitude-n[2]*r]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(t){const n=this._maxCameraBoundsDistance()*Math.cos(this._pitch),i=this._camera.position[2],r=t[2];let o=1;this.projection.wrap&&(this.center=this.center.wrap()),r>0&&(o=Math.min((n-i)/r,1)),this._camera.position=e.scaleAndAdd([],this._camera.position,t,o),this._updateStateFromCamera()}_updateStateFromCamera(){const t=this._camera.position,n=this._camera.forward(),{pitch:i,bearing:r}=this._camera.getPitchBearing(),o=e.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,s=this._mercatorZfromZoom(this._maxZoom)*Math.cos(e.degToRad(this._maxPitch)),a=Math.max((t[2]-o)/Math.cos(i),s),l=this._zoomFromMercatorZ(a);e.scaleAndAdd(t,t,n,a),this._pitch=e.clamp(i,e.degToRad(this.minPitch),e.degToRad(this.maxPitch)),this.angle=e.wrap(r,-Math.PI,Math.PI),this._setZoom(e.clamp(l,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new e.MercatorCoordinate(t[0],t[1],t[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(e){return Math.pow(2,e)*this.tileSize}_mercatorZfromZoom(e){return this.cameraToCenterDistance/this._worldSizeFromZoom(e)}_minimumHeightOverTerrain(){const e=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+4,this._maxZoom);return this._mercatorZfromZoom(e)}_zoomFromMercatorZ(e){return this.scaleZoom(this.cameraToCenterDistance/(e*this.tileSize))}zoomFromMercatorZAdjusted(t){let n=0,i=e.GLOBE_ZOOM_THRESHOLD_MAX,r=0,o=1/0;for(;i-n>1e-6&&i>n;){const e=n+.5*(i-n),s=this.tileSize*Math.pow(2,e),a=this.getCameraToCenterDistance(this.projection,e,s),l=this.scaleZoom(a/(t*this.tileSize)),c=Math.abs(e-l);c<o&&(o=c,r=e),e<l?n=e:i=e}return r}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(e.warnOnce("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}anyCornerOffEdge(t,n){const i=Math.min(t.x,n.x),r=Math.max(t.x,n.x),o=Math.min(t.y,n.y),s=Math.max(t.y,n.y);if(o<this.horizonLineFromTop(!1))return!0;if("mercator"!==this.projection.name)return!1;const a=[new e.Point(i,o),new e.Point(r,s),new e.Point(i,s),new e.Point(r,o)],l=this.renderWorldCopies?-3:0,c=this.renderWorldCopies?4:1;for(const e of a){const t=this.pointRayIntersection(e);if(t.t<0)return!0;const n=this.rayIntersectionCoordinate(t);if(n.x<l||n.y<0||n.x>c||n.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+e.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new e.Point(0,0),new e.Point(this.width,this.height))}zoomDeltaToMovement(t,n){const i=e.length(e.sub([],this._camera.position,t)),r=this._zoomFromMercatorZ(i)+n;return i-this._mercatorZfromZoom(r)}getCameraPoint(){if("globe"===this.projection.name){const t=function([t,n,i],r){const o=[t,n,i,1];e.transformMat4$1(o,o,r);const s=o[3]=Math.max(o[3],1e-6);return o[0]/=s,o[1]/=s,o[2]/=s,o}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new e.Point(t[0],t[1])}{const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,t))}}getCameraToCenterDistance(e,t=this.zoom,n=this.worldSize){const i=Hi(e,t,this.width,this.height,1024),r=e.pixelSpaceConversion(this.center.lat,n,i);return.5/Math.tan(.5*this._fov)*this.height*r}getWorldToCameraMatrix(){const t=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?this.pixelsPerMeter:1);return"globe"===this.projection.name&&e.multiply(t,t,this.globeMatrix),t}}function Ki(e,t){let n=!1,i=null;const r=()=>{i=null,n&&(e(),i=setTimeout(r,t),n=!1)};return()=>(n=!0,i||r(),i)}class Yi{constructor(t){this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Ki(this._updateHashUnthrottled.bind(this),300)}addTo(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),t.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),e.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const t=this._map;if(!t)return"";const n=Ji(t);if(this._hashName){const t=this._hashName;let i=!1;const r=e.window.location.hash.slice(1).split("&").map((e=>{const r=e.split("=")[0];return r===t?(i=!0,`${r}=${n}`):e})).filter((e=>e));return i||r.push(`${t}=${n}`),`#${r.join("&")}`}return`#${n}`}_getCurrentHash(){const t=e.window.location.hash.replace("#","");if(this._hashName){let e;return t.split("&").map((e=>e.split("="))).forEach((t=>{t[0]===this._hashName&&(e=t)})),(e&&e[1]||"").split("/")}return t.split("/")}_onHashChange(){const e=this._map;if(!e)return!1;const t=this._getCurrentHash();if(t.length>=3&&!t.some((e=>isNaN(e)))){const n=e.dragRotate.isEnabled()&&e.touchZoomRotate.isEnabled()?+(t[3]||0):e.getBearing();return e.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:n,pitch:+(t[4]||0)}),!0}return!1}_updateHashUnthrottled(){const t=e.window.location.href.replace(/(#.+)?$/,this.getHashString());e.window.history.replaceState(e.window.history.state,null,t)}}function Ji(e,t){const n=e.getCenter(),i=Math.round(100*e.getZoom())/100,r=Math.ceil((i*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,r),s=Math.round(n.lng*o)/o,a=Math.round(n.lat*o)/o,l=e.getBearing(),c=e.getPitch();let u=t?`/${s}/${a}/${i}`:`${i}/${a}/${s}`;return(l||c)&&(u+="/"+Math.round(10*l)/10),c&&(u+=`/${Math.round(c)}`),u}const Qi={linearity:.3,easing:e.bezier(0,0,.3,1)},er=e.extend({deceleration:2500,maxSpeed:1400},Qi),tr=e.extend({deceleration:20,maxSpeed:1400},Qi),nr=e.extend({deceleration:1e3,maxSpeed:360},Qi),ir=e.extend({deceleration:1e3,maxSpeed:90},Qi);class rr{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.exported.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,n=e.exported.now();for(;t.length>0&&n-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._map._prefersReducedMotion())return;if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const n={zoom:0,bearing:0,pitch:0,pan:new e.Point(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)n.zoom+=e.zoomDelta||0,n.bearing+=e.bearingDelta||0,n.pitch+=e.pitchDelta||0,e.panDelta&&n.pan._add(e.panDelta),e.around&&(n.around=e.around),e.pinchAround&&(n.pinchAround=e.pinchAround);const i=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,r={};if(n.pan.mag()){const o=sr(n.pan.mag(),i,e.extend({},er,t||{}));r.offset=n.pan.mult(o.amount/n.pan.mag()),r.center=this._map.transform.center,or(r,o)}if(n.zoom){const e=sr(n.zoom,i,tr);r.zoom=this._map.transform.zoom+e.amount,or(r,e)}if(n.bearing){const t=sr(n.bearing,i,nr);r.bearing=this._map.transform.bearing+e.clamp(t.amount,-179,179),or(r,t)}if(n.pitch){const e=sr(n.pitch,i,ir);r.pitch=this._map.transform.pitch+e.amount,or(r,e)}if(r.zoom||r.bearing){const e=void 0===n.pinchAround?n.around:n.pinchAround;r.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),r.noMoveStart=!0,r}}function or(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function sr(t,n,i){const{maxSpeed:r,linearity:o,deceleration:s}=i,a=e.clamp(t*o/(n/1e3),-r,r),l=Math.abs(a)/(s*o);return{easing:i.easing,duration:1e3*l,amount:a*(l/2)}}class ar extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,n,i,r={}){const o=f(n.getCanvasContainer(),i),s=n.unproject(o);super(t,e.extend({point:o,lngLat:s,originalEvent:i},r)),this._defaultPrevented=!1,this.target=n}}class lr extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,n,i){const r="touchend"===t?i.changedTouches:i.touches,o=m(n.getCanvasContainer(),r),s=o.map((e=>n.unproject(e))),a=o.reduce(((e,t,n,i)=>e.add(t.div(i.length))),new e.Point(0,0));super(t,{points:o,point:a,lngLats:s,lngLat:n.unproject(a),originalEvent:i}),this._defaultPrevented=!1}}class cr extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,n){super(e,{originalEvent:n}),this._defaultPrevented=!1}}class ur{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._mousedownPos=void 0}wheel(e){return this._firePreventable(new cr(e.type,this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new ar(e.type,this._map,e))}mouseup(e){this._map.fire(new ar(e.type,this._map,e))}preclick(t){const n=e.extend({},t);n.type="preclick",this._map.fire(new ar(n.type,this._map,n))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||(this.preclick(e),this._map.fire(new ar(e.type,this._map,e)))}dblclick(e){return this._firePreventable(new ar(e.type,this._map,e))}mouseover(e){this._map.fire(new ar(e.type,this._map,e))}mouseout(e){this._map.fire(new ar(e.type,this._map,e))}touchstart(e){return this._firePreventable(new lr(e.type,this._map,e))}touchmove(e){this._map.fire(new lr(e.type,this._map,e))}touchend(e){this._map.fire(new lr(e.type,this._map,e))}touchcancel(e){this._map.fire(new lr(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class hr{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(e){this._map.fire(new ar(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ar("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new ar(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class dr{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(u(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const n=t,i=this._startPos,r=this._lastPos;if(!i||!r||r.equals(n)||!this._box&&n.dist(i)<this._clickTolerance)return;this._lastPos=n,this._box||(this._box=o("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));const s=Math.min(i.x,n.x),a=Math.max(i.x,n.x),l=Math.min(i.y,n.y),c=Math.max(i.y,n.y);this._map._requestDomTask((()=>{this._box&&(this._box.style.transform=`translate(${s}px,${l}px)`,this._box.style.width=a-s+"px",this._box.style.height=c-l+"px")}))}mouseupWindow(t,n){if(!this._active)return;const i=this._startPos,r=n;if(i&&0===t.button){if(this.reset(),p(),i.x!==r.x||i.y!==r.y)return this._map.fire(new e.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:e=>e.fitScreenCoordinates(i,r,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",t)}}keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),h(),delete this._startPos,delete this._lastPos}_fireEvent(t,n){return this._map.fire(new e.Event(t,{originalEvent:n}))}}function pr(e,t){const n={};for(let i=0;i<e.length;i++)n[e[i].identifier]=t[i];return n}class fr{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(t,n,i){(this.centroid||i.length>this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=t.timeStamp),i.length===this.numTouches&&(this.centroid=function(t){const n=new e.Point(0,0);for(const e of t)n._add(e);return n.div(t.length)}(n),this.touches=pr(i,n)))}touchmove(e,t,n){if(this.aborted||!this.centroid)return;const i=pr(n,t);for(const r in this.touches){const e=i[r];(!e||e.dist(this.touches[r])>30)&&(this.aborted=!0)}}touchend(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class mr{constructor(e){this.singleTap=new fr(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(e,t,n){this.singleTap.touchstart(e,t,n)}touchmove(e,t,n){this.singleTap.touchmove(e,t,n)}touchend(e,t,n){const i=this.singleTap.touchend(e,t,n);if(i){const t=e.timeStamp-this.lastTime<500,n=!this.lastTap||this.lastTap.dist(i)<30;if(t&&n||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}}}class gr{constructor(){this._zoomIn=new mr({numTouches:1,numTaps:2}),this._zoomOut=new mr({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)}touchmove(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)}touchend(e,t,n){const i=this._zoomIn.touchend(e,t,n),r=this._zoomOut.touchend(e,t,n);return i?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(i)},{originalEvent:e})}):r?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(r)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const vr={0:1,2:2};class yr{constructor(e){this.reset(),this._clickTolerance=e.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(e,t){return!1}_move(e,t){return{}}mousedown(e,t){if(this._lastPoint)return;const n=g(e);this._correctButton(e,n)&&(this._lastPoint=t,this._eventButton=n)}mousemoveWindow(e,t){const n=this._lastPoint;if(n)if(e.preventDefault(),null!=this._eventButton&&function(e,t){const n=vr[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(n,t)}mouseupWindow(e){this._lastPoint&&g(e)===this._eventButton&&(this._moved&&p(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class _r extends yr{mousedown(e,t){super.mousedown(e,t),this._lastPoint&&(this._active=!0)}_correctButton(e,t){return 0===t&&!e.ctrlKey}_move(e,t){return{around:t,panDelta:t.sub(e)}}}class br extends yr{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const n=.8*(t.x-e.x);if(n)return this._active=!0,{bearingDelta:n}}contextmenu(e){e.preventDefault()}}class xr extends yr{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const n=-.5*(t.y-e.y);if(n)return this._active=!0,{pitchDelta:n}}contextmenu(e){e.preventDefault()}}class wr{constructor(t,n){this._map=t,this._el=t.getCanvasContainer(),this._minTouches=1,this._clickTolerance=n.clickTolerance||1,this.reset(),e.bindAll(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new e.Point(0,0)}touchstart(e,t,n){return this._calculateTransform(e,t,n)}touchmove(t,n,i){if(this._active&&!(i.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(1===i.length&&!e.isFullscreen())return void this._showTouchPanBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return t.cancelable&&t.preventDefault(),this._calculateTransform(t,n,i)}}touchend(e,t,n){this._calculateTransform(e,t,n),this._active&&n.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,n,i){i.length>0&&(this._active=!0);const r=pr(i,n),o=new e.Point(0,0),s=new e.Point(0,0);let a=0;for(const e in r){const t=r[e],n=this._touches[e];n&&(o._add(t),s._add(t.sub(n)),a++,r[e]=t)}if(this._touches=r,a<this._minTouches||!s.mag())return;const l=s.div(a);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:o.div(a),panDelta:l}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=o("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showTouchPanBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","null")}),500)}}class Cr{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(e){}_move(e,t,n){return{}}touchstart(e,t,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,n){const i=this._firstTwoTouches;if(!i)return;e.preventDefault();const[r,o]=i,s=kr(n,t,r),a=kr(n,t,o);if(!s||!a)return;const l=this._aroundCenter?null:s.add(a).div(2);return this._move([s,a],l,e)}touchend(e,t,n){if(!this._firstTwoTouches)return;const[i,r]=this._firstTwoTouches,o=kr(n,t,i),s=kr(n,t,r);o&&s||(this._active&&p(),this.reset())}touchcancel(){this.reset()}enable(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function kr(e,t,n){for(let i=0;i<e.length;i++)if(e[i].identifier===n)return t[i]}function Sr(e,t){return Math.log(e/t)/Math.LN2}class Er extends Cr{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){const n=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(Sr(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Sr(this._distance,n),pinchAround:t}}}function Tr(e,t){return 180*e.angleWith(t)/Math.PI}class Mr extends Cr{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t){const n=this._vector;if(this._vector=e[0].sub(e[1]),n&&(this._active||!this._isBelowThreshold(this._vector)))return this._active=!0,{bearingDelta:Tr(this._vector,n),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());const t=25/(Math.PI*this._minDiameter)*360,n=this._startVector;if(!n)return!1;const i=Tr(e,n);return Math.abs(i)<t}}function Ar(e){return Math.abs(e.y)>Math.abs(e.x)}class Or extends Cr{constructor(e){super(),this._map=e}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(e){this._lastPoints=e,Ar(e[0].sub(e[1]))&&(this._valid=!1)}_move(t,n,i){const r=this._lastPoints;if(!r)return;const o=t[0].sub(r[0]),s=t[1].sub(r[1]);return this._map._cooperativeGestures&&!e.isFullscreen()&&i.touches.length<3||(this._valid=this.gestureBeginsVertically(o,s,i.timeStamp),!this._valid)?void 0:(this._lastPoints=t,this._active=!0,{pitchDelta:(o.y+s.y)/2*-.5})}gestureBeginsVertically(e,t,n){if(void 0!==this._valid)return this._valid;const i=e.mag()>=2,r=t.mag()>=2;if(!i&&!r)return;if(!i||!r)return null==this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;const o=e.y>0==t.y>0;return Ar(e)&&Ar(t)&&o}}const Ir={panStep:100,bearingStep:15,pitchStep:10};class Dr{constructor(){const e=Ir;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,n=0,i=0,r=0,o=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(),r=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),r=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(n=0,i=0),{cameraAnimation:s=>{const a=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:Pr,zoom:t?Math.round(a)+t*(e.shiftKey?2:1):a,bearing:s.getBearing()+n*this._bearingStep,pitch:s.getPitch()+i*this._pitchStep,offset:[-r*this._panStep,-o*this._panStep],center:s.getCenter()},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Pr(e){return e*(2-e)}const zr=4.000244140625;class Lr{constructor(t,n){this._map=t,this._el=t.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,e.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(t){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(t.ctrlKey||t.metaKey||this.isZooming()||e.isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let n=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const i=e.exported.now(),r=i-(this._lastWheelEventTime||0);this._lastWheelEventTime=i,0!==n&&n%zr==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":r>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(r*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._active||this._start(t)),t.preventDefault()}_onTimeout(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const t=f(this._el,e);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:t,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const t=this._map.transform;"wheel"===this._type&&t.projection.wrap&&(t._center.lng>=180||t._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);const n=()=>t._terrainEnabled()&&this._aroundCoord?t.computeZoomRelativeTo(this._aroundCoord):t.zoom;if(0!==this._delta){const e="wheel"===this._type&&Math.abs(this._delta)>zr?this._wheelZoomRate:this._defaultZoomRate;let i=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==i&&(i=1/i);const r=n(),o=Math.pow(2,r),s="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):o;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(s*i))),"wheel"===this._type&&(this._startZoom=r,this._easing=this._smoothOutEasing(200)),this._delta=0}const i="number"==typeof this._targetZoom?this._targetZoom:n(),r=this._startZoom,o=this._easing;let s,a=!1;if("wheel"===this._type&&r&&o){const t=Math.min((e.exported.now()-this._lastWheelEventTime)/200,1),n=o(t);s=e.number(r,i,n),t<1?this._frameId||(this._frameId=!0):a=!0}else s=i,a=!0;return this._active=!0,a&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!a,zoomDelta:s-n(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let n=e.ease;if(this._prevEase){const t=this._prevEase,i=(e.exported.now()-t.start)/t.duration,r=t.easing(i+.01)-t.easing(i),o=.27/Math.sqrt(r*r+1e-4)*.01,s=Math.sqrt(.0729-o*o);n=e.bezier(o,s,.25,1)}return this._prevEase={start:e.exported.now(),duration:t,easing:n},n}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=o("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(e.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","null")}),200)}}class Br{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Fr{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(e,t){return e.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Rr{constructor(){this._tap=new mr({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(e,t,n){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=t[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(e,t,n))}touchmove(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;const i=t[0],r=i.y-this._swipePoint.y;return this._swipePoint=i,e.preventDefault(),this._active=!0,{zoomDelta:r/128}}}else this._tap.touchmove(e,t,n)}touchend(e,t,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(e,t,n)&&(this._tapTime=e.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class $r{constructor(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Nr{constructor(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class jr{constructor(e,t,n,i){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Vr=e=>e.zoom||e.drag||e.pitch||e.rotate;class Ur extends e.Event{}class qr{constructor(){this.constants=[1,1,.01],this.radius=0}setup(t,n){const i=e.sub([],n,t);this.radius=e.length(i[2]<0?e.div([],i,this.constants):[i[0],i[1],0])}projectRay(t){e.div(t,t,this.constants),e.normalize(t,t),e.mul$1(t,t,this.constants);const n=e.scale$2([],t,this.radius);if(n[2]>0){const t=e.scale$2([],[0,0,1],e.dot(n,[0,0,1])),i=e.scale$2([],e.normalize([],[n[0],n[1],0]),this.radius),r=e.add([],n,e.scale$2([],e.sub([],e.add([],i,t),n),2));n[0]=r[0],n[1]=r[1]}return n}}function Hr(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class Wr{constructor(t,n){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new rr(t),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new qr,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(n),e.bindAll(["handleEvent","handleWindowEvent"],this);const i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[e.window,"blur",void 0]];for(const[r,o,s]of this._listeners)r.addEventListener(o,r===e.window.document?this.handleWindowEvent:this.handleEvent,s)}destroy(){for(const[t,n,i]of this._listeners)t.removeEventListener(n,t===e.window.document?this.handleWindowEvent:this.handleEvent,i)}_addDefaultHandlers(e){const t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new ur(t,e));const i=t.boxZoom=new dr(t,e);this._add("boxZoom",i);const r=new gr,o=new Fr;t.doubleClickZoom=new Br(o,r),this._add("tapZoom",r),this._add("clickZoom",o);const s=new Rr;this._add("tapDragZoom",s);const a=t.touchPitch=new Or(t);this._add("touchPitch",a);const l=new br(e),c=new xr(e);t.dragRotate=new Nr(e,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const u=new _r(e),h=new wr(t,e);t.dragPan=new $r(n,u,h),this._add("mousePan",u),this._add("touchPan",h,["touchZoom","touchRotate"]);const d=new Mr,p=new Er;t.touchZoomRotate=new jr(n,p,d,s),this._add("touchRotate",d,["touchPan","touchZoom"]),this._add("touchZoom",p,["touchPan","touchRotate"]),this._add("blockableMapEvent",new hr(t));const f=t.scrollZoom=new Lr(t,this);this._add("scrollZoom",f,["mousePan"]);const m=t.keyboard=new Dr;this._add("keyboard",m);for(const g of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])e.interactive&&e[g]&&t[g].enable(e[g])}_add(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(const{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Vr(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(e,t,n){for(const i in e)if(i!==n&&(!t||t.indexOf(i)<0))return!0;return!1}handleWindowEvent(e){this.handleEvent(e,`${e.type}Window`)}_getMapTouches(e){const t=[];for(const n of e)this._el.contains(n.target)&&t.push(n);return t}handleEvent(e,t){this._updatingCamera=!0;const n="renderFrame"===e.type,i=n?void 0:e,r={needsRenderFrame:!1},o={},s={},a=e.touches?this._getMapTouches(e.touches):void 0,l=a?m(this._el,a):n?void 0:f(this._el,e);for(const{handlerName:h,handler:d,allowed:p}of this._handlers){if(!d.isEnabled())continue;let n;this._blockedByActive(s,p,h)?d.reset():d[t||e.type]&&(n=d[t||e.type](e,l,a),this.mergeHandlerResult(r,o,n,h,i),n&&n.needsRenderFrame&&this._triggerRenderFrame()),(n||d.isActive())&&(s[h]=d)}const c={};for(const h in this._previousActiveHandlers)s[h]||(c[h]=i);this._previousActiveHandlers=s,(Object.keys(c).length||Hr(r))&&(this._changes.push([r,o,c]),this._triggerRenderFrame()),(Object.keys(s).length||Hr(r))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:u}=r;u&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],u(this._map))}mergeHandlerResult(t,n,i,r,o){if(!i)return;e.extend(t,i);const s={handlerName:r,originalEvent:i.originalEvent||o};void 0!==i.zoomDelta&&(n.zoom=s),void 0!==i.panDelta&&(n.drag=s),void 0!==i.pitchDelta&&(n.pitch=s),void 0!==i.bearingDelta&&(n.rotate=s)}_applyChanges(){const t={},n={},i={};for(const[r,o,s]of this._changes)r.panDelta&&(t.panDelta=(t.panDelta||new e.Point(0,0))._add(r.panDelta)),r.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+r.zoomDelta),r.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+r.bearingDelta),r.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+r.pitchDelta),void 0!==r.around&&(t.around=r.around),void 0!==r.aroundCoord&&(t.aroundCoord=r.aroundCoord),void 0!==r.pinchAround&&(t.pinchAround=r.pinchAround),r.noInertia&&(t.noInertia=r.noInertia),e.extend(n,o),e.extend(i,s);this._updateMapTransform(t,n,i),this._changes=[]}_updateMapTransform(t,n,i){const r=this._map,o=r.transform,s=e=>[e.x,e.y,e.z];if((()=>{const e=this._eventsInProgress.drag;return e&&!this._handlersById[e.handlerName].isActive()})()&&!Hr(t)){const e=o.zoom;o.cameraElevationReference="sea",o.recenterOnTerrain(),o.cameraElevationReference="ground",e!==o.zoom&&this._map._update(!0)}if(o._isCameraConstrained&&r._stop(!0),!Hr(t))return void this._fireEvents(n,i,!0);let{panDelta:a,zoomDelta:l,bearingDelta:c,pitchDelta:u,around:h,aroundCoord:d,pinchAround:p}=t;o._isCameraConstrained&&(l>0&&(l=0),o._isCameraConstrained=!1),void 0!==p&&(h=p),(l||(e=>n[e]&&!this._eventsInProgress[e])("drag"))&&h&&(this._dragOrigin=s(o.pointCoordinate3D(h)),this._trackingEllipsoid.setup(o._camera.position,this._dragOrigin)),o.cameraElevationReference="sea",r._stop(!0),h=h||r.transform.centerPoint,c&&(o.bearing+=c),u&&(o.pitch+=u),o._updateCameraState();const f=[0,0,0];if(a)if("mercator"===o.projection.name){const e=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(h).dir),t=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(h.sub(a)).dir);f[0]=t[0]-e[0],f[1]=t[1]-e[1]}else{const t=o.pointCoordinate(h);if("globe"===o.projection.name){a=a.rotate(-o.angle);const n=o._pixelsPerMercatorPixel/o.worldSize;f[0]=-a.x*e.mercatorScale(e.latFromMercatorY(t.y))*n,f[1]=-a.y*e.mercatorScale(o.center.lat)*n}else{const e=o.pointCoordinate(h.sub(a));t&&e&&(f[0]=e.x-t.x,f[1]=e.y-t.y)}}const m=o.zoom,g=[0,0,0];if(l){const t=s(d||o.pointCoordinate3D(h)),n={dir:e.normalize([],e.sub([],t,o._camera.position))};if(n.dir[2]<0){const i=o.zoomDeltaToMovement(t,l);e.scale$2(g,n.dir,i)}}const v=e.add(f,f,g);o._translateCameraConstrained(v),l&&Math.abs(o.zoom-m)>1e-4&&o.recenterOnTerrain(),o.cameraElevationReference="ground",this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(n,i,!0)}_fireEvents(t,n,i){const r=Vr(this._eventsInProgress),o=Vr(t),s={};for(const e in t){const{originalEvent:n}=t[e];this._eventsInProgress[e]||(s[`${e}start`]=n),this._eventsInProgress[e]=t[e]}!r&&o&&this._fireEvent("movestart",o.originalEvent);for(const e in s)this._fireEvent(e,s[e]);o&&this._fireEvent("move",o.originalEvent);for(const e in t){const{originalEvent:n}=t[e];this._fireEvent(e,n)}const a={};let l;for(const e in this._eventsInProgress){const{handlerName:t,originalEvent:i}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],l=n[t]||i,a[`${e}end`]=l)}for(const e in a)this._fireEvent(e,a[e]);const c=Vr(this._eventsInProgress);if(i&&(r||o)&&!c){this._updatingCamera=!0;const t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),n=e=>0!==e&&-this._bearingSnap<e&&e<this._bearingSnap;t?(n(t.bearing||this._map.getBearing())&&(t.bearing=0),this._map.easeTo(t,{originalEvent:l})):(this._map.fire(new e.Event("moveend",{originalEvent:l})),n(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(t,n){this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add((e=>{this._frameId=void 0,this.handleEvent(new Ur("renderFrame",{timeStamp:e})),this._applyChanges()}))}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const Gr="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class Zr extends e.Evented{constructor(t,n){super(),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=n.bearingSnap,this._respectPrefersReducedMotion=!1!==n.respectPrefersReducedMotion,e.bindAll(["_renderFrameCallback"],this)}getCenter(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,n,i){return t=e.Point.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},n),i)}panTo(t,n,i){return this.easeTo(e.extend({center:t},n),i)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(t,n,i){return this.easeTo(e.extend({zoom:t},n),i)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(t,n,i){return this.easeTo(e.extend({bearing:t},n),i)}resetNorth(t,n){return this.rotateTo(0,e.extend({duration:1e3},t),n),this}resetNorthPitch(t,n){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),n),this}snapToNorth(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this}getPitch(){return this.transform.pitch}setPitch(e,t){return this.jumpTo({pitch:e},t),this}cameraForBounds(t,n){t=e.LngLatBounds.convert(t);const i=n&&n.bearing||0,r=n&&n.pitch||0,o=t.getNorthWest(),s=t.getSouthEast();return this._cameraForBounds(this.transform,o,s,i,r,n)}_extendCameraOptions(t){const n={top:0,bottom:0,right:0,left:0};if("number"==typeof(t=e.extend({padding:n,offset:[0,0],maxZoom:this.transform.maxZoom},t)).padding){const e=t.padding;t.padding={top:e,bottom:e,right:e,left:e}}return t.padding=e.extend(n,t.padding),t}_minimumAABBFrustumDistance(e,t){const n=t.max[0]-t.min[0],i=t.max[1]-t.min[1];return n/i>e.aspect?n/(2*Math.tan(.5*e.fovX)*e.aspect):i/(2*Math.tan(.5*e.fovY)*e.aspect)}_cameraForBoundsOnGlobe(t,n,i,r,o,s){const a=t.clone(),l=this._extendCameraOptions(s);a.bearing=r,a.pitch=o;const c=e.LngLat.convert(n),u=e.LngLat.convert(i),h=.5*(c.lat+u.lat),d=.5*(c.lng+u.lng),p=e.latLngToECEF(h,d),f=e.normalize([],p),m=e.normalize([],e.cross([],f,[0,1,0])),g=e.cross([],m,f),v=[m[0],m[1],m[2],0,g[0],g[1],g[2],0,f[0],f[1],f[2],0,0,0,0,1],y=[p,e.latLngToECEF(c.lat,c.lng),e.latLngToECEF(u.lat,c.lng),e.latLngToECEF(u.lat,u.lng),e.latLngToECEF(c.lat,u.lng),e.latLngToECEF(h,c.lng),e.latLngToECEF(h,u.lng),e.latLngToECEF(c.lat,d),e.latLngToECEF(u.lat,d)];let _=e.Aabb.fromPoints(y.map((t=>[e.dot(m,t),e.dot(g,t),e.dot(f,t)])));const b=e.transformMat4([],_.center,v);0===e.squaredLength(b)&&e.set(b,0,0,1),e.normalize(b,b),e.scale$2(b,b,e.GLOBE_RADIUS),a.center=e.ecefToLatLng(b);const x=a.getWorldToCameraMatrix(),w=e.invert(new Float64Array(16),x);_=e.Aabb.applyTransform(_,e.multiply([],x,v)),e.transformMat4(b,b,x);const C=.5*(_.max[2]-_.min[2]),k=this._minimumAABBFrustumDistance(a,_),S=e.scale$2([],[0,0,1],C),E=e.add(S,b,S),T=k+(0===a.pitch?0:e.distance(b,E)),M=a.globeCenterInViewSpace,A=e.sub([],b,[M[0],M[1],M[2]]);e.normalize(A,A),e.scale$2(A,A,T);const O=e.add([],b,A);e.transformMat4(O,O,w);const I=e.earthRadius/e.GLOBE_RADIUS,D=e.length(O),P=e.mercatorZfromAltitude(Math.max(D*I-e.earthRadius,Number.EPSILON),0),z=Math.min(a.zoomFromMercatorZAdjusted(P),l.maxZoom);return z>.5*(e.GLOBE_ZOOM_THRESHOLD_MIN+e.GLOBE_ZOOM_THRESHOLD_MAX)?(a.setProjection({name:"mercator"}),a.zoom=z,this._cameraForBounds(a,n,i,r,o,s)):{center:a.center,zoom:z,bearing:r,pitch:o}}queryTerrainElevation(t,n){const i=this.transform.elevation;return i?(n=e.extend({},{exaggerated:!0},n),i.getAtPoint(e.MercatorCoordinate.fromLngLat(t),null,n.exaggerated)):null}_cameraForBounds(t,n,i,r,o,s){if("globe"===t.projection.name)return this._cameraForBoundsOnGlobe(t,n,i,r,o,s);const a=t.clone(),l=this._extendCameraOptions(s),c=a.padding;a.bearing=r,a.pitch=o;const u=e.LngLat.convert(n),h=e.LngLat.convert(i),d=new e.LngLat(u.lng,h.lat),p=new e.LngLat(h.lng,u.lat),f=a.project(u),m=a.project(h),g=this.queryTerrainElevation(u),v=this.queryTerrainElevation(h),y=this.queryTerrainElevation(d),_=this.queryTerrainElevation(p),b=[[f.x,f.y,Math.min(g||0,v||0,y||0,_||0)],[m.x,m.y,Math.max(g||0,v||0,y||0,_||0)]];let x=e.Aabb.fromPoints(b);const w=a.getWorldToCameraMatrix(),C=e.invert(new Float64Array(16),w);x=e.Aabb.applyTransform(x,w);const k=e.sub([],x.max,x.min),S=c.left||0,E=c.right||0,T=c.bottom||0,M=c.top||0,{left:A,right:O,top:I,bottom:D}=l.padding,P=.5*(S+E),z=.5*(M+T),L=Math.min(a.scaleZoom(a.scale*Math.min((a.width-(S+E+A+O))/k[0],(a.height-(T+M+D+I))/k[1])),l.maxZoom),B=a.scale/a.zoomScale(L);x=new e.Aabb([x.min[0]-(A+P)*B,x.min[1]-(D+z)*B,x.min[2]],[x.max[0]+(O+P)*B,x.max[1]+(I+z)*B,x.max[2]]);const F=.5*k[2],R=this._minimumAABBFrustumDistance(a,x),$=[0,0,1,0];e.transformMat4$1($,$,w),e.normalize$2($,$);const N=e.scale$2([],$,R+F),j=e.add([],x.center,N),V=("number"==typeof l.offset.x&&"number"==typeof l.offset.y?new e.Point(l.offset.x,l.offset.y):e.Point.convert(l.offset)).rotate(-e.degToRad(r));x.center[0]-=V.x*B,x.center[1]+=V.y*B,e.transformMat4(x.center,x.center,C),e.transformMat4(j,j,C);const U=[x.center[0],x.center[1],j[2]*a.pixelsPerMeter];e.scale$2(U,U,1/a.worldSize);const q=e.lngFromMercatorX(U[0]),H=e.latFromMercatorY(U[1]),W=Math.min(a._zoomFromMercatorZ(U[2]),l.maxZoom),G=new e.LngLat(q,H);return a.mercatorFromTransition&&W<.5*(e.GLOBE_ZOOM_THRESHOLD_MIN+e.GLOBE_ZOOM_THRESHOLD_MAX)?(a.setProjection({name:"globe"}),a.zoom=W,this._cameraForBounds(a,n,i,r,o,s)):{center:G,zoom:W,bearing:r,pitch:o}}fitBounds(e,t,n){const i=this.cameraForBounds(e,t);return this._fitInternal(i,t,n)}fitScreenCoordinates(t,n,i,r,o){const s=e.Point.convert(t),a=e.Point.convert(n),l=new e.Point(Math.min(s.x,a.x),Math.min(s.y,a.y)),c=new e.Point(Math.max(s.x,a.x),Math.max(s.y,a.y));if("mercator"===this.transform.projection.name&&this.transform.anyCornerOffEdge(s,a))return this;const u=this.transform.pointLocation3D(l),h=this.transform.pointLocation3D(c),d=this.transform.pointLocation3D(new e.Point(l.x,c.y)),p=this.transform.pointLocation3D(new e.Point(c.x,l.y)),f=[Math.min(u.lng,h.lng,d.lng,p.lng),Math.min(u.lat,h.lat,d.lat,p.lat)],m=[Math.max(u.lng,h.lng,d.lng,p.lng),Math.max(u.lat,h.lat,d.lat,p.lat)],g=r&&r.pitch?r.pitch:this.getPitch(),v=this._cameraForBounds(this.transform,f,m,i,g,r);return this._fitInternal(v,r,o)}_fitInternal(t,n,i){return t?(delete(n=e.extend(t,n)).padding,n.linear?this.easeTo(n,i):this.flyTo(n,i)):this}jumpTo(t,n){this.stop();const i=t.preloadOnly?this.transform.clone():this.transform;let r=!1,o=!1,s=!1;return"zoom"in t&&i.zoom!==+t.zoom&&(r=!0,i.zoom=+t.zoom),void 0!==t.center&&(i.center=e.LngLat.convert(t.center)),"bearing"in t&&i.bearing!==+t.bearing&&(o=!0,i.bearing=+t.bearing),"pitch"in t&&i.pitch!==+t.pitch&&(s=!0,i.pitch=+t.pitch),null==t.padding||i.isPaddingEqual(t.padding)||(i.padding=t.padding),t.preloadOnly?(this._preloadTiles(i),this):(this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),r&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),o&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),s&&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)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||e.warnOnce(Gr),this.transform.getFreeCameraOptions()}setFreeCameraOptions(t,n){const i=this.transform;if(!i.projection.supportsFreeCamera)return e.warnOnce(Gr),this;this.stop();const r=i.zoom,o=i.pitch,s=i.bearing;i.setFreeCameraOptions(t);const a=r!==i.zoom,l=o!==i.pitch,c=s!==i.bearing;return this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),a&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),c&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),l&&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)),this}easeTo(t,n){this._stop(!1,t.easeId),(!1===(t=e.extend({offset:[0,0],duration:500,easing:e.ease},t)).animate||this._prefersReducedMotion(t))&&(t.duration=0);const i=this.transform,r=this.getZoom(),o=this.getBearing(),s=this.getPitch(),a=this.getPadding(),l="zoom"in t?+t.zoom:r,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,u="pitch"in t?+t.pitch:s,h="padding"in t?t.padding:i.padding,d=e.Point.convert(t.offset);let p,f,m;if("globe"===i.projection.name){const n=e.MercatorCoordinate.fromLngLat(i.center),r=d.rotate(-i.angle);n.x+=r.x/i.worldSize,n.y+=r.y/i.worldSize;const o=n.toLngLat(),s=e.LngLat.convert(t.center||o);this._normalizeCenter(s),p=i.centerPoint.add(r),f=new e.Point(n.x,n.y).mult(i.worldSize),m=new e.Point(e.mercatorXfromLng(s.lng),e.mercatorYfromLat(s.lat)).mult(i.worldSize).sub(f)}else{p=i.centerPoint.add(d);const n=i.pointLocation(p),r=e.LngLat.convert(t.center||n);this._normalizeCenter(r),f=i.project(n),m=i.project(r).sub(f)}const g=i.zoomScale(l-r);let v,y;t.around&&(v=e.LngLat.convert(t.around),y=i.locationPoint(v));const _=this._zooming||l!==r,b=this._rotating||o!==c,x=this._pitching||u!==s,w=!i.isPaddingEqual(h),C=i=>C=>{if(_&&(i.zoom=e.number(r,l,C)),b&&(i.bearing=e.number(o,c,C)),x&&(i.pitch=e.number(s,u,C)),w&&(i.interpolatePadding(a,h,C),p=i.centerPoint.add(d)),v)i.setLocationAtPoint(v,y);else{const e=i.zoomScale(i.zoom-r),t=l>r?Math.min(2,g):Math.max(.5,g),n=Math.pow(t,1-C),o=i.unproject(f.add(m.mult(C*n)).mult(e));i.setLocationAtPoint(i.renderWorldCopies?o.wrap():o,p)}return t.preloadOnly||this._fireMoveEvents(n),i};if(t.preloadOnly){const e=this._emulate(C,t.duration,i);return this._preloadTiles(e),this}const k={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=_,this._rotating=b,this._pitching=x,this._padding=w,this._easeId=t.easeId,this._prepareEase(n,t.noMoveStart,k),this._ease(C(i),(e=>{i.recenterOnTerrain(),this._afterEase(n,e)}),t),this}_prepareEase(t,n,i={}){this._moving=!0,this.transform.cameraElevationReference="sea",n||i.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!i.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!i.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!i.pitching&&this.fire(new e.Event("pitchstart",t))}_fireMoveEvents(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))}_afterEase(t,n){if(this._easeId&&n&&this._easeId===n)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const i=this._zooming,r=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,i&&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))}flyTo(t,n){if(this._prefersReducedMotion(t)){const i=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);const i=this.transform,r=this.getZoom(),o=this.getBearing(),s=this.getPitch(),a=this.getPadding(),l="zoom"in t?e.clamp(+t.zoom,i.minZoom,i.maxZoom):r,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,u="pitch"in t?+t.pitch:s,h="padding"in t?t.padding:i.padding,d=i.zoomScale(l-r),p=e.Point.convert(t.offset);let f=i.centerPoint.add(p);const m=i.pointLocation(f),g=e.LngLat.convert(t.center||m);this._normalizeCenter(g);const v=i.project(m),y=i.project(g).sub(v);let _=t.curve;const b=Math.max(i.width,i.height),x=b/d,w=y.mag();if("minZoom"in t){const n=e.clamp(Math.min(t.minZoom,r,l),i.minZoom,i.maxZoom),o=b/i.zoomScale(n-r);_=Math.sqrt(o/w*2)}const C=_*_;function k(e){const t=(x*x-b*b+(e?-1:1)*C*C*w*w)/(2*(e?x:b)*C*w);return Math.log(Math.sqrt(t*t+1)-t)}function S(e){return(Math.exp(e)-Math.exp(-e))/2}function E(e){return(Math.exp(e)+Math.exp(-e))/2}const T=k(0);let M=function(e){return E(T)/E(T+_*e)},A=function(e){return b*((E(T)*(S(t=T+_*e)/E(t))-S(T))/C)/w;var t},O=(k(1)-T)/_;if(Math.abs(w)<1e-6||!isFinite(O)){if(Math.abs(b-x)<1e-6)return this.easeTo(t,n);const e=x<b?-1:1;O=Math.abs(Math.log(x/b))/_,A=function(){return 0},M=function(t){return Math.exp(e*_*t)}}t.duration="duration"in t?+t.duration:1e3*O/("screenSpeed"in t?+t.screenSpeed/_:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0);const I=o!==c,D=u!==s,P=!i.isPaddingEqual(h),z=i=>d=>{const m=d*O,_=1/M(m);i.zoom=1===d?l:r+i.scaleZoom(_),I&&(i.bearing=e.number(o,c,d)),D&&(i.pitch=e.number(s,u,d)),P&&(i.interpolatePadding(a,h,d),f=i.centerPoint.add(p));const b=1===d?g:i.unproject(v.add(y.mult(A(m))).mult(_));return i.setLocationAtPoint(i.renderWorldCopies?b.wrap():b,f),i._updateCameraOnTerrain(),t.preloadOnly||this._fireMoveEvents(n),i};if(t.preloadOnly){const e=this._emulate(z,t.duration,i);return this._preloadTiles(e),this}return this._zooming=!0,this._rotating=I,this._pitching=D,this._padding=P,this._prepareEase(n,!1),this._ease(z(i),(()=>this._afterEase(n)),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const e=this._onEaseEnd;this._onEaseEnd=void 0,e.call(this,t)}if(!e){const e=this.handlers;e&&e.stop(!1)}return this}_ease(t,n,i){!1===i.animate||0===i.duration?(t(1),n()):(this._easeStart=e.exported.now(),this._easeOptions=i,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const t=Math.min((e.exported.now()-this._easeStart)/this._easeOptions.duration,1),n=this._onEaseFrame;n&&n(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(t,n){t=e.wrap(t,-180,180);const i=Math.abs(t-n);return Math.abs(t-360-n)<i&&(t-=360),Math.abs(t+360-n)<i&&(t+=360),t}_normalizeCenter(e){const t=this.transform;if(!t.renderWorldCopies||t.maxBounds)return;const n=e.lng-t.center.lng;e.lng+=n>180?-360:n<-180?360:0}_prefersReducedMotion(t){return this._respectPrefersReducedMotion&&e.exported.prefersReducedMotion&&!(t&&t.essential)}_emulate(e,t,n){const i=Math.ceil(15*t/1e3),r=[],o=e(n.clone());for(let s=0;s<=i;s++){const e=o(s/i);r.push(e.clone())}return r}}class Xr{constructor(t={}){this.options=t,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(e){const t=this.options&&this.options.compact;return this._map=e,this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o("button","mapboxgl-ctrl-attrib-button",this._container),o("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),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}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(e,t){const n=this._map._getUIString(`AttributionControl.${t}`);e.setAttribute("aria-label",n),e.removeAttribute("title"),e.firstElementChild&&e.firstElementChild.setAttribute("title",n)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));const 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){const i=n.reduce(((e,t,i)=>(t.value&&(e+=`${t.key}=${t.value}${i<n.length-1?"&":""}`),e)),"?");t.href=`${e.config.FEEDBACK_URL}/${i}#${Ji(this._map,!0)}`,t.rel="noopener nofollow",this._setElementTitle(t,"MapFeedback")}}_updateData(e){!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let e=[];if(this._map.style.stylesheet){const e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}const t=this._map.style._sourceCaches;for(const i in t){const n=t[i];if(n.used){const t=n.getSource();t.attribution&&e.indexOf(t.attribution)<0&&e.push(t.attribution)}}e.sort(((e,t)=>e.length-t.length)),e=e.filter(((t,n)=>{for(let i=n+1;i<e.length;i++)if(e[i].indexOf(t)>=0)return!1;return!0})),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=[...this.options.customAttribution,...e]:e.unshift(this.options.customAttribution));const n=e.join(" | ");n!==this._attribHTML&&(this._attribHTML=n,e.length?(this._innerContainer.innerHTML=n,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class Kr{constructor(){e.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(e){this._map=e,this._container=o("div","mapboxgl-ctrl");const t=o("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),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}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const e=this._map.style._sourceCaches;if(0===Object.entries(e).length)return!0;for(const t in e){const n=e[t].getSource();if(n.hasOwnProperty("mapbox_logo")&&!n.mapbox_logo)return!1}return!0}_updateCompact(){const e=this._container.children;if(e.length){const t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}}}class Yr{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){const t=this._currentlyRunning,n=t?this._queue.concat(t):this._queue;for(const i of n)if(i.id===e)return void(i.cancelled=!0)}run(e=0){const t=this._currentlyRunning=this._queue;this._queue=[];for(const n of t)if(!n.cancelled&&(n.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function Jr(t,n,i){if(t=new e.LngLat(t.lng,t.lat),n){const r=new e.LngLat(t.lng-360,t.lat),o=new e.LngLat(t.lng+360,t.lat),s=360*Math.ceil(Math.abs(t.lng-i.center.lng)/360),a=i.locationPoint(t).distSqr(n),l=n.x<0||n.y<0||n.x>i.width||n.y>i.height;i.locationPoint(r).distSqr(n)<a&&(l||Math.abs(r.lng-i.center.lng)<s)?t=r:i.locationPoint(o).distSqr(n)<a&&(l||Math.abs(o.lng-i.center.lng)<s)&&(t=o)}for(;Math.abs(t.lng-i.center.lng)>180;){const e=i.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=i.width&&e.y<=i.height)break;t.lng>i.center.lng?t.lng-=360:t.lng+=360}return t}const Qr={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class eo extends e.Evented{constructor(t,n){if(super(),(t instanceof e.window.HTMLElement||n)&&(t=e.extend({element:t},n)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&t.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=t&&t.occludedOpacity||.2,t&&t.element)this._element=t.element,this._offset=e.Point.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=o("div");const n=41,i=27,r=s("svg",{display:"block",height:n*this._scale+"px",width:i*this._scale+"px",viewBox:`0 0 ${i} ${n}`},this._element),a=s("radialGradient",{id:"shadowGradient"},s("defs",{},r));s("stop",{offset:"10%","stop-opacity":.4},a),s("stop",{offset:"100%","stop-opacity":.05},a),s("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},r),s("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},r),s("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},r),s("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},r),this._offset=e.Point.convert(t&&t.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(e=>{e.preventDefault()})),this._element.addEventListener("mousedown",(e=>{e.preventDefault()}));const i=this._element.classList;for(const e in Qr)i.remove(`mapboxgl-marker-anchor-${e}`);i.add(`mapboxgl-marker-anchor-${this._anchor}`),this._popup=null}addTo(e){return e===this._map||(this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._updateMoving),e.on("moveend",this._update),e.on("remove",this._clearFadeTimer),e._addMarker(this),this.setDraggable(this._draggable),this._update(),e.on("click",this._onMapClick)),this}remove(){const e=this._map;return e&&(e.off("click",this._onMapClick),e.off("move",this._updateMoving),e.off("moveend",this._update),e.off("mousedown",this._addDragHandler),e.off("touchstart",this._addDragHandler),e.off("mouseup",this._onUp),e.off("touchend",this._onUp),e.off("mousemove",this._onMove),e.off("touchmove",this._onMove),e.off("remove",this._clearFadeTimer),e._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){const t=38.1,n=13.5,i=Math.sqrt(Math.pow(n,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-t],"bottom-left":[i,-1*(t-n+i)],"bottom-right":[-i,-1*(t-n+i)],left:[n,-1*(t-n)],right:[-n,-1*(t-n)]}:this._offset}this._popup=e,e._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(e){const t=e.code,n=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==n&&13!==n||this.togglePopup()}_onMapClick(e){const t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const e=this._popup;return e?(e.isOpen()?(e.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(e.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const e=this._map,t=this._pos;if(!e||!t)return!1;const n=e.unproject(t),i=e.getFreeCameraOptions();if(!i.position)return!1;const r=i.position.toLngLat();return r.distanceTo(n)<.9*r.distanceTo(this._lngLat)}_evaluateOpacity(){const t=this._map;if(!t)return;const n=this._pos;if(!n||n.x<0||n.x>t.transform.width||n.y<0||n.y>t.transform.height)return void this._clearFadeTimer();const i=t.unproject(n);let r;t._showingGlobe()&&e.isLngLatBehindGlobe(t.transform,this._lngLat)?r=0:(r=1-t._queryFogOpacity(i),t.transform._terrainEnabled()&&t.getTerrain()&&this._behindTerrain()&&(r*=this._occludedOpacity)),this._element.style.opacity=`${r}`,this._element.style.pointerEvents=r>0?"auto":"none",this._popup&&this._popup._setOpacity(r),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const e=this._pos;if(!e||!this._map)return;const t=this._offset.mult(this._scale);this._element.style.transform=`\n            translate(${e.x}px,${e.y}px)\n            ${Qr[this._anchor]}\n            ${this._calculateXYTransform()} ${this._calculateZTransform()}\n            translate(${t.x}px,${t.y}px)\n        `}_calculateXYTransform(){const t=this._pos,n=this._map,i=this.getPitchAlignment();if(!n||!t||"map"!==i)return"";if(!n._showingGlobe()){const e=n.getPitch();return e?`rotateX(${e}deg)`:""}const r=e.radToDeg(e.globeTiltAtLngLat(n.transform,this._lngLat)),o=t.sub(e.globeCenterToScreenPoint(n.transform)),s=Math.abs(o.x)+Math.abs(o.y);if(0===s)return"";const a=r/s;return`rotateX(${-o.y*a}deg) rotateY(${o.x*a}deg)`}_calculateZTransform(){const t=this._pos,n=this._map;if(!n||!t)return"";let i=0;const r=this.getRotationAlignment();if("map"===r)if(n._showingGlobe()){const t=n.project(new e.LngLat(this._lngLat.lng,this._lngLat.lat+.001)),r=n.project(new e.LngLat(this._lngLat.lng,this._lngLat.lat-.001)).sub(t);i=e.radToDeg(Math.atan2(r.y,r.x))-90}else i=-n.getBearing();else if("horizon"===r){const r=e.smoothstep(4,6,n.getZoom()),o=e.globeCenterToScreenPoint(n.transform);o.y+=r*n.transform.height;const s=t.sub(o),a=e.radToDeg(Math.atan2(s.y,s.x));i=(a>90?a-270:a+90)*(1-r)}return i+=this._rotation,i?`rotateZ(${i}deg)`:""}_update(t){e.window.cancelAnimationFrame(this._updateFrameId);const n=this._map;n&&(n.transform.renderWorldCopies&&(this._lngLat=Jr(this._lngLat,this._pos,n.transform)),this._pos=n.project(this._lngLat),!0===t?this._updateFrameId=e.window.requestAnimationFrame((()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())})):this._pos=this._pos.round(),n._requestDomTask((()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(n._showingGlobe()||n.getTerrain()||n.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))})))}getOffset(){return this._offset}setOffset(t){return this._offset=e.Point.convert(t),this._update(),this}_onMove(t){const n=this._map;if(!n)return;const i=this._pointerdownPos,r=this._positionDelta;if(i&&r){if(!this._isDragging){const e=this._clickTolerance||n._clickTolerance;if(t.point.dist(i)<e)return;this._isDragging=!0}this._pos=t.point.sub(r),this._lngLat=n.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"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const t=this._map;t&&(t.off("mousemove",this._onMove),t.off("touchmove",this._onMove)),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"}_addDragHandler(e){const t=this._map,n=this._pos;t&&n&&this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(n),this._pointerdownPos=e.point,this._state="pending",t.on("mousemove",this._onMove),t.on("touchmove",this._onMove),t.once("mouseup",this._onUp),t.once("touchend",this._onUp))}setDraggable(e){this._draggable=!!e;const t=this._map;return t&&(e?(t.on("mousedown",this._addDragHandler),t.on("touchstart",this._addDragHandler)):(t.off("mousedown",this._addDragHandler),t.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return"auto"===this._rotationAlignment||"horizon"===this._rotationAlignment&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e||"auto",this._update(),this}getPitchAlignment(){return"auto"===this._pitchAlignment?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(e){return this._occludedOpacity=e||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const to={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},no=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function io(t=new e.Point(0,0),n="bottom"){if("number"==typeof t){const i=Math.round(Math.sqrt(.5*Math.pow(t,2)));switch(n){case"top":return new e.Point(0,t);case"top-left":return new e.Point(i,i);case"top-right":return new e.Point(-i,i);case"bottom":return new e.Point(0,-t);case"bottom-left":return new e.Point(i,-i);case"bottom-right":return new e.Point(-i,-i);case"left":return new e.Point(t,0);case"right":return new e.Point(-t,0)}return new e.Point(0,0)}return t instanceof e.Point||Array.isArray(t)?e.Point.convert(t):e.Point.convert(t[n]||[0,0])}class ro{constructor(e){this.jumpTo(e)}getValue(t){if(t<=this._startTime)return this._start;if(t>=this._endTime)return this._end;const n=e.easeCubicInOut((t-this._startTime)/(this._endTime-this._startTime));return this._start*(1-n)+this._end*n}isEasing(e){return e>=this._startTime&&e<=this._endTime}jumpTo(e){this._startTime=-1/0,this._endTime=-1/0,this._start=e,this._end=e}easeTo(e,t,n){this._start=this.getValue(t),this._end=e,this._startTime=t,this._endTime=t+n}}const oo={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use ⌘ + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},so={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0},ao={showCompass:!0,showZoom:!0,visualizePitch:!1};class lo{constructor(t,n,i=!1){this._clickTolerance=10,this.element=n,this.mouseRotate=new br({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,i&&(this.mousePitch=new xr({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),n.addEventListener("mousedown",this.mousedown),n.addEventListener("touchstart",this.touchstart,{passive:!1}),n.addEventListener("touchmove",this.touchmove),n.addEventListener("touchend",this.touchend),n.addEventListener("touchcancel",this.reset)}down(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),u()}move(e,t){const n=this.map,i=this.mouseRotate.mousemoveWindow(e,t),r=i&&i.bearingDelta;if(r&&n.setBearing(n.getBearing()+r),this.mousePitch){const i=this.mousePitch.mousemoveWindow(e,t),r=i&&i.pitchDelta;r&&n.setPitch(n.getPitch()+r)}}off(){const e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart,{passive:!1}),e.removeEventListener("touchmove",this.touchmove),e.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){h(),e.window.removeEventListener("mousemove",this.mousemove),e.window.removeEventListener("mouseup",this.mouseup)}mousedown(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),f(this.element,t)),e.window.addEventListener("mousemove",this.mousemove),e.window.addEventListener("mouseup",this.mouseup)}mousemove(e){this.move(e,f(this.element,e))}mouseup(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}touchstart(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=m(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>e.preventDefault()},this._startPos))}touchmove(e){1!==e.targetTouches.length?this.reset():(this._lastPos=m(this.element,e.targetTouches)[0],this.move({preventDefault:()=>e.preventDefault()},this._lastPos))}touchend(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const co={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},uo={maxWidth:100,unit:"metric"},ho={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},po={version:e.version,supported:n,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:class extends Zr{constructor(t){if(e.LivePerformanceUtils.mark(e.PerformanceMarkers.create),null!=(t=e.extend({},so,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(t.antialias&&e.isSafariWithAntialiasingBug(e.window)&&(t.antialias=!1,e.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Xi(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),t),this._interactive=t.interactive,this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._useWebGL2=t.useWebGL2,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=t.crossSourceCollisions,this._collectResourceTiming=t.collectResourceTiming,this._optimizeForTerrain=t.optimizeForTerrain,this._language=this._parseLanguage(t.language),this._worldview=t.worldview,this._renderTaskQueue=new Yr,this._domRenderTaskQueue=new Yr,this._controls=[],this._markers=[],this._popups=[],this._mapId=e.uniqueId(),this._locale=e.extend({},oo,t.locale),this._clickTolerance=t.clickTolerance,this._cooperativeGestures=t.cooperativeGestures,this._performanceMetricsCollection=t.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new ro(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken,t.testMode),this._silenceAuthErrors=!!t.testMode,"string"==typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error(`Container '${t.container}' not found.`)}else{if(!(t.container instanceof e.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(this._container.childNodes.length>0&&e.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(()=>this._update(!1))),this.on("moveend",(()=>this._update(!1))),this.on("zoom",(()=>this._update(!0))),void 0!==e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1),e.window.addEventListener("orientationchange",this._onWindowResize,!1),e.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1),e.window.addEventListener("visibilitychange",this._onVisibilityChange,!1)),this.handlers=new Wr(this,t),this._localFontFamily=t.localFontFamily,this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),t.projection&&this.setProjection(t.projection),this._hash=t.hash&&new Yi("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),t.attributionControl&&this.addControl(new Xr({customAttribution:t.customAttribution})),this._logoControl=new Kr,this.addControl(this._logoControl,t.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)})),this.on("data",(t=>{this._update("style"===t.dataType),this.fire(new e.Event(`${t.dataType}data`,t))})),this.on("dataloading",(t=>{this.fire(new e.Event(`${t.dataType}dataloading`,t))}))}_getMapId(){return this._mapId}addControl(t,n){if(void 0===n&&(n=t.getDefaultPosition?t.getDefaultPosition():"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.")));const i=t.onAdd(this);this._controls.push(t);const r=this._controlPositions[n];return-1!==n.indexOf("bottom")?r.insertBefore(i,r.firstChild):r.appendChild(i),this}removeControl(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.")));const n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(t){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const n=!this._moving;return n&&this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t)),this.fire(new e.Event("resize",t)),n&&this.fire(new e.Event("moveend",t)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()}setMinZoom(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t?this.setZoom(t):this.fire(new e.Event("zoomstart")).fire(new e.Event("zoom")).fire(new e.Event("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t?this.setZoom(t):this.fire(new e.Event("zoomstart")).fire(new e.Event("zoom")).fire(new e.Event("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t?this.setPitch(t):this.fire(new e.Event("pitchstart")).fire(new e.Event("pitch")).fire(new e.Event("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(t){if((t=null==t?85:t)>85)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t?this.setPitch(t):this.fire(new e.Event("pitchstart")).fire(new e.Event("pitch")).fire(new e.Event("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(t){return"auto"===t?e.window.navigator.language:Array.isArray(t)?0===t.length?void 0:t.map((t=>"auto"===t?e.window.navigator.language:t)):t}setLanguage(e){const t=this._parseLanguage(e);if(!this.style||t===this._language)return this;this._language=t,this.style._reloadSources();for(const n of this._controls)n._setLanguage&&n._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(e){return this.style&&e!==this._worldview?(this._worldview=e,this.style._reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(e){return this._lazyInitEmptyStyle(),e?"string"==typeof e&&(e={name:e}):e=null,this._useExplicitProjection=!!e,this._prioritizeAndUpdateProjection(e,this.style.stylesheet?this.style.stylesheet.projection:null)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const t=this.transform,n=t.projection.name;let i;"globe"===n&&t.zoom>=e.GLOBE_ZOOM_THRESHOLD_MAX?(t.setMercatorFromTransition(),i=!0):"mercator"===n&&t.zoom<e.GLOBE_ZOOM_THRESHOLD_MAX&&(t.setProjection({name:"globe"}),i=!0),i&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayerUpdate())}_prioritizeAndUpdateProjection(e,t){return this._updateProjection(e||t||{name:"mercator"})}_updateProjection(t){let n;if(n="globe"===t.name&&this.transform.zoom>=e.GLOBE_ZOOM_THRESHOLD_MAX?this.transform.setMercatorFromTransition():this.transform.setProjection(t),this.style.applyProjectionUpdate(),n){this.painter.clearBackgroundTiles();for(const e in this.style._sourceCaches)this.style._sourceCaches[e].clearTiles();this._update(!0),this._forceMarkerAndPopupUpdate(!0)}return this}project(t){return this.transform.locationPoint3D(e.LngLat.convert(t))}unproject(t){return this.transform.pointLocation3D(e.Point.convert(t))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(e,t,n){if("mouseenter"===e||"mouseover"===e){let i=!1;const r=r=>{const o=t.filter((e=>this.getLayer(e))),s=o.length?this.queryRenderedFeatures(r.point,{layers:o}):[];s.length?i||(i=!0,n.call(this,new ar(e,this,r.originalEvent,{features:s}))):i=!1},o=()=>{i=!1};return{layers:new Set(t),listener:n,delegates:{mousemove:r,mouseout:o}}}if("mouseleave"===e||"mouseout"===e){let i=!1;const r=r=>{const o=t.filter((e=>this.getLayer(e)));(o.length?this.queryRenderedFeatures(r.point,{layers:o}):[]).length?i=!0:i&&(i=!1,n.call(this,new ar(e,this,r.originalEvent)))},o=t=>{i&&(i=!1,n.call(this,new ar(e,this,t.originalEvent)))};return{layers:new Set(t),listener:n,delegates:{mousemove:r,mouseout:o}}}{const i=e=>{const i=t.filter((e=>this.getLayer(e))),r=i.length?this.queryRenderedFeatures(e.point,{layers:i}):[];r.length&&(e.features=r,n.call(this,e),delete e.features)};return{layers:new Set(t),listener:n,delegates:{[e]:i}}}}on(e,t,n){if(void 0===n)return super.on(e,t);Array.isArray(t)||(t=[t]);const i=this._createDelegatedListener(e,t,n);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(i);for(const r in i.delegates)this.on(r,i.delegates[r]);return this}once(e,t,n){if(void 0===n)return super.once(e,t);Array.isArray(t)||(t=[t]);const i=this._createDelegatedListener(e,t,n);for(const r in i.delegates)this.once(r,i.delegates[r]);return this}off(e,t,n){if(void 0===n)return super.off(e,t);t=new Set(Array.isArray(t)?t:[t]);const i=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},r=this._delegatedListeners?this._delegatedListeners[e]:void 0;return r&&(e=>{for(let r=0;r<e.length;r++){const o=e[r];if(o.listener===n&&i(o.layers,t)){for(const e in o.delegates)this.off(e,o.delegates[e]);return e.splice(r,1),this}}})(r),this}queryRenderedFeatures(t,n){return this.style?(void 0!==n||void 0===t||t instanceof e.Point||Array.isArray(t)||(n=t,t=void 0),this.style.queryRenderedFeatures(t=t||[[0,0],[this.transform.width,this.transform.height]],n=n||{},this.transform)):[]}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}isPointOnSurface(t){const{name:n}=this.transform.projection;return"globe"!==n&&"mercator"!==n&&e.warnOnce(`${n} projection does not support isPointOnSurface, this API may behave unexpectedly.`),this.transform.isPointOnSurface(e.Point.convert(t))}setStyle(t,n){return!1!==(n=e.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&n.localFontFamily===this._localFontFamily&&this.style&&t?(this._diffStyle(t,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._localFontFamily=n.localFontFamily,this._updateStyle(t,n))}_getUIString(e){const t=this._locale[e];if(null==t)throw new Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),e&&(this.style=new Yt(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new Yt(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(t,n){if("string"==typeof t){const i=this._requestManager.normalizeStyleURL(t),r=this._requestManager.transformRequest(i,e.ResourceType.Style);e.getJSON(r,((t,i)=>{t?this.fire(new e.ErrorEvent(t)):i&&this._updateDiff(i,n)}))}else"object"==typeof t&&this._updateDiff(t,n)}_updateDiff(t,n){try{this.style.setState(t)&&this._update(!0)}catch(i){e.warnOnce(`Unable to perform style diff: ${i.message||i.error||i}.  Rebuilding the style from scratch.`),this._updateStyle(t,n)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(e.warnOnce("There is no style added to the map."),!1)}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){return!!this.style&&this.style._isSourceCacheLoaded(e)}areTilesLoaded(){const e=this.style&&this.style._sourceCaches;for(const t in e){const n=e[t]._tiles;for(const e in n){const t=n[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}addSourceType(e,t,n){this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,n)}removeSource(e){return this.style.removeSource(e),this._updateTerrain(),this._update(!0)}getSource(e){return this.style.getSource(e)}addImage(t,n,{pixelRatio:i=1,sdf:r=!1,stretchX:o,stretchY:s,content:a}={}){if(this._lazyInitEmptyStyle(),n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap){const{width:l,height:c,data:u}=e.exported.getImageData(n);this.style.addImage(t,{data:new e.RGBAImage({width:l,height:c},u),pixelRatio:i,stretchX:o,stretchY:s,content:a,sdf:r,version:0})}else if(void 0===n.width||void 0===n.height)this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:l,height:c}=n,u=n;this.style.addImage(t,{data:new e.RGBAImage({width:l,height:c},new Uint8Array(u.data)),pixelRatio:i,stretchX:o,stretchY:s,content:a,sdf:r,version:0,userImage:u}),u.onAdd&&u.onAdd(this,t)}}updateImage(t,n){const i=this.style.getImage(t);if(!i)return void 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.")));const r=n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap?e.exported.getImageData(n):n,{width:o,height:s}=r;void 0!==o&&void 0!==s?o===i.data.width&&s===i.data.height?(i.data.replace(r.data,!(n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap)),this.style.updateImage(t,i)):this.fire(new e.ErrorEvent(new Error(`The width and height of the updated image (${o}, ${s})\n                must be that same as the previous version of the image\n                (${i.data.width}, ${i.data.height})`))):this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),((t,i)=>{n(t,i instanceof e.window.HTMLImageElement?e.exported.getImageData(i):i)}))}listImages(){return this.style.listImages()}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){return this.style.getLayer(e)}setLayerZoomRange(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)}setFilter(e,t,n={}){return this.style.setFilter(e,t,n),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,n,i={}){return this.style.setPaintProperty(e,t,n,i),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,n,i={}){return this.style.setLayoutProperty(e,t,n,i),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(e){return this._lazyInitEmptyStyle(),!e&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(e),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(e){return this._lazyInitEmptyStyle(),this.style.setFog(e),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(t){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(e.LngLat.convert(t),this.transform):0}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}_updateContainerDimensions(){if(!this._container)return;const t=this._container.getBoundingClientRect().width||400,n=this._container.getBoundingClientRect().height||300;let i,r,o,s=this._container;for(;s&&(!r||!o);){const t=e.window.getComputedStyle(s).transform;t&&"none"!==t&&(i=t.match(/matrix.*\((.+)\)/)[1].split(", "),i[0]&&"0"!==i[0]&&"1"!==i[0]&&(r=i[0]),i[3]&&"0"!==i[3]&&"1"!==i[3]&&(o=i[3])),s=s.parentElement}this._containerWidth=r?Math.abs(t/r):t,this._containerHeight=o?Math.abs(n/o):n}_detectMissingCSS(){"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 in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=o("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=o("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=o("canvas","mapboxgl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const n=this._controlContainer=o("div","mapboxgl-control-container",e),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((e=>{i[e]=o("div",`mapboxgl-ctrl-${e}`,n)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,n){const i=e.exported.devicePixelRatio||1;this._canvas.width=i*Math.ceil(t),this._canvas.height=i*Math.ceil(n),this._canvas.style.width=`${t}px`,this._canvas.style.height=`${n}px`}_addMarker(e){this._markers.push(e)}_removeMarker(e){const t=this._markers.indexOf(e);-1!==t&&this._markers.splice(t,1)}_addPopup(e){this._popups.push(e)}_removePopup(e){const t=this._popups.indexOf(e);-1!==t&&this._popups.splice(t,1)}_setupPainter(){const t=e.extend({},n.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),i=this._useWebGL2&&this._canvas.getContext("webgl2",t),r=i||this._canvas.getContext("webgl",t)||this._canvas.getContext("experimental-webgl",t);r?(this._useWebGL2&&!i&&e.warnOnce("Failed to create WebGL 2 context. Using WebGL 1."),e.storeAuthState(r,!0),this.painter=new Bi(r,this.transform,!!i),this.on("data",(e=>{"source"===e.dataType&&this.painter.setTileLoadedFlag(!0)})),e.exported$1.testSupport(r)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))}_onMapScroll(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_requestDomTask(e){!this.loaded()||this.loaded()&&!this.isMoving()?e():this._domRenderTaskQueue.add(e)}_render(t){let n;const i=this.painter.context.extTimerQuery,r=e.exported.now();if(this.listens("gpu-timing-frame")&&(n=i.createQueryEXT(),i.beginQueryEXT(i.TIME_ELAPSED_EXT,n)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],e.window.performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],e.window.performance.now())),this._renderTaskQueue.run(t),this._domRenderTaskQueue.run(t),this._removed)return;this._updateProjectionTransition();const o=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const t=this.transform.zoom,n=this.transform.pitch,i=e.exported.now(),r=new e.EvaluationParameters(t,{now:i,fadeDuration:o,pitch:n,transition:this.style.getTransition()});this.style.update(r)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let s=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),s=this._updateAverageElevation(r),this.style._updateSources(this.transform),this._forceMarkerAndPopupUpdate()):s=this._updateAverageElevation(r),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,o,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:o,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),n){const t=e.exported.now()-r;i.endQueryEXT(i.TIME_ELAPSED_EXT,n),setTimeout((()=>{const o=i.getQueryObjectEXT(n,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n),this.fire(new e.Event("gpu-timing-frame",{cpuTime:t,gpuTime:o})),e.window.performance.mark("frame-gpu",{startTime:r,detail:{gpuTime:o}})}),50)}if(this.listens("gpu-timing-layer")){const t=this.painter.collectGpuTimers();setTimeout((()=>{const n=this.painter.queryGpuTimers(t);this.fire(new e.Event("gpu-timing-layer",{layerTimes:n}))}),50)}if(this.listens("gpu-timing-deferred-render")){const t=this.painter.collectDeferredRenderGpuQueries();setTimeout((()=>{const n=this.painter.queryGpuTimeDeferredRender(t);this.fire(new e.Event("gpu-timing-deferred-render",{gpuTime:n}))}),50)}const a=this._sourcesDirty||this._styleDirty||this._placementDirty||s;if(a||this._repaint)this.triggerRepaint();else{const t=!this.isMoving()&&this.loaded();if(t&&(s=this._updateAverageElevation(r,!0)),s)this.triggerRepaint();else if(this._triggerFrame(!1),t&&(this.fire(new e.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const t=this._calculateSpeedIndex();this.fire(new e.Event("speedindexcompleted",{speedIndex:t})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||a||(this._fullyLoaded=!0,e.LivePerformanceUtils.mark(e.PerformanceMarkers.fullLoad),this._performanceMetricsCollection&&e.postPerformanceEvent(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(e){for(const t of this._markers)e&&!this.getRenderWorldCopies()&&(t._lngLat=t._lngLat.wrap()),t._update();for(const t of this._popups)!e||this.getRenderWorldCopies()||t._trackPointer||(t._lngLat=t._lngLat.wrap()),t._update()}_updateAverageElevation(e,t=!1){const n=e=>(this.transform.averageElevation=e,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&n(0);if((t||e-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(e)){const t=this.transform.averageElevation;let i=this.transform.sampleAverageElevation(),r=!1;this.transform.elevation&&(r=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(i)?i=0:this._averageElevationLastSampledAt=e;const o=Math.abs(t-i);if(o>1){if(this._isInitialLoad||r)return this._averageElevation.jumpTo(i),n(i);this._averageElevation.easeTo(i,e,300)}else if(o>1e-4)return this._averageElevation.jumpTo(i),n(i)}return!!this._averageElevation.isEasing(e)&&n(this._averageElevation.getValue(e))}_authenticate(){e.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(t=>{if(t&&(t.message===e.AUTH_ERR_MSG||401===t.status)){const t=this.painter.context.gl;e.storeAuthState(t,!1),this._logoControl instanceof Kr&&this._logoControl._updateLogo(),t&&t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT|t.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new e.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}})),e.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(()=>{}))}_updateTerrain(){const e=this._isDragging();this.painter.updateTerrain(this.style,e)}_calculateSpeedIndex(){const e=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const n=this.painter.context.gl,i=n.createFramebuffer();function r(e){n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e,0);const t=new Uint8Array(n.drawingBufferWidth*n.drawingBufferHeight*4);return n.readPixels(0,0,n.drawingBufferWidth,n.drawingBufferHeight,n.RGBA,n.UNSIGNED_BYTE,t),t}return n.bindFramebuffer(n.FRAMEBUFFER,i),this._canvasPixelComparison(r(e),t.canvasCopies.map(r),t.timeStamps)}_canvasPixelComparison(e,t,n){let i=n[1]-n[0];const r=e.length/4;for(let o=0;o<t.length;o++){const s=t[o];let a=0;for(let t=0;t<s.length;t+=4)s[t]===e[t]&&s[t+1]===e[t+1]&&s[t+2]===e[t+2]&&s[t+3]===e[t+3]&&(a+=1);i+=(n[o+2]-n[o+1])*(1-a/r)}return i}remove(){this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),void 0!==e.window&&(e.window.removeEventListener("resize",this._onWindowResize,!1),e.window.removeEventListener("orientationchange",this._onWindowResize,!1),e.window.removeEventListener("webkitfullscreenchange",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1),e.window.removeEventListener("visibilitychange",this._onVisibilityChange,!1));const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),e.removeAuthState(this.painter.context.gl),this._removed=!0,this.fire(new e.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(t){this._renderNextFrame=this._renderNextFrame||t,this.style&&!this._frame&&(this._frame=e.exported.frame((e=>{const t=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,t&&this._render(e)})))}_preloadTiles(t){const n=this.style?Object.values(this.style._sourceCaches):[];return e.asyncAll(n,((e,n)=>e._preloadTiles(t,n)),(()=>{this.triggerRepaint()})),this}_onWindowOnline(){this._update()}_onWindowResize(e){this._trackResize&&this.resize({originalEvent:e})._update()}_onVisibilityChange(){"hidden"===e.window.document.visibilityState&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(e){this._showTerrainWireframe!==e&&(this._showTerrainWireframe=e,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(e){this._speedIndexTiming!==e&&(this._speedIndexTiming=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(e){this._showTileAABBs!==e&&(this._showTileAABBs=e,e&&this._update())}_setCacheLimits(t,n){e.setCacheLimits(t,n)}get version(){return e.version}},NavigationControl:class{constructor(t){this.options=e.extend({},ao,t),this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this.options.showZoom&&(e.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(e=>{this._map&&this._map.zoomIn({},{originalEvent:e})})),o("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(e=>{this._map&&this._map.zoomOut({},{originalEvent:e})})),o("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(e=>{const t=this._map;t&&(this.options.visualizePitch?t.resetNorthPitch({},{originalEvent:e}):t.resetNorth({},{originalEvent:e}))})),this._compassIcon=o("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const e=this._map;if(!e)return;const t=e.getZoom(),n=t===e.getMaxZoom(),i=t===e.getMinZoom();this._zoomInButton.disabled=n,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",n.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())}_rotateCompassArrow(){const e=this._map;if(!e)return;const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(e.transform.pitch*(Math.PI/180)),.5)}) rotateX(${e.transform.pitch}deg) rotateZ(${e.transform.angle*(180/Math.PI)}deg)`:`rotate(${e.transform.angle*(180/Math.PI)}deg)`;e._requestDomTask((()=>{this._compassIcon&&(this._compassIcon.style.transform=t)}))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),e.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&e.on("pitch",this._rotateCompassArrow),e.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new lo(e,this._compass,this.options.visualizePitch)),this._container}onRemove(){const e=this._map;e&&(this._container.remove(),this.options.showZoom&&e.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&e.off("pitch",this._rotateCompassArrow),e.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(e,t){const n=o("button",e,this._container);return n.type="button",n.addEventListener("click",t),n}_setButtonTitle(e,t){if(!this._map)return;const n=this._map._getUIString(`NavigationControl.${t}`);e.setAttribute("aria-label",n),e.firstElementChild&&e.firstElementChild.setAttribute("title",n)}},GeolocateControl:class extends e.Evented{constructor(t){super(),this.options=e.extend({geolocation:e.window.navigator.geolocation},co,t),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Ki(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(e){return this._map=e,this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(t){const n=(e=!!this.options.geolocation)=>{this._supportsGeolocation=e,t(e)};void 0!==this._supportsGeolocation?t(this._supportsGeolocation):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then((e=>n("denied"!==e.state))).catch((()=>n())):n()}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),n=e.coords;return!!t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}}_updateCamera(t){const n=new e.LngLat(t.coords.longitude,t.coords.latitude),i=t.coords.accuracy,r=this._map.getBearing(),o=e.extend({bearing:r},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(i),o,{geolocateSource:!0})}_updateMarker(t){if(t){const n=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const t=this._map.transform,n=e.mercatorZfromAltitude(1,t._center.lat)*t.worldSize,i=Math.ceil(2*this._accuracy*n);this._circleElement.style.width=`${i}px`,this._circleElement.style.height=`${i}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(t){if(void 0!==this._map){if(this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this._geolocateButton=o("button","mapboxgl-ctrl-geolocate",this._container),o("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o("div","mapboxgl-user-location"),this._dotElement.appendChild(o("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(o("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new eo({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=o("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new eo({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(t=>{t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new e.Event("trackuserlocationend")))}))}}_onDeviceOrientation(e){this._userLocationDotMarker&&(e.webkitCompassHeading?this._heading=e.webkitCompassHeading:!0===e.absolute&&(this._heading=-1*e.alpha),this._updateMarkerRotationThrottled())}trigger(){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._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new 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")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(e={maximumAge:6e5,timeout:0},this._noTimeout=!0):(e=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,e),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const t=()=>{e.window.addEventListener("ondeviceorientationabsolute"in e.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};void 0!==e.window.DeviceMotionEvent&&"function"==typeof e.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then((e=>{"granted"===e&&t()})).catch(console.error):t()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),e.window.removeEventListener("deviceorientation",this._onDeviceOrientation),e.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Xr,ScaleControl:class{constructor(t){this.options=e.extend({},uo,t),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch(e){return!1}}(),e.bindAll(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const e=this.options.maxWidth||100,t=this._map,n=t._containerHeight/2,i=t._containerWidth/2-e/2,r=t.unproject([i,n]),o=t.unproject([i+e,n]),s=r.distanceTo(o);if("imperial"===this.options.unit){const t=3.2808*s;t>5280?this._setScale(e,t/5280,"mile"):this._setScale(e,t,"foot")}else"nautical"===this.options.unit?this._setScale(e,s/1852,"nautical-mile"):s>=1e3?this._setScale(e,s/1e3,"kilometer"):this._setScale(e,s,"meter")}_setScale(e,t,n){this._map._requestDomTask((()=>{const i=function(e){const t=Math.pow(10,`${Math.floor(e)}`.length-1);let n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(n),t*n}(t),r=i/t;this._container.innerHTML=this._isNumberFormatSupported&&"nautical-mile"!==n?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:n}).format(i):`${i}&nbsp;${ho[n]}`,this._container.style.width=e*r+"px"}))}onAdd(e){return this._map=e,this._language=e.getLanguage(),this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(e){this._language=e,this._update()}setUnit(e){this.options.unit=e,this._update()}},FullscreenControl:class{constructor(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":"onwebkitfullscreenchange"in e.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!e.window.document.fullscreenEnabled&&!e.window.document.webkitFullscreenEnabled)}_setupUI(){const t=this._fullscreenButton=o("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden","true"),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",e)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(e.window.document.fullscreenElement||e.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends e.Evented{constructor(t){super(),this.options=e.extend(Object.create(to),t),e.bindAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(t&&t.className?t.className.trim().split(/\s+/):[])}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&t.on("preclick",this._onClose),this.options.closeOnMove&&t.on("move",this._onClose),t.on("remove",this.remove),this._update(),t._addPopup(this),this._focusFirstElement(),this._trackPointer?(t.on("mousemove",this._onMouseEvent),t.on("mouseup",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")):t.on("move",this._update),this.fire(new e.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const t=this._map;return t&&(t.off("move",this._update),t.off("move",this._onClose),t.off("preclick",this._onClose),t.off("click",this._onClose),t.off("remove",this.remove),t.off("mousemove",this._onMouseEvent),t.off("mouseup",this._onMouseEvent),t.off("drag",this._onMouseEvent),t._canvasContainer&&t._canvasContainer.classList.remove("mapboxgl-track-pointer"),t._removePopup(this),this._map=void 0),this.fire(new e.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(t){this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update();const n=this._map;return n&&(n.on("move",this._update),n.off("mousemove",this._onMouseEvent),n._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const e=this._map;return e&&(e.off("move",this._update),e.on("mousemove",this._onMouseEvent),e.on("drag",this._onMouseEvent),e._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(t){return this.setDOMContent(e.window.document.createTextNode(t))}setHTML(t){const n=e.window.document.createDocumentFragment(),i=e.window.document.createElement("body");let r;for(i.innerHTML=t;r=i.firstChild,r;)n.appendChild(r);return this.setDOMContent(n)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){let t=this._content;if(t)for(;t.hasChildNodes();)t.firstChild&&t.removeChild(t.firstChild);else t=this._content=o("div","mapboxgl-popup-content",this._container||void 0);if(t.appendChild(e),this.options.closeButton){const e=this._closeButton=o("button","mapboxgl-popup-close-button",t);e.type="button",e.setAttribute("aria-label","Close popup"),e.setAttribute("aria-hidden","true"),e.innerHTML="&#215;",e.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(e){return this._classList.add(e),this._updateClassList(),this}removeClassName(e){return this._classList.delete(e),this._updateClassList(),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){let t;return this._classList.delete(e)?t=!1:(this._classList.add(e),t=!0),this._updateClassList(),t}_onMouseEvent(e){this._update(e.point)}_getAnchor(e){if(this.options.anchor)return this.options.anchor;const t=this._map,n=this._container,i=this._pos;if(!t||!n||!i)return"bottom";const r=n.offsetWidth,o=n.offsetHeight,s=i.x<r/2,a=i.x>t.transform.width-r/2;if(i.y+e<o)return s?"top-left":a?"top-right":"top";if(i.y>t.transform.height-o){if(s)return"bottom-left";if(a)return"bottom-right"}return s?"left":a?"right":"bottom"}_updateClassList(){const e=this._container;if(!e)return;const t=[...this._classList];t.push("mapboxgl-popup"),this._anchor&&t.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&t.push("mapboxgl-popup-track-pointer"),e.className=t.join(" ")}_update(t){const n=this._map,i=this._content;if(!n||!this._lngLat&&!this._trackPointer||!i)return;let r=this._container;if(r||(r=this._container=o("div","mapboxgl-popup",n.getContainer()),this._tip=o("div","mapboxgl-popup-tip",r),r.appendChild(i)),this.options.maxWidth&&r.style.maxWidth!==this.options.maxWidth&&(r.style.maxWidth=this.options.maxWidth),n.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Jr(this._lngLat,this._pos,n.transform)),!this._trackPointer||t){const e=this._pos=this._trackPointer&&t?t:n.project(this._lngLat),i=io(this.options.offset),r=this._anchor=this._getAnchor(i.y),o=io(this.options.offset,r),s=e.add(o).round();n._requestDomTask((()=>{this._container&&r&&(this._container.style.transform=`${Qr[r]} translate(${s.x}px,${s.y}px)`)}))}if(!this._marker&&n._showingGlobe()){const t=e.isLngLatBehindGlobe(n.transform,this._lngLat)?0:1;this._setOpacity(t)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(no);e&&e.focus()}_onClose(){this.remove()}_setOpacity(e){this._container&&(this._container.style.opacity=`${e}`),this._content&&(this._content.style.pointerEvents=e?"auto":"none")}},Marker:eo,Style:Yt,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,FreeCameraOptions:ji,Evented:e.Evented,config:e.config,prewarm:function(){$e().acquire(Be)},clearPrewarmedResources:function(){const e=Re;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(Be),Re=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return 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 Fe.workerCount},set workerCount(e){Fe.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(t){e.clearTileCache(t)},workerUrl:"",workerClass:null,setNow:e.exported.setNow,restoreNow:e.exported.restoreNow};return po}));var r=n;return r}))},5184:function(e,t,n){e.exports=n(679)},3658:function(e){"use strict";var t=!("undefined"===typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},8405:function(e){var t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g=!1;function v(){if(!g){g=!0;var e=navigator.userAgent,v=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),h=!!/Win64/.exec(e),v){t=v[1]?parseFloat(v[1]):v[5]?parseFloat(v[5]):NaN,t&&document&&document.documentMode&&(t=document.documentMode);var _=/(?:Trident\/(\d+.\d+))/.exec(e);s=_?parseFloat(_[1])+4:t,n=v[2]?parseFloat(v[2]):NaN,i=v[3]?parseFloat(v[3]):NaN,r=v[4]?parseFloat(v[4]):NaN,r?(v=/(?:Chrome\/(\d+\.\d+))/.exec(e),o=v&&v[1]?parseFloat(v[1]):NaN):o=NaN}else t=n=i=o=r=NaN;if(y){if(y[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);a=!b||parseFloat(b[1].replace("_","."))}else a=!1;l=!!y[2],c=!!y[3]}else a=l=c=!1}}var y={ie:function(){return v()||t},ieCompatibilityMode:function(){return v()||s>t},ie64:function(){return y.ie()&&h},firefox:function(){return v()||n},opera:function(){return v()||i},webkit:function(){return v()||r},safari:function(){return y.webkit()},chrome:function(){return v()||o},windows:function(){return v()||l},osx:function(){return v()||a},linux:function(){return v()||c},iphone:function(){return v()||d},mobile:function(){return v()||d||p||u||m},nativeApp:function(){return v()||f},android:function(){return v()||u},ipad:function(){return v()||p}};e.exports=y},2511:function(e,t,n){"use strict";var i,r=n(3658);
/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @param {?boolean} capture Check if the capture phase is supported.
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */
function o(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var s=document.createElement("div");s.setAttribute(n,"return;"),o="function"===typeof s[n]}return!o&&i&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},679:function(e,t,n){"use strict";var i=n(8405),r=n(2511),o=10,s=40,a=800;function l(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*o,r=n*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=s,r*=s):(i*=a,r*=a)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}l.getEventType=function(){return i.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},9457:function(e,t,n){"use strict";n.r(t);var i=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,o=function(){return"undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),s=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),a=2;function l(e,t){var n=!1,i=!1,r=0;function o(){n&&(n=!1,e()),i&&c()}function l(){s(o)}function c(){var e=Date.now();if(n){if(e-r<a)return;i=!0}else n=!0,i=!1,setTimeout(l,t);r=e}return c}var c=20,u=["top","right","bottom","left","width","height","size","weight"],h="undefined"!==typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,i=u.some((function(e){return!!~n.indexOf(e)}));i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||o},m=S(0,0,0,0);function g(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var i=e["border-"+n+"-width"];return t+g(i)}),0)}function y(e){for(var t=["top","right","bottom","left"],n={},i=0,r=t;i<r.length;i++){var o=r[i],s=e["padding-"+o];n[o]=g(s)}return n}function _(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function b(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return m;var i=f(e).getComputedStyle(e),r=y(i),o=r.left+r.right,s=r.top+r.bottom,a=g(i.width),l=g(i.height);if("border-box"===i.boxSizing&&(Math.round(a+o)!==t&&(a-=v(i,"left","right")+o),Math.round(l+s)!==n&&(l-=v(i,"top","bottom")+s)),!w(e)){var c=Math.round(a+o)-t,u=Math.round(l+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return S(r.left,r.top,a,l)}var x=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox}}();function w(e){return e===f(e).document.documentElement}function C(e){return r?x(e)?_(e):b(e):m}function k(e){var t=e.x,n=e.y,i=e.width,r=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(o.prototype);return p(s,{x:t,y:n,width:i,height:r,top:n,right:t+i,bottom:r+n,left:t}),s}function S(e,t,n,i){return{x:e,y:t,width:n,height:i}}var E=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=C(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),T=function(){function e(e,t){var n=k(t);p(this,{target:e,contentRect:n})}return e}(),M=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new i,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new E(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new T(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A="undefined"!==typeof WeakMap?new WeakMap:new i,O=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),i=new M(t,n,this);A.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var I=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:O}();t["default"]=I},8955:function(e){
/*!
* sweetalert2 v11.14.4
* Released under the MIT License.
*/
(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(t,n){return t.get(e(t,n))}function i(e,n,i){t(e,n),n.set(e,i)}function r(t,n,i){return t.set(e(t,n),i),i}const o=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},l=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,i=window.scrollY;s.restoreFocusTimeout=setTimeout((()=>{a(),t()}),o),window.scrollTo(n,i)})),c="swal2-",u=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"],h=u.reduce(((e,t)=>(e[t]=c+t,e)),{}),d=["success","warning","info","question","error"],p=d.reduce(((e,t)=>(e[t]=c+t,e)),{}),f="SweetAlert2:",m=e=>e.charAt(0).toUpperCase()+e.slice(1),g=e=>{console.warn(`${f} ${"object"===typeof e?e.join(" "):e}`)},v=e=>{console.error(`${f} ${e}`)},y=[],_=e=>{y.includes(e)||(y.push(e),g(e))},b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;_(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},x=e=>"function"===typeof e?e():e,w=e=>e&&"function"===typeof e.toPromise,C=e=>w(e)?e.toPromise():Promise.resolve(e),k=e=>e&&Promise.resolve(e)===e,S=()=>document.body.querySelector(`.${h.container}`),E=e=>{const t=S();return t?t.querySelector(e):null},T=e=>E(`.${e}`),M=()=>T(h.popup),A=()=>T(h.icon),O=()=>T(h["icon-content"]),I=()=>T(h.title),D=()=>T(h["html-container"]),P=()=>T(h.image),z=()=>T(h["progress-steps"]),L=()=>T(h["validation-message"]),B=()=>E(`.${h.actions} .${h.confirm}`),F=()=>E(`.${h.actions} .${h.cancel}`),R=()=>E(`.${h.actions} .${h.deny}`),$=()=>T(h["input-label"]),N=()=>E(`.${h.loader}`),j=()=>T(h.actions),V=()=>T(h.footer),U=()=>T(h["timer-progress-bar"]),q=()=>T(h.close),H='\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n',W=()=>{const e=M();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),i=parseInt(t.getAttribute("tabindex")||"0");return n>i?1:n<i?-1:0})),i=e.querySelectorAll(H),r=Array.from(i).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(n.concat(r))].filter((e=>de(e)))},G=()=>Y(document.body,h.shown)&&!Y(document.body,h["toast-shown"])&&!Y(document.body,h["no-backdrop"]),Z=()=>{const e=M();return!!e&&Y(e,h.toast)},X=()=>{const e=M();return!!e&&e.hasAttribute("data-loading")},K=(e,t)=>{if(e.textContent="",t){const n=new DOMParser,i=n.parseFromString(t,"text/html"),r=i.querySelector("head");r&&Array.from(r.childNodes).forEach((t=>{e.appendChild(t)}));const o=i.querySelector("body");o&&Array.from(o.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},Y=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let i=0;i<n.length;i++)if(!e.classList.contains(n[i]))return!1;return!0},J=(e,t)=>{Array.from(e.classList).forEach((n=>{Object.values(h).includes(n)||Object.values(p).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))},Q=(e,t,n)=>{if(J(e,t),!t.customClass)return;const i=t.customClass[n];i&&("string"===typeof i||i.forEach?ie(e,i):g(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof i}"`))},ee=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${h.popup} > .${h[t]}`);case"checkbox":return e.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return e.querySelector(`.${h.popup} > .${h.radio} input:checked`)||e.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return e.querySelector(`.${h.popup} > .${h.range} input`);default:return e.querySelector(`.${h.popup} > .${h.input}`)}},te=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},ne=(e,t,n)=>{e&&t&&("string"===typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},ie=(e,t)=>{ne(e,t,!0)},re=(e,t)=>{ne(e,t,!1)},oe=(e,t)=>{const n=Array.from(e.children);for(let i=0;i<n.length;i++){const e=n[i];if(e instanceof HTMLElement&&Y(e,t))return e}},se=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"===typeof n?`${n}px`:n):e.style.removeProperty(t)},ae=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},le=e=>{e&&(e.style.display="none")},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((()=>{he(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},ue=(e,t,n,i)=>{const r=e.querySelector(t);r&&r.style.setProperty(n,i)},he=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex";t?ae(e,n):le(e)},de=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),pe=()=>!de(B())&&!de(R())&&!de(F()),fe=e=>!!(e.scrollHeight>e.clientHeight),me=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),i=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||i>0},ge=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=U();n&&de(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"}),10))},ve=()=>{const e=U();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),i=t/n*100;e.style.width=`${i}%`},ye=()=>"undefined"===typeof window||"undefined"===typeof document,_e=`\n <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">\n   <button type="button" class="${h.close}"></button>\n   <ul class="${h["progress-steps"]}"></ul>\n   <div class="${h.icon}"></div>\n   <img class="${h.image}" />\n   <h2 class="${h.title}" id="${h.title}"></h2>\n   <div class="${h["html-container"]}" id="${h["html-container"]}"></div>\n   <input class="${h.input}" id="${h.input}" />\n   <input type="file" class="${h.file}" />\n   <div class="${h.range}">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="${h.select}" id="${h.select}"></select>\n   <div class="${h.radio}"></div>\n   <label class="${h.checkbox}">\n     <input type="checkbox" id="${h.checkbox}" />\n     <span class="${h.label}"></span>\n   </label>\n   <textarea class="${h.textarea}" id="${h.textarea}"></textarea>\n   <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>\n   <div class="${h.actions}">\n     <div class="${h.loader}"></div>\n     <button type="button" class="${h.confirm}"></button>\n     <button type="button" class="${h.deny}"></button>\n     <button type="button" class="${h.cancel}"></button>\n   </div>\n   <div class="${h.footer}"></div>\n   <div class="${h["timer-progress-bar-container"]}">\n     <div class="${h["timer-progress-bar"]}"></div>\n   </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),be=()=>{const e=S();return!!e&&(e.remove(),re([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},xe=()=>{s.currentInstance.resetValidationMessage()},we=()=>{const e=M(),t=oe(e,h.input),n=oe(e,h.file),i=e.querySelector(`.${h.range} input`),r=e.querySelector(`.${h.range} output`),o=oe(e,h.select),s=e.querySelector(`.${h.checkbox} input`),a=oe(e,h.textarea);t.oninput=xe,n.onchange=xe,o.onchange=xe,s.onchange=xe,a.oninput=xe,i.oninput=()=>{xe(),r.value=i.value},i.onchange=()=>{xe(),r.value=i.value}},Ce=e=>"string"===typeof e?document.querySelector(e):e,ke=e=>{const t=M();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Se=e=>{"rtl"===window.getComputedStyle(e).direction&&ie(S(),h.rtl)},Ee=e=>{const t=be();if(ye())return void v("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=h.container,t&&ie(n,h["no-transition"]),K(n,_e);const i=Ce(e.target);i.appendChild(n),ke(e),Se(i),we()},Te=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Me(e,t):e&&K(t,e)},Me=(e,t)=>{e.jquery?Ae(t,e):K(t,e.toString())},Ae=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Oe=(e,t)=>{const n=j(),i=N();n&&i&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ae(n):le(n),Q(n,t,"actions"),Ie(n,i,t),K(i,t.loaderHtml||""),Q(i,t,"loader"))};function Ie(e,t,n){const i=B(),r=R(),o=F();i&&r&&o&&(Pe(i,"confirm",n),Pe(r,"deny",n),Pe(o,"cancel",n),De(i,r,o,n),n.reverseButtons&&(n.toast?(e.insertBefore(o,i),e.insertBefore(r,i)):(e.insertBefore(o,t),e.insertBefore(r,t),e.insertBefore(i,t))))}function De(e,t,n,i){i.buttonsStyling?(ie([e,t,n],h.styled),i.confirmButtonColor&&(e.style.backgroundColor=i.confirmButtonColor,ie(e,h["default-outline"])),i.denyButtonColor&&(t.style.backgroundColor=i.denyButtonColor,ie(t,h["default-outline"])),i.cancelButtonColor&&(n.style.backgroundColor=i.cancelButtonColor,ie(n,h["default-outline"]))):re([e,t,n],h.styled)}function Pe(e,t,n){const i=m(t);he(e,n[`show${i}Button`],"inline-block"),K(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=h[t],Q(e,n,`${t}Button`)}const ze=(e,t)=>{const n=q();n&&(K(n,t.closeButtonHtml||""),Q(n,t,"closeButton"),he(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Le=(e,t)=>{const n=S();n&&(Be(n,t.backdrop),Fe(n,t.position),Re(n,t.grow),Q(n,t,"container"))};function Be(e,t){"string"===typeof t?e.style.background=t:t||ie([document.documentElement,document.body],h["no-backdrop"])}function Fe(e,t){t&&(t in h?ie(e,h[t]):(g('The "position" parameter is not valid, defaulting to "center"'),ie(e,h.center)))}function Re(e,t){t&&ie(e,h[`grow-${t}`])}var $e={innerParams:new WeakMap,domCache:new WeakMap};const Ne=["input","file","range","select","radio","checkbox","textarea"],je=(e,t)=>{const n=M();if(!n)return;const i=$e.innerParams.get(e),r=!i||t.input!==i.input;Ne.forEach((e=>{const i=oe(n,h[e]);i&&(qe(e,t.inputAttributes),i.className=h[e],r&&le(i))})),t.input&&(r&&Ve(t),He(t))},Ve=e=>{if(!e.input)return;if(!Ke[e.input])return void v(`Unexpected type of input! Expected ${Object.keys(Ke).join(" | ")}, got "${e.input}"`);const t=Ze(e.input);if(!t)return;const n=Ke[e.input](t,e);ae(t),e.inputAutoFocus&&setTimeout((()=>{te(n)}))},Ue=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},qe=(e,t)=>{const n=M();if(!n)return;const i=ee(n,e);if(i){Ue(i);for(const e in t)i.setAttribute(e,t[e])}},He=e=>{if(!e.input)return;const t=Ze(e.input);t&&Q(t,e,"input")},We=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Ge=(e,t,n)=>{if(n.inputLabel){const i=document.createElement("label"),r=h["input-label"];i.setAttribute("for",e.id),i.className=r,"object"===typeof n.customClass&&ie(i,n.customClass.inputLabel),i.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",i)}},Ze=e=>{const t=M();if(t)return oe(t,h[e]||h.input)},Xe=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:k(t)||g(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Ke={};Ke.text=Ke.email=Ke.password=Ke.number=Ke.tel=Ke.url=Ke.search=Ke.date=Ke["datetime-local"]=Ke.time=Ke.week=Ke.month=(e,t)=>(Xe(e,t.inputValue),Ge(e,e,t),We(e,t),e.type=t.input,e),Ke.file=(e,t)=>(Ge(e,e,t),We(e,t),e),Ke.range=(e,t)=>{const n=e.querySelector("input"),i=e.querySelector("output");return Xe(n,t.inputValue),n.type=t.input,Xe(i,t.inputValue),Ge(n,e,t),e},Ke.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");K(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Ge(e,e,t),e},Ke.radio=e=>(e.textContent="",e),Ke.checkbox=(e,t)=>{const n=ee(M(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);const i=e.querySelector("span");return K(i,t.inputPlaceholder||t.inputLabel),n},Ke.textarea=(e,t)=>{Xe(e,t.inputValue),We(e,t),Ge(e,e,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout((()=>{if("MutationObserver"in window){const i=parseInt(window.getComputedStyle(M()).width),r=()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+n(e);r>i?M().style.width=`${r}px`:se(M(),"width",t.width)};new MutationObserver(r).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Ye=(e,t)=>{const n=D();n&&(ce(n),Q(n,t,"htmlContainer"),t.html?(Te(t.html,n),ae(n,"block")):t.text?(n.textContent=t.text,ae(n,"block")):le(n),je(e,t))},Je=(e,t)=>{const n=V();n&&(ce(n),he(n,t.footer,"block"),t.footer&&Te(t.footer,n),Q(n,t,"footer"))},Qe=(e,t)=>{const n=$e.innerParams.get(e),i=A();if(i){if(n&&t.icon===n.icon)return rt(i,t),void et(i,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(p).indexOf(t.icon))return v(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void le(i);ae(i),rt(i,t),et(i,t),ie(i,t.showClass&&t.showClass.icon)}else le(i)}},et=(e,t)=>{for(const[n,i]of Object.entries(p))t.icon!==n&&re(e,i);ie(e,t.icon&&p[t.icon]),ot(e,t),tt(),Q(e,t,"icon")},tt=()=>{const e=M();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let i=0;i<n.length;i++)n[i].style.backgroundColor=t},nt='\n  <div class="swal2-success-circular-line-left"></div>\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n  <div class="swal2-success-circular-line-right"></div>\n',it='\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n',rt=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,i="";if(t.iconHtml)i=st(t.iconHtml);else if("success"===t.icon)i=nt,n=n.replace(/ style=".*?"/g,"");else if("error"===t.icon)i=it;else if(t.icon){const e={question:"?",warning:"!",info:"i"};i=st(e[t.icon])}n.trim()!==i.trim()&&K(e,i)},ot=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ue(e,n,"background-color",t.iconColor);ue(e,".swal2-success-ring","border-color",t.iconColor)}},st=e=>`<div class="${h["icon-content"]}">${e}</div>`,at=(e,t)=>{const n=P();n&&(t.imageUrl?(ae(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),se(n,"width",t.imageWidth),se(n,"height",t.imageHeight),n.className=h.image,Q(n,t,"image")):le(n))},lt=(e,t)=>{const n=S(),i=M();if(n&&i){if(t.toast){se(n,"width",t.width),i.style.width="100%";const e=N();e&&i.insertBefore(e,A())}else se(i,"width",t.width);se(i,"padding",t.padding),t.color&&(i.style.color=t.color),t.background&&(i.style.background=t.background),le(L()),ct(i,t)}},ct=(e,t)=>{const n=t.showClass||{};e.className=`${h.popup} ${de(e)?n.popup:""}`,t.toast?(ie([document.documentElement,document.body],h["toast-shown"]),ie(e,h.toast)):ie(e,h.modal),Q(e,t,"popup"),"string"===typeof t.customClass&&ie(e,t.customClass),t.icon&&ie(e,h[`icon-${t.icon}`])},ut=(e,t)=>{const n=z();if(!n)return;const{progressSteps:i,currentProgressStep:r}=t;i&&0!==i.length&&void 0!==r?(ae(n),n.textContent="",r>=i.length&&g("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.forEach(((e,o)=>{const s=ht(e);if(n.appendChild(s),o===r&&ie(s,h["active-progress-step"]),o!==i.length-1){const e=dt(t);n.appendChild(e)}}))):le(n)},ht=e=>{const t=document.createElement("li");return ie(t,h["progress-step"]),K(t,e),t},dt=e=>{const t=document.createElement("li");return ie(t,h["progress-step-line"]),e.progressStepsDistance&&se(t,"width",e.progressStepsDistance),t},pt=(e,t)=>{const n=I();n&&(ce(n),he(n,t.title||t.titleText,"block"),t.title&&Te(t.title,n),t.titleText&&(n.innerText=t.titleText),Q(n,t,"title"))},ft=(e,t)=>{lt(e,t),Le(e,t),ut(e,t),Qe(e,t),at(e,t),pt(e,t),ze(e,t),Ye(e,t),Oe(e,t),Je(e,t);const n=M();"function"===typeof t.didRender&&n&&t.didRender(n),s.eventEmitter.emit("didRender",n)},mt=()=>de(M()),gt=()=>{var e;return null===(e=B())||void 0===e?void 0:e.click()},vt=()=>{var e;return null===(e=R())||void 0===e?void 0:e.click()},yt=()=>{var e;return null===(e=F())||void 0===e?void 0:e.click()},_t=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),bt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},xt=(e,t,n)=>{bt(e),t.toast||(e.keydownHandler=e=>St(t,e,n),e.keydownTarget=t.keydownListenerCapture?window:M(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},wt=(e,t)=>{var n;const i=W();if(i.length)return e+=t,e===i.length?e=0:-1===e&&(e=i.length-1),void i[e].focus();null===(n=M())||void 0===n||n.focus()},Ct=["ArrowRight","ArrowDown"],kt=["ArrowLeft","ArrowUp"],St=(e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Et(t,e):"Tab"===t.key?Tt(t):[...Ct,...kt].includes(t.key)?Mt(t.key):"Escape"===t.key&&At(t,e,n)))},Et=(e,t)=>{if(!x(t.allowEnterKey))return;const n=ee(M(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;gt(),e.preventDefault()}},Tt=e=>{const t=e.target,n=W();let i=-1;for(let r=0;r<n.length;r++)if(t===n[r]){i=r;break}e.shiftKey?wt(i,-1):wt(i,1),e.stopPropagation(),e.preventDefault()},Mt=e=>{const t=j(),n=B(),i=R(),r=F();if(!t||!n||!i||!r)return;const o=[n,i,r];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=Ct.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&de(a))break}a instanceof HTMLButtonElement&&a.focus()}},At=(e,t,n)=>{x(t.allowEscapeKey)&&(e.preventDefault(),n(_t.esc))};var Ot={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const It=()=>{const e=S(),t=Array.from(document.body.children);t.forEach((t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))}))},Dt=()=>{const e=Array.from(document.body.children);e.forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Pt="undefined"!==typeof window&&!!window.GestureEvent,zt=()=>{if(Pt&&!Y(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ie(document.body,h.iosfix),Lt()}},Lt=()=>{const e=S();if(!e)return;let t;e.ontouchstart=e=>{t=Bt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Bt=e=>{const t=e.target,n=S(),i=D();return!(!n||!i)&&(!Ft(e)&&!Rt(e)&&(t===n||!fe(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!fe(i)||!i.contains(t))))},Ft=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Rt=e=>e.touches&&e.touches.length>1,$t=()=>{if(Y(document.body,h.iosfix)){const e=parseInt(document.body.style.top,10);re(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Nt=()=>{const e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let jt=null;const Vt=e=>{null===jt&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(jt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${jt+Nt()}px`)},Ut=()=>{null!==jt&&(document.body.style.paddingRight=`${jt}px`,jt=null)};function qt(e,t,n,i){Z()?Qt(e,i):(l(n).then((()=>Qt(e,i))),bt(s)),Pt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),G()&&(Ut(),$t(),Dt()),Ht()}function Ht(){re([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function Wt(e){e=Kt(e);const t=Ot.swalPromiseResolve.get(this),n=Gt(this);this.isAwaitingPromise?e.isDismissed||(Xt(this),t(e)):n&&t(e)}const Gt=e=>{const t=M();if(!t)return!1;const n=$e.innerParams.get(e);if(!n||Y(t,n.hideClass.popup))return!1;re(t,n.showClass.popup),ie(t,n.hideClass.popup);const i=S();return re(i,n.showClass.backdrop),ie(i,n.hideClass.backdrop),Yt(e,t,n),!0};function Zt(e){const t=Ot.swalPromiseReject.get(this);Xt(this),t&&t(e)}const Xt=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,$e.innerParams.get(e)||e._destroy())},Kt=e=>"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Yt=(e,t,n)=>{const i=S(),r=me(t);"function"===typeof n.willClose&&n.willClose(t),s.eventEmitter.emit("willClose",t),r?Jt(e,t,i,n.returnFocus,n.didClose):qt(e,i,n.returnFocus,n.didClose)},Jt=(e,t,n,i,r)=>{s.swalCloseEventFinishedCallback=qt.bind(null,e,n,i,r);const o=function(e){e.target===t&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o))};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},Qt=(e,t)=>{setTimeout((()=>{"function"===typeof t&&t.bind(e.params)(),s.eventEmitter.emit("didClose"),e._destroy&&e._destroy()}))},en=e=>{let t=M();if(t||new rr,t=M(),!t)return;const n=N();Z()?le(A()):tn(t,e),ae(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},tn=(e,t)=>{const n=j(),i=N();n&&i&&(!t&&de(B())&&(t=B()),ae(n),t&&(le(t),i.setAttribute("data-button-to-replace",t.className),n.insertBefore(i,t)),ie([e,n],h.loading))},nn=(e,t)=>{"select"===t.input||"radio"===t.input?ln(e,t):["text","email","number","tel","textarea"].some((e=>e===t.input))&&(w(t.inputValue)||k(t.inputValue))&&(en(B()),cn(e,t))},rn=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return on(n);case"radio":return sn(n);case"file":return an(n);default:return t.inputAutoTrim?n.value.trim():n.value}},on=e=>e.checked?1:0,sn=e=>e.checked?e.value:null,an=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,ln=(e,t)=>{const n=M();if(!n)return;const i=e=>{"select"===t.input?un(n,dn(e),t):"radio"===t.input&&hn(n,dn(e),t)};w(t.inputOptions)||k(t.inputOptions)?(en(B()),C(t.inputOptions).then((t=>{e.hideLoading(),i(t)}))):"object"===typeof t.inputOptions?i(t.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},cn=(e,t)=>{const n=e.getInput();n&&(le(n),C(t.inputValue).then((i=>{n.value="number"===t.input?`${parseFloat(i)||0}`:`${i}`,ae(n),n.focus(),e.hideLoading()})).catch((t=>{v(`Error in inputValue promise: ${t}`),n.value="",ae(n),n.focus(),e.hideLoading()})))};function un(e,t,n){const i=oe(e,h.select);if(!i)return;const r=(e,t,i)=>{const r=document.createElement("option");r.value=i,K(r,t),r.selected=pn(i,n.inputValue),e.appendChild(r)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,i.appendChild(e),n.forEach((t=>r(e,t[1],t[0])))}else r(i,n,t)})),i.focus()}function hn(e,t,n){const i=oe(e,h.radio);if(!i)return;t.forEach((e=>{const t=e[0],r=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,pn(t,n.inputValue)&&(o.checked=!0);const a=document.createElement("span");K(a,r),a.className=h.label,s.appendChild(o),s.appendChild(a),i.appendChild(s)}));const r=i.querySelectorAll("input");r.length&&r[0].focus()}const dn=e=>{const t=[];return e instanceof Map?e.forEach(((e,n)=>{let i=e;"object"===typeof i&&(i=dn(i)),t.push([n,i])})):Object.keys(e).forEach((n=>{let i=e[n];"object"===typeof i&&(i=dn(i)),t.push([n,i])})),t},pn=(e,t)=>!!t&&t.toString()===e.toString(),fn=e=>{const t=$e.innerParams.get(e);e.disableButtons(),t.input?vn(e,"confirm"):wn(e,!0)},mn=e=>{const t=$e.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?vn(e,"deny"):_n(e,!1)},gn=(e,t)=>{e.disableButtons(),t(_t.cancel)},vn=(e,t)=>{const n=$e.innerParams.get(e);if(!n.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${m(t)}`);const i=e.getInput(),r=rn(e,n);n.inputValidator?yn(e,r,t):i&&!i.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||i.validationMessage)):"deny"===t?_n(e,r):wn(e,r)},yn=(e,t,n)=>{const i=$e.innerParams.get(e);e.disableInput();const r=Promise.resolve().then((()=>C(i.inputValidator(t,i.validationMessage))));r.then((i=>{e.enableButtons(),e.enableInput(),i?e.showValidationMessage(i):"deny"===n?_n(e,t):wn(e,t)}))},_n=(e,t)=>{const n=$e.innerParams.get(e||void 0);if(n.showLoaderOnDeny&&en(R()),n.preDeny){e.isAwaitingPromise=!0;const i=Promise.resolve().then((()=>C(n.preDeny(t,n.validationMessage))));i.then((n=>{!1===n?(e.hideLoading(),Xt(e)):e.close({isDenied:!0,value:"undefined"===typeof n?t:n})})).catch((t=>xn(e||void 0,t)))}else e.close({isDenied:!0,value:t})},bn=(e,t)=>{e.close({isConfirmed:!0,value:t})},xn=(e,t)=>{e.rejectPromise(t)},wn=(e,t)=>{const n=$e.innerParams.get(e||void 0);if(n.showLoaderOnConfirm&&en(),n.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;const i=Promise.resolve().then((()=>C(n.preConfirm(t,n.validationMessage))));i.then((n=>{de(L())||!1===n?(e.hideLoading(),Xt(e)):bn(e,"undefined"===typeof n?t:n)})).catch((t=>xn(e||void 0,t)))}else bn(e,t)};function Cn(){const e=$e.innerParams.get(this);if(!e)return;const t=$e.domCache.get(this);le(t.loader),Z()?e.icon&&ae(A()):kn(t),re([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const kn=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ae(t[0],"inline-block"):pe()&&le(e.actions)};function Sn(){const e=$e.innerParams.get(this),t=$e.domCache.get(this);return t?ee(t.popup,e.input):null}function En(e,t,n){const i=$e.domCache.get(e);t.forEach((e=>{i[e].disabled=n}))}function Tn(e,t){const n=M();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll(`[name="${h.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function Mn(){En(this,["confirmButton","denyButton","cancelButton"],!1)}function An(){En(this,["confirmButton","denyButton","cancelButton"],!0)}function On(){Tn(this.getInput(),!1)}function In(){Tn(this.getInput(),!0)}function Dn(e){const t=$e.domCache.get(this),n=$e.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],n.customClass&&n.customClass.validationMessage&&ie(t.validationMessage,n.customClass.validationMessage),ae(t.validationMessage);const i=this.getInput();i&&(i.setAttribute("aria-invalid","true"),i.setAttribute("aria-describedby",h["validation-message"]),te(i),ie(i,h.inputerror))}function Pn(){const e=$e.domCache.get(this);e.validationMessage&&le(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),re(t,h.inputerror))}const zn={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Ln=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Bn={allowEnterKey:void 0},Fn=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Rn=e=>Object.prototype.hasOwnProperty.call(zn,e),$n=e=>-1!==Ln.indexOf(e),Nn=e=>Bn[e],jn=e=>{Rn(e)||g(`Unknown parameter "${e}"`)},Vn=e=>{Fn.includes(e)&&g(`The parameter "${e}" is incompatible with toasts`)},Un=e=>{const t=Nn(e);t&&b(e,t)},qn=e=>{!1===e.backdrop&&e.allowOutsideClick&&g('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)jn(t),e.toast&&Vn(t),Un(t)};function Hn(e){const t=M(),n=$e.innerParams.get(this);if(!t||Y(t,n.hideClass.popup))return void g("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const i=Wn(e),r=Object.assign({},n,i);ft(this,r),$e.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Wn=e=>{const t={};return Object.keys(e).forEach((n=>{$n(n)?t[n]=e[n]:g(`Invalid parameter to update: ${n}`)})),t};function Gn(){const e=$e.domCache.get(this),t=$e.innerParams.get(this);t?(e.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"===typeof t.didDestroy&&t.didDestroy(),s.eventEmitter.emit("didDestroy"),Zn(this)):Xn(this)}const Zn=e=>{Xn(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},Xn=e=>{e.isAwaitingPromise?(Kn($e,e),e.isAwaitingPromise=!0):(Kn(Ot,e),Kn($e,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Kn=(e,t)=>{for(const n in e)e[n].delete(t)};var Yn=Object.freeze({__proto__:null,_destroy:Gn,close:Wt,closeModal:Wt,closePopup:Wt,closeToast:Wt,disableButtons:An,disableInput:In,disableLoading:Cn,enableButtons:Mn,enableInput:On,getInput:Sn,handleAwaitingPromise:Xt,hideLoading:Cn,rejectPromise:Zt,resetValidationMessage:Pn,showValidationMessage:Dn,update:Hn});const Jn=(e,t,n)=>{e.toast?Qn(e,t,n):(ni(t),ii(t),ri(e,t,n))},Qn=(e,t,n)=>{t.popup.onclick=()=>{e&&(ei(e)||e.timer||e.input)||n(_t.close)}},ei=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ti=!1;const ni=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ti=!0)}}},ii=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(ti=!0)}}},ri=(e,t,n)=>{t.container.onclick=i=>{ti?ti=!1:i.target===t.container&&x(e.allowOutsideClick)&&n(_t.backdrop)}},oi=e=>"object"===typeof e&&e.jquery,si=e=>e instanceof Element||oi(e),ai=e=>{const t={};return"object"!==typeof e[0]||si(e[0])?["title","html","icon"].forEach(((n,i)=>{const r=e[i];"string"===typeof r||si(r)?t[n]=r:void 0!==r&&v(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)})):Object.assign(t,e[0]),t};function li(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}function ci(e){class t extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}return t}const ui=()=>s.timeout&&s.timeout.getTimerLeft(),hi=()=>{if(s.timeout)return ve(),s.timeout.stop()},di=()=>{if(s.timeout){const e=s.timeout.start();return ge(e),e}},pi=()=>{const e=s.timeout;return e&&(e.running?hi():di())},fi=e=>{if(s.timeout){const t=s.timeout.increase(e);return ge(t,!0),t}},mi=()=>!(!s.timeout||!s.timeout.isRunning());let gi=!1;const vi={};function yi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template";vi[e]=this,gi||(document.body.addEventListener("click",_i),gi=!0)}const _i=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in vi){const n=t.getAttribute(e);if(n)return void vi[e].fire({template:n})}};class bi{constructor(){this.events={}}_getHandlersByEventName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){var n=this;const i=function(){n.removeListener(e,i);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];t.apply(n,o)};this.on(e,i)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this._getHandlersByEventName(e).forEach((e=>{try{e.apply(this,n)}catch(v){console.error(v)}}))}removeListener(e,t){const n=this._getHandlersByEventName(e),i=n.indexOf(t);i>-1&&n.splice(i,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new bi;const xi=(e,t)=>{s.eventEmitter.on(e,t)},wi=(e,t)=>{s.eventEmitter.once(e,t)},Ci=(e,t)=>{e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset()};var ki=Object.freeze({__proto__:null,argsToParams:ai,bindClickHandler:yi,clickCancel:yt,clickConfirm:gt,clickDeny:vt,enableLoading:en,fire:li,getActions:j,getCancelButton:F,getCloseButton:q,getConfirmButton:B,getContainer:S,getDenyButton:R,getFocusableElements:W,getFooter:V,getHtmlContainer:D,getIcon:A,getIconContent:O,getImage:P,getInputLabel:$,getLoader:N,getPopup:M,getProgressSteps:z,getTimerLeft:ui,getTimerProgressBar:U,getTitle:I,getValidationMessage:L,increaseTimer:fi,isDeprecatedParameter:Nn,isLoading:X,isTimerRunning:mi,isUpdatableParameter:$n,isValidParameter:Rn,isVisible:mt,mixin:ci,off:Ci,on:xi,once:wi,resumeTimer:di,showLoading:en,stopTimer:hi,toggleTimer:pi});class Si{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Ei=["swal-title","swal-html","swal-footer"],Ti=e=>{const t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;Li(n);const i=Object.assign(Mi(n),Ai(n),Oi(n),Ii(n),Di(n),Pi(n),zi(n,Ei));return i},Mi=e=>{const t={},n=Array.from(e.querySelectorAll("swal-param"));return n.forEach((e=>{Bi(e,["name","value"]);const n=e.getAttribute("name"),i=e.getAttribute("value");n&&i&&("boolean"===typeof zn[n]?t[n]="false"!==i:"object"===typeof zn[n]?t[n]=JSON.parse(i):t[n]=i)})),t},Ai=e=>{const t={},n=Array.from(e.querySelectorAll("swal-function-param"));return n.forEach((e=>{const n=e.getAttribute("name"),i=e.getAttribute("value");n&&i&&(t[n]=new Function(`return ${i}`)())})),t},Oi=e=>{const t={},n=Array.from(e.querySelectorAll("swal-button"));return n.forEach((e=>{Bi(e,["type","color","aria-label"]);const n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t[`${n}ButtonText`]=e.innerHTML,t[`show${m(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label")))})),t},Ii=e=>{const t={},n=e.querySelector("swal-image");return n&&(Bi(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},Di=e=>{const t={},n=e.querySelector("swal-icon");return n&&(Bi(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Pi=e=>{const t={},n=e.querySelector("swal-input");n&&(Bi(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const i=Array.from(e.querySelectorAll("swal-input-option"));return i.length&&(t.inputOptions={},i.forEach((e=>{Bi(e,["value"]);const n=e.getAttribute("value");if(!n)return;const i=e.innerHTML;t.inputOptions[n]=i}))),t},zi=(e,t)=>{const n={};for(const i in t){const r=t[i],o=e.querySelector(r);o&&(Bi(o,[]),n[r.replace(/^swal-/,"")]=o.innerHTML.trim())}return n},Li=e=>{const t=Ei.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||g(`Unrecognized element <${n}>`)}))},Bi=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&g([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])}))},Fi=10,Ri=e=>{const t=S(),n=M();"function"===typeof e.willOpen&&e.willOpen(n),s.eventEmitter.emit("willOpen",n);const i=window.getComputedStyle(document.body),r=i.overflowY;Vi(t,n,e),setTimeout((()=>{Ni(t,n)}),Fi),G()&&(ji(t,e.scrollbarPadding,r),It()),Z()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"===typeof e.didOpen&&setTimeout((()=>e.didOpen(n))),s.eventEmitter.emit("didOpen",n),re(t,h["no-transition"])},$i=e=>{const t=M();if(e.target!==t)return;const n=S();t.removeEventListener("animationend",$i),t.removeEventListener("transitionend",$i),n.style.overflowY="auto"},Ni=(e,t)=>{me(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",$i),t.addEventListener("transitionend",$i)):e.style.overflowY="auto"},ji=(e,t,n)=>{zt(),t&&"hidden"!==n&&Vt(n),setTimeout((()=>{e.scrollTop=0}))},Vi=(e,t,n)=>{ie(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),ae(t,"grid"),setTimeout((()=>{ie(t,n.showClass.popup),t.style.removeProperty("opacity")}),Fi)):ae(t,"grid"),ie([document.documentElement,document.body],h.shown),n.heightAuto&&n.backdrop&&!n.toast&&ie([document.documentElement,document.body],h["height-auto"])};var Ui={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function qi(e){e.inputValidator||("email"===e.input&&(e.inputValidator=Ui["email"]),"url"===e.input&&(e.inputValidator=Ui["url"]))}function Hi(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(g('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Wi(e){qi(e),e.showLoaderOnConfirm&&!e.preConfirm&&g("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),Hi(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Ee(e)}let Gi;var Zi=new WeakMap;class Xi{constructor(){if(i(this,Zi,void 0),"undefined"===typeof window)return;Gi=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=Object.freeze(this.constructor.argsToParams(t));this.params=o,this.isAwaitingPromise=!1,r(Zi,this,this._main(Gi.params))}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(qn(Object.assign({},t,e)),s.currentInstance){const e=Ot.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),G()&&Dt()}s.currentInstance=Gi;const n=Yi(e,t);Wi(n),Object.freeze(n),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const i=Ji(Gi);return ft(Gi,n),$e.innerParams.set(Gi,n),Ki(Gi,i,n)}then(e){return n(Zi,this).then(e)}finally(e){return n(Zi,this).finally(e)}}const Ki=(e,t,n)=>new Promise(((i,r)=>{const o=t=>{e.close({isDismissed:!0,dismiss:t})};Ot.swalPromiseResolve.set(e,i),Ot.swalPromiseReject.set(e,r),t.confirmButton.onclick=()=>{fn(e)},t.denyButton.onclick=()=>{mn(e)},t.cancelButton.onclick=()=>{gn(e,o)},t.closeButton.onclick=()=>{o(_t.close)},Jn(n,t,o),xt(s,n,o),nn(e,n),Ri(n),Qi(s,n,o),er(t,n),setTimeout((()=>{t.container.scrollTop=0}))})),Yi=(e,t)=>{const n=Ti(e),i=Object.assign({},zn,t,n,e);return i.showClass=Object.assign({},zn.showClass,i.showClass),i.hideClass=Object.assign({},zn.hideClass,i.hideClass),!1===i.animation&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},Ji=e=>{const t={popup:M(),container:S(),actions:j(),confirmButton:B(),denyButton:R(),cancelButton:F(),loader:N(),closeButton:q(),validationMessage:L(),progressSteps:z()};return $e.domCache.set(e,t),t},Qi=(e,t,n)=>{const i=U();le(i),t.timer&&(e.timeout=new Si((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ae(i),Q(i,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ge(t.timer)}))))},er=(e,t)=>{if(!t.toast)return x(t.allowEnterKey)?void(tr(e)||nr(e,t)||wt(-1,1)):(b("allowEnterKey"),void ir())},tr=e=>{const t=e.popup.querySelectorAll("[autofocus]");for(const n of t)if(n instanceof HTMLElement&&de(n))return n.focus(),!0;return!1},nr=(e,t)=>t.focusDeny&&de(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&de(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!de(e.confirmButton))&&(e.confirmButton.focus(),!0),ir=()=>{document.activeElement instanceof HTMLElement&&"function"===typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!==typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}Xi.prototype.disableButtons=An,Xi.prototype.enableButtons=Mn,Xi.prototype.getInput=Sn,Xi.prototype.disableInput=In,Xi.prototype.enableInput=On,Xi.prototype.hideLoading=Cn,Xi.prototype.disableLoading=Cn,Xi.prototype.showValidationMessage=Dn,Xi.prototype.resetValidationMessage=Pn,Xi.prototype.close=Wt,Xi.prototype.closePopup=Wt,Xi.prototype.closeModal=Wt,Xi.prototype.closeToast=Wt,Xi.prototype.rejectPromise=Zt,Xi.prototype.update=Hn,Xi.prototype._destroy=Gn,Object.assign(Xi,ki),Object.keys(Yn).forEach((e=>{Xi[e]=function(){return Gi&&Gi[e]?Gi[e](...arguments):null}})),Xi.DismissReason=_t,Xi.version="11.14.4";const rr=Xi;return rr.default=rr,rr})),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')},7810:function(e,t,n){var i=n(4901);e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},8933:function(e,t,n){var i=n(4901),r=n(7810);e.exports={throttle:i,debounce:r}},4901:function(e){e.exports=function(e,t,n,i){var r,o=0;function s(){var s=this,a=Number(new Date)-o,l=arguments;function c(){o=Number(new Date),n.apply(s,l)}function u(){r=void 0}i&&!r&&c(),r&&clearTimeout(r),void 0===i&&a>e?c():!0!==t&&(r=setTimeout(i?u:c,void 0===i?e-a:e))}return"boolean"!==typeof t&&(i=n,n=t,t=void 0),s}},9274:function(t){"use strict";t.exports=e},5514:function(e,t,n){"use strict";var i=n(8389),r=n(4983),o=TypeError;e.exports=function(e){if(i(e))return e;throw new o(r(e)+" is not a function")}},5735:function(e,t,n){"use strict";var i=n(962),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw new o(r(e)+" is not an object")}},1409:function(e,t,n){"use strict";var i=n(6805),r=n(2170),o=n(8742),s=function(e){return function(t,n,s){var a=i(t),l=o(a);if(0===l)return!e&&-1;var c,u=r(s,l);if(e&&n!==n){while(l>u)if(c=a[u++],c!==c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},4127:function(e,t,n){"use strict";var i=n(7084),r=n(4104),o=TypeError,s=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(r(e)&&!s(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4512:function(e,t,n){"use strict";var i=n(5920),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},3036:function(e,t,n){"use strict";var i=n(6401),r=n(1575),o=n(3763),s=n(9617);e.exports=function(e,t,n){for(var a=r(t),l=s.f,c=o.f,u=0;u<a.length;u++){var h=a[u];i(e,h)||n&&i(n,h)||l(e,h,c(t,h))}}},9915:function(e,t,n){"use strict";var i=n(7084),r=n(9617),o=n(8612);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},8612:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7448:function(e,t,n){"use strict";var i=n(8389),r=n(9617),o=n(8075),s=n(3817);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(i(n)&&o(n,c,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},3817:function(e,t,n){"use strict";var i=n(8672),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},7084:function(e,t,n){"use strict";var i=n(9391);e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9511:function(e,t,n){"use strict";var i=n(8672),r=n(962),o=i.document,s=r(o)&&r(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},7637:function(e){"use strict";var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},2103:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5623:function(e,t,n){"use strict";var i=n(8672),r=i.navigator,o=r&&r.userAgent;e.exports=o?String(o):""},4431:function(e,t,n){"use strict";var i,r,o=n(8672),s=n(5623),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(i=s.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),e.exports=r},6454:function(e,t,n){"use strict";var i=n(8672),r=n(3763).f,o=n(9915),s=n(7448),a=n(3817),l=n(3036),c=n(4156);e.exports=function(e,t){var n,u,h,d,p,f,m=e.target,g=e.global,v=e.stat;if(u=g?i:v?i[m]||a(m,{}):i[m]&&i[m].prototype,u)for(h in t){if(p=t[h],e.dontCallGetSet?(f=r(u,h),d=f&&f.value):d=u[h],n=c(g?h:m+(v?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),s(u,h,p,e)}}},9391:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},6344:function(e,t,n){"use strict";var i=n(9391);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6733:function(e,t,n){"use strict";var i=n(6344),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},9470:function(e,t,n){"use strict";var i=n(7084),r=n(6401),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!i||i&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},5920:function(e,t,n){"use strict";var i=n(6344),r=Function.prototype,o=r.call,s=i&&r.bind.bind(o,o);e.exports=i?s:function(e){return function(){return o.apply(e,arguments)}}},7383:function(e,t,n){"use strict";var i=n(8672),r=n(8389),o=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e]):i[e]&&i[e][t]}},9950:function(e,t,n){"use strict";var i=n(5514),r=n(3237);e.exports=function(e,t){var n=e[t];return r(n)?void 0:i(n)}},8672:function(e,t,n){"use strict";var i=function(e){return e&&e.Math===Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6401:function(e,t,n){"use strict";var i=n(5920),r=n(8805),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},7285:function(e){"use strict";e.exports={}},8669:function(e,t,n){"use strict";var i=n(7084),r=n(9391),o=n(9511);e.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},2943:function(e,t,n){"use strict";var i=n(5920),r=n(9391),o=n(4512),s=Object,a=i("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):s(e)}:s},6746:function(e,t,n){"use strict";var i=n(5920),r=n(8389),o=n(877),s=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},1789:function(e,t,n){"use strict";var i,r,o,s=n(798),a=n(8672),l=n(962),c=n(9915),u=n(6401),h=n(877),d=n(23),p=n(7285),f="Object already initialized",m=a.TypeError,g=a.WeakMap,v=function(e){return o(e)?r(e):i(e,{})},y=function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}};if(s||h.state){var _=h.state||(h.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,i=function(e,t){if(_.has(e))throw new m(f);return t.facade=e,_.set(e,t),t},r=function(e){return _.get(e)||{}},o=function(e){return _.has(e)}}else{var b=d("state");p[b]=!0,i=function(e,t){if(u(e,b))throw new m(f);return t.facade=e,c(e,b,t),t},r=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}e.exports={set:i,get:r,has:o,enforce:v,getterFor:y}},4104:function(e,t,n){"use strict";var i=n(4512);e.exports=Array.isArray||function(e){return"Array"===i(e)}},8389:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},4156:function(e,t,n){"use strict";var i=n(9391),r=n(8389),o=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n===u||n!==c&&(r(t)?i(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},3237:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},962:function(e,t,n){"use strict";var i=n(8389);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},2411:function(e){"use strict";e.exports=!1},565:function(e,t,n){"use strict";var i=n(7383),r=n(8389),o=n(4937),s=n(4272),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&o(t.prototype,a(e))}},8742:function(e,t,n){"use strict";var i=n(446);e.exports=function(e){return i(e.length)}},8075:function(e,t,n){"use strict";var i=n(5920),r=n(9391),o=n(8389),s=n(6401),a=n(7084),l=n(9470).CONFIGURABLE,c=n(6746),u=n(1789),h=u.enforce,d=u.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),y=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),_=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&s(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=h(e);return s(i,"source")||(i.source=v(_,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return o(this)&&d(this).source||c(this)}),"toString")},469:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},9617:function(e,t,n){"use strict";var i=n(7084),r=n(8669),o=n(4542),s=n(5735),a=n(8745),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";t.f=i?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=u(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:h in n?n[h]:i[h],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=a(t),s(n),r)try{return c(e,t,n)}catch(i){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},3763:function(e,t,n){"use strict";var i=n(7084),r=n(6733),o=n(4373),s=n(8612),a=n(6805),l=n(8745),c=n(6401),u=n(8669),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=a(e),t=l(t),u)try{return h(e,t)}catch(n){}if(c(e,t))return s(!r(o.f,e,t),e[t])}},8560:function(e,t,n){"use strict";var i=n(3332),r=n(2103),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},213:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},4937:function(e,t,n){"use strict";var i=n(5920);e.exports=i({}.isPrototypeOf)},3332:function(e,t,n){"use strict";var i=n(5920),r=n(6401),o=n(6805),s=n(1409).indexOf,a=n(7285),l=i([].push);e.exports=function(e,t){var n,i=o(e),c=0,u=[];for(n in i)!r(a,n)&&r(i,n)&&l(u,n);while(t.length>c)r(i,n=t[c++])&&(~s(u,n)||l(u,n));return u}},4373:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},78:function(e,t,n){"use strict";var i=n(6733),r=n(8389),o=n(962),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&r(n=e.toString)&&!o(a=i(n,e)))return a;if(r(n=e.valueOf)&&!o(a=i(n,e)))return a;if("string"!==t&&r(n=e.toString)&&!o(a=i(n,e)))return a;throw new s("Can't convert object to primitive value")}},1575:function(e,t,n){"use strict";var i=n(7383),r=n(5920),o=n(8560),s=n(213),a=n(5735),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?l(t,n(e)):t}},1814:function(e,t,n){"use strict";var i=n(3237),r=TypeError;e.exports=function(e){if(i(e))throw new r("Can't call method on "+e);return e}},23:function(e,t,n){"use strict";var i=n(9329),r=n(5376),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},877:function(e,t,n){"use strict";var i=n(2411),r=n(8672),o=n(3817),s="__core-js_shared__",a=e.exports=r[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},9329:function(e,t,n){"use strict";var i=n(877);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},5007:function(e,t,n){"use strict";var i=n(4431),r=n(9391),o=n(8672),s=o.String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},2170:function(e,t,n){"use strict";var i=n(9227),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},6805:function(e,t,n){"use strict";var i=n(2943),r=n(1814);e.exports=function(e){return i(r(e))}},9227:function(e,t,n){"use strict";var i=n(469);e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},446:function(e,t,n){"use strict";var i=n(9227),r=Math.min;e.exports=function(e){var t=i(e);return t>0?r(t,9007199254740991):0}},8805:function(e,t,n){"use strict";var i=n(1814),r=Object;e.exports=function(e){return r(i(e))}},7593:function(e,t,n){"use strict";var i=n(6733),r=n(962),o=n(565),s=n(9950),a=n(78),l=n(8979),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,l=s(e,u);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},8745:function(e,t,n){"use strict";var i=n(7593),r=n(565);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},4983:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},5376:function(e,t,n){"use strict";var i=n(5920),r=0,o=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++r+o,36)}},4272:function(e,t,n){"use strict";var i=n(5007);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4542:function(e,t,n){"use strict";var i=n(7084),r=n(9391);e.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},798:function(e,t,n){"use strict";var i=n(8672),r=n(8389),o=i.WeakMap;e.exports=r(o)&&/native code/.test(String(o))},8979:function(e,t,n){"use strict";var i=n(8672),r=n(9329),o=n(6401),s=n(5376),a=n(5007),l=n(4272),c=i.Symbol,u=r("wks"),h=l?c["for"]||c:c&&c.withoutSetter||s;e.exports=function(e){return o(u,e)||(u[e]=a&&o(c,e)?c[e]:h("Symbol."+e)),u[e]}},3778:function(e,t,n){"use strict";var i=n(6454),r=n(8805),o=n(8742),s=n(4127),a=n(7637),l=n(9391),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},h=c||!u();i({target:"Array",proto:!0,arity:1,forced:h},{push:function(e){var t=r(this),n=o(t),i=arguments.length;a(n+i);for(var l=0;l<i;l++)t[n]=arguments[l],n++;return s(t,n),n}})}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}!function(){i.amdO={}}(),function(){i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,{a:t}),t}}(),function(){i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){i.p=""}();var r={};return function(){"use strict";if("undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(i.p=t[1])}const n=()=>{};let r={},o={},s=null,a={mark:n,measure:n};try{"undefined"!==typeof window&&(r=window),"undefined"!==typeof document&&(o=document),"undefined"!==typeof MutationObserver&&(s=MutationObserver),"undefined"!==typeof performance&&(a=performance)}catch(Ix){}const{userAgent:l=""}=r.navigator||{},c=r,u=o,h=s,d=a,p=(c.document,!!u.documentElement&&!!u.head&&"function"===typeof u.addEventListener&&"function"===typeof u.createElement),f=~l.indexOf("MSIE")||~l.indexOf("Trident/");var m="classic",g="duotone",v="sharp",y="sharp-duotone",b=[m,g,v,y],x={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},w={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},C=["kit"],k=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,S=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,E={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},T={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},M={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},A={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},O={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},I={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},D={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},P=["solid","regular","light","thin","duotone","brands"],z=[1,2,3,4,5,6,7,8,9,10],L=z.concat([11,12,13,14,15,16,17,18,19,20]),B={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},F=[...Object.keys(A),...P,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",B.GROUP,B.SWAP_OPACITY,B.PRIMARY,B.SECONDARY].concat(z.map((e=>"".concat(e,"x")))).concat(L.map((e=>"w-".concat(e)))),R={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},$={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},N={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},j={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const V="___FONT_AWESOME___",U=16,q="fa",H="svg-inline--fa",W="data-fa-i2svg",G="data-fa-pseudo-element",Z="data-fa-pseudo-element-pending",X="data-prefix",K="data-icon",Y="fontawesome-i2svg",J="async",Q=["HTML","HEAD","STYLE","SCRIPT"],ee=(()=>{try{return!0}catch(e){return!1}})(),te=[m,v,y];function ne(e){return new Proxy(e,{get(e,t){return t in e?e[t]:e[m]}})}const ie={...D};ie[m]={...D[m],...w["kit"],...w["kit-duotone"]};const re=ne(ie),oe={...I};oe[m]={...oe[m],...j["kit"],...j["kit-duotone"]};const se=ne(oe),ae={...O};ae[m]={...ae[m],...N["kit"]};const le=ne(ae),ce={...M};ce[m]={...ce[m],...$["kit"]};const ue=ne(ce),he=k,de="fa-layers-text",pe=S,fe={...x},me=(ne(fe),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),ge=B,ve=new Set;Object.keys(se[m]).map(ve.add.bind(ve)),Object.keys(se[v]).map(ve.add.bind(ve)),Object.keys(se[y]).map(ve.add.bind(ve));const ye=[...C,...F],_e=c.FontAwesomeConfig||{};function be(e){var t=u.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function xe(e){return""===e||"false"!==e&&("true"===e||e)}if(u&&"function"===typeof u.querySelector){const e=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];e.forEach((e=>{let[t,n]=e;const i=xe(be(t));void 0!==i&&null!==i&&(_e[n]=i)}))}const we={styleDefault:"solid",familyDefault:"classic",cssPrefix:q,replacementClass:H,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};_e.familyPrefix&&(_e.cssPrefix=_e.familyPrefix);const Ce={...we,..._e};Ce.autoReplaceSvg||(Ce.observeMutations=!1);const ke={};Object.keys(we).forEach((e=>{Object.defineProperty(ke,e,{enumerable:!0,set:function(t){Ce[e]=t,Se.forEach((e=>e(ke)))},get:function(){return Ce[e]}})})),Object.defineProperty(ke,"familyPrefix",{enumerable:!0,set:function(e){Ce.cssPrefix=e,Se.forEach((e=>e(ke)))},get:function(){return Ce.cssPrefix}}),c.FontAwesomeConfig=ke;const Se=[];function Ee(e){return Se.push(e),()=>{Se.splice(Se.indexOf(e),1)}}const Te=U,Me={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Ae(e){if(!e||!p)return;const t=u.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=u.head.childNodes;let i=null;for(let r=n.length-1;r>-1;r--){const e=n[r],t=(e.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(t)>-1&&(i=e)}return u.head.insertBefore(t,i),e}const Oe="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ie(){let e=12,t="";while(e-- >0)t+=Oe[62*Math.random()|0];return t}function De(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Pe(e){return e.classList?De(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function ze(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Le(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(ze(e[n]),'" ')),"").trim()}function Be(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Fe(e){return e.size!==Me.size||e.x!==Me.x||e.y!==Me.y||e.rotate!==Me.rotate||e.flipX||e.flipY}function Re(e){let{transform:t,containerWidth:n,iconWidth:i}=e;const r={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(s," ").concat(a)},c={transform:"translate(".concat(i/2*-1," -256)")};return{outer:r,inner:l,path:c}}function $e(e){let{transform:t,width:n=U,height:i=U,startCentered:r=!1}=e,o="";return o+=r&&f?"translate(".concat(t.x/Te-n/2,"em, ").concat(t.y/Te-i/2,"em) "):r?"translate(calc(-50% + ".concat(t.x/Te,"em), calc(-50% + ").concat(t.y/Te,"em)) "):"translate(".concat(t.x/Te,"em, ").concat(t.y/Te,"em) "),o+="scale(".concat(t.size/Te*(t.flipX?-1:1),", ").concat(t.size/Te*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var Ne=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-counter-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(-1 * var(--fa-li-width, 2em));\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  animation-name: fa-beat;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  animation-name: fa-bounce;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  animation-name: fa-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  animation-name: fa-beat-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  animation-name: fa-flip;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  animation-name: fa-shake;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  animation-name: fa-spin;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 2s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  animation-name: fa-spin;\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    animation-delay: -1ms;\n    animation-duration: 1ms;\n    animation-iteration-count: 1;\n    transition-delay: 0s;\n    transition-duration: 0s;\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    transform: scale(1);\n  }\n  45% {\n    transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-shake {\n  0% {\n    transform: rotate(-15deg);\n  }\n  4% {\n    transform: rotate(15deg);\n  }\n  8%, 24% {\n    transform: rotate(-18deg);\n  }\n  12%, 28% {\n    transform: rotate(18deg);\n  }\n  16% {\n    transform: rotate(-22deg);\n  }\n  20% {\n    transform: rotate(22deg);\n  }\n  32% {\n    transform: rotate(-12deg);\n  }\n  36% {\n    transform: rotate(12deg);\n  }\n  40%, 100% {\n    transform: rotate(0deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}';function je(){const e=q,t=H,n=ke.cssPrefix,i=ke.replacementClass;let r=Ne;if(n!==e||i!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");r=r.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(i))}return r}let Ve=!1;function Ue(){ke.autoAddCss&&!Ve&&(Ae(je()),Ve=!0)}var qe={mixout(){return{dom:{css:je,insertCss:Ue}}},hooks(){return{beforeDOMElementCreation(){Ue()},beforeI2svg(){Ue()}}}};const He=c||{};He[V]||(He[V]={}),He[V].styles||(He[V].styles={}),He[V].hooks||(He[V].hooks={}),He[V].shims||(He[V].shims=[]);var We=He[V];const Ge=[],Ze=function(){u.removeEventListener("DOMContentLoaded",Ze),Xe=1,Ge.map((e=>e()))};let Xe=!1;function Ke(e){p&&(Xe?setTimeout(e,0):Ge.push(e))}function Ye(e){const{tag:t,attributes:n={},children:i=[]}=e;return"string"===typeof e?ze(e):"<".concat(t," ").concat(Le(n),">").concat(i.map(Ye).join(""),"</").concat(t,">")}function Je(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}p&&(Xe=(u.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(u.readyState),Xe||u.addEventListener("DOMContentLoaded",Ze));var Qe=function(e,t){return function(n,i,r,o){return e.call(t,n,i,r,o)}},et=function(e,t,n,i){var r,o,s,a=Object.keys(e),l=a.length,c=void 0!==i?Qe(t,i):t;for(void 0===n?(r=1,s=e[a[0]]):(r=0,s=n);r<l;r++)o=a[r],s=c(s,e[o],o,e);return s};function tt(e){const t=[];let n=0;const i=e.length;while(n<i){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){const i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&r)<<10)+(1023&i)+65536):(t.push(r),n--)}else t.push(r)}return t}function nt(e){const t=tt(e);return 1===t.length?t[0].toString(16):null}function it(e,t){const n=e.length;let i,r=e.charCodeAt(t);return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?1024*(r-55296)+i-56320+65536:r}function rt(e){return Object.keys(e).reduce(((t,n)=>{const i=e[n],r=!!i.icon;return r?t[i.iconName]=i.icon:t[n]=i,t}),{})}function ot(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:i=!1}=n,r=rt(t);"function"!==typeof We.hooks.addPack||i?We.styles[e]={...We.styles[e]||{},...r}:We.hooks.addPack(e,rt(t)),"fas"===e&&ot("fa",t)}const{styles:st,shims:at}=We,lt={[m]:Object.values(le[m]),[v]:Object.values(le[v]),[y]:Object.values(le[y])};let ct=null,ut={},ht={},dt={},pt={},ft={};const mt={[m]:Object.keys(re[m]),[v]:Object.keys(re[v]),[y]:Object.keys(re[y])};function gt(e){return~ye.indexOf(e)}function vt(e,t){const n=t.split("-"),i=n[0],r=n.slice(1).join("-");return i!==e||""===r||gt(r)?null:r}const yt=()=>{const e=e=>et(st,((t,n,i)=>(t[i]=et(n,e,{}),t)),{});ut=e(((e,t,n)=>{if(t[3]&&(e[t[3]]=n),t[2]){const i=t[2].filter((e=>"number"===typeof e));i.forEach((t=>{e[t.toString(16)]=n}))}return e})),ht=e(((e,t,n)=>{if(e[n]=n,t[2]){const i=t[2].filter((e=>"string"===typeof e));i.forEach((t=>{e[t]=n}))}return e})),ft=e(((e,t,n)=>{const i=t[2];return e[n]=n,i.forEach((t=>{e[t]=n})),e}));const t="far"in st||ke.autoFetchSvg,n=et(at,((e,n)=>{const i=n[0];let r=n[1];const o=n[2];return"far"!==r||t||(r="fas"),"string"===typeof i&&(e.names[i]={prefix:r,iconName:o}),"number"===typeof i&&(e.unicodes[i.toString(16)]={prefix:r,iconName:o}),e}),{names:{},unicodes:{}});dt=n.names,pt=n.unicodes,ct=Et(ke.styleDefault,{family:ke.familyDefault})};function _t(e,t){return(ut[e]||{})[t]}function bt(e,t){return(ht[e]||{})[t]}function xt(e,t){return(ft[e]||{})[t]}function wt(e){return dt[e]||{prefix:null,iconName:null}}function Ct(e){const t=pt[e],n=_t("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function kt(){return ct}Ee((e=>{ct=Et(e.styleDefault,{family:ke.familyDefault})})),yt();const St=()=>({prefix:null,iconName:null,rest:[]});function Et(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=m}=t,i=re[n][e],r=se[n][e]||se[n][i],o=e in We.styles?e:null,s=r||o||null;return s}const Tt={[m]:Object.keys(le[m]),[v]:Object.keys(le[v]),[y]:Object.keys(le[y])};function Mt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t,i={[m]:"".concat(ke.cssPrefix,"-").concat(m),[v]:"".concat(ke.cssPrefix,"-").concat(v),[y]:"".concat(ke.cssPrefix,"-").concat(y)};let r=null,o=m;const s=b.filter((e=>e!==g));s.forEach((t=>{(e.includes(i[t])||e.some((e=>Tt[t].includes(e))))&&(o=t)}));const a=e.reduce(((e,t)=>{const a=vt(ke.cssPrefix,t);if(st[t]?(t=lt[o].includes(t)?ue[o][t]:t,r=t,e.prefix=t):mt[o].indexOf(t)>-1?(r=t,e.prefix=Et(t,{family:o})):a?e.iconName=a:t===ke.replacementClass||s.some((e=>t===i[e]))||e.rest.push(t),!n&&e.prefix&&e.iconName){const t="fa"===r?wt(e.iconName):{},n=xt(e.prefix,e.iconName);t.prefix&&(r=null),e.iconName=t.iconName||n||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||st["far"]||!st["fas"]||ke.autoFetchSvg||(e.prefix="fas")}return e}),St());return(e.includes("fa-brands")||e.includes("fab"))&&(a.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(a.prefix="fad"),a.prefix||o!==v||!st["fass"]&&!ke.autoFetchSvg||(a.prefix="fass",a.iconName=xt(a.prefix,a.iconName)||a.iconName),a.prefix||o!==y||!st["fasds"]&&!ke.autoFetchSvg||(a.prefix="fasds",a.iconName=xt(a.prefix,a.iconName)||a.iconName),"fa"!==a.prefix&&"fa"!==r||(a.prefix=kt()||"fas"),a}class At{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i=t.reduce(this._pullDefinitions,{});Object.keys(i).forEach((e=>{this.definitions[e]={...this.definitions[e]||{},...i[e]},ot(e,i[e]);const t=le[m][e];t&&ot(t,i[e]),yt()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:i,iconName:r,icon:o}=n[t],s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach((t=>{"string"===typeof t&&(e[i][t]=o)})),e[i][r]=o})),e}}let Ot=[],It={};const Dt={},Pt=Object.keys(Dt);function zt(e,t){let{mixoutsTo:n}=t;return Ot=e,It={},Object.keys(Dt).forEach((e=>{-1===Pt.indexOf(e)&&delete Dt[e]})),Ot.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"===typeof t[e]&&(n[e]=t[e]),"object"===typeof t[e]&&Object.keys(t[e]).forEach((i=>{n[e]||(n[e]={}),n[e][i]=t[e][i]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{It[e]||(It[e]=[]),It[e].push(t[e])}))}e.provides&&e.provides(Dt)})),n}function Lt(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];const o=It[e]||[];return o.forEach((e=>{t=e.apply(null,[t,...i])})),t}function Bt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];const r=It[e]||[];r.forEach((e=>{e.apply(null,n)}))}function Ft(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Dt[e]?Dt[e].apply(null,t):void 0}function Rt(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||kt();if(t)return t=xt(n,t)||t,Je($t.definitions,n,t)||Je(We.styles,n,t)}const $t=new At,Nt=()=>{ke.autoReplaceSvg=!1,ke.observeMutations=!1,Bt("noAuto")},jt={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p?(Bt("beforeI2svg",e),Ft("pseudoElements2svg",e),Ft("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;!1===ke.autoReplaceSvg&&(ke.autoReplaceSvg=!0),ke.observeMutations=!0,Ke((()=>{qt({autoReplaceSvgRoot:t}),Bt("watch",e)}))}},Vt={icon:e=>{if(null===e)return null;if("object"===typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:xt(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Et(e[0]);return{prefix:n,iconName:xt(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(ke.cssPrefix,"-"))>-1||e.match(he))){const t=Mt(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||kt(),iconName:xt(t.prefix,t.iconName)||t.iconName}}if("string"===typeof e){const t=kt();return{prefix:t,iconName:xt(t,e)||e}}}},Ut={noAuto:Nt,config:ke,dom:jt,parse:Vt,library:$t,findIconDefinition:Rt,toHtml:Ye},qt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=u}=e;(Object.keys(We.styles).length>0||ke.autoFetchSvg)&&p&&ke.autoReplaceSvg&&Ut.dom.i2svg({node:t})};function Ht(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>Ye(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!p)return;const t=u.createElement("div");return t.innerHTML=e.html,t.children}}),e}function Wt(e){let{children:t,main:n,mask:i,attributes:r,styles:o,transform:s}=e;if(Fe(s)&&n.found&&!i.found){const{width:e,height:t}=n,i={x:e/t/2,y:.5};r["style"]=Be({...o,"transform-origin":"".concat(i.x+s.x/16,"em ").concat(i.y+s.y/16,"em")})}return[{tag:"svg",attributes:r,children:t}]}function Gt(e){let{prefix:t,iconName:n,children:i,attributes:r,symbol:o}=e;const s=!0===o?"".concat(t,"-").concat(ke.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...r,id:s},children:i}]}]}function Zt(e){const{icons:{main:t,mask:n},prefix:i,iconName:r,transform:o,symbol:s,title:a,maskId:l,titleId:c,extra:u,watchable:h=!1}=e,{width:d,height:p}=n.found?n:t,f="fak"===i,m=[ke.replacementClass,r?"".concat(ke.cssPrefix,"-").concat(r):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let g={children:[],attributes:{...u.attributes,"data-prefix":i,"data-icon":r,class:m,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)}};const v=f&&!~u.classes.indexOf("fa-fw")?{width:"".concat(d/p*16*.0625,"em")}:{};h&&(g.attributes[W]=""),a&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(c||Ie())},children:[a]}),delete g.attributes.title);const y={...g,prefix:i,iconName:r,main:t,mask:n,maskId:l,transform:o,symbol:s,styles:{...v,...u.styles}},{children:_,attributes:b}=n.found&&t.found?Ft("generateAbstractMask",y)||{children:[],attributes:{}}:Ft("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=_,y.attributes=b,s?Gt(y):Wt(y)}function Xt(e){const{content:t,width:n,height:i,transform:r,title:o,extra:s,watchable:a=!1}=e,l={...s.attributes,...o?{title:o}:{},class:s.classes.join(" ")};a&&(l[W]="");const c={...s.styles};Fe(r)&&(c["transform"]=$e({transform:r,startCentered:!0,width:n,height:i}),c["-webkit-transform"]=c["transform"]);const u=Be(c);u.length>0&&(l["style"]=u);const h=[];return h.push({tag:"span",attributes:l,children:[t]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}function Kt(e){const{content:t,title:n,extra:i}=e,r={...i.attributes,...n?{title:n}:{},class:i.classes.join(" ")},o=Be(i.styles);o.length>0&&(r["style"]=o);const s=[];return s.push({tag:"span",attributes:r,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:Yt}=We;function Jt(e){const t=e[0],n=e[1],[i]=e.slice(4);let r=null;return r=Array.isArray(i)?{tag:"g",attributes:{class:"".concat(ke.cssPrefix,"-").concat(ge.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ke.cssPrefix,"-").concat(ge.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(ke.cssPrefix,"-").concat(ge.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:r}}const Qt={found:!1,width:512,height:512};function en(e,t){ee||ke.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function tn(e,t){let n=t;return"fa"===t&&null!==ke.styleDefault&&(t=kt()),new Promise(((i,r)=>{if("fa"===n){const n=wt(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&Yt[t]&&Yt[t][e]){const n=Yt[t][e];return i(Jt(n))}en(e,t),i({...Qt,icon:ke.showMissingIcons&&e&&Ft("missingIconAbstract")||{}})}))}const nn=()=>{},rn=ke.measurePerformance&&d&&d.mark&&d.measure?d:{mark:nn,measure:nn},on='FA "6.6.0"',sn=e=>(rn.mark("".concat(on," ").concat(e," begins")),()=>an(e)),an=e=>{rn.mark("".concat(on," ").concat(e," ends")),rn.measure("".concat(on," ").concat(e),"".concat(on," ").concat(e," begins"),"".concat(on," ").concat(e," ends"))};var ln={begin:sn,end:an};const cn=()=>{};function un(e){const t=e.getAttribute?e.getAttribute(W):null;return"string"===typeof t}function hn(e){const t=e.getAttribute?e.getAttribute(X):null,n=e.getAttribute?e.getAttribute(K):null;return t&&n}function dn(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ke.replacementClass)}function pn(){if(!0===ke.autoReplaceSvg)return yn.replace;const e=yn[ke.autoReplaceSvg];return e||yn.replace}function fn(e){return u.createElementNS("http://www.w3.org/2000/svg",e)}function mn(e){return u.createElement(e)}function gn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?fn:mn)}=t;if("string"===typeof e)return u.createTextNode(e);const i=n(e.tag);Object.keys(e.attributes||[]).forEach((function(t){i.setAttribute(t,e.attributes[t])}));const r=e.children||[];return r.forEach((function(e){i.appendChild(gn(e,{ceFn:n}))})),i}function vn(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const yn={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(gn(e),t)})),null===t.getAttribute(W)&&ke.keepOriginalSource){let e=u.createComment(vn(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Pe(t).indexOf(ke.replacementClass))return yn.replace(e);const i=new RegExp("".concat(ke.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===ke.replacementClass||t.match(i)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const r=n.map((e=>Ye(e))).join("\n");t.setAttribute(W,""),t.innerHTML=r}};function _n(e){e()}function bn(e,t){const n="function"===typeof t?t:cn;if(0===e.length)n();else{let t=_n;ke.mutateApproach===J&&(t=c.requestAnimationFrame||_n),t((()=>{const t=pn(),i=ln.begin("mutate");e.map(t),i(),n()}))}}let xn=!1;function wn(){xn=!0}function Cn(){xn=!1}let kn=null;function Sn(e){if(!h)return;if(!ke.observeMutations)return;const{treeCallback:t=cn,nodeCallback:n=cn,pseudoElementsCallback:i=cn,observeMutationsRoot:r=u}=e;kn=new h((e=>{if(xn)return;const r=kt();De(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!un(e.addedNodes[0])&&(ke.searchPseudoElements&&i(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&ke.searchPseudoElements&&i(e.target.parentNode),"attributes"===e.type&&un(e.target)&&~me.indexOf(e.attributeName))if("class"===e.attributeName&&hn(e.target)){const{prefix:t,iconName:n}=Mt(Pe(e.target));e.target.setAttribute(X,t||r),n&&e.target.setAttribute(K,n)}else dn(e.target)&&n(e.target)}))})),p&&kn.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function En(){kn&&kn.disconnect()}function Tn(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),i=n[0],r=n.slice(1);return i&&r.length>0&&(e[i]=r.join(":").trim()),e}),{})),n}function Mn(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"";let r=Mt(Pe(e));return r.prefix||(r.prefix=kt()),t&&n&&(r.prefix=t,r.iconName=n),r.iconName&&r.prefix||(r.prefix&&i.length>0&&(r.iconName=bt(r.prefix,e.innerText)||_t(r.prefix,nt(e.innerText))),!r.iconName&&ke.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}function An(e){const t=De(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return ke.autoA11y&&(n?t["aria-labelledby"]="".concat(ke.replacementClass,"-title-").concat(i||Ie()):(t["aria-hidden"]="true",t["focusable"]="false")),t}function On(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Me,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function In(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:i,rest:r}=Mn(e),o=An(e),s=Lt("parseNodeAttributes",{},e);let a=t.styleParser?Tn(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Me,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:a,attributes:o},...s}}const{styles:Dn}=We;function Pn(e){const t="nest"===ke.autoReplaceSvg?In(e,{styleParser:!1}):In(e);return~t.extra.classes.indexOf(de)?Ft("generateLayersText",e,t):Ft("generateSvgReplacementMutation",e,t)}let zn=new Set;function Ln(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!p)return Promise.resolve();const n=u.documentElement.classList,i=e=>n.add("".concat(Y,"-").concat(e)),r=e=>n.remove("".concat(Y,"-").concat(e)),o=ke.autoFetchSvg?zn:te.map((e=>"fa-".concat(e))).concat(Object.keys(Dn));o.includes("fa")||o.push("fa");const s=[".".concat(de,":not([").concat(W,"])")].concat(o.map((e=>".".concat(e,":not([").concat(W,"])")))).join(", ");if(0===s.length)return Promise.resolve();let a=[];try{a=De(e.querySelectorAll(s))}catch(h){}if(!(a.length>0))return Promise.resolve();i("pending"),r("complete");const l=ln.begin("onTree"),c=a.reduce(((e,t)=>{try{const n=Pn(t);n&&e.push(n)}catch(h){ee||"MissingIcon"===h.name&&console.error(h)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{bn(n,(()=>{i("active"),i("complete"),r("pending"),"function"===typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function Bn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Pn(e).then((e=>{e&&bn([e],t)}))}function Fn(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=(t||{}).icon?t:Rt(t||{});let{mask:r}=n;return r&&(r=(r||{}).icon?r:Rt(r||{})),e(i,{...n,mask:r})}}te.map((e=>{zn.add("fa-".concat(e))})),Object.keys(re[m]).map(zn.add.bind(zn)),Object.keys(re[v]).map(zn.add.bind(zn)),Object.keys(re[y]).map(zn.add.bind(zn)),zn=[...zn];const Rn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Me,symbol:i=!1,mask:r=null,maskId:o=null,title:s=null,titleId:a=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:h,iconName:d,icon:p}=e;return Ht({type:"icon",...e},(()=>(Bt("beforeDOMElementCreation",{iconDefinition:e,params:t}),ke.autoA11y&&(s?c["aria-labelledby"]="".concat(ke.replacementClass,"-title-").concat(a||Ie()):(c["aria-hidden"]="true",c["focusable"]="false")),Zt({icons:{main:Jt(p),mask:r?Jt(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:h,iconName:d,transform:{...Me,...n},symbol:i,title:s,maskId:o,titleId:a,extra:{attributes:c,styles:u,classes:l}}))))};var $n={mixout(){return{icon:Fn(Rn)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Ln,e.nodeCallback=Bn,e}}},provides(e){e.i2svg=function(e){const{node:t=u,callback:n=()=>{}}=e;return Ln(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:i,titleId:r,prefix:o,transform:s,symbol:a,mask:l,maskId:c,extra:u}=t;return new Promise(((t,h)=>{Promise.all([tn(n,o),l.iconName?tn(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[h,d]=l;t([e,Zt({icons:{main:h,mask:d},prefix:o,iconName:n,transform:s,symbol:a,maskId:c,title:i,titleId:r,extra:u,watchable:!0})])})).catch(h)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:i,transform:r,styles:o}=e;const s=Be(o);let a;return s.length>0&&(n["style"]=s),Fe(r)&&(a=Ft("generateAbstractTransformGrouping",{main:i,transform:r,containerWidth:i.width,iconWidth:i.width})),t.push(a||i.icon),{children:t,attributes:n}}}},Nn={mixout(){return{layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Ht({type:"layer"},(()=>{Bt("beforeDOMElementCreation",{assembler:e,params:t});let i=[];return e((e=>{Array.isArray(e)?e.map((e=>{i=i.concat(e.abstract)})):i=i.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(ke.cssPrefix,"-layers"),...n].join(" ")},children:i}]}))}}}},jn={mixout(){return{counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:i=[],attributes:r={},styles:o={}}=t;return Ht({type:"counter",content:e},(()=>(Bt("beforeDOMElementCreation",{content:e,params:t}),Kt({content:e.toString(),title:n,extra:{attributes:r,styles:o,classes:["".concat(ke.cssPrefix,"-layers-counter"),...i]}}))))}}}},Vn={mixout(){return{text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Me,title:i=null,classes:r=[],attributes:o={},styles:s={}}=t;return Ht({type:"text",content:e},(()=>(Bt("beforeDOMElementCreation",{content:e,params:t}),Xt({content:e,transform:{...Me,...n},title:i,extra:{attributes:o,styles:s,classes:["".concat(ke.cssPrefix,"-layers-text"),...r]}}))))}}},provides(e){e.generateLayersText=function(e,t){const{title:n,transform:i,extra:r}=t;let o=null,s=null;if(f){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,s=n.height/t}return ke.autoA11y&&!n&&(r.attributes["aria-hidden"]="true"),Promise.resolve([e,Xt({content:e.innerHTML,width:o,height:s,transform:i,title:n,extra:r,watchable:!0})])}}};const Un=new RegExp('"',"ug"),qn=[1105920,1112319],Hn={FontAwesome:{normal:"fas",400:"fas"},...T,...E,...R},Wn=Object.keys(Hn).reduce(((e,t)=>(e[t.toLowerCase()]=Hn[t],e)),{}),Gn=Object.keys(Wn).reduce(((e,t)=>{const n=Wn[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function Zn(e){const t=e.replace(Un,""),n=it(t,0),i=n>=qn[0]&&n<=qn[1],r=2===t.length&&t[0]===t[1];return{value:nt(r?t[0]:t),isSecondary:i||r}}function Xn(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(t),r=isNaN(i)?"normal":i;return(Wn[n]||{})[r]||Gn[n]}function Kn(e,t){const n="".concat(Z).concat(t.replace(":","-"));return new Promise(((i,r)=>{if(null!==e.getAttribute(n))return i();const o=De(e.children),s=o.filter((e=>e.getAttribute(G)===t))[0],a=c.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),h=l.match(pe),d=a.getPropertyValue("font-weight"),p=a.getPropertyValue("content");if(s&&!h)return e.removeChild(s),i();if(h&&"none"!==p&&""!==p){const o=a.getPropertyValue("content");let c=Xn(l,d);const{value:p,isSecondary:f}=Zn(o),m=h[0].startsWith("FontAwesome");let g=_t(c,p),v=g;if(m){const e=Ct(p);e.iconName&&e.prefix&&(g=e.iconName,c=e.prefix)}if(!g||f||s&&s.getAttribute(X)===c&&s.getAttribute(K)===v)i();else{e.setAttribute(n,v),s&&e.removeChild(s);const o=On(),{extra:a}=o;a.attributes[G]=t,tn(g,c).then((r=>{const s=Zt({...o,icons:{main:r,mask:St()},prefix:c,iconName:v,extra:a,watchable:!0}),l=u.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=s.map((e=>Ye(e))).join("\n"),e.removeAttribute(n),i()})).catch(r)}}else i()}))}function Yn(e){return Promise.all([Kn(e,"::before"),Kn(e,"::after")])}function Jn(e){return e.parentNode!==document.head&&!~Q.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(G)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function Qn(e){if(p)return new Promise(((t,n)=>{const i=De(e.querySelectorAll("*")).filter(Jn).map(Yn),r=ln.begin("searchPseudoElements");wn(),Promise.all(i).then((()=>{r(),Cn(),t()})).catch((()=>{r(),Cn(),n()}))}))}var ei={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Qn,e}}},provides(e){e.pseudoElements2svg=function(e){const{node:t=u}=e;ke.searchPseudoElements&&Qn(t)}}};let ti=!1;var ni={mixout(){return{dom:{unwatch(){wn(),ti=!0}}}},hooks(){return{bootstrap(){Sn(Lt("mutationObserverCallbacks",{}))},noAuto(){En()},watch(e){const{observeMutationsRoot:t}=e;ti?Cn():Sn(Lt("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const ii=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),i=n[0];let r=n.slice(1).join("-");if(i&&"h"===r)return e.flipX=!0,e;if(i&&"v"===r)return e.flipY=!0,e;if(r=parseFloat(r),isNaN(r))return e;switch(i){case"grow":e.size=e.size+r;break;case"shrink":e.size=e.size-r;break;case"left":e.x=e.x-r;break;case"right":e.x=e.x+r;break;case"up":e.y=e.y-r;break;case"down":e.y=e.y+r;break;case"rotate":e.rotate=e.rotate+r;break}return e}),t)};var ri={mixout(){return{parse:{transform:e=>ii(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=ii(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:i,iconWidth:r}=e;const o={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(32*n.x,", ").concat(32*n.y,") "),a="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={transform:"".concat(s," ").concat(a," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")},h={outer:o,inner:c,path:u};return{tag:"g",attributes:{...h.outer},children:[{tag:"g",attributes:{...h.inner},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...h.path}}]}]}}}};const oi={x:0,y:0,width:"100%",height:"100%"};function si(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ai(e){return"g"===e.tag?e.children:[e]}var li={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),i=n?Mt(n.split(" ").map((e=>e.trim()))):St();return i.prefix||(i.prefix=kt()),e.mask=i,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:i,mask:r,maskId:o,transform:s}=e;const{width:a,icon:l}=i,{width:c,icon:u}=r,h=Re({transform:s,containerWidth:c,iconWidth:a}),d={tag:"rect",attributes:{...oi,fill:"white"}},p=l.children?{children:l.children.map(si)}:{},f={tag:"g",attributes:{...h.inner},children:[si({tag:l.tag,attributes:{...l.attributes,...h.path},...p})]},m={tag:"g",attributes:{...h.outer},children:[f]},g="mask-".concat(o||Ie()),v="clip-".concat(o||Ie()),y={tag:"mask",attributes:{...oi,id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[d,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:ai(u)},y]};return t.push(_,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(g,")"),...oi}}),{children:t,attributes:n}}}},ci={provides(e){let t=!1;c.matchMedia&&(t=c.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:{...n,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const r={...i,attributeName:"opacity"},o={tag:"circle",attributes:{...n,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...i,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...r,values:"1;0;1;1;0;1;"}}),e.push(o),e.push({tag:"path",attributes:{...n,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...r,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...n,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...r,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},ui={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),i=null!==n&&(""===n||n);return e["symbol"]=i,e}}}},hi=[qe,$n,Nn,jn,Vn,ei,ni,ri,li,ci,ui];zt(hi,{mixoutsTo:Ut});Ut.noAuto;const di=Ut.config,pi=Ut.library,fi=(Ut.dom,Ut.parse),mi=(Ut.findIconDefinition,Ut.toHtml,Ut.icon),gi=(Ut.layer,Ut.text),vi=(Ut.counter,{prefix:"fas",iconName:"volleyball",icon:[512,512,[127952,"volleyball-ball"],"f45f","M511.8 267.4c-26.1 8.7-53.4 13.8-81 15.1c9.2-105.3-31.5-204.2-103.2-272.4C434.1 41.1 512 139.5 512 256c0 3.8-.1 7.6-.2 11.4zm-3.9 34.7c-5.8 32-17.6 62-34.2 88.7c-97.5 48.5-217.7 42.6-311.9-24.5c23.7-36.2 55.4-67.7 94.5-91.8c79.9 43.2 170.1 50.8 251.6 27.6zm-236-55.5c-2.5-90.9-41.1-172.7-101.9-231.7C196.8 5.2 225.8 0 256 0c2.7 0 5.3 0 7.9 .1c90.8 60.2 145.7 167.2 134.7 282.3c-43.1-2.4-86.4-14.1-126.8-35.9zM138 28.8c20.6 18.3 38.7 39.4 53.7 62.6C95.9 136.1 30.6 220.8 7.3 316.9C2.5 297.4 0 277 0 256C0 157.2 56 71.5 138 28.8zm69.6 90.5c19.5 38.6 31 81.9 32.3 127.7C162.5 294.6 110.9 368.9 90.2 451C66 430.4 45.6 405.4 30.4 377.2c6.7-108.7 71.9-209.9 177.1-257.9zM256 512c-50.7 0-98-14.7-137.8-40.2c5.6-27 14.8-53.1 27.4-77.7C232.2 454.6 338.1 468.8 433 441c-46 44-108.3 71-177 71z"]}),yi={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},_i={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},bi=_i,xi={prefix:"fas",iconName:"share-nodes",icon:[448,512,["share-alt"],"f1e0","M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z"]},wi={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Ci={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},ki={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},Si={prefix:"fas",iconName:"user-group",icon:[640,512,[128101,"user-friends"],"f500","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM609.3 512l-137.8 0c5.4-9.4 8.6-20.3 8.6-32l0-8c0-60.7-27.1-115.2-69.8-151.8c2.4-.1 4.7-.2 7.1-.2l61.4 0C567.8 320 640 392.2 640 481.3c0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9C372.4 196.5 384 163.6 384 128c0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z"]},Ei=Si,Ti={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152l0 270.8c0 9.8-6 18.6-15.1 22.3L416 503l0-302.6zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6l0 251.4L32.9 502.7C17.1 509 0 497.4 0 480.4L0 209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77l0 249.3L192 449.4 192 255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Mi=Ti,Ai={prefix:"fas",iconName:"euro-sign",icon:[320,512,[8364,"eur","euro"],"f153","M48.1 240c-.1 2.7-.1 5.3-.1 8l0 16c0 2.7 0 5.3 .1 8L32 272c-17.7 0-32 14.3-32 32s14.3 32 32 32l28.3 0C89.9 419.9 170 480 264 480l24 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-24 0c-57.9 0-108.2-32.4-133.9-80L256 336c17.7 0 32-14.3 32-32s-14.3-32-32-32l-143.8 0c-.1-2.6-.2-5.3-.2-8l0-16c0-2.7 .1-5.4 .2-8L256 240c17.7 0 32-14.3 32-32s-14.3-32-32-32l-125.9 0c25.7-47.6 76-80 133.9-80l24 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-24 0C170 32 89.9 92.1 60.3 176L32 176c-17.7 0-32 14.3-32 32s14.3 32 32 32l16.1 0z"]},Oi={prefix:"fas",iconName:"universal-access",icon:[512,512,[],"f29a","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm161.5-86.1c-12.2-5.2-26.3 .4-31.5 12.6s.4 26.3 12.6 31.5l11.9 5.1c17.3 7.4 35.2 12.9 53.6 16.3l0 50.1c0 4.3-.7 8.6-2.1 12.6l-28.7 86.1c-4.2 12.6 2.6 26.2 15.2 30.4s26.2-2.6 30.4-15.2l24.4-73.2c1.3-3.8 4.8-6.4 8.8-6.4s7.6 2.6 8.8 6.4l24.4 73.2c4.2 12.6 17.8 19.4 30.4 15.2s19.4-17.8 15.2-30.4l-28.7-86.1c-1.4-4.1-2.1-8.3-2.1-12.6l0-50.1c18.4-3.5 36.3-8.9 53.6-16.3l11.9-5.1c12.2-5.2 17.8-19.3 12.6-31.5s-19.3-17.8-31.5-12.6L338.7 175c-26.1 11.2-54.2 17-82.7 17s-56.5-5.8-82.7-17l-11.9-5.1zM256 160a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Ii={prefix:"fas",iconName:"language",icon:[640,512,[],"f1ab","M0 128C0 92.7 28.7 64 64 64l192 0 48 0 16 0 256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64l-256 0-16 0-48 0L64 448c-35.3 0-64-28.7-64-64L0 128zm320 0l0 256 256 0 0-256-256 0zM178.3 175.9c-3.2-7.2-10.4-11.9-18.3-11.9s-15.1 4.7-18.3 11.9l-64 144c-4.5 10.1 .1 21.9 10.2 26.4s21.9-.1 26.4-10.2l8.9-20.1 73.6 0 8.9 20.1c4.5 10.1 16.3 14.6 26.4 10.2s14.6-16.3 10.2-26.4l-64-144zM160 233.2L179 276l-38 0 19-42.8zM448 164c11 0 20 9 20 20l0 4 44 0 16 0c11 0 20 9 20 20s-9 20-20 20l-2 0-1.6 4.5c-8.9 24.4-22.4 46.6-39.6 65.4c.9 .6 1.8 1.1 2.7 1.6l18.9 11.3c9.5 5.7 12.5 18 6.9 27.4s-18 12.5-27.4 6.9l-18.9-11.3c-4.5-2.7-8.8-5.5-13.1-8.5c-10.6 7.5-21.9 14-34 19.4l-3.6 1.6c-10.1 4.5-21.9-.1-26.4-10.2s.1-21.9 10.2-26.4l3.6-1.6c6.4-2.9 12.6-6.1 18.5-9.8l-12.2-12.2c-7.8-7.8-7.8-20.5 0-28.3s20.5-7.8 28.3 0l14.6 14.6 .5 .5c12.4-13.1 22.5-28.3 29.8-45L448 228l-72 0c-11 0-20-9-20-20s9-20 20-20l52 0 0-4c0-11 9-20 20-20z"]},Di={prefix:"fas",iconName:"hand-holding-heart",icon:[576,512,[],"f4be","M163.9 136.9c-29.4-29.8-29.4-78.2 0-108s77-29.8 106.4 0l17.7 18 17.7-18c29.4-29.8 77-29.8 106.4 0s29.4 78.2 0 108L310.5 240.1c-6.2 6.3-14.3 9.4-22.5 9.4s-16.3-3.1-22.5-9.4L163.9 136.9zM568.2 336.3c13.1 17.8 9.3 42.8-8.5 55.9L433.1 485.5c-23.4 17.2-51.6 26.5-80.7 26.5L192 512 32 512c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l36.8 0 44.9-36c22.7-18.2 50.9-28 80-28l78.3 0 16 0 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0-16 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l120.6 0 119.7-88.2c17.8-13.1 42.8-9.3 55.9 8.5zM193.6 384c0 0 0 0 0 0l-.9 0c.3 0 .6 0 .9 0z"]},Pi={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155c-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8c6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96c0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8C59.8 473 0 402.5 0 352c0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9c-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},zi={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},Li={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},Bi={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},Fi={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},Ri=Fi,$i={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},Ni={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},ji=Ni,Vi={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Ui={prefix:"fas",iconName:"list-check",icon:[512,512,["tasks"],"f0ae","M152.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 113C-2.3 103.6-2.3 88.4 7 79s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM224 96c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zM160 416c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32zM48 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},qi={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},Hi={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Wi=Hi,Gi={prefix:"fas",iconName:"map",icon:[576,512,[128506,62072],"f279","M384 476.1L192 421.2l0-385.3L384 90.8l0 385.3zm32-1.2l0-386.5L543.1 37.5c15.8-6.3 32.9 5.3 32.9 22.3l0 334.8c0 9.8-6 18.6-15.1 22.3L416 474.8zM15.1 95.1L160 37.2l0 386.5L32.9 474.5C17.1 480.8 0 469.2 0 452.2L0 117.4c0-9.8 6-18.6 15.1-22.3z"]},Zi={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Xi={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Ki={prefix:"fas",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M96 32l0 32L48 64C21.5 64 0 85.5 0 112l0 48 448 0 0-48c0-26.5-21.5-48-48-48l-48 0 0-32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 32L160 64l0-32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192L0 192 0 464c0 26.5 21.5 48 48 48l352 0c26.5 0 48-21.5 48-48l0-272z"]},Yi={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z"]},Ji={prefix:"fas",iconName:"database",icon:[448,512,[],"f1c0","M448 80l0 48c0 44.2-100.3 80-224 80S0 172.2 0 128L0 80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6L448 288c0 44.2-100.3 80-224 80S0 332.2 0 288L0 186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6l0 85.9c0 44.2-100.3 80-224 80S0 476.2 0 432l0-85.9z"]},Qi={prefix:"fas",iconName:"print",icon:[512,512,[128424,128438,9113],"f02f","M128 0C92.7 0 64 28.7 64 64l0 96 64 0 0-96 226.7 0L384 93.3l0 66.7 64 0 0-66.7c0-17-6.7-33.3-18.7-45.3L400 18.7C388 6.7 371.7 0 354.7 0L128 0zM384 352l0 32 0 64-256 0 0-64 0-16 0-16 256 0zm64 32l32 0c17.7 0 32-14.3 32-32l0-96c0-35.3-28.7-64-64-64L64 192c-35.3 0-64 28.7-64 64l0 96c0 17.7 14.3 32 32 32l32 0 0 64c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-64zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nr(e){return nr="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},nr(e)}function ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rr(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function or(e,t){if(null==e)return{};var n,i,r=rr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sr(e){return ar(e)||lr(e)||cr(e)||hr()}function ar(e){if(Array.isArray(e))return ur(e)}function lr(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function cr(e,t){if(e){if("string"===typeof e)return ur(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&e.constructor.name,"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ur(e,t):void 0}}function ur(e,t){(null==t||t>e.length)&&e.length;for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function hr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var dr="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:"undefined"!==typeof self?self:{},pr={exports:{}};(function(e){(function(t){var n=function(e,t,i){if(!c(t)||h(t)||d(t)||p(t)||l(t))return t;var r,o=0,s=0;if(u(t))for(r=[],s=t.length;o<s;o++)r.push(n(e,t[o],i));else for(var a in r={},t)Object.prototype.hasOwnProperty.call(t,a)&&(r[e(a,i)]=n(e,t[a],i));return r},i=function(e,t){t=t||{};var n=t.separator||"_",i=t.split||/(?=[A-Z])/;return e.split(i).join(n)},r=function(e){return f(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),e.substr(0,1).toLowerCase()+e.substr(1))},o=function(e){var t=r(e);return t.substr(0,1).toUpperCase()+t.substr(1)},s=function(e,t){return i(e,t).toLowerCase()},a=Object.prototype.toString,l=function(e){return"function"===typeof e},c=function(e){return e===Object(e)},u=function(e){return"[object Array]"==a.call(e)},h=function(e){return"[object Date]"==a.call(e)},d=function(e){return"[object RegExp]"==a.call(e)},p=function(e){return"[object Boolean]"==a.call(e)},f=function(e){return e-=0,e===e},m=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!==typeof n?e:function(t,i){return n(t,e,i)}},g={camelize:r,decamelize:s,pascalize:o,depascalize:s,camelizeKeys:function(e,t){return n(m(r,t),e)},decamelizeKeys:function(e,t){return n(m(s,t),e,t)},pascalizeKeys:function(e,t){return n(m(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g})(dr)})(pr);var fr=pr.exports,mr=["class","style","attrs"];function gr(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n=t.indexOf(":"),i=fr.camelize(t.slice(0,n)),r=t.slice(n+1).trim();return e[i]=r,e}),{})}function vr(e){return e.split(/\s+/).reduce((function(e,t){return e[t]=!0,e}),{})}function yr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return Array.isArray(t)?e=e.concat(t):e.push(t),e}),[])}function _r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=(t.children||[]).map(_r.bind(null,e)),o=Object.keys(t.attributes||{}).reduce((function(e,n){var i=t.attributes[n];switch(n){case"class":e["class"]=vr(i);break;case"style":e["style"]=gr(i);break;default:e.attrs[n]=i}return e}),{class:{},style:{},attrs:{}}),s=i.class,a=void 0===s?{}:s,l=i.style,c=void 0===l?{}:l,u=i.attrs,h=void 0===u?{}:u,d=or(i,mr);return"string"===typeof t?t:e(t.tag,tr(tr({class:yr(o.class,a),style:tr(tr({},o.style),c),attrs:tr(tr({},o.attrs),h)},d),{},{props:n}),r)}var br=!1;try{br=!0}catch(Ix){}function xr(){var e;!br&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}function wr(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ir({},e,t):{}}function Cr(e){var t,n=(t={"fa-spin":e.spin,"fa-spin-pulse":e.spinPulse,"fa-spin-reverse":e.spinReverse,"fa-pulse":e.pulse,"fa-beat":e.beat,"fa-fade":e.fade,"fa-flash":e.flash,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":!0===e.flip,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip},ir(t,"fa-".concat(e.size),null!==e.size),ir(t,"fa-rotate-".concat(e.rotation),null!==e.rotation),ir(t,"fa-pull-".concat(e.pull),null!==e.pull),ir(t,"fa-swap-opacity",e.swapOpacity),ir(t,"fa-bounce",e.bounce),ir(t,"fa-shake",e.shake),ir(t,"fa-beat-fade",e.beatFade),t);return Object.keys(n).map((function(e){return n[e]?e:null})).filter((function(e){return e}))}function kr(e,t){var n=0===(e||"").length?[]:[e];return n.concat(t).join(" ")}function Sr(e){return e&&"object"===nr(e)&&e.prefix&&e.iconName&&e.icon?e:fi.icon?fi.icon(e):null===e?null:"object"===nr(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}var Er={name:"FontAwesomeIcon",functional:!0,props:{beat:{type:Boolean,default:!1},border:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(e){return[!0,!1,"horizontal","vertical","both"].indexOf(e)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(e){return["right","left"].indexOf(e)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(e){return[90,180,270].indexOf(parseInt(e,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(e){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(e)>-1}},spin:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1}},render:function(e,t){var n=t.props,i=n.icon,r=n.mask,o=n.symbol,s=n.title,a=Sr(i),l=wr("classes",Cr(n)),c=wr("transform","string"===typeof n.transform?fi.transform(n.transform):n.transform),u=wr("mask",Sr(r)),h=mi(a,tr(tr(tr(tr({},l),c),u),{},{symbol:o,title:s}));if(!h)return xr("Could not find one or more icon(s)",a,u);var d=h.abstract,p=_r.bind(null,e);return p(d[0],{},t.data)}},Tr=(Boolean,Boolean,i(3414)),Mr=i.n(Tr),Ar=i(2955),Or=i(2638),Ir=i.n(Or);function Dr(e,t,n="en"){Lr(n),e=e.replace(" ","T");const i=Date.parse(e);if(isNaN(i))throw TypeError("Invalid date");return Ir()(i,t)}function Pr(e,t=1){e=e.toString();const n=/\./g;let i,r="",o=1,s=0;i=n.exec(e);while(i){if(o>t)break;r+=e.substring(s,i.index+1),s=i.index+1,o++,i=n.exec(e)}return r||e}function zr(e){if(e=e.toString(),e.includes("@"))return"mailto:"+e;const t=e.replace(/\D/g,""),n=/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/g;return n.exec(t)?"tel:"+t:e}function Lr(e){const t={de:{dayNames:["So","Mo","Di","Mi","Do","Fr","Sa","Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],monthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez","Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],timeNames:["a","p","am","pm","A","P","AM","PM"]},en:{dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]}};let n=t.en;t[e]&&(n=t[e]),Or.i18n.dayNames=n.dayNames,Or.i18n.monthNames=n.monthNames}class Br{install(e,t){e.filter("formatDateTime",((e,t)=>Dr(e,t))),e.filter("sliceAfterSentence",((e,t)=>Pr(e,t))),e.filter("deriveURIScheme",(e=>zr(e)))}}var Fr=new Br,Rr="top",$r="bottom",Nr="right",jr="left",Vr="auto",Ur=[Rr,$r,Nr,jr],qr="start",Hr="end",Wr="clippingParents",Gr="viewport",Zr="popper",Xr="reference",Kr=Ur.reduce((function(e,t){return e.concat([t+"-"+qr,t+"-"+Hr])}),[]),Yr=[].concat(Ur,[Vr]).reduce((function(e,t){return e.concat([t,t+"-"+qr,t+"-"+Hr])}),[]),Jr="beforeRead",Qr="read",eo="afterRead",to="beforeMain",no="main",io="afterMain",ro="beforeWrite",oo="write",so="afterWrite",ao=[Jr,Qr,eo,to,no,io,ro,oo,so];function lo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function co(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function uo(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ho(e){if("undefined"===typeof ShadowRoot)return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var po=Math.max,fo=Math.min,mo=Math.round;function go(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function vo(){return!/^((?!chrome|android).)*safari/i.test(go())}function yo(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&uo(e)&&(r=e.offsetWidth>0&&mo(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&mo(i.height)/e.offsetHeight||1);var s=co(e)?lo(e):window,a=s.visualViewport,l=!vo()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,h=i.width/r,d=i.height/o;return{width:h,height:d,top:u,right:c+h,bottom:u+d,left:c,x:c,y:u}}function _o(e){var t=lo(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function bo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xo(e){return e!==lo(e)&&uo(e)?bo(e):_o(e)}function wo(e){return e?(e.nodeName||"").toLowerCase():null}function Co(e){return((co(e)?e.ownerDocument:e.document)||window.document).documentElement}function ko(e){return yo(Co(e)).left+_o(e).scrollLeft}function So(e){return lo(e).getComputedStyle(e)}function Eo(e){var t=So(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function To(e){var t=e.getBoundingClientRect(),n=mo(t.width)/e.offsetWidth||1,i=mo(t.height)/e.offsetHeight||1;return 1!==n||1!==i}function Mo(e,t,n){void 0===n&&(n=!1);var i=uo(t),r=uo(t)&&To(t),o=Co(t),s=yo(e,r,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==wo(t)||Eo(o))&&(a=xo(t)),uo(t)?(l=yo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=ko(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Ao(e){var t=yo(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Oo(e){return"html"===wo(e)?e:e.assignedSlot||e.parentNode||(ho(e)?e.host:null)||Co(e)}function Io(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:uo(e)&&Eo(e)?e:Io(Oo(e))}function Do(e,t){var n;void 0===t&&(t=[]);var i=Io(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=lo(i),s=r?[o].concat(o.visualViewport||[],Eo(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(Do(Oo(s)))}function Po(e){return["table","td","th"].indexOf(wo(e))>=0}function zo(e){return uo(e)&&"fixed"!==So(e).position?e.offsetParent:null}function Lo(e){var t=/firefox/i.test(go()),n=/Trident/i.test(go());if(n&&uo(e)){var i=So(e);if("fixed"===i.position)return null}var r=Oo(e);ho(r)&&(r=r.host);while(uo(r)&&["html","body"].indexOf(wo(r))<0){var o=So(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}function Bo(e){var t=lo(e),n=zo(e);while(n&&Po(n)&&"static"===So(n).position)n=zo(n);return n&&("html"===wo(n)||"body"===wo(n)&&"static"===So(n).position)?t:n||Lo(e)||t}function Fo(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name);var o=[].concat(e.requires||[],e.requiresIfExists||[]);o.forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}function Ro(e){var t=Fo(e);return ao.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function $o(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function No(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var jo={placement:"bottom",modifiers:[],strategy:"absolute"};function Vo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function Uo(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?jo:r;return function(e,t,n){void 0===n&&(n=o);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},jo,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:r,setOptions:function(n){var s="function"===typeof n?n(r.options):n;u(),r.options=Object.assign({},o,r.options,s),r.scrollParents={reference:co(e)?Do(e):e.contextElement?Do(e.contextElement):[],popper:Do(t)};var a=Ro(No([].concat(i,r.options.modifiers)));return r.orderedModifiers=a.filter((function(e){return e.enabled})),c(),l.update()},forceUpdate:function(){if(!a){var e=r.elements,t=e.reference,n=e.popper;if(Vo(t,n)){r.rects={reference:Mo(t,Bo(n),"fixed"===r.options.strategy),popper:Ao(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<r.orderedModifiers.length;i++)if(!0!==r.reset){var o=r.orderedModifiers[i],s=o.fn,c=o.options,u=void 0===c?{}:c,h=o.name;"function"===typeof s&&(r=s({state:r,options:u,name:h,instance:l})||r)}else r.reset=!1,i=-1}}},update:$o((function(){return new Promise((function(e){l.forceUpdate(),e(r)}))})),destroy:function(){u(),a=!0}};if(!Vo(e,t))return l;function c(){r.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var a=o({state:r,name:t,instance:l,options:i}),c=function(){};s.push(a||c)}}))}function u(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var qo={passive:!0};function Ho(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,l=lo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,qo)})),a&&l.addEventListener("resize",n.update,qo),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,qo)})),a&&l.removeEventListener("resize",n.update,qo)}}var Wo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ho,data:{}};function Go(e){return e.split("-")[0]}function Zo(e){return e.split("-")[1]}function Xo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ko(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?Go(r):null,s=r?Zo(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case Rr:t={x:a,y:n.y-i.height};break;case $r:t={x:a,y:n.y+n.height};break;case Nr:t={x:n.x+n.width,y:l};break;case jr:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Xo(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case qr:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Hr:t[c]=t[c]+(n[u]/2-i[u]/2);break;default:}}return t}function Yo(e){var t=e.state,n=e.name;t.modifiersData[n]=Ko({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Jo={name:"popperOffsets",enabled:!0,phase:"read",fn:Yo,data:{}},Qo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function es(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:mo(n*r)/r||0,y:mo(i*r)/r||0}}function ts(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=s.x,p=void 0===d?0:d,f=s.y,m=void 0===f?0:f,g="function"===typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=jr,b=Rr,x=window;if(c){var w=Bo(n),C="clientHeight",k="clientWidth";if(w===lo(n)&&(w=Co(n),"static"!==So(w).position&&"absolute"===a&&(C="scrollHeight",k="scrollWidth")),r===Rr||(r===jr||r===Nr)&&o===Hr){b=$r;var S=h&&w===x&&x.visualViewport?x.visualViewport.height:w[C];m-=S-i.height,m*=l?1:-1}if(r===jr||(r===Rr||r===$r)&&o===Hr){_=Nr;var E=h&&w===x&&x.visualViewport?x.visualViewport.width:w[k];p-=E-i.width,p*=l?1:-1}}var T,M=Object.assign({position:a},c&&Qo),A=!0===u?es({x:p,y:m},lo(n)):{x:p,y:m};return p=A.x,m=A.y,l?Object.assign({},M,(T={},T[b]=y?"0":"",T[_]=v?"0":"",T.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",T)):Object.assign({},M,(t={},t[b]=y?m+"px":"",t[_]=v?p+"px":"",t.transform="",t))}function ns(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:Go(t.placement),variation:Zo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ts(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ts(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var is={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ns,data:{}};function rs(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];uo(r)&&wo(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))}function os(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),s=o.reduce((function(e,t){return e[t]="",e}),{});uo(i)&&wo(i)&&(Object.assign(i.style,s),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}}var ss={name:"applyStyles",enabled:!0,phase:"write",fn:rs,effect:os,requires:["computeStyles"]};function as(e,t,n){var i=Go(e),r=[jr,Rr].indexOf(i)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[jr,Nr].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}function ls(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=Yr.reduce((function(e,n){return e[n]=as(n,t.rects,o),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}var cs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ls},us={left:"right",right:"left",bottom:"top",top:"bottom"};function hs(e){return e.replace(/left|right|bottom|top/g,(function(e){return us[e]}))}var ds={start:"end",end:"start"};function ps(e){return e.replace(/start|end/g,(function(e){return ds[e]}))}function fs(e,t){var n=lo(e),i=Co(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=vo();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+ko(e),y:l}}function ms(e){var t,n=Co(e),i=_o(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=po(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=po(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+ko(e),l=-i.scrollTop;return"rtl"===So(r||n).direction&&(a+=po(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function gs(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ho(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function vs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ys(e,t){var n=yo(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function _s(e,t,n){return t===Gr?vs(fs(e,n)):co(t)?ys(t,n):vs(ms(Co(e)))}function bs(e){var t=Do(Oo(e)),n=["absolute","fixed"].indexOf(So(e).position)>=0,i=n&&uo(e)?Bo(e):e;return co(i)?t.filter((function(e){return co(e)&&gs(e,i)&&"body"!==wo(e)})):[]}function xs(e,t,n,i){var r="clippingParents"===t?bs(e):[].concat(t),o=[].concat(r,[n]),s=o[0],a=o.reduce((function(t,n){var r=_s(e,n,i);return t.top=po(r.top,t.top),t.right=fo(r.right,t.right),t.bottom=fo(r.bottom,t.bottom),t.left=po(r.left,t.left),t}),_s(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ws(){return{top:0,right:0,bottom:0,left:0}}function Cs(e){return Object.assign({},ws(),e)}function ks(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ss(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.strategy,s=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?Wr:a,c=n.rootBoundary,u=void 0===c?Gr:c,h=n.elementContext,d=void 0===h?Zr:h,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=Cs("number"!==typeof g?g:ks(g,Ur)),y=d===Zr?Xr:Zr,_=e.rects.popper,b=e.elements[f?y:d],x=xs(co(b)?b:b.contextElement||Co(e.elements.popper),l,u,s),w=yo(e.elements.reference),C=Ko({reference:w,element:_,strategy:"absolute",placement:r}),k=vs(Object.assign({},_,C)),S=d===Zr?k:w,E={top:x.top-S.top+v.top,bottom:S.bottom-x.bottom+v.bottom,left:x.left-S.left+v.left,right:S.right-x.right+v.right},T=e.modifiersData.offset;if(d===Zr&&T){var M=T[r];Object.keys(E).forEach((function(e){var t=[Nr,$r].indexOf(e)>=0?1:-1,n=[Rr,$r].indexOf(e)>=0?"y":"x";E[e]+=M[n]*t}))}return E}function Es(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Yr:l,u=Zo(i),h=u?a?Kr:Kr.filter((function(e){return Zo(e)===u})):Ur,d=h.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=h);var p=d.reduce((function(t,n){return t[n]=Ss(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[Go(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}function Ts(e){if(Go(e)===Vr)return[];var t=hs(e);return[ps(e),t,ps(t)]}function Ms(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Go(g),y=v===g,_=l||(y||!f?[hs(g)]:Ts(g)),b=[g].concat(_).reduce((function(e,n){return e.concat(Go(n)===Vr?Es(t,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,C=new Map,k=!0,S=b[0],E=0;E<b.length;E++){var T=b[E],M=Go(T),A=Zo(T)===qr,O=[Rr,$r].indexOf(M)>=0,I=O?"width":"height",D=Ss(t,{placement:T,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),P=O?A?Nr:jr:A?$r:Rr;x[I]>w[I]&&(P=hs(P));var z=hs(P),L=[];if(o&&L.push(D[M]<=0),a&&L.push(D[P]<=0,D[z]<=0),L.every((function(e){return e}))){S=T,k=!1;break}C.set(T,L)}if(k)for(var B=f?3:1,F=function(e){var t=b.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},R=B;R>0;R--){var $=F(R);if("break"===$)break}t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}}var As={name:"flip",enabled:!0,phase:"main",fn:Ms,requiresIfExists:["offset"],data:{_skip:!1}};function Os(e){return"x"===e?"y":"x"}function Is(e,t,n){return po(e,fo(t,n))}function Ds(e,t,n){var i=Is(e,t,n);return i>n?n:i}function Ps(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,p=void 0===d||d,f=n.tetherOffset,m=void 0===f?0:f,g=Ss(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),v=Go(t.placement),y=Zo(t.placement),_=!y,b=Xo(v),x=Os(b),w=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,S="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"===typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(w){if(o){var A,O="y"===b?Rr:jr,I="y"===b?$r:Nr,D="y"===b?"height":"width",P=w[b],z=P+g[O],L=P-g[I],B=p?-k[D]/2:0,F=y===qr?C[D]:k[D],R=y===qr?-k[D]:-C[D],$=t.elements.arrow,N=p&&$?Ao($):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ws(),V=j[O],U=j[I],q=Is(0,C[D],N[D]),H=_?C[D]/2-B-q-V-E.mainAxis:F-q-V-E.mainAxis,W=_?-C[D]/2+B+q+U+E.mainAxis:R+q+U+E.mainAxis,G=t.elements.arrow&&Bo(t.elements.arrow),Z=G?"y"===b?G.clientTop||0:G.clientLeft||0:0,X=null!=(A=null==T?void 0:T[b])?A:0,K=P+H-X-Z,Y=P+W-X,J=Is(p?fo(z,K):z,P,p?po(L,Y):L);w[b]=J,M[b]=J-P}if(a){var Q,ee="x"===b?Rr:jr,te="x"===b?$r:Nr,ne=w[x],ie="y"===x?"height":"width",re=ne+g[ee],oe=ne-g[te],se=-1!==[Rr,jr].indexOf(v),ae=null!=(Q=null==T?void 0:T[x])?Q:0,le=se?re:ne-C[ie]-k[ie]-ae+E.altAxis,ce=se?ne+C[ie]+k[ie]-ae-E.altAxis:oe,ue=p&&se?Ds(le,ne,ce):Is(p?le:re,ne,p?ce:oe);w[x]=ue,M[x]=ue-ne}t.modifiersData[i]=M}}var zs={name:"preventOverflow",enabled:!0,phase:"main",fn:Ps,requiresIfExists:["offset"]},Ls=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,Cs("number"!==typeof e?e:ks(e,Ur))};function Bs(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Go(n.placement),l=Xo(a),c=[jr,Nr].indexOf(a)>=0,u=c?"height":"width";if(o&&s){var h=Ls(r.padding,n),d=Ao(o),p="y"===l?Rr:jr,f="y"===l?$r:Nr,m=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],v=Bo(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,_=m/2-g/2,b=h[p],x=y-d[u]-h[f],w=y/2-d[u]/2+_,C=Is(b,w,x),k=l;n.modifiersData[i]=(t={},t[k]=C,t.centerOffset=C-w,t)}}function Fs(e){var t=e.state,n=e.options,i=n.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r),r))&&gs(t.elements.popper,r)&&(t.elements.arrow=r)}var Rs={name:"arrow",enabled:!0,phase:"main",fn:Bs,effect:Fs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $s(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ns(e){return[Rr,Nr,$r,jr].some((function(t){return e[t]>=0}))}function js(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ss(t,{elementContext:"reference"}),a=Ss(t,{altBoundary:!0}),l=$s(s,i),c=$s(a,r,o),u=Ns(l),h=Ns(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}var Vs,Us={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:js},qs=[Wo,Jo,is,ss,cs,As,zs,Rs,Us],Hs=Uo({defaultModifiers:qs});function Ws(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}function Gs(){Gs.init||(Gs.init=!0,Vs=-1!==Ws())}var Zs={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;Gs(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()}));var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Vs&&this.$el.appendChild(t),t.data="about:blank",Vs||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!Vs&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function Xs(e,t,n,i,r,o,s,a,l,c){"boolean"!==typeof s&&(l=a,a=s,s=!1);var u,h="function"===typeof n?n.options:n;if(e&&e.render&&(h.render=e.render,h.staticRenderFns=e.staticRenderFns,h._compiled=!0,r&&(h.functional=!0)),i&&(h._scopeId=i),o?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},h._ssrRegister=u):t&&(u=s?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),u)if(h.functional){var d=h.render;h.render=function(e,t){return u.call(t),d(e,t)}}else{var p=h.beforeCreate;h.beforeCreate=p?[].concat(p,u):[u]}return n}var Ks=Zs,Ys=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},Js=[];Ys._withStripped=!0;var Qs=void 0,ea="data-v-8859cc6c",ta=void 0,na=!1,ia=Xs({render:Ys,staticRenderFns:Js},Qs,Ks,ea,na,ta,!1,void 0,void 0,void 0);function ra(e){e.component("resize-observer",ia),e.component("ResizeObserver",ia)}var oa={version:"1.0.1",install:ra},sa=null;"undefined"!==typeof window?sa=window.Vue:"undefined"!==typeof i.g&&(sa=i.g.Vue),sa&&sa.use(oa);var aa=i(9274),la=i.n(aa);function ca(e){return ca="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},ca(e)}function ua(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function ha(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function s(e){ua(o,i,r,s,a,"next",e)}function a(e){ua(o,i,r,s,a,"throw",e)}s(void 0)}))}}function da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach((function(t){da(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ma(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function ga(e,t){if(null==e)return{};var n,i,r=ma(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function va(e,t){return ba(e)||wa(e,t)||Ca(e,t)||Ea()}function ya(e){return _a(e)||xa(e)||Ca(e)||Sa()}function _a(e){if(Array.isArray(e))return ka(e)}function ba(e){if(Array.isArray(e))return e}function xa(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function wa(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(r)throw o}}return n}}function Ca(e,t){if(e){if("string"===typeof e)return ka(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Sa(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ea(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ta(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Ca(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Ma(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&("object"===ca(t[n])&&e[n]?Ma(e[n],t[n]):e[n]=t[n])}var Aa={disabled:!1,offset:[0,5],container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",modifiers:[],popperOptions:{},themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:function(e){return[].concat(ya(e),["click"])},delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Oa(e,t){var n,i=Aa.themes[e]||{};do{n=i[t],"undefined"===typeof n?i.$extend?i=Aa.themes[i.$extend]||{}:(i=null,n=Aa[t]):i=null}while(i);return n}function Ia(e){var t=[e],n=Aa.themes[e]||{};do{n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Aa.themes[n.$extend]||{}):n=null}while(n);return t.map((function(e){return"v-popper--theme-".concat(e)}))}var Da=!1;if("undefined"!==typeof window){Da=!1;try{var Pa=Object.defineProperty({},"passive",{get:function(){Da=!0}});window.addEventListener("test",null,Pa)}catch(Ix){}}var za=!1;function La(e,t,n){var i=e.find((function(e){return e.name===t}));for(var r in i||(i={name:t},e.push(i)),n)"options"===r?(i.options||(i.options={}),Object.assign(i.options,n.options)):i[r]=n[r]}"undefined"!==typeof window&&"undefined"!==typeof navigator&&(za=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var Ba={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Fa={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Ra(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}var $a=[],Na=null,ja=function(){};"undefined"!==typeof window&&(ja=window.Element);var Va=function(){return{name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},arrowNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:function(){return Oa(this.theme,"disabled")}},placement:{type:String,default:function(){return Oa(this.theme,"placement")},validator:function(e){return Yr.includes(e)}},delay:{type:[String,Number,Object],default:function(){return Oa(this.theme,"delay")}},offset:{type:[Array,Function],default:function(){return Oa(this.theme,"offset")}},triggers:{type:Array,default:function(){return Oa(this.theme,"triggers")}},showTriggers:{type:[Array,Function],default:function(){return Oa(this.theme,"showTriggers")}},hideTriggers:{type:[Array,Function],default:function(){return Oa(this.theme,"hideTriggers")}},popperTriggers:{type:Array,default:function(){return Oa(this.theme,"popperTriggers")}},popperShowTriggers:{type:[Array,Function],default:function(){return Oa(this.theme,"popperShowTriggers")}},popperHideTriggers:{type:[Array,Function],default:function(){return Oa(this.theme,"popperHideTriggers")}},container:{type:[String,Object,ja,Boolean],default:function(){return Oa(this.theme,"container")}},boundary:{type:[String,ja],default:function(){return Oa(this.theme,"boundary")}},strategy:{type:String,validator:function(e){return["absolute","fixed"].includes(e)},default:function(){return Oa(this.theme,"strategy")}},modifiers:{type:Array,default:function(){return Oa(this.theme,"modifiers")}},popperOptions:{type:Object,default:function(){return Oa(this.theme,"popperOptions")}},autoHide:{type:Boolean,default:function(){return Oa(this.theme,"autoHide")}},handleResize:{type:Boolean,default:function(){return Oa(this.theme,"handleResize")}},instantMove:{type:Boolean,default:function(){return Oa(this.theme,"instantMove")}},eagerMount:{type:Boolean,default:function(){return Oa(this.theme,"eagerMount")}},popperClass:{type:[String,Array,Object],default:function(){return Oa(this.theme,"popperClass")}},computeTransformOrigin:{type:Boolean,default:function(){return Oa(this.theme,"computeTransformOrigin")}},autoMinSize:{type:Boolean,default:function(){return Oa(this.theme,"autoMinSize")}}},data:function(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0}}},computed:{popperId:function(){return null!=this.ariaId?this.ariaId:this.randomId},shouldMountContent:function(){return this.eagerMount||this.isMounted},slotData:function(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:fa(fa({},this.classes),{},{popperClass:this.popperClass})}}},watch:{shown:"$_autoShowHide",disabled:function(e){e?this.dispose():this.init()},container:function(){var e=this;return ha((function*(){e.isShown&&e.popperInstance&&(e.$_ensureContainer(),yield e.popperInstance.update())}))()},triggers:function(){this.$_removeEventListeners(),this.$_addEventListeners()},placement:"$_refreshPopperOptions",offset:"$_refreshPopperOptions",boundary:"$_refreshPopperOptions",strategy:"$_refreshPopperOptions",modifiers:"$_refreshPopperOptions",popperOptions:{handler:"$_refreshPopperOptions",deep:!0}},created:function(){this.$_isDisposed=!0,this.randomId="popper_".concat([Math.random(),Date.now()].map((function(e){return e.toString(36).substring(2,10)})).join("_"))},mounted:function(){this.init()},activated:function(){this.$_autoShowHide()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event,i=t.skipDelay,r=void 0!==i&&i,o=t.force,s=void 0!==o&&o;!s&&this.disabled||(this.$_scheduleShow(n,r),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame((function(){e.$_showFrameLocked=!1}))),this.$emit("update:shown",!0)},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,n=e.skipDelay,i=void 0!==n&&n;this.$_scheduleHide(t,i),this.$emit("hide"),this.$emit("update:shown",!1)},init:function(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_targetNodes=this.targetNodes().filter((function(e){return e.nodeType===e.ELEMENT_NODE})),this.$_popperNode=this.popperNode(),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose:function(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),this.$_detachPopperNode()),this.isMounted=!1,this.popperInstance=null,this.isShown=!1,this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},onResize:function(){var e=this;return ha((function*(){e.isShown&&e.popperInstance&&(yield e.popperInstance.update(),e.$emit("resize"))}))()},$_getPopperOptions:function(){var e=this,t=fa(fa({},this.popperOptions),{},{placement:this.placement,strategy:this.strategy,modifiers:this.modifiers,onFirstUpdate:function(){var t=ha((function*(t){e.popperOptions.onFirstUpdate&&e.popperOptions.onFirstUpdate(t),yield e.$_applyShowEffect()}));function n(e){return t.apply(this,arguments)}return n}()});return t.modifiers||(t.modifiers=[]),La(t.modifiers,"arrow",{options:{element:this.arrowNode&&this.arrowNode()||"[data-popper-arrow]"}}),this.offset&&La(t.modifiers,"offset",{options:{offset:this.offset}}),this.boundary&&La(t.modifiers,"preventOverflow",{options:{boundary:this.boundary}}),this.isShown||La(t.modifiers,"eventListeners",{enabled:!1}),t},$_refreshPopperOptions:function(){var e=this;return ha((function*(){e.popperInstance&&(yield e.popperInstance.setOptions(e.$_getPopperOptions()))}))()},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Na&&this.instantMove&&Na.instantMove)return Na.$_applyHide(!0),void this.$_applyShow(!0);e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Na=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay:function(e){var t=this.delay;return parseInt(t&&t[e]||t||0)},$_applyShow:function(){var e=arguments,t=this;return ha((function*(){var n=e.length>0&&void 0!==e[0]&&e[0];clearTimeout(t.$_disposeTimer),clearTimeout(t.$_scheduleTimer),t.skipTransition=n,t.isShown||(t.isMounted||(t.$_ensureContainer(),t.isMounted=!0),t.popperInstance?(yield t.popperInstance.update(),yield t.$_refreshPopperOptions(),yield t.$_applyShowEffect()):t.popperInstance=Hs(t.referenceNode(),t.$_popperNode,t.$_getPopperOptions()))}))()},$_applyShowEffect:function(){var e=this;return ha((function*(){if(!e.$_hideInProgress){var t,n=function(){return t||(t=e.referenceNode().getBoundingClientRect())};if(e.computeTransformOrigin){var i=n(),r=e.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=i.left+i.width/2-(o.left+r.offsetLeft),a=i.top+i.height/2-(o.top+r.offsetTop);r.style.transformOrigin="".concat(s,"px ").concat(a,"px")}if(e.autoMinSize){var l=n(),c=e.$_popperNode.querySelector(".v-popper__inner"),u=e.$_popperNode.dataset.popperPlacement.split("-"),h=va(u,1),d=h[0];"left"===d||"right"===d?c.style.minHeight="".concat(l.height,"px"):c.style.minWidth="".concat(l.width,"px")}e.isShown=!0,e.$_applyAttrsToTarget({"aria-describedby":e.popperId,"data-popper-shown":""});var p=e.showGroup;if(p)for(var f,m=0;m<$a.length;m++)f=$a[m],f.showGroup!==p&&(f.hide(),f.$emit("close-group"));$a.push(e),e.$emit("apply-show"),e.$_popperNode.setAttribute("data-popper-placement",e.popperInstance.state.placement),e.classes.showFrom=!0,e.classes.showTo=!1,e.classes.hideFrom=!1,e.classes.hideTo=!1,yield Za(),e.classes.showFrom=!1,e.classes.showTo=!0}}))()},$_applyHide:function(){var e=arguments,t=this;return ha((function*(){var n=e.length>0&&void 0!==e[0]&&e[0];if(clearTimeout(t.$_scheduleTimer),t.isShown){t.skipTransition=n,Ra($a,t),Na===t&&(Na=null),t.isShown=!1,t.popperInstance&&(yield t.$_refreshPopperOptions()),t.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(t.$_disposeTimer);var i=Oa(t.theme,"disposeTimeout");null!==i&&(t.$_disposeTimer=setTimeout((function(){t.$_popperNode&&(t.$_detachPopperNode(),t.isMounted=!1)}),i)),t.$emit("apply-hide"),t.classes.showFrom=!1,t.classes.showTo=!1,t.classes.hideFrom=!0,t.classes.hideTo=!1,yield Za(),t.classes.hideFrom=!1,t.classes.hideTo=!0}}))()},$_autoShowHide:function(){this.shown?this.show():this.hide()},$_ensureContainer:function(){var e=this.container;if("string"===typeof e?e=window.document.querySelector(e):!1===e&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode)},$_addEventListeners:function(){var e=this,t=function(t,n,i,r,o){var s=i;null!=r&&(s="function"===typeof r?r(s):r),s.forEach((function(i){var r=n[i];r&&(e.$_events.push({targetNodes:t,eventType:r,handler:o}),t.forEach((function(e){return e.addEventListener(r,o,Da?{passive:!0}:void 0)})))}))},n=function(t){e.isShown&&!e.$_hideInProgress||(t.usedByTooltip=!0,!e.$_preventShow&&e.show({event:t}))};t(this.$_targetNodes,Ba,this.triggers,this.showTriggers,n),t([this.$_popperNode],Ba,this.popperTriggers,this.popperShowTriggers,n);var i=function(t){t.usedByTooltip||e.hide({event:t})};t(this.$_targetNodes,Fa,this.triggers,this.hideTriggers,i),t([this.$_popperNode],Fa,this.popperTriggers,this.popperHideTriggers,i)},$_removeEventListeners:function(){this.$_events.forEach((function(e){var t=e.targetNodes,n=e.eventType,i=e.handler;t.forEach((function(e){return e.removeEventListener(n,i)}))})),this.$_events=[]},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout((function(){t.$_preventShow=!1}),300)))},$_handleGlobalResize:function(e){var t=this;return ha((function*(){t.popperInstance&&(yield t.popperInstance.update())}))()},$_detachPopperNode:function(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs:function(e,t){var n,i=Ta(this.$_targetNodes);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}}catch(s){i.e(s)}finally{i.f()}},$_applyAttrsToTarget:function(e){var t,n=Ta(this.$_targetNodes);try{for(n.s();!(t=n.n()).done;){var i=t.value;for(var r in e){var o=e[r];null==o?i.removeAttribute(r):i.setAttribute(r,o)}}}catch(s){n.e(s)}finally{n.f()}}},render:function(e){return this.$scopedSlots.default(this.slotData)[0]}}};function Ua(e){for(var t=0;t<$a.length;t++){var n=$a[t],i=n.popperNode();n.$_mouseDownContains=i.contains(e.target)}}function qa(e){Wa(e)}function Ha(e){Wa(e,!0)}function Wa(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var i=$a[n],r=i.popperNode(),o=i.$_mouseDownContains||r.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&o||i.autoHide&&!o)&&i.$_handleGlobalClose(e,t)}))},i=0;i<$a.length;i++)n(i)}function Ga(e){for(var t=0;t<$a.length;t++){var n=$a[t];n.$_handleGlobalResize(e)}}function Za(){return new Promise((function(e){return requestAnimationFrame((function(){requestAnimationFrame(e)}))}))}"undefined"!==typeof document&&"undefined"!==typeof window&&(za?(document.addEventListener("touchstart",Ua,!Da||{passive:!0,capture:!0}),document.addEventListener("touchend",Ha,!Da||{passive:!0,capture:!0})):(window.addEventListener("mousedown",Ua,!0),window.addEventListener("click",qa,!0)),window.addEventListener("resize",Ga));var Xa={computed:{themeClass:function(){return Ia(this.theme)}}},Ka={name:"VPopperContent",components:{ResizeObserver:ia},mixins:[Xa],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object}};function Ya(e,t,n,i,r,o,s,a,l,c){"boolean"!==typeof s&&(l=a,a=s,s=!1);var u,h="function"===typeof n?n.options:n;if(e&&e.render&&(h.render=e.render,h.staticRenderFns=e.staticRenderFns,h._compiled=!0,r&&(h.functional=!0)),i&&(h._scopeId=i),o?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},h._ssrRegister=u):t&&(u=s?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),u)if(h.functional){var d=h.render;h.render=function(e,t){return u.call(t),d(e,t)}}else{var p=h.beforeCreate;h.beforeCreate=p?[].concat(p,u):[u]}return n}var Ja=Ka,Qa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"popover",staticClass:"v-popper__popper",class:[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition}],attrs:{id:e.popperId,"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0},on:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.autoHide&&e.$emit("hide")}}},[n("div",{staticClass:"v-popper__wrapper"},[n("div",{ref:"inner",staticClass:"v-popper__inner"},[e.mounted?[n("div",[e._t("default")],2),e._v(" "),e.handleResize?n("ResizeObserver",{on:{notify:function(t){return e.$emit("resize",t)}}}):e._e()]:e._e()],2),e._v(" "),n("div",{ref:"arrow",staticClass:"v-popper__arrow-container"},[n("div",{staticClass:"v-popper__arrow-outer"}),e._v(" "),n("div",{staticClass:"v-popper__arrow-inner"})])])])},el=[];Qa._withStripped=!0;var tl=void 0,nl=void 0,il=void 0,rl=!1,ol=Ya({render:Qa,staticRenderFns:el},tl,Ja,nl,rl,il,!1,void 0,void 0,void 0),sl={methods:{show:function(){var e;return(e=this.$refs.popper).show.apply(e,arguments)},hide:function(){var e;return(e=this.$refs.popper).hide.apply(e,arguments)},dispose:function(){var e;return(e=this.$refs.popper).dispose.apply(e,arguments)},onResize:function(){var e;return(e=this.$refs.popper).onResize.apply(e,arguments)}}},al={name:"VPopperWrapper",components:{Popper:Va(),PopperContent:ol},mixins:[sl,Xa],inheritAttrs:!1,props:{theme:{type:String,default:function(){return this.$options.vPopperTheme}}},methods:{getTargetNodes:function(){var e=this;return Array.from(this.$refs.reference.children).filter((function(t){return t!==e.$refs.popperContent.$el}))}}},ll=al,cl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"target-nodes":e.getTargetNodes,"reference-node":function(){return e.$refs.reference},"popper-node":function(){return e.$refs.popperContent.$el},"arrow-node":function(){return e.$refs.popperContent.$refs.arrow}},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.popperId,r=t.isShown,o=t.shouldMountContent,s=t.skipTransition,a=t.autoHide,l=t.show,c=t.hide,u=t.handleResize,h=t.onResize,d=t.classes;return[n("div",{ref:"reference",staticClass:"v-popper",class:[e.themeClass,{"v-popper--shown":r}]},[e._t("default",null,{shown:r,show:l,hide:c}),e._v(" "),n("PopperContent",{ref:"popperContent",attrs:{"popper-id":i,theme:e.theme,shown:r,mounted:o,"skip-transition":s,"auto-hide":a,"handle-resize":u,classes:d},on:{hide:c,resize:h}},[e._t("popper",null,{shown:r,hide:c})],2)],2)]}}],null,!0)},"Popper",e.$attrs,!1),e.$listeners))},ul=[];cl._withStripped=!0;var hl=void 0,dl=void 0,pl=void 0,fl=!1,ml=Ya({render:cl,staticRenderFns:ul},hl,ll,dl,fl,pl,!1,void 0,void 0,void 0),gl=fa(fa({},ml),{},{name:"VDropdown",vPopperTheme:"dropdown"}),vl=gl,yl=void 0,_l=void 0,bl=void 0,xl=void 0,wl=Ya({},yl,vl,_l,xl,bl,!1,void 0,void 0,void 0),Cl=fa(fa({},ml),{},{name:"VMenu",vPopperTheme:"menu"}),kl=Cl,Sl=void 0,El=void 0,Tl=void 0,Ml=void 0,Al=Ya({},Sl,kl,El,Ml,Tl,!1,void 0,void 0,void 0),Ol=fa(fa({},ml),{},{name:"VTooltip",vPopperTheme:"tooltip"}),Il=Ol,Dl=void 0,Pl=void 0,zl=void 0,Ll=void 0,Bl=Ya({},Dl,Il,Pl,Ll,zl,!1,void 0,void 0,void 0),Fl={name:"VTooltipDirective",components:{Popper:Va(),PopperContent:ol},mixins:[sl],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:function(){return Oa(this.theme,"html")}},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:function(){return Oa(this.theme,"loadingContent")}}},data:function(){return{asyncContent:null}},computed:{isContentAsync:function(){return"function"===typeof this.content},loading:function(){return this.isContentAsync&&null==this.asyncContent},finalContent:function(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler:function(){this.fetchContent(!0)},immediate:!0},finalContent:function(e){var t=this;this.$nextTick((function(){t.$refs.popper.onResize()}))}},created:function(){this.$_fetchId=0},methods:{fetchContent:function(e){var t=this;if("function"===typeof this.content&&this.$_isShown&&(e||!this.$_loading&&null==this.asyncContent)){this.asyncContent=null,this.$_loading=!0;var n=++this.$_fetchId,i=this.content(this);i.then?i.then((function(e){return t.onResult(n,e)})):this.onResult(n,i)}},onResult:function(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow:function(){this.$_isShown=!0,this.fetchContent()},onHide:function(){this.$_isShown=!1}}},Rl=Fl,$l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"popper-node":function(){return e.$refs.popperContent.$el},"arrow-node":function(){return e.$refs.popperContent.$refs.arrow}},on:{"apply-show":e.onShow,"apply-hide":e.onHide},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.popperId,r=t.isShown,o=t.shouldMountContent,s=t.skipTransition,a=t.autoHide,l=t.hide,c=t.handleResize,u=t.onResize,h=t.classes;return[n("PopperContent",{ref:"popperContent",class:{"v-popper--tooltip-loading":e.loading},attrs:{"popper-id":i,theme:e.theme,shown:r,mounted:o,"skip-transition":s,"auto-hide":a,"handle-resize":c,classes:h},on:{hide:l,resize:u}},[e.html?n("div",{domProps:{innerHTML:e._s(e.finalContent)}}):n("div",{domProps:{textContent:e._s(e.finalContent)}})])]}}])},"Popper",e.$attrs,!1),e.$listeners))},Nl=[];$l._withStripped=!0;var jl=void 0,Vl=void 0,Ul=void 0,ql=!1,Hl=Ya({render:$l,staticRenderFns:Nl},jl,Rl,Vl,ql,Ul,!1,void 0,void 0,void 0),Wl="v-popper--has-tooltip";function Gl(e,t){var n=e.placement;if(!n&&t){var i,r=Ta(Yr);try{for(r.s();!(i=r.n()).done;){var o=i.value;t[o]&&(n=o)}}catch(s){r.e(s)}finally{r.f()}}return n||(n=Oa(e.theme||"tooltip","placement")),n}function Zl(e,t,n){var i,r=ca(t);return i="string"===r?{content:t}:t&&"object"===r?t:{content:!1},i.placement=Gl(i,n),i.targetNodes=function(){return[e]},i.referenceNode=function(){return e},i}function Xl(e,t,n){var i=Zl(e,t,n),r=e.$_popper=new(la())({mixins:[sl],data:function(){return{options:i}},render:function(e){var t=this.options,n=t.theme,i=t.html,r=t.content,o=t.loadingContent,s=ga(t,["theme","html","content","loadingContent"]);return e(Hl,{props:{theme:n,html:i,content:r,loadingContent:o},attrs:s,ref:"popper"})},devtools:{hide:!0}}),o=document.createElement("div");return document.body.appendChild(o),r.$mount(o),e.classList&&e.classList.add(Wl),r}function Kl(e){e.$_popper&&(e.$_popper.$destroy(),delete e.$_popper,delete e.$_popperOldShown),e.classList&&e.classList.remove(Wl)}function Yl(e,t){var n,i=t.value,r=(t.oldValue,t.modifiers),o=Zl(e,i,r);!o.content||Oa(o.theme||"tooltip","disabled")?Kl(e):(e.$_popper?(n=e.$_popper,n.options=o):n=Xl(e,i,r),"undefined"!==typeof i.shown&&i.shown!==e.$_popperOldShown&&(e.$_popperOldShown=i.shown,i.shown?n.$refs.tooltip.show():n.$refs.tooltip.hide()))}var Jl={bind:Yl,update:Yl,unbind:function(e){Kl(e)}};function Ql(e){e.addEventListener("click",tc),e.addEventListener("touchstart",nc,!!Da&&{passive:!0})}function ec(e){e.removeEventListener("click",tc),e.removeEventListener("touchstart",nc),e.removeEventListener("touchend",ic),e.removeEventListener("touchcancel",rc)}function tc(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function nc(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",ic),t.addEventListener("touchcancel",rc)}}function ic(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-i.screenY)<20&&Math.abs(n.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function rc(e){var t=e.currentTarget;t.$_vclosepopover_touch=!1}var oc={bind:function(e,t){var n=t.value,i=t.modifiers;e.$_closePopoverModifiers=i,("undefined"===typeof n||n)&&Ql(e)},update:function(e,t){var n=t.value,i=t.oldValue,r=t.modifiers;e.$_closePopoverModifiers=r,n!==i&&("undefined"===typeof n||n?Ql(e):ec(e))},unbind:function(e){ec(e)}};function sc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sc.installed||(sc.installed=!0,Ma(Aa,t),e.directive("tooltip",Jl),e.directive("close-popper",oc),e.component("v-tooltip",Bl),e.component("VTooltip",Bl),e.component("v-dropdown",wl),e.component("VDropdown",wl),e.component("v-menu",Al),e.component("VMenu",Al))}var ac={version:"3.0.0-beta.20",install:sc,options:Aa},lc=null;"undefined"!==typeof window?lc=window.Vue:"undefined"!==typeof i.g&&(lc=i.g.Vue),lc&&lc.use(ac);var cc=ac,uc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"AfeefaButton",class:{transparent:e.transparent,mobile:e.device.isMobile()}},[e.subset?[t("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:"Menu",expression:"'Menu'"}],staticClass:"circle",class:e.subset?e.subset.slug:"",style:"background-image: url("+e.subsetImage(e.subset)+");",on:{click:function(t){return e.$root.toggleMainMenu()}}})]:e._e()],2)},hc=[];
/**
  * vue-class-component v7.2.6
  * (c) 2015-present Evan You
  * @license MIT
  */
function dc(e){return dc="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},dc(e)}function pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fc(e){return mc(e)||gc(e)||vc()}function mc(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function gc(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function vc(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function yc(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function _c(e,t){bc(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){bc(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){bc(e,t,n)}))}function bc(e,t,n){var i=n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t);i.forEach((function(i){var r=n?Reflect.getOwnMetadata(i,t,n):Reflect.getOwnMetadata(i,t);n?Reflect.defineMetadata(i,r,e,n):Reflect.defineMetadata(i,r,e)}))}var xc={__proto__:[]},wc=xc instanceof Array;function Cc(e){return function(t,n,i){var r="function"===typeof t?t:t.constructor;r.__decorators__||(r.__decorators__=[]),"number"!==typeof i&&(i=void 0),r.__decorators__.push((function(t){return e(t,n,i)}))}}function kc(e){var t=dc(e);return null==e||"object"!==t&&"function"!==t}function Sc(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var i in e.$options.props)e.hasOwnProperty(i)||n.push(i);n.forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var i=new t;t.prototype._init=n;var r={};return Object.keys(i).forEach((function(e){void 0!==i[e]&&(r[e]=i[e])})),r}var Ec=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function Tc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(Ec.indexOf(e)>-1)t[e]=n[e];else{var i=Object.getOwnPropertyDescriptor(n,e);void 0!==i.value?"function"===typeof i.value?(t.methods||(t.methods={}))[e]=i.value:(t.mixins||(t.mixins=[])).push({data:function(){return pc({},e,i.value)}}):(i.get||i.set)&&((t.computed||(t.computed={}))[e]={get:i.get,set:i.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return Sc(this,e)}});var i=e.__decorators__;i&&(i.forEach((function(e){return e(t)})),delete e.__decorators__);var r=Object.getPrototypeOf(e.prototype),o=r instanceof la()?r.constructor:la(),s=o.extend(t);return Ac(s,e,o),yc()&&_c(s,e),s}var Mc={prototype:!0,arguments:!0,callee:!0,caller:!0};function Ac(e,t,n){Object.getOwnPropertyNames(t).forEach((function(i){if(!Mc[i]){var r=Object.getOwnPropertyDescriptor(e,i);if(!r||r.configurable){var o=Object.getOwnPropertyDescriptor(t,i);if(!wc){if("cid"===i)return;var s=Object.getOwnPropertyDescriptor(n,i);if(!kc(o.value)&&s&&s.value===o.value)return}0,Object.defineProperty(e,i,o)}}}))}function Oc(e){return"function"===typeof e?Tc(e):function(t){return Tc(t,e)}}Oc.registerHooks=function(e){Ec.push.apply(Ec,fc(e))};var Ic=Oc;"undefined"!==typeof Reflect&&Reflect.getMetadata;function Dc(e,t){void 0===t&&(t={});var n=t.deep,i=void 0!==n&&n,r=t.immediate,o=void 0!==r&&r;return Cc((function(t,n){"object"!==typeof t.watch&&(t.watch=Object.create(null));var r=t.watch;"object"!==typeof r[e]||Array.isArray(r[e])?"undefined"===typeof r[e]&&(r[e]=[]):r[e]=[r[e]],r[e].push({handler:n,deep:i,immediate:o})}))}i(3778);class Pc{getDevice(){let e=document.querySelector(".device-indicator");e||(e=document.createElement("div"),e.className="device-indicator",document.body.appendChild(e));const t=window.getComputedStyle(e,":before").getPropertyValue("content");return t.replace(/"/g,"")}isMobile(){switch(this.getDevice()){case"mobile":return!0;default:return!1}}isDesktop(){switch(this.getDevice()){case"big":case"tablet":case"mobile":return!0;default:return!1}}}var zc,Lc=new Pc;let Bc=Ic(zc=class extends(la()){constructor(...e){super(...e),this.enabled=!1}debug(...e){this.enabled&&console.debug(...e)}})||zc;var Fc,Rc;let $c=(Fc=Ic({mixins:[Bc],filters:{slice:function(e,t,n){return e.slice(t,n)},hydrateLinks:function(e){let t;const n=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim;t=e.replace(n,'<a href="$1" target="_blank">$1</a>');const i=/(^|[^\/])(www\.[\S]+(\b|$))/gim;t=t.replace(i,'$1<a href="http://$2" target="_blank">$2</a>');const r=/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim;return t=t.replace(r,'<a href="mailto:$1">$1</a>'),t}}}),Fc(Rc=class extends(la()){created(){this.device=Lc}get subset(){const e=this.Store.getSubsetBySlug(this.User.getSubset());return e||null}get navigation(){return this.Store.getNavigation()}get languages(){return this.Store.getLanguages()}get AppIsInitialized(){return this.$root.initialized}get isSearchRoute(){return"Search"===this.$route.name||"SearchEmpty"===this.$route.name||"Bookmarks"===this.$route.name}navigate(e){if(!e)return!1;if("search"===e){const e=this.Store.getCurrentQuery(),t={};t.subset=this.User.getSubset(),e.text&&(t.q=e.text);const n={};e.categories&&e.categories.length&&(n.categories=e.categoriesToUrlString()),n.view=this.Store.getUIState().viewMode,e.entryType&&(n.type=e.entryType),e.offerTypes&&(n.offerTypes=e.offerTypes.join(",")),n.l=this.User.getLanguage(),t.q?this.$router.push({name:"Search",params:t,query:n}):this.$router.push({name:"SearchEmpty",params:t,query:n})}else{const t={l:this.User.getLanguage()};e.query||(e.query=t),e.query.l||(e.query.l=t.l),this.$router.push(e)}this.phpmode&&window.location.reload()}translate(e,t){return this.ModelHelpers.translate(e,t)}isPrint(){return window.matchMedia("print").matches}changeViewMode(e){this.Store.setUIState({viewMode:e}),this.navigate("search",!0)}})||Rc);var Nc,jc,Vc=$c;function Uc(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}var qc,Hc,Wc=Uc(Vc,Nc,jc,!1,null,"3ae6c4f9",null),Gc=Wc.exports;let Zc=(qc=Ic({props:["transparent"]}),qc(Hc=class extends Gc{subsetImage(e){const t=e.media.find((e=>"default"===e.label));return t?t.file.url+"?width=300&height=300":null}})||Hc);var Xc,Kc,Yc=Zc,Jc=Uc(Yc,uc,hc,!1,null,"6045daa6",null),Qc=Jc.exports,eu=function(){var e=this,t=e._self._c;return t("div",{staticClass:"BackLink bold small"},[e.backlink?t("router-link",{attrs:{to:e.backlink.url,nounderline:""}},[t("span",{staticClass:"arrow"},[e._v("❮")]),e._v(" "+e._s(e.backlink.text)+" ")]):e._e()],1)},tu=[];let nu=(Xc=Ic({}),Xc(Kc=class extends Gc{get backlink(){const e={},t=this.$root.routeHistory.length>1?this.$root.routeHistory.slice(-2)[0]:null,n=t?this.$route.name:null;switch(n){case"Search":case"SearchEmpty":e.text=this.routeNameToReadableText("Home"),e.url="/";break;case"Offer":case"Actor":if(["Home","Search","SearchEmpty","Bookmarks"].includes(t.name)){e.text=this.routeNameToReadableText(t.name),e.url=t.path;break}default:t?(e.text=this.routeNameToReadableText(t.name),e.url=t.path):(e.text=this.routeNameToReadableText("Home"),e.url="/");break}return e}routeNameToReadableText(e){switch(e){case"Home":return"Startseite";case"Search":case"SearchEmpty":return"Suche";case"Bookmarks":return"Merkliste";case"Offer":case"Actor":return"Eintrag";case"Add":return"Eintragsformular";case"Print":return"Druckansicht"}return""}})||Kc);var iu,ru,ou=nu,su=Uc(ou,eu,tu,!1,null,"96a124c4",null),au=su.exports,lu=function(){var e=this,t=e._self._c;return e.AppIsInitialized?t("div",{staticClass:"Breadcrumb",class:{mobile:e.device.isMobile()}},[t("a",{attrs:{nounderline:""},on:{click:function(t){return e.navigate({name:"Home",params:{subset:e.subset.slug}})}}},[e._v(" "+e._s(e.Store.getUiWording("ui.term.homepage","Startseite"))+" ")]),e._l(e.$root.routeHistory,(function(n,i){return[t("fa-icon",{key:"crumba-"+i,staticClass:"small",attrs:{icon:"chevron-right"}}),i!=e.$root.routeHistory.length-1?t("a",{key:"crumbb-"+i,attrs:{nounderline:""},on:{click:function(t){return e.crumbClicked(n)}}},[e._v(" "+e._s(e.routeToReadableText(n))+" ")]):t("span",{key:"crumbc-"+i,staticClass:"active"},[e._v(e._s(e.routeToReadableText(n)))])]}))],2):e._e()},cu=[];let uu=(iu=Ic({props:["phpmode","breadcrumb"]}),iu(ru=class extends Gc{crumbClicked(e){["Search","SearchEmpty"].includes(e.name)?this.navigate("search"):this.navigate({name:e.name,params:e.params,query:e.query})}routeToReadableText(e){switch(e.name){case"Home":return"Startseite";case"Search":case"SearchEmpty":return this.Store.getUiWording("ui.term.search");case"Bookmarks":return this.Store.getUiWording("ui.term.watchlist");case"Actor":return this.Store.getUiWording("ui.term.actor");case"Offer":return this.Store.getUiWording("ui.term.offer");case"Add":return this.Store.getUiWording("ui.entry.add-form");case"Print":return"Druckansicht"}return this.breadcrumb??""}})||ru);var hu,du,pu=uu,fu=Uc(pu,lu,cu,!1,null,"0454ec84",null),mu=fu.exports,gu=function(){var e=this,t=e._self._c;return t("span",{staticClass:"EntryCircle",style:"color: "+(e.color?e.color:"#333333")},[e._v("◍")])},vu=[];let yu=(hu=Ic({props:["color"]}),hu(du=class extends Gc{})||du);var _u,bu,xu=yu,wu=Uc(xu,gu,vu,!1,null,"293f373c",null),Cu=wu.exports,ku=function(){var e=this,t=e._self._c;return t("div",{staticClass:"Flag",class:{clickable:e.clickable},style:{"background-color":e.color||null}},[t("label",{style:{color:e.textColor||null}},[e._t("default",(function(){return[e._v(" tag slot content ")]}))],2)])},Su=[];let Eu=(_u=Ic({props:{color:String,textColor:String,clickable:Boolean}}),_u(bu=class extends(la()){})||bu);var Tu,Mu,Au=Eu,Ou=Uc(Au,ku,Su,!1,null,"67b1a20b",null),Iu=Ou.exports,Du=function(){var e=this,t=e._self._c;return t("div",{staticClass:"LanguageSelector",class:{mobile:e.isMobile(),small:e.small||e.displayOnly,expanded:e.expanded}},e._l(e.languages,(function(n){return t("a",{key:n.alpha2_lang_code,staticClass:"langItem",class:{active:n.alpha2_lang_code==e.User.getLanguage()},attrs:{nounderline:""},on:{click:function(t){return e.itemClicked(n)}}},[e._v(e._s(n.title))])})),0)},Pu=[];let zu=(Tu=Ic({props:["small","displayOnly"]}),Tu(Mu=class extends Gc{constructor(...e){super(...e),this.expanded=!1}isMobile(){return Lc.isMobile()}itemClicked(e){this.displayOnly||(this.small&&!this.expanded||this.$root.selectLanguage(e.alpha2_lang_code),this.small&&(this.expanded=!this.expanded))}})||Mu);var Lu,Bu,Fu,Ru,$u=zu,Nu=Uc($u,Du,Pu,!1,null,"333120d6",null),ju=Nu.exports,Vu=function(){var e=this,t=e._self._c;return t("div",{staticClass:"Navigation",class:e.loading?"loading":null},[e.includeSelectButton?t("select-button",{ref:"selectbutton",attrs:{"use-as-invisible-button":!0,"show-back-option":!1,"entity-name":e.translate(e.navigation,"display_name").split(",")[1],"options-array":e.ModelHelpers.mapCategoryTypeForSelectInput(e.navigation)},on:{changed:e.fire}}):e._e(),e.naviItems?t("div",{staticClass:"flex flex-wrap gap-4"},[e._l(e.naviItems,(function(n){return[t("a",{key:n.id,staticClass:"item",class:{active:e.isActive(n)},style:{"border-color":n.color+"AA","background-color":n.color+"00"},attrs:{nounderline:""},on:{click:function(t){e.includeSelectButton?e.useSelectButtonToShowSubCategories(n):e.fire(n)}}},[n.media.length?t("span",{staticClass:"icon",style:{"mask-image":"url("+n.media[0].file.url+")","background-color":n.color}}):e._e(),t("span",{staticClass:"label"},[e._v(" "+e._s(e.translate(n,"title")))])]),e.showSubCategories&&n.sub_categories.length&&e.isActive(n)?[t("div",{key:n.id+"subs",staticClass:"subItems",style:"border-color: "+n.color+"AA"},e._l(n.sub_categories,(function(n){return t("a",{key:n.id,staticClass:"subItem small",class:{active:e.isActive(n)},attrs:{nounderline:""},on:{click:function(t){return e.fire(n)}}},[e._v(e._s(e.translate(n,"title")))])})),0)]:e._e()]}))],2):e._e()],1)},Uu=[];function qu(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer?(Object.defineProperty(e,t,o),null):o}let Hu=(Lu=Ic({props:["items","activeItem","showSubCategories","includeSelectButton"]}),Bu=Dc("items",{immediate:!0}),Lu((Ru=class extends Gc{constructor(...e){super(...e),this.naviItems=null,this.focusedCategory=null}handleNavigationChange(){this.items&&(this.naviItems=this.items)}useSelectButtonToShowSubCategories(e){this.focusedCategory=[e.id],this.$refs.selectbutton.forceShowOptions(!0,e.id)}fire(e){Array.isArray(e)&&(e=e[0]),this.$emit("fired",e)}isActive(e){return!!this.activeItem&&(this.activeItem&&e.id===this.activeItem.id||this.activeItem.parent_id&&e.id===this.activeItem.parent_id)}get loading(){return null===this.items}},qu(Ru.prototype,"handleNavigationChange",[Bu],Object.getOwnPropertyDescriptor(Ru.prototype,"handleNavigationChange"),Ru.prototype),Fu=Ru))||Fu);var Wu,Gu,Zu=Hu,Xu=Uc(Zu,Vu,Uu,!1,null,"d70d468a",null),Ku=Xu.exports,Yu=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.close,expression:"close"},{name:"tooltip",rawName:"v-tooltip",value:e.tooltip?e.tooltip:null,expression:"tooltip ? tooltip : null"}],staticClass:"SelectButton",class:{mobile:e.isMobile()}},[t("button",{class:{open:e.showOptions,selected:e.hasCurrentOptions,required:e.required,valid:e.valid,hidden:e.useAsInvisibleButton},on:{click:function(t){t.preventDefault(),e.showOptions=!e.showOptions}}},[t("div",{staticClass:"text flex flex-col gap-1 place-items-start"},[e.hasCurrentOptions?t("label",{staticClass:"small normal label capitalize"},[e._v(e._s(e.entityName))]):e._e(),t("div",{staticClass:"currentOptions flex gap-2 max-w-xs flex-wrap"},[e._l(e.currentOptions,(function(n,i){return[i<1||!e.multipleCompressed?t("div",{key:i,staticClass:"currentOption shrink-0",class:e.multiple&&["chip","flex"]},[n.image?t("span",{staticClass:"option-icon",style:{"mask-image":"url("+n.image.file.url+")","background-color":n.color}}):e._e(),t("span",[e._v(e._s(n.label))])]):i<2?t("div",{key:i},[e._v(" +"+e._s(e.currentOptions.length-1)+" ")]):e._e()]})),e.hasCurrentOptions?e._e():t("span",{staticClass:"currentOption capitalize"},[e._v(e._s(e.entityName))])],2)]),e.hasCurrentOptions?t("Cancel-Button",{staticClass:"clearButton",on:{clicked:e.clear}}):t("fa-icon",{staticClass:"icon small",attrs:{icon:"chevron-down"}})],1),e.showOptions?t("div",{staticClass:"overlay flex place-items-center place-content-center fade-in bg-glas",on:{click:function(t){e.showOptions=!e.showOptions}}},[e.showOptions?t("div",{staticClass:"options md:p-4 bg-gray self-end md:self-start",class:{"slide-top":!0}},[t("span",{staticClass:"hint small capitalize"},[e._v(e._s(e.entityName))]),t("section",{staticClass:"mainOptions",class:{active:!e.expandedOption}},[e.expandedOption?e._e():e._l(e.options,(function(n,i){return t("a",{key:i,staticClass:"option flex gap-4 justify-start items-center",class:{active:e.isCurrentOption(n)},on:{click:function(t){t.stopPropagation(),n.options?e.expandOption(n):e.selectOption(n)}}},[n.image?t("span",{staticClass:"option-icon",style:{"mask-image":"url("+n.image.file.url+")","background-color":n.color}}):e._e(),t("span",[e._v(e._s(n.label))]),n.options?t("fa-icon",{staticClass:"small",attrs:{icon:"chevron-right"}}):e._e()],1)}))],2),t("section",{staticClass:"subOptions",class:{active:e.expandedOption}},[e.expandedOption?[e.showBackOption?t("a",{staticClass:"option flex gap-4 justify-start items-center border small",on:{click:function(t){return t.stopPropagation(),e.expandOption(null)}}},[t("fa-icon",{staticClass:"small",attrs:{icon:"chevron-left"}}),e._v(" zurück ")],1):e._e(),t("a",{staticClass:"option flex gap-4 justify-start items-center",class:{active:e.isCurrentOption(e.expandedOption)},on:{click:function(t){return t.stopPropagation(),e.selectOption(e.expandedOption)}}},[e.expandedOption.image?t("span",{staticClass:"option-icon",style:{"mask-image":"url("+e.expandedOption.image.file.url+")","background-color":e.expandedOption.color}}):e._e(),t("span",[e._v(e._s(e.expandedOption.label))])]),e._l(e.expandedOption.options,(function(n,i){return t("a",{key:i,staticClass:"option flex gap-4 justify-start items-center small",class:{active:e.isCurrentOption(n)},on:{click:function(t){return t.stopPropagation(),e.selectOption(n)}}},[e._v(e._s(n.label))])}))]:e._e()],2)]):e._e()]):e._e()])},Ju=[],Qu=function(){var e=this,t=e._self._c;return t("fa-icon",{staticClass:"CancelButton",attrs:{icon:"times"},on:{click:function(t){return t.preventDefault(),e.click.apply(null,arguments)}}})},eh=[];let th=(Wu=Ic({name:"CancelButton"}),Wu(Gu=class extends(la()){click(e){this.$emit("clicked",e)}})||Gu);var nh,ih,rh,oh,sh,ah,lh=th,ch=Uc(lh,Qu,eh,!1,null,"572a4c72",null),uh=ch.exports,hh=i(8273),dh=i.n(hh);let ph=(nh=Ic({components:{CancelButton:uh},props:{optionsArray:Array,entityName:String,currentOptionValues:Array,multiple:{type:Boolean,default:!1},multipleCompressed:{type:Boolean,default:!0},required:{type:Boolean,default:!1},selectDefaultOptions:{type:Boolean,default:!1},useAsInvisibleButton:{type:Boolean,default:!1},showBackOption:{type:Boolean,default:!0},tooltip:String}}),ih=Dc("optionsArray"),rh=Dc("currentOptionValues"),oh=Dc("outer_currentOptionValues"),nh((ah=class extends(la()){constructor(...e){super(...e),this.options=null,this.showOptions=!1,this.currentOptions=[],this.expandedOption=null,this.lastInteraction=null,this.outer_currentOptionValues=[]}created(){this.init()}handle(){this.init(),this.hasCurrentOptions&&this.refreshCurrentOptions()}changeCurrentOptionFromOutside(){if(!this.options)return;if(this.hasCurrentOptions&&this.inner_CurrentOptionValues===this.outer_currentOptionValues)return;const e=this.findOptionsByValues(this.outer_currentOptionValues);this.selectOptions(e,!1)}init(){if(this.options=this.optionsArray,this.currentOptionValues&&(this.outer_currentOptionValues=this.currentOptionValues),this.options&&void 0===this.options[0].value){let e=0;for(const t of this.options){t.value=e,e++;for(const n of t.options)n.value=e,e++}}}get valid(){return!this.required||this.hasCurrentOptions}get hasCurrentOptions(){return!!this.currentOptions.length}get inner_CurrentOptionValues(){return this.hasCurrentOptions?dh().map(this.currentOptions,(e=>e.value)):[]}get theOnlyCurrentOption(){return 1===this.currentOptions.length?this.currentOptions[0]:null}forceShowOptions(e,t=null){this.logInteraction(),this.showOptions=e,this.expandOption(this.findOptionByValue(t))}getOptionsData(e){return dh().map(e,(e=>e.data))}findOptionsByValues(e){const t=[];for(const n of e){const e=this.findOptionByValue(n);e&&t.push(e)}return t}findOptionByValue(e){let t=null;if(t=this.options.find((t=>t.value===e)),!t)for(const n of this.options)if(n.options&&n.options.length&&(t=n.options.find((t=>t.value===e)),t))break;return t}selectOptions(e,t=!0){if(this.logInteraction(),t&&!this.matchCurrentOptions(e)){const t=e.length&&this.optionsHaveData?this.getOptionsData(e):e,n=this.hasCurrentOptions&&this.optionsHaveData?this.getOptionsData(this.currentOptions):this.currentOptions;this.$emit("changed",t,n)}this.currentOptions=e,this.showOptions=!1,this.expandedOption=this.theOnlyCurrentOption&&this.theOnlyCurrentOption.options?this.theOnlyCurrentOption:this.expandedOption}selectOption(e,t=!0){if(this.currentOptions.includes(e))this.removeOption(e);else{let t;t=this.multiple?[...this.currentOptions,e]:[e],this.selectOptions(t)}}removeOption(e,t=!0){if(this.currentOptions.includes(e)){const t=this.currentOptions.filter((t=>t.value!==e.value));this.selectOptions(t)}}expandOption(e){this.logInteraction(),this.expandedOption=e}optionsHaveData(e){return!(!this.options.length||!this.options[0].data)}matchCurrentOptions(e){return this.currentOptions===e}isCurrentOption(e){return this.currentOptions&&e?this.currentOptions.some((t=>t.value===e.value)):!this.currentOptions&&!e}refreshCurrentOptions(){const e=this.findOptionsByValues(this.inner_CurrentOptionValues);this.currentOptions=e??[]}clear(e){e.stopPropagation(),this.selectOptions([]),this.expandOption(null),this.showOptions=!1}close(){this.recentlyInteracted()||(this.showOptions=!1)}logInteraction(){this.lastInteraction=(new Date).valueOf()}recentlyInteracted(){const e=(new Date).valueOf();return e-this.lastInteraction<500}isMobile(){return Lc.isMobile()}},qu(ah.prototype,"handle",[ih,rh],Object.getOwnPropertyDescriptor(ah.prototype,"handle"),ah.prototype),qu(ah.prototype,"changeCurrentOptionFromOutside",[oh],Object.getOwnPropertyDescriptor(ah.prototype,"changeCurrentOptionFromOutside"),ah.prototype),sh=ah))||sh);var fh,mh,gh,vh,yh=ph,_h=Uc(yh,Yu,Ju,!1,null,"612754e6",null),bh=_h.exports,xh=function(){var e=this,t=e._self._c;return e.AppIsInitialized?t("div",{staticClass:"TheSmallHeaderNavigationButtons",class:{mobile:e.isMobile()}},[e.$root.isPreviewMode?e._e():t("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.Store.getUiWording("ui.term.search"),expression:"Store.getUiWording('ui.term.search')"}],staticClass:"item",on:{click:e.invokeSearch}},[t("fa-icon",{attrs:{icon:"search"}}),e.isMobile()?t("label",{staticClass:"font-bold"},[e._v(e._s(e.Store.getUiWording("ui.term.search")))]):e._e()],1),e.$root.isPreviewMode?e._e():t("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.Store.getUiWording("ui.term.watchlist"),expression:"Store.getUiWording('ui.term.watchlist')"}],attrs:{nounderline:""},on:{click:function(t){return e.navigate({name:"Bookmarks"})}}},[t("fa-icon",{staticClass:"item bookMarksIcon",class:{pulsing:e.bookmarksHaveBeenChanged,active:e.User.bookmarks.length>0},attrs:{icon:"star"}}),e.isMobile()?t("label",{staticClass:"font-bold"},[e._v(e._s(e.Store.getUiWording("ui.term.watchlist")))]):e._e()],1),t("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.Store.getUiWording("ui.entry.add-offer"),expression:"Store.getUiWording('ui.entry.add-offer')"}],staticClass:"item addIcon",attrs:{nounderline:""},on:{click:function(t){return e.navigate({name:"Add"})}}},[t("fa-icon",{attrs:{icon:"plus"}})],1)]):e._e()},wh=[];let Ch=(fh=Ic({props:["phpmode"]}),mh=Dc("User.bookmarks"),fh((vh=class extends Gc{constructor(...e){super(...e),this.bookmarksHaveBeenChanged=!1}showSearch(){return!this.$route.name.includes("Search")}invokeSearch(){const e=this.Store.getCurrentQuery();null===e.entryType&&this.Store.changeCurrentQuery({entryType:"offer"}),this.navigate("search")}bookmarksChanged(){this.bookmarksHaveBeenChanged=!0,setTimeout((()=>{this.bookmarksHaveBeenChanged=!1}),1e3)}isMobile(){return Lc.isMobile()}},qu(vh.prototype,"bookmarksChanged",[mh],Object.getOwnPropertyDescriptor(vh.prototype,"bookmarksChanged"),vh.prototype),gh=vh))||gh);var kh,Sh,Eh=Ch,Th=Uc(Eh,xh,wh,!1,null,"b335b718",null),Mh=Th.exports,Ah=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toolbar",class:{mobile:e.device.isMobile(),shiftAway:e.$root.isWidget}},[e._t("default")],2)},Oh=[];let Ih=(kh=Ic({props:["entriesCount"]}),kh(Sh=class extends Gc{print(){this.$emit("print")}})||Sh);var Dh,Ph,zh=Ih,Lh=Uc(zh,Ah,Oh,!1,null,"44b16cc4",null),Bh=Lh.exports,Fh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"Contact"},[e.title?t("p",{staticClass:"small semibold"},[e._v(" "+e._s(e.title)+" ")]):e._e(),e.persons?e._l(e.persons,(function(n){return t("div",{key:n.id,staticClass:"infoblock"},[t("fa-icon",{staticClass:"small icon h-3",attrs:{icon:"user"}}),t("p",[n.name?t("span",{staticClass:"semibold",staticStyle:{display:"block"}},[e._v(e._s(n.name))]):e._e(),n.role?t("span",{staticStyle:{display:"block"}},[e._v(e._s(n.role))]):e._e(),n.email?t("a",{staticStyle:{display:"block"},attrs:{href:e._f("deriveURIScheme")(n.email)}},[e._v(e._s(n.email))]):e._e(),n.phone?e._l(n.phone.split(","),(function(n){return t("a",{key:n,staticStyle:{display:"block"},attrs:{href:e._f("deriveURIScheme")(n)}},[e._v(e._s(n))])})):e._e(),e._l(n.keyfacts,(function(n){return t("a",{key:n.id,staticClass:"infoblock",attrs:{href:e._f("deriveURIScheme")(n.value)}},[e._v(e._s(n.value)+" "),n.display_name?[e._v("("+e._s(n.display_name)+")")]:e._e()],2)}))],2)],1)})):e._e(),t("location",{attrs:{location:e.location}}),e._l(e.urls,(function(n){return[n?t("div",{key:"url-"+n.id,staticClass:"infoblock small"},[t("fa-icon",{staticClass:"icon",attrs:{icon:"link"}}),t("div",[e.showRawLinks&&n.title?t("span",[e._v(e._s(n.title)),t("br")]):e._e(),t("a",{staticClass:"url",attrs:{href:e.cleanUrl(n.url),target:"_blank"}},[e._v(e._s(n.title&&!e.showRawLinks?n.title:e.cleanUrl(n.url)))])])],1):e._e()]}))],2)},Rh=[];let $h=(Dh=Ic({props:["contact","customTitle","showRawLinks"]}),Dh(Ph=class extends(la()){get title(){return this.customTitle??this.contact.title}get persons(){return this.contact.contact_persons.length?this.contact.contact_persons:null}get location(){return this.contact.linked_locations.length?this.contact.linked_locations[0].location:null}get urls(){return this.contact.contact_urls}cleanUrl(e){return e.includes("http")?e:"https://"+e}})||Ph);var Nh,jh,Vh=$h,Uh=Uc(Vh,Fh,Rh,!1,null,"218c2af0",null),qh=Uh.exports,Hh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"Location"},[e.location&&(e.location.title||e.location.street||e.location.city)?t("div",{staticClass:"infoblock"},[t("fa-icon",{staticClass:"small icon h-3",attrs:{icon:"map-marker-alt"}}),t("p",[e.location.title?t("span",{staticClass:"semibold",staticStyle:{display:"block"}},[e._v(e._s(e.location.title))]):e._e(),e.location.street?t("span",{staticStyle:{display:"block"}},[e._v(e._s(e.location.street))]):e._e(),e.location.zip?t("span",[e._v(e._s(e.location.zip)+" ")]):e._e(),e.location.city?t("span",[e._v(e._s(e.location.city))]):e._e()])],1):e._e(),e.location&&e.location.directions?t("div",{staticClass:"infoblock"},[t("fa-icon",{staticClass:"small icon",attrs:{icon:"route"}}),t("p",[e._v(e._s(e.location.directions))])],1):e._e()])},Wh=[];let Gh=(Nh=Ic({props:["location"]}),Nh(jh=class extends(la()){})||jh);var Zh,Xh,Kh=Gh,Yh=Uc(Kh,Hh,Wh,!1,null,"406cf804",null),Jh=Yh.exports,Qh=function(){var e=this,t=e._self._c;return e.subset&&!e.$root.isWidget?t("header",{staticClass:"MainHeader",class:{mobile:e.device.isMobile()}},[e.device.isMobile()?[t("afeefa-button"),t("the-button-navi",{staticClass:"col3",attrs:{phpmode:e.phpmode}}),t("language-selector",{attrs:{"display-only":!0},nativeOn:{click:function(t){return e.$root.toggleMainMenu()}}})]:[t("div",{staticClass:"col1"},[t("afeefa-button"),t("bread-crumb",{attrs:{phpmode:e.phpmode,breadcrumb:e.breadcrumb}})],1),t("div",{staticClass:"col2"},[t("div",{staticClass:"title bold"},[e._v(" "+e._s(e.subset.title)+" ")]),e.$root.isPreviewMode?e._e():t("language-selector",{attrs:{small:!0}})],1),t("the-button-navi",{staticClass:"col3",attrs:{phpmode:e.phpmode}})]],2):e._e()},ed=[];let td=(Zh=Ic({props:["phpmode","breadcrumb"]}),Zh(Xh=class extends Gc{})||Xh);var nd,id,rd=td,od=Uc(rd,Qh,ed,!1,null,"4ea8327f",null),sd=od.exports,ad=function(){var e=this,t=e._self._c;return e.AppIsInitialized?t("aside",{staticClass:"MainMenu",class:{mobile:e.device.isMobile(),inactive:!e.active},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close.apply(null,arguments)}}},[t("div",{staticClass:"theMenu"},[e.$root.isPreviewMode?e._e():t("language-selector"),e.$root.isPreviewMode?e._e():t("div",{staticClass:"divider"}),e.$root.isPreviewMode?e._e():t("a",{staticClass:"menuItem link",attrs:{href:"/"+e.User.getSubset()}},[e._v("Startseite")]),e.$root.isPreviewMode?e._e():t("a",{staticClass:"menuItem link",on:{click:function(t){return e.goToBookmarks()}}},[e._v(e._s(e.Store.getUiWording("ui.term.watchlist")))]),t("a",{staticClass:"menuItem link",on:{click:function(t){return e.goToAdd()}}},[e._v(" "+e._s(e.Store.getUiWording("ui.entry.add-offer"))+" ")]),e.$root.isPreviewMode?e._e():t("a",{staticClass:"menuItem link",attrs:{href:"/blog"}},[e._v("Blog")]),t("a",{staticClass:"menuItem link",attrs:{href:"/impressum"}},[e._v("Impressum")]),t("div",{staticClass:"divider"}),e.subsets?e._l(e.subsets,(function(n){return t("a",{key:n.id,staticClass:"menuItem link",class:{active:n.slug===e.User.getSubset()},attrs:{href:"/"+n.slug}},[t("span",[e._v(e._s(n.title))]),t("span",{staticClass:"small"},[e._v(e._s(e.translate(n,"slogan")))])])})):e._e(),t("div",{staticClass:"divider"}),t("div",{staticClass:"menuItem center small"},[e._v(" ❤ Afeefa - Digitaler Zusammenhalt e.V. ")]),t("Cancel-Button",{staticClass:"center",on:{clicked:e.close}})],2)]):e._e()},ld=[];let cd=(nd=Ic({components:{CancelButton:uh},props:["active","phpmode"]}),nd(id=class extends Gc{selectSubset(e){this.User.setSubset(e),this.navigate({name:"Home"}),this.close()}close(){this.$emit("close")}get subsets(){return this.Store.subsets}goToBookmarks(){this.navigate({name:"Bookmarks"}),this.close()}goToAdd(){this.navigate({name:"Add"}),this.close()}})||id);var ud,hd,dd=cd,pd=Uc(dd,ad,ld,!1,null,"833e0a76",null),fd=pd.exports,md=function(){var e=this,t=e._self._c;return t("div",{class:["AfeefaMap",{active:e.active},{mobile:e.isMobile()},{print:e.isPrint()}],on:{mousedown:e.activate}},[t("div",{ref:"map"}),t("Map-Popup",{ref:"popup",attrs:{marker:e.currentMarker,"only-show-subtitle":e.onlyShowSubtitle,"text-color":e.textColor,"link-marker-title":e.linkMarkerTitle}}),e.useCustomMarker?e._l(e.markers,(function(n,i){return t("div",{key:n.id+"-"+i,ref:"markerTemplate"+n.id,refInFor:!0,staticClass:"customMarker",on:{click:e.clickMarker}},[e._t("marker",(function(){return[t("div",[e._v("default marker content")])]}),{index:i,marker:n})],2)})):e._e()],2)},gd=[],vd=i(6416),yd=i.n(vd),_d=function(){var e=this,t=e._self._c;return t("div",{staticClass:"MapPopup",style:"color: "+e.textColor},[e.marker&&e.marker.subtitle&&e.onlyShowSubtitle?t("div",{staticClass:"popupSubTitle",domProps:{innerHTML:e._s(e.marker.subtitle)}}):e.marker?[e.marker.title?t("div",{staticClass:"popupTitle"},[e.marker.link&&e.linkMarkerTitle?t("router-link",{attrs:{to:e.marker.link}},[e._v(" "+e._s(e.marker.title)+" ")]):[e._v(" "+e._s(e.marker.title)+" ")]],2):e._e(),e.marker.subtitle?t("div",{staticClass:"popupSubTitle",domProps:{innerHTML:e._s(e.marker.subtitle)}}):e._e(),e.marker.text?t("div",{staticClass:"popupText",domProps:{innerHTML:e._s(e.marker.text)}}):e._e(),e.marker.link&&e.marker.linktext?t("div",{staticClass:"popupLink"},[t("router-link",{attrs:{to:e.marker.link}},[e._v(" "+e._s(e.marker.linktext)+" ")])],1):e._e()]:e._e()],2)},bd=[];let xd=(ud=Ic({props:["marker","onlyShowSubtitle","textColor","linkMarkerTitle"]}),ud(hd=class extends(la()){})||hd);var wd,Cd,kd,Sd,Ed,Td,Md=xd,Ad=Uc(Md,_d,bd,!1,null,"07c83e20",null),Od=Ad.exports;let Id=(wd=Ic({components:{MapPopup:Od},props:["markersData","selectedMarkerId","focusSelectedMarker","initialMapCenter","initialMapZoom","markerColor","activeMarkerColor","textColor","linkMarker","linkMarkerTitle","onlyShowSubtitle","useCustomMarker","markerRadius","doNotBlockInteraction","hideControls"]}),Cd=Dc("markersData"),kd=Dc("markers"),Sd=Dc("selectedMarkerId"),wd((Td=class extends(la()){constructor(...e){super(...e),this.map=null,this.markers=null,this.mapMarkers=[],this.active=!1,this.currentMapMarker=null,this.currentPopup=null,this.focusedEntryZoom=14}created(){this.markersData&&(this.markers=this.markersData)}mounted(){this.initMap(),window.addEventListener("click",this.onClickOutside)}destroyed(){window.removeEventListener("click",this.onClickOutside)}handleDataChange(){(!this.markersData.length||this.markersData&&dh().difference(this.markersData,this.markers).length)&&(this.markers=this.markersData)}handleMarkersChange(){this.updateMarkers()}updateMarkers(){this.map||this.initMap(),this.removeMarkers(),this.markers.length&&this.$nextTick((function(){if(this.addMarkers(),this.selectedMarkerId){const e=this.mapMarkers.find((e=>e.data.id===this.selectedMarkerId));e&&this.focusSelectedMarker&&(this.map.setCenter([e.data.long,e.data.lat]),this.map.easeTo({center:[e.data.long,e.data.lat+.002],zoom:this.focusedEntryZoom})),e&&this.activateMarker(e)}this.focusSelectedMarker||this.zoomToFitMarkers()}))}zoomToFitMarkers(){const e=[],t=[];this.markers.forEach((n=>{e.push(n.lat),t.push(n.long)}));const n=Math.min.apply(null,e),i=Math.max.apply(null,e),r=Math.min.apply(null,t),o=Math.max.apply(null,t),s=[[r,n],[o,i]];this.map.fitBounds(s,{padding:100,linear:!0,maxZoom:this.focusedEntryZoom})}initMap(){yd().accessToken="pk.eyJ1IjoiYWZlZWZha29sbGVrdGl2IiwiYSI6ImNrYmhuNDdnNjA2eGIydHBqNnI3d2J5eW4ifQ.32slDxhkqQex7kZkyoXXhQ",this.map=new(yd().Map)({container:this.$refs.map,style:"mapbox://styles/afeefakollektiv/cloh2nwt2000901qoeqe5gduq",center:this.initialMapCenter,zoom:this.initialMapZoom,attributionControl:!1,preserveDrawingBuffer:this.isPrint()}),this.hideControls||this.isMobile()||(this.map.addControl(new(yd().NavigationControl)({showCompass:!1}),"bottom-right"),this.map.addControl(new(yd().FullscreenControl))),this.map.on("click",(e=>this.onMapClick(e))),this.doNotBlockInteraction?this.activate():this.deactivate(),setTimeout((()=>{this.map.resize()}))}activate(){this.active=!0,this.map.scrollZoom.enable(),this.map.dragPan.enable()}deactivate(){this.doNotBlockInteraction||(this.active=!1,this.map.scrollZoom.disable(),this.isMobile()&&this.map.dragPan.disable())}onClickOutside(e){this.$el.contains(e.target)||this.deactivate()}clickMarker(){this.linkMarker&&!this.isMobile()&&this.$router.push({path:this.currentMarker.link})}focusMarker(){const e=this.mapMarkers.find((e=>e.data.id===this.selectedMarkerId));this.activateMarker(e)}get currentMarker(){return this.currentMapMarker&&this.currentMapMarker.data||null}addMarkers(){for(const e of this.markers){const t=this.useCustomMarker?this.markerRadius:10,n={top:[0,t/2],bottom:[0,-t/2],left:[t/2,0],right:[-t/2,0]},i=new(yd().Popup)({offset:n,closeButton:!1,focusAfterOpen:!1,closeOnClick:!1});let r=null;r=this.useCustomMarker?new(yd().Marker)({element:this.$refs["markerTemplate"+e.id][0]}):new(yd().Marker)({color:this.markerColor}),r.setLngLat([e.long,e.lat]).setPopup(i).addTo(this.map);const o=r.getElement();o.addEventListener("click",(e=>this.onMarkerClick(e,r))),o.addEventListener("mouseenter",(e=>this.onMarkerHover(e,r))),r.data=e,this.mapMarkers.push(r)}}removeMarkers(){for(const e of this.mapMarkers)e.remove();this.mapMarkers=[],this.currentMapMarker=null}onMapClick(e){this.activateMarker(null)}onMarkerClick(e,t){return e.stopPropagation()}onMarkerHover(e,t){this.activateMarker(t)}activateMarker(e){if(this.currentMapMarker){if(this.currentMapMarker===e)return;this.setMarkerColor(this.currentMapMarker,this.markerColor),this.hidePopup(this.currentMapMarker)}this.currentMapMarker=e,this.currentMapMarker&&(this.setMarkerColor(this.currentMapMarker,this.activeMarkerColor),this.showPopup(this.currentMapMarker))}setMarkerColor(e,t){if(this.useCustomMarker)return;const n=e.getElement(),i=n.querySelector("svg g g:nth-child(2)");i.setAttribute("fill",t)}hidePopup(e){try{e&&e.togglePopup()}catch(Ix){}}showPopup(e){e.getPopup().setDOMContent(this.$refs.popup.$el);try{e.togglePopup()}catch(Ix){}}isMobile(){return Lc.isMobile()}isPrint(){return window.matchMedia("print").matches}},qu(Td.prototype,"handleDataChange",[Cd],Object.getOwnPropertyDescriptor(Td.prototype,"handleDataChange"),Td.prototype),qu(Td.prototype,"handleMarkersChange",[kd],Object.getOwnPropertyDescriptor(Td.prototype,"handleMarkersChange"),Td.prototype),qu(Td.prototype,"focusMarker",[Sd],Object.getOwnPropertyDescriptor(Td.prototype,"focusMarker"),Td.prototype),Ed=Td))||Ed);var Dd,Pd,zd=Id,Ld=Uc(zd,md,gd,!1,null,"96b29924",null),Bd=Ld.exports,Fd=function(){var e=this,t=e._self._c;return e.items&&e.navigation?t("div",{staticClass:"ElementList",class:{mobile:e.isMobile(),flex:e.itemsAreGrouped}},[e.itemsAreGrouped?e._l(e.items,(function(n,i){return t("div",{key:i,staticClass:"group"},[e._v(" "+e._s(e.setCurrentItem(null))+" "+e._s(e.setLastItem(null))+" "),t("h3",{staticClass:"spotlight center listHeading",on:{click:function(t){e.isCategoryGroupee(n.groupee)&&e.selectCategory(n.groupee)}}},[n.label?t("a",{attrs:{nounderline:""}},[e.isCategoryGroupee(n.groupee)?t("entry-circle",{attrs:{color:n.groupee.color}}):e._e(),e._v(" "+e._s(n.label))],1):e._e()]),t("div",{staticClass:"items flex flex-col gap-0.5"},[e._l(n.items,(function(n){return[e._v(" "+e._s(e.setCurrentItem(n))+" "),e.getLastItem()&&e.getCurrentItem().entry.type!=e.getLastItem().entry.type?t("div",{key:"divider"+n.id,staticClass:"divider small"},[e._v(" -- "+e._s(e.ModelHelpers.getReadableEntity(e.getCurrentItem().entry.type))+" ")]):e._e(),t("list-element",{key:n.id,attrs:{element:n,showDescription:e.showDescription,elementType:e.elementType},on:{mouseover:e.mouseover}}),e._v(" "+e._s(e.setLastItem(e.getCurrentItem()))+" ")]}))],2)])})):[t("div",{staticClass:"items grid gap-0.5",class:{"grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5":e.multicolumn}},[t("Search-Sidebar",{staticClass:"row-span-2 flex place-content-center place-items-center p-4 pr-8",staticStyle:{width:"auto"}}),e._l(e.items,(function(n,i){return t("list-element",{key:i+"-"+n.id,attrs:{element:{id:n.id,entry:n},showDescription:e.showDescription,elementType:e.elementType},on:{mouseover:e.mouseover}})}))],2)],e.items.length?e._e():t("p",{staticClass:"bold"},[e._v(" Nichts gefunden ")])],2):e._e()},Rd=[],$d=function(){var e=this,t=e._self._c;return t("article",{staticClass:"ListElement white-box px-4 py-6 relative",class:{pinned:e.element.entry.pinned,visited:e.styleAsVisited,mobile:e.device.isMobile()},on:{mouseover:function(t){return e.mouseover(e.element.entry)}}},[t("bookmark-star",{staticClass:"absolute bottom-4 right-4 hidden opacity-80",attrs:{item:e.element.entry,label:!1}}),t("div",{staticClass:"flex flex-col gap-2 cursor-pointer",attrs:{nounderline:""},on:{click:e.openEntry}},[e.metaInfo?t("div",{staticClass:"meta small flex justify-between"},[t("span",[e._v(e._s(e.metaInfo))]),e.ModelHelpers.isEvent(e.element.entry)?t("fa-icon",{staticClass:"justify-self-center opacity-20",attrs:{icon:"calendar"}}):e._e(),e.ModelHelpers.isOfferType(e.element.entry,"sport")?t("fa-icon",{staticClass:"justify-self-center opacity-20",attrs:{icon:"volleyball"}}):e._e(),e.ModelHelpers.isOfferType(e.element.entry,"language")?t("fa-icon",{staticClass:"justify-self-center opacity-20",attrs:{icon:"language"}}):e._e()],1):e._e(),t("h2",{staticClass:"title semibold m-0"},[e._v(" "+e._s(e._f("slice")(e.translate(e.element.entry,"title"),0,100))+" ")]),e.showDescription&&e.element.entry.description?[t("div",{staticClass:"small"},[e._v(" "+e._s(e.ModelHelpers.sliceAfterWords(e.translate(e.element.entry,"description"),15))+" ")])]:e._e()],2)],1)},Nd=[],jd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"BookmarkStar",class:{active:e.User.isBookmarked(e.item)},on:{click:function(t){return e.User.toggleBookmark(e.item)}}},[t("fa-icon",{class:{icon:!0,active:e.User.isBookmarked(e.item)},attrs:{icon:"star",title:e.titleHint}}),e.label?t("label",[e._v(e._s(e.titleHint))]):e._e()],1)},Vd=[];let Ud=(Dd=Ic({props:{item:{type:Object,default:null},label:{type:Boolean,default:!0}}}),Dd(Pd=class extends(la()){get titleHint(){return this.User.isBookmarked(this.item)?this.Store.getUiWording("ui.watchlist.remove-from-watchlist"):this.Store.getUiWording("ui.watchlist.add-to-watchlist")}})||Pd);var qd,Hd,Wd=Ud,Gd=Uc(Wd,jd,Vd,!1,null,"5f899819",null),Zd=Gd.exports;let Xd=(qd=Ic({components:{BookmarkStar:Zd},props:["element","showDescription","elementType"]}),qd(Hd=class extends Gc{constructor(...e){super(...e),this.styleAsVisited=!1}modelTypeCategory(e){return this.ModelHelpers.getModelTypeCategory(e)}openEntry(){const e=this.ModelHelpers.getEntryUrl(this.element.entry);this.$router.push({path:e,query:{l:this.User.getLanguage()}}),this.styleAsVisited=!0}get navigationCategories(){return this.ModelHelpers.getNavigationCategories(this.element.entry,{sub:!0})}get modelTypeCategoryString(){const e=this.element.entry,t=this.ModelHelpers.getOnewordKeyfact(this.entry),n=t?this.translate(t,"value"):null,i=this.modelTypeCategory(e),r=i?this.translate(i,"title"):"";return n&&i?`${n} (${r})`:n||r}selectCategory(e){e&&(this.Store.addCategoryToQueryExcklusivelyInType(e),this.navigate("search"))}mouseover(e){this.$emit("mouseover",e)}get metaInfo(){const e=[];if(this.modelTypeCategoryString&&e.push(this.modelTypeCategoryString),this.element?.meta?.start){const t=this.element.meta.hasStartTime?Dr(this.element.meta.start.date,"HH:ss"):null;t&&e.push(t)}else{const t=this.element?.entry?.occurrences??null;if(t?.length){const n=t[0]?.start?.date??null;n&&e.push(Dr(n,"dd.mm. 'um' HH:MM"))}}return e.length?e.join(" | "):null}})||Hd);var Kd,Yd,Jd=Xd,Qd=Uc(Jd,$d,Nd,!1,null,"2a4f2c79",null),ep=Qd.exports,tp=function(){var e=this,t=e._self._c;return e.Store.hasCategoryTypes()&&e.currentNavigationCategory?.description?t("aside",{staticClass:"SearchSidebar text-base",class:{mobile:e.isMobile()}},[t("div",{staticClass:"flex flex-col relative cursor-pointer",on:{click:function(t){e.showFullContent=!0}}},[t("div",{staticClass:"font-bold text-lg"},[e._v(e._s(e.translate(e.currentNavigationCategory,"title")))]),t("div",{staticClass:"categoryDescriptionPreview text-sm overflow-hidden font-bold",domProps:{innerHTML:e._s(e.translate(e.currentNavigationCategory,"description"))}}),e._m(0),t("span",{staticClass:"h-full aspect-square absolute -left-8 -top-8 opacity-10",style:{"z-index":"-1","mask-image":"url("+e.currentNavigationCategory.media[0]?.file.url+")","background-color":e.currentNavigationCategory.color,"mask-size":"contain","mask-repeat":"no-repeat","mask-position":"center"}})]),e.showFullContent?t("Modal",{attrs:{"has-close-button":""},on:{close:function(t){e.showFullContent=!1}}},[t("h3",{staticClass:"font-bold m-0"},[e._v(e._s(e.translate(e.currentNavigationCategory,"title")))]),e.currentNavigationCategory.description?t("div",{staticClass:"text-sm",domProps:{innerHTML:e._s(e.translate(e.currentNavigationCategory,"description"))}}):e._e()]):e._e()],1):e._e()},np=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"text-xs mt-2 font-bold"},[t("span",{staticClass:"underline"},[e._v("Mehr Informationen")]),e._v(" »")])}],ip=function(){var e=this,t=e._self._c;return t("div",{staticClass:"Modal fixed z-30 flex p-8 md:p-0 place-items-end md:place-items-center place-content-center top-0 left-0 w-full h-full bg-black bg-opacity-60"},[t("div",{staticClass:"relative h-auto max-h-[80vh] w-full md:w-2/3 md:max-w-[300ch] bg-gray shadow rounded-xl flex flex-col"},[t("div",{staticClass:"h-full w-full md:w-full overflow-y-scroll flex flex-col gap-4 p-8"},[e._t("default",(function(){return[t("div",[e._v("placeholder content")])]}))],2),e.hasCloseButton?t("cancel-button",{staticClass:"absolute -top-4 -left-4 text-lg",on:{clicked:function(t){return e.$emit("close")}}}):e._e()],1)])},rp=[];let op=(Kd=Ic({props:{hasCloseButton:Boolean}}),Kd(Yd=class extends Gc{})||Yd);var sp,ap,lp=op,cp=Uc(lp,ip,rp,!1,null,null,null),up=cp.exports;let hp=(sp=Ic({components:{Modal:up}}),sp(ap=class extends Gc{constructor(...e){super(...e),this.showFullContent=!1}get currentNavigationCategory(){let e=null;const t=this.Store.getNavigation(),n=this.Store.getQueriedCategoriesOfType(t.id);return n&&(e=this.Store.getCategoryById(n[0])),e??null}isMobile(){return Lc.isMobile()}})||ap);var dp,pp,fp=hp,mp=Uc(fp,tp,np,!1,null,"141b563c",null),gp=mp.exports;let vp=(dp=Ic({components:{ListElement:ep,SearchSidebar:gp},props:{items:{type:Array,default:()=>[]},multicolumn:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},elementType:{type:String,default:"default"}}}),dp(pp=class extends Gc{get itemsAreGrouped(){return void 0!==this?.items[0]?.groupee}mouseover(e){this.$emit("mouseover",e)}selectCategory(e){e&&(this.Store.addCategoryToQueryExcklusivelyInType(e),this.navigate("search"))}isCategoryGroupee(e){return e&&e.type&&e.type.includes("Category")}isMobile(){return Lc.isMobile()}setCurrentItem(e){this.currentItem=e}getCurrentItem(){return this.currentItem}setLastItem(e){this.lastItem=e}getLastItem(){return this.lastItem}})||pp);var yp,_p,bp=vp,xp=Uc(bp,Fd,Rd,!1,null,"79f4c21b",null),wp=xp.exports,Cp=function(){var e=this,t=e._self._c;return e.Store.hasCategoryTypes()?t("div",{staticClass:"FilterControls flex gap-[2em] items-center"},[t("select-button",{staticClass:"inline-block",attrs:{"entity-name":e.translate(e.navigation,"display_name").split(",")[1],"options-array":e.ModelHelpers.mapCategoryTypeForSelectInput(e.navigation),"current-option-values":e.getCurrentCategories(e.navigation.id),tooltip:e.getTooltip(e.navigation)},on:{changed:function(t){return e.invokeSearch(e.navigation,...arguments)}}}),e._l(e.editableCategoryTypesForOfferModelType,(function(n){return t("select-button",{key:n.id,attrs:{"entity-name":e.translate(n,"display_name").split(",")[1],"options-array":e.ModelHelpers.mapCategoryTypeForSelectInput(n),"current-option-values":e.getCurrentCategories(n.id),tooltip:e.getTooltip(n),multiple:n.options.includes("filter_multiple")},on:{changed:function(t){return e.invokeSearch(n,...arguments)}}})})),t("select-button-simple",{attrs:{label:"Filter","label-active":e.numberOfActiveFilters+" aktive Filter",icon:"list-check",active:e.numberOfActiveFilters>0},on:{clicked:function(t){e.showSecondaryFilters=!0},cleared:function(t){return e.clearAllSecondaryCategoryTypeFilters()}}}),e.showSecondaryFilters?t("modal",[t("div",{staticClass:"px-8 py-4 text-center font-bold border border-l-0 border-r-0 border-t-0 border-solid border-white"},[e._v(" Filter ")]),t("div",{staticClass:"grow py-8 flex flex-col gap-8 overflow-y-scroll"},[t("entry-type-selector",{staticClass:"px-8"}),t("div",e._l(e.filterableCategoriesGrouped,(function(n){return t("div",{staticClass:"py-4 border border-l-0 border-r-0 border-b-0 border-solid border-white"},[t("div",{staticClass:"px-8 flex flex-wrap gap-8 items-start"},e._l(n.categoryTypes,(function(n){return t("select-button",{key:n.id,attrs:{"entity-name":e.translate(n,"display_name").split(",")[1],"options-array":e.ModelHelpers.mapCategoryTypeForSelectInput(n),"current-option-values":e.getCurrentCategories(n.id),tooltip:e.getTooltip(n),multiple:n.options.includes("filter_multiple")},on:{changed:function(t){return e.invokeSearch(n,...arguments)}}})})),1)])})),0)],1),t("div",{staticClass:"px-8 border border-l-0 border-r-0 border-b-0 border-solid border-white"},[t("div",{staticClass:"button m-0",on:{click:function(t){e.showSecondaryFilters=!1}}},[e._v("OK")])])]):e._e()],2):e._e()},kp=[],Sp=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.tooltip?e.tooltip:null,expression:"tooltip ? tooltip : null"}],staticClass:"SelectButtonSimple",class:{mobile:e.isMobile()},on:{click:function(t){return e.$emit("clicked")}}},[t("button",{staticClass:"flex gap-4 place-items-center",class:{selected:e.active}},[e.icon?t("fa-icon",{staticClass:"icon",attrs:{icon:e.icon}}):e._e(),t("div",{staticClass:"text flex flex-col gap-1 place-items-start"},[t("div",{staticClass:"currentOptions flex gap-2 max-w-xs flex-wrap"},[e.active?t("div",[e._v(" "+e._s(e.labelActive)+" ")]):t("span",{staticClass:"currentOption capitalize"},[e._v(e._s(e.label))])])]),e.active?t("Cancel-Button",{staticClass:"clearButton",on:{clicked:e.clear}}):e._e()],1)])},Ep=[];let Tp=(yp=Ic({components:{CancelButton:uh},props:{active:{type:Boolean,default:!1},label:String,labelActive:String,icon:String,tooltip:String}}),yp(_p=class extends(la()){clear(e){e.stopPropagation(),this.$emit("cleared")}isMobile(){return Lc.isMobile()}})||_p);var Mp,Ap,Op,Ip,Dp=Tp,Pp=Uc(Dp,Sp,Ep,!1,null,"9b4db114",null),zp=Pp.exports,Lp=function(){var e=this,t=e._self._c;return e.AppIsInitialized?t("div",{staticClass:"EntryTypeSelector flex gap-2 border rounded",class:{mobile:e.device.isMobile()}},e._l(e.entryTypes,(function(n,i){return t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:n.label,expression:"entryType.label"}],key:"type"+i,staticClass:"item w-8 h-8 hover:bg-white rounded-full flex place-items-center place-content-center cursor-pointer",class:{active:e.isActive(n)},on:{click:function(t){return e.invokeSearch(n)}}},[t("fa-icon",{attrs:{icon:n.icon}})],1)})),0):e._e()},Bp=[];let Fp=(Mp=Ic({}),Ap=Dc("Store.currentQuery",{deep:!0,immediate:!0}),Mp((Ip=class extends Gc{constructor(...e){super(...e),this.currentEntryType=null,this.currentOfferTypes=null}handleQueryChange(){const e=this.Store.getCurrentQuery();this.setCurrentValues(e.entryType,e.offerTypes)}setCurrentValues(e,t){this.currentEntryType=e,this.currentOfferTypes=t}invokeSearch(e){this.setCurrentValues(e.query.entryType,e.query.offerTypes),this.Store.changeCurrentQuery(e.query),this.navigate("search")}isActive(e){const t=this.currentEntryType===e.query.entryType;if("offer"===e.query.entryType){const n=!this.currentOfferTypes||this.currentOfferTypes.includes(e.query?.offerTypes?.toString());return t&&n}return t}get entryTypes(){return[{label:"Akteure",icon:"user-friends",query:{entryType:"actor",offerTypes:null}},{label:"Angebote",icon:"hand-holding-heart",query:{entryType:"offer",offerTypes:null}},{label:"Veranstaltungen",icon:"calendar",query:{entryType:"offer",offerTypes:["event"]}},{label:"Sprachangebote",icon:"language",query:{entryType:"offer",offerTypes:["language"]}},{label:"Sportangebote",icon:"volleyball",query:{entryType:"offer",offerTypes:["sport"]}}]}},qu(Ip.prototype,"handleQueryChange",[Ap],Object.getOwnPropertyDescriptor(Ip.prototype,"handleQueryChange"),Ip.prototype),Op=Ip))||Op);var Rp,$p,Np=Fp,jp=Uc(Np,Lp,Bp,!1,null,"d947ee64",null),Vp=jp.exports;let Up=(Rp=Ic({components:{SelectButtonSimple:zp,EntryTypeSelector:Vp,Modal:up}}),Rp($p=class extends Gc{constructor(...e){super(...e),this.showSecondaryFilters=!1}clearCategoryTypeFilter(e){this.Store.clearCategoryTypesInQuery([e.id]),this.navigate("search")}clearAllSecondaryCategoryTypeFilters(){this.Store.clearFilterableCategoryTypesInQuery(),this.navigate("search")}invokeSearch(e,t){t&&t.length?(this.Store.setCategoriesInQuery(t),this.navigate("search")):this.clearCategoryTypeFilter(e)}getCurrentCategories(e){return this.Store.getQueriedCategoriesOfType(e)}get editableCategoryTypesForOfferModelType(){const e=this.Store.getCurrentQuery().offerTypes;return console.debug("currentOfferTypes",e),this.Store.getEditableCategoryTypes({entryType:"offer",offerTypes:1===e?.length?e:[]})}get numberOfActiveFilters(){return this.Store.getNumberOfFilterableCategoryTypesCategoriesInCurrentQuery()}get filterableCategoriesGrouped(){const e=[],t=this.Store.getCurrentQuery(),n=this.Store.getFilterableCategoryTypes({entryType:t.entryType,offerTypes:t.offerTypes}),i=n.filter((e=>null===e.target_type));i&&e.push({label:"Allgemeine Filter",categoryTypes:i});const r="actor"===t.entryType?"AFEEFA\\Actor":"AFEEFA\\Offer",o=n.filter((e=>e.target_type===r));if(o&&e.push({label:"Filter für "+r,categoryTypes:o}),"actor"===t.entryType){const t=n.filter((e=>"AFEEFA\\Offer"===e.target_type));t&&e.push({label:"Akteure nach ihren Angeboten filtern",categoryTypes:t})}return e}getTooltip(e){return e.description?"nach "+e.description+" filtern":null}})||$p);var qp,Hp,Wp,Gp,Zp,Xp=Up,Kp=Uc(Xp,Cp,kp,!1,null,"4c14ea94",null),Yp=Kp.exports,Jp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"SearchBar",class:{mobile:e.isMobile()}},[e.$root.isWidget?e._e():t("div",{staticClass:"group"},[t("search-field",{on:{fired:e.invokeSearch}}),t("filter-controls")],1),e.device.isMobile()?e._e():t("entry-type-selector")],1)},Qp=[],ef=function(){var e=this,t=e._self._c;return e.AppIsInitialized?t("div",{staticClass:"ModeSelector",class:{mobile:e.device.isMobile()}},[t("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:"Ergebnisse in Listen anzeigen",expression:"'Ergebnisse in Listen anzeigen'"}],class:{active:"listMode"===e.currentViewMode},on:{click:function(t){return e.changeViewMode("listMode")}}},[t("fa-icon",{staticStyle:{transform:"rotate(90deg)"},attrs:{icon:"bars"}}),t("label",[e._v(e._s(e.Store.getUiWording("ui.search.listview")))])],1),t("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:"Ergebnisse auf Karte anzeigen",expression:"'Ergebnisse auf Karte anzeigen'"}],class:{active:"mapMode"===e.currentViewMode},on:{click:function(t){return e.changeViewMode("mapMode")}}},[t("fa-icon",{staticStyle:{"font-size":"1.1em"},attrs:{icon:"map-marked-alt"}}),t("label",[e._v(e._s(e.Store.getUiWording("ui.search.mapview")))])],1),t("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:"Ergebnisse im Kalender anzeigen",expression:"'Ergebnisse im Kalender anzeigen'"}],class:{active:"calendarMode"===e.currentViewMode},on:{click:function(t){return e.changeViewMode("calendarMode")}}},[t("fa-icon",{attrs:{icon:"clock"}}),t("label",[e._v(e._s(e.Store.getUiWording("ui.search.calendar")))])],1)]):e._e()},tf=[];let nf=(qp=Ic({props:{outerCurrentViewMode:String}}),Hp=Dc("outerCurrentViewMode"),Wp=Dc("forcedCurrentViewMode"),qp((Zp=class extends Gc{constructor(...e){super(...e),this.currentViewMode="listMode",this.forcedCurrentViewMode=null}changeViewMode(e){this.currentViewMode=e,this.$emit("view-mode-changed",e)}mounted(){this.handleOuterViewModeChange()}handleOuterViewModeChange(){this.forcedCurrentViewMode=this.outerCurrentViewMode}forceViewMode(){this.currentViewMode=this.forcedCurrentViewMode}},qu(Zp.prototype,"handleOuterViewModeChange",[Hp],Object.getOwnPropertyDescriptor(Zp.prototype,"handleOuterViewModeChange"),Zp.prototype),qu(Zp.prototype,"forceViewMode",[Wp],Object.getOwnPropertyDescriptor(Zp.prototype,"forceViewMode"),Zp.prototype),Gp=Zp))||Gp);var rf,of,sf=nf,af=Uc(sf,ef,tf,!1,null,"a4862f42",null),lf=af.exports;let cf=(rf=Ic({components:{ModeSelector:lf,EntryTypeSelector:Vp}}),rf(of=class extends Gc{get categories(){return this.Store.getCategoryType(this.$route.path)}invokeSearch(e){this.Store.changeCurrentQuery({text:e}),this.navigate("search")}isMobile(){return Lc.isMobile()}})||of);var uf,hf,df,pf,ff,mf=cf,gf=Uc(mf,Jp,Qp,!1,null,"d9c4b610",null),vf=gf.exports,yf=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:!!e.shrinked&&"Suche starten",expression:"shrinked ? 'Suche starten' : false"}],staticClass:"SearchField",class:{filled:e.inputValue,shrinkable:e.shrinkable,shrinked:e.shrinked}},[t("fa-icon",{staticClass:"icon",attrs:{icon:"search"},on:{click:e.shrink}}),e.shrinked?e._e():[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"input",attrs:{placeholder:""},domProps:{value:e.inputValue},on:{keyup:e.fire,input:function(t){t.target.composing||(e.inputValue=t.target.value)}}}),e.inputValue&&!e.noCancel?t("Cancel-Button",{on:{clicked:e.clear}}):e._e()]],2)},_f=[];let bf=(uf=Ic({components:{CancelButton:uh},props:["shrinkable","noCancel"]}),hf=Dc("Store.currentQuery",{deep:!0}),df=Dc("inputValue"),uf((ff=class extends(la()){constructor(...e){super(...e),this.inputValue=null,this.shrinked=!1}handleQueryChange(){this.inputValue=this.Store.getCurrentQuery().text||""}mounted(){this.inputValue=this.Store.getCurrentQuery().text||"",this.shrinkable&&(this.shrinked=!0)}clear(){this.inputValue=null,this.shrinkable?this.shrinked=!0:this.$emit("fired",this.inputValue)}onChange(){this.$emit("changed",this.inputValue)}fire(e){13===e.keyCode&&this.$emit("fired",this.inputValue)}shrink(){this.shrinkable&&(this.shrinked=!this.shrinked),this.$nextTick((function(){this.shrinked||this.$refs.input.focus()}))}isMobile(){return Lc.isMobile()}},qu(ff.prototype,"handleQueryChange",[hf],Object.getOwnPropertyDescriptor(ff.prototype,"handleQueryChange"),ff.prototype),qu(ff.prototype,"onChange",[df],Object.getOwnPropertyDescriptor(ff.prototype,"onChange"),ff.prototype),pf=ff))||pf);var xf,wf,Cf=bf,kf=Uc(Cf,yf,_f,!1,null,"72df241f",null),Sf=kf.exports,Ef=function(){var e=this,t=e._self._c;return t("div",{staticClass:"SearchResults flex gap-8",class:[e.isMobile()?"mobile":"",e.currentViewMode]},[t("div",{staticClass:"fixed z-10 w-full md:w-auto md:shadow top-0 md:top-auto md:bottom-4 left-1/2 p-4 rounded-lg translate-x-[-50%]",class:[e.device.isMobile()?"bg-gray":"bg-glas"],staticStyle:{transform:"translateX(-50%)","backdrop-filter":"blur(2px)"}},[t("mode-selector",{attrs:{"outer-current-view-mode":e.Store.getUIState().viewMode},on:{"view-mode-changed":e.changeViewMode}})],1),e.listEntries&&"mapMode"!==e.currentViewMode?t("div",{staticClass:"listContainer"},[t("element-list",{attrs:{items:e.listEntries,multicolumn:"listMode"===e.currentViewMode,showDescription:!0,elementType:"calendarMode"===e.currentViewMode?"calendar":"default"},on:{mouseover:e.focusEntry}})],1):e._e(),e.entries&&"mapMode"===e.currentViewMode?t("div",{staticClass:"mapContainer"},[t("Map",{attrs:{"markers-data":e.mapEntries,"initial-map-center":[12.37295,51.337653],"initial-map-zoom":11,"marker-color":"#333333","active-marker-color":"#083e55","text-color":"#ffffff","link-marker":!0,"link-marker-title":!0,"selected-marker-id":e.focusedEntry?e.focusedEntry.id:null,"use-custom-marker":!0,"marker-radius":e.isMobile()?16:8,"do-not-block-interaction":e.isMobile()},scopedSlots:e._u([{key:"marker",fn:function(e){return[t("Map-Marker",{attrs:{marker:e.marker}})]}}],null,!1,3689413143)})],1):e._e()])},Tf=[],Mf=function(){var e=this,t=e._self._c;return t("div",{staticClass:"entryMapMarker",style:{color:e.marker.color,transform:"rotate("+e.marker.id+"deg)"}},[t("entry-circle",{staticClass:"circle",attrs:{color:e.marker.color}})],1)},Af=[];let Of=(xf=Ic({props:["marker"]}),xf(wf=class extends(la()){})||wf);var If,Df,Pf,zf,Lf,Bf,Ff=Of,Rf=Uc(Ff,Mf,Af,!1,null,"4425fd11",null),$f=Rf.exports;let Nf=(If=Ic({components:{Map:Bd,MapMarker:$f,SearchSidebar:gp,ModeSelector:lf},props:["entries","viewMode"]}),Df=Dc("entries"),Pf=Dc("viewMode"),zf=Dc("entries"),If((Bf=class extends Gc{constructor(...e){super(...e),this.stickyMap=!0,this.focusedEntry=null,this.listEntries=null}created(){window.addEventListener("scroll",this.handleScroll)}destroyed(){window.removeEventListener("scroll",this.handleScroll)}get mapEntries(){const e=this,t=this.entries.filter((e=>e.location&&e.location[0]&&e.location[1])),n=t=>{const n=e.ModelHelpers.getNavigationCategory(t,{main:!0});return n?n.color:null};return t.map((function(t){return{id:t.id,title:"de"===e.User.getLanguage()?t.title:t.title+" // "+e.translate(t,"title"),long:t.location[0],lat:t.location[1],link:e.ModelHelpers.getEntryUrl(t),color:n(t),subtitle:e.ModelHelpers.getNavigationCategory(t)?e.ModelHelpers.getNavigationCategory(t).title:null}}))}buildListEntries(){this.entries?"listMode"===this.currentViewMode||"mapMode"===this.currentViewMode?this.listEntries=this.entries:"calendarMode"===this.currentViewMode&&(this.listEntries=this.ModelHelpers.groupEntriesBy(this.entries,"occurrence")):this.listEntries=null}findGroupCategory(e){let t=null;return this.navigation.categories.forEach((n=>{n.title===e&&(t=n),n.sub_categories.filter((n=>{n.title===e&&(t=n)}))})),t}get currentViewMode(){return this.viewMode??"listMode"}focusEntry(e){this.focusedEntry=e}handleDataChange(){this.focusedEntry=null}isMobile(){return Lc.isMobile()}},qu(Bf.prototype,"buildListEntries",[Df,Pf],Object.getOwnPropertyDescriptor(Bf.prototype,"buildListEntries"),Bf.prototype),qu(Bf.prototype,"handleDataChange",[zf],Object.getOwnPropertyDescriptor(Bf.prototype,"handleDataChange"),Bf.prototype),Lf=Bf))||Lf);var jf,Vf,Uf,qf,Hf=Nf,Wf=Uc(Hf,Ef,Tf,!1,null,"a936bf9a",null),Gf=Wf.exports,Zf=function(){var e=this,t=e._self._c;return e.subset?t("div",{staticClass:"StartView",class:{mobile:e.device.isMobile()}},[t("div",{staticClass:"magazine"},[t("section",{staticClass:"fascinator",class:e.device.isMobile()?"r1":"sx3 sy2"},[e.subsetImage(e.subset)?t("img",{attrs:{srcset:e.subsetImage(e.subset)}}):e._e(),t("afeefa-button",{attrs:{transparent:!0}})],1),t("section",{class:e.device.isMobile()?"r2":"sx2 middle",staticStyle:{"font-size":"1.3rem"}},[t("language-selector")],1),e.device.isMobile()?e._e():t("section",{staticClass:"sx1 right",staticStyle:{"font-size":"1.3rem"}},[t("the-button-navi")],1),t("section",{staticClass:"featuredCategoriesSelector",class:e.device.isMobile()?"r4":"sx3 sy2",staticStyle:{"z-index":"0"}},[e.subset&&e.navigation?[e.shortcutCategories?.length?t("div",[t("navigation",{staticClass:"large mb-8",attrs:{items:e.shortcutCategories},on:{fired:e.navigateToShortcut}}),t("h3",{staticClass:"spotlight"},[e.recipe&&e.recipe.stats?t("span",[e._v(e._s(e.recipe.stats.offers.numItemsAfterFilters)+" "+e._s(e.Store.getUiWording("ui.term.offers"))+" "+e._s(e.Store.getUiWording("ui.start.sort-by"))+" ")]):e._e(),t("div",{staticClass:"inline-flex gap-2"},e._l(e.featuredCategoryTypes,(function(n){return t("a",{key:"featCatControl-"+n.id,class:{active:e.isActiveFeaturedCategoryType(n)},attrs:{underline:""},on:{click:function(t){e.activeFeaturedCategoryTypeId=n.id}}},[e._v(e._s(e.translate(n,"display_name").split(",")[2]))])})),0)])],1):e._e(),e._l(e.featuredCategoryTypes,(function(n){return[e.isActiveFeaturedCategoryType(n)?t("navigation",{key:"featCat-"+n.id,staticClass:"large",attrs:{items:n.categories,"include-select-button":!0},on:{fired:e.invokeCategorySearch}}):e._e()]})),t("h3",{staticClass:"spotlight",staticStyle:{"margin-top":"3rem"}},[e._v(" "+e._s(e.Store.getUiWording("ui.start.search","Stichwortsuche"))+" ")]),t("search-field",{staticStyle:{width:"50%"},attrs:{"no-cancel":!0},on:{fired:e.invokeSearch,changed:e.changeQuery}})]:e._e()],2),t("section",{staticClass:"subset-info",class:e.device.isMobile()?"r3":"sx3"},[t("h2",{staticStyle:{"margin-top":"0"}},[e._v(" "+e._s(e.subset.title)+" ")]),t("p",{staticClass:"bold"},[e._v(" "+e._s(e.translate(e.subset,"slogan"))+" ")]),t("div",{domProps:{innerHTML:e._s(e.translate(e.subset,"description"))}})]),e.showThemenbaum&&e.navigation?t("div",{staticClass:"boxGroup sx6"},e._l(e.navigation.categories,(function(n){return t("div",{key:n.id},[t("p",{staticStyle:{margin:"1em 0 0"}},[e._v(" "+e._s(e.translate(n,"title"))+" ")]),e._l(n.sub_categories,(function(n){return t("p",{key:n.id,staticClass:"small",staticStyle:{margin:".5em 0 0"}},[e._v(" "+e._s(e.translate(n,"title"))+" ")])}))],2)})),0):e._e(),t("map-widget",{staticClass:"sx6",staticStyle:{"min-height":"50vh"},attrs:{items:e.newestEntries,"show-map":!e.device.isMobile()}}),e.blogPosts&&e.blogPosts.length?t("section",{staticClass:"sx6"},[t("h3",{staticClass:"spotlight"},[e._v(" "+e._s(e.Store.getUiWording("ui.start.blog-heading","Neuigkeiten aus der Redaktion"))+" » "),t("a",{attrs:{href:"/blog"}},[e._v("Blog")])]),t("div",{staticClass:"blogPosts"},e._l(e.blogPosts.slice(0,4),(function(n){return t("div",{key:n.id,staticClass:"box"},[t("h3",{staticClass:"spotlight"},[e._v(" "+e._s(e._f("formatDateTime")(n.date_published,"dd.mm.yyyy"))+" ")]),t("a",{attrs:{href:"/blog/"+n.slug+"-"+n.id,nounderline:""}},[t("h2",{staticClass:"noMargin"},[e._v(e._s(n.title))])]),n.media.length?t("img",{attrs:{src:n.media[0].file.url+"?width=500&height=500"}}):e._e()])})),0)]):e._e(),e.recipe&&e.recipe.contents.length?t("section",{staticClass:"boxGroup sx6"},e._l(e.recipe.contents,(function(n){return t("div",{key:n.id,staticClass:"box",domProps:{innerHTML:e._s(e.translate(n,"text"))}})})),0):e._e(),e.recipe&&e.subset&&e.pages.length?t("section",{staticClass:"boxGroup sx6"},[t("div",{staticClass:"box"},[t("h3",{staticClass:"spotlight"},[e._v(" "+e._s(e.Store.getUiWording("ui.start.responsible-for"))+" "+e._s(e.subset.title)+" ")]),t("p",{staticClass:"bold"},[t("a",{attrs:{href:e.pages[0].url}},[e._v(e._s(e.ModelHelpers.getSubsetKeyfact(e.subset,"author")))])]),e.pages[0].media.length?t("img",{attrs:{src:e.pages[0].media[0].file.url+"?width=500&height=500"}}):e._e()]),t("div",{staticClass:"box"},[t("h3",{staticClass:"spotlight"},[e._v(" "+e._s(e.Store.getUiWording("ui.start.publish-offers"))+" ")]),t("p",[e._v("Macht eure Angebote bei Zielgruppen und im Netzwerk bekannt.")]),t("router-link",{staticClass:"button-2",attrs:{to:{name:"Add"}}},[e._v(" "+e._s(e.Store.getUiWording("ui.entry.add-offer"))+" ")]),t("h3",{staticClass:"spotlight"},[e._v(" "+e._s(e.Store.getUiWording("ui.term.contact","Kontakt"))+" ")]),e.subset?t("Subset-Contact-Card",{attrs:{subset:e.subset,hideHeading:!0}}):e._e()],1),t("div",{staticClass:"box"},[t("h3",{staticClass:"spotlight"},[e._v(" "+e._s(e.Store.getUiWording("ui.term.further-info"))+" ")]),t("div",[e._l(e.pages,(function(n){return[t("a",{key:n.id,attrs:{highlight:"",href:n.url}},[e._v(e._s(n.title))]),t("br")]}))],2)])]):e._e(),e._e(),e.recipe&&e.recipe.stats&&!e.device.isMobile()?t("div",[t("h3",{staticClass:"spotlight"},[e._v(" "+e._s(e.Store.getUiWording("ui.term.database-info"))+" ")]),t("p",[t("a",{on:{click:function(t){return e.invokeTypeSearch("offer")}}},[e._v(e._s(e.recipe.stats.offers.numItemsAfterFilters)+" "+e._s(e.Store.getUiWording("ui.term.offers")))]),t("br")])]):e._e()],1)]):e._e()},Xf=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"box"},[t("h3",{staticClass:"spotlight"},[e._v(" Ein Eigenes Afeefa? ")]),t("p",[e._v(" Die Afeefa-Software ist Open Source und kann an Ihre Bedürfnisse angepasst werden. Hier erfahren Sie, was das kostet, ob Afeefa wirkt und wie man den Redaktionsbetrieb stemmt. ")]),t("a",{attrs:{highlight:"",href:"/eigenes-afeefa"}},[e._v("Beratung für ein eigenes Afeefa")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"box"},[t("h3",{staticClass:"spotlight"},[e._v(" Afeefa beauftragen ")]),t("p",[e._v(" Einen Teil unsere Gruppe kann man geschäftlich buchen und somit auch das Afeefa Projekt unterstützen. Digitales Projekt im Kopf? ")]),t("a",{attrs:{highlight:"",href:"https://kollektiv.wos.afeefa.de",target:"_blank"}},[e._v("Zum Kollektivbetrieb")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"box"},[t("h3",{staticClass:"spotlight"},[e._v(" Vereinsarbeit ")]),t("p",[e._v(" Afeefa ist ein Gemeinschaftsprojekt und braucht jederzeit Unterstützung bei Redaktions- und Öffentlichkeitsarbeit, beim Fundraising und Vernetzen. Spenden an den gemeinnützigen Verein sind möglich. ")]),t("a",{attrs:{highlight:"",href:"/verein"}},[e._v("Vereinsseite")])])}],Kf=function(){var e=this,t=e._self._c;return e.subset&&e.AppIsInitialized?t("div",{staticClass:"MapWidget",class:{loading:e.loading,mobile:null!=e.mobile?e.mobile:e.device.isMobile(),showEvents:e.showEvents,showOffers:e.showOffers,showMap:e.showMap,showHeadings:e.showHeadings}},[e.showEvents?t("div",{staticClass:"column"},[e.showHeadings?t("h3",{staticClass:"spotlight"},[e._v(" "+e._s(e.Store.getUiWording("ui.term.appointments","Termine"))+" ")]):e._e(),e.entries&&e.entries.events?t("div",{staticClass:"white flex flex-col gap-0.5"},e._l(e.upcomingEvents,(function(n){return t("list-element",{key:n.id,attrs:{element:{entry:n},elementType:"widget",showDescription:!1},nativeOn:{mouseover:function(t){e.focusedEntry=n}}})})),1):e._e()]):e._e(),e.showMap?t("div",{staticClass:"column"},[e.showHeadings?t("h3",{staticClass:"spotlight"},[e._v("   ")]):e._e(),t("div",{staticClass:"mapContainer"},[e.entries?t("Map",{staticClass:"the-map",attrs:{"markers-data":e.mapEntries,"initial-map-center":[12.37295,51.337653],"initial-map-zoom":11,"marker-color":"#333333","active-marker-color":"#083e55","text-color":"#ffffff","link-marker":e.enableLinks,"link-marker-title":e.enableLinks,"use-custom-marker":!0,"selected-marker-id":e.focusedEntry?e.focusedEntry.id:e.pickRandom(e.mapEntries),"marker-height":"10","marker-radius":"10"},scopedSlots:e._u([{key:"marker",fn:function(e){return[t("Map-Marker",{attrs:{marker:e.marker}})]}}],null,!1,3689413143)}):e._e()],1)]):e._e(),e.showOffers?t("div",{staticClass:"column"},[e.showHeadings?t("h3",{staticClass:"spotlight"},[e._v(" "+e._s(e.Store.getUiWording("ui.term.new-offers","Neue Angebote"))+" ")]):e._e(),e.entries&&e.newOffers?t("div",{staticClass:"white flex flex-col gap-0.5"},e._l(e.newOffers,(function(n){return t("list-element",{key:n.id,attrs:{element:{entry:n},showDescription:!1,elementType:"widget"},nativeOn:{mouseover:function(t){e.focusedEntry=n}}})})),1):e._e()]):e._e()]):e._e()},Yf=[];let Jf=(jf=Ic({components:{Map:Bd,MapMarker:$f},props:{items:{type:null},showActors:{type:Boolean,default:!1},showOffers:{type:Boolean,default:!0},showEvents:{type:Boolean,default:!0},showMap:{type:Boolean,default:!0},showHeadings:{type:Boolean,default:!0},eventsLimit:{type:Number,default:6},enableLinks:{type:Boolean,default:!0},mobile:{type:Boolean,default:null}}}),Vf=Dc("items"),jf((qf=class extends Gc{constructor(...e){super(...e),this.entries=null,this.focusedEntry=null}handleItemsChange(){this.items&&(this.entries=this.items)}get loading(){return null===this.items}get upcomingEvents(){if(!this.showEvents)return[];const e=this.entries.events.filter((e=>e.occurrences.length));return e.sort(((e,t)=>e.occurrences[0].start.date>=t.occurrences[0].start.date?1:e.occurrences[0].start.date<t.occurrences[0].start.date?-1:0)).slice(0,this.eventsLimit)}get newOffers(){return this.showOffers?this.entries.offers:[]}get actors(){return this.showActors?this.entries.actors:[]}get mapEntries(){const e=this,t=[...this.actors,...this.newOffers,...this.upcomingEvents].filter((e=>e.location&&e.location[0]&&e.location[1])),n=t=>{const n=e.ModelHelpers.getNavigationCategory(t,{main:!0});return n?n.color:null};return t.map((function(t){return{id:t.id,title:e.translate(t,"title"),long:t.location[0],lat:t.location[1],link:e.ModelHelpers.getEntryUrl(t),color:n(t)}}))}pickRandom(e){if(!e.length)return null;const t=dh().random(0,e.length-1);return e[t].id}},qu(qf.prototype,"handleItemsChange",[Vf],Object.getOwnPropertyDescriptor(qf.prototype,"handleItemsChange"),qf.prototype),Uf=qf))||Uf);var Qf,em,tm=Jf,nm=Uc(tm,Kf,Yf,!1,null,"2f025ddc",null),im=nm.exports,rm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"SubsetContactCard"},[e.hideHeading?e._e():t("span",{staticClass:"small bold"},[e._v(" Kontakt zur Redaktion ")]),e._l(e.getPhone(e.subset),(function(n,i){return t("a",{key:"p"+i,attrs:{href:e._f("deriveURIScheme")(n)}},[e._v(e._s(n))])})),e._l(e.getMail(e.subset),(function(n,i){return t("a",{key:"m"+i,attrs:{href:e._f("deriveURIScheme")(n)}},[e._v(e._s(n))])}))],2)},om=[];let sm=(Qf=Ic({props:["hideHeading"]}),Qf(em=class extends Gc{getPhone(e){const t=this.ModelHelpers.getSubsetKeyfact(e,"phone");return t?t.split(","):[]}getMail(e){const t=this.ModelHelpers.getSubsetKeyfact(e,"email");return t?t.split(","):[]}})||em);var am,lm,cm,um,hm,dm=sm,pm=Uc(dm,rm,om,!1,null,"149f2ab3",null),fm=pm.exports;let mm=(am=Ic({components:{MapWidget:im,SubsetContactCard:fm}}),lm=Dc("AppIsInitialized"),cm=Dc("User.subset"),am((hm=class extends Gc{constructor(...e){super(...e),this.newestEntries=null,this.recipe=null,this.blogPosts=null,this.pages=null,this.showThemenbaum=!1,this.activeFeaturedCategoryTypeId=null}created(){this.init()}init(){this.AppIsInitialized&&(this.loadDefaultData(!0),this.Store.resetCurrentQuery(),this.loadEntries())}mounted(){this.checkPreviewMode()}checkPreviewMode(){this.$root.isPreviewMode&&("geshizzle"===prompt("Vorschaumodus deaktivieren")?this.User.breakPreviewMode():(history.back(),setTimeout((function(){this.checkPreviewMode()}),200)))}onSubsetChange(){this.AppIsInitialized&&(this.loadDefaultData(!0),this.loadEntries())}changeQuery(e){this.Store.changeCurrentQuery({text:e})}invokeSearch(e){this.Store.changeCurrentQuery({text:e,entryType:"offer"}),this.navigate("search")}invokeCategorySearch(e){this.Store.addCategoryToQuery(e),this.Store.changeCurrentQuery({entryType:"offer"}),this.navigate("search")}invokeTypeSearch(e){this.navigate("search")}async loadEntries(){this.newestEntries=null;const e=await this.Store.getSearchResults({entryType:"offer",offerTypes:["default","language"],limit:7,order:"created_at"}),t=await this.Store.getSearchResults({entryType:"offer",offerTypes:["event"],amountOfOccurrences:1});this.newestEntries={offers:e.offers,events:t.offers}}async loadDefaultData(e){const t=await this.Store.getRecipe("home",{forceReload:e});this.recipe=t,this.pages=t.pages,this.blogPosts=t.posts}subsetImage(e){let t;const n=e.media.find((e=>"default"===e.label));return n&&(t=n.file.url+"?width=1000&height=1000 1x,",t+=n.file.url+"?width=2000&height=2000 2x "),t}get featuredCategoryTypes(){return[this.navigation,...this.Store.getFeaturedCategoryTypes()]}get shortcutCategories(){return this.Store.getCategoryTypeByKey("shortcuts")?.categories}isActiveFeaturedCategoryType(e){return null!==this.activeFeaturedCategoryTypeId?this.activeFeaturedCategoryTypeId===e.id:this.navigation.id===e.id}navigateToShortcut(e){window.location=e.description}},qu(hm.prototype,"init",[lm],Object.getOwnPropertyDescriptor(hm.prototype,"init"),hm.prototype),qu(hm.prototype,"onSubsetChange",[cm],Object.getOwnPropertyDescriptor(hm.prototype,"onSubsetChange"),hm.prototype),um=hm))||um);var gm,vm,ym=mm,_m=Uc(ym,Zf,Xf,!1,null,"7d1ea10b",null),bm=_m.exports,xm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"WeekPlan"},[t("header",[t("p",{staticClass:"small"},[e._v(" I feel like ")]),t("select",{staticClass:"motto"},e._l(e.mottos,(function(n,i){return t("option",{key:i},[e._v(" "+e._s(n)+" ")])})),0)]),t("section",{staticClass:"cols"},e._l(e.days,(function(n,i){return t("div",{key:i,staticClass:"col"},[t("header",[e._v(e._s(n))]),e._l(e.offers2,(function(i){return[i.times.indexOf(n)>-1?t("div",{key:i.id,staticClass:"slot"},[t("a",{attrs:{href:"/offers/"+i.id}},[t("h3",[e._v(e._s(i.title))])]),t("p",{staticClass:"small"},[e._v(" "+e._s(i.actor)+" ")])]):e._e()]}))],2)})),0)])},wm=[];let Cm=(gm=Ic({props:["offers"]}),gm(vm=class extends(la()){constructor(...e){super(...e),this.days=["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],this.mottos=["Sport zum Feierabend","Neue Leute kennenlernen","Fremde Sprachen sprechen","Politisch diskutieren"],this.offers2=[{id:1,title:"Sprechstunde für Paten",actor:"Johanniter Akademie",times:["Montag","Mittwoch"]},{id:2,title:"Zumba",actor:"MGH Bernsdorf",times:["Montag","Freitag"]}]}})||vm);var km,Sm,Em,Tm,Mm,Am,Om,Im,Dm,Pm=Cm,zm=Uc(Pm,xm,wm,!1,null,"5f25100e",null),Lm=zm.exports,Bm=i(8955),Fm=i.n(Bm);let Rm=(km=Ic({}),Sm=Dc("User.subset"),Em=Dc("$route.query.l"),Tm=Dc("$route.path"),Mm=Dc("User.subset"),Am=Dc("Store.currentEntry"),Om=Dc("$route.path",{immediate:!0}),km((Dm=class extends Gc{constructor(...e){super(...e),this.routeHistory=[],this.mainMenuIsActive=!1,this.config=[],this.initialized=!1}activateSurveyAlert(){const e=Math.floor(10*Math.random())<5;e&&setTimeout((()=>{this.alert({title:"Wie gut ist Afeefa?",icon:"question",html:'<a href="https://lime.datenkollektiv.net/index.php?r=survey/index&sid=377361&lang=de" target="_blank">Hier geht es zur Umfrage</a>',timer:1e4,toast:!0})}),2e4)}alert(e){Fm().fire({toast:e.toast,icon:e.icon,title:e.title,html:e.html,timer:e.timer,timerProgressBar:!0,position:"bottom-end",showConfirmButton:!1,showCloseButton:!0})}async loadBasicData(e,t){this.debug("load basic data"),await this.Store.getSubsets(),await this.Store.fetchLanguages(),await this.Store.getRecipe("ui-wordings"),await this.setDefaults(e,t),await this.Store.fetchAllCategoryTypes(),this.debug("load basic data » finished"),this.updatePageTitle(),this.initialized=!0}async setDefaults(e,t){if(e){const t=this.Store.getSubsetBySlug(e);t&&this.User.setSubset(t)}!t.force&&this.User.getLanguage()?this.selectLanguage(this.User.getLanguage()):this.User.setLanguage(t.alpha2_lang_code)}handleSubsetChange(){this.initialized&&this.Store.fetchAllCategoryTypes()}handleLanguageChangedByNavigation(){this.initialized&&(this.$route.query.l&&this.User.setLanguage(this.$route.query.l),this.Store.fetchAllCategoryTypes())}selectLanguage(e,t=!1){this.selectingLanguage=!1;const n=JSON.parse(JSON.stringify(this.$route.query));n.l!==e&&(n.l=e,this.$router.replace({query:n}));const i=this.Store.getLanguageByCode(e);document.documentElement.setAttribute("lang",i.alpha2_lang_code),i.rtl?document.documentElement.classList.add("rtl"):document.documentElement.classList.remove("rtl")}updatePageTitle(){if(this.subset)switch(this.$route.name){case"Search":document.title="Suche | "+this.subset.title;break;case"Offer":case"Actor":this.Store.currentEntry&&(document.title=this.Store.currentEntry.title+" | "+this.subset.title);break;default:document.title=this.subset.title}}saveLastRoute(){const e=this.$route;if("Home"===e.name)return void(this.routeHistory=[]);if(["Search","SearchEmpty"].includes(e.name))return this.routeHistory=[],void this.routeHistory.push(e);const t=this.routeHistory.findIndex((t=>{const n=[["Actor","Offer"],["Add","Bookmarks"],["Search","SearchEmpty"]];for(const i of n)if(i.includes(e.name)&&i.includes(t.name))return!0;return t.name===e.name}));if(t>-1)return this.routeHistory=this.routeHistory.slice(0,t),void this.routeHistory.push(e);this.routeHistory.push(e)}toggleMainMenu(){this.mainMenuIsActive=!this.mainMenuIsActive}getConfig(e){return this.config[e]??null}get isPreviewMode(){return this.getConfig("config.app.fe.preview_mode")&&!this.User.hasBrokenPreviewMode()}get isWidget(){return this.$route.query.widget}},qu(Dm.prototype,"handleSubsetChange",[Sm],Object.getOwnPropertyDescriptor(Dm.prototype,"handleSubsetChange"),Dm.prototype),qu(Dm.prototype,"handleLanguageChangedByNavigation",[Em],Object.getOwnPropertyDescriptor(Dm.prototype,"handleLanguageChangedByNavigation"),Dm.prototype),qu(Dm.prototype,"updatePageTitle",[Tm,Mm,Am],Object.getOwnPropertyDescriptor(Dm.prototype,"updatePageTitle"),Dm.prototype),qu(Dm.prototype,"saveLastRoute",[Om],Object.getOwnPropertyDescriptor(Dm.prototype,"saveLastRoute"),Dm.prototype),Im=Dm))||Im);var $m,Nm,jm=Rm,Vm=Uc(jm,$m,Nm,!1,null,"842a1d98",null),Um=Vm.exports;function qm(e,t){for(var n in t)e[n]=t[n];return e}var Hm=/[!'()*]/g,Wm=function(e){return"%"+e.charCodeAt(0).toString(16)},Gm=/%2C/g,Zm=function(e){return encodeURIComponent(e).replace(Hm,Wm).replace(Gm,",")};function Xm(e){try{return decodeURIComponent(e)}catch(t){0}return e}function Km(e,t,n){void 0===t&&(t={});var i,r=n||Jm;try{i=r(e||"")}catch(Ix){i={}}for(var o in t){var s=t[o];i[o]=Array.isArray(s)?s.map(Ym):Ym(s)}return i}var Ym=function(e){return null==e||"object"===typeof e?e:String(e)};function Jm(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=Xm(n.shift()),r=n.length>0?Xm(n.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}function Qm(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return Zm(t);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(Zm(t)):i.push(Zm(t)+"="+Zm(e)))})),i.join("&")}return Zm(t)+"="+Zm(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var eg=/\/?$/;function tg(e,t,n,i){var r=i&&i.options.stringifyQuery,o=t.query||{};try{o=ng(o)}catch(Ix){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:og(t,r),matched:e?rg(e):[]};return n&&(s.redirectedFrom=og(n,r)),Object.freeze(s)}function ng(e){if(Array.isArray(e))return e.map(ng);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=ng(e[n]);return t}return e}var ig=tg(null,{path:"/"});function rg(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function og(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;void 0===r&&(r="");var o=t||Qm;return(n||"/")+o(i)+r}function sg(e,t,n){return t===ig?e===t:!!t&&(e.path&&t.path?e.path.replace(eg,"")===t.path.replace(eg,"")&&(n||e.hash===t.hash&&ag(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&ag(e.query,t.query)&&ag(e.params,t.params))))}function ag(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),i=Object.keys(t).sort();return n.length===i.length&&n.every((function(n,r){var o=e[n],s=i[r];if(s!==n)return!1;var a=t[n];return null==o||null==a?o===a:"object"===typeof o&&"object"===typeof a?ag(o,a):String(o)===String(a)}))}function lg(e,t){return 0===e.path.replace(eg,"/").indexOf(t.path.replace(eg,"/"))&&(!t.hash||e.hash===t.hash)&&cg(e.query,t.query)}function cg(e,t){for(var n in t)if(!(n in e))return!1;return!0}function ug(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var i in n.instances){var r=n.instances[i],o=n.enteredCbs[i];if(r&&o){delete n.enteredCbs[i];for(var s=0;s<o.length;s++)r._isBeingDestroyed||o[s](r)}}}}var hg={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,r=t.parent,o=t.data;o.routerView=!0;var s=r.$createElement,a=n.name,l=r.$route,c=r._routerViewCache||(r._routerViewCache={}),u=0,h=!1;while(r&&r._routerRoot!==r){var d=r.$vnode?r.$vnode.data:{};d.routerView&&u++,d.keepAlive&&r._directInactive&&r._inactive&&(h=!0),r=r.$parent}if(o.routerViewDepth=u,h){var p=c[a],f=p&&p.component;return f?(p.configProps&&dg(f,o,p.route,p.configProps),s(f,o,i)):s()}var m=l.matched[u],g=m&&m.components[a];if(!m||!g)return c[a]=null,s();c[a]={component:g},o.registerRouteInstance=function(e,t){var n=m.instances[a];(t&&n!==e||!t&&n===e)&&(m.instances[a]=t)},(o.hook||(o.hook={})).prepatch=function(e,t){m.instances[a]=t.componentInstance},o.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==m.instances[a]&&(m.instances[a]=e.componentInstance),ug(l)};var v=m.props&&m.props[a];return v&&(qm(c[a],{route:l,configProps:v}),dg(g,o,l,v)),s(g,o,i)}};function dg(e,t,n,i){var r=t.props=pg(n,i);if(r){r=t.props=qm({},r);var o=t.attrs=t.attrs||{};for(var s in r)e.props&&s in e.props||(o[s]=r[s],delete r[s])}}function pg(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function fg(e,t,n){var i=e.charAt(0);if("/"===i)return e;if("?"===i||"#"===i)return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var o=e.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?r.pop():"."!==a&&r.push(a)}return""!==r[0]&&r.unshift(""),r.join("/")}function mg(e){var t="",n="",i=e.indexOf("#");i>=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}function gg(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var vg=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},yg=Fg,_g=kg,bg=Sg,xg=Mg,wg=Bg,Cg=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function kg(e,t){var n,i=[],r=0,o=0,s="",a=t&&t.delimiter||"/";while(null!=(n=Cg.exec(e))){var l=n[0],c=n[1],u=n.index;if(s+=e.slice(o,u),o=u+l.length,c)s+=c[1];else{var h=e[o],d=n[2],p=n[3],f=n[4],m=n[5],g=n[6],v=n[7];s&&(i.push(s),s="");var y=null!=d&&null!=h&&h!==d,_="+"===g||"*"===g,b="?"===g||"*"===g,x=n[2]||a,w=f||m;i.push({name:p||r++,prefix:d||"",delimiter:x,optional:b,repeat:_,partial:y,asterisk:!!v,pattern:w?Og(w):v?".*":"[^"+Ag(x)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&i.push(s),i}function Sg(e,t){return Mg(kg(e,t),t)}function Eg(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function Tg(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function Mg(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",Dg(t)));return function(t,i){for(var r="",o=t||{},s=i||{},a=s.pretty?Eg:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var u,h=o[c.name];if(null==h){if(c.optional){c.partial&&(r+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(vg(h)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(u=a(h[d]),!n[l].test(u))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===d?c.prefix:c.delimiter)+u}}else{if(u=c.asterisk?Tg(h):a(h),!n[l].test(u))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+u+'"');r+=c.prefix+u}}else r+=c}return r}}function Ag(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Og(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Ig(e,t){return e.keys=t,e}function Dg(e){return e&&e.sensitive?"":"i"}function Pg(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Ig(e,t)}function zg(e,t,n){for(var i=[],r=0;r<e.length;r++)i.push(Fg(e[r],t,n).source);var o=new RegExp("(?:"+i.join("|")+")",Dg(n));return Ig(o,t)}function Lg(e,t,n){return Bg(kg(e,n),t,n)}function Bg(e,t,n){vg(t)||(n=t||n,t=[]),n=n||{};for(var i=n.strict,r=!1!==n.end,o="",s=0;s<e.length;s++){var a=e[s];if("string"===typeof a)o+=Ag(a);else{var l=Ag(a.prefix),c="(?:"+a.pattern+")";t.push(a),a.repeat&&(c+="(?:"+l+c+")*"),c=a.optional?a.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")",o+=c}}var u=Ag(n.delimiter||"/"),h=o.slice(-u.length)===u;return i||(o=(h?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=r?"$":i&&h?"":"(?="+u+"|$)",Ig(new RegExp("^"+o,Dg(n)),t)}function Fg(e,t,n){return vg(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?Pg(e,t):vg(e)?zg(e,t,n):Lg(e,t,n)}yg.parse=_g,yg.compile=bg,yg.tokensToFunction=xg,yg.tokensToRegExp=wg;var Rg=Object.create(null);function $g(e,t,n){t=t||{};try{var i=Rg[e]||(Rg[e]=yg.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),i(t,{pretty:!0})}catch(Ix){return""}finally{delete t[0]}}function Ng(e,t,n,i){var r="string"===typeof e?{path:e}:e;if(r._normalized)return r;if(r.name){r=qm({},e);var o=r.params;return o&&"object"===typeof o&&(r.params=qm({},o)),r}if(!r.path&&r.params&&t){r=qm({},r),r._normalized=!0;var s=qm(qm({},t.params),r.params);if(t.name)r.name=t.name,r.params=s;else if(t.matched.length){var a=t.matched[t.matched.length-1].path;r.path=$g(a,s,"path "+t.path)}else 0;return r}var l=mg(r.path||""),c=t&&t.path||"/",u=l.path?fg(l.path,c,n||r.append):c,h=Km(l.query,r.query,i&&i.options.parseQuery),d=r.hash||l.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:u,query:h,hash:d}}var jg,Vg=[String,Object],Ug=[String,Array],qg=function(){},Hg={name:"RouterLink",props:{to:{type:Vg,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:Ug,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),o=r.location,s=r.route,a=r.href,l={},c=n.options.linkActiveClass,u=n.options.linkExactActiveClass,h=null==c?"router-link-active":c,d=null==u?"router-link-exact-active":u,p=null==this.activeClass?h:this.activeClass,f=null==this.exactActiveClass?d:this.exactActiveClass,m=s.redirectedFrom?tg(null,Ng(s.redirectedFrom),null,n):s;l[f]=sg(i,m,this.exactPath),l[p]=this.exact||this.exactPath?l[f]:lg(i,m);var g=l[f]?this.ariaCurrentValue:null,v=function(e){Wg(e)&&(t.replace?n.replace(o,qg):n.push(o,qg))},y={click:Wg};Array.isArray(this.event)?this.event.forEach((function(e){y[e]=v})):y[this.event]=v;var _={class:l},b=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:a,route:s,navigate:v,isActive:l[p],isExactActive:l[f]});if(b){if(1===b.length)return b[0];if(b.length>1||!b.length)return 0===b.length?e():e("span",{},b)}if("a"===this.tag)_.on=y,_.attrs={href:a,"aria-current":g};else{var x=Gg(this.$slots.default);if(x){x.isStatic=!1;var w=x.data=qm({},x.data);for(var C in w.on=w.on||{},w.on){var k=w.on[C];C in y&&(w.on[C]=Array.isArray(k)?k:[k])}for(var S in y)S in w.on?w.on[S].push(y[S]):w.on[S]=v;var E=x.data.attrs=qm({},x.data.attrs);E.href=a,E["aria-current"]=g}else _.on=y}return e(this.tag,_,this.$slots.default)}};function Wg(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Gg(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=Gg(t.children)))return t}}function Zg(e){if(!Zg.installed||jg!==e){Zg.installed=!0,jg=e;var t=function(e){return void 0!==e},n=function(e,n){var i=e.$options._parentVnode;t(i)&&t(i=i.data)&&t(i=i.registerRouteInstance)&&i(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",hg),e.component("RouterLink",Hg);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var Xg="undefined"!==typeof window;function Kg(e,t,n,i,r){var o=t||[],s=n||Object.create(null),a=i||Object.create(null);e.forEach((function(e){Yg(o,s,a,e,r)}));for(var l=0,c=o.length;l<c;l++)"*"===o[l]&&(o.push(o.splice(l,1)[0]),c--,l--);return{pathList:o,pathMap:s,nameMap:a}}function Yg(e,t,n,i,r,o){var s=i.path,a=i.name;var l=i.pathToRegexpOptions||{},c=Qg(s,r,l.strict);"boolean"===typeof i.caseSensitive&&(l.sensitive=i.caseSensitive);var u={path:c,regex:Jg(c,l),components:i.components||{default:i.component},alias:i.alias?"string"===typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:a,parent:r,matchAs:o,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach((function(i){var r=o?gg(o+"/"+i.path):void 0;Yg(e,t,n,i,u,r)})),t[u.path]||(e.push(u.path),t[u.path]=u),void 0!==i.alias)for(var h=Array.isArray(i.alias)?i.alias:[i.alias],d=0;d<h.length;++d){var p=h[d];0;var f={path:p,children:i.children};Yg(e,t,n,f,r,u.path||"/")}a&&(n[a]||(n[a]=u))}function Jg(e,t){var n=yg(e,[],t);return n}function Qg(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:gg(t.path+"/"+e)}function ev(e,t){var n=Kg(e),i=n.pathList,r=n.pathMap,o=n.nameMap;function s(e){Kg(e,i,r,o)}function a(e,t){var n="object"!==typeof e?o[e]:void 0;Kg([t||e],i,r,o,n),n&&n.alias.length&&Kg(n.alias.map((function(e){return{path:e,children:[t]}})),i,r,o,n)}function l(){return i.map((function(e){return r[e]}))}function c(e,n,s){var a=Ng(e,n,!1,t),l=a.name;if(l){var c=o[l];if(!c)return d(null,a);var u=c.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof a.params&&(a.params={}),n&&"object"===typeof n.params)for(var h in n.params)!(h in a.params)&&u.indexOf(h)>-1&&(a.params[h]=n.params[h]);return a.path=$g(c.path,a.params,'named route "'+l+'"'),d(c,a,s)}if(a.path){a.params={};for(var p=0;p<i.length;p++){var f=i[p],m=r[f];if(tv(m.regex,a.path,a.params))return d(m,a,s)}}return d(null,a)}function u(e,n){var i=e.redirect,r="function"===typeof i?i(tg(e,n,null,t)):i;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return d(null,n);var s=r,a=s.name,l=s.path,u=n.query,h=n.hash,p=n.params;if(u=s.hasOwnProperty("query")?s.query:u,h=s.hasOwnProperty("hash")?s.hash:h,p=s.hasOwnProperty("params")?s.params:p,a){o[a];return c({_normalized:!0,name:a,query:u,hash:h,params:p},void 0,n)}if(l){var f=nv(l,e),m=$g(f,p,'redirect route with path "'+f+'"');return c({_normalized:!0,path:m,query:u,hash:h},void 0,n)}return d(null,n)}function h(e,t,n){var i=$g(n,t.params,'aliased route with path "'+n+'"'),r=c({_normalized:!0,path:i});if(r){var o=r.matched,s=o[o.length-1];return t.params=r.params,d(s,t)}return d(null,t)}function d(e,n,i){return e&&e.redirect?u(e,i||n):e&&e.matchAs?h(e,n,e.matchAs):tg(e,n,i,t)}return{match:c,addRoute:a,getRoutes:l,addRoutes:s}}function tv(e,t,n){var i=t.match(e);if(!i)return!1;if(!n)return!0;for(var r=1,o=i.length;r<o;++r){var s=e.keys[r-1];s&&(n[s.name||"pathMatch"]="string"===typeof i[r]?Xm(i[r]):i[r])}return!0}function nv(e,t){return fg(e,t.parent?t.parent.path:"/",!0)}var iv=Xg&&window.performance&&window.performance.now?window.performance:Date;function rv(){return iv.now().toFixed(3)}var ov=rv();function sv(){return ov}function av(e){return ov=e}var lv=Object.create(null);function cv(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=qm({},window.history.state);return n.key=sv(),window.history.replaceState(n,"",t),window.addEventListener("popstate",dv),function(){window.removeEventListener("popstate",dv)}}function uv(e,t,n,i){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var o=pv(),s=r.call(e,t,n,i?o:null);s&&("function"===typeof s.then?s.then((function(e){bv(e,o)})).catch((function(e){0})):bv(s,o))}))}}function hv(){var e=sv();e&&(lv[e]={x:window.pageXOffset,y:window.pageYOffset})}function dv(e){hv(),e.state&&e.state.key&&av(e.state.key)}function pv(){var e=sv();if(e)return lv[e]}function fv(e,t){var n=document.documentElement,i=n.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-i.left-t.x,y:r.top-i.top-t.y}}function mv(e){return yv(e.x)||yv(e.y)}function gv(e){return{x:yv(e.x)?e.x:window.pageXOffset,y:yv(e.y)?e.y:window.pageYOffset}}function vv(e){return{x:yv(e.x)?e.x:0,y:yv(e.y)?e.y:0}}function yv(e){return"number"===typeof e}var _v=/^#\d/;function bv(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var i=_v.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(i){var r=e.offset&&"object"===typeof e.offset?e.offset:{};r=vv(r),t=fv(i,r)}else mv(e)&&(t=gv(e))}else n&&mv(e)&&(t=gv(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var xv=Xg&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function wv(e,t){hv();var n=window.history;try{if(t){var i=qm({},n.state);i.key=sv(),n.replaceState(i,"",e)}else n.pushState({key:av(rv())},"",e)}catch(Ix){window.location[t?"replace":"assign"](e)}}function Cv(e){wv(e,!0)}var kv={redirected:2,aborted:4,cancelled:8,duplicated:16};function Sv(e,t){return Av(e,t,kv.redirected,'Redirected when going from "'+e.fullPath+'" to "'+Iv(t)+'" via a navigation guard.')}function Ev(e,t){var n=Av(e,t,kv.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function Tv(e,t){return Av(e,t,kv.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Mv(e,t){return Av(e,t,kv.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function Av(e,t,n,i){var r=new Error(i);return r._isRouter=!0,r.from=e,r.to=t,r.type=n,r}var Ov=["params","query","hash"];function Iv(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return Ov.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}function Dv(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Pv(e,t){return Dv(e)&&e._isRouter&&(null==t||e.type===t)}function zv(e,t,n){var i=function(r){r>=e.length?n():e[r]?t(e[r],(function(){i(r+1)})):i(r+1)};i(0)}function Lv(e){return function(t,n,i){var r=!1,o=0,s=null;Bv(e,(function(e,t,n,a){if("function"===typeof e&&void 0===e.cid){r=!0,o++;var l,c=Nv((function(t){$v(t)&&(t=t.default),e.resolved="function"===typeof t?t:jg.extend(t),n.components[a]=t,o--,o<=0&&i()})),u=Nv((function(e){var t="Failed to resolve async component "+a+": "+e;s||(s=Dv(e)?e:new Error(t),i(s))}));try{l=e(c,u)}catch(Ix){u(Ix)}if(l)if("function"===typeof l.then)l.then(c,u);else{var h=l.component;h&&"function"===typeof h.then&&h.then(c,u)}}})),r||i()}}function Bv(e,t){return Fv(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Fv(e){return Array.prototype.concat.apply([],e)}var Rv="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function $v(e){return e.__esModule||Rv&&"Module"===e[Symbol.toStringTag]}function Nv(e){var t=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var jv=function(e,t){this.router=e,this.base=Vv(t),this.current=ig,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Vv(e){if(!e)if(Xg){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function Uv(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n<i;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function qv(e,t,n,i){var r=Bv(e,(function(e,i,r,o){var s=Hv(e,t);if(s)return Array.isArray(s)?s.map((function(e){return n(e,i,r,o)})):n(s,i,r,o)}));return Fv(i?r.reverse():r)}function Hv(e,t){return"function"!==typeof e&&(e=jg.extend(e)),e.options[t]}function Wv(e){return qv(e,"beforeRouteLeave",Zv,!0)}function Gv(e){return qv(e,"beforeRouteUpdate",Zv)}function Zv(e,t){if(t)return function(){return e.apply(t,arguments)}}function Xv(e){return qv(e,"beforeRouteEnter",(function(e,t,n,i){return Kv(e,n,i)}))}function Kv(e,t,n){return function(i,r,o){return e(i,r,(function(e){"function"===typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),o(e)}))}}jv.prototype.listen=function(e){this.cb=e},jv.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},jv.prototype.onError=function(e){this.errorCbs.push(e)},jv.prototype.transitionTo=function(e,t,n){var i,r=this;try{i=this.router.match(e,this.current)}catch(Ix){throw this.errorCbs.forEach((function(t){t(Ix)})),Ix}var o=this.current;this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(i,o)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(Pv(e,kv.redirected)&&o===ig||(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)}))))}))},jv.prototype.confirmTransition=function(e,t,n){var i=this,r=this.current;this.pending=e;var o=function(e){!Pv(e)&&Dv(e)&&(i.errorCbs.length?i.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},s=e.matched.length-1,a=r.matched.length-1;if(sg(e,r)&&s===a&&e.matched[s]===r.matched[a])return this.ensureURL(),e.hash&&uv(this.router,r,e,!1),o(Ev(r,e));var l=Uv(this.current.matched,e.matched),c=l.updated,u=l.deactivated,h=l.activated,d=[].concat(Wv(u),this.router.beforeHooks,Gv(c),h.map((function(e){return e.beforeEnter})),Lv(h)),p=function(t,n){if(i.pending!==e)return o(Tv(r,e));try{t(e,r,(function(t){!1===t?(i.ensureURL(!0),o(Mv(r,e))):Dv(t)?(i.ensureURL(!0),o(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(o(Sv(r,e)),"object"===typeof t&&t.replace?i.replace(t):i.push(t)):n(t)}))}catch(Ix){o(Ix)}};zv(d,p,(function(){var n=Xv(h),s=n.concat(i.router.resolveHooks);zv(s,p,(function(){if(i.pending!==e)return o(Tv(r,e));i.pending=null,t(e),i.router.app&&i.router.app.$nextTick((function(){ug(e)}))}))}))},jv.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},jv.prototype.setupListeners=function(){},jv.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=ig,this.pending=null};var Yv=function(e){function t(t,n){e.call(this,t,n),this._startLocation=Jv(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,i=xv&&n;i&&this.listeners.push(cv());var r=function(){var n=e.current,r=Jv(e.base);e.current===ig&&r===e._startLocation||e.transitionTo(r,(function(e){i&&uv(t,e,n,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){wv(gg(i.base+e.fullPath)),uv(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){Cv(gg(i.base+e.fullPath)),uv(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(Jv(this.base)!==this.current.fullPath){var t=gg(this.base+this.current.fullPath);e?wv(t):Cv(t)}},t.prototype.getCurrentLocation=function(){return Jv(this.base)},t}(jv);function Jv(e){var t=window.location.pathname,n=t.toLowerCase(),i=e.toLowerCase();return!e||n!==i&&0!==n.indexOf(gg(i+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Qv=function(e){function t(t,n,i){e.call(this,t,n),i&&ey(this.base)||ty()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,i=xv&&n;i&&this.listeners.push(cv());var r=function(){var t=e.current;ty()&&e.transitionTo(ny(),(function(n){i&&uv(e.router,n,t,!0),xv||oy(n.fullPath)}))},o=xv?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},t.prototype.push=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){ry(e.fullPath),uv(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){oy(e.fullPath),uv(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;ny()!==t&&(e?ry(t):oy(t))},t.prototype.getCurrentLocation=function(){return ny()},t}(jv);function ey(e){var t=Jv(e);if(!/^\/#/.test(t))return window.location.replace(gg(e+"/#"+t)),!0}function ty(){var e=ny();return"/"===e.charAt(0)||(oy("/"+e),!1)}function ny(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function iy(e){var t=window.location.href,n=t.indexOf("#"),i=n>=0?t.slice(0,n):t;return i+"#"+e}function ry(e){xv?wv(iy(e)):window.location.hash=e}function oy(e){xv?Cv(iy(e)):window.location.replace(iy(e))}var sy=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){var e=t.current;t.index=n,t.updateRoute(i),t.router.afterHooks.forEach((function(t){t&&t(i,e)}))}),(function(e){Pv(e,kv.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(jv),ay=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ev(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!xv&&!1!==e.fallback,this.fallback&&(t="hash"),Xg||(t="abstract"),this.mode=t,t){case"history":this.history=new Yv(this,e.base);break;case"hash":this.history=new Qv(this,e.base,this.fallback);break;case"abstract":this.history=new sy(this,e.base);break;default:0}},ly={currentRoute:{configurable:!0}};ay.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},ly.currentRoute.get=function(){return this.history&&this.history.current},ay.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof Yv||n instanceof Qv){var i=function(e){var i=n.current,r=t.options.scrollBehavior,o=xv&&r;o&&"fullPath"in e&&uv(t,e,i,!1)},r=function(e){n.setupListeners(),i(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},ay.prototype.beforeEach=function(e){return uy(this.beforeHooks,e)},ay.prototype.beforeResolve=function(e){return uy(this.resolveHooks,e)},ay.prototype.afterEach=function(e){return uy(this.afterHooks,e)},ay.prototype.onReady=function(e,t){this.history.onReady(e,t)},ay.prototype.onError=function(e){this.history.onError(e)},ay.prototype.push=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){i.history.push(e,t,n)}));this.history.push(e,t,n)},ay.prototype.replace=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){i.history.replace(e,t,n)}));this.history.replace(e,t,n)},ay.prototype.go=function(e){this.history.go(e)},ay.prototype.back=function(){this.go(-1)},ay.prototype.forward=function(){this.go(1)},ay.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},ay.prototype.resolve=function(e,t,n){t=t||this.history.current;var i=Ng(e,t,n,this),r=this.match(i,t),o=r.redirectedFrom||r.fullPath,s=this.history.base,a=hy(s,o,this.mode);return{location:i,route:r,href:a,normalizedTo:i,resolved:r}},ay.prototype.getRoutes=function(){return this.matcher.getRoutes()},ay.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==ig&&this.history.transitionTo(this.history.getCurrentLocation())},ay.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==ig&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ay.prototype,ly);var cy=ay;function uy(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function hy(e,t,n){var i="hash"===n?"#"+t:t;return e?gg(e+"/"+i):i}ay.install=Zg,ay.version="3.6.5",ay.isNavigationFailure=Pv,ay.NavigationFailureType=kv,ay.START_LOCATION=ig,Xg&&window.Vue&&window.Vue.use(ay);var dy,py=function(){var e=this,t=e._self._c;return t("div",{staticClass:"AddView",class:{mobile:e.device.isMobile()}},[t("tool-bar",{class:{fluid:e.device.isMobile()}},["mbr"===e.variant?t("div",[t("h1",[e._v("Wahl des Migrant:innenbeirats")]),t("span",[e._v("Zweite Online-Wahl März 2025")])]):t("div",[t("h1",[e._v("Angebot einsenden")]),t("span",[e._v("Jetzt Formular ausfüllen, um ein Angebot auf Afeefa Leipzig zu veröffentlichen.")])]),!e.device.isMobile()&&e.subset?t("Subset-Contact-Card",{attrs:{subset:e.subset}}):e._e()],1),t("div",{staticClass:"content"},["mbr"===e.variant?t("Add-Form",{class:{paperless:e.device.isMobile()},attrs:{disabled:!1,"form-key":"mbr","preset-offer-model-type":"event","preset-categories":e.defaultCategories,"hidden-category-types":["formats_event","navigation","target_groups","age_groups"]}}):t("Add-Form",{class:{paperless:e.device.isMobile()}}),t("div",["mbr"===e.variant?[t("h3",[e._v("Wann kann ich eine Veranstaltung anmelden und wie läuft der Anmeldeprozess ab?")]),t("p",[e._v("Ab November 2024 und bis März 2025 haben Sie die Möglichkeit, die Online-Wahl des Migrantinnen- und Migrantenbeirates mit eigenen Veranstaltungen zu unterstützen. Ziel ist, dass so viele Wähler/-innen und Kandidat/-innen erreicht werden, sodass wir eine hohe Wahlbeteiligung erreichen.")]),e._m(0),t("h3",[e._v("Anmeldeschluss")]),t("p",[e._v("14. März 2025")]),t("p",[e._v("Nach Eingang Ihrer Anmeldung über das Kontaktformular erhalten Sie eine Bestätigungsmail mit einem Link zu Ihrem Angebot. Danach haben Sie eine Frist von zwei Wochen Zeit, über diesen Link Änderungen an den eingereichten Informationen vorzunehmen. Dann wird Ihr Angebot von unserem Redaktionsteam geprüft und auf Afeefa veröffentlicht.")]),t("h3",[e._v("Kontakt")]),t("p",[e._v("Stadt Leipzig, Referat für Migration und Integration")]),e._m(1),e._m(2),e._m(3)]:[t("h3",[e._v("Hinweise")]),t("p",[e._v("Nachdem du ein Angebot über das Formular übermittelt hast, wird unsere Redaktion zeitnah die Prüfung und Veröffentlichung übernehmen. Bei Rückfragen werden wir Kontakt zu dir aufnehmen.")]),t("p",[e._v("Du möchtest deine Angebote selbständig verwalten? Gern! Dafür können wir dir einen Zugang zum Redaktionssystem anlegen. Hinterlasse uns dazu bitte einfach einen Hinweis am Ende des Formulars.")])],t("div",{staticClass:"border-t border-l-0 border-r-0 border-b-0 border-solid border-black pt-4 text-sm"},[e._v(" Bitte "),t("a",{on:{click:function(t){e.showModal1=!0}}},[e._v("Hinweise")]),e._v(" für einfache Sprache beachten ")]),e.showModal1?t("Modal",{attrs:{"has-close-button":""},on:{close:function(t){e.showModal1=!1}}},[t("h3",[e._v("Hinweise zu Einfacher Sprache")]),t("p",[e._v("Angebote werden besser an die Nutzer*innen vermittelt, wenn die Beschreibungstexte in einfacher, klarer und verständlicher Sprache verfasst sind. Die Qualität der automatisierten Übersetzungen wird ebenfalls verbessert.")]),t("p",[e._v("Positives Beispiel:")]),t("blockquote",[e._v('"Wir helfen bei der Vermittlung einer Tagespflege für Kinder. Unser Angebot richtet sich an Tagesmütter und Tagesväter, an Träger im Bereich Kinderbetreuung sowie an Eltern und Netzwerkpartner." ')]),t("p",[e._v("Negatives Beispiel:")]),t("blockquote",[e._v('"Das Kindertagespflegemanagement erbringt sowohl Leistungen für die Tagesmütter und – väter, deren Träger als auch für die Eltern und Netzwerkpartner."')]),t("p",[e._v("Merkmale einfacher Sprache sind:")]),t("ul",[t("li",[e._v("Satzlängen von ca. 10 Wörtern")]),t("li",[e._v("Reduzierung von Nebensätzen")]),t("li",[e._v("Jeder Satz enthält nur einen Gedanken.")]),t("li",[e._v("Sätze sind im Aktiv geschrieben.")]),t("li",[e._v("Die Wortwahl ähnelt derjenigen der gesprochenen Sprache.")]),t("li",[e._v("Die Wörter sollten allgemein bekannt und möglichst eindeutig sein: „Geld“ statt „Zahlungsmittel“ oder „Kirche“ statt „Gotteshaus“.")]),t("li",[e._v("Fremdwörter, schwierige Begriffe oder lange zusammengesetzte Wörter sollen durch einfache und eindeutige Wörter ersetzt werden. Wenn die Verwendung dieser Wörter notwendig ist, sollten sie kurz erklärt und durch Beispiele verdeutlicht werden.")]),t("li",[e._v("Metaphern, Ironie und Redewendungen werden nicht verwendet.")]),t("li",[e._v("Abstrakte Begriffe werden durch konkrete Ausdrücke ersetzt.")]),t("li",[e._v("Abkürzungen, auch weit verbreitete, werden stets ausgeschrieben.")])]),t("p",[e._v(" Weitere Informationen: "),t("a",{attrs:{href:"https://de.wikipedia.org/wiki/EinfacheSprache#UnterschiedezurLeichtenSprache",target:"_blank"}},[e._v("Wikipedia Artikel")])])]):e._e()],2)],1)],1)},fy=[function(){var e=this,t=e._self._c;return t("p",[e._v("Weitere Informationen unter "),t("a",{attrs:{href:"https://www.leipzig.de/migrantenbeirat",target:"_blank"}},[e._v("leipzig.de/migrantenbeirat")])])},function(){var e=this,t=e._self._c;return t("p",[t("span",{staticClass:"font-bold"},[e._v("Ansprechperson: ")]),e._v("Andrea Pagani, Geschäftsstelle des Migrantinnen- und Migrantenbeirates")])},function(){var e=this,t=e._self._c;return t("p",[t("span",{staticClass:"font-bold"},[e._v("Telefon: ")]),e._v("0341-123-2681 oder -2690")])},function(){var e=this,t=e._self._c;return t("p",[t("span",{staticClass:"font-bold"},[e._v("E-Mail: ")]),e._v("migrantenbeirat@leipzig.de")])}],my=function(){var e=this,t=e._self._c;return t("form",{staticClass:"AddForm form flex flex-col gap-8",class:{sending:e.isSending,mobile:e.isMobile(),disabled:e.disabled},on:{submit:e.submit}},[e.isSuccessful?[t("div",{staticClass:"text-center text-8xl mb-4"},[e._v("👍🏽")]),t("p",{staticClass:"text-center m-0 font-bold"},[e._v("Deine Eintragung wurde übermittelt. Vielen Dank.")]),t("a",{staticClass:"text-center",on:{click:e.reset}},[e._v("Weiteres Angebot eintragen")])]:[t("h3",[e._v("Beschreibung "+e._s("event"===e.newEntry.model_type?"der Veranstaltung":"des Angebots"))]),e.presetOfferModelType?e._e():t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold",class:{valid:e.isValid("newEntry.model_type")},attrs:{required:""}},[e._v(" Art des Angebots ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.model_type,expression:"newEntry.model_type"}],ref:"newEntry.model_type",attrs:{required:"",id:"newEntry.model_type"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.newEntry,"model_type",t.target.multiple?n:n[0])}}},[t("option",{attrs:{disabled:""},domProps:{value:null}},[e._v("Auswählen")]),t("option",{attrs:{value:"default"}},[e._v("Allgemeines Angebot")]),t("option",{attrs:{value:"event"}},[e._v("Veranstaltung")]),t("option",{attrs:{value:"language"}},[e._v("Sprachangebot")]),t("option",{attrs:{value:"sport"}},[e._v("Sportangebot")])])]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold",class:{valid:e.isValid("newEntry.title")},attrs:{required:""}},[e._v("Titel ("+e._s(e.newEntry.title?e.newEntry.title.length:0)+" / 100 Zeichen)")]),t("span",{staticClass:"hint text-xs"},[e._v("Geben Sie den Titel Ihres Angebots ein. Der Titel sollte kurz und aussagekräftig sein und das Wesen Ihres Angebots klar vermitteln.")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.title,expression:"newEntry.title"}],ref:"newEntry.title",attrs:{required:"",minlength:"5",maxlength:"100"},domProps:{value:e.newEntry.title},on:{input:function(t){t.target.composing||e.$set(e.newEntry,"title",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold",class:{valid:e.isValid("newEntry.description")},attrs:{required:""}},[e._v("Kurze Beschreibung ("+e._s(e.newEntry.description?e.newEntry.description.length:0)+" / 500 Zeichen)"),t("br")]),t("span",{staticClass:"hint text-xs"},[e._v("Beschreiben Sie Ihr Angebot kurz und präzise in einfacher Sprache. Fassen Sie zusammen, was Teilnehmer erwarten können und nennen Sie eventuelle Kooperationspartner.")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.description,expression:"newEntry.description"}],ref:"newEntry.description",attrs:{minlength:"10",maxlength:"500",required:""},domProps:{value:e.newEntry.description},on:{input:function(t){t.target.composing||e.$set(e.newEntry,"description",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v(" Auf ein Wort verdichtet ("+e._s(e.newEntry.subtitle?e.newEntry.subtitle.length:0)+" / 30 Zeichen) "),t("span",{staticClass:"hint"},[e._v("z.B. Impro-Theater, Schreibwerkstatt")])]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.subtitle,expression:"newEntry.subtitle"}],attrs:{maxlength:"30"},domProps:{value:e.newEntry.subtitle},on:{input:function(t){t.target.composing||e.$set(e.newEntry,"subtitle",t.target.value)}}})]),t("hr"),t("h3",[e._v("Kategorisierung")]),e.navigation?t("div",{staticClass:"field"},[t("div",{staticClass:"flex flex-col gap-4"},[e._l(e.editableCategoryTypesForOfferModelType,(function(n){return e.hiddenCategoryTypes.includes(n.key)?e._e():t("div",{key:n.id,staticClass:"border border-l-0 border-t-0 border-r-0 border-dashed border-gray-600 pb-4 flex flex-col gap-2"},[t("select-button",{ref:"offer.ct-"+n.id,refInFor:!0,staticClass:"self-start",attrs:{required:n.options.includes("user_required"),"entity-name":n.display_name.split(",")[1],"options-array":e.ModelHelpers.mapCategoryTypeForSelectInput(n),multiple:n.options.includes("user_multiple"),"multiple-compressed":!1},on:{changed:e.changeCategories}}),n.key.includes("formats")?t("label",{staticClass:"text-xs"},[e._v("Bitte wählen Sie das Format, das Ihr Angebot am besten beschreibt. Wenn Ihr Angebot in mehrere oder keines der vorhandenen Formate passt, wählen Sie bitte die Hauptkategorie aus. Sollte das geeignete Format fehlen, teilen Sie uns dies mit, und wir werden es für Sie hinzufügen.")]):e._e()],1)})),e.hiddenCategoryTypes.includes(e.navigation.key)?e._e():t("div",{staticClass:"border border-l-0 border-t-0 border-r-0 border-dashed border-gray-600 pb-4 flex flex-col gap-2"},[t("select-button",{ref:"offer.ct-"+e.navigation.id,staticClass:"self-start",attrs:{required:!0,"entity-name":e.navigation.display_name.split(",")[1],"options-array":e.ModelHelpers.mapCategoryTypeForSelectInput(e.navigation),multiple:e.navigation.options.includes("user_multiple"),"multiple-compressed":!1},on:{changed:e.changeCategories}}),t("label",{staticClass:"text-xs"},[e._v("Wählen Sie bis zu drei Themenbereiche aus, die Ihr Angebot am besten charakterisieren.")])],1),e._l(e.editableCategoryTypesForOffer,(function(n){return e.hiddenCategoryTypes.includes(n.key)?e._e():t("div",{key:n.id,staticClass:"border border-l-0 border-t-0 border-r-0 border-dashed border-gray-600 pb-4 flex flex-col gap-2"},[t("select-button",{ref:"offer.ct-"+n.id,refInFor:!0,staticClass:"self-start",attrs:{required:n.options.includes("user_required"),"entity-name":n.display_name.split(",")[1],"options-array":e.ModelHelpers.mapCategoryTypeForSelectInput(n),multiple:n.options.includes("user_multiple"),"multiple-compressed":!1},on:{changed:e.changeCategories}}),"age_groups"===n.key?t("label",{staticClass:"text-xs"},[e._v("Wählen Sie die Altersgruppe(n) aus, die Ihr Angebot ansprechen soll. Dieses Feld ist nur relevant, wenn Ihr Angebot altersspezifisch ist. Ist Ihr Angebot für alle Altersgruppen geeignet, kann diese Eingabe übersprungen werden. Mehrfachauswahl ist möglich.")]):e._e(),"target_groups"===n.key?t("label",{staticClass:"text-xs"},[e._v("Wählen Sie die Zielgruppe(n) aus, die Ihr Angebot ansprechen soll. Dieses Feld ist nur relevant, wenn Ihr Angebot Zielgruppe(n)spezifisch ist. Ist Ihr Angebot für alle Zielgruppen geeignet, kann diese Eingabe übersprungen werden. Mehrfachauswahl ist möglich.")]):e._e(),"spoken_languages"===n.key?t("label",{staticClass:"text-xs"},[e._v("Geben Sie an, in welchen Sprachen Ihr Angebot durchgeführt wird. Mindestens eine Sprache muss angegeben werden.")]):e._e()],1)}))],2)]):e._e(),t("h3",[e._v("Teilnahmebedingungen")]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v(" Kosten ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.free,expression:"newEntry.free"}],attrs:{id:"newEntry.free"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.newEntry,"free",t.target.multiple?n:n[0])}}},[t("option",{domProps:{value:!0}},[e._v("kostenfrei")]),t("option",{domProps:{value:!1}},[e._v("kostenpflichtig")])])]),e.newEntry.free?e._e():t("div",{staticClass:"field"},[e._m(0),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.costs,expression:"newEntry.costs"}],attrs:{maxlength:"50"},domProps:{value:e.newEntry.costs},on:{input:function(t){t.target.composing||e.$set(e.newEntry,"costs",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Ist eine Anmeldung erforderlich?")]),t("div",{staticClass:"flex gap-8"},[t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.signup_required,expression:"newEntry.signup_required"}],attrs:{type:"radio",name:"newEntry.signup_required",id:"newEntry.signup_required.yes"},domProps:{value:!0,checked:e._q(e.newEntry.signup_required,!0)},on:{change:function(t){return e.$set(e.newEntry,"signup_required",!0)}}}),t("label",{staticClass:"text-sm",attrs:{for:"newEntry.signup_required.yes"}},[e._v("Ja")])]),t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.signup_required,expression:"newEntry.signup_required"}],attrs:{type:"radio",name:"newEntry.signup_required",id:"newEntry.signup_required.no"},domProps:{value:!1,checked:e._q(e.newEntry.signup_required,!1)},on:{change:function(t){return e.$set(e.newEntry,"signup_required",!1)}}}),t("label",{staticClass:"text-sm",attrs:{for:"newEntry.signup_required.no"}},[e._v("Nein")])])])]),e.newEntry.signup_required?t("div",{staticClass:"field"},[e._m(1),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.requirements,expression:"newEntry.requirements"}],attrs:{maxlength:"100"},domProps:{value:e.newEntry.requirements},on:{input:function(t){t.target.composing||e.$set(e.newEntry,"requirements",t.target.value)}}})]):e._e(),t("hr"),e._m(2),t("div",{staticClass:"field"},[e._m(3),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.contact.title,expression:"newEntry.contact.title"}],attrs:{maxlength:"50"},domProps:{value:e.newEntry.contact.title},on:{input:function(t){t.target.composing||e.$set(e.newEntry.contact,"title",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Ansprechperson")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.contact.name,expression:"newEntry.contact.name"}],attrs:{maxlength:"50"},domProps:{value:e.newEntry.contact.name},on:{input:function(t){t.target.composing||e.$set(e.newEntry.contact,"name",t.target.value)}}})]),t("div",{staticClass:"grid"},[t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold",class:{valid:e.offerContactValid},attrs:{required:""}},[e._v("E-Mail")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.contact.email,expression:"newEntry.contact.email"}],attrs:{required:!e.offerContactValid,type:"email",maxlength:"100"},domProps:{value:e.newEntry.contact.email},on:{input:function(t){t.target.composing||e.$set(e.newEntry.contact,"email",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold",class:{valid:e.offerContactValid},attrs:{required:""}},[e._v("Telefon")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.contact.phone,expression:"newEntry.contact.phone"}],attrs:{required:!e.offerContactValid,type:"phone",maxlength:"20"},domProps:{value:e.newEntry.contact.phone},on:{input:function(t){t.target.composing||e.$set(e.newEntry.contact,"phone",t.target.value)}}})])]),t("div",{staticClass:"field"},[e._m(4),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.contact.web,expression:"newEntry.contact.web"}],attrs:{maxlength:"500"},domProps:{value:e.newEntry.contact.web},on:{input:function(t){t.target.composing||e.$set(e.newEntry.contact,"web",t.target.value)}}})]),t("hr"),t("h3",[e._v("Ortsangaben")]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Findet das Angebot in Präsenz oder online statt?")]),t("div",{staticClass:"flex gap-8"},[t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.online,expression:"newEntry.online"}],attrs:{type:"radio",name:"newEntry.online",id:"newEntry.online.no"},domProps:{value:!1,checked:e._q(e.newEntry.online,!1)},on:{change:function(t){return e.$set(e.newEntry,"online",!1)}}}),t("label",{staticClass:"text-sm",attrs:{for:"newEntry.online.no"}},[e._v("in Präsenz")])]),t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.online,expression:"newEntry.online"}],attrs:{type:"radio",name:"newEntry.online",id:"newEntry.online.yes"},domProps:{value:!0,checked:e._q(e.newEntry.online,!0)},on:{change:function(t){return e.$set(e.newEntry,"online",!0)}}}),t("label",{staticClass:"text-sm",attrs:{for:"newEntry.online.yes"}},[e._v("online")])])])]),e.newEntry.online?e._e():[t("div",{staticClass:"field"},[e._m(5),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.location.title,expression:"newEntry.location.title"}],attrs:{maxlength:"100"},domProps:{value:e.newEntry.location.title},on:{input:function(t){t.target.composing||e.$set(e.newEntry.location,"title",t.target.value)}}})]),t("div",{staticClass:"grid"},[t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Straße")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.location.street,expression:"newEntry.location.street"}],attrs:{maxlength:"100"},domProps:{value:e.newEntry.location.street},on:{input:function(t){t.target.composing||e.$set(e.newEntry.location,"street",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Ort")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.location.city,expression:"newEntry.location.city"}],attrs:{maxlength:"50"},domProps:{value:e.newEntry.location.city},on:{input:function(t){t.target.composing||e.$set(e.newEntry.location,"city",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("PLZ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.location.zip,expression:"newEntry.location.zip"}],attrs:{type:"number",maxlength:"6"},domProps:{value:e.newEntry.location.zip},on:{input:function(t){t.target.composing||e.$set(e.newEntry.location,"zip",t.target.value)}}})])]),t("div",{staticClass:"field"},[e._m(6),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.location.address_detail,expression:"newEntry.location.address_detail"}],attrs:{maxlength:"100"},domProps:{value:e.newEntry.location.address_detail},on:{input:function(t){t.target.composing||e.$set(e.newEntry.location,"address_detail",t.target.value)}}})]),t("div",{staticClass:"field"},[e._m(7),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.location.directions,expression:"newEntry.location.directions"}],attrs:{maxlength:"100"},domProps:{value:e.newEntry.location.directions},on:{input:function(t){t.target.composing||e.$set(e.newEntry.location,"directions",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Ist der Zugang zum Veranstaltungsort Ihres Angebots barrierefrei?")]),t("div",{staticClass:"flex gap-8"},[t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.accessible,expression:"newEntry.accessible"}],attrs:{type:"radio",name:"newEntry.accessible",id:"newEntry.accessible.yes"},domProps:{value:!0,checked:e._q(e.newEntry.accessible,!0)},on:{change:function(t){return e.$set(e.newEntry,"accessible",!0)}}}),t("label",{staticClass:"text-sm",attrs:{for:"newEntry.accessible.yes"}},[e._v("Ja")])]),t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.accessible,expression:"newEntry.accessible"}],attrs:{type:"radio",name:"newEntry.accessible",id:"newEntry.accessible.no"},domProps:{value:!1,checked:e._q(e.newEntry.accessible,!1)},on:{change:function(t){return e.$set(e.newEntry,"accessible",!1)}}}),t("label",{staticClass:"text-sm",attrs:{for:"newEntry.accessible.no"}},[e._v("Nein")])])])])],t("hr"),t("h3",[e._v("Zeitliche Angaben")]),"event"===e.newEntry.model_type?[t("label",{staticClass:"text-sm"},[e._v("Findet die Veranstaltung an einem festen Termin statt (z.B. Konzert) oder läuft die Veranstaltung über einen längeren Zeitraum (z.B. Ausstellung)?")]),t("div",{staticClass:"flex gap-8"},[t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.isLongEvent,expression:"isLongEvent"}],attrs:{type:"radio",name:"isLongEvent",id:"isLongEvent.no"},domProps:{value:!1,checked:e._q(e.isLongEvent,!1)},on:{change:function(t){e.isLongEvent=!1}}}),t("label",{staticClass:"text-sm",attrs:{for:"isLongEvent.no"}},[e._v("Fester Termin (evtl. mehrere)")])]),t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.isLongEvent,expression:"isLongEvent"}],attrs:{type:"radio",name:"isLongEvent",id:"isLongEvent.yes"},domProps:{value:!0,checked:e._q(e.isLongEvent,!0)},on:{change:function(t){e.isLongEvent=!0}}}),t("label",{staticClass:"text-sm",attrs:{for:"isLongEvent.yes"}},[e._v("Zeitraum (evtl. mit Öffnungszeiten)")])])]),t("hr")]:e._e(),"event"!==e.newEntry.model_type||e.isLongEvent?e._e():[t("div",{staticClass:"flex flex-col gap-4"},[t("p",{staticClass:"m-0 text-sm"},[e._v("Bitte geben Sie mindestens einen Termin an. Mehrere Termine sind möglich. Ein Termin beschreibt jeweils ein Startdatum und optional auch Startzeit, Enddatum oder Endzeit.")]),e._l(e.newEntry.times,(function(n,i){return t("div",{key:"time-"+i,staticClass:"flex flex-col gap-4 border border-l-0 border-t-0 border-r-0 border-dashed border-gray-600 pb-4"},[t("div",{staticClass:"flex gap-4 items-center"},[t("el-date-picker",{staticClass:"max-w-[9rem] blockAfeefaFormStyle",attrs:{placeholder:"Startdatum",format:"dd.MM.yyyy","value-format":"yyyy-MM-dd",size:"mini"},model:{value:n.startDate,callback:function(t){e.$set(n,"startDate",t)},expression:"n.startDate"}}),n.hasStartTime?t("el-time-select",{staticClass:"max-w-[7rem]",attrs:{"picker-options":{start:"00:00",step:"00:15",end:"23:45"},placeholder:"Startzeit",size:"mini"},model:{value:n.startTime,callback:function(t){e.$set(n,"startTime",t)},expression:"n.startTime"}}):t("a",{staticClass:"text-xs",on:{click:function(e){n.hasStartTime=!0}}},[e._v("+ Startzeit")]),e.newEntry.times[i].hasEndDate?e._e():t("a",{staticClass:"text-xs",on:{click:function(t){e.newEntry.times[i].hasEndDate=!0}}},[e._v("+ Ende")])],1),e.newEntry.times[i].hasEndDate?t("div",{staticClass:"flex gap-4 items-center"},[t("span",{staticClass:"text-xs font-bold"},[e._v("bis")]),t("el-date-picker",{staticClass:"max-w-[9rem] blockAfeefaFormStyle",attrs:{placeholder:"Enddatum",format:"dd.MM.yyyy","value-format":"yyyy-MM-dd",size:"mini"},model:{value:e.newEntry.times[i].endDate,callback:function(t){e.$set(e.newEntry.times[i],"endDate",t)},expression:"newEntry.times[i].endDate"}}),e.newEntry.times[i].hasEndTime?t("el-time-select",{staticClass:"max-w-[7rem]",attrs:{"picker-options":{start:"00:00",step:"00:15",end:"23:45"},placeholder:"Endzeit",size:"mini"},model:{value:e.newEntry.times[i].endTime,callback:function(t){e.$set(e.newEntry.times[i],"endTime",t)},expression:"newEntry.times[i].endTime"}}):e.newEntry.times[i].hasEndDate?t("a",{staticClass:"text-xs",on:{click:function(t){e.newEntry.times[i].hasEndTime=!0}}},[e._v("+ Endzeit")]):e._e()],1):e._e(),t("a",{staticClass:"text-xs",on:{click:function(t){return e.newEntry.times.splice(i,1)}}},[e._v("entfernen")])])})),t("a",{staticClass:"text-sm",on:{click:function(t){return e.addTimeSlot()}}},[e._v("Termin hinzufügen")])],2)],"event"!==e.newEntry.model_type||e.isLongEvent?[t("div",{staticClass:"flex gap-4 items-center"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Zeitraum")]),t("el-date-picker",{staticClass:"max-w-[9rem] blockAfeefaFormStyle",attrs:{placeholder:"Startdatum",format:"dd.MM.yyyy","value-format":"yyyy-MM-dd",size:"mini"},model:{value:e.newEntry.active_start,callback:function(t){e.$set(e.newEntry,"active_start",t)},expression:"newEntry.active_start"}}),t("el-date-picker",{staticClass:"max-w-[9rem] blockAfeefaFormStyle",attrs:{placeholder:"Enddatum",format:"dd.MM.yyyy","value-format":"yyyy-MM-dd",size:"mini"},model:{value:e.newEntry.active_end,callback:function(t){e.$set(e.newEntry,"active_end",t)},expression:"newEntry.active_end"}})],1),t("div",{staticClass:"field"},[e._m(8),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.openinghours,expression:"newEntry.openinghours"}],attrs:{maxlength:"500"},domProps:{value:e.newEntry.openinghours},on:{input:function(t){t.target.composing||e.$set(e.newEntry,"openinghours",t.target.value)}}})])]:e._e(),t("hr"),t("h3",[e._v("Angaben zum Akteur (Träger des Angebots)")]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-sm"},[e._v("Existiert der Akteur bereits in der Afeefa Datenbank?")]),t("span",{staticClass:"hint text-xs"},[e._v('Wählen Sie "Nein", um einen neuen Akteur zu erzeugen.')]),t("div",{staticClass:"flex gap-8"},[t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.actorExists,expression:"actorExists"}],attrs:{type:"radio",name:"actorExists",id:"actorExists.yes"},domProps:{value:!0,checked:e._q(e.actorExists,!0)},on:{change:function(t){e.actorExists=!0}}}),t("label",{staticClass:"text-sm",attrs:{for:"actorExists.yes"}},[e._v("Ja")])]),t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.actorExists,expression:"actorExists"}],attrs:{type:"radio",name:"actorExists",id:"actorExists.no"},domProps:{value:!1,checked:e._q(e.actorExists,!1)},on:{change:function(t){e.actorExists=!1}}}),t("label",{staticClass:"text-sm",attrs:{for:"actorExists.no"}},[e._v("Nein")])])])]),e.actorExists?[t("div",{staticClass:"field"},[t("label",{staticClass:"text-sm font-bold",class:{valid:e.actorValid},attrs:{required:""}},[e._v("Akteur suchen und auswählen:")]),t("el-select",{staticClass:"autocomplete",attrs:{remote:"","remote-method":e.fetchActors,filterable:"","no-match-text":"keine passenden Akteure","no-data-text":"keine Datensätze",placeholder:"Name des Trägers bzw. Akteurs eingeben",loading:e.autocompleteIsLoading},on:{change:e.setActor},model:{value:e.existingActorId,callback:function(t){e.existingActorId=t},expression:"existingActorId"}},e._l(e.actorsForAutocomplete,(function(e){return t("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),t("hr")]:e._e(),e.actorExists?e._e():[t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold",class:{valid:e.isValid("newEntry.actor.title")},attrs:{required:""}},[e._v("Name des Akteurs ("+e._s(e.newEntry.actor.title?e.newEntry.actor.title.length:0)+" / 100 Zeichen)")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.title,expression:"newEntry.actor.title"}],ref:"newEntry.actor.title",attrs:{required:"",minlength:"5",maxlength:"100"},domProps:{value:e.newEntry.actor.title},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor,"title",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold",class:{valid:e.isValid("newEntry.actor.description")},attrs:{required:""}},[e._v("Kurze Beschreibung ("+e._s(e.newEntry.actor.description?e.newEntry.actor.description.length:0)+" / 500 Zeichen)"),t("br")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.description,expression:"newEntry.actor.description"}],ref:"newEntry.actor.description",attrs:{minlength:"10",maxlength:"500"},domProps:{value:e.newEntry.actor.description},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor,"description",t.target.value)}}})]),e.navigation?t("div",{staticClass:"field"},[t("div",{staticClass:"flex flex-col gap-4"},[t("div",{staticClass:"border border-l-0 border-t-0 border-r-0 border-dashed border-gray-600 pb-4 flex flex-col gap-2"},[t("select-button",{ref:"actor.ct-"+e.navigation.id,staticClass:"self-start",attrs:{required:!0,"entity-name":e.navigation.display_name.split(",")[1],"options-array":e.ModelHelpers.mapCategoryTypeForSelectInput(e.navigation),multiple:e.navigation.options.includes("user_multiple"),"multiple-compressed":!1},on:{changed:e.changeCategoriesForActor}}),t("label",{staticClass:"text-xs"},[e._v("Wählen Sie bis zu drei Themenbereiche aus, die Ihr Handlungsfeld am besten charakterisieren.")])],1),e._l(e.editableCategoryTypesForActor,(function(n){return t("div",{key:n.id,staticClass:"border border-l-0 border-t-0 border-r-0 border-dashed border-gray-600 pb-4 flex flex-col gap-2"},[t("select-button",{ref:"actor.ct-"+n.id,refInFor:!0,staticClass:"self-start",attrs:{required:n.options.includes("user_required"),"entity-name":n.display_name.split(",")[1],"options-array":e.ModelHelpers.mapCategoryTypeForSelectInput(n),multiple:n.options.includes("user_multiple"),"multiple-compressed":!1},on:{changed:e.changeCategoriesForActor}})],1)}))],2)]):e._e(),e._m(9),t("div",{staticClass:"field"},[e._m(10),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.contact.title,expression:"newEntry.actor.contact.title"}],attrs:{maxlength:"50"},domProps:{value:e.newEntry.actor.contact.title},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.contact,"title",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Ansprechperson")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.contact.name,expression:"newEntry.actor.contact.name"}],attrs:{maxlength:"50"},domProps:{value:e.newEntry.actor.contact.name},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.contact,"name",t.target.value)}}})]),t("div",{staticClass:"grid"},[t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("E-Mail")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.contact.email,expression:"newEntry.actor.contact.email"}],attrs:{type:"email",maxlength:"100"},domProps:{value:e.newEntry.actor.contact.email},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.contact,"email",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Telefon")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.contact.phone,expression:"newEntry.actor.contact.phone"}],attrs:{type:"phone",maxlength:"20"},domProps:{value:e.newEntry.actor.contact.phone},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.contact,"phone",t.target.value)}}})])]),t("div",{staticClass:"field"},[e._m(11),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.contact.web,expression:"newEntry.actor.contact.web"}],attrs:{maxlength:"500"},domProps:{value:e.newEntry.actor.contact.web},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.contact,"web",t.target.value)}}})]),t("hr"),t("h3",[e._v("Ortsangaben")]),t("div",{staticClass:"field"},[e._m(12),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.location.title,expression:"newEntry.actor.location.title"}],attrs:{maxlength:"100"},domProps:{value:e.newEntry.actor.location.title},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.location,"title",t.target.value)}}})]),t("div",{staticClass:"grid"},[t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Straße")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.location.street,expression:"newEntry.actor.location.street"}],attrs:{maxlength:"100"},domProps:{value:e.newEntry.actor.location.street},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.location,"street",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Ort")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.location.city,expression:"newEntry.actor.location.city"}],attrs:{maxlength:"50"},domProps:{value:e.newEntry.actor.location.city},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.location,"city",t.target.value)}}})]),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("PLZ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.location.zip,expression:"newEntry.actor.location.zip"}],attrs:{type:"number",maxlength:"6"},domProps:{value:e.newEntry.actor.location.zip},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.location,"zip",t.target.value)}}})])]),t("div",{staticClass:"field"},[e._m(13),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.location.address_detail,expression:"newEntry.actor.location.address_detail"}],attrs:{maxlength:"100"},domProps:{value:e.newEntry.actor.location.address_detail},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.location,"address_detail",t.target.value)}}})]),t("div",{staticClass:"field"},[e._m(14),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.actor.location.directions,expression:"newEntry.actor.location.directions"}],attrs:{maxlength:"100"},domProps:{value:e.newEntry.actor.location.directions},on:{input:function(t){t.target.composing||e.$set(e.newEntry.actor.location,"directions",t.target.value)}}})]),t("hr")],t("div",{staticClass:"field"},[e._m(15),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.comment,expression:"newEntry.comment"}],attrs:{maxlength:"3000"},domProps:{value:e.newEntry.comment},on:{input:function(t){t.target.composing||e.$set(e.newEntry,"comment",t.target.value)}}})]),t("div",{staticClass:"flex gap-4 items-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.newEntry.datenschutz,expression:"newEntry.datenschutz"}],staticClass:"shrink-0",attrs:{id:"consent",type:"checkbox",required:""},domProps:{value:!1,checked:Array.isArray(e.newEntry.datenschutz)?e._i(e.newEntry.datenschutz,!1)>-1:e.newEntry.datenschutz},on:{change:function(t){var n=e.newEntry.datenschutz,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=!1,s=e._i(n,o);i.checked?s<0&&e.$set(e.newEntry,"datenschutz",n.concat([o])):s>-1&&e.$set(e.newEntry,"datenschutz",n.slice(0,s).concat(n.slice(s+1)))}else e.$set(e.newEntry,"datenschutz",r)}}}),t("label",{staticClass:"text-xs",attrs:{for:"consent"}},[e._v(" Ich versichere zur Eingabe der bereitgestellten Informationen berechtigt zu sein und willige ein, dass diese zur Veröffentlichung verwendet werden dürfen. ")])]),t("section",{staticClass:"field"},[e.disabled?e._e():t("input",{staticClass:"button",attrs:{type:"submit",value:"Jetzt einsenden"}})])]],2)},gy=[function(){var e=this,t=e._self._c;return t("label",[e._v(" Informationen zu den Kosten"),t("br"),t("span",{staticClass:"hint"},[e._v("z.B. 10 EUR Teilnahmegebühr")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs"},[e._v(" Teilnahmebedingungen"),t("br"),t("span",{staticClass:"hint"},[e._v("z.B. Link zur Anmeldung")])])},function(){var e=this,t=e._self._c;return t("h3",[e._v("Kontaktangaben "),t("span",{staticClass:"hint"},[e._v("(öffentlich)")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs font-bold"},[e._v(" Bezeichnung des Kontakts "),t("span",{staticClass:"hint"},[e._v("z.B. Vereinsbüro, Vorstand")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs font-bold"},[e._v("Website "),t("span",{staticClass:"hint"},[e._v("z.B. https://meinverein.de/sprachkurs")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs font-bold"},[e._v("Bezeichnung des Orts"),t("span",{staticClass:"hint"},[e._v("z.B. Bibliothek")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs"},[e._v("Zusätzliche Informationen zum Ort"),t("span",{staticClass:"hint"},[e._v("z.B. Hinterhaus 2. OG links")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs font-bold"},[e._v("Anfahrtsbeschreibung"),t("span",{staticClass:"hint"},[e._v("z.B. Haltestelle Coventrystraße")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs"},[e._v(" Wann kann das Angebot genutzt werden? "),t("span",{staticClass:"hint"},[e._v("z.B. jeden 2. Montag 13-15 Uhr")])])},function(){var e=this,t=e._self._c;return t("h3",[e._v("Kontaktangaben "),t("span",{staticClass:"hint"},[e._v("(öffentlich)")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs font-bold"},[e._v(" Bezeichnung des Kontakts "),t("span",{staticClass:"hint"},[e._v("z.B. Vereinsbüro, Vorstand")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs font-bold"},[e._v("Website "),t("span",{staticClass:"hint"},[e._v("z.B. https://meinverein.de")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs font-bold"},[e._v("Bezeichnung des Orts"),t("span",{staticClass:"hint"},[e._v("z.B. Bürogebäude")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs"},[e._v("Zusätzliche Informationen zum Ort"),t("span",{staticClass:"hint"},[e._v("z.B. Hinterhaus 2. OG links")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-xs font-bold"},[e._v("Anfahrtsbeschreibung"),t("span",{staticClass:"hint"},[e._v("z.B. Haltestelle Coventrystraße")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"text-sm"},[e._v(" Hinweise an die Redaktion? "),t("span",{staticClass:"hint"},[e._v("z.B. Kontaktangabe für Rückfragen")])])}],vy=i(4183),yy=i.n(vy);let _y=Ic(dy=class extends(la()){constructor(...e){super(...e),this.apiURL=null,this.running={}}created(){this.apiURL=`https://${AFEEFA.env.AFEEFA_HOST}/fapi/`,this.debugger=new Bc}async fetchOffer(e){const t=await this.get("offers/"+e,{area:null});if(t)return t}async fetchActor(e){const t=await this.get("actors/"+e,{area:null});if(t)return t}async fetchActors(e=null,t={}){t.active=1,t.q=e;const n=await this.get("actors",t);if(n)return n.data}async fetchSubsets(){const e=await this.get("subsets",{area:null});if(e)return e.data}async fetchLanguages(e){const t=await this.get("locales");if(t)return t}async fetchRecipe(e){const t=await this.get("precooked/"+e);if(t)return t}async fetchAllCategoryTypes(){if(this.running.fetchAllCategoryTypes)return;this.running.fetchAllCategoryTypes=!0;const e=await this.get("categoryTypes");return this.running.fetchAllCategoryTypes=!1,e||void 0}async fetchSearchResults(e,t={}){let n="search";e.text&&(n+="/"+e.text);const i={};e.categories&&e.categories.length&&(i.categories=e.categoriesToUrlString()),e.entryType&&(i.type=e.entryType),t.entryType&&(i.type=t.entryType);let r=null;return e.offerTypes&&(r=e.offerTypes),t.offerTypes&&(r=t.offerTypes),Array.isArray(r)&&(i.offerTypes=r.join(",")),e.containIds&&(e.containIds.offers&&(i.offers=e.containIds.offers.join(",")),e.containIds.actors&&(i.actors=e.containIds.actors.join(","))),void 0!==e.area&&(i.area=e.area),t.order&&(i.order=t.order),t.limit>0&&(i.limit=t.limit),t.amountOfOccurrences>0&&(i.amountOfOccurrences=t.amountOfOccurrences),t.groupByOccurrences&&(i.groupByOccurrences=!0),await this.get(n,i)}async makeRequest(e,t={},n=null,i={}){this.debugger.debug(e,{params:t},{requestData:n},{options:i});try{let s=this.apiURL+e;if(t&&(s+=this.buildParameterString(t)),"post"===i.method)var{data:r,headers:o}=await yy().post(s,n);else var{data:r,headers:o}=await yy().get(s);if(o["content-type"].match("application/json"))return r;throw new Error}catch(s){this.$bus.$emit("showError","Fehler beim Laden der Daten")}}async get(e,t={}){return await this.makeRequest(e,t)}async post(e,t={},n=null){return await this.makeRequest(e,t,n,{method:"post"})}buildParameterString(e){let t="",n=0;void 0===e.area&&(e.area=this.User.subset),void 0===e.lang&&(e.lang=this.User.getLanguage());for(const i in e)e[i]&&(t+=n>0?"&":"?",t+=i+"="+e[i],n++);return t}})||dy;var by,xy;let wy=(by=Ic({}),by(xy=class extends Gc{constructor(...e){super(...e),this.api=null,this.state=null,this.states={FRESH:1,SENDING:2,SUCCESS:3,FAIL:4}}created(){this.api=new _y,this.state=this.states.FRESH,this.init()}init(){console.warn("please implement init() method")}reset(){this.state=this.states.FRESH,this.init()}async submit(e){e.preventDefault(),this.send()}send(){console.warn("please implement send() method")}async sendForm(e,t){this.state=this.states.SENDING;const n=await this.api.post(e,null,t);this.state=!0===n?this.states.SUCCESS:this.states.FAIL}isValid(e){const t=this.$refs[e];return!(!t||!t.classList)&&t.matches(":valid")}get isFailed(){return this.state===this.states.FAIL}get isSuccessful(){return this.state===this.states.SUCCESS}get isSending(){return this.state===this.states.SENDING}isMobile(){return Lc.isMobile()}})||xy);var Cy,ky,Sy,Ey,Ty=wy,My=Uc(Ty,Cy,ky,!1,null,null,null),Ay=My.exports;let Oy=(Sy=Ic({}),Sy(Ey=class extends(la()){setCategories(e,t,n=[]){return n.length&&(e=e.filter((e=>!n.includes(e)))),t.length&&(e=[...e,...t]),e}})||Ey);var Iy,Dy,Py,zy,Ly=Oy,By=Uc(Ly,Iy,Dy,!1,null,null,null),Fy=By.exports;let Ry=(Py=Ic({mixins:[Fy],props:{formKey:{type:String,default:null},presetCategories:{type:Array,default:null},presetOfferModelType:{type:String,default:null},hiddenCategoryTypes:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1}}}),Py(zy=class extends Ay{constructor(...e){super(...e),this.newEntry=null,this.actorExists=!0,this.actorsForAutocomplete=[],this.autocompleteIsLoading=!1,this.existingActorId=null,this.isLongEvent=!1}init(){this.actorExists=!0,this.existingActorId=null,this.newEntry={model_type:null,free:!0,online:!1,accessible:!1,signup_required:!1,categories:[],location:{},contact:{},times:[],actor:{categories:[],location:{},contact:{}}},this?.presetCategories?.length&&(this.newEntry.categories=this.setCategories(this.newEntry.categories,this.presetCategories)),this.presetOfferModelType&&(this.newEntry.model_type=this.presetOfferModelType),this.addTimeSlot()}addTimeSlot(){this.newEntry.times.push({hasStartTime:!1,hasEndDate:!1,hasEndTime:!1,startDate:null,startTime:null,endDate:null,endTime:null})}get editableCategoryTypesForOffer(){return this.Store.getEditableCategoryTypes({entryType:"offer",excludeModelTypeSpecificOnes:!0})}get editableCategoryTypesForActor(){return this.Store.getEditableCategoryTypes({entryType:"actor"})}get editableCategoryTypesForOfferModelType(){return this.Store.getEditableCategoryTypes({entryType:"offer",offerTypes:[this.newEntry.model_type]})}get offerContactValid(){return this.newEntry.contact.email||this.newEntry.contact.phone}categoriesValid(){let e=!0;for(const t in this.$refs)if(this.actorExists&&t.includes("offer.ct-")||!this.actorExists&&t.includes("ct-")){const n=Array.isArray(this.$refs[t])?this.$refs[t][0]:this.$refs[t],i=n?.valid;i||(e=!1)}return e}get actorValid(){return!this.actorExists||null!==this.existingActorId}async fetchActors(e){this.autocompleteIsLoading=!0,this.actorsForAutocomplete=await this.api.fetchActors(e,{area:this.Store.getDefaultSubset().slug}),this.autocompleteIsLoading=!1}setActor(e){this.newEntry.actor.id=e??null}changeCategories(e,t){const n=_.map(e,(e=>e.id)),i=_.map(t,(e=>e.id));this.newEntry.categories=this.setCategories(this.newEntry.categories,n,i)}changeCategoriesForActor(e,t){const n=_.map(e,(e=>e.id)),i=_.map(t,(e=>e.id));this.newEntry.actor.categories=this.setCategories(this.newEntry.actor.categories,n,i)}async send(){let e="";if(this.categoriesValid()?this.offerContactValid?this.actorValid||(e="Angaben zum Akteur fehlen noch"):e="Kontaktangaben werden noch benötigt":e="Einige Kategorien müssen noch vergeben werden",e)Fm().fire({toast:!0,icon:"info",title:"Hinweis",text:e,timer:3e3,timerProgressBar:!1,position:"top",showConfirmButton:!1});else{const e={formKey:this.formKey,offer:this.newEntry,subset:this.User.getSubset()};this.sendForm("offers",e)}}})||zy);var $y,Ny,jy=Ry,Vy=Uc(jy,my,gy,!1,null,"480b2e1f",null),Uy=Vy.exports;let qy=($y=Ic({components:{AddForm:Uy,SubsetContactCard:fm,Modal:up},props:["variant"]}),$y(Ny=class extends Gc{constructor(...e){super(...e),this.showModal1=!1}get defaultCategories(){return"mbr"===this.variant?[1111,1035,1055,1054,337,333,1261,1026,958,1028,544,545]:[]}})||Ny);var Hy,Wy,Gy=qy,Zy=Uc(Gy,py,fy,!1,null,"fef9a6cc",null),Xy=Zy.exports,Ky=function(){var e=this,t=e._self._c;return e.entry&&e.AppIsInitialized?t("div",{staticClass:"EntryView relative",class:{mobile:e.device.isMobile()}},[t("tool-bar",{staticClass:"gap-4",class:{fluid:e.device.isMobile()}},[t("div",{staticClass:"entryHeading lg:max-w-[60%]"},[e.logoImage?t("figure",{staticClass:"logo"},[t("img",{attrs:{src:e.logoImage.file.url+"?width=300&height=30"}})]):e._e(),t("div",{staticClass:"entryHeadingTitle"},[t("h1",[e._v(" "+e._s(e.entry.title)),e.entry.canceled?t("span",{staticClass:"normal"},[e._v("    ❌ abgesagt ")]):e._e()]),"de"!=e.User.getLanguage()?t("span",{staticClass:"small"},[e._v(e._s(e.translate(e.entry,"title")))]):e._e(),t("div",{staticClass:"flex gap-4 items-center"},[e.ModelHelpers.isEvent(e.entry)&&e.nextEventDate?t("div",{staticClass:"flex gap-2 items-center"},[t("fa-icon",{staticClass:"justify-self-center",attrs:{icon:"calendar"}}),t("span",{staticClass:"font-bold"},[e._v(e._s(e._f("formatDateTime")(e.nextEventDate.start.date,"dd.mm. ' | ' HH:MM")))])],1):e._e(),e.modelTypeOneword&&e.modelTypeCategory?t("span",[e._v(e._s(e.modelTypeOneword)+" ("+e._s(e.translate(e.modelTypeCategory,"title"))+")")]):e.modelTypeCategory?t("span",[e._v(e._s(e.translate(e.modelTypeCategory,"title")))]):e._e()])])]),e.ModelHelpers.isPublic(e.entry.owner)&&e.owner&&!e.device.isMobile()?t("Owner-Card",{staticClass:"md:max-w-[25%]",attrs:{owner:e.owner}}):e._e()],1),t("section",{staticClass:"entryContent"},[t("header",{staticClass:"column"},[e.entry.description?t("div",{staticClass:"entryDescription bold"},[e._l(e.translate(e.entry,"description").split("\n"),(function(n){return[t("div",{domProps:{innerHTML:e._s(e.$options.filters.hydrateLinks(n))}})]}))],2):e._e(),e.device.isMobile()?t("Quick-Tools",{attrs:{entry:e.entry},on:{annotate:e.toggleAnnotationForm,contact:e.toggleContactForm}}):e._e(),e.mainNavigationCategories?t("div",[t("h2",{staticClass:"label"},[e._v(" "+e._s(e.translate(e.navigation,"display_name").split(",")[2])+" ")]),t("div",{staticClass:"inline-flex flex-col gap-4 place-items-start mt-2"},e._l(e.mainNavigationCategories,(function(n){return t("PrimaryCategory",{key:"main-"+n.id,attrs:{category:n,"sub-categories":e.subNavigationCategoriesFor(n)}})})),1)]):e._e(),e._l(e.Store.getPresentableCategoryTypes(),(function(n){return[e.getCategoriesByType(n)?t("div",{key:n.id},[t("h2",{staticClass:"label"},[e._v(" "+e._s(e.translate(n,"display_name").split(",")[2])+" ")]),t("div",{staticClass:"inline-flex gap-y-2 gap-x-4 flex-wrap"},e._l(e.getCategoriesByType(n),(function(n){return t("span",{key:n.id,staticClass:"bold small"},[e._v(" "+e._s(e.translate(n,"title"))+" ")])})),0)]):e._e()]})),e.readableTimes.length?t("div",[t("h2",{staticClass:"label"},[e._v(" Angebotszeiten ")]),e._l(e.readableTimes,(function(n,i){return t("div",{key:i,staticClass:"white-box p-6 grid gap-2"},[n.title?t("p",{staticClass:"m-0 semibold"},[e._v(" "+e._s(n.title)+" ")]):e._e(),n.description?t("span",{staticClass:"small italic"},[e._v(" "+e._s(n.description)+" ")]):e._e(),n.opening_hours?t("div",[t("Opening-Hours",{staticClass:"small semibold",attrs:{opening_hours:n.opening_hours}})],1):e._e(),t("div",{staticClass:"flex flex-wrap gap-2"},e._l(n.occurrences,(function(n,i){return t("Flag",{key:i,staticClass:"small"},[n.hasStartTime&&n.hasEndTime?[e._v(" "+e._s(e._f("formatDateTime")(n.start.date,"dd.mm. 'von' HH:MM"))+" "+e._s(e._f("formatDateTime")(n.end.date," 'bis' HH:MM"))+" ")]:n.hasStartTime?[e._v(" "+e._s(e._f("formatDateTime")(n.start.date,"dd.mm. 'um' HH:MM"))+" ")]:[e._v(" "+e._s(e._f("formatDateTime")(n.start.date,"dd.mm."))+" ")]],2)})),1)])}))],2):e._e(),e.ModelHelpers.isPublic(e.entry.owner)&&e.owner&&e.device.isMobile()?t("Owner-Card",{attrs:{owner:e.owner}}):e._e(),t("p",{staticClass:"small"},[e._v(" ~ "+e._s(e.Store.getUiWording("ui.term.gender-info"))+" ")]),e.entry.updated_at?t("p",{staticClass:"meta small"},[e._v(" "+e._s(e.Store.getUiWording("ui.entry.last-updated"))+": "+e._s(e._f("formatDateTime")(e.entry.updated_at,'dd.mm.yyyy "um" HH:MM'))),t("br"),e._v("# "),t("a",{staticClass:"text-current",attrs:{href:e.adminLink,target:"admin"}},[e._v(e._s(e.entry.id))])]):e._e()],2),t("div",{staticClass:"column"},[e.mapEntry?t("div",{staticClass:"p-2 bg-white"},[t("div",{staticClass:"w-full h-80"},[t("Map",{attrs:{"markers-data":[e.mapEntry],"initial-map-center":[13.73758,51.05196],"initial-map-zoom":8,"selected-marker-id":e.mapEntry.id,"focus-selected-marker":!0,"marker-color":"#333333","active-marker-color":"#083e55","text-color":"#ffffff","use-custom-marker":!0,"marker-height":"10","marker-radius":"10","link-marker-title":!1,hideControls:e.isPrint()},scopedSlots:e._u([{key:"marker",fn:function(e){return[t("Map-Marker",{attrs:{marker:e.marker}})]}}],null,!1,3689413143)})],1),e.address?t("div",{staticClass:"small mt-2"},[e._v(" "+e._s(e.address)+" ")]):e._e()]):e._e(),e.defaultImage?t("section",{staticClass:"image rounded-2xl"},[t("img",{staticClass:"rounded-2xl w-full",attrs:{src:e.defaultImage.file.url}})]):e._e()]),t("div",{staticClass:"column"},[e.device.isMobile()?e._e():t("Quick-Tools",{attrs:{entry:e.entry},on:{annotate:e.toggleAnnotationForm,contact:e.toggleContactForm}}),e.showContactForm?t("Modal",{attrs:{"has-close-button":""},on:{close:function(t){return e.toggleContactForm()}}},[t("Contact-Form",{staticClass:"paperless",attrs:{entry:e.entry}})],1):e._e(),e.showAnnotationForm?t("Modal",{attrs:{"has-close-button":""},on:{close:function(t){return e.toggleAnnotationForm()}}},[t("Annotation-Form",{staticClass:"paperless",attrs:{entry:e.entry}})],1):e._e(),e.ModelHelpers.isOffer(e.entry)&&(e.entry.online||!e.entry.free||e.entry.requirements||e.entry.accessible)?t("div",{staticClass:"white-box p-6 grid gap-x-4 gap-y-2 items-center",staticStyle:{"grid-template-columns":"auto 1fr"}},[e.entry.online?[t("fa-icon",{staticClass:"justify-self-center",attrs:{icon:"desktop"}}),t("span",[e._v("online")])]:e._e(),e.entry.free?e._e():[t("fa-icon",{staticClass:"justify-self-center",attrs:{icon:"euro-sign"}}),t("span",[e._v(e._s(e.entry.costs??"kostenpflichtig"))])],e.entry.free?[t("fa-icon",{staticClass:"justify-self-center",attrs:{icon:"euro-sign"}}),t("span",[e._v("kostenlos")])]:e._e(),e.entry.requirements?[t("fa-icon",{staticClass:"justify-self-center",attrs:{icon:"circle-exclamation"}}),t("div",{domProps:{innerHTML:e._s(e.$options.filters.hydrateLinks(e.entry.requirements))}})]:e._e(),e.entry.accessible?[t("fa-icon",{staticClass:"justify-self-center",attrs:{icon:"universal-access"}}),t("span",[e._v("barrierefrei")])]:e._e()],2):e._e(),e.entry.linked_contacts&&e.entry.linked_contacts.length?t("div",e._l(e.entry.linked_contacts,(function(n){return t("contact",{key:n.id,staticClass:"white-box p-6",attrs:{"custom-title":n.custom_title,contact:n.contact,showRawLinks:e.isPrint()}})})),1):e._e(),e.entry.resources?t("section",{staticClass:"resources"},[t("h2",{staticClass:"label"},[e._v(" Ressourcen ")]),t("p",[e._v("resources")])]):e._e()],1),e.entry?.linked_offers?.length?t("div",{staticClass:"linkedOffers column full"},[t("h2",[e._v(" "+e._s(e.Store.getUiWording("ui.term.actor-offers-list"))+" ")]),t("element-list",{staticStyle:{"flex-wrap":"wrap"},attrs:{items:e.linkedOffers}})],1):e._e()])],1):e._e()},Yy=[],Jy=function(){var e=this,t=e._self._c;return t("div",{staticClass:"PrimaryCategory flex gap-4 items-center"},[e.category.media.length?t("div",{staticStyle:{background:"radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 86%)"}},[t("div",{staticClass:"icon w-8 h-8",style:{"mask-image":"url("+e.category.media[0].file.url+")","background-color":e.category.color}})]):e._e(),t("div",[t("div",{staticClass:"flex flex-col"},[t("label",{staticClass:"font-bold"},[e._v(e._s(e.translate(e.category,"title")))]),e._l(e.subCategories,(function(n){return t("label",{key:"sc-"+n.id,staticClass:"text-sm"},[e._v(e._s(e.translate(n,"title")))])}))],2)])])},Qy=[];let e_=(Hy=Ic({props:["category","subCategories"]}),Hy(Wy=class extends Gc{})||Wy);var t_,n_,i_=e_,r_=Uc(i_,Jy,Qy,!1,null,"15c9bfa4",null),o_=r_.exports,s_=function(){var e=this,t=e._self._c;return e.AppIsInitialized?t("div",{staticClass:"OwnerCard"},[e.logoImage?t("div",{staticClass:"image"},[t("img",{attrs:{src:e.logoImage.file.url+"?width=300&height=30"}})]):e._e(),t("div",[t("span",{staticClass:"small"},[e._v(e._s(e.Store.getUiWording("ui.entry.offer-by")))]),e.ModelHelpers.hasActorProfile(e.owner)?[t("router-link",{attrs:{to:e.ModelHelpers.getEntryUrl(e.owner)+"?l="+e.User.getLanguage()}},[t("h4",{staticClass:"text-sm"},[e._v(e._s(e.owner.title))])])]:t("h4",{staticClass:"text-sm"},[e._v(" "+e._s(e.owner.title)+" ")])],2)]):e._e()},a_=[];let l_=(t_=Ic({props:["owner"]}),t_(n_=class extends Gc{get logoImage(){const e=this.owner.media.filter((e=>"logo"===e.label));return e.length?e[0]:null}})||n_);var c_,u_,h_=l_,d_=Uc(h_,s_,a_,!1,null,"299604ca",null),p_=d_.exports,f_=function(){var e=this,t=e._self._c;return t("form",{staticClass:"AnnotationForm form flex flex-col gap-8",class:{sending:e.isSending},on:{submit:e.submit}},[e.isSuccessful?[t("p",[e._v("Deine Anmerkung wurde versendet. Vielen Dank.")]),t("a",{on:{click:e.reset}},[e._v("Weitere Anmerkung senden")])]:[t("h3",[e._v(" Anmerkung an die Redaktion ")]),t("span",{staticClass:"text-sm"},[e._v("Müssen Informationen zu diesem Eintrag geändert werden? Dann sende hier eine Anmerkung an die Redaktion.")]),e.subset?t("Subset-Contact-Card",{attrs:{subset:e.subset}}):e._e(),t("div",{staticClass:"field",class:{valid:e.isValid("annotation.message")}},[t("label",{staticClass:"text-xs font-bold",class:{valid:e.isValid("annotation.message")},attrs:{required:""}},[e._v("Anmerkung allgemein ("+e._s(e.annotation.message?e.annotation.message.length:0)+" / 1000 Zeichen)"),e._v(" "),t("span",{staticClass:"hint"},[e._v("z.B. Titel, Beschreibung, Kontaktangaben, Kategorien")])]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.annotation.message,expression:"annotation.message"}],ref:"annotation.message",attrs:{minlength:"10",maxlength:"1000",required:""},domProps:{value:e.annotation.message},on:{input:function(t){t.target.composing||e.$set(e.annotation,"message",t.target.value)}}})]),"offer"===e.ownerType?t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Wann kann das Angebot genutzt werden? ("+e._s(e.annotation.times?e.annotation.times.length:0)+" / 300 Zeichen) "),t("span",{staticClass:"hint"},[e._v("z.B. jeden 2. Montag 13-15 Uhr")])]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.annotation.times,expression:"annotation.times"}],ref:"annotation.times",attrs:{minlength:"10",maxlength:"300"},domProps:{value:e.annotation.times},on:{input:function(t){t.target.composing||e.$set(e.annotation,"times",t.target.value)}}})]):e._e(),"offer"===e.ownerType?t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("In welchen Sprachen kann das Angebot genutzt werden? ("+e._s(e.annotation.languages?e.annotation.languages.length:0)+" / 200 Zeichen)")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.annotation.languages,expression:"annotation.languages"}],ref:"annotation.languages",attrs:{minlength:"5",maxlength:"200"},domProps:{value:e.annotation.languages},on:{input:function(t){t.target.composing||e.$set(e.annotation,"languages",t.target.value)}}})]):e._e(),t("div",{staticClass:"field"},[t("label",{staticClass:"text-xs font-bold"},[e._v("Kontaktangaben für Rückfragen zu dieser Anmerkung ("+e._s(e.annotation.contact?e.annotation.contact.length:0)+" / 200 Zeichen)")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.annotation.contact,expression:"annotation.contact"}],ref:"annotation.contact",attrs:{minlength:"5",maxlength:"200"},domProps:{value:e.annotation.contact},on:{input:function(t){t.target.composing||e.$set(e.annotation,"contact",t.target.value)}}})]),e.extended?[e.Store.getEditableCategoryTypes().length&&"offer"===e.ownerType?t("div",{staticClass:"field"},[t("label",[e._v("Kategorisierung")]),e._l(e.Store.getEditableCategoryTypes(),(function(n){return t("select-button",{key:n.id,attrs:{"entity-name":n.display_name.split(",")[1],"options-array":e.ModelHelpers.mapCategoryTypeForSelectInput(n),multiple:!0},on:{changed:e.changeCategories}})}))],2):e._e()]:e._e(),e._m(0)]],2)},m_=[function(){var e=this,t=e._self._c;return t("section",{staticClass:"field self-center"},[t("input",{staticClass:"button",attrs:{type:"submit",value:"Anmerkung senden"}})])}];let g_=(c_=Ic({mixins:[Fy],components:{SubsetContactCard:fm},props:["entry"]}),c_(u_=class extends Ay{constructor(...e){super(...e),this.annotation=null,this.extended=!1}init(){this.extended=this.$root.getConfig("config.app.extended_annotation_form"),this.annotation={ownerId:this.entry.id,ownerType:this.ownerType,message:null,times:null,languages:null,contact:null,categories:[]}}get ownerType(){return this.entry.type.includes("Offer")?"offer":"actor"}changeCategories(e,t){this.annotation.categories=this.setCategories(this.annotation.categories,e,t)}async send(){const e={annotation:this.annotation};this.sendForm("annotations",e)}get subset(){const e=this.Store.getSubsetBySlug(this.User.getSubset());return e||null}})||u_);var v_,y_,__=g_,b_=Uc(__,f_,m_,!1,null,"0a0f96e0",null),x_=b_.exports,w_=function(){var e=this,t=e._self._c;return t("form",{staticClass:"ContactForm form flex flex-col gap-8",class:{sending:e.isSending},on:{submit:e.submit}},[e.isSuccessful?[t("p",[e._v("Deine Anfrage wurde versendet. Vielen Dank.")]),t("a",{on:{click:e.reset}},[e._v("Weitere Anfrage senden")])]:[t("h3",[e._v(" "+e._s(e.ModelHelpers.getReadableEntity(e.entry.type,{singular:!0}))+" kontaktieren ")]),t("div",{staticClass:"field",class:{valid:e.isValid("inquiry.message")},attrs:{required:""}},[t("label",{staticClass:"text-xs font-bold"},[e._v("Nachricht ("+e._s(e.inquiry.message?e.inquiry.message.length:0)+" / 1000 Zeichen)")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.inquiry.message,expression:"inquiry.message"}],ref:"inquiry.message",attrs:{minlength:"10",maxlength:"1000",required:""},domProps:{value:e.inquiry.message},on:{input:function(t){t.target.composing||e.$set(e.inquiry,"message",t.target.value)}}})]),t("div",{staticClass:"field",class:{valid:e.isValid("inquiry.contact")},attrs:{required:""}},[t("label",{staticClass:"text-xs font-bold"},[e._v("Kontaktangaben ("+e._s(e.inquiry.contact?e.inquiry.contact.length:0)+" / 200 Zeichen) "),t("span",{staticClass:"hint"},[e._v("z.B. Name, E-Mail, Telefon")])]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.inquiry.contact,expression:"inquiry.contact"}],ref:"inquiry.contact",attrs:{minlength:"5",maxlength:"200",required:""},domProps:{value:e.inquiry.contact},on:{input:function(t){t.target.composing||e.$set(e.inquiry,"contact",t.target.value)}}})]),e._m(0)]],2)},C_=[function(){var e=this,t=e._self._c;return t("section",{staticClass:"field self-center"},[t("input",{staticClass:"button",attrs:{type:"submit",value:"Anfrage senden"}})])}];let k_=(v_=Ic({props:["entry"]}),v_(y_=class extends Ay{constructor(...e){super(...e),this.inquiry=null}init(){this.inquiry={ownerId:this.entry.id,ownerType:this.ownerType,message:null,contact:null}}get ownerType(){return this.entry.type.includes("Offer")?"offer":"actor"}async send(){const e={inquiry:this.inquiry};this.sendForm("inquiries",e)}get subset(){const e=this.Store.getSubsetBySlug(this.User.getSubset());return e||null}})||y_);var S_,E_,T_=k_,M_=Uc(T_,w_,C_,!1,null,null,null),A_=M_.exports,O_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"OpeningHours"},[e._l(e.opening_hours,(function(n,i){return[t("div",{key:i+"a"},[e._v(" "+e._s(n[0])+" ")]),t("div",{key:i+"b"},[e._v(" "+e._s(n[1])+" "+e._s(n[2]?" - "+n[2]:"")+" ")])]}))],2)},I_=[];let D_=(S_=Ic({props:["opening_hours"]}),S_(E_=class extends(la()){})||E_);var P_=D_,z_=Uc(P_,O_,I_,!1,null,"540c0f0e",null),L_=z_.exports,B_=function(){var e=this,t=e._self._c;return e.AppIsInitialized?t("div",{staticClass:"QuickTools flex flex-wrap gap-8 sm:gap-4 items-start justify-center",class:{mobile:e.device.isMobile()}},[t("div",{staticClass:"tool",attrs:{target:"_blank"},on:{click:function(t){e.webShareAPIAvailable?e.share():e.$emit("share")}}},[t("fa-icon",{attrs:{icon:"share-nodes"}}),t("label",[e._v(e._s(e.Store.getUiWording("ui.controls.share")))])],1),t("bookmark-star",{staticClass:"tool",attrs:{item:e.entry}}),t("div",{staticClass:"tool",attrs:{target:"_blank"},on:{click:function(t){return e.print()}}},[t("fa-icon",{attrs:{icon:"print"}}),t("label",[e._v(e._s(e.Store.getUiWording("ui.controls.print")))])],1),t("div",{staticClass:"tool",attrs:{target:"_blank"},on:{click:function(t){return e.$emit("contact")}}},[t("fa-icon",{attrs:{icon:"envelope"}}),t("label",[e._v(e._s(e.Store.getUiWording("ui.controls.contact")))])],1),t("div",{staticClass:"tool",attrs:{target:"_blank"},on:{click:function(t){return e.$emit("annotate")}}},[t("fa-icon",{attrs:{icon:"exclamation-circle"}}),t("label",[e._v(e._s(e.Store.getUiWording("ui.controls.annotate")))])],1)],1):e._e()},F_=[];class R_ extends(la()){constructor(...e){super(...e),this.Store=null,this.User=null}init(){}getEntryUrl(e,t=!1,n=null){const i=this.parseEntityString(e.type);let r="/"+e.slug+"-"+e.id+i.substring(0,1);return r=t?"https://"+window.location.host+r:r,r=n?r+"?lang="+n:r,r}getEntryShortUrl(e){const t=this.parseEntityString(e.type);return"/"+e.id+t.substring(0,1)}getEntryApiUrl(e){const t=this.parseEntityString(e.type);return"/fapi/"+t+"s/"+e.id}getEntryDefaultImage(e){const t=e.media.filter((e=>"default"===e.label));return t.length?t[0]:null}getEntryLogoImage(e){const t=e.media.filter((e=>"logo"===e.label));return t.length?t[0]:null}getSharepicUrl(e){return"https://"+window.location.host+"/sharepic/offer/"+e.id+".png?lang="+this.User.getLanguage()}isOffer(e){return"offer"===this.parseEntityString(e.type)}isOfferType(e,t){return e?.offer_type?.key===t}isEvent(e){return"event"===e?.offer_type?.key}isActor(e){return"actor"===this.parseEntityString(e.type)}isPublic(e){return e&&e.state&&"HIDDEN"!==e.state.publication_state}hasActorProfile(e){return e&&e.description}parseEntityString(e){return e.split("\\")[1].toLowerCase()}getReadableEntity(e,t={}){const n=this.parseEntityString(e);switch(n){case"actor":return t.singular?"Akteur":"Akteure";case"offer":return t.singular?"Angebot":"Angebote";default:return n}}getEntity(e){return this.parseEntityString(e.type)}getCategoriesByCategoryType(e,t,n={}){if(!e.categories||!this.Store.getNavigation())return null;let i=null;return i=n.main?this.mapCategoryIdsToCategories(e.categories).filter((e=>e.category_type_id===t.id&&null===e.parent_id)):this.mapCategoryIdsToCategories(e.categories).filter((e=>e.category_type_id===t.id)),i.length?i:null}mapCategoryIdsToCategories(e){return e.map((e=>this.Store.getCategoryById(e.id))).filter((e=>!!e))}getFirstCategoryAmongCategories(e,t={}){const n=e.filter((e=>null===e.parent_id));if(n.length){const i=n[0];if(t.main)return i;const r=e.filter((e=>e.parent_id===i.id));return r.length?r[0]:i}return null}getNavigationCategory(e,t={}){const n=this.getCategoriesByCategoryType(e,this.Store.getNavigation());return n?this.getFirstCategoryAmongCategories(n,t):null}getNavigationCategories(e,t={}){let n=this.getCategoriesByCategoryType(e,this.Store.getNavigation());return n&&t.main&&(n=n.filter((e=>null===e.parent_id))),n&&t.sub&&(n=n.filter((e=>null!==e.parent_id))),n||null}getParentNavigationCategory(e){if(e.parent_id)return this.Store.getNavigation().categories.find((t=>t.id===e.parent_id))}getModelTypeCategory(e,t={}){if(!e.categories||!this.Store.categoryTypes)return null;const n=this.Store.categoryTypes.filter((t=>!(!t.options||e.type!==t.target_type)&&t.options.includes("type")));let i=[];return n&&(i=this.mapCategoryIdsToCategories(e.categories).filter((e=>n.map((e=>e.id)).includes(e.category_type_id)))),this.getFirstCategoryAmongCategories(i,t)}mapCategoryTypeForSelectInput(e){return e.categories.map((e=>({label:e.title?this.translate(e,"title"):null,value:e.id,image:e.media.length?e.media[0]:null,color:e.color??null,data:e,options:e.sub_categories.length?e.sub_categories.map((e=>({label:e.title?this.translate(e,"title"):null,value:e.id,data:e}))):null})))}getSubset(e){if(void 0!==e.subset_id)return this.Store.subsets.find((t=>t.id===e.subset_id))}getKeyfact(e,t){if(!e?.keyfacts)return null;const n=e.keyfacts.find((e=>e.key===t));return n}getOnewordKeyfact(e){const t=this.getKeyfact(e,"oneword");return t??null}getSubsetKeyfact(e,t){const n=e.keyfacts.find((e=>e.key===t));return n&&n.value?n.value:null}groupEntriesBy(e,t,n=null,i=null){const r=[];for(const o of e){let s,a,l,c,u;if("category"===t){let d=null;if(n){let f=this.getCategoriesByCategoryType(o,n);f&&i&&(f=f.filter((e=>e.parent_id===i.id))),f&&(d=f[0])}!d&&i&&(d=i),s=d?r.find((e=>e.groupee&&e.groupee.id===d.id)):r.find((e=>null===e.groupee)),a=d,l=d?this.translate(d,"title"):null,c=d?d.order:1e3;const p={id:this.getEntity(o)+o.id,entry:o};h(p,s,a,l,c)}if("occurrence"===t){if(!o.occurrences||!o.occurrences.length)continue;for(const[m,g]of o.occurrences.entries()){const v=g.start.date,y=Dr(v,"yyyymmdd");s=r.find((e=>e.groupee===y)),a=y,l=Dr(v,"dddd, dd.mm.",this.User.getLanguage()),c=y,u="start";const _={id:this.getEntity(o)+o.id+"-"+m,entry:o,start:Dr(v,"HH:ss"),meta:g};h(_,s,a,l,c,u)}}function h(e,t,n,i,o,s){t?t.items.push(e):r.push({groupee:n??null,label:i,order:o,orderSecond:s,items:[e]})}}r.sort(((e,t)=>e.order-t.order));for(const b of r)b.orderSecond&&(b.items=b.items.sort(((e,t)=>(e=e[b.orderSecond],t=t[b.orderSecond],e<t?-1:e>t?1:0))));return r}translate(e,t){if(e.translations){const n=e.translations.filter((e=>e.key===t&&e.language===this.User.getLanguage()));return n.length?n[0].value:e[t]}return e[t]}install(e,t){const n=this;e.mixin({created(){this.ModelHelpers.Store=t.store,this.ModelHelpers.User=t.user},data:function(){return{ModelHelpers:n}}})}isOurAfeefa(){return!1}sliceAfterWords(e,t){const n=e.split(" ");let i=n.slice(0,t).join(" ");return t<n.length&&(i+="..."),i}}var $_,N_,j_=new R_;let V_=($_=Ic({props:["entry"],components:{BookmarkStar:Zd}}),$_(N_=class extends Gc{print(){window.open("/fapi/print/"+this.ModelHelpers.parseEntityString(this.entry.type)+"/"+this.entry.id,"_blank")}get webShareAPIAvailable(){return void 0!==navigator.share}async share(){const e=this.ModelHelpers.getModelTypeCategory(this.entry),t={text:this.entry.title+(e?" | "+e.title:""),url:this.ModelHelpers.getEntryUrl(this.entry,!0,this.User.getLanguage())};let n=null,i=null;if(j_.isOffer(this.entry))n=this.ModelHelpers.getSharepicUrl(this.entry),i="png";else{const e=this.ModelHelpers.getEntryLogoImage(this.entry)??this.ModelHelpers.getEntryDefaultImage(this.entry);n=e?e.file.url:null,i=e.file.file_extension}if(n){const{data:e,headers:t}=await yy().get(n,{responseType:"blob"}),r=t["content-type"];new File([e],this.entry.slug+"."+i,{type:r})}console.debug({shareData:t});try{await navigator.share(t)}catch(r){console.warn("Error while sharing",r)}}})||N_);var U_,q_,H_,W_,G_=V_,Z_=Uc(G_,B_,F_,!1,null,"0dc5f58e",null),X_=Z_.exports;let K_=(U_=Ic({components:{Map:Bd,MapMarker:$f,AnnotationForm:x_,ContactForm:A_,OwnerCard:p_,PrimaryCategory:o_,OpeningHours:L_,QuickTools:X_,Modal:up}}),q_=Dc("$route.path"),U_((W_=class extends Gc{constructor(...e){super(...e),this.entry=null,this.owner=null,this.showAnnotationForm=!1,this.showContactForm=!1}created(){this.loadData()}mounted(){this.scrollTop()}onRouteChange(){this.loadData(),this.scrollTop()}async loadData(){this.Store.resetCurrentEntry();const e=await this.Store.getEntryByUrl(this.$route.params.entry);this.entry=e,this.Store.setCurrentEntry(e),this.owner=null,this.entry.owner&&this.ModelHelpers.isPublic(e.owner)&&(this.owner=await this.Store.getActor(this.entry.owner.id)),this.showAnnotationForm=!1,this.showContactForm=!1}scrollTop(){document.scrollingElement.scrollTop=0}get mapEntry(){const e=this,t=this.entry;if(t?.linked_locations[0]?.location?.long&&t?.linked_locations[0]?.location?.lat){const n=t.linked_locations[0].location;return{id:t.id,title:t.linked_locations[0].custom_title||n.title||null,subtitle:n.street+"<br>"+n.zip+" "+n.city,long:n.long,lat:n.lat,link:e.ModelHelpers.getEntryUrl(t)}}return null}get address(){const e=this.entry?.linked_locations[0]?.location;return e?`${e.street}, ${e.zip} ${e.city}`:null}get linkedOffers(){return this.entry.linked_offers.map((e=>e.offer))}get defaultImage(){return this.ModelHelpers.getEntryDefaultImage(this.entry)}get logoImage(){return this.ModelHelpers.getEntryLogoImage(this.entry)}get modelTypeCategory(){return this.ModelHelpers.getModelTypeCategory(this.entry)}get modelTypeOneword(){const e=this.ModelHelpers.getOnewordKeyfact(this.entry);return e?this.translate(e,"value"):null}get mainNavigationCategories(){return this.ModelHelpers.getNavigationCategories(this.entry,{main:!0})}subNavigationCategoriesFor(e){const t=this.ModelHelpers.getNavigationCategories(this.entry,{sub:!0});return t.filter((t=>t.parent_id===e.id))}get readableTimes(){return this.entry.times_readable?this.entry.times_readable.filter((e=>e.occurrences.length)):[]}get nextEventDate(){const e=this?.readableTimes[0]?.occurrences[0];return e}get timeOccurrences(){if(this.entry.occurrences&&this.entry.occurrences.length)return dh().groupBy(this.entry.occurrences,(e=>e.time_definition.id))}get adminLink(){let e="/admin/projects/"+this.subset.id+"/actors/";return this.ModelHelpers.isActor(this.entry)?e+=this.entry.id+"/edit":e+=this.entry.owner.id+"/offers/"+this.entry.id+"/edit",e}getCategoriesByType(e){const t=this.ModelHelpers.getCategoriesByCategoryType(this.entry,e);return t}toggleAnnotationForm(){this.showAnnotationForm=!this.showAnnotationForm,this.showAnnotationForm&&(this.showContactForm=!1)}toggleContactForm(){this.showContactForm=!this.showContactForm,this.showContactForm&&(this.showAnnotationForm=!1)}},qu(W_.prototype,"onRouteChange",[q_],Object.getOwnPropertyDescriptor(W_.prototype,"onRouteChange"),W_.prototype),H_=W_))||H_);var Y_,J_,Q_=K_,eb=Uc(Q_,Ky,Yy,!1,null,"fc5b18e4",null),tb=eb.exports,nb=function(){var e=this,t=e._self._c;return e.AppIsInitialized?t("div",{staticClass:"PrintView",class:{mobile:e.device.isMobile()}},[t("div",{staticClass:"toolbar"},[t("h1",[e._v(e._s(e.Store.getUiWording("ui.controls.print")))])]),e.entries?t("div",{staticClass:"main"},[t("div",{staticClass:"preview"},[e.printMap?t("div",{staticClass:"mapContainer"},[t("Map",{attrs:{"markers-data":e.mapEntries,"initial-map-center":[13.73758,51.05196],"initial-map-zoom":10,"marker-color":"#333333","active-marker-color":"#083e55","text-color":"#ffffff","link-marker-title":!0,"use-custom-marker":!0},scopedSlots:e._u([{key:"marker",fn:function(e){return[t("Print-Entry-Marker",{attrs:{index:e.index}})]}}],null,!1,1889592611)})],1):e._e(),t("div",{staticClass:"entryList"},[t("div",[e._l(e.entries,(function(n,i){return[i%2?e._e():t("Print-Entry",{key:e.ModelHelpers.getEntity(n)+n.id,attrs:{entry:n,index:i,printContacts:e.printContacts,printLocations:e.printLocations}})]}))],2),t("div",[e._l(e.entries,(function(n,i){return[i%2?t("Print-Entry",{key:e.ModelHelpers.getEntity(n)+n.id,attrs:{entry:n,index:i,printContacts:e.printContacts,printLocations:e.printLocations}}):e._e()]}))],2)])]),t("div",{staticClass:"printTools flex flex-col gap-4"},[t("h3",[e._v("Welche Informationen sollen gedruckt werden?")]),t("div",{staticClass:"flex items-center gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.printMap,expression:"printMap"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.printMap)?e._i(e.printMap,null)>-1:e.printMap},on:{change:function(t){var n=e.printMap,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=null,s=e._i(n,o);i.checked?s<0&&(e.printMap=n.concat([o])):s>-1&&(e.printMap=n.slice(0,s).concat(n.slice(s+1)))}else e.printMap=r}}}),t("label",[e._v("Karte")])]),t("div",{staticClass:"flex items-center gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.printLocations,expression:"printLocations"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.printLocations)?e._i(e.printLocations,null)>-1:e.printLocations},on:{change:function(t){var n=e.printLocations,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=null,s=e._i(n,o);i.checked?s<0&&(e.printLocations=n.concat([o])):s>-1&&(e.printLocations=n.slice(0,s).concat(n.slice(s+1)))}else e.printLocations=r}}}),t("label",[e._v("Ort")])]),t("div",{staticClass:"flex items-center gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.printContacts,expression:"printContacts"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.printContacts)?e._i(e.printContacts,null)>-1:e.printContacts},on:{change:function(t){var n=e.printContacts,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=null,s=e._i(n,o);i.checked?s<0&&(e.printContacts=n.concat([o])):s>-1&&(e.printContacts=n.slice(0,s).concat(n.slice(s+1)))}else e.printContacts=r}}}),t("label",[e._v("Kontakt")])]),t("p",[t("a",{staticClass:"button",on:{click:function(t){return e.print()}}},[t("fa-icon",{attrs:{icon:"print"}}),e._v(" "+e._s(e.Store.getUiWording("ui.controls.create-pdf"))+" ")],1)])])]):t("div",{staticClass:"main"},[t("p",{staticClass:"bold"},[e._v(" nichts zu drucken hier ")])])]):e._e()},ib=[],rb=function(){var e=this,t=e._self._c;return t("article",{staticClass:"PrintEntry flex flex-col gap-4"},[t("div",{staticClass:"flex flex-col gap-2"},[t("Print-Entry-Marker",{attrs:{index:e.index}}),t("div",{staticClass:"text-sm font-bold"},[e._v(e._s(e.entry.title))]),t("div",{staticClass:"text-xs font-bold"},[e._v(e._s(e.translate(e.entry,"title")))]),t("div",{staticClass:"text-xs flex items-center gap-2"},[t("img",{staticClass:"h-3",attrs:{src:"/afeefa/img/booklet/icon-globe.svg"}}),e._v(" wos.afeefa.de"+e._s(e.ModelHelpers.getEntryShortUrl(e.entry))+" ")])],1),e.printLocations?[t("location",{attrs:{location:e.location}})]:e._e(),e.printContacts?e._l(e.entry.linked_contacts,(function(e){return t("contact",{key:e.id,attrs:{contact:e.contact,showRawLinks:!0}})})):e._e()],2)},ob=[],sb=function(){var e=this,t=e._self._c;return t("span",{staticClass:"PrintEntryMarker"},[e._v(e._s(e.index+1))])},ab=[];let lb=(Y_=Ic({props:["index"]}),Y_(J_=class extends Gc{})||J_);var cb,ub,hb=lb,db=Uc(hb,sb,ab,!1,null,"522568a9",null),pb=db.exports;let fb=(cb=Ic({components:{PrintEntryMarker:pb},props:["entry","index","printContacts","printLocations"]}),cb(ub=class extends Gc{get location(){return this.entry.linked_locations.length?this.entry.linked_locations[0].location:null}})||ub);var mb,gb,vb=fb,yb=Uc(vb,rb,ob,!1,null,"51e56f30",null),_b=yb.exports;let bb=(mb=Ic({components:{Map:Bd,PrintEntry:_b,PrintEntryMarker:pb}}),mb(gb=class extends Gc{constructor(...e){super(...e),this.printMap=!0,this.printContacts=!1,this.printLocations=!1,this.entries=null,this.callFromPrintApi=!1}async created(){this.callFromPrintApi=this.$route.query.actors||this.$route.query.offers;const e=[];if(this.callFromPrintApi){if(this.$route.query.actors)for(const t of this.$route.query.actors.split(",")){const n=await this.Store.getActor(t);n&&e.push(n)}if(this.$route.query.offers)for(const t of this.$route.query.offers.split(",")){const n=await this.Store.getOffer(t);n&&e.push(n)}this.entries=e}else{for(const t of this.Store.entriesToPrint){const n=await this.Store.reloadEntry(t);n&&e.push(n)}this.entries=e}void 0!==this.$route.query.printMap&&(this.printMap="1"===this.$route.query.printMap),void 0!==this.$route.query.printContacts&&(this.printContacts="1"===this.$route.query.printContacts),void 0!==this.$route.query.printLocations&&(this.printLocations="1"===this.$route.query.printLocations)}get mapEntries(){const e=this,t=this.entries.filter((e=>{try{return e.linked_locations[0].location.long&&e.linked_locations[0].location.lat}catch(Ix){return!1}}));return t.map((function(t){return{id:t.id,title:t.title,long:t.linked_locations[0].location.long,lat:t.linked_locations[0].location.lat,link:e.ModelHelpers.getEntryUrl(t)}}))}readQueryFromUrl(){}print(){let e=[],t=[];const n=this.entries.filter((e=>this.ModelHelpers.isActor(e))),i=this.entries.filter((e=>this.ModelHelpers.isOffer(e)));n&&(e=n.map((e=>e.id))),i&&(t=i.map((e=>e.id)));let r="/fapi/print/watchlist?subset="+this.User.getSubset();e.length&&(r+="&actors="+e.join(",")),t.length&&(r+="&offers="+t.join(",")),r+="&printMap="+(this.printMap?1:0),r+="&printContacts="+(this.printContacts?1:0),r+="&printLocations="+(this.printLocations?1:0),window.open(r,"_blank")}})||gb);var xb,wb,Cb=bb,kb=Uc(Cb,nb,ib,!1,null,"6a76fb0c",null),Sb=kb.exports,Eb=function(){var e=this,t=e._self._c;return e.AppIsInitialized?t("div",{staticClass:"container"},[t("div",[t("h1",[e._v(e._s(e.Store.getUiWording("ui.term.watchlist")))]),e.entriesCount?[t("span",[e._v(e._s(e.entriesCount)+" "+e._s(e.Store.getUiWording("ui.term.entries"))+" | ")]),t("a",{on:{click:function(t){return e.User.emptyBookmarks()}}},[e._v(e._s(e.Store.getUiWording("ui.watchlist.empty-watchlist")))])]:t("span",[e._v(e._s(e.Store.getUiWording("ui.watchlist.nothing-watched")))])],2),t("div",[e.entriesCount?t("a",{staticClass:"button",on:{click:e.print}},[t("fa-icon",{attrs:{icon:"print"}}),e._v(" "+e._s(e.Store.getUiWording("ui.controls.print"))+" ")],1):e._e()])]):e._e()},Tb=[];let Mb=(xb=Ic({props:["entriesCount"]}),xb(wb=class extends Gc{print(){this.$emit("print")}})||wb);var Ab,Ob,Ib=Mb,Db=Uc(Ib,Eb,Tb,!1,null,"1888f5a6",null),Pb=Db.exports,zb=function(){var e=this,t=e._self._c;return t("div",{staticClass:"SearchView",class:{mobile:e.device.isMobile(),hidden:!e.isSearchRoute}},[t("tool-bar",[t("router-view",{attrs:{name:"toolbar","entries-count":e.entries&&!e.loading?e.entries.length:0},on:{print:e.print}})],1),t("router-view",{attrs:{entries:e.entries,"view-mode":e.viewMode}}),t("loading-curtain",{attrs:{active:e.loading}})],1)},Lb=[],Bb=function(){var e=this,t=e._self._c;return e.active?t("div",{staticClass:"LoadingCurtain"},[t("div",{staticClass:"loader rotate-vert-center"})]):e._e()},Fb=[];let Rb=(Ab=Ic({props:["active"]}),Ab(Ob=class extends(la()){})||Ob);var $b,Nb,jb,Vb,Ub,qb,Hb=Rb,Wb=Uc(Hb,Bb,Fb,!1,null,"2aece778",null),Gb=Wb.exports;let Zb=($b=Ic({components:{LoadingCurtain:Gb}}),Nb=Dc("$route.fullPath"),jb=Dc("AppIsInitialized"),Vb=Dc("User.language"),$b((qb=class extends Gc{constructor(...e){super(...e),this.entries=null,this.loading=!1,this.currentlyReflectedQuery=null}created(){this.updateQuery()}updateQuery(){if(!this.isSearchRoute)return;const e=this.polishQuery();e.queryChanged&&this.tryToLoadData()}tryToLoadData(){this.AppIsInitialized&&this.isSearchRoute&&this.loadData()}polishQuery(){console.debug("polish query");const e={};if(this.isBookmarksView()){if(!this.User.getBookmarksCount())return this.entries=null,!1;e.containIds={offers:this.User.getBookmarks().offers,actors:this.User.getBookmarks().actors},e.area=null,e.text=null,e.categories=null}else this.setQueryFromUrl(this.$route),e.area=void 0,e.containIds=null;this.Store.changeCurrentQuery(e);const t=this.Store.getCurrentQuery(),n=JSON.stringify(this.currentlyReflectedQuery)!==JSON.stringify(t);return{queryChanged:n}}setQueryFromUrl(e){const t={};if(t.text=e.params.q||null,t.entryType=e.query.type||null,t.offerTypes=e.query.offerTypes?e.query.offerTypes.split(","):null,t.categories=null,this.Store.changeCurrentQuery(t),e.query.categories){const t=this;this.Store.getAllCategories(),e.query.categories.split("_").join(",").split(",").forEach((async function(e){const n=t.Store.getCategoryById(e);n&&t.Store.addCategoryToQuery(n)}))}}async loadData(){if(this.loading)return void console.debug("load data canceled");console.debug("load data"),this.currentlyReflectedQuery=dh().cloneDeep(this.Store.getCurrentQuery()),this.loading=!0;const e=await this.Store.getSearchResults();this.loading=!1,this.entries=[...e.offers,...e.actors]}get viewMode(){return this.isBookmarksView()&&!this.device.isMobile()?this.Store.setUIState({viewMode:"listMode"}):this.$route.query.view?this.Store.setUIState({viewMode:this.$route.query.view}):this.$root.isWidget&&this.Store.setUIState({viewMode:"mapMode"}),this.Store.getUIState().viewMode}isBookmarksView(){return"Bookmarks"===this.$route.name}print(){this.Store.entriesToPrint=this.entries,this.$router.push({name:"Print"})}isMobile(){return Lc.isMobile()}},qu(qb.prototype,"updateQuery",[Nb,jb],Object.getOwnPropertyDescriptor(qb.prototype,"updateQuery"),qb.prototype),qu(qb.prototype,"tryToLoadData",[Vb],Object.getOwnPropertyDescriptor(qb.prototype,"tryToLoadData"),qb.prototype),Ub=qb))||Ub);var Xb,Kb,Yb,Jb,Qb=Zb,ex=Uc(Qb,zb,Lb,!1,null,"73c5a858",null),tx=ex.exports,nx=function(){var e=this,t=e._self._c;return t("div",{class:{mobile:e.device.isMobile()},attrs:{id:"Widget"}},["upcoming"===e.widgetName?t("upcoming-widget",{attrs:{"query-params":e.$route.query}}):e._e()],1)},ix=[],rx=function(){var e=this,t=e._self._c;return t("map-widget",{staticClass:"border border-red",staticStyle:{"min-height":"100vh"},attrs:{items:e.entries,mobile:!1,"show-map":!0,"show-offers":!e.params.hideOffers,"show-actors":e.params.showActors,"show-events":!e.params.hideEvents,"show-headings":!1,"events-limit":e.params.eventsLimit,"enable-links":!1}})},ox=[];let sx=(Xb=Ic({components:{MapWidget:im},props:["queryParams"]}),Kb=Dc("AppIsInitialized"),Xb((Jb=class extends Gc{constructor(...e){super(...e),this.entries=null}get params(){return{showActors:"showActors"in this.queryParams,hideOffers:"hideOffers"in this.queryParams,hideEvents:"hideEvents"in this.queryParams,offersLimit:"offersLimit"in this.queryParams?parseInt(this.queryParams.offersLimit):5,eventsLimit:"eventsLimit"in this.queryParams?parseInt(this.queryParams.eventsLimit):5}}init(){this.AppIsInitialized&&this.loadEntries()}async loadEntries(){if(this.entries={actors:[],offers:[],events:[]},!this.params.hideOffers){const e=await this.Store.getSearchResults({entryType:"offer",offerTypes:["default","language"],limit:this.params.offersLimit,order:"created_at"});this.entries.offers=e.offers}if(!this.params.hideEvents){const e=await this.Store.getSearchResults({entryType:"offer",offerTypes:["event"],amountOfOccurrences:1});this.entries.events=e.offers}if(this.params.showActors){const e=await this.Store.getSearchResults({entryType:"actor"});this.entries.actors=e.actors}}},qu(Jb.prototype,"init",[Kb],Object.getOwnPropertyDescriptor(Jb.prototype,"init"),Jb.prototype),Yb=Jb))||Yb);var ax,lx,cx=sx,ux=Uc(cx,rx,ox,!1,null,"1a1bc13a",null),hx=ux.exports;let dx=(ax=Ic({components:{UpcomingWidget:hx},props:["widgetName","data"]}),ax(lx=class extends Gc{mounted(){this.includeIFrameResizerBridge()}includeIFrameResizerBridge(){const e=document.createElement("script");e.setAttribute("src","/afeefa/widget/iframeResizer.contentWindow.min.js"),document.head.appendChild(e)}})||lx);var px,fx,mx=dx,gx=Uc(mx,nx,ix,!1,null,"6d930f3f",null),vx=gx.exports,yx=function(){var e=this,t=e._self._c;return t("div",{staticClass:"WidgetGenerator",class:{mobile:e.device.isMobile()}},[t("tool-bar",{class:{fluid:e.device.isMobile()}},[t("div",[t("h1",[e._v("Widgets")]),t("span",[e._v("Einfach selbst konfigurieren und den Widget-Code auf beliebiger Website einfügen.")])])])],1)},_x=[];let bx=(px=Ic({}),px(fx=class extends Gc{})||fx);var xx=bx,wx=Uc(xx,yx,_x,!1,null,"dcab351a",null),Cx=wx.exports;function kx(e){const t=!0===e.widget,n=[{path:"/widgets",name:"Widgets",components:{default:Cx,header:sd}},{path:"/widgets/upcoming",name:"UpcomingWidget",components:{default:vx},props:{default:{widgetName:"upcoming"}}},{path:"/add",name:"Add",components:{default:Xy,header:sd}},{path:"/mbr-wahlen",components:{default:Xy,header:sd},props:{default:{variant:"mbr"}}},{path:"/merkliste",components:{default:tx,header:sd},children:[{name:"Bookmarks",path:"",components:{default:Gf,toolbar:Pb}}]},{path:"/print",name:"Print",components:{default:Sb,header:sd}},{path:"/:entry(\\S*\\d+a{1})",components:{header:t?null:sd,default:tx,entry:tb},children:[{name:"Actor",path:"",components:{default:Gf,toolbar:vf}}]},{path:"/:entry(\\S*\\d+o{1})",components:{header:t?null:sd,default:tx,entry:tb},children:[{name:"Offer",path:"",components:{default:Gf,toolbar:vf}}]},{path:"/:subset",name:"Home",components:{default:bm}},{path:"/:subset/search",components:{default:tx,header:t?null:sd},children:[{path:"",name:"SearchEmpty",components:{default:Gf,toolbar:vf}},{path:":q",name:"Search",components:{default:Gf,toolbar:vf}}]}],i=new cy({mode:"history",routes:n,scrollBehavior(e,t,n){return n||{x:0,y:0,behavior:"smooth"}}});return i}la().use(cy);var Sx={env:{},createApp(e,t,n){const i=kx(t);this.App=new Um({el:"#vueapp",router:i,async created(){this.config=t,this.Store.init(),this.User.init(),await this.loadBasicData(e,n),this.config.widget||this.activateSurveyAlert()}})}};class Ex{constructor(){this.useAsName=null}install(e,t){const n=this;e.mixin({data:function(){return n.useAsName||console.error("Plugin "+n.constructor.name+" must have a useAsName attribute"),{[n.useAsName]:n}}})}}class Tx extends Ex{constructor(...e){super(...e),this.useAsName="User",this.subset=null,this.language=null,this.bookmarks=[],this.brokePreviewMode=!1}init(){this.load()}getSubset(){return this.subset}setSubset(e){this.subset=e.slug,this.save()}getLanguage(){return this.language}setLanguage(e){this.language=e.toLowerCase(),this.save()}getBookmarks(){const e=this.bookmarks.filter((e=>e.type.includes("Offer"))).map((e=>e.id)),t=this.bookmarks.filter((e=>e.type.includes("Actor"))).map((e=>e.id));return{offers:e,actors:t}}getBookmarksCount(){return this.bookmarks.length}toggleBookmark(e){this.bookmarks.find((t=>t.id===e.id))?this.bookmarks=this.bookmarks.filter((t=>t.id!==e.id)):this.bookmarks.push({type:e.type,id:e.id}),this.save()}emptyBookmarks(){this.bookmarks=[],this.save()}isBookmarked(e){return!!this.bookmarks.find((t=>t.id===e.id))}breakPreviewMode(){this.brokePreviewMode=!0,this.save()}hasBrokenPreviewMode(){return this.brokePreviewMode}load(){this.subset=localStorage.getItem("subset"),this.language=localStorage.getItem("language"),this.bookmarks=JSON.parse(localStorage.getItem("bookmarks"))||[],this.brokePreviewMode=sessionStorage.getItem("brokePreviewMode")}save(){localStorage.setItem("subset",this.subset),localStorage.setItem("language",this.language),localStorage.setItem("bookmarks",JSON.stringify(this.bookmarks)),this.brokePreviewMode&&sessionStorage.setItem("brokePreviewMode",this.brokePreviewMode)}}var Mx=new Tx;class Ax extends Ex{constructor(...e){super(...e),this.useAsName="Store",this.subsets=[],this.categoryTypes=[],this.languages=null,this.recipes={},this.ui={viewMode:"listMode"},this.currentQuery=null,this.currentEntry=null,this.api=null}init(){this.api=new _y,this.ModelHelpers=j_}async getSearchResults(e={}){const t=await this.api.fetchSearchResults(this.getCurrentQuery(),e);return t}async getOffer(e){return this.api.fetchOffer(e)}async getActor(e){return this.api.fetchActor(e)}async getSubsets(){return this.subsets.length||(this.subsets=await this.api.fetchSubsets()),this.subsets}getSubsetBySlug(e){return this.subsets.length?this.subsets.filter((t=>t.slug===e))[0]:null}getDefaultSubset(){return this.subsets.filter((e=>e.default))[0]}getUiWording(e,t="[wording]"){const n=this.recipes["ui-wordings"].wordings.find((t=>t.key===e));return n?this.ModelHelpers.translate(n,"value"):t}getCategoryById(e){const t=this.getAllCategories();if(t){const n=t.find((t=>t.id===Number.parseInt(e)));return n||null}return null}async fetchAllCategories(){return await this.fetchAllCategoryTypes(),this.getAllCategories()}getAllCategories(){if(!this.hasCategoryTypes({triggerFetch:!1}))return null;const e=this.categoryTypes.map((e=>e.categories)).flat();return[...e,...e.map((e=>e.sub_categories)).flat()]}hasCategoryTypes(e={}){return e.triggerFetch&&this.fetchAllCategoryTypes(),this.categoryTypes.length}async fetchAllCategoryTypes(){const e=await this.api.fetchAllCategoryTypes();return e&&(this.categoryTypes=e),this.categoryTypes}getAllCategoryTypes(){return this.categoryTypes}getCategoryTypeByKey(e){const t=this.getAllCategoryTypes();return t.find((t=>t.key===e))}getCategoryTypesByOption(e,t=null){const n=this.getAllCategoryTypes();let i=n.filter((t=>!!t.options&&t.options.split(",").includes(e)));if(t){let e=[];"offer"===t?.entryType?e=i.filter((e=>"AFEEFA\\Actor"!==e.target_type)):"actor"===t?.entryType&&(e=i.filter((e=>"AFEEFA\\Offer"!==e.target_type))),t.excludeModelTypeSpecificOnes&&(e=e.filter((e=>!e.owners.some((e=>"Kollektiv\\ModelType"===e.owner.type))))),t?.offerTypes&&(e=e.filter((e=>e.owners.some((e=>"Kollektiv\\ModelType"===e.owner.type&&"AFEEFA\\Offer"===e.owner.model_type&&t.offerTypes.includes(e.owner.key)))))),e&&(i=e)}return i}getNavigation(){return this.getCategoryTypeByKey("navigation")}getFilterableCategoryTypes(e=null){return this.getCategoryTypesByOption("filter",e)}getEditableCategoryTypes(e=null){return this.getCategoryTypesByOption("user",e)}getPresentableCategoryTypes(){return this.getCategoryTypesByOption("detail")}getFeaturedCategoryTypes(){return this.getCategoryTypesByOption("start")}async fetchLanguages(){this.languages=await this.api.fetchLanguages()}getLanguages(){if(!this.languages)return null;const e={ar:{title:"العربية"},bg:{title:"български"},de:{title:"Deutsch"},en:{title:"English"},es:{title:"español"},fa:{title:"فارسی"},fr:{title:"Francais"},it:{title:"Italiano"},ku:{title:"Kurdî"},pl:{title:"Polskie"},pt:{title:"português"},ro:{title:"Română"},ru:{title:"русский"},tr:{title:"Türkçe"},uk:{title:"українська"},vi:{title:"tiếng Việt"}},t=[];for(const n of this.languages)t.push({alpha2_lang_code:n.alpha2_lang_code,default:n.default,rtl:n.rtl,title:e[n.alpha2_lang_code]?e[n.alpha2_lang_code].title:n.alpha2_lang_code});return t}getLanguageByCode(e){return this.languages?this.languages.find((t=>t.alpha2_lang_code===e)):null}async getRecipe(e,t={}){return this.recipes[e]&&!t.forceReload||(this.recipes[e]=await this.api.fetchRecipe(e)),this.recipes[e]}async getEntryByUrl(e){const t=e.split("-"),n=t[t.length-1],i=n.substring(n.length-1),r=n.substring(0,n.length-1);switch(i){case"o":{const e=await this.getOffer(r);return e}case"a":{const e=await this.getActor(r);return e}}}async reloadEntry(e){switch(this.ModelHelpers.getEntity(e)){case"actor":return await this.getActor(e.id);case"offer":return await this.getOffer(e.id);default:return null}}getCurrentEntry(){return this.currentEntry}setCurrentEntry(e){this.currentEntry=e}resetCurrentEntry(){this.setCurrentEntry(null)}initCurrentQuery(){this.currentQuery=this.createBlankQuery()}createBlankQuery(){return{text:null,categories:null,containIds:null,area:void 0,entryType:null,offerTypes:null,categoriesToUrlString:this.categoriesToUrlString}}getCurrentQuery(){return this.currentQuery||this.initCurrentQuery(),this.currentQuery}resetCurrentQuery(){this.currentQuery=null}changeCurrentQuery(e){const t=this.getCurrentQuery();for(const n in e)t[n]=e[n];this.currentQuery=t}getQueriedCategoriesOfType(e){const t=this.getCurrentQuery().categories;if(t){const n=t.find((t=>t.category_type===e));return n&&n.categories?n.categories:null}return null}setCategoryInQuery(e,t={}){let n=this.getCurrentQuery().categories;const i=e.id,r=e.category_type_id;if(n&&n.length){const e=n.find((e=>e.category_type===r));void 0!==e?t.exclusive?e.categories=[i]:e.categories.includes(i)?t.forceAdd||(e.categories=e.categories.filter((e=>e!==i)),0===e.categories.length&&(n=n.filter((t=>t.category_type!==e.category_type)))):e.categories.push(i):n.push({category_type:r,categories:[i]})}else n=[{category_type:r,categories:[i]}];this.changeCurrentQuery({categories:n})}toggleCategoryInQuery(e){this.setCategoryInQuery(e)}setCategoriesInQuery(e){this.addCategoryToQueryExcklusivelyInType(e[0]),e.forEach((e=>{this.addCategoryToQuery(e)}))}addCategoryToQuery(e){this.setCategoryInQuery(e,{forceAdd:!0})}addCategoryToQueryExcklusivelyInType(e){this.setCategoryInQuery(e,{exclusive:!0})}addCategoryToQueryExcklusively(e){this.clearCategoryFilters(),this.setCategoryInQuery(e)}clearCategoryTypesInQuery(e){let t=this.getCurrentQuery().categories;t=t.filter((t=>!e.includes(t.category_type))),this.changeCurrentQuery({categories:t})}clearFilterableCategoryTypesInQuery(){const e=this.getCurrentQuery(),t=this.getFilterableCategoryTypes({entryType:e.entryType,offerTypes:e.offerTypes});this.clearCategoryTypesInQuery(t.map((e=>e.id)))}isCategoryInCurrentQuery(e){const t=this.getCurrentQuery().categories;return!(!t||!t.length)&&t.map((e=>e.categories)).flat().includes(e)}getQueriedCategoriesByCategoryType(e){const t=this.getCurrentQuery().categories;if(!t)return null;const n=t.filter((t=>t.category_type===e.id));return n.length?n[0].categories.map((e=>this.getCategoryById(e)))[0]:null}getNumberOfFilterableCategoryTypesCategoriesInCurrentQuery(){const e=this.getCurrentQuery(),t=this.getFilterableCategoryTypes({entryType:e.entryType,offerTypes:e.offerTypes});let n=0;return t.forEach(((e,t)=>{const i=this.getQueriedCategoriesOfType(e.id);n+=i?i.length:0})),n}categoriesToUrlString(){if(this.categories&&this.categories.length){let e="";return this.categories.forEach(((t,n)=>{e+=n>0?"_"+t.categories.join(","):t.categories.join(",")})),e}return null}setUIState(e){for(const t in e)this.ui[t]=e[t]}getUIState(){return this.ui}}var Ox=new Ax;pi.add(yi,Ei,Ji,Ci,Ri,Mi,$i,Pi,Qi,ji,Ii,ki,Ki,Gi,qi,Li,Wi,Bi,Xi,Vi,wi,Zi,bi,zi,xi,Yi,Oi,Ai,_i,Di,vi,Ui),la().component("fa-icon",Er),la().component("main-header",sd),la().component("main-menu",fd),la().component("search-results",Gf),la().component("search-field",Sf),la().component("search-bar",vf),la().component("start-view",bm),la().component("filter-controls",Yp),la().component("element-list",wp),la().component("contact",qh),la().component("location",Jh),la().component("week-plan",Lm),la().component("navigation",Ku),la().component("afeefa-map",Bd),la().component("tool-bar",Bh),la().component("entry-circle",Cu),la().component("afeefa-button",Qc),la().component("back-link",au),la().component("the-button-navi",Mh),la().component("select-button",bh),la().component("cancel-button",uh),la().component("Flag",Iu),la().component("language-selector",ju),la().component("bread-crumb",mu),la().component("list-element",ep),la().use(Ox),la().use(Mx),la().use(Fr),la().use(j_,{store:Ox,user:Mx}),la().use(cc,{themes:{tooltip:{delay:{show:100,hide:0}}}}),la().use(Mr(),{locale:Ar.A}),la().directive("click-outside",{bind:function(e,t,n){e.clickOutsideEvent=function(i){e===i.target||e.contains(i.target)||n.context[t.expression](i)},document.body.addEventListener("click",e.clickOutsideEvent)},unbind:function(e){document.body.removeEventListener("click",e.clickOutsideEvent)}}),la().prototype.$bus=new(la()),la().prototype.AFEEFA=Sx,window.Vue=la(),window.AFEEFA=Sx}(),r}()}));