/************************************************************************************
* Produkt: virtualcityMAP
* Copyright © 2011-2020 virtualcitySYSTEMS GmbH, Berlin, Germany. All rights reserved.
*************************************************************************************/


(function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=951)})([function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}i.d(t,"a",(function(){return r}))},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i.d(t,"a",(function(){return n}))},,function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(173);function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(n["a"])(e,t)}},function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var n=i(5),r=i(174),a=i(175);function s(e){var t=Object(r["a"])();return function(){var i,r=Object(n["a"])(e);if(t){var s=Object(n["a"])(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Object(a["a"])(this,i)}}},function(e,t,i){"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}i.d(t,"a",(function(){return n}))},function(e,t,i){(function(e){(function(t,i){e.exports=i()})(0,(function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function a(e){t=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var i,n=[];for(i=0;i<e.length;++i)n.push(t(e[i],i));return n}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var i in t)m(t,i)&&(e[i]=t[i]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function g(e,t,i,n){return qi(e,t,i,n,!0).utc()}function y(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=y()),e._pf}function v(e){if(null==e._isValid){var t=p(e),i=n.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function _(e){var t=g(NaN);return null!=e?f(p(t),e):p(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),i=t.length>>>0,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var b=r.momentProperties=[];function L(e,t){var i,n,r;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=p(t)),c(t._locale)||(e._locale=t._locale),b.length>0)for(i=0;i<b.length;i++)n=b[i],r=t[n],c(r)||(e[n]=r);return e}var w=!1;function M(e){L(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function k(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function O(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function T(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=O(t)),i}function S(e,t,i){var n,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(n=0;n<r;n++)(i&&e[n]!==t[n]||!i&&T(e[n])!==T(t[n]))&&s++;return s+a}function C(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function j(e,t){var i=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),i){for(var n,a=[],s=0;s<arguments.length;s++){if(n="","object"===typeof arguments[s]){for(var o in n+="\n["+s+"] ",arguments[0])n+=o+": "+arguments[0][o]+", ";n=n.slice(0,-2)}else n=arguments[s];a.push(n)}C(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),i=!1}return t.apply(this,arguments)}),t)}var E,I={};function D(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),I[e]||(C(t),I[e]=!0)}function P(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e){var t,i;for(i in e)t=e[i],P(t)?this[i]=t:this["_"+i]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(e,t){var i,n=f({},e);for(i in t)m(t,i)&&(o(e[i])&&o(t[i])?(n[i]={},f(n[i],e[i]),f(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)m(e,i)&&!m(t,i)&&o(e[i])&&(n[i]=f({},n[i]));return n}function Y(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)m(e,t)&&i.push(t);return i};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F(e,t,i){var n=this._calendar[e]||this._calendar["sameElse"];return P(n)?n.call(t,i):n}var R={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function H(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])}var G="Invalid date";function z(){return this._invalidDate}var B="%d",V=/\d{1,2}/;function U(e){return this._ordinal.replace("%d",e)}var W={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function q(e,t,i,n){var r=this._relativeTime[i];return P(r)?r(e,t,i,n):r.replace(/%d/i,e)}function J(e,t){var i=this._relativeTime[e>0?"future":"past"];return P(i)?i(t):i.replace(/%s/i,t)}var K={};function Z(e,t){var i=e.toLowerCase();K[i]=K[i+"s"]=K[t]=e}function Q(e){return"string"===typeof e?K[e]||K[e.toLowerCase()]:void 0}function X(e){var t,i,n={};for(i in e)m(e,i)&&(t=Q(i),t&&(n[t]=e[i]));return n}var $={};function ee(e,t){$[e]=t}function te(e){var t=[];for(var i in e)t.push({unit:i,priority:$[i]});return t.sort((function(e,t){return e.priority-t.priority})),t}function ie(e,t,i){var n=""+Math.abs(e),r=t-n.length,a=e>=0;return(a?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ae={},se={};function oe(e,t,i,n){var r=n;"string"===typeof n&&(r=function(){return this[n]()}),e&&(se[e]=r),t&&(se[t[0]]=function(){return ie(r.apply(this,arguments),t[1],t[2])}),i&&(se[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function le(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ce(e){var t,i,n=e.match(ne);for(t=0,i=n.length;t<i;t++)se[n[t]]?n[t]=se[n[t]]:n[t]=le(n[t]);return function(t){var r,a="";for(r=0;r<i;r++)a+=P(n[r])?n[r].call(t,e):n[r];return a}}function ue(e,t){return e.isValid()?(t=he(t,e.localeData()),ae[t]=ae[t]||ce(t),ae[t](e)):e.localeData().invalidDate()}function he(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}re.lastIndex=0;while(i>=0&&re.test(e))e=e.replace(re,n),re.lastIndex=0,i-=1;return e}var de=/\d/,me=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,pe=/\d\d?/,ve=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,be=/\d{1,3}/,Le=/\d{1,4}/,we=/[+-]?\d{1,6}/,Me=/\d+/,ke=/[+-]?\d+/,Oe=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,Se=/[+-]?\d+(\.\d{1,3})?/,Ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,je={};function Ee(e,t,i){je[e]=P(t)?t:function(e,n){return e&&i?i:t}}function Ie(e,t){return m(je,e)?je[e](t._strict,t._locale):new RegExp(De(e))}function De(e){return Pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,n,r){return t||i||n||r})))}function Pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ae={};function xe(e,t){var i,n=t;for("string"===typeof e&&(e=[e]),u(t)&&(n=function(e,i){i[t]=T(e)}),i=0;i<e.length;i++)Ae[e[i]]=n}function Ye(e,t){xe(e,(function(e,i,n,r){n._w=n._w||{},t(e,n._w,n,r)}))}function Ne(e,t,i){null!=t&&m(Ae,e)&&Ae[e](t,i._a,i,e)}var Fe=0,Re=1,He=2,Ge=3,ze=4,Be=5,Ve=6,Ue=7,We=8;function qe(e){return Je(e)?366:365}function Je(e){return e%4===0&&e%100!==0||e%400===0}oe("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),oe(0,["YY",2],0,(function(){return this.year()%100})),oe(0,["YYYY",4],0,"year"),oe(0,["YYYYY",5],0,"year"),oe(0,["YYYYYY",6,!0],0,"year"),Z("year","y"),ee("year",1),Ee("Y",ke),Ee("YY",pe,me),Ee("YYYY",Le,ge),Ee("YYYYY",we,ye),Ee("YYYYYY",we,ye),xe(["YYYYY","YYYYYY"],Fe),xe("YYYY",(function(e,t){t[Fe]=2===e.length?r.parseTwoDigitYear(e):T(e)})),xe("YY",(function(e,t){t[Fe]=r.parseTwoDigitYear(e)})),xe("Y",(function(e,t){t[Fe]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return T(e)+(T(e)>68?1900:2e3)};var Ke,Ze=Xe("FullYear",!0);function Qe(){return Je(this.year())}function Xe(e,t){return function(i){return null!=i?(et(this,e,i),r.updateOffset(this,t),this):$e(this,e)}}function $e(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function et(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&Je(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),rt(i,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](i))}function tt(e){return e=Q(e),P(this[e])?this[e]():this}function it(e,t){if("object"===typeof e){e=X(e);for(var i=te(e),n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else if(e=Q(e),P(this[e]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function rt(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=nt(t,12);return e+=(t-i)/12,1===i?Je(e)?29:28:31-i%7%2}Ke=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},oe("M",["MM",2],"Mo",(function(){return this.month()+1})),oe("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),oe("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Z("month","M"),ee("month",8),Ee("M",pe),Ee("MM",pe,me),Ee("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ee("MMMM",(function(e,t){return t.monthsRegex(e)})),xe(["M","MM"],(function(e,t){t[Re]=T(e)-1})),xe(["MMM","MMMM"],(function(e,t,i,n){var r=i._locale.monthsParse(e,n,i._strict);null!=r?t[Re]=r:p(i).invalidMonth=e}));var at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,st="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function ot(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months["standalone"]}var lt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function ct(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function ut(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=g([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===t?(r=Ke.call(this._shortMonthsParse,s),-1!==r?r:null):(r=Ke.call(this._longMonthsParse,s),-1!==r?r:null):"MMM"===t?(r=Ke.call(this._shortMonthsParse,s),-1!==r?r:(r=Ke.call(this._longMonthsParse,s),-1!==r?r:null)):(r=Ke.call(this._longMonthsParse,s),-1!==r?r:(r=Ke.call(this._shortMonthsParse,s),-1!==r?r:null))}function ht(e,t,i){var n,r,a;if(this._monthsParseExact)return ut.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=g([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}function dt(e,t){var i;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=T(t);else if(t=e.localeData().monthsParse(t),!u(t))return e;return i=Math.min(e.date(),rt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function mt(e){return null!=e?(dt(this,e),r.updateOffset(this,!0),this):$e(this,"Month")}function ft(){return rt(this.year(),this.month())}var gt=Ce;function yt(e){return this._monthsParseExact?(m(this,"_monthsRegex")||_t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=gt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}var pt=Ce;function vt(e){return this._monthsParseExact?(m(this,"_monthsRegex")||_t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=pt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function _t(){function e(e,t){return t.length-e.length}var t,i,n=[],r=[],a=[];for(t=0;t<12;t++)i=g([2e3,t]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),a.push(this.months(i,"")),a.push(this.monthsShort(i,""));for(n.sort(e),r.sort(e),a.sort(e),t=0;t<12;t++)n[t]=Pe(n[t]),r[t]=Pe(r[t]);for(t=0;t<24;t++)a[t]=Pe(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function bt(e,t,i,n,r,a,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,i,n,r,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,i,n,r,a,s),o}function Lt(e){var t;if(e<100&&e>=0){var i=Array.prototype.slice.call(arguments);i[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function wt(e,t,i){var n=7+t-i,r=(7+Lt(e,0,n).getUTCDay()-t)%7;return-r+n-1}function Mt(e,t,i,n,r){var a,s,o=(7+i-n)%7,l=wt(e,n,r),c=1+7*(t-1)+o+l;return c<=0?(a=e-1,s=qe(a)+c):c>qe(e)?(a=e+1,s=c-qe(e)):(a=e,s=c),{year:a,dayOfYear:s}}function kt(e,t,i){var n,r,a=wt(e.year(),t,i),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?(r=e.year()-1,n=s+Ot(r,t,i)):s>Ot(e.year(),t,i)?(n=s-Ot(e.year(),t,i),r=e.year()+1):(r=e.year(),n=s),{week:n,year:r}}function Ot(e,t,i){var n=wt(e,t,i),r=wt(e+1,t,i);return(qe(e)-n+r)/7}function Tt(e){return kt(e,this._week.dow,this._week.doy).week}oe("w",["ww",2],"wo","week"),oe("W",["WW",2],"Wo","isoWeek"),Z("week","w"),Z("isoWeek","W"),ee("week",5),ee("isoWeek",5),Ee("w",pe),Ee("ww",pe,me),Ee("W",pe),Ee("WW",pe,me),Ye(["w","ww","W","WW"],(function(e,t,i,n){t[n.substr(0,1)]=T(e)}));var St={dow:0,doy:6};function Ct(){return this._week.dow}function jt(){return this._week.doy}function Et(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function It(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Dt(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function Pt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(e,t){return e.slice(t,7).concat(e.slice(0,t))}oe("d",0,"do","day"),oe("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),oe("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),oe("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),oe("e",0,0,"weekday"),oe("E",0,0,"isoWeekday"),Z("day","d"),Z("weekday","e"),Z("isoWeekday","E"),ee("day",11),ee("weekday",11),ee("isoWeekday",11),Ee("d",pe),Ee("e",pe),Ee("E",pe),Ee("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ee("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ee("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ye(["dd","ddd","dddd"],(function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);null!=r?t.d=r:p(i).invalidWeekday=e})),Ye(["d","e","E"],(function(e,t,i,n){t[n]=T(e)}));var xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Yt(e,t){var i=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(i,this._week.dow):e?i[e.day()]:i}var Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Ft(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}var Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ht(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=g([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===t?(r=Ke.call(this._weekdaysParse,s),-1!==r?r:null):"ddd"===t?(r=Ke.call(this._shortWeekdaysParse,s),-1!==r?r:null):(r=Ke.call(this._minWeekdaysParse,s),-1!==r?r:null):"dddd"===t?(r=Ke.call(this._weekdaysParse,s),-1!==r?r:(r=Ke.call(this._shortWeekdaysParse,s),-1!==r?r:(r=Ke.call(this._minWeekdaysParse,s),-1!==r?r:null))):"ddd"===t?(r=Ke.call(this._shortWeekdaysParse,s),-1!==r?r:(r=Ke.call(this._weekdaysParse,s),-1!==r?r:(r=Ke.call(this._minWeekdaysParse,s),-1!==r?r:null))):(r=Ke.call(this._minWeekdaysParse,s),-1!==r?r:(r=Ke.call(this._weekdaysParse,s),-1!==r?r:(r=Ke.call(this._shortWeekdaysParse,s),-1!==r?r:null)))}function zt(e,t,i){var n,r,a;if(this._weekdaysParseExact)return Gt.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=g([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}function Bt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Dt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ut(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}var Wt=Ce;function qt(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=Wt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}var Jt=Ce;function Kt(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Jt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var Zt=Ce;function Qt(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,i,n,r,a,s=[],o=[],l=[],c=[];for(t=0;t<7;t++)i=g([2e3,1]).day(t),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),a=this.weekdays(i,""),s.push(n),o.push(r),l.push(a),c.push(n),c.push(r),c.push(a);for(s.sort(e),o.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)o[t]=Pe(o[t]),l[t]=Pe(l[t]),c[t]=Pe(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function $t(){return this.hours()%12||12}function ei(){return this.hours()||24}function ti(e,t){oe(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ii(e,t){return t._meridiemParse}function ni(e){return"p"===(e+"").toLowerCase().charAt(0)}oe("H",["HH",2],0,"hour"),oe("h",["hh",2],0,$t),oe("k",["kk",2],0,ei),oe("hmm",0,0,(function(){return""+$t.apply(this)+ie(this.minutes(),2)})),oe("hmmss",0,0,(function(){return""+$t.apply(this)+ie(this.minutes(),2)+ie(this.seconds(),2)})),oe("Hmm",0,0,(function(){return""+this.hours()+ie(this.minutes(),2)})),oe("Hmmss",0,0,(function(){return""+this.hours()+ie(this.minutes(),2)+ie(this.seconds(),2)})),ti("a",!0),ti("A",!1),Z("hour","h"),ee("hour",13),Ee("a",ii),Ee("A",ii),Ee("H",pe),Ee("h",pe),Ee("k",pe),Ee("HH",pe,me),Ee("hh",pe,me),Ee("kk",pe,me),Ee("hmm",ve),Ee("hmmss",_e),Ee("Hmm",ve),Ee("Hmmss",_e),xe(["H","HH"],Ge),xe(["k","kk"],(function(e,t,i){var n=T(e);t[Ge]=24===n?0:n})),xe(["a","A"],(function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),xe(["h","hh"],(function(e,t,i){t[Ge]=T(e),p(i).bigHour=!0})),xe("hmm",(function(e,t,i){var n=e.length-2;t[Ge]=T(e.substr(0,n)),t[ze]=T(e.substr(n)),p(i).bigHour=!0})),xe("hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[Ge]=T(e.substr(0,n)),t[ze]=T(e.substr(n,2)),t[Be]=T(e.substr(r)),p(i).bigHour=!0})),xe("Hmm",(function(e,t,i){var n=e.length-2;t[Ge]=T(e.substr(0,n)),t[ze]=T(e.substr(n))})),xe("Hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[Ge]=T(e.substr(0,n)),t[ze]=T(e.substr(n,2)),t[Be]=T(e.substr(r))}));var ri=/[ap]\.?m?\.?/i;function ai(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}var si,oi=Xe("Hours",!0),li={calendar:N,longDateFormat:R,invalidDate:G,ordinal:B,dayOfMonthOrdinalParse:V,relativeTime:W,months:st,monthsShort:lt,week:St,weekdays:xt,weekdaysMin:Rt,weekdaysShort:Nt,meridiemParse:ri},ci={},ui={};function hi(e){return e?e.toLowerCase().replace("_","-"):e}function di(e){var t,i,n,r,a=0;while(a<e.length){r=hi(e[a]).split("-"),t=r.length,i=hi(e[a+1]),i=i?i.split("-"):null;while(t>0){if(n=mi(r.slice(0,t).join("-")),n)return n;if(i&&i.length>=t&&S(r,i,!0)>=t-1)break;t--}a++}return si}function mi(t){var n=null;if(!ci[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=si._abbr;i(651)("./"+t),fi(n)}catch(r){}return ci[t]}function fi(e,t){var i;return e&&(i=c(t)?pi(e):gi(e,t),i?si=i:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),si._abbr}function gi(e,t){if(null!==t){var i,n=li;if(t.abbr=e,null!=ci[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ci[e]._config;else if(null!=t.parentLocale)if(null!=ci[t.parentLocale])n=ci[t.parentLocale]._config;else{if(i=mi(t.parentLocale),null==i)return ui[t.parentLocale]||(ui[t.parentLocale]=[]),ui[t.parentLocale].push({name:e,config:t}),null;n=i._config}return ci[e]=new Y(x(n,t)),ui[e]&&ui[e].forEach((function(e){gi(e.name,e.config)})),fi(e),ci[e]}return delete ci[e],null}function yi(e,t){if(null!=t){var i,n,r=li;n=mi(e),null!=n&&(r=n._config),t=x(r,t),i=new Y(t),i.parentLocale=ci[e],ci[e]=i,fi(e)}else null!=ci[e]&&(null!=ci[e].parentLocale?ci[e]=ci[e].parentLocale:null!=ci[e]&&delete ci[e]);return ci[e]}function pi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return si;if(!s(e)){if(t=mi(e),t)return t;e=[e]}return di(e)}function vi(){return E(ci)}function _i(e){var t,i=e._a;return i&&-2===p(e).overflow&&(t=i[Re]<0||i[Re]>11?Re:i[He]<1||i[He]>rt(i[Fe],i[Re])?He:i[Ge]<0||i[Ge]>24||24===i[Ge]&&(0!==i[ze]||0!==i[Be]||0!==i[Ve])?Ge:i[ze]<0||i[ze]>59?ze:i[Be]<0||i[Be]>59?Be:i[Ve]<0||i[Ve]>999?Ve:-1,p(e)._overflowDayOfYear&&(t<Fe||t>He)&&(t=He),p(e)._overflowWeeks&&-1===t&&(t=Ue),p(e)._overflowWeekday&&-1===t&&(t=We),p(e).overflow=t),e}function bi(e,t,i){return null!=e?e:null!=t?t:i}function Li(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wi(e){var t,i,n,r,a,s=[];if(!e._d){for(n=Li(e),e._w&&null==e._a[He]&&null==e._a[Re]&&Mi(e),null!=e._dayOfYear&&(a=bi(e._a[Fe],n[Fe]),(e._dayOfYear>qe(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),i=Lt(a,0,e._dayOfYear),e._a[Re]=i.getUTCMonth(),e._a[He]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ge]&&0===e._a[ze]&&0===e._a[Be]&&0===e._a[Ve]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?Lt:bt).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function Mi(e){var t,i,n,r,a,s,o,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)a=1,s=4,i=bi(t.GG,e._a[Fe],kt(Ji(),1,4).year),n=bi(t.W,1),r=bi(t.E,1),(r<1||r>7)&&(l=!0);else{a=e._locale._week.dow,s=e._locale._week.doy;var c=kt(Ji(),a,s);i=bi(t.gg,e._a[Fe],c.year),n=bi(t.w,c.week),null!=t.d?(r=t.d,(r<0||r>6)&&(l=!0)):null!=t.e?(r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):r=a}n<1||n>Ot(i,a,s)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(o=Mt(i,n,r,a,s),e._a[Fe]=o.year,e._dayOfYear=o.dayOfYear)}var ki=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Oi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ti=/Z|[+-]\d\d(?::?\d\d)?/,Si=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ci=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ji=/^\/?Date\((\-?\d+)/i;function Ei(e){var t,i,n,r,a,s,o=e._i,l=ki.exec(o)||Oi.exec(o);if(l){for(p(e).iso=!0,t=0,i=Si.length;t<i;t++)if(Si[t][1].exec(l[1])){r=Si[t][0],n=!1!==Si[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,i=Ci.length;t<i;t++)if(Ci[t][1].exec(l[3])){a=(l[2]||" ")+Ci[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Ti.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(a||"")+(s||""),Hi(e)}else e._isValid=!1}var Ii=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Di(e,t,i,n,r,a){var s=[Pi(e),lt.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return a&&s.push(parseInt(a,10)),s}function Pi(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ai(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function xi(e,t,i){if(e){var n=Nt.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(n!==r)return p(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}var Yi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ni(e,t,i){if(e)return Yi[e];if(t)return 0;var n=parseInt(i,10),r=n%100,a=(n-r)/100;return 60*a+r}function Fi(e){var t=Ii.exec(Ai(e._i));if(t){var i=Di(t[4],t[3],t[2],t[5],t[6],t[7]);if(!xi(t[1],i,e))return;e._a=i,e._tzm=Ni(t[8],t[9],t[10]),e._d=Lt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Ri(e){var t=ji.exec(e._i);null===t?(Ei(e),!1===e._isValid&&(delete e._isValid,Fi(e),!1===e._isValid&&(delete e._isValid,r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Hi(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,i,n,a,s,o=""+e._i,l=o.length,c=0;for(n=he(e._f,e._locale).match(ne)||[],t=0;t<n.length;t++)a=n[t],i=(o.match(Ie(a,e))||[])[0],i&&(s=o.substr(0,o.indexOf(i)),s.length>0&&p(e).unusedInput.push(s),o=o.slice(o.indexOf(i)+i.length),c+=i.length),se[a]?(i?p(e).empty=!1:p(e).unusedTokens.push(a),Ne(a,i,e)):e._strict&&!i&&p(e).unusedTokens.push(a);p(e).charsLeftOver=l-c,o.length>0&&p(e).unusedInput.push(o),e._a[Ge]<=12&&!0===p(e).bigHour&&e._a[Ge]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Ge]=Gi(e._locale,e._a[Ge],e._meridiem),wi(e),_i(e)}else Fi(e);else Ei(e)}function Gi(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?(n=e.isPM(i),n&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function zi(e){var t,i,n,r,a;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)a=0,t=L({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Hi(t),v(t)&&(a+=p(t).charsLeftOver,a+=10*p(t).unusedTokens.length,p(t).score=a,(null==n||a<n)&&(n=a,i=t));f(e,i||t)}function Bi(e){if(!e._d){var t=X(e._i);e._a=d([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),wi(e)}}function Vi(e){var t=new M(_i(Ui(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ui(e){var t=e._i,i=e._f;return e._locale=e._locale||pi(e._l),null===t||void 0===i&&""===t?_({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new M(_i(t)):(h(t)?e._d=t:s(i)?zi(e):i?Hi(e):Wi(e),v(e)||(e._d=null),e))}function Wi(e){var t=e._i;c(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Ri(e):s(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),wi(e)):o(t)?Bi(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}function qi(e,t,i,n,r){var a={};return!0!==i&&!1!==i||(n=i,i=void 0),(o(e)&&l(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=i,a._i=e,a._f=t,a._strict=n,Vi(a)}function Ji(e,t,i,n){return qi(e,t,i,n,!1)}r.createFromInputFallback=j("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Ki=j("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ji.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()})),Zi=j("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ji.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}));function Qi(e,t){var i,n;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Ji();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}function Xi(){var e=[].slice.call(arguments,0);return Qi("isBefore",e)}function $i(){var e=[].slice.call(arguments,0);return Qi("isAfter",e)}var en=function(){return Date.now?Date.now():+new Date},tn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nn(e){for(var t in e)if(-1===Ke.call(tn,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var i=!1,n=0;n<tn.length;++n)if(e[tn[n]]){if(i)return!1;parseFloat(e[tn[n]])!==T(e[tn[n]])&&(i=!0)}return!0}function rn(){return this._isValid}function an(){return Sn(NaN)}function sn(e){var t=X(e),i=t.year||0,n=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=nn(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*o*60*60,this._days=+s+7*a,this._months=+r+3*n+12*i,this._data={},this._locale=pi(),this._bubble()}function on(e){return e instanceof sn}function ln(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cn(e,t){oe(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+ie(~~(e/60),2)+t+ie(~~e%60,2)}))}cn("Z",":"),cn("ZZ",""),Ee("Z",Te),Ee("ZZ",Te),xe(["Z","ZZ"],(function(e,t,i){i._useUTC=!0,i._tzm=hn(Te,e)}));var un=/([\+\-]|\d\d)/gi;function hn(e,t){var i=(t||"").match(e);if(null===i)return null;var n=i[i.length-1]||[],r=(n+"").match(un)||["-",0,0],a=60*r[1]+T(r[2]);return 0===a?0:"+"===r[0]?a:-a}function dn(e,t){var i,n;return t._isUTC?(i=t.clone(),n=(k(e)||h(e)?e.valueOf():Ji(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),r.updateOffset(i,!1),i):Ji(e).local()}function mn(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function fn(e,t,i){var n,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(e=hn(Te,e),null===e)return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(n=mn(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),a!==e&&(!t||this._changeInProgress?Dn(this,Sn(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:mn(this)}function gn(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yn(e){return this.utcOffset(0,e)}function pn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mn(this),"m")),this}function vn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=hn(Oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _n(e){return!!this.isValid()&&(e=e?Ji(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function bn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ln(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e={};if(L(e,this),e=Ui(e),e._a){var t=e._isUTC?g(e._a):Ji(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function wn(){return!!this.isValid()&&!this._isUTC}function Mn(){return!!this.isValid()&&this._isUTC}function kn(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}r.updateOffset=function(){};var On=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Tn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Sn(e,t){var i,n,r,a=e,s=null;return on(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(a={},t?a[t]=e:a.milliseconds=e):(s=On.exec(e))?(i="-"===s[1]?-1:1,a={y:0,d:T(s[He])*i,h:T(s[Ge])*i,m:T(s[ze])*i,s:T(s[Be])*i,ms:T(ln(1e3*s[Ve]))*i}):(s=Tn.exec(e))?(i="-"===s[1]?-1:1,a={y:Cn(s[2],i),M:Cn(s[3],i),w:Cn(s[4],i),d:Cn(s[5],i),h:Cn(s[6],i),m:Cn(s[7],i),s:Cn(s[8],i)}):null==a?a={}:"object"===typeof a&&("from"in a||"to"in a)&&(r=En(Ji(a.from),Ji(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),n=new sn(a),on(e)&&m(e,"_locale")&&(n._locale=e._locale),n}function Cn(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function jn(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function En(e,t){var i;return e.isValid()&&t.isValid()?(t=dn(t,e),e.isBefore(t)?i=jn(e,t):(i=jn(t,e),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function In(e,t){return function(i,n){var r,a;return null===n||isNaN(+n)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=i,i=n,n=a),i="string"===typeof i?+i:i,r=Sn(i,n),Dn(this,r,e),this}}function Dn(e,t,i,n){var a=t._milliseconds,s=ln(t._days),o=ln(t._months);e.isValid()&&(n=null==n||n,o&&dt(e,$e(e,"Month")+o*i),s&&et(e,"Date",$e(e,"Date")+s*i),a&&e._d.setTime(e._d.valueOf()+a*i),n&&r.updateOffset(e,s||o))}Sn.fn=sn.prototype,Sn.invalid=an;var Pn=In(1,"add"),An=In(-1,"subtract");function xn(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function Yn(e,t){var i=e||Ji(),n=dn(i,this).startOf("day"),a=r.calendarFormat(this,n)||"sameElse",s=t&&(P(t[a])?t[a].call(this,i):t[a]);return this.format(s||this.localeData().calendar(a,this,Ji(i)))}function Nn(){return new M(this)}function Fn(e,t){var i=k(e)?e:Ji(e);return!(!this.isValid()||!i.isValid())&&(t=Q(t)||"millisecond","millisecond"===t?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())}function Rn(e,t){var i=k(e)?e:Ji(e);return!(!this.isValid()||!i.isValid())&&(t=Q(t)||"millisecond","millisecond"===t?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}function Hn(e,t,i,n){var r=k(e)?e:Ji(e),a=k(t)?t:Ji(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&(n=n||"()",("("===n[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(a,i):!this.isAfter(a,i)))}function Gn(e,t){var i,n=k(e)?e:Ji(e);return!(!this.isValid()||!n.isValid())&&(t=Q(t)||"millisecond","millisecond"===t?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function zn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Bn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Vn(e,t,i){var n,r,a;if(!this.isValid())return NaN;if(n=dn(e,this),!n.isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=Q(t),t){case"year":a=Un(this,n)/12;break;case"month":a=Un(this,n);break;case"quarter":a=Un(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-r)/864e5;break;case"week":a=(this-n-r)/6048e5;break;default:a=this-n}return i?a:O(a)}function Un(e,t){var i,n,r=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(r,"months");return t-a<0?(i=e.clone().add(r-1,"months"),n=(t-a)/(a-i)):(i=e.clone().add(r+1,"months"),n=(t-a)/(i-a)),-(r+n)||0}function Wn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function qn(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999?ue(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ue(i,"Z")):ue(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]';return this.format(i+n+r+a)}function Kn(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=ue(this,e);return this.localeData().postformat(t)}function Zn(e,t){return this.isValid()&&(k(e)&&e.isValid()||Ji(e).isValid())?Sn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Qn(e){return this.from(Ji(),e)}function Xn(e,t){return this.isValid()&&(k(e)&&e.isValid()||Ji(e).isValid())?Sn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $n(e){return this.to(Ji(),e)}function er(e){var t;return void 0===e?this._locale._abbr:(t=pi(e),null!=t&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tr=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ir(){return this._locale}var nr=1e3,rr=60*nr,ar=60*rr,sr=3506328*ar;function or(e,t){return(e%t+t)%t}function lr(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-sr:new Date(e,t,i).valueOf()}function cr(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-sr:Date.UTC(e,t,i)}function ur(e){var t;if(e=Q(e),void 0===e||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?cr:lr;switch(e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=or(t+(this._isUTC?0:this.utcOffset()*rr),ar);break;case"minute":t=this._d.valueOf(),t-=or(t,rr);break;case"second":t=this._d.valueOf(),t-=or(t,nr);break}return this._d.setTime(t),r.updateOffset(this,!0),this}function hr(e){var t;if(e=Q(e),void 0===e||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?cr:lr;switch(e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ar-or(t+(this._isUTC?0:this.utcOffset()*rr),ar)-1;break;case"minute":t=this._d.valueOf(),t+=rr-or(t,rr)-1;break;case"second":t=this._d.valueOf(),t+=nr-or(t,nr)-1;break}return this._d.setTime(t),r.updateOffset(this,!0),this}function dr(){return this._d.valueOf()-6e4*(this._offset||0)}function mr(){return Math.floor(this.valueOf()/1e3)}function fr(){return new Date(this.valueOf())}function gr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function yr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function pr(){return this.isValid()?this.toISOString():null}function vr(){return v(this)}function _r(){return f({},p(this))}function br(){return p(this).overflow}function Lr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function wr(e,t){oe(0,[e,e.length],0,t)}function Mr(e){return Sr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function kr(e){return Sr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Or(){return Ot(this.year(),1,4)}function Tr(){var e=this.localeData()._week;return Ot(this.year(),e.dow,e.doy)}function Sr(e,t,i,n,r){var a;return null==e?kt(this,n,r).year:(a=Ot(e,n,r),t>a&&(t=a),Cr.call(this,e,t,i,n,r))}function Cr(e,t,i,n,r){var a=Mt(e,t,i,n,r),s=Lt(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function jr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}oe(0,["gg",2],0,(function(){return this.weekYear()%100})),oe(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),wr("gggg","weekYear"),wr("ggggg","weekYear"),wr("GGGG","isoWeekYear"),wr("GGGGG","isoWeekYear"),Z("weekYear","gg"),Z("isoWeekYear","GG"),ee("weekYear",1),ee("isoWeekYear",1),Ee("G",ke),Ee("g",ke),Ee("GG",pe,me),Ee("gg",pe,me),Ee("GGGG",Le,ge),Ee("gggg",Le,ge),Ee("GGGGG",we,ye),Ee("ggggg",we,ye),Ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,n){t[n.substr(0,2)]=T(e)})),Ye(["gg","GG"],(function(e,t,i,n){t[n]=r.parseTwoDigitYear(e)})),oe("Q",0,"Qo","quarter"),Z("quarter","Q"),ee("quarter",7),Ee("Q",de),xe("Q",(function(e,t){t[Re]=3*(T(e)-1)})),oe("D",["DD",2],"Do","date"),Z("date","D"),ee("date",9),Ee("D",pe),Ee("DD",pe,me),Ee("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),xe(["D","DD"],He),xe("Do",(function(e,t){t[He]=T(e.match(pe)[0])}));var Er=Xe("Date",!0);function Ir(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}oe("DDD",["DDDD",3],"DDDo","dayOfYear"),Z("dayOfYear","DDD"),ee("dayOfYear",4),Ee("DDD",be),Ee("DDDD",fe),xe(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=T(e)})),oe("m",["mm",2],0,"minute"),Z("minute","m"),ee("minute",14),Ee("m",pe),Ee("mm",pe,me),xe(["m","mm"],ze);var Dr=Xe("Minutes",!1);oe("s",["ss",2],0,"second"),Z("second","s"),ee("second",15),Ee("s",pe),Ee("ss",pe,me),xe(["s","ss"],Be);var Pr,Ar=Xe("Seconds",!1);for(oe("S",0,0,(function(){return~~(this.millisecond()/100)})),oe(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),oe(0,["SSS",3],0,"millisecond"),oe(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),oe(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),oe(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),oe(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),oe(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),oe(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Z("millisecond","ms"),ee("millisecond",16),Ee("S",be,de),Ee("SS",be,me),Ee("SSS",be,fe),Pr="SSSS";Pr.length<=9;Pr+="S")Ee(Pr,Me);function xr(e,t){t[Ve]=T(1e3*("0."+e))}for(Pr="S";Pr.length<=9;Pr+="S")xe(Pr,xr);var Yr=Xe("Milliseconds",!1);function Nr(){return this._isUTC?"UTC":""}function Fr(){return this._isUTC?"Coordinated Universal Time":""}oe("z",0,0,"zoneAbbr"),oe("zz",0,0,"zoneName");var Rr=M.prototype;function Hr(e){return Ji(1e3*e)}function Gr(){return Ji.apply(null,arguments).parseZone()}function zr(e){return e}Rr.add=Pn,Rr.calendar=Yn,Rr.clone=Nn,Rr.diff=Vn,Rr.endOf=hr,Rr.format=Kn,Rr.from=Zn,Rr.fromNow=Qn,Rr.to=Xn,Rr.toNow=$n,Rr.get=tt,Rr.invalidAt=br,Rr.isAfter=Fn,Rr.isBefore=Rn,Rr.isBetween=Hn,Rr.isSame=Gn,Rr.isSameOrAfter=zn,Rr.isSameOrBefore=Bn,Rr.isValid=vr,Rr.lang=tr,Rr.locale=er,Rr.localeData=ir,Rr.max=Zi,Rr.min=Ki,Rr.parsingFlags=_r,Rr.set=it,Rr.startOf=ur,Rr.subtract=An,Rr.toArray=gr,Rr.toObject=yr,Rr.toDate=fr,Rr.toISOString=qn,Rr.inspect=Jn,Rr.toJSON=pr,Rr.toString=Wn,Rr.unix=mr,Rr.valueOf=dr,Rr.creationData=Lr,Rr.year=Ze,Rr.isLeapYear=Qe,Rr.weekYear=Mr,Rr.isoWeekYear=kr,Rr.quarter=Rr.quarters=jr,Rr.month=mt,Rr.daysInMonth=ft,Rr.week=Rr.weeks=Et,Rr.isoWeek=Rr.isoWeeks=It,Rr.weeksInYear=Tr,Rr.isoWeeksInYear=Or,Rr.date=Er,Rr.day=Rr.days=Bt,Rr.weekday=Vt,Rr.isoWeekday=Ut,Rr.dayOfYear=Ir,Rr.hour=Rr.hours=oi,Rr.minute=Rr.minutes=Dr,Rr.second=Rr.seconds=Ar,Rr.millisecond=Rr.milliseconds=Yr,Rr.utcOffset=fn,Rr.utc=yn,Rr.local=pn,Rr.parseZone=vn,Rr.hasAlignedHourOffset=_n,Rr.isDST=bn,Rr.isLocal=wn,Rr.isUtcOffset=Mn,Rr.isUtc=kn,Rr.isUTC=kn,Rr.zoneAbbr=Nr,Rr.zoneName=Fr,Rr.dates=j("dates accessor is deprecated. Use date instead.",Er),Rr.months=j("months accessor is deprecated. Use month instead",mt),Rr.years=j("years accessor is deprecated. Use year instead",Ze),Rr.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gn),Rr.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ln);var Br=Y.prototype;function Vr(e,t,i,n){var r=pi(),a=g().set(n,t);return r[i](a,e)}function Ur(e,t,i){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Vr(e,t,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Vr(e,n,i,"month");return r}function Wr(e,t,i,n){"boolean"===typeof e?(u(t)&&(i=t,t=void 0),t=t||""):(t=e,i=t,e=!1,u(t)&&(i=t,t=void 0),t=t||"");var r,a=pi(),s=e?a._week.dow:0;if(null!=i)return Vr(t,(i+s)%7,n,"day");var o=[];for(r=0;r<7;r++)o[r]=Vr(t,(r+s)%7,n,"day");return o}function qr(e,t){return Ur(e,t,"months")}function Jr(e,t){return Ur(e,t,"monthsShort")}function Kr(e,t,i){return Wr(e,t,i,"weekdays")}function Zr(e,t,i){return Wr(e,t,i,"weekdaysShort")}function Qr(e,t,i){return Wr(e,t,i,"weekdaysMin")}Br.calendar=F,Br.longDateFormat=H,Br.invalidDate=z,Br.ordinal=U,Br.preparse=zr,Br.postformat=zr,Br.relativeTime=q,Br.pastFuture=J,Br.set=A,Br.months=ot,Br.monthsShort=ct,Br.monthsParse=ht,Br.monthsRegex=vt,Br.monthsShortRegex=yt,Br.week=Tt,Br.firstDayOfYear=jt,Br.firstDayOfWeek=Ct,Br.weekdays=Yt,Br.weekdaysMin=Ht,Br.weekdaysShort=Ft,Br.weekdaysParse=zt,Br.weekdaysRegex=qt,Br.weekdaysShortRegex=Kt,Br.weekdaysMinRegex=Qt,Br.isPM=ni,Br.meridiem=ai,fi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,i=1===T(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}}),r.lang=j("moment.lang is deprecated. Use moment.locale instead.",fi),r.langData=j("moment.langData is deprecated. Use moment.localeData instead.",pi);var Xr=Math.abs;function $r(){var e=this._data;return this._milliseconds=Xr(this._milliseconds),this._days=Xr(this._days),this._months=Xr(this._months),e.milliseconds=Xr(e.milliseconds),e.seconds=Xr(e.seconds),e.minutes=Xr(e.minutes),e.hours=Xr(e.hours),e.months=Xr(e.months),e.years=Xr(e.years),this}function ea(e,t,i,n){var r=Sn(t,i);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function ta(e,t){return ea(this,e,t,1)}function ia(e,t){return ea(this,e,t,-1)}function na(e){return e<0?Math.floor(e):Math.ceil(e)}function ra(){var e,t,i,n,r,a=this._milliseconds,s=this._days,o=this._months,l=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*na(sa(o)+s),s=0,o=0),l.milliseconds=a%1e3,e=O(a/1e3),l.seconds=e%60,t=O(e/60),l.minutes=t%60,i=O(t/60),l.hours=i%24,s+=O(i/24),r=O(aa(s)),o+=r,s-=na(sa(r)),n=O(o/12),o%=12,l.days=s,l.months=o,l.years=n,this}function aa(e){return 4800*e/146097}function sa(e){return 146097*e/4800}function oa(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if(e=Q(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+aa(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(sa(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function la(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN}function ca(e){return function(){return this.as(e)}}var ua=ca("ms"),ha=ca("s"),da=ca("m"),ma=ca("h"),fa=ca("d"),ga=ca("w"),ya=ca("M"),pa=ca("Q"),va=ca("y");function _a(){return Sn(this)}function ba(e){return e=Q(e),this.isValid()?this[e+"s"]():NaN}function La(e){return function(){return this.isValid()?this._data[e]:NaN}}var wa=La("milliseconds"),Ma=La("seconds"),ka=La("minutes"),Oa=La("hours"),Ta=La("days"),Sa=La("months"),Ca=La("years");function ja(){return O(this.days()/7)}var Ea=Math.round,Ia={ss:44,s:45,m:45,h:22,d:26,M:11};function Da(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}function Pa(e,t,i){var n=Sn(e).abs(),r=Ea(n.as("s")),a=Ea(n.as("m")),s=Ea(n.as("h")),o=Ea(n.as("d")),l=Ea(n.as("M")),c=Ea(n.as("y")),u=r<=Ia.ss&&["s",r]||r<Ia.s&&["ss",r]||a<=1&&["m"]||a<Ia.m&&["mm",a]||s<=1&&["h"]||s<Ia.h&&["hh",s]||o<=1&&["d"]||o<Ia.d&&["dd",o]||l<=1&&["M"]||l<Ia.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=i,Da.apply(null,u)}function Aa(e){return void 0===e?Ea:"function"===typeof e&&(Ea=e,!0)}function xa(e,t){return void 0!==Ia[e]&&(void 0===t?Ia[e]:(Ia[e]=t,"s"===e&&(Ia.ss=t-1),!0))}function Ya(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=Pa(this,!e,t);return e&&(i=t.pastFuture(+this,i)),t.postformat(i)}var Na=Math.abs;function Fa(e){return(e>0)-(e<0)||+e}function Ra(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n=Na(this._milliseconds)/1e3,r=Na(this._days),a=Na(this._months);e=O(n/60),t=O(e/60),n%=60,e%=60,i=O(a/12),a%=12;var s=i,o=a,l=r,c=t,u=e,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var m=d<0?"-":"",f=Fa(this._months)!==Fa(d)?"-":"",g=Fa(this._days)!==Fa(d)?"-":"",y=Fa(this._milliseconds)!==Fa(d)?"-":"";return m+"P"+(s?f+s+"Y":"")+(o?f+o+"M":"")+(l?g+l+"D":"")+(c||u||h?"T":"")+(c?y+c+"H":"")+(u?y+u+"M":"")+(h?y+h+"S":"")}var Ha=sn.prototype;return Ha.isValid=rn,Ha.abs=$r,Ha.add=ta,Ha.subtract=ia,Ha.as=oa,Ha.asMilliseconds=ua,Ha.asSeconds=ha,Ha.asMinutes=da,Ha.asHours=ma,Ha.asDays=fa,Ha.asWeeks=ga,Ha.asMonths=ya,Ha.asQuarters=pa,Ha.asYears=va,Ha.valueOf=la,Ha._bubble=ra,Ha.clone=_a,Ha.get=ba,Ha.milliseconds=wa,Ha.seconds=Ma,Ha.minutes=ka,Ha.hours=Oa,Ha.days=Ta,Ha.weeks=ja,Ha.months=Sa,Ha.years=Ca,Ha.humanize=Ya,Ha.toISOString=Ra,Ha.toString=Ra,Ha.toJSON=Ra,Ha.locale=er,Ha.localeData=ir,Ha.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ra),Ha.lang=tr,oe("X",0,0,"unix"),oe("x",0,0,"valueOf"),Ee("x",ke),Ee("X",Se),xe("X",(function(e,t,i){i._d=new Date(1e3*parseFloat(e,10))})),xe("x",(function(e,t,i){i._d=new Date(T(e))})),r.version="2.24.0",a(Ji),r.fn=Rr,r.min=Xi,r.max=$i,r.now=en,r.utc=g,r.unix=Hr,r.months=qr,r.isDate=h,r.locale=fi,r.invalid=_,r.duration=Sn,r.isMoment=k,r.weekdays=Kr,r.parseZone=Gr,r.localeData=pi,r.isDuration=on,r.monthsShort=Jr,r.weekdaysMin=Qr,r.defineLocale=gi,r.updateLocale=yi,r.locales=vi,r.weekdaysShort=Zr,r.normalizeUnits=Q,r.relativeTimeRounding=Aa,r.relativeTimeThreshold=xa,r.calendarFormat=xn,r.prototype=Rr,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}))}).call(this,i(650)(e))},function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"h",(function(){return a})),i.d(t,"g",(function(){return s})),i.d(t,"e",(function(){return o})),i.d(t,"f",(function(){return l})),i.d(t,"c",(function(){return c})),i.d(t,"a",(function(){return u})),i.d(t,"b",(function(){return h}));i(22),i(9),i(24),i(168),i(169),i(689),i(26),i(8),i(52),i(25),i(34),i(46),i(10);var n=i(37);function r(e){var t=/^[+a-zA-Z0-9_.!#$%&\'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;return t.test(e)}function a(e,t){if(null!=e){var i=Number.parseInt(String(e),10);if(null!=i&&!Number.isNaN(i))return i}return void 0!==t?t:0}function s(e,t){if(e){var i=Number.parseFloat(String(e));if(null!=i&&!Number.isNaN(i))return i}return void 0!==t?t:0}function o(e,t){return null==e?t:"boolean"===typeof e?e:1===e||0!==e&&("string"===typeof e&&("true"===e.toLowerCase()||"1"===e.toLowerCase())||("string"!==typeof e||"false"!==e.toLowerCase()&&"0"!==e.toLowerCase())&&t)}function l(e,t,i){if(null!=e){var n=Object.values(t).find((function(t){return t==e}));if(null!=n)return n}return i}function c(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,i="x"==e?t:3&t|8;return i.toString(16)}))}function u(e,t){Array.isArray(e)?e.forEach((function(e,i,n){t.call(n,e),u(n[i],t)})):e&&"object"===Object(n["a"])(e)&&Object.keys(e).forEach((function(i){t.call(e,e[i]),u(e[i],t)}))}function h(e){var t=e.target.tagName.toUpperCase();return e.defaultPrevented||"INPUT"===t||"SELECT"===t||"TEXTAREA"===t}},function(e,t,i){var n=i(167),r=i(62),a=i(625);n||r(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,i){"use strict";var n=i(21),r=i(222);n({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,i){var n=i(31),r=i(225),a=i(222),s=i(61);for(var o in r){var l=n[o],c=l&&l.prototype;if(c&&c.forEach!==a)try{s(c,"forEach",a)}catch(u){c.forEach=a}}},,function(e,t,i){var n=i(42),r=i(39).f,a=Function.prototype,s=a.toString,o=/^\s*function ([^ (]*)/,l="name";n&&!(l in a)&&r(a,l,{configurable:!0,get:function(){try{return s.call(this).match(o)[1]}catch(e){return""}}})},function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i(118);function r(e){if(Array.isArray(e))return Object(n["a"])(e)}function a(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}var s=i(116);function o(){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 l(e){return r(e)||a(e)||Object(s["a"])(e)||o()}},function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(13);function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){Object(n["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}},function(e,t,i){e.exports=i(631)},function(e,t,i){"use strict";var n=i(21),r=i(28),a=i(128),s=i(43),o=i(63),l=i(41),c=i(140),u=i(149),h=i(108),d=i(32),m=i(193),f=d("isConcatSpreadable"),g=9007199254740991,y="Maximum allowed index exceeded",p=m>=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),v=h("concat"),_=function(e){if(!s(e))return!1;var t=e[f];return void 0!==t?!!t:a(e)},b=!p||!v;n({target:"Array",proto:!0,forced:b},{concat:function(e){var t,i,n,r,a,s=o(this),h=u(s,0),d=0;for(t=-1,n=arguments.length;t<n;t++)if(a=-1===t?s:arguments[t],_(a)){if(r=l(a.length),d+r>g)throw TypeError(y);for(i=0;i<r;i++,d++)i in a&&c(h,d,a[i])}else{if(d>=g)throw TypeError(y);c(h,d++,a)}return h.length=d,h}})},function(e,t,i){"use strict";var n=i(21),r=i(57).map,a=i(28),s=i(108),o=s("map"),l=o&&!a((function(){[].map.call({length:-1,0:1},(function(e){throw e}))}));n({target:"Array",proto:!0,forced:!o||!l},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i.d(t,"a",(function(){return n}))},function(e,t,i){var n=i(31),r=i(225),a=i(232),s=i(61),o=i(32),l=o("iterator"),c=o("toStringTag"),u=a.values;for(var h in r){var d=n[h],m=d&&d.prototype;if(m){if(m[l]!==u)try{s(m,l,u)}catch(g){m[l]=u}if(m[c]||s(m,c,h),r[h])for(var f in a)if(m[f]!==a[f])try{s(m,f,a[f])}catch(g){m[f]=a[f]}}}},function(e,t,i){var n=i(31),r=i(98).f,a=i(61),s=i(62),o=i(146),l=i(190),c=i(127);e.exports=function(e,t){var i,u,h,d,m,f,g=e.target,y=e.global,p=e.stat;if(u=y?n:p?n[g]||o(g,{}):(n[g]||{}).prototype,u)for(h in t){if(m=t[h],e.noTargetGet?(f=r(u,h),d=f&&f.value):d=u[h],i=c(y?h:g+(p?".":"#")+h,e.forced),!i&&void 0!==d){if(typeof m===typeof d)continue;l(m,d)}(e.sham||d&&d.sham)&&a(m,"sham",!0),s(u,h,m,e)}}},function(e,t,i){"use strict";var n=i(21),r=i(57).find,a=i(113),s="find",o=!0;s in[]&&Array(1)[s]((function(){o=!1})),n({target:"Array",proto:!0,forced:o},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},function(e,t,i){"use strict";var n=i(21),r=i(57).filter,a=i(28),s=i(108),o=s("filter"),l=o&&!a((function(){[].filter.call({length:-1,0:1},(function(e){throw e}))}));n({target:"Array",proto:!0,forced:!o||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";var n=i(42),r=i(31),a=i(127),s=i(62),o=i(44),l=i(80),c=i(141),u=i(99),h=i(28),d=i(97),m=i(91).f,f=i(98).f,g=i(39).f,y=i(162).trim,p="Number",v=r[p],_=v.prototype,b=l(d(_))==p,L=function(e){var t,i,n,r,a,s,o,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=y(c),t=c.charCodeAt(0),43===t||45===t){if(i=c.charCodeAt(2),88===i||120===i)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+c}for(a=c.slice(2),s=a.length,o=0;o<s;o++)if(l=a.charCodeAt(o),l<48||l>r)return NaN;return parseInt(a,n)}return+c};if(a(p,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var w,M=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof M&&(b?h((function(){_.valueOf.call(i)})):l(i)!=p)?c(new v(L(t)),i,M):L(t)},k=n?m(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;k.length>O;O++)o(v,w=k[O])&&!o(M,w)&&g(M,w,f(v,w));M.prototype=_,_.constructor=M,s(r,p,M)}},function(e,t,i){"use strict";var n=i(21),r=i(129);n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,i){var n=i(21),r=i(63),a=i(121),s=i(28),o=s((function(){a(1)}));n({target:"Object",stat:!0,forced:o},{keys:function(e){return a(r(e))}})},function(e,t,i){"use strict";function n(e){if(Array.isArray(e))return e}function r(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done);n=!0)if(i.push(s.value),t&&i.length===t)break}catch(l){r=!0,a=l}finally{try{n||null==o["return"]||o["return"]()}finally{if(r)throw a}}return i}}i.d(t,"a",(function(){return o}));var a=i(116);function s(){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 o(e,t){return n(e)||r(e,t)||Object(a["a"])(e,t)||s()}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,i){"use strict";function n(e,t,i,n,r,a,s){try{var o=e[a](s),l=o.value}catch(c){return void i(c)}o.done?t(l):Promise.resolve(l).then(n,r)}function r(e){return function(){var t=this,i=arguments;return new Promise((function(r,a){var s=e.apply(t,i);function o(e){n(s,r,a,o,l,"next",e)}function l(e){n(s,r,a,o,l,"throw",e)}o(void 0)}))}}i.d(t,"a",(function(){return r}))},function(e,t,i){"use strict";var n=i(21),r=i(102),a=i(71),s=i(41),o=i(63),l=i(149),c=i(140),u=i(108),h=Math.max,d=Math.min,m=9007199254740991,f="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!u("splice")},{splice:function(e,t){var i,n,u,g,y,p,v=o(this),_=s(v.length),b=r(e,_),L=arguments.length;if(0===L?i=n=0:1===L?(i=0,n=_-b):(i=L-2,n=d(h(a(t),0),_-b)),_+i-n>m)throw TypeError(f);for(u=l(v,n),g=0;g<n;g++)y=b+g,y in v&&c(u,g,v[y]);if(u.length=n,i<n){for(g=b;g<_-n;g++)y=g+n,p=g+i,y in v?v[p]=v[y]:delete v[p];for(g=_;g>_-n+i;g--)delete v[g-1]}else if(i>n)for(g=_-n;g>b;g--)y=g+n-1,p=g+i-1,y in v?v[p]=v[y]:delete v[p];for(g=0;g<i;g++)v[g+b]=arguments[g+2];return v.length=_-n+i,u}})},function(e,t,i){(function(t){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 t&&t)||Function("return this")()}).call(this,i(123))},function(e,t,i){var n=i(31),r=i(147),a=i(44),s=i(119),o=i(150),l=i(192),c=r("wks"),u=n.Symbol,h=l?u:u&&u.withoutSetter||s;e.exports=function(e){return a(c,e)||(o&&a(u,e)?c[e]=u[e]:c[e]=h("Symbol."+e)),c[e]}},function(e,t,i){"use strict";var n=i(21),r=i(43),a=i(128),s=i(102),o=i(41),l=i(70),c=i(140),u=i(108),h=i(32),d=h("species"),m=[].slice,f=Math.max;n({target:"Array",proto:!0,forced:!u("slice")},{slice:function(e,t){var i,n,u,h=l(this),g=o(h.length),y=s(e,g),p=s(void 0===t?g:t,g);if(a(h)&&(i=h.constructor,"function"!=typeof i||i!==Array&&!a(i.prototype)?r(i)&&(i=i[d],null===i&&(i=void 0)):i=void 0,i===Array||void 0===i))return m.call(h,y,p);for(n=new(void 0===i?Array:i)(f(p-y,0)),u=0;y<p;y++,u++)y in h&&c(n,u,h[y]);return n.length=u,n}})},function(e,t,i){"use strict";var n=i(62),r=i(40),a=i(28),s=i(139),o="toString",l=RegExp.prototype,c=l[o],u=a((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),h=c.name!=o;(u||h)&&n(RegExp.prototype,o,(function(){var e=r(this),t=String(e.source),i=e.flags,n=String(void 0===i&&e instanceof RegExp&&!("flags"in l)?s.call(e):i);return"/"+t+"/"+n}),{unsafe:!0})},function(e,t,i){"use strict";var n=i(181).charAt,r=i(75),a=i(171),s="String Iterator",o=r.set,l=r.getterFor(s);a(String,"String",(function(e){o(this,{type:s,string:String(e),index:0})}),(function(){var e,t=l(this),i=t.string,r=t.index;return r>=i.length?{value:void 0,done:!0}:(e=n(i,r),t.index+=e.length,{value:e,done:!1})}))},function(e,t,i){"use strict";var n=i(21),r=i(126).indexOf,a=i(96),s=[].indexOf,o=!!s&&1/[1].indexOf(1,-0)<0,l=a("indexOf");n({target:"Array",proto:!0,forced:o||l},{indexOf:function(e){return o?s.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";var n=i(21),r=i(126).includes,a=i(113);n({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,i){var n=i(42),r=i(186),a=i(40),s=i(99),o=Object.defineProperty;t.f=n?o:function(e,t,i){if(a(e),t=s(t,!0),a(i),r)try{return o(e,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var n=i(43);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,i){var n=i(71),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},function(e,t,i){var n=i(28);e.exports=!n((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){(function(t){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 t&&t)||Function("return this")()}).call(this,i(123))},function(e,t,i){"use strict";var n=i(130),r=i(40),a=i(63),s=i(41),o=i(71),l=i(60),c=i(165),u=i(131),h=Math.max,d=Math.min,m=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,y=function(e){return void 0===e?e:String(e)};n("replace",2,(function(e,t,i,n){return[function(i,n){var r=l(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,r,n):t.call(String(r),i,n)},function(e,a){if(n.REPLACE_KEEPS_$0||"string"===typeof a&&-1===a.indexOf("$0")){var l=i(t,e,this,a);if(l.done)return l.value}var m=r(e),f=String(this),g="function"===typeof a;g||(a=String(a));var v=m.global;if(v){var _=m.unicode;m.lastIndex=0}var b=[];while(1){var L=u(m,f);if(null===L)break;if(b.push(L),!v)break;var w=String(L[0]);""===w&&(m.lastIndex=c(f,s(m.lastIndex),_))}for(var M="",k=0,O=0;O<b.length;O++){L=b[O];for(var T=String(L[0]),S=h(d(o(L.index),f.length),0),C=[],j=1;j<L.length;j++)C.push(y(L[j]));var E=L.groups;if(g){var I=[T].concat(C,S,f);void 0!==E&&I.push(E);var D=String(a.apply(void 0,I))}else D=p(T,f,S,C,E,a);S>=k&&(M+=f.slice(k,S)+D,k=S+T.length)}return M+f.slice(k)}];function p(e,i,n,r,s,o){var l=n+e.length,c=r.length,u=g;return void 0!==s&&(s=a(s),u=f),t.call(o,u,(function(t,a){var o;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return i.slice(0,n);case"'":return i.slice(l);case"<":o=s[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>c){var h=m(u/10);return 0===h?t:h<=c?void 0===r[h-1]?a.charAt(1):r[h-1]+a.charAt(1):t}o=r[u-1]}return void 0===o?"":o}))}}))},function(e,t,i){"use strict";var n=i(21),r=i(223),a=i(60),s=i(224);n({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~String(a(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";var n=i(21),r=i(31),a=i(101),s=i(100),o=i(42),l=i(150),c=i(192),u=i(28),h=i(44),d=i(128),m=i(43),f=i(40),g=i(63),y=i(70),p=i(99),v=i(90),_=i(97),b=i(121),L=i(91),w=i(628),M=i(178),k=i(98),O=i(39),T=i(138),S=i(61),C=i(62),j=i(147),E=i(125),I=i(107),D=i(119),P=i(32),A=i(233),x=i(629),Y=i(103),N=i(75),F=i(57).forEach,R=E("hidden"),H="Symbol",G="prototype",z=P("toPrimitive"),B=N.set,V=N.getterFor(H),U=Object[G],W=r.Symbol,q=a("JSON","stringify"),J=k.f,K=O.f,Z=w.f,Q=T.f,X=j("symbols"),$=j("op-symbols"),ee=j("string-to-symbol-registry"),te=j("symbol-to-string-registry"),ie=j("wks"),ne=r.QObject,re=!ne||!ne[G]||!ne[G].findChild,ae=o&&u((function(){return 7!=_(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,i){var n=J(U,t);n&&delete U[t],K(e,t,i),n&&e!==U&&K(U,t,n)}:K,se=function(e,t){var i=X[e]=_(W[G]);return B(i,{type:H,tag:e,description:t}),o||(i.description=t),i},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},le=function(e,t,i){e===U&&le($,t,i),f(e);var n=p(t,!0);return f(i),h(X,n)?(i.enumerable?(h(e,R)&&e[R][n]&&(e[R][n]=!1),i=_(i,{enumerable:v(0,!1)})):(h(e,R)||K(e,R,v(1,{})),e[R][n]=!0),ae(e,n,i)):K(e,n,i)},ce=function(e,t){f(e);var i=y(t),n=b(i).concat(fe(i));return F(n,(function(t){o&&!he.call(i,t)||le(e,t,i[t])})),e},ue=function(e,t){return void 0===t?_(e):ce(_(e),t)},he=function(e){var t=p(e,!0),i=Q.call(this,t);return!(this===U&&h(X,t)&&!h($,t))&&(!(i||!h(this,t)||!h(X,t)||h(this,R)&&this[R][t])||i)},de=function(e,t){var i=y(e),n=p(t,!0);if(i!==U||!h(X,n)||h($,n)){var r=J(i,n);return!r||!h(X,n)||h(i,R)&&i[R][n]||(r.enumerable=!0),r}},me=function(e){var t=Z(y(e)),i=[];return F(t,(function(e){h(X,e)||h(I,e)||i.push(e)})),i},fe=function(e){var t=e===U,i=Z(t?$:y(e)),n=[];return F(i,(function(e){!h(X,e)||t&&!h(U,e)||n.push(X[e])})),n};if(l||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=D(e),i=function(e){this===U&&i.call($,e),h(this,R)&&h(this[R],t)&&(this[R][t]=!1),ae(this,t,v(1,e))};return o&&re&&ae(U,t,{configurable:!0,set:i}),se(t,e)},C(W[G],"toString",(function(){return V(this).tag})),C(W,"withoutSetter",(function(e){return se(D(e),e)})),T.f=he,O.f=le,k.f=de,L.f=w.f=me,M.f=fe,A.f=function(e){return se(P(e),e)},o&&(K(W[G],"description",{configurable:!0,get:function(){return V(this).description}}),s||C(U,"propertyIsEnumerable",he,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),F(b(ie),(function(e){x(e)})),n({target:H,stat:!0,forced:!l},{for:function(e){var t=String(e);if(h(ee,t))return ee[t];var i=W(t);return ee[t]=i,te[i]=t,i},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(h(te,e))return te[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!o},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:de}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:me,getOwnPropertySymbols:fe}),n({target:"Object",stat:!0,forced:u((function(){M.f(1)}))},{getOwnPropertySymbols:function(e){return M.f(g(e))}}),q){var ge=!l||u((function(){var e=W();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}));n({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,i){var n,r=[e],a=1;while(arguments.length>a)r.push(arguments[a++]);if(n=t,(m(t)||void 0!==e)&&!oe(e))return d(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!oe(t))return t}),r[1]=t,q.apply(null,r)}})}W[G][z]||S(W[G],z,W[G].valueOf),Y(W,H),I[R]=!0},function(e,t,i){"use strict";var n=i(21),r=i(42),a=i(31),s=i(44),o=i(43),l=i(39).f,c=i(190),u=a.Symbol;if(r&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new u(e):void 0===e?u():u(e);return""===e&&(h[t]=!0),t};c(d,u);var m=d.prototype=u.prototype;m.constructor=d;var f=m.toString,g="Symbol(test)"==String(u("test")),y=/^Symbol\((.*)\)[^)]+$/;l(m,"description",{configurable:!0,get:function(){var e=o(this)?this.valueOf():this,t=f.call(e);if(s(h,e))return"";var i=g?t.slice(7,-1):t.replace(y,"$1");return""===i?void 0:i}}),n({global:!0,forced:!0},{Symbol:d})}},function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return a}));i(22),i(26);var n={NORTH:1,EAST:2,SOUTH:3,WEST:4},r={north:n.NORTH,east:n.EAST,south:n.SOUTH,west:n.WEST};function a(e){return Object.keys(r).find((function(t){return r[t]===e}))}},,function(e,t,i){var n=i(21),r=i(226).values;n({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,i){"use strict";i(17),i(23),i(9),i(66),i(18),i(33),i(30),i(24),i(26),i(25),i(687),i(46),i(55),i(10);var n=i(37),r=i(14),a=i(1),s=i(0);function o(e){var t=e.length-1;return e.filter((function(e,i){return""!==e||i===t}))}var l=function(){function e(t){Object(a["a"])(this,e),this.className=e.className,this.base=t.base,this.base.replace("/$",""),this.path=t.path||[],this.hashPath=t.hashPath||[],this.queryParams=t.queryParams||{}}return Object(s["a"])(e,null,[{key:"className",get:function(){return"vcs.Url"}}]),Object(s["a"])(e,[{key:"addQueryParams",value:function(e){var t=this;Object.keys(e).forEach((function(i){t.queryParams[i]=e[i]}))}},{key:"getQueryParams",value:function(){return this.queryParams}},{key:"clearQueryParams",value:function(){this.queryParams={}}},{key:"setPath",value:function(){for(var e=this,t=[],i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return n.forEach((function(e){t.push.apply(t,Object(r["a"])(e.split("/")))})),this.path.splice(0,this.path.length),t.forEach((function(t){e.path.push(t)})),this.path=o(this.path),this}},{key:"extendPath",value:function(){for(var e=this,t=[],i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return n.forEach((function(e){t.push.apply(t,Object(r["a"])(e.split("/")))})),t.forEach((function(t){/^\.\.$/.test(t)?e.path.pop():e.path.push(t)})),this.path=o(this.path),this}},{key:"clone",value:function(){return new e({base:this.base,path:this.path.slice(0),hashPath:this.hashPath.slice(0),queryParams:this._cloneQueryParams()})}},{key:"_cloneQueryParams",value:function(){function e(t){var i={};return Object.keys(t).forEach((function(r){var a=t[r];Array.isArray(a)?i[r]=a.splice(0):"object"===Object(n["a"])(a)?i[r]=e(a):i[r]=a}),this),i}return e(this.queryParams)}},{key:"toString",value:function(){var e=this.path.length?"".concat(this.base,"/").concat(this.path.join("/")):this.base;return Object.keys(this.queryParams).length>0&&(e+="?".concat(this._getStringQueryParams())),this.hashPath.length>0&&(e+="#".concat(this.hashPath.join("/"))),e}},{key:"_getStringQueryParams",value:function(){var e=this;return Object.keys(this.queryParams).map((function(t){var i,n=e.queryParams[t];return i=n instanceof Object?JSON.stringify(n):String(n),"".concat(t,"=").concat(encodeURIComponent(i))})).join("&")}}],[{key:"parse",value:function(t){if(e.isUrl(t)){var i=t.split("?"),n=t.split("#"),r=null;if(i.length>1){var a=i[1].split("#")[0];a.endsWith("/")&&(a=a.split("/")[0]),r=e.parseQueryParams(a)}var s=[];if(n.length>1){var l=n[1].split("?")[0];s=l.split("/")}var c,u=i[0].split("#")[0].split("/");return c=/^(https?:\/\/).*/.test(t)?u.splice(0,3).join("/"):u.splice(0,1).join(""),u=o(u),new e({base:c,path:u,queryParams:r,hashPath:s})}throw new Error("Cannot parse url: ".concat(t))}},{key:"parseQueryParams",value:function(e){var t=e.split("&"),i={};return t.forEach((function(e){var t,n=e.split("=");2===n.length&&n[1].length>0&&(t=decodeURIComponent(n[1]),/^\d*\.?\d*$/.test(t)?t=Number(t):/^(\[|\{)(.*)(\]|\})$/.test(t)?t=JSON.parse(t):"true"===t?t=!0:"false"===t&&(t=!1));var r=i[n[0]];r?Array.isArray(r)?r.push(t):i[n[0]]=[r,t]:i[n[0]]=t})),i}},{key:"isUrl",value:function(e){var t=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i;return t.test(e)}},{key:"hasSameOrigin",value:function(t){if(!/^[a-z][a-z0-9+.-]*:/.test(t))return!0;if(/^data:/.test(t))return!0;var i=e.parse(window.location.href),n=e.parse(t);return i.base.toLowerCase()===n.base.toLocaleLowerCase()}}]),e}();t["a"]=l},function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return l})),i.d(t,"d",(function(){return c})),i.d(t,"c",(function(){return u})),i.d(t,"f",(function(){return h})),i.d(t,"e",(function(){return d}));i(22),i(9),i(18),i(33),i(30),i(8),i(10);var n=i(27),r=i(50);function a(e,t){var i=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(i*i+n*n)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.slice(),n=ol.extent.boundingExtent(i),s=[ol.extent.getBottomLeft(n),ol.extent.getBottomRight(n),ol.extent.getTopRight(n),ol.extent.getTopLeft(n)],o=s.map((function(e){var t=0,n=1/0;return i.forEach((function(i,r){var s=a(e,i);s<n&&(n=s,t=r)})),i.splice(t,1)[0]}));return t===r["a"].EAST?o=[o[3],o[0],o[1],o[2]]:t===r["a"].SOUTH?o=[o[2],o[3],o[0],o[1]]:t===r["a"].WEST&&(o=[o[1],o[2],o[3],o[0]]),o}function o(e,t){var i=e[0]*t[0]+e[1]*t[1],n=Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))*Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2));if(0===n)return console.error("caught div by 0 in angleBetweenTwo2DVectors"),null;var r=i/n,a=1.00000002;return r<-1*a||r>a?(console.error("Number is much smaller than -1 or much larger than 1 in angleBetweenTwo2DVectors"),null):((r<-1||r>1)&&(r=Math.round(r)),Math.acos(r))}function l(e,t){var i,r,a=Object(n["a"])(e,2),s=Object(n["a"])(a[0],2),o=s[0],l=s[1],c=Object(n["a"])(a[1],2),u=c[0],h=c[1],d=Object(n["a"])(t,2),m=Object(n["a"])(d[0],2),f=m[0],g=m[1],y=Object(n["a"])(d[1],2),p=y[0],v=y[1],_={x:null,y:null,onLine1:!1,onLine2:!1},b=(v-g)*(u-o)-(p-f)*(h-l);if(0===b)return _;i=l-g,r=o-f;var L=(p-f)*i-(v-g)*r,w=(u-o)*i-(h-l)*r;return i=L/b,r=w/b,_.x=o+i*(u-o),_.y=l+i*(h-l),i>0&&i<1&&(_.onLine1=!0),r>0&&r<1&&(_.onLine2=!0),_}function c(e,t,i,n,r){for(var c=s(e,!i&&r),u=s(t,!!i&&r),h=[],d=0;d<c.length;++d){for(var m=[],f=0;f<c.length;++f){var g=f===c.length-1?0:f+1;if(d!==f&&d!==g&&!(3===f&&0===g||1===f&&2===g)){var y=l([c[d],n],[c[f],c[g]]);if(null!=y.x&&null!=y.y){var p=[n[0]-c[d][0],n[1]-c[d][1]],v=[y.x-c[d][0],y.y-c[d][1]],_=o(p,v);if(null!=_&&!(_/(180*Math.PI)>5)){var b=[c[f][0]-c[g][0],c[f][1]-c[g][1]],L=[c[g][0]-c[f][0],c[g][1]-c[f][1]],w=o(p,b);if(null!=w){var M=o(p,L);if(null!=M){var k=a(c[f],c[g]);if(0!==k){var O=a(c[f],[y.x,y.y])/k,T=0;0!==O&&(T=o(L,[y.x-c[f][0],y.y-c[f][1]]),null==T)||m.push({cornerPoint:d,intrX:y.x,intrY:y.y,angle:w<=M?w:M,edgeStart:f,edgeEnd:g,ratioStart2End:T/Math.PI*180>5?-1*O:O})}}}}}}}for(var S=-1,C=-1,j=0;j<m.length;++j)m[j].angle>S&&(S=m[j].angle,C=j);-1!==C&&h.push(m[C])}if(h.length<2)return null;for(var E=[],I=0;I<h.length;++I)for(var D=I+1;D<h.length;++D)E.push([h[I].angle+h[D].angle,I,D]);var P=null;return E.sort().reverse().find((function(e){var t=[h[e[1]],h[e[2]]],i=u[t[0].edgeEnd],n=u[t[0].edgeStart],r=[i[0]-n[0],i[1]-n[1]],a=[n[0]+r[0]*t[0].ratioStart2End,n[1]+r[1]*t[0].ratioStart2End],s=u[t[1].edgeEnd],c=u[t[1].edgeStart],d=[s[0]-c[0],s[1]-c[1]],m=[c[0]+d[0]*t[1].ratioStart2End,c[1]+d[1]*t[1].ratioStart2End],f=[a[0]-u[t[0].cornerPoint][0],a[1]-u[t[0].cornerPoint][1]],g=[m[0]-u[t[1].cornerPoint][0],m[1]-u[t[1].cornerPoint][1]],y=o(f,g);return null!=y&&(P=l([u[t[0].cornerPoint],a],[u[t[1].cornerPoint],m]),null!=P.x&&null!=P.y)})),P}function u(e,t,i){var n=ol.proj.get("EPSG:4326"),r=i?ol.proj.getTransform(i,n):null,a=t.map((function(e){var t=r?r(e.slice(0,2)):e;return Cesium.Cartographic.fromDegrees(t[0],t[1])}));return new Promise((function(i,n){Cesium.sampleTerrainMostDetailed(e,a).then((function(e){e.forEach((function(e,i){t[i][2]=e.height})),i(t)}),n)}))}function h(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.dataProjection?ol.proj.transform(t,i.dataProjection,e.projection):t;function r(){var t=e.transformRealWorld2Image(n);return{coords:t,height:e.averageHeight,estimate:!0}}if(t[2]){var a=e.transformRealWorld2Image(n,t[2]);return Promise.resolve({coords:a,height:t[2],estimate:!1})}return!i.dontUseTerrain&&e.terrainProvider?u(e.terrainProvider,[n],e.projection).then((function(){if(n[2]){var t=e.transformRealWorld2Image(n,n[2]);return{coords:t,height:n[2],estimate:!1}}return console.warn("The configured terrain on the oblique layer could not be queried, position might be inaccurate"),r()})).catch((function(){return r()})):Promise.resolve(r())}function d(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=ol.proj.get("EPSG:4326"),r=ol.proj.transform(e.transformImage2RealWorld(t,e.averageHeight),e.projection,n),a=i.terrainErrorThreshold||1,s=i.terrainErrorCountThreshold||3,o=0;function l(i,r){return o+=1,u(e.terrainProvider,[i]).then((function(){if(null!=i[2]){var c=ol.proj.transform(e.transformImage2RealWorld(t,i[2]),e.projection,n);return c[2]=i[2],Math.abs(r-i[2])<a||o>s?{coords:c,estimate:!1}:l(c,i[2])}return console.log("The configured terrain on the oblique layer could not be queried, position might be inaccurate"),{coords:i,estimate:!0}})).catch((function(){return{coords:i,estimate:!0}}))}var c=!i.dontUseTerrain&&e.terrainProvider?l(r,e.getAverageHeight()):Promise.resolve({coords:r,estimate:!0});return c.then((function(t){return t.coords=i.dataProjection?ol.proj.transform(t.coords,n,i.dataProjection):ol.proj.transform(t.coords,n,e.projection),t}))}},function(e,t,i){"use strict";var n=i(130),r=i(164),a=i(40),s=i(60),o=i(142),l=i(165),c=i(41),u=i(131),h=i(129),d=i(28),m=[].push,f=Math.min,g=4294967295,y=!d((function(){return!RegExp(g,"y")}));n("split",2,(function(e,t,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,i){var n=String(s(this)),a=void 0===i?g:i>>>0;if(0===a)return[];if(void 0===e)return[n];if(!r(e))return t.call(n,e,a);var o,l,c,u=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,y=new RegExp(e.source,d+"g");while(o=h.call(y,n)){if(l=y.lastIndex,l>f&&(u.push(n.slice(f,o.index)),o.length>1&&o.index<n.length&&m.apply(u,o.slice(1)),c=o[0].length,f=l,u.length>=a))break;y.lastIndex===o.index&&y.lastIndex++}return f===n.length?!c&&y.test("")||u.push(""):u.push(n.slice(f)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t.call(this,e,i)}:t,[function(t,i){var r=s(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,r,i):n.call(String(r),t,i)},function(e,r){var s=i(n,e,this,r,n!==t);if(s.done)return s.value;var h=a(e),d=String(this),m=o(h,RegExp),p=h.unicode,v=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(y?"y":"g"),_=new m(y?h:"^(?:"+h.source+")",v),b=void 0===r?g:r>>>0;if(0===b)return[];if(0===d.length)return null===u(_,d)?[d]:[];var L=0,w=0,M=[];while(w<d.length){_.lastIndex=y?w:0;var k,O=u(_,y?d:d.slice(w));if(null===O||(k=f(c(_.lastIndex+(y?0:w)),d.length))===L)w=l(d,w,p);else{if(M.push(d.slice(L,w)),M.length===b)return M;for(var T=1;T<=O.length-1;T++)if(M.push(O[T]),M.length===b)return M;w=L=k}}return M.push(d.slice(L)),M}]}),!y)},function(e,t,i){"use strict";var n,r=i(42),a=i(31),s=i(43),o=i(44),l=i(143),c=i(61),u=i(62),h=i(39).f,d=i(166),m=i(161),f=i(32),g=i(119),y=a.DataView,p=y&&y.prototype,v=a.Int8Array,_=v&&v.prototype,b=a.Uint8ClampedArray,L=b&&b.prototype,w=v&&d(v),M=_&&d(_),k=Object.prototype,O=k.isPrototypeOf,T=f("toStringTag"),S=g("TYPED_ARRAY_TAG"),C=!(!a.ArrayBuffer||!y),j=C&&!!m&&"Opera"!==l(a.opera),E=!1,I={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D=function(e){var t=l(e);return"DataView"===t||o(I,t)},P=function(e){return s(e)&&o(I,l(e))},A=function(e){if(P(e))return e;throw TypeError("Target is not a typed array")},x=function(e){if(m){if(O.call(w,e))return e}else for(var t in I)if(o(I,n)){var i=a[t];if(i&&(e===i||O.call(i,e)))return e}throw TypeError("Target is not a typed array constructor")},Y=function(e,t,i){if(r){if(i)for(var n in I){var s=a[n];s&&o(s.prototype,e)&&delete s.prototype[e]}M[e]&&!i||u(M,e,i?t:j&&_[e]||t)}},N=function(e,t,i){var n,s;if(r){if(m){if(i)for(n in I)s=a[n],s&&o(s,e)&&delete s[e];if(w[e]&&!i)return;try{return u(w,e,i?t:j&&v[e]||t)}catch(l){}}for(n in I)s=a[n],!s||s[e]&&!i||u(s,e,t)}};for(n in I)a[n]||(j=!1);if((!j||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},j))for(n in I)a[n]&&m(a[n],w);if((!j||!M||M===k)&&(M=w.prototype,j))for(n in I)a[n]&&m(a[n].prototype,M);if(j&&d(L)!==M&&m(L,M),r&&!o(M,T))for(n in E=!0,h(M,T,{get:function(){return s(this)?this[S]:void 0}}),I)a[n]&&c(a[n],S,n);C&&m&&d(p)!==k&&m(p,k),e.exports={NATIVE_ARRAY_BUFFER:C,NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:E&&S,aTypedArray:A,aTypedArrayConstructor:x,exportTypedArrayMethod:Y,exportTypedArrayStaticMethod:N,isView:D,isTypedArray:P,TypedArray:w,TypedArrayPrototype:M}},function(e,t,i){var n=i(120),r=i(124),a=i(63),s=i(41),o=i(149),l=[].push,c=function(e){var t=1==e,i=2==e,c=3==e,u=4==e,h=6==e,d=5==e||h;return function(m,f,g,y){for(var p,v,_=a(m),b=r(_),L=n(f,g,3),w=s(b.length),M=0,k=y||o,O=t?k(m,w):i?k(m,0):void 0;w>M;M++)if((d||M in b)&&(p=b[M],v=L(p,M,_),e))if(t)O[M]=v;else if(v)switch(e){case 3:return!0;case 5:return p;case 6:return M;case 2:l.call(O,p)}else if(u)return!1;return h?-1:c||u?u:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,i){var n=i(45),r=i(196),a=i(74),s=i(200),o=i(201),l=i(590),c=r("wks"),u=n.Symbol,h=l?u:u&&u.withoutSetter||s;e.exports=function(e){return a(c,e)||(o&&a(u,e)?c[e]=u[e]:c[e]=h("Symbol."+e)),c[e]}},function(e,t,i){"use strict";var n=i(235),r=i(632),a=Object.prototype.toString;function s(e){return"[object Array]"===a.call(e)}function o(e){return"[object ArrayBuffer]"===a.call(e)}function l(e){return"undefined"!==typeof FormData&&e instanceof FormData}function c(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function u(e){return"string"===typeof e}function h(e){return"number"===typeof e}function d(e){return"undefined"===typeof e}function m(e){return null!==e&&"object"===typeof e}function f(e){return"[object Date]"===a.call(e)}function g(e){return"[object File]"===a.call(e)}function y(e){return"[object Blob]"===a.call(e)}function p(e){return"[object Function]"===a.call(e)}function v(e){return m(e)&&p(e.pipe)}function _(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function b(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function L(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function M(){var e={};function t(t,i){"object"===typeof e[i]&&"object"===typeof t?e[i]=M(e[i],t):e[i]=t}for(var i=0,n=arguments.length;i<n;i++)w(arguments[i],t);return e}function k(e,t,i){return w(t,(function(t,r){e[r]=i&&"function"===typeof t?n(t,i):t})),e}e.exports={isArray:s,isArrayBuffer:o,isBuffer:r,isFormData:l,isArrayBufferView:c,isString:u,isNumber:h,isObject:m,isUndefined:d,isDate:f,isFile:g,isBlob:y,isFunction:p,isStream:v,isURLSearchParams:_,isStandardBrowserEnv:L,forEach:w,merge:M,extend:k,trim:b}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,i){var n=i(42),r=i(39),a=i(90);e.exports=n?function(e,t,i){return r.f(e,t,a(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var n=i(31),r=i(61),a=i(44),s=i(146),o=i(188),l=i(75),c=l.get,u=l.enforce,h=String(String).split("String");(e.exports=function(e,t,i,o){var l=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,d=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||a(i,"name")||r(i,"name",t),u(i).source=h.join("string"==typeof t?t:"")),e!==n?(l?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=i:r(e,t,i)):c?e[t]=i:s(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||o(this)}))},function(e,t,i){var n=i(60);e.exports=function(e){return Object(n(e))}},function(e,t,i){"use strict";var n=i(21),r=i(57).findIndex,a=i(113),s="findIndex",o=!0;s in[]&&Array(1)[s]((function(){o=!1})),n({target:"Array",proto:!0,forced:o},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},,function(e,t,i){"use strict";var n=i(21),r=i(124),a=i(70),s=i(96),o=[].join,l=r!=Object,c=s("join",",");n({target:"Array",proto:!0,forced:l||c},{join:function(e){return o.call(a(this),void 0===e?",":e)}})},function(e,t){!function(t){"use strict";var i,n=Object.prototype,r=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag",c="object"===typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{u=t.regeneratorRuntime=c?e.exports:{},u.wrap=b;var h="suspendedStart",d="suspendedYield",m="executing",f="completed",g={},y={};y[s]=function(){return this};var p=Object.getPrototypeOf,v=p&&p(p(D([])));v&&v!==n&&r.call(v,s)&&(y=v);var _=k.prototype=w.prototype=Object.create(y);M.prototype=_.constructor=k,k.constructor=M,k[l]=M.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===M||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(_),e},u.awrap=function(e){return{__await:e}},O(T.prototype),T.prototype[o]=function(){return this},u.AsyncIterator=T,u.async=function(e,t,i,n){var r=new T(b(e,t,i,n));return u.isGeneratorFunction(t)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},O(_),_[l]="Generator",_[s]=function(){return this},_.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){while(t.length){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},u.values=D,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=i)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=i),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],o=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),E(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;E(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=i),g}}}function b(e,t,i,n){var r=t&&t.prototype instanceof w?t:w,a=Object.create(r.prototype),s=new I(n||[]);return a._invoke=S(e,i,s),a}function L(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(n){return{type:"throw",arg:n}}}function w(){}function M(){}function k(){}function O(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function T(e){function t(i,n,a,s){var o=L(e[i],e,n);if("throw"!==o.type){var l=o.arg,c=l.value;return c&&"object"===typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):Promise.resolve(c).then((function(e){l.value=e,a(l)}),s)}s(o.arg)}var i;function n(e,n){function r(){return new Promise((function(i,r){t(e,n,i,r)}))}return i=i?i.then(r,r):r()}this._invoke=n}function S(e,t,i){var n=h;return function(r,a){if(n===m)throw new Error("Generator is already running");if(n===f){if("throw"===r)throw a;return P()}i.method=r,i.arg=a;while(1){var s=i.delegate;if(s){var o=C(s,i);if(o){if(o===g)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===h)throw n=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=m;var l=L(e,t,i);if("normal"===l.type){if(n=i.done?f:d,l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n=f,i.method="throw",i.arg=l.arg)}}}function C(e,t){var n=e.iterator[t.method];if(n===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=i,C(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=L(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,g;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=i),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function D(e){if(e){var t=e[s];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){while(++n<e.length)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=i,t.done=!0,t};return a.next=a}}return{next:P}}function P(){return{value:i,done:!0}}}(function(){return this}()||Function("return this")())},,function(e,t,i){"use strict";var n=i(21),r=i(57).every,a=i(96);n({target:"Array",proto:!0,forced:a("every")},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){var n=i(124),r=i(60);e.exports=function(e){return n(r(e))}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,i){var n=i(82);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){var n,r,a,s=i(584),o=i(31),l=i(43),c=i(61),u=i(44),h=i(125),d=i(107),m=o.WeakMap,f=function(e){return a(e)?r(e):n(e,{})},g=function(e){return function(t){var i;if(!l(t)||(i=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}};if(s){var y=new m,p=y.get,v=y.has,_=y.set;n=function(e,t){return _.call(y,e,t),t},r=function(e){return p.call(y,e)||{}},a=function(e){return v.call(y,e)}}else{var b=h("state");d[b]=!0,n=function(e,t){return c(e,b,t),t},r=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}e.exports={set:n,get:r,has:a,enforce:f,getterFor:g}},,function(e,t,i){"use strict";function n(e,t,i){void 0===i&&(i={});var n={type:"Feature"};return(0===i.id||i.id)&&(n.id=i.id),i.bbox&&(n.bbox=i.bbox),n.properties=t||{},n.geometry=e,n}function r(e,t,i){switch(void 0===i&&(i={}),e){case"Point":return a(t).geometry;case"LineString":return c(t).geometry;case"Polygon":return o(t).geometry;case"MultiPoint":return m(t).geometry;case"MultiLineString":return d(t).geometry;case"MultiPolygon":return f(t).geometry;default:throw new Error(e+" is invalid")}}function a(e,t,i){void 0===i&&(i={});var r={type:"Point",coordinates:e};return n(r,t,i)}function s(e,t,i){return void 0===i&&(i={}),h(e.map((function(e){return a(e,t)})),i)}function o(e,t,i){void 0===i&&(i={});for(var r=0,a=e;r<a.length;r++){var s=a[r];if(s.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var o=0;o<s[s.length-1].length;o++)if(s[s.length-1][o]!==s[0][o])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:e};return n(l,t,i)}function l(e,t,i){return void 0===i&&(i={}),h(e.map((function(e){return o(e,t)})),i)}function c(e,t,i){if(void 0===i&&(i={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var r={type:"LineString",coordinates:e};return n(r,t,i)}function u(e,t,i){return void 0===i&&(i={}),h(e.map((function(e){return c(e,t)})),i)}function h(e,t){void 0===t&&(t={});var i={type:"FeatureCollection"};return t.id&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.features=e,i}function d(e,t,i){void 0===i&&(i={});var r={type:"MultiLineString",coordinates:e};return n(r,t,i)}function m(e,t,i){void 0===i&&(i={});var r={type:"MultiPoint",coordinates:e};return n(r,t,i)}function f(e,t,i){void 0===i&&(i={});var r={type:"MultiPolygon",coordinates:e};return n(r,t,i)}function g(e,t,i){void 0===i&&(i={});var r={type:"GeometryCollection",geometries:e};return n(r,t,i)}function y(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var i=Math.pow(10,t||0);return Math.round(e*i)/i}function p(e,i){void 0===i&&(i="kilometers");var n=t.factors[i];if(!n)throw new Error(i+" units is invalid");return e*n}function v(e,i){void 0===i&&(i="kilometers");var n=t.factors[i];if(!n)throw new Error(i+" units is invalid");return e/n}function _(e,t){return L(v(e,t))}function b(e){var t=e%360;return t<0&&(t+=360),t}function L(e){var t=e%(2*Math.PI);return 180*t/Math.PI}function w(e){var t=e%360;return t*Math.PI/180}function M(e,t,i){if(void 0===t&&(t="kilometers"),void 0===i&&(i="kilometers"),!(e>=0))throw new Error("length must be a positive number");return p(v(e,t),i)}function k(e,i,n){if(void 0===i&&(i="meters"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("area must be a positive number");var r=t.areaFactors[i];if(!r)throw new Error("invalid original units");var a=t.areaFactors[n];if(!a)throw new Error("invalid final units");return e/r*a}function O(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)&&!/^\s*$/.test(e)}function T(e){return!!e&&e.constructor===Object}function S(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!O(e))throw new Error("bbox must only contain numbers")}))}function C(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}function j(){throw new Error("method has been renamed to `radiansToDegrees`")}function E(){throw new Error("method has been renamed to `degreesToRadians`")}function I(){throw new Error("method has been renamed to `lengthToDegrees`")}function D(){throw new Error("method has been renamed to `lengthToRadians`")}function P(){throw new Error("method has been renamed to `radiansToLength`")}function A(){throw new Error("method has been renamed to `bearingToAzimuth`")}function x(){throw new Error("method has been renamed to `convertLength`")}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:t.earthRadius/1.0936},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1/1.0936},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=n,t.geometry=r,t.point=a,t.points=s,t.polygon=o,t.polygons=l,t.lineString=c,t.lineStrings=u,t.featureCollection=h,t.multiLineString=d,t.multiPoint=m,t.multiPolygon=f,t.geometryCollection=g,t.round=y,t.radiansToLength=p,t.lengthToRadians=v,t.lengthToDegrees=_,t.bearingToAzimuth=b,t.radiansToDegrees=L,t.degreesToRadians=w,t.convertLength=M,t.convertArea=k,t.isNumber=O,t.isObject=T,t.validateBBox=S,t.validateId=C,t.radians2degrees=j,t.degrees2radians=E,t.distanceToDegrees=I,t.distanceToRadians=D,t.radiansToDistance=P,t.bearingToAngle=A,t.convertDistance=x},,,function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var n=i(72);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,i){var n=i(21),r=i(624);n({target:"Number",stat:!0},{isFinite:r})},function(e,t,i){var n=i(21),r=i(234),a=i(113);n({target:"Array",proto:!0},{fill:r}),a("fill")},function(e,t,i){"use strict";var n=i(21),r=i(71),a=i(649),s=i(241),o=i(28),l=1..toFixed,c=Math.floor,u=function(e,t,i){return 0===t?i:t%2===1?u(e,t-1,i*e):u(e*e,t/2,i)},h=function(e){var t=0,i=e;while(i>=4096)t+=12,i/=4096;while(i>=2)t+=1,i/=2;return t},d=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){l.call({})}));n({target:"Number",proto:!0,forced:d},{toFixed:function(e){var t,i,n,o,l=a(this),d=r(e),m=[0,0,0,0,0,0],f="",g="0",y=function(e,t){var i=-1,n=t;while(++i<6)n+=e*m[i],m[i]=n%1e7,n=c(n/1e7)},p=function(e){var t=6,i=0;while(--t>=0)i+=m[t],m[t]=c(i/e),i=i%e*1e7},v=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==m[e]){var i=String(m[e]);t=""===t?i:t+s.call("0",7-i.length)+i}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(f="-",l=-l),l>1e-21)if(t=h(l*u(2,69,1))-69,i=t<0?l*u(2,-t,1):l/u(2,t,1),i*=4503599627370496,t=52-t,t>0){y(0,i),n=d;while(n>=7)y(1e7,0),n-=7;y(u(10,n,1),0),n=t-1;while(n>=23)p(1<<23),n-=23;p(1<<n),y(1,1),p(2),g=v()}else y(0,i),y(1<<-t,0),g=v()+s.call("0",d);return d>0?(o=g.length,g=f+(o<=d?"0."+s.call("0",d-o)+g:g.slice(0,o-d)+"."+g.slice(o-d))):g=f+g,g}})},,function(e,t,i){"use strict";var n=i(130),r=i(40),a=i(41),s=i(60),o=i(165),l=i(131);n("match",1,(function(e,t,i){return[function(t){var i=s(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,i):new RegExp(t)[e](String(i))},function(e){var n=i(t,e,this);if(n.done)return n.value;var s=r(e),c=String(this);if(!s.global)return l(s,c);var u=s.unicode;s.lastIndex=0;var h,d=[],m=0;while(null!==(h=l(s,c))){var f=String(h[0]);d[m]=f,""===f&&(s.lastIndex=o(c,a(s.lastIndex),u)),m++}return 0===m?null:d}]}))},function(e,t,i){"use strict";var n=i(21),r=i(57).some,a=i(96);n({target:"Array",proto:!0,forced:a("some")},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";var n,r=i(724),a=r.template;function s(e,t,i){return a(e,t,i)}s._=r,e.exports=s,n=function(){return s}.call(t,i,t,e),void 0===n||(e.exports=n)},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,i){var n=i(191),r=i(148),a=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},function(e,t,i){"use strict";var n=i(130),r=i(40),a=i(60),s=i(587),o=i(131);n("search",1,(function(e,t,i){return[function(t){var i=a(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,i):new RegExp(t)[e](String(i))},function(e){var n=i(t,e,this);if(n.done)return n.value;var a=r(e),l=String(this),c=a.lastIndex;s(c,0)||(a.lastIndex=0);var u=o(a,l);return s(a.lastIndex,c)||(a.lastIndex=c),null===u?-1:u.index}]}))},function(e,t,i){var n=i(81),r=i(94),a=i(153);e.exports=n?function(e,t,i){return r.f(e,t,a(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var n=i(81),r=i(198),a=i(73),s=i(199),o=Object.defineProperty;t.f=n?o:function(e,t,i){if(a(e),t=s(t,!0),a(i),r)try{return o(e,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var n=i(594),r=i(45),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(r[e]):n[e]&&n[e][t]||r[e]&&r[e][t]}},function(e,t,i){"use strict";var n=i(28);e.exports=function(e,t){var i=[][e];return!i||!n((function(){i.call(null,t||function(){throw 1},1)}))}},function(e,t,i){var n,r=i(40),a=i(372),s=i(148),o=i(107),l=i(623),c=i(187),u=i(125),h=">",d="<",m="prototype",f="script",g=u("IE_PROTO"),y=function(){},p=function(e){return d+f+h+e+d+"/"+f+h},v=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e,t=c("iframe"),i="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(i),e=t.contentWindow.document,e.open(),e.write(p("document.F=Object")),e.close(),e.F},b=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}b=n?v(n):_();var e=s.length;while(e--)delete b[m][s[e]];return b()};o[g]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(y[m]=r(e),i=new y,y[m]=null,i[g]=e):i=b(),void 0===t?i:a(i,t)}},function(e,t,i){var n=i(42),r=i(138),a=i(90),s=i(70),o=i(99),l=i(44),c=i(186),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=s(e),t=o(t,!0),c)try{return u(e,t)}catch(i){}if(l(e,t))return a(!r.f.call(e,t),e[t])}},function(e,t,i){var n=i(43);e.exports=function(e,t){if(!n(e))return e;var i,r;if(t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;if("function"==typeof(i=e.valueOf)&&!n(r=i.call(e)))return r;if(!t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=!1},function(e,t,i){var n=i(177),r=i(31),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(r[e]):n[e]&&n[e][t]||r[e]&&r[e][t]}},function(e,t,i){var n=i(71),r=Math.max,a=Math.min;e.exports=function(e,t){var i=n(e);return i<0?r(i+t,0):a(i,t)}},function(e,t,i){var n=i(39).f,r=i(44),a=i(32),s=a("toStringTag");e.exports=function(e,t,i){e&&!r(e=i?e:e.prototype,s)&&n(e,s,{configurable:!0,value:t})}},function(e,t,i){"use strict";var n=i(374),r=i(377);e.exports=n("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},function(e,t,i){var n=i(21),r=i(226).entries;n({target:"Object",stat:!0},{entries:function(e){return r(e)}})},,function(e,t){e.exports={}},function(e,t,i){var n=i(28),r=i(32),a=i(193),s=r("species");e.exports=function(e){return a>=51||!n((function(){var t=[],i=t.constructor={};return i[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t){e.exports=!1},function(e,t){e.exports={}},function(e,t,i){var n=i(45),r=i(93),a=i(74),s=i(151),o=i(158),l=i(157),c=l.get,u=l.enforce,h=String(String).split("String");(e.exports=function(e,t,i,o){var l=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,d=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||a(i,"name")||r(i,"name",t),u(i).source=h.join("string"==typeof t?t:"")),e!==n?(l?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=i:r(e,t,i)):c?e[t]=i:s(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||o(this)}))},function(e,t,i){var n=i(32),r=i(97),a=i(39),s=n("unscopables"),o=Array.prototype;void 0==o[s]&&a.f(o,s,{configurable:!0,value:r(null)}),e.exports=function(e){o[s][e]=!0}},function(e,t,i){"use strict";var n=i(374),r=i(377);e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},function(e,t){e.exports={}},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(118);function r(e,t){if(e){if("string"===typeof e)return Object(n["a"])(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Object(n["a"])(e,t):void 0}}},function(e,t,i){var n=i(663),r=i(664);function a(e,t,i){var a=t&&i||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||n)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var o=0;o<16;++o)t[a+o]=s[o];return t||r(s)}e.exports=a},function(e,t,i){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}i.d(t,"a",(function(){return n}))},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++i+n).toString(36)}},function(e,t,i){var n=i(179);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,i){var n=i(191),r=i(148);e.exports=Object.keys||function(e){return n(e,r)}},function(e,t,i){var n=i(42),r=i(31),a=i(127),s=i(141),o=i(39).f,l=i(91).f,c=i(164),u=i(139),h=i(180),d=i(62),m=i(28),f=i(75).set,g=i(182),y=i(32),p=y("match"),v=r.RegExp,_=v.prototype,b=/a/g,L=/a/g,w=new v(b)!==b,M=h.UNSUPPORTED_Y,k=n&&a("RegExp",!w||M||m((function(){return L[p]=!1,v(b)!=b||v(L)==L||"/a/i"!=v(b,"i")})));if(k){var O=function(e,t){var i,n=this instanceof O,r=c(e),a=void 0===t;if(!n&&r&&e.constructor===O&&a)return e;w?r&&!a&&(e=e.source):e instanceof O&&(a&&(t=u.call(e)),e=e.source),M&&(i=!!t&&t.indexOf("y")>-1,i&&(t=t.replace(/y/g,"")));var o=s(w?new v(e,t):v(e,t),n?this:_,O);return M&&i&&f(o,{sticky:i}),o},T=function(e){e in O||o(O,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},S=l(v),C=0;while(S.length>C)T(S[C++]);_.constructor=O,O.prototype=_,d(r,"RegExp",O)}g("RegExp")},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}e.exports=i},function(e,t,i){var n=i(28),r=i(80),a="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a.call(e,""):Object(e)}:Object},function(e,t,i){var n=i(147),r=i(119),a=n("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t,i){var n=i(70),r=i(41),a=i(102),s=function(e){return function(t,i,s){var o,l=n(t),c=r(l.length),u=a(s,c);if(e&&i!=i){while(c>u)if(o=l[u++],o!=o)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},function(e,t,i){var n=i(28),r=/#|\.prototype\./,a=function(e,t){var i=o[s(e)];return i==c||i!=l&&("function"==typeof t?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,i){var n=i(80);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,i){"use strict";var n=i(139),r=i(180),a=RegExp.prototype.exec,s=String.prototype.replace,o=a,l=function(){var e=/a/,t=/b*/g;return a.call(e,"a"),a.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=r.UNSUPPORTED_Y||r.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],h=l||u||c;h&&(o=function(e){var t,i,r,o,h=this,d=c&&h.sticky,m=n.call(h),f=h.source,g=0,y=e;return d&&(m=m.replace("y",""),-1===m.indexOf("g")&&(m+="g"),y=String(e).slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==e[h.lastIndex-1])&&(f="(?: "+f+")",y=" "+y,g++),i=new RegExp("^(?:"+f+")",m)),u&&(i=new RegExp("^"+f+"$(?!\\s)",m)),l&&(t=h.lastIndex),r=a.call(d?i:h,y),d?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=h.lastIndex,h.lastIndex+=r[0].length):h.lastIndex=0:l&&r&&(h.lastIndex=h.global?r.index+r[0].length:t),u&&r&&r.length>1&&s.call(r[0],i,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=o},function(e,t,i){"use strict";var n=i(62),r=i(28),a=i(32),s=i(129),o=i(61),l=a("species"),c=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),h=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}));e.exports=function(e,t,i,d){var m=a(e),f=!r((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),g=f&&!r((function(){var t=!1,i=/a/;return"split"===e&&(i={},i.constructor={},i.constructor[l]=function(){return i},i.flags="",i[m]=/./[m]),i.exec=function(){return t=!0,null},i[m](""),!t}));if(!f||!g||"replace"===e&&(!c||!u)||"split"===e&&!h){var y=/./[m],p=i(m,""[e],(function(e,t,i,n,r){return t.exec===s?f&&!r?{done:!0,value:y.call(t,i,n)}:{done:!0,value:e.call(i,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:u}),v=p[0],_=p[1];n(String.prototype,e,v),n(RegExp.prototype,m,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}d&&o(RegExp.prototype[m],"sham",!0)}},function(e,t,i){var n=i(80),r=i(129);e.exports=function(e,t){var i=e.exec;if("function"===typeof i){var a=i.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,i){var n=i(194),r=i(195);e.exports=function(e){return n(r(e))}},function(e,t,i){var n=i(45),r=i(159).f,a=i(93),s=i(112),o=i(151),l=i(597),c=i(210);e.exports=function(e,t){var i,u,h,d,m,f,g=e.target,y=e.global,p=e.stat;if(u=y?n:p?n[g]||o(g,{}):(n[g]||{}).prototype,u)for(h in t){if(m=t[h],e.noTargetGet?(f=r(u,h),d=f&&f.value):d=u[h],i=c(y?h:g+(p?".":"#")+h,e.forced),!i&&void 0!==d){if(typeof m===typeof d)continue;l(m,d)}(e.sham||d&&d.sham)&&a(m,"sham",!0),s(u,h,m,e)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){e.exports=function(e,t,i){if(!(e instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return e}},,function(e,t,i){"use strict";i(22),i(33),i(12),i(8);var n=i(27),r=i(1),a=i(0),s=i(653),o=i.n(s),l=i(655),c=i.n(l),u=i(54),h={LOADING:-1,INACTIVE:0,ACTIVE:1},d=function(){function e(t){Object(r["a"])(this,e),this.currentImage=null,this.currentView=null;var i=new ol.source.Vector({features:t.footPrintFeatures});this.footPrintsLayer=new ol.layer.Vector({source:i}),this.rTree=o()(),this.rTree.load(t.rTreeItems),this.olMap=null,this.state=h.INACTIVE,this.images=t.images||{},this.projection=t.projection,this.terrainProvider=t.terrainProvider||null,this.direction=t.direction}return Object(a["a"])(e,null,[{key:"STATE",get:function(){return h}}]),Object(a["a"])(e,[{key:"activate",value:function(e,t,i){var n=this;return this.olMap&&this.olMap!==e&&this.deactivate(),this.state===h.INACTIVE?(this.state=h.LOADING,this.olMap=e,this.setView(t,i).then((function(){n.state=h.ACTIVE}))):Promise.resolve(this.state)}},{key:"deactivate",value:function(){this.currentView&&(this.olMap.removeLayer(this.currentView.layer),this.currentView=null),this.currentImage=null,this.state=h.INACTIVE}},{key:"setView",value:function(e,t){var i=this,n=this.getImageNameForCoordinates(e);return null!==n?this.setImageOnMap(n).then((function(){var e=i.currentView.view;e.setZoom(t)})):Promise.reject(new Error("could not find an image in this direction"))}},{key:"addOptions",value:function(e){this.footPrintsLayer.getSource().addFeatures(e.footPrintFeatures),this.rTree.load(e.rTreeItems),Object.assign(this.images,e.images)}},{key:"postRenderHandler",value:function(t){var i=this;if(this.state===h.ACTIVE){var n=this._pullCoordinateToImageCenter(t.slice()),r=this.currentImage.transformImage2RealWorld(n),a=this.getImageNameForCoordinates(r);null!==a&&a!==this.currentImage.name&&(this.state=h.LOADING,Object(u["e"])(this.currentImage,t).then((function(e){return i.setImageOnMap(a,e.coords)})).catch((function(){console.warn("an error occured while setting image ".concat(a," onto the map")),i.state===e.STATE.LOADING&&(i.state=h.ACTIVE)})))}}},{key:"_pullCoordinateToImageCenter",value:function(e){if(this.currentImage){var t=[this.currentImage.size[0]/2,this.currentImage.size[1]/2];e[0]<t[0]?e[0]+=50:e[0]-=50,e[1]<t[1]?e[1]+=50:e[1]-=50}return e}},{key:"setImageOnMap",value:function(t,i){var r=this;function a(e,t){return e<0?0:e>t?t:e}if(this.state===e.STATE.INACTIVE)return Promise.resolve();this.state=e.STATE.LOADING;var s=Promise.resolve();if(!this.currentImage||t!==this.currentImage.name){var o=this.images[t];s=o.calculateImageAverageHeight().then((function(){if(r.state!==e.STATE.INACTIVE){r.currentImage=o;var t=r.currentImage.view,i=!r.currentView||r.currentView&&r.currentView.id!==t.id;r.currentView&&r.currentView.id!==t.id&&r.olMap.removeLayer(r.currentView.layer),r.currentView=t,r.currentView.setImageName(r.currentImage.name),r.olMap.getView()&&r.olMap.getView().getResolution()&&r.currentView.view.setResolution(r.olMap.getView().getResolution()),r.olMap.setView(r.currentView.view),i&&r.olMap.addLayer(r.currentView.layer)}}))}return s.then((function(){if(r.state!==e.STATE.INACTIVE){var t=Object(n["a"])(r.currentImage.size,2),s=t[0],o=t[1],l=[s/2,o/2];if(i){var c=r.currentImage.transformRealWorld2Image(i,i[2]);c[0]=a(c[0],s),c[1]=a(c[1],o),l=c}r.currentView.view.setCenter(l),r.state=e.STATE.ACTIVE}}))}},{key:"getImageIdInDirection",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.PI/4;if(!this.currentImage)return null;var n=this.currentImage.centerPointOnGround,r=c()(this.rTree,n[0],n[1],20),a=r.find((function(r){if(r.name!==t.currentImage.name){var a=Math.atan2(r.minY-n[1],r.minX-n[0]);a<=0&&(a+=2*Math.PI);var s=a-e;if(s>Math.PI?s-=2*Math.PI:s<-Math.PI&&(s+=2*Math.PI),s<=i&&s>=-i)return r}return!1}));return a?a.name:null}},{key:"getImageNameForCoordinates",value:function(e){var t=c()(this.rTree,e[0],e[1],1);return t.length?t[0].name:null}}]),e}();t["a"]=d},function(e,t,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!n.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},function(e,t,i){"use strict";var n=i(40);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,i){"use strict";var n=i(99),r=i(39),a=i(90);e.exports=function(e,t,i){var s=n(t);s in e?r.f(e,s,a(0,i)):e[s]=i}},function(e,t,i){var n=i(43),r=i(161);e.exports=function(e,t,i){var a,s;return r&&"function"==typeof(a=t.constructor)&&a!==i&&n(s=a.prototype)&&s!==i.prototype&&r(e,s),e}},function(e,t,i){var n=i(40),r=i(179),a=i(32),s=a("species");e.exports=function(e,t){var i,a=n(e).constructor;return void 0===a||void 0==(i=n(a)[s])?t:r(i)}},function(e,t,i){var n=i(167),r=i(80),a=i(32),s=a("toStringTag"),o="Arguments"==r(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(i){}};e.exports=n?r:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=l(t=Object(e),s))?i:o?r(t):"Object"==(n=r(t))&&"function"==typeof t.callee?"Arguments":n}},,,function(e,t,i){var n=i(31),r=i(61);e.exports=function(e,t){try{r(n,e,t)}catch(i){n[e]=t}return t}},function(e,t,i){var n=i(100),r=i(189);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.1",mode:n?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,i){var n=i(43),r=i(128),a=i(32),s=a("species");e.exports=function(e,t){var i;return r(e)&&(i=e.constructor,"function"!=typeof i||i!==Array&&!r(i.prototype)?n(i)&&(i=i[s],null===i&&(i=void 0)):i=void 0),new(void 0===i?Array:i)(0===t?0:t)}},function(e,t,i){var n=i(28);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,i){var n=i(45),r=i(93);e.exports=function(e,t){try{r(n,e,t)}catch(i){n[e]=t}return t}},function(e,t,i){var n=i(45),r=i(82),a=n.document,s=r(a)&&r(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,i){var n=i(196),r=i(200),a=n("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t,i){var n,r,a,s=i(595),o=i(45),l=i(82),c=i(93),u=i(74),h=i(156),d=i(154),m=o.WeakMap,f=function(e){return a(e)?r(e):n(e,{})},g=function(e){return function(t){var i;if(!l(t)||(i=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}};if(s){var y=new m,p=y.get,v=y.has,_=y.set;n=function(e,t){return _.call(y,e,t),t},r=function(e){return p.call(y,e)||{}},a=function(e){return v.call(y,e)}}else{var b=h("state");d[b]=!0,n=function(e,t){return c(e,b,t),t},r=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}e.exports={set:n,get:r,has:a,enforce:f,getterFor:g}},function(e,t,i){var n=i(197),r=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return r.call(e)}),e.exports=n.inspectSource},function(e,t,i){var n=i(81),r=i(208),a=i(153),s=i(132),o=i(199),l=i(74),c=i(198),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=s(e),t=o(t,!0),c)try{return u(e,t)}catch(i){}if(l(e,t))return a(!r.f.call(e,t),e[t])}},function(e,t,i){var n=i(94).f,r=i(74),a=i(58),s=a("toStringTag");e.exports=function(e,t,i){e&&!r(e=i?e:e.prototype,s)&&n(e,s,{configurable:!0,value:t})}},function(e,t,i){var n=i(40),r=i(622);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(i,[]),t=i instanceof Array}catch(a){}return function(i,a){return n(i),r(a),t?e.call(i,a):i.__proto__=a,i}}():void 0)},function(e,t,i){var n=i(60),r=i(163),a="["+r+"]",s=RegExp("^"+a+a+"*"),o=RegExp(a+a+"*$"),l=function(e){return function(t){var i=String(n(t));return 1&e&&(i=i.replace(s,"")),2&e&&(i=i.replace(o,"")),i}};e.exports={start:l(1),end:l(2),trim:l(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,i){var n=i(43),r=i(80),a=i(32),s=a("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==r(e))}},function(e,t,i){"use strict";var n=i(181).charAt;e.exports=function(e,t,i){return t+(i?n(e,t).length:1)}},function(e,t,i){var n=i(44),r=i(63),a=i(125),s=i(373),o=a("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=r(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,i){var n=i(32),r=n("toStringTag"),a={};a[r]="z",e.exports="[object z]"===String(a)},function(e,t,i){var n=i(21);n({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,i){var n=i(21),r=i(626);n({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,i){var n=i(143),r=i(115),a=i(32),s=a("iterator");e.exports=function(e){if(void 0!=e)return e[s]||e["@@iterator"]||r[n(e)]}},function(e,t,i){"use strict";var n=i(21),r=i(378),a=i(166),s=i(161),o=i(103),l=i(61),c=i(62),u=i(32),h=i(100),d=i(115),m=i(231),f=m.IteratorPrototype,g=m.BUGGY_SAFARI_ITERATORS,y=u("iterator"),p="keys",v="values",_="entries",b=function(){return this};e.exports=function(e,t,i,u,m,L,w){r(i,t,u);var M,k,O,T=function(e){if(e===m&&I)return I;if(!g&&e in j)return j[e];switch(e){case p:return function(){return new i(this,e)};case v:return function(){return new i(this,e)};case _:return function(){return new i(this,e)}}return function(){return new i(this)}},S=t+" Iterator",C=!1,j=e.prototype,E=j[y]||j["@@iterator"]||m&&j[m],I=!g&&E||T(m),D="Array"==t&&j.entries||E;if(D&&(M=a(D.call(new e)),f!==Object.prototype&&M.next&&(h||a(M)===f||(s?s(M,f):"function"!=typeof M[y]&&l(M,y,b)),o(M,S,!0,!0),h&&(d[S]=b))),m==v&&E&&E.name!==v&&(C=!0,I=function(){return E.call(this)}),h&&!w||j[y]===I||l(j,y,I),d[t]=I,m)if(k={values:T(v),keys:L?I:T(p),entries:T(_)},w)for(O in k)(g||C||!(O in j))&&c(j,O,k[O]);else n({target:t,proto:!0,forced:g||C},k);return k}},function(e,t,i){"use strict";(function(t){var n=i(59),r=i(635),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function o(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t)&&(e=i(237)),e}var l={adapter:o(),transformRequest:[function(e,t){return r(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(a)})),e.exports=l}).call(this,i(236))},function(e,t,i){"use strict";function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(37),r=i(19);function a(e,t){return!t||"object"!==Object(n["a"])(t)&&"function"!==typeof t?Object(r["a"])(e):t}},,function(e,t,i){var n=i(31);e.exports=n},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,i){"use strict";var n=i(28);function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,i){var n=i(71),r=i(60),a=function(e){return function(t,i){var a,s,o=String(r(t)),l=n(i),c=o.length;return l<0||l>=c?e?"":void 0:(a=o.charCodeAt(l),a<55296||a>56319||l+1===c||(s=o.charCodeAt(l+1))<56320||s>57343?e?o.charAt(l):a:e?o.slice(l,l+2):s-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},function(e,t,i){"use strict";var n=i(101),r=i(39),a=i(32),s=i(42),o=a("species");e.exports=function(e){var t=n(e),i=r.f;s&&t&&!t[o]&&i(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,i){"use strict";var n=i(21),r=i(630).left,a=i(96);n({target:"Array",proto:!0,forced:a("reduce")},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";i(33),i(12),i(8);var n=i(1),r=i(0),a=i(117),s=i.n(a),o=i(54),l=function(){function e(t){Object(n["a"])(this,e),this.id=s()(),this.name=t.name,this.meta=t.meta,this.viewDirection=t.viewDirection,this.viewDirectionAngle=null!=t.viewDirectionAngle&&this.meta.version>=3.4&&this.meta.buildNumber>=18?t.viewDirectionAngle:null,this.camera=t.camera,this.groundCoordinates=t.groundCoordinates,this.centerPointOnGround=t.centerPointOnGround,this.pToRealworld=t.pToRealworld||null,this.pToImage=t.pToImage||null,this.projectionCenter=t.projectionCenter||null,this.projection=t.projection,this.averageHeight=null,this.terrainProvider=t.terrainProvider||null}return Object(r["a"])(e,[{key:"getAverageHeight",value:function(){return null!=this.averageHeight?this.averageHeight:0}},{key:"transformImage2RealWorld",value:function(e,t){var i=e;if(!this.camera)return this.transformNoCamera(i,!0,t);this.camera.hasRadial&&(i=this.camera.radialDistortionCoordinate(i,!0));var n=new Cesium.Cartesian3(i[0],this.size[1]-i[1],1),r=Cesium.Matrix3.multiplyByVector(this.pToRealworld,n,new Cesium.Cartesian3),a=t||this.getAverageHeight(),s=new Cesium.Cartesian3(this.centerPointOnGround[0],this.centerPointOnGround[1],a),o=Cesium.Cartesian3.subtract(this.projectionCenter,s,new Cesium.Cartesian3),l=-1*Cesium.Cartesian3.dot(Cesium.Cartesian3.UNIT_Z,o),c=Cesium.Cartesian3.dot(Cesium.Cartesian3.UNIT_Z,r),u=l/c,h=Cesium.Cartesian3.add(this.projectionCenter,Cesium.Cartesian3.multiplyByScalar(r,u,new Cesium.Cartesian3),new Cesium.Cartesian3);return[h.x,h.y,a]}},{key:"transformRealWorld2Image",value:function(e,t){if(!this.camera)return this.transformNoCamera(e,!1,t);var i=t||this.getAverageHeight(),n=new Cesium.Cartesian4(e[0],e[1],i,1),r=Cesium.Matrix4.multiplyByVector(this.pToImage,n,new Cesium.Cartesian4),a=[r.x/r.z,r.y/r.z],s=[a[0],this.size[1]-a[1]];return this.camera.radialDistortionCoordinate(s,!1)}},{key:"transformNoCamera",value:function(e,t,i){var n=[[0,0],[this.size[0],0],this.size,[0,this.size[1]]],r=Object(o["d"])(t?n:this.groundCoordinates,t?this.groundCoordinates:n,t,e,this.viewDirection),a=i||this.getAverageHeight();if(null===r||null==r.x||null==r.y){console.error("Real world coordinate could not be determined from footprint data, center will be returned");var s=[this.centerPointOnGround[0],this.centerPointOnGround[1]];return t&&s.push(a),s}var l=[r.x,r.y];return t&&l.push(a),l}},{key:"calculateImageAverageHeight",value:function(){var e=this;if(null===this.averageHeight){var t=(this.groundCoordinates[0][2]+this.groundCoordinates[1][2]+this.groundCoordinates[2][2]+this.groundCoordinates[3][2])/4;if(0===t&&this.terrainProvider)return Object(o["c"])(this.terrainProvider,[this.centerPointOnGround.slice()],this.projection).then((function(t){t[0]&&null!=t[0][2]&&(e.averageHeight=t[0][2])})).catch((function(){e.averageHeight=t}));this.averageHeight=t}return Promise.resolve()}},{key:"size",get:function(){return this.camera&&this.camera.size?this.camera.size:this.meta.size}},{key:"view",get:function(){return this.camera&&this.camera.view?this.camera.view:this.meta.getView(this.viewDirection)}}]),e}();t["a"]=l},,function(e,t,i){var n=i(42),r=i(28),a=i(187);e.exports=!n&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,i){var n=i(31),r=i(43),a=n.document,s=r(a)&&r(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},function(e,t,i){var n=i(189),r=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return r.call(e)}),e.exports=n.inspectSource},function(e,t,i){var n=i(31),r=i(146),a="__core-js_shared__",s=n[a]||r(a,{});e.exports=s},function(e,t,i){var n=i(44),r=i(585),a=i(98),s=i(39);e.exports=function(e,t){for(var i=r(t),o=s.f,l=a.f,c=0;c<i.length;c++){var u=i[c];n(e,u)||o(e,u,l(t,u))}}},function(e,t,i){var n=i(44),r=i(70),a=i(126).indexOf,s=i(107);e.exports=function(e,t){var i,o=r(e),l=0,c=[];for(i in o)!n(s,i)&&n(o,i)&&c.push(i);while(t.length>l)n(o,i=t[l++])&&(~a(c,i)||c.push(i));return c}},function(e,t,i){var n=i(150);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,i){var n,r,a=i(31),s=i(586),o=a.process,l=o&&o.versions,c=l&&l.v8;c?(n=c.split("."),r=n[0]+n[1]):s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(r=n[1]))),e.exports=r&&+r},function(e,t,i){var n=i(72),r=i(109),a="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a.call(e,""):Object(e)}:Object},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,i){var n=i(110),r=i(197);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,i){var n=i(45),r=i(151),a="__core-js_shared__",s=n[a]||r(a,{});e.exports=s},function(e,t,i){var n=i(81),r=i(72),a=i(152);e.exports=!n&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,i){var n=i(82);e.exports=function(e,t){if(!n(e))return e;var i,r;if(t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;if("function"==typeof(i=e.valueOf)&&!n(r=i.call(e)))return r;if(!t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++i+n).toString(36)}},function(e,t,i){var n=i(72);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,i){var n,r=i(73),a=i(591),s=i(155),o=i(154),l=i(207),c=i(152),u=i(156),h=">",d="<",m="prototype",f="script",g=u("IE_PROTO"),y=function(){},p=function(e){return d+f+h+e+d+"/"+f+h},v=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e,t=c("iframe"),i="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(i),e=t.contentWindow.document,e.open(),e.write(p("document.F=Object")),e.close(),e.F},b=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}b=n?v(n):_();var e=s.length;while(e--)delete b[m][s[e]];return b()};o[g]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(y[m]=r(e),i=new y,y[m]=null,i[g]=e):i=b(),void 0===t?i:a(i,t)}},function(e,t,i){var n=i(204),r=i(155);e.exports=Object.keys||function(e){return n(e,r)}},function(e,t,i){var n=i(74),r=i(132),a=i(592).indexOf,s=i(154);e.exports=function(e,t){var i,o=r(e),l=0,c=[];for(i in o)!n(s,i)&&n(o,i)&&c.push(i);while(t.length>l)n(o,i=t[l++])&&(~a(c,i)||c.push(i));return c}},function(e,t,i){var n=i(206),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},function(e,t,i){var n=i(95);e.exports=n("document","documentElement")},function(e,t,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!n.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,i){var n=i(72),r=/#|\.prototype\./,a=function(e,t){var i=o[s(e)];return i==c||i!=l&&("function"==typeof t?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,i){"use strict";var n,r,a,s=i(212),o=i(93),l=i(74),c=i(58),u=i(110),h=c("iterator"),d=!1,m=function(){return this};[].keys&&(a=[].keys(),"next"in a?(r=s(s(a)),r!==Object.prototype&&(n=r)):d=!0),void 0==n&&(n={}),u||l(n,h)||o(n,h,m),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},function(e,t,i){var n=i(74),r=i(213),a=i(156),s=i(601),o=a("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=r(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,i){var n=i(195);e.exports=function(e){return Object(n(e))}},function(e,t,i){var n=i(45);e.exports=n.Promise},function(e,t,i){var n=i(134);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,i){var n=i(73),r=i(134),a=i(58),s=a("species");e.exports=function(e,t){var i,a=n(e).constructor;return void 0===a||void 0==(i=n(a)[s])?t:r(i)}},function(e,t,i){var n,r,a,s=i(45),o=i(72),l=i(109),c=i(215),u=i(207),h=i(152),d=i(218),m=s.location,f=s.setImmediate,g=s.clearImmediate,y=s.process,p=s.MessageChannel,v=s.Dispatch,_=0,b={},L="onreadystatechange",w=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},M=function(e){return function(){w(e)}},k=function(e){w(e.data)},O=function(e){s.postMessage(e+"",m.protocol+"//"+m.host)};f&&g||(f=function(e){var t=[],i=1;while(arguments.length>i)t.push(arguments[i++]);return b[++_]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(_),_},g=function(e){delete b[e]},"process"==l(y)?n=function(e){y.nextTick(M(e))}:v&&v.now?n=function(e){v.now(M(e))}:p&&!d?(r=new p,a=r.port2,r.port1.onmessage=k,n=c(a.postMessage,a,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||o(O)||"file:"===m.protocol?n=L in h("script")?function(e){u.appendChild(h("script"))[L]=function(){u.removeChild(this),w(e)}}:function(e){setTimeout(M(e),0)}:(n=O,s.addEventListener("message",k,!1))),e.exports={set:f,clear:g}},function(e,t,i){var n=i(219);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,i){var n=i(95);e.exports=n("navigator","userAgent")||""},function(e,t,i){var n=i(73),r=i(82),a=i(221);e.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var i=a.f(e),s=i.resolve;return s(t),i.promise}},function(e,t,i){"use strict";var n=i(134),r=function(e){var t,i;this.promise=new e((function(e,n){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=e,i=n})),this.resolve=n(t),this.reject=n(i)};e.exports.f=function(e){return new r(e)}},function(e,t,i){"use strict";var n=i(57).forEach,r=i(96);e.exports=r("forEach")?function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(e,t,i){var n=i(164);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,i){var n=i(32),r=n("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[r]=!1,"/./"[e](t)}catch(n){}}return!1}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,i){var n=i(42),r=i(121),a=i(70),s=i(138).f,o=function(e){return function(t){var i,o=a(t),l=r(o),c=l.length,u=0,h=[];while(c>u)i=l[u++],n&&!s.call(o,i)||h.push(e?[i,o[i]]:o[i]);return h}};e.exports={entries:o(!0),values:o(!1)}},function(e,t,i){var n=i(107),r=i(43),a=i(44),s=i(39).f,o=i(119),l=i(627),c=o("meta"),u=0,h=Object.isExtensible||function(){return!0},d=function(e){s(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},m=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!h(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},f=function(e,t){if(!a(e,c)){if(!h(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},g=function(e){return l&&y.REQUIRED&&h(e)&&!a(e,c)&&d(e),e},y=e.exports={REQUIRED:!1,fastKey:m,getWeakData:f,onFreeze:g};n[c]=!0},function(e,t,i){var n=i(40),r=i(229),a=i(41),s=i(120),o=i(170),l=i(375),c=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,i,u,h){var d,m,f,g,y,p,v,_=s(t,i,u?2:1);if(h)d=e;else{if(m=o(e),"function"!=typeof m)throw TypeError("Target is not iterable");if(r(m)){for(f=0,g=a(e.length);g>f;f++)if(y=u?_(n(v=e[f])[0],v[1]):_(e[f]),y&&y instanceof c)return y;return new c(!1)}d=m.call(e)}p=d.next;while(!(v=p.call(d)).done)if(y=l(d,_,v.value,u),"object"==typeof y&&y&&y instanceof c)return y;return new c(!1)};u.stop=function(e){return new c(!0,e)}},function(e,t,i){var n=i(32),r=i(115),a=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[a]===e)}},function(e,t,i){var n=i(62);e.exports=function(e,t,i){for(var r in t)n(e,r,t[r],i);return e}},function(e,t,i){"use strict";var n,r,a,s=i(166),o=i(61),l=i(44),c=i(32),u=i(100),h=c("iterator"),d=!1,m=function(){return this};[].keys&&(a=[].keys(),"next"in a?(r=s(s(a)),r!==Object.prototype&&(n=r)):d=!0),void 0==n&&(n={}),u||l(n,h)||o(n,h,m),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},function(e,t,i){"use strict";var n=i(70),r=i(113),a=i(115),s=i(75),o=i(171),l="Array Iterator",c=s.set,u=s.getterFor(l);e.exports=o(Array,"Array",(function(e,t){c(this,{type:l,target:n(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,i=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,i){var n=i(32);t.f=n},function(e,t,i){"use strict";var n=i(63),r=i(102),a=i(41);e.exports=function(e){var t=n(this),i=a(t.length),s=arguments.length,o=r(s>1?arguments[1]:void 0,i),l=s>2?arguments[2]:void 0,c=void 0===l?i:r(l,i);while(c>o)t[o++]=e;return t}},function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}}},function(e,t,i){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=i(634)),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},function(e,t,i){"use strict";var n=i(59),r=i(636),a=i(638),s=i(639),o=i(640),l=i(238);e.exports=function(e){return new Promise((function(t,c){var u=e.data,h=e.headers;n.isFormData(u)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",f=e.auth.password||"";h.Authorization="Basic "+btoa(m+":"+f)}if(d.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n=e.responseType&&"text"!==e.responseType?d.response:d.responseText,a={data:n,status:d.status,statusText:d.statusText,headers:i,config:e,request:d};r(t,c,a),d=null}},d.onerror=function(){c(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var g=i(641),y=(e.withCredentials||o(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;y&&(h[e.xsrfHeaderName]=y)}if("setRequestHeader"in d&&n.forEach(h,(function(e,t){"undefined"===typeof u&&"content-type"===t.toLowerCase()?delete h[t]:d.setRequestHeader(t,e)})),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(p){if("json"!==e.responseType)throw p}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),c(e),d=null)})),void 0===u&&(u=null),d.send(u)}))}},function(e,t,i){"use strict";var n=i(637);e.exports=function(e,t,i,r,a){var s=new Error(e);return n(s,t,i,r,a)}},function(e,t,i){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,i){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,i){"use strict";var n=i(71),r=i(60);e.exports="".repeat||function(e){var t=String(r(this)),i="",a=n(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(i+=t);return i}},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,i,a,s){var o=n(t),l=r[e][n(t)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],o=e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return i[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return o}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,r,a,s){var o=i(t),l=n[e][i(t)];return 2===o&&(l=l[r?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return i[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},i=e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,i){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var i=e%10,n=e%100-i,r=e>=100?100:null;return e+(t[i]||t[n]||t[r])},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t){var i=e.split("_");return t%10===1&&t%100!==11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,n){var r={ss:i?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:i?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:i?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===n?i?"хвіліна":"хвіліну":"h"===n?i?"гадзіна":"гадзіну":e+" "+t(r[n],+e)}var n=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:i,mm:i,h:i,hh:i,d:"дзень",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":i>10&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},i={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},n=e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,i){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},i={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},n=e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,i){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i){var n={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+r(n[i],e)}function i(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function n(e){return e>9?n(e%10):e}function r(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var s=e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:i},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i){var n=e+" ";switch(i){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",n;case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",n;case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",n;case"dd":return n+=1===e?"dan":"dana",n;case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",n;case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",n}}var i=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var i=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(i="a"),e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),i="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),n=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],r=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!==~~(e/10)}function s(e,t,i,n){var r=e+" ";switch(i){case"s":return t||n?"pár sekund":"pár sekundami";case"ss":return t||n?r+(a(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?r+(a(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?r+(a(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?r+(a(e)?"dny":"dní"):r+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?r+(a(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?r+(a(e)?"roky":"let"):r+"lety"}}var o=e.defineLocale("cs",{months:t,monthsShort:i,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,i="",n=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?i=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(i=n[t]),e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}var i=e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}var i=e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}var i=e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],i=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],n=e.defineLocale("dv",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,i){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}var i=e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"===typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,i){return e>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,i){var n=this._calendarEl[e],r=i&&i.hours();return t(n)&&(n=n.apply(i)),n.replace("{}",r%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,i){return e>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[i][2]?r[i][2]:r[i][1]:n?r[i][0]:r[i][1]}var i=e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},i={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},n=e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,i){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return i[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),i=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function n(e,t,i,n){var a="";switch(i){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"ss":return n?"sekunnin":"sekuntia";case"m":return n?"minuutin":"minuutti";case"mm":a=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":a=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":a=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":a=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":a=n?"vuoden":"vuotta";break}return a=r(e,n)+" "+a,a}function r(e,n){return e<10?n?i[e]:t[e]:e}var a=e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),n=e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],i=["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],n=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],r=["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],a=["Do","Lu","Má","Ce","Dé","hA","Sa"],s=e.defineLocale("ga",{months:t,monthsShort:i,monthsParseExact:!0,weekdays:n,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],i=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],n=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],s=e.defineLocale("gd",{months:t,monthsShort:i,monthsParseExact:!0,weekdays:n,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?r[i][0]:r[i][1]}var i=e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},i={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},n=e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10===0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,i){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?i?'לפנה"צ':"לפני הצהריים":e<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i){var n=e+" ";switch(i){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",n;case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",n;case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",n;case"dd":return n+=1===e?"dan":"dana",n;case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",n;case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",n}}var i=e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function i(e,t,i,n){var r=e;switch(i){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"ss":return r+(n||t)?" másodperc":" másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return r+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return r+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return r+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return r+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return r+(n||t?" év":" éve")}return""}function n(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}var r=e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,i){return e<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e){return e%100===11||e%10!==1}function i(e,i,n,r){var a=e+" ";switch(n){case"s":return i||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(i||r?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return i?"mínúta":"mínútu";case"mm":return t(e)?a+(i||r?"mínútur":"mínútum"):i?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(i||r?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return i?"dagur":r?"dag":"degi";case"dd":return t(e)?i?a+"dagar":a+(r?"daga":"dögum"):i?a+"dagur":a+(r?"dag":"degi");case"M":return i?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?i?a+"mánuðir":a+(r?"mánuði":"mánuðum"):i?a+"mánuður":a+(r?"mánuð":"mánuði");case"y":return i||r?"ár":"ári";case"yy":return t(e)?a+(i||r?"ár":"árum"):a+(i||r?"ár":"ári")}}var n=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,i){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()<e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},i=e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var i=e%10,n=e>=100?100:null;return e+(t[e]||t[i]||t[n])},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},i={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},n=e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,i){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},i={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},n=e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,i){return e<12?"오전":"오후"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],r=e.defineLocale("ku",{months:n,monthsShort:n,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,i){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return i[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return r}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},i=e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var i=e%10,n=e>=100?100:null;return e+(t[e]||t[i]||t[n])},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[i][0]:r[i][1]}function i(e){var t=e.substr(0,e.indexOf(" "));return r(t)?"a "+e:"an "+e}function n(e){var t=e.substr(0,e.indexOf(" "));return r(t)?"viru "+e:"virun "+e}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10,i=e/10;return r(0===t?i:t)}if(e<1e4){while(e>=10)e/=10;return r(e)}return e/=1e3,r(e)}var a=e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:i,past:n,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,i){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function i(e,t,i,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"}function n(e,t,i,n){return t?a(i)[0]:n?a(i)[1]:a(i)[2]}function r(e){return e%10===0||e>10&&e<20}function a(e){return t[e].split("_")}function s(e,t,i,s){var o=e+" ";return 1===e?o+n(e,t,i[0],s):t?o+(r(e)?a(i)[1]:a(i)[0]):s?o+a(i)[1]:o+(r(e)?a(i)[1]:a(i)[2])}var o=e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:i,ss:s,m:n,mm:s,h:n,hh:s,d:n,dd:s,M:n,MM:s,y:n,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return o}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function i(e,t,i){return i?t%10===1&&t%100!==11?e[2]:e[3]:t%10===1&&t%100!==11?e[0]:e[1]}function n(e,n,r){return e+" "+i(t[r],e,n)}function r(e,n,r){return i(t[r],e,n)}function a(e,t){return t?"dažas sekundes":"dažām sekundēm"}var s=e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:a,ss:n,m:r,mm:n,h:r,hh:n,d:r,dd:n,M:r,MM:n,y:r,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var r=t.words[n];return 1===n.length?i?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},i=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":i>10&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,i){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){switch(i){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}var i=e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,i){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function n(e,t,i,n){var r="";if(t)switch(i){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे";break}else switch(i){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां";break}return r.replace(/%d/i,e)}var r=e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return r}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},i={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},n=e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,i){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},i={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},n=e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function n(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function r(e,t,i){var r=e+" ";switch(i){case"ss":return r+(n(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(n(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(n(e)?"godziny":"godzin");case"MM":return r+(n(e)?"miesiące":"miesięcy");case"yy":return r+(n(e)?"lata":"lat")}}var a=e.defineLocale("pl",{months:function(e,n){return e?""===n?"("+i[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(n)?i[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i){var n={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},r=" ";return(e%100>=20||e>=100&&e%100===0)&&(r=" de "),e+r+n[i]}var i=e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t){var i=e.split("_");return t%10===1&&t%100!==11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,n){var r={ss:i?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:i?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===n?i?"минута":"минуту":e+" "+t(r[n],+e)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],r=e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:i,m:i,mm:i,h:"час",hh:i,d:"день",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});return r}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],i=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],n=e.defineLocale("sd",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,i){return e>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),i="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function n(e){return e>1&&e<5}function r(e,t,i,r){var a=e+" ";switch(i){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?a+(n(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?a+(n(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(n(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?a+(n(e)?"dni":"dní"):a+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?a+(n(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?a+(n(e)?"roky":"rokov"):a+"rokmi"}}var a=e.defineLocale("sk",{months:t,monthsShort:i,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r=e+" ";switch(i){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund",r;case"m":return t?"ena minuta":"eno minuto";case"mm":return r+=1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami",r;case"h":return t?"ena ura":"eno uro";case"hh":return r+=1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami",r;case"d":return t||n?"en dan":"enim dnem";case"dd":return r+=1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi",r;case"M":return t||n?"en mesec":"enim mesecem";case"MM":return r+=1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci",r;case"y":return t||n?"eno leto":"enim letom";case"yy":return r+=1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti",r}}var i=e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,i){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var r=t.words[n];return 1===n.length?i?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},i=e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var r=t.words[n];return 1===n.length?i?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},i=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,i){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"e":1===t||2===t?"a":"e";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},i={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},n=e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,i){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},i=e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var i=e%10,n=e>=100?100:null;return e+(t[e]||t[i]||t[n])},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,i){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq",t}function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret",t}function r(e,t,i,n){var r=a(e);switch(i){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function a(e){var i=Math.floor(e%1e3/100),n=Math.floor(e%100/10),r=e%10,a="";return i>0&&(a+=t[i]+"vatlh"),n>0&&(a+=(""!==a?" ":"")+t[n]+"maH"),r>0&&(a+=(""!==a?" ":"")+t[r]),""===a?"pagh":a}var s=e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:i,past:n,s:"puS lup",ss:r,m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},i=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,i){switch(i){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var n=e%10,r=e%100-n,a=e>=100?100:null;return e+(t[n]||t[r]||t[a])}},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,i){return e>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function i(e,t,i,n){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n||t?r[i][0]:r[i][1]}return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t){var i=e.split("_");return t%10===1&&t%100!==11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,n){var r={ss:i?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:i?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:i?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===n?i?"хвилина":"хвилину":"h"===n?i?"година":"годину":e+" "+t(r[n],+e)}function n(e,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};if(!0===e)return i["nominative"].slice(1,7).concat(i["nominative"].slice(0,1));if(!e)return i["nominative"];var n=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return i[n][e.day()]}function r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var a=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:n,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:i,m:i,mm:i,h:"годину",hh:i,d:"день",dd:i,M:"місяць",MM:i,y:"рік",yy:i},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],i=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],n=e.defineLocale("ur",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(77);function r(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function a(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function s(e){if(e.length>1&&n.isNumber(e[0])&&n.isNumber(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return s(e[0]);throw new Error("coordinates must only contain numbers")}function o(e,t,i){if(!t||!i)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+i+": must be a "+t+", given "+e.type)}function l(e,t,i){if(!e)throw new Error("No feature passed");if(!i)throw new Error(".featureOf() requires a name");if(!e||"Feature"!==e.type||!e.geometry)throw new Error("Invalid input to "+i+", Feature with geometry required");if(!e.geometry||e.geometry.type!==t)throw new Error("Invalid input to "+i+": must be a "+t+", given "+e.geometry.type)}function c(e,t,i){if(!e)throw new Error("No featureCollection passed");if(!i)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+i+", FeatureCollection required");for(var n=0,r=e.features;n<r.length;n++){var a=r[n];if(!a||"Feature"!==a.type||!a.geometry)throw new Error("Invalid input to "+i+", Feature with geometry required");if(!a.geometry||a.geometry.type!==t)throw new Error("Invalid input to "+i+": must be a "+t+", given "+a.geometry.type)}}function u(e){return"Feature"===e.type?e.geometry:e}function h(e,t){return"FeatureCollection"===e.type?"FeatureCollection":"GeometryCollection"===e.type?"GeometryCollection":"Feature"===e.type&&null!==e.geometry?e.geometry.type:e.type}t.getCoord=r,t.getCoords=a,t.containsNumber=s,t.geojsonType=o,t.featureOf=l,t.collectionOf=c,t.getGeom=u,t.getType=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(77);function r(e,t,i){if(null!==e)for(var n,a,s,o,l,c,u,h,d=0,m=0,f=e.type,g="FeatureCollection"===f,y="Feature"===f,p=g?e.features.length:1,v=0;v<p;v++){u=g?e.features[v].geometry:y?e.geometry:e,h=!!u&&"GeometryCollection"===u.type,l=h?u.geometries.length:1;for(var _=0;_<l;_++){var b=0,L=0;if(o=h?u.geometries[_]:u,null!==o){c=o.coordinates;var w=o.type;switch(d=!i||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===t(c,m,v,b,L))return!1;m++,b++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(!1===t(c[n],m,v,b,L))return!1;m++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(a=0;a<c[n].length-d;a++){if(!1===t(c[n][a],m,v,b,L))return!1;m++}"MultiLineString"===w&&b++,"Polygon"===w&&L++}"Polygon"===w&&b++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(L=0,a=0;a<c[n].length;a++){for(s=0;s<c[n][a].length-d;s++){if(!1===t(c[n][a][s],m,v,b,L))return!1;m++}L++}b++}break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(!1===r(o.geometries[n],t,i))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function a(e,t,i,n){var a=i;return r(e,(function(e,n,r,s,o){a=0===n&&void 0===i?e:t(a,e,n,r,s,o)}),n),a}function s(e,t){var i;switch(e.type){case"FeatureCollection":for(i=0;i<e.features.length;i++)if(!1===t(e.features[i].properties,i))break;break;case"Feature":t(e.properties,0);break}}function o(e,t,i){var n=i;return s(e,(function(e,r){n=0===r&&void 0===i?e:t(n,e,r)})),n}function l(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var i=0;i<e.features.length;i++)if(!1===t(e.features[i],i))break}function c(e,t,i){var n=i;return l(e,(function(e,r){n=0===r&&void 0===i?e:t(n,e,r)})),n}function u(e){var t=[];return r(e,(function(e){t.push(e)})),t}function h(e,t){var i,n,r,a,s,o,l,c,u,h,d=0,m="FeatureCollection"===e.type,f="Feature"===e.type,g=m?e.features.length:1;for(i=0;i<g;i++){for(o=m?e.features[i].geometry:f?e.geometry:e,c=m?e.features[i].properties:f?e.properties:{},u=m?e.features[i].bbox:f?e.bbox:void 0,h=m?e.features[i].id:f?e.id:void 0,l=!!o&&"GeometryCollection"===o.type,s=l?o.geometries.length:1,r=0;r<s;r++)if(a=l?o.geometries[r]:o,null!==a)switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(a,d,c,u,h))return!1;break;case"GeometryCollection":for(n=0;n<a.geometries.length;n++)if(!1===t(a.geometries[n],d,c,u,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,d,c,u,h))return!1;d++}}function d(e,t,i){var n=i;return h(e,(function(e,r,a,s,o){n=0===r&&void 0===i?e:t(n,e,r,a,s,o)})),n}function m(e,t){h(e,(function(e,i,r,a,s){var o,l=null===e?null:e.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==t(n.feature(e,r,{bbox:a,id:s}),i,0)&&void 0}switch(l){case"MultiPoint":o="Point";break;case"MultiLineString":o="LineString";break;case"MultiPolygon":o="Polygon";break}for(var c=0;c<e.coordinates.length;c++){var u=e.coordinates[c],h={type:o,coordinates:u};if(!1===t(n.feature(h,r),i,c))return!1}}))}function f(e,t,i){var n=i;return m(e,(function(e,r,a){n=0===r&&0===a&&void 0===i?e:t(n,e,r,a)})),n}function g(e,t){m(e,(function(e,i,a){var s=0;if(e.geometry){var o=e.geometry.type;if("Point"!==o&&"MultiPoint"!==o){var l,c=0,u=0,h=0;return!1!==r(e,(function(r,o,d,m,f){if(void 0===l||i>c||m>u||f>h)return l=r,c=i,u=m,h=f,void(s=0);var g=n.lineString([l,r],e.properties);if(!1===t(g,i,a,f,s))return!1;s++,l=r}))&&void 0}}}))}function y(e,t,i){var n=i,r=!1;return g(e,(function(e,a,s,o,l){n=!1===r&&void 0===i?e:t(n,e,a,s,o,l),r=!0})),n}function p(e,t){if(!e)throw new Error("geojson is required");m(e,(function(e,i,r){if(null!==e.geometry){var a=e.geometry.type,s=e.geometry.coordinates;switch(a){case"LineString":if(!1===t(e,i,r,0,0))return!1;break;case"Polygon":for(var o=0;o<s.length;o++)if(!1===t(n.lineString(s[o],e.properties),i,r,o))return!1;break}}}))}function v(e,t,i){var n=i;return p(e,(function(e,r,a,s){n=0===r&&void 0===i?e:t(n,e,r,a,s)})),n}function _(e,t){if(t=t||{},!n.isObject(t))throw new Error("options is invalid");var i,r=t.featureIndex||0,a=t.multiFeatureIndex||0,s=t.geometryIndex||0,o=t.segmentIndex||0,l=t.properties;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),l=l||e.features[r].properties,i=e.features[r].geometry;break;case"Feature":l=l||e.properties,i=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":i=e;break;default:throw new Error("geojson is invalid")}if(null===i)return null;var c=i.coordinates;switch(i.type){case"Point":case"MultiPoint":return null;case"LineString":return o<0&&(o=c.length+o-1),n.lineString([c[o],c[o+1]],l,t);case"Polygon":return s<0&&(s=c.length+s),o<0&&(o=c[s].length+o-1),n.lineString([c[s][o],c[s][o+1]],l,t);case"MultiLineString":return a<0&&(a=c.length+a),o<0&&(o=c[a].length+o-1),n.lineString([c[a][o],c[a][o+1]],l,t);case"MultiPolygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s),o<0&&(o=c[a][s].length-o-1),n.lineString([c[a][s][o],c[a][s][o+1]],l,t)}throw new Error("geojson is invalid")}function b(e,t){if(t=t||{},!n.isObject(t))throw new Error("options is invalid");var i,r=t.featureIndex||0,a=t.multiFeatureIndex||0,s=t.geometryIndex||0,o=t.coordIndex||0,l=t.properties;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),l=l||e.features[r].properties,i=e.features[r].geometry;break;case"Feature":l=l||e.properties,i=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":i=e;break;default:throw new Error("geojson is invalid")}if(null===i)return null;var c=i.coordinates;switch(i.type){case"Point":return n.point(c,l,t);case"MultiPoint":return a<0&&(a=c.length+a),n.point(c[a],l,t);case"LineString":return o<0&&(o=c.length+o),n.point(c[o],l,t);case"Polygon":return s<0&&(s=c.length+s),o<0&&(o=c[s].length+o),n.point(c[s][o],l,t);case"MultiLineString":return a<0&&(a=c.length+a),o<0&&(o=c[a].length+o),n.point(c[a][o],l,t);case"MultiPolygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s),o<0&&(o=c[a][s].length-o),n.point(c[a][s][o],l,t)}throw new Error("geojson is invalid")}t.coordEach=r,t.coordReduce=a,t.propEach=s,t.propReduce=o,t.featureEach=l,t.featureReduce=c,t.coordAll=u,t.geomEach=h,t.geomReduce=d,t.flattenEach=m,t.flattenReduce=f,t.segmentEach=g,t.segmentReduce=y,t.lineEach=p,t.lineReduce=v,t.findSegment=_,t.findPoint=b},function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(173),r=i(174);function a(e,t,i){return a=Object(r["a"])()?Reflect.construct:function(e,t,i){var r=[null];r.push.apply(r,t);var a=Function.bind.apply(e,r),s=new a;return i&&Object(n["a"])(s,i.prototype),s},a.apply(null,arguments)}},function(e,t,i){var n=i(42),r=i(39),a=i(40),s=i(121);e.exports=n?Object.defineProperties:function(e,t){a(e);var i,n=s(t),o=n.length,l=0;while(o>l)r.f(e,i=n[l++],t[i]);return e}},function(e,t,i){var n=i(28);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,i){"use strict";var n=i(21),r=i(31),a=i(127),s=i(62),o=i(227),l=i(228),c=i(135),u=i(43),h=i(28),d=i(376),m=i(103),f=i(141);e.exports=function(e,t,i){var g=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),p=g?"set":"add",v=r[e],_=v&&v.prototype,b=v,L={},w=function(e){var t=_[e];s(_,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:function(e,i){return t.call(this,0===e?0:e,i),this})};if(a(e,"function"!=typeof v||!(y||_.forEach&&!h((function(){(new v).entries().next()})))))b=i.getConstructor(t,e,g,p),o.REQUIRED=!0;else if(a(e,!0)){var M=new b,k=M[p](y?{}:-0,1)!=M,O=h((function(){M.has(1)})),T=d((function(e){new v(e)})),S=!y&&h((function(){var e=new v,t=5;while(t--)e[p](t,t);return!e.has(-0)}));T||(b=t((function(t,i){c(t,b,e);var n=f(new v,t,b);return void 0!=i&&l(i,n[p],n,g),n})),b.prototype=_,_.constructor=b),(O||S)&&(w("delete"),w("has"),g&&w("get")),(S||k)&&w(p),y&&_.clear&&delete _.clear}return L[e]=b,n({global:!0,forced:b!=v},L),m(b,e),y||i.setStrong(b,e,g),b}},function(e,t,i){var n=i(40);e.exports=function(e,t,i,r){try{return r?t(n(i)[0],i[1]):t(i)}catch(s){var a=e["return"];throw void 0!==a&&n(a.call(e)),s}}},function(e,t,i){var n=i(32),r=n("iterator"),a=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){a=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!a)return!1;var i=!1;try{var n={};n[r]=function(){return{next:function(){return{done:i=!0}}}},e(n)}catch(l){}return i}},function(e,t,i){"use strict";var n=i(39).f,r=i(97),a=i(230),s=i(120),o=i(135),l=i(228),c=i(171),u=i(182),h=i(42),d=i(227).fastKey,m=i(75),f=m.set,g=m.getterFor;e.exports={getConstructor:function(e,t,i,c){var u=e((function(e,n){o(e,u,t),f(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=n&&l(n,e[c],e,i)})),m=g(t),y=function(e,t,i){var n,r,a=m(e),s=p(e,t);return s?s.value=i:(a.last=s={index:r=d(t,!0),key:t,value:i,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=s),n&&(n.next=s),h?a.size++:e.size++,"F"!==r&&(a.index[r]=s)),e},p=function(e,t){var i,n=m(e),r=d(t);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key==t)return i};return a(u.prototype,{clear:function(){var e=this,t=m(e),i=t.index,n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete i[n.index],n=n.next;t.first=t.last=void 0,h?t.size=0:e.size=0},delete:function(e){var t=this,i=m(t),n=p(t,e);if(n){var r=n.next,a=n.previous;delete i.index[n.index],n.removed=!0,a&&(a.next=r),r&&(r.previous=a),i.first==n&&(i.first=r),i.last==n&&(i.last=a),h?i.size--:t.size--}return!!n},forEach:function(e){var t,i=m(this),n=s(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:i.first){n(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!p(this,e)}}),a(u.prototype,i?{get:function(e){var t=p(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),h&&n(u.prototype,"size",{get:function(){return m(this).size}}),u},setStrong:function(e,t,i){var n=t+" Iterator",r=g(t),a=g(n);c(e,t,(function(e,t){f(this,{type:n,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,i=e.last;while(i&&i.removed)i=i.previous;return e.target&&(e.last=i=i?i.next:e.state.first)?"keys"==t?{value:i.key,done:!1}:"values"==t?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),u(t)}}},function(e,t,i){"use strict";var n=i(231).IteratorPrototype,r=i(97),a=i(90),s=i(103),o=i(115),l=function(){return this};e.exports=function(e,t,i){var c=t+" Iterator";return e.prototype=r(n,{next:a(1,i)}),s(e,c,!1,!0),o[c]=l,e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";i(33),i(12);var n=i(1),r=i(0),a=i(54),s=function(){function e(t){Object(n["a"])(this,e),this.name=t.name,this.principalPoint=t["principal-point"],this.pixelSize=t["pixel-size"],this.radialE2F=t["radial-distorsion-expected-2-found"],this.radialF2E=t["radial-distorsion-found-2-expected"],this.hasRadial=!!(this.pixelSize&&this.radialE2F&&this.radialF2E),this.size=t.size||null,this.view=t.view||null}return Object(r["a"])(e,[{key:"radialDistortionCoordinate",value:function(e,t){if(this.hasRadial){var i=t?this.radialF2E:this.radialE2F,n=Object(a["a"])(this.principalPoint,e)*this.pixelSize[0];if(0===n)return e.slice();for(var r=e[0]-this.principalPoint[0],s=e[1]-this.principalPoint[1],o=0,l=0;l<i.length;++l)o+=i[l]*Math.pow(n,l);var c=(n+o)/this.pixelSize[0],u=Math.atan2(s,r);return[this.principalPoint[0]+c*Math.cos(u),this.principalPoint[1]+c*Math.sin(u)]}return e.slice()}}]),e}();t["a"]=s},function(e,t,i){var n=i(740),r=i(117),a=r;a.v1=n,a.v4=r,e.exports=a},,,,,function(e,t,i){var n=i(31),r=i(188),a=n.WeakMap;e.exports="function"===typeof a&&/native code/.test(r(a))},function(e,t,i){var n=i(101),r=i(91),a=i(178),s=i(40);e.exports=n("Reflect","ownKeys")||function(e){var t=r.f(s(e)),i=a.f;return i?t.concat(i(e)):t}},function(e,t,i){var n=i(101);e.exports=n("navigator","userAgent")||""},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},function(e,t,i){"use strict";var n=i(132),r=i(589),a=i(111),s=i(157),o=i(596),l="Array Iterator",c=s.set,u=s.getterFor(l);e.exports=o(Array,"Array",(function(e,t){c(this,{type:l,target:n(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,i=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,i){var n=i(58),r=i(202),a=i(94),s=n("unscopables"),o=Array.prototype;void 0==o[s]&&a.f(o,s,{configurable:!0,value:r(null)}),e.exports=function(e){o[s][e]=!0}},function(e,t,i){var n=i(201);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,i){var n=i(81),r=i(94),a=i(73),s=i(203);e.exports=n?Object.defineProperties:function(e,t){a(e);var i,n=s(t),o=n.length,l=0;while(o>l)r.f(e,i=n[l++],t[i]);return e}},function(e,t,i){var n=i(132),r=i(205),a=i(593),s=function(e){return function(t,i,s){var o,l=n(t),c=r(l.length),u=a(s,c);if(e&&i!=i){while(c>u)if(o=l[u++],o!=o)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},function(e,t,i){var n=i(206),r=Math.max,a=Math.min;e.exports=function(e,t){var i=n(e);return i<0?r(i+t,0):a(i,t)}},function(e,t,i){var n=i(45);e.exports=n},function(e,t,i){var n=i(45),r=i(158),a=n.WeakMap;e.exports="function"===typeof a&&/native code/.test(r(a))},function(e,t,i){"use strict";var n=i(133),r=i(600),a=i(212),s=i(602),o=i(160),l=i(93),c=i(112),u=i(58),h=i(110),d=i(111),m=i(211),f=m.IteratorPrototype,g=m.BUGGY_SAFARI_ITERATORS,y=u("iterator"),p="keys",v="values",_="entries",b=function(){return this};e.exports=function(e,t,i,u,m,L,w){r(i,t,u);var M,k,O,T=function(e){if(e===m&&I)return I;if(!g&&e in j)return j[e];switch(e){case p:return function(){return new i(this,e)};case v:return function(){return new i(this,e)};case _:return function(){return new i(this,e)}}return function(){return new i(this)}},S=t+" Iterator",C=!1,j=e.prototype,E=j[y]||j["@@iterator"]||m&&j[m],I=!g&&E||T(m),D="Array"==t&&j.entries||E;if(D&&(M=a(D.call(new e)),f!==Object.prototype&&M.next&&(h||a(M)===f||(s?s(M,f):"function"!=typeof M[y]&&l(M,y,b)),o(M,S,!0,!0),h&&(d[S]=b))),m==v&&E&&E.name!==v&&(C=!0,I=function(){return E.call(this)}),h&&!w||j[y]===I||l(j,y,I),d[t]=I,m)if(k={values:T(v),keys:L?I:T(p),entries:T(_)},w)for(O in k)(g||C||!(O in j))&&c(j,O,k[O]);else n({target:t,proto:!0,forced:g||C},k);return k}},function(e,t,i){var n=i(74),r=i(598),a=i(159),s=i(94);e.exports=function(e,t){for(var i=r(t),o=s.f,l=a.f,c=0;c<i.length;c++){var u=i[c];n(e,u)||o(e,u,l(t,u))}}},function(e,t,i){var n=i(95),r=i(599),a=i(209),s=i(73);e.exports=n("Reflect","ownKeys")||function(e){var t=r.f(s(e)),i=a.f;return i?t.concat(i(e)):t}},function(e,t,i){var n=i(204),r=i(155),a=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},function(e,t,i){"use strict";var n=i(211).IteratorPrototype,r=i(202),a=i(153),s=i(160),o=i(111),l=function(){return this};e.exports=function(e,t,i){var c=t+" Iterator";return e.prototype=r(n,{next:a(1,i)}),s(e,c,!1,!0),o[c]=l,e}},function(e,t,i){var n=i(72);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,i){var n=i(73),r=i(603);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(i,[]),t=i instanceof Array}catch(a){}return function(i,a){return n(i),r(a),t?e.call(i,a):i.__proto__=a,i}}():void 0)},function(e,t,i){var n=i(82);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,i){"use strict";var n,r,a,s,o=i(133),l=i(110),c=i(45),u=i(95),h=i(214),d=i(112),m=i(605),f=i(160),g=i(606),y=i(82),p=i(134),v=i(607),_=i(109),b=i(158),L=i(608),w=i(614),M=i(216),k=i(217).set,O=i(615),T=i(220),S=i(616),C=i(221),j=i(617),E=i(157),I=i(210),D=i(58),P=i(618),A=D("species"),x="Promise",Y=E.get,N=E.set,F=E.getterFor(x),R=h,H=c.TypeError,G=c.document,z=c.process,B=u("fetch"),V=C.f,U=V,W="process"==_(z),q=!!(G&&G.createEvent&&c.dispatchEvent),J="unhandledrejection",K="rejectionhandled",Z=0,Q=1,X=2,$=1,ee=2,te=I(x,(function(){var e=b(R)!==String(R);if(!e){if(66===P)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!R.prototype["finally"])return!0;if(P>=51&&/native code/.test(R))return!1;var t=R.resolve(1),i=function(e){e((function(){}),(function(){}))},n=t.constructor={};return n[A]=i,!(t.then((function(){}))instanceof i)})),ie=te||!w((function(e){R.all(e)["catch"]((function(){}))})),ne=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t,i){if(!t.notified){t.notified=!0;var n=t.reactions;O((function(){var r=t.value,a=t.state==Q,s=0;while(n.length>s){var o,l,c,u=n[s++],h=a?u.ok:u.fail,d=u.resolve,m=u.reject,f=u.domain;try{h?(a||(t.rejection===ee&&le(e,t),t.rejection=$),!0===h?o=r:(f&&f.enter(),o=h(r),f&&(f.exit(),c=!0)),o===u.promise?m(H("Promise-chain cycle")):(l=ne(o))?l.call(o,d,m):d(o)):m(r)}catch(g){f&&!c&&f.exit(),m(g)}}t.reactions=[],t.notified=!1,i&&!t.rejection&&se(e,t)}))}},ae=function(e,t,i){var n,r;q?(n=G.createEvent("Event"),n.promise=t,n.reason=i,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:i},(r=c["on"+e])?r(n):e===J&&S("Unhandled promise rejection",i)},se=function(e,t){k.call(c,(function(){var i,n=t.value,r=oe(t);if(r&&(i=j((function(){W?z.emit("unhandledRejection",n,e):ae(J,e,n)})),t.rejection=W||oe(t)?ee:$,i.error))throw i.value}))},oe=function(e){return e.rejection!==$&&!e.parent},le=function(e,t){k.call(c,(function(){W?z.emit("rejectionHandled",e):ae(K,e,t.value)}))},ce=function(e,t,i,n){return function(r){e(t,i,r,n)}},ue=function(e,t,i,n){t.done||(t.done=!0,n&&(t=n),t.value=i,t.state=X,re(e,t,!0))},he=function(e,t,i,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===i)throw H("Promise can't be resolved itself");var r=ne(i);r?O((function(){var n={done:!1};try{r.call(i,ce(he,e,n,t),ce(ue,e,n,t))}catch(a){ue(e,n,a,t)}})):(t.value=i,t.state=Q,re(e,t,!1))}catch(a){ue(e,{done:!1},a,t)}}};te&&(R=function(e){v(this,R,x),p(e),n.call(this);var t=Y(this);try{e(ce(he,this,t),ce(ue,this,t))}catch(i){ue(this,t,i)}},n=function(e){N(this,{type:x,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},n.prototype=m(R.prototype,{then:function(e,t){var i=F(this),n=V(M(this,R));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=W?z.domain:void 0,i.parent=!0,i.reactions.push(n),i.state!=Z&&re(this,i,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new n,t=Y(e);this.promise=e,this.resolve=ce(he,e,t),this.reject=ce(ue,e,t)},C.f=V=function(e){return e===R||e===a?new r(e):U(e)},l||"function"!=typeof h||(s=h.prototype.then,d(h.prototype,"then",(function(e,t){var i=this;return new R((function(e,t){s.call(i,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof B&&o({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return T(R,B.apply(c,arguments))}}))),o({global:!0,wrap:!0,forced:te},{Promise:R}),f(R,x,!1,!0),g(x),a=u(x),o({target:x,stat:!0,forced:te},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),o({target:x,stat:!0,forced:l||te},{resolve:function(e){return T(l&&this===a?R:this,e)}}),o({target:x,stat:!0,forced:ie},{all:function(e){var t=this,i=V(t),n=i.resolve,r=i.reject,a=j((function(){var i=p(t.resolve),a=[],s=0,o=1;L(e,(function(e){var l=s++,c=!1;a.push(void 0),o++,i.call(t,e).then((function(e){c||(c=!0,a[l]=e,--o||n(a))}),r)})),--o||n(a)}));return a.error&&r(a.value),i.promise},race:function(e){var t=this,i=V(t),n=i.reject,r=j((function(){var r=p(t.resolve);L(e,(function(e){r.call(t,e).then(i.resolve,n)}))}));return r.error&&n(r.value),i.promise}})},function(e,t,i){var n=i(112);e.exports=function(e,t,i){for(var r in t)n(e,r,t[r],i);return e}},function(e,t,i){"use strict";var n=i(95),r=i(94),a=i(58),s=i(81),o=a("species");e.exports=function(e){var t=n(e),i=r.f;s&&t&&!t[o]&&i(t,o,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,i){if(!(e instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return e}},function(e,t,i){var n=i(73),r=i(609),a=i(205),s=i(215),o=i(610),l=i(613),c=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,i,u,h){var d,m,f,g,y,p,v,_=s(t,i,u?2:1);if(h)d=e;else{if(m=o(e),"function"!=typeof m)throw TypeError("Target is not iterable");if(r(m)){for(f=0,g=a(e.length);g>f;f++)if(y=u?_(n(v=e[f])[0],v[1]):_(e[f]),y&&y instanceof c)return y;return new c(!1)}d=m.call(e)}p=d.next;while(!(v=p.call(d)).done)if(y=l(d,_,v.value,u),"object"==typeof y&&y&&y instanceof c)return y;return new c(!1)};u.stop=function(e){return new c(!0,e)}},function(e,t,i){var n=i(58),r=i(111),a=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[a]===e)}},function(e,t,i){var n=i(611),r=i(111),a=i(58),s=a("iterator");e.exports=function(e){if(void 0!=e)return e[s]||e["@@iterator"]||r[n(e)]}},function(e,t,i){var n=i(612),r=i(109),a=i(58),s=a("toStringTag"),o="Arguments"==r(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(i){}};e.exports=n?r:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=l(t=Object(e),s))?i:o?r(t):"Object"==(n=r(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,i){var n=i(58),r=n("toStringTag"),a={};a[r]="z",e.exports="[object z]"===String(a)},function(e,t,i){var n=i(73);e.exports=function(e,t,i,r){try{return r?t(n(i)[0],i[1]):t(i)}catch(s){var a=e["return"];throw void 0!==a&&n(a.call(e)),s}}},function(e,t,i){var n=i(58),r=n("iterator"),a=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){a=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!a)return!1;var i=!1;try{var n={};n[r]=function(){return{next:function(){return{done:i=!0}}}},e(n)}catch(l){}return i}},function(e,t,i){var n,r,a,s,o,l,c,u,h=i(45),d=i(159).f,m=i(109),f=i(217).set,g=i(218),y=h.MutationObserver||h.WebKitMutationObserver,p=h.process,v=h.Promise,_="process"==m(p),b=d(h,"queueMicrotask"),L=b&&b.value;L||(n=function(){var e,t;_&&(e=p.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(i){throw r?s():a=void 0,i}}a=void 0,e&&e.enter()},_?s=function(){p.nextTick(n)}:y&&!g?(o=!0,l=document.createTextNode(""),new y(n).observe(l,{characterData:!0}),s=function(){l.data=o=!o}):v&&v.resolve?(c=v.resolve(void 0),u=c.then,s=function(){u.call(c,n)}):s=function(){f.call(h,n)}),e.exports=L||function(e){var t={fn:e,next:void 0};a&&(a.next=t),r||(r=t,s()),a=t}},function(e,t,i){var n=i(45);e.exports=function(e,t){var i=n.console;i&&i.error&&(1===arguments.length?i.error(e):i.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,i){var n,r,a=i(45),s=i(219),o=a.process,l=o&&o.versions,c=l&&l.v8;c?(n=c.split("."),r=n[0]+n[1]):s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(r=n[1]))),e.exports=r&&+r},function(e,t,i){var n=i(133),r=i(620);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,i){"use strict";var n=i(81),r=i(72),a=i(203),s=i(209),o=i(208),l=i(213),c=i(194),u=Object.assign,h=Object.defineProperty;e.exports=!u||r((function(){if(n&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol(),r="abcdefghijklmnopqrst";return e[i]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[i]||a(u({},t)).join("")!=r}))?function(e,t){var i=l(e),r=arguments.length,u=1,h=s.f,d=o.f;while(r>u){var m,f=c(arguments[u++]),g=h?a(f).concat(h(f)):a(f),y=g.length,p=0;while(y>p)m=g[p++],n&&!d.call(f,m)||(i[m]=f[m])}return i}:u},function(e,t,i){"use strict";var n=i(133),r=i(110),a=i(214),s=i(72),o=i(95),l=i(216),c=i(220),u=i(112),h=!!a&&s((function(){a.prototype["finally"].call({then:function(){}},(function(){}))}));n({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(e){var t=l(this,o("Promise")),i="function"==typeof e;return this.then(i?function(i){return c(t,e()).then((function(){return i}))}:e,i?function(i){return c(t,e()).then((function(){throw i}))}:e)}}),r||"function"!=typeof a||a.prototype["finally"]||u(a.prototype,"finally",o("Promise").prototype["finally"])},function(e,t,i){var n=i(43);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,i){var n=i(101);e.exports=n("document","documentElement")},function(e,t,i){var n=i(31),r=n.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,i){"use strict";var n=i(167),r=i(143);e.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,i){var n=i(31),r=i(162).trim,a=i(163),s=n.parseFloat,o=1/s(a+"-0")!==-1/0;e.exports=o?function(e){var t=r(String(e)),i=s(t);return 0===i&&"-"==t.charAt(0)?-0:i}:s},function(e,t,i){var n=i(28);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,i){var n=i(70),r=i(91).f,a={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o=function(e){try{return r(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==a.call(e)?o(e):r(n(e))}},function(e,t,i){var n=i(177),r=i(44),a=i(233),s=i(39).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});r(t,e)||s(t,e,{value:a.f(e)})}},function(e,t,i){var n=i(179),r=i(63),a=i(124),s=i(41),o=function(e){return function(t,i,o,l){n(i);var c=r(t),u=a(c),h=s(c.length),d=e?h-1:0,m=e?-1:1;if(o<2)while(1){if(d in u){l=u[d],d+=m;break}if(d+=m,e?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:h>d;d+=m)d in u&&(l=i(l,u[d],d,c));return l}};e.exports={left:o(!1),right:o(!0)}},function(e,t,i){"use strict";var n=i(59),r=i(235),a=i(633),s=i(172);function o(e){var t=new a(e),i=r(a.prototype.request,t);return n.extend(i,a.prototype,t),n.extend(i,t),i}var l=o(s);l.Axios=a,l.create=function(e){return o(n.merge(s,e))},l.Cancel=i(240),l.CancelToken=i(647),l.isCancel=i(239),l.all=function(e){return Promise.all(e)},l.spread=i(648),e.exports=l,e.exports.default=l},function(e,t){
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,i){"use strict";var n=i(172),r=i(59),a=i(642),s=i(643);function o(e){this.defaults=e,this.interceptors={request:new a,response:new a}}o.prototype.request=function(e){"string"===typeof e&&(e=r.merge({url:arguments[0]},arguments[1])),e=r.merge(n,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[s,void 0],i=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)i=i.then(t.shift(),t.shift());return i},r.forEach(["delete","get","head","options"],(function(e){o.prototype[e]=function(t,i){return this.request(r.merge(i||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){o.prototype[e]=function(t,i,n){return this.request(r.merge(n||{},{method:e,url:t,data:i}))}})),e.exports=o},function(e,t,i){(function(e){function i(e,t){for(var i=0,n=e.length-1;n>=0;n--){var r=e[n];"."===r?e.splice(n,1):".."===r?(e.splice(n,1),i++):i&&(e.splice(n,1),i--)}if(t)for(;i--;i)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,i=0,n=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){i=t+1;break}}else-1===n&&(r=!1,n=t+1);return-1===n?"":e.slice(i,n)}function r(e,t){if(e.filter)return e.filter(t);for(var i=[],n=0;n<e.length;n++)t(e[n],n,e)&&i.push(e[n]);return i}t.resolve=function(){for(var t="",n=!1,a=arguments.length-1;a>=-1&&!n;a--){var s=a>=0?arguments[a]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,n="/"===s.charAt(0))}return t=i(r(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),s="/"===a(e,-1);return e=i(r(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&s&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,i){function n(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var i=e.length-1;i>=0;i--)if(""!==e[i])break;return t>i?[]:e.slice(t,i-t+1)}e=t.resolve(e).substr(1),i=t.resolve(i).substr(1);for(var r=n(e.split("/")),a=n(i.split("/")),s=Math.min(r.length,a.length),o=s,l=0;l<s;l++)if(r[l]!==a[l]){o=l;break}var c=[];for(l=o;l<r.length;l++)c.push("..");return c=c.concat(a.slice(o)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),i=47===t,n=-1,r=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),47===t){if(!r){n=a;break}}else r=!1;return-1===n?i?"/":".":i&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var i=n(e);return t&&i.substr(-1*t.length)===t&&(i=i.substr(0,i.length-t.length)),i},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,i=0,n=-1,r=!0,a=0,s=e.length-1;s>=0;--s){var o=e.charCodeAt(s);if(47!==o)-1===n&&(r=!1,n=s+1),46===o?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!r){i=s+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===i+1?"":e.slice(t,n)};var a="b"==="ab".substr(-1)?function(e,t,i){return e.substr(t,i)}:function(e,t,i){return t<0&&(t=e.length+t),e.substr(t,i)}}).call(this,i(236))},function(e,t,i){"use strict";var n=i(59);e.exports=function(e,t){n.forEach(e,(function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])}))}},function(e,t,i){"use strict";var n=i(238);e.exports=function(e,t,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(n("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},function(e,t,i){"use strict";e.exports=function(e,t,i,n,r){return e.config=t,i&&(e.code=i),e.request=n,e.response=r,e}},function(e,t,i){"use strict";var n=i(59);function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var a;if(i)a=i(t);else if(n.isURLSearchParams(t))a=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),a=s.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,i){"use strict";var n=i(59),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,i,a,s={};return e?(n.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),i=n.trim(e.substr(a+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([i]):s[t]?s[t]+", "+i:i}})),s):s}},function(e,t,i){"use strict";var n=i(59);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=r(window.location.href),function(t){var i=n.isString(t)?r(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(e,t,i){"use strict";var n=i(59);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,i,r,a,s){var o=[];o.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),n.isString(r)&&o.push("path="+r),n.isString(a)&&o.push("domain="+a),!0===s&&o.push("secure"),document.cookie=o.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(){}}}()},function(e,t,i){"use strict";var n=i(59);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},function(e,t,i){"use strict";var n=i(59),r=i(644),a=i(239),s=i(172),o=i(645),l=i(646);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){c(e),e.baseURL&&!o(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.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 c(e),t.data=r(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,i){"use strict";var n=i(59);e.exports=function(e,t,i){return n.forEach(i,(function(i){e=i(e,t)})),e}},function(e,t,i){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,i){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,i){"use strict";var n=i(240);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 i=this;e((function(e){i.reason||(i.reason=new n(e),t(i.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},function(e,t,i){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,i){var n=i(80);e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,i){var n={"./af":242,"./af.js":242,"./ar":243,"./ar-dz":244,"./ar-dz.js":244,"./ar-kw":245,"./ar-kw.js":245,"./ar-ly":246,"./ar-ly.js":246,"./ar-ma":247,"./ar-ma.js":247,"./ar-sa":248,"./ar-sa.js":248,"./ar-tn":249,"./ar-tn.js":249,"./ar.js":243,"./az":250,"./az.js":250,"./be":251,"./be.js":251,"./bg":252,"./bg.js":252,"./bm":253,"./bm.js":253,"./bn":254,"./bn.js":254,"./bo":255,"./bo.js":255,"./br":256,"./br.js":256,"./bs":257,"./bs.js":257,"./ca":258,"./ca.js":258,"./cs":259,"./cs.js":259,"./cv":260,"./cv.js":260,"./cy":261,"./cy.js":261,"./da":262,"./da.js":262,"./de":263,"./de-at":264,"./de-at.js":264,"./de-ch":265,"./de-ch.js":265,"./de.js":263,"./dv":266,"./dv.js":266,"./el":267,"./el.js":267,"./en-SG":268,"./en-SG.js":268,"./en-au":269,"./en-au.js":269,"./en-ca":270,"./en-ca.js":270,"./en-gb":271,"./en-gb.js":271,"./en-ie":272,"./en-ie.js":272,"./en-il":273,"./en-il.js":273,"./en-nz":274,"./en-nz.js":274,"./eo":275,"./eo.js":275,"./es":276,"./es-do":277,"./es-do.js":277,"./es-us":278,"./es-us.js":278,"./es.js":276,"./et":279,"./et.js":279,"./eu":280,"./eu.js":280,"./fa":281,"./fa.js":281,"./fi":282,"./fi.js":282,"./fo":283,"./fo.js":283,"./fr":284,"./fr-ca":285,"./fr-ca.js":285,"./fr-ch":286,"./fr-ch.js":286,"./fr.js":284,"./fy":287,"./fy.js":287,"./ga":288,"./ga.js":288,"./gd":289,"./gd.js":289,"./gl":290,"./gl.js":290,"./gom-latn":291,"./gom-latn.js":291,"./gu":292,"./gu.js":292,"./he":293,"./he.js":293,"./hi":294,"./hi.js":294,"./hr":295,"./hr.js":295,"./hu":296,"./hu.js":296,"./hy-am":297,"./hy-am.js":297,"./id":298,"./id.js":298,"./is":299,"./is.js":299,"./it":300,"./it-ch":301,"./it-ch.js":301,"./it.js":300,"./ja":302,"./ja.js":302,"./jv":303,"./jv.js":303,"./ka":304,"./ka.js":304,"./kk":305,"./kk.js":305,"./km":306,"./km.js":306,"./kn":307,"./kn.js":307,"./ko":308,"./ko.js":308,"./ku":309,"./ku.js":309,"./ky":310,"./ky.js":310,"./lb":311,"./lb.js":311,"./lo":312,"./lo.js":312,"./lt":313,"./lt.js":313,"./lv":314,"./lv.js":314,"./me":315,"./me.js":315,"./mi":316,"./mi.js":316,"./mk":317,"./mk.js":317,"./ml":318,"./ml.js":318,"./mn":319,"./mn.js":319,"./mr":320,"./mr.js":320,"./ms":321,"./ms-my":322,"./ms-my.js":322,"./ms.js":321,"./mt":323,"./mt.js":323,"./my":324,"./my.js":324,"./nb":325,"./nb.js":325,"./ne":326,"./ne.js":326,"./nl":327,"./nl-be":328,"./nl-be.js":328,"./nl.js":327,"./nn":329,"./nn.js":329,"./pa-in":330,"./pa-in.js":330,"./pl":331,"./pl.js":331,"./pt":332,"./pt-br":333,"./pt-br.js":333,"./pt.js":332,"./ro":334,"./ro.js":334,"./ru":335,"./ru.js":335,"./sd":336,"./sd.js":336,"./se":337,"./se.js":337,"./si":338,"./si.js":338,"./sk":339,"./sk.js":339,"./sl":340,"./sl.js":340,"./sq":341,"./sq.js":341,"./sr":342,"./sr-cyrl":343,"./sr-cyrl.js":343,"./sr.js":342,"./ss":344,"./ss.js":344,"./sv":345,"./sv.js":345,"./sw":346,"./sw.js":346,"./ta":347,"./ta.js":347,"./te":348,"./te.js":348,"./tet":349,"./tet.js":349,"./tg":350,"./tg.js":350,"./th":351,"./th.js":351,"./tl-ph":352,"./tl-ph.js":352,"./tlh":353,"./tlh.js":353,"./tr":354,"./tr.js":354,"./tzl":355,"./tzl.js":355,"./tzm":356,"./tzm-latn":357,"./tzm-latn.js":357,"./tzm.js":356,"./ug-cn":358,"./ug-cn.js":358,"./uk":359,"./uk.js":359,"./ur":360,"./ur.js":360,"./uz":361,"./uz-latn":362,"./uz-latn.js":362,"./uz.js":361,"./vi":363,"./vi.js":363,"./x-pseudo":364,"./x-pseudo.js":364,"./yo":365,"./yo.js":365,"./zh-cn":366,"./zh-cn.js":366,"./zh-hk":367,"./zh-hk.js":367,"./zh-tw":368,"./zh-tw.js":368};function r(e){var t=a(e);return i(t)}function a(e){if(!i.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}r.keys=function(){return Object.keys(n)},r.resolve=a,e.exports=r,r.id=651},function(e,t,i){var n=i(21),r=i(241);n({target:"String",proto:!0},{repeat:r})},function(e,t,i){"use strict";e.exports=r,e.exports.default=r;var n=i(691);function r(e,t){if(!(this instanceof r))return new r(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function a(e,t,i){if(!i)return t.indexOf(e);for(var n=0;n<t.length;n++)if(i(e,t[n]))return n;return-1}function s(e,t){o(e,0,e.children.length,t,e)}function o(e,t,i,n,r){r||(r=p(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var a,s=t;s<i;s++)a=e.children[s],l(r,e.leaf?n(a):a);return r}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function h(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function f(e,t){var i=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),a=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,a-n)}function g(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function y(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function p(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(e,t,i,r,a){var s,o=[t,i];while(o.length)i=o.pop(),t=o.pop(),i-t<=r||(s=t+Math.ceil((i-t)/r/2)*r,n(e,s,t,i,a),o.push(t,s,s,i))}r.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,i=[],n=this.toBBox;if(!y(e,t))return i;var r,a,s,o,l=[];while(t){for(r=0,a=t.children.length;r<a;r++)s=t.children[r],o=t.leaf?n(s):s,y(e,o)&&(t.leaf?i.push(s):g(e,o)?this._all(s,i):l.push(s));t=l.pop()}return i},collides:function(e){var t=this.data,i=this.toBBox;if(!y(e,t))return!1;var n,r,a,s,o=[];while(t){for(n=0,r=t.children.length;n<r;n++)if(a=t.children[n],s=t.leaf?i(a):a,y(e,s)){if(t.leaf||g(e,s))return!0;o.push(a)}t=o.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=p([]),this},remove:function(e,t){if(!e)return this;var i,n,r,s,o=this.data,l=this.toBBox(e),c=[],u=[];while(o||c.length){if(o||(o=c.pop(),n=c[c.length-1],i=u.pop(),s=!0),o.leaf&&(r=a(e,o.children,t),-1!==r))return o.children.splice(r,1),c.push(o),this._condense(c),this;s||o.leaf||!g(o,l)?n?(i++,o=n.children[i],s=!1):o=null:(c.push(o),u.push(i),i=0,n=o,o=o.children[0])}return this},toBBox:function(e){return e},compareMinX:c,compareMinY:u,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){var i=[];while(e)e.leaf?t.push.apply(t,e.children):i.push.apply(i,e.children),e=i.pop();return t},_build:function(e,t,i,n){var r,a=i-t+1,o=this._maxEntries;if(a<=o)return r=p(e.slice(t,i+1)),s(r,this.toBBox),r;n||(n=Math.ceil(Math.log(a)/Math.log(o)),o=Math.ceil(a/Math.pow(o,n-1))),r=p([]),r.leaf=!1,r.height=n;var l,c,u,h,d=Math.ceil(a/o),m=d*Math.ceil(Math.sqrt(o));for(v(e,t,i,m,this.compareMinX),l=t;l<=i;l+=m)for(u=Math.min(l+m-1,i),v(e,l,u,d,this.compareMinY),c=l;c<=u;c+=d)h=Math.min(c+d-1,u),r.children.push(this._build(e,c,h,n-1));return s(r,this.toBBox),r},_chooseSubtree:function(e,t,i,n){var r,a,s,o,l,c,u,d;while(1){if(n.push(t),t.leaf||n.length-1===i)break;for(u=d=1/0,r=0,a=t.children.length;r<a;r++)s=t.children[r],l=h(s),c=m(e,s)-l,c<d?(d=c,u=l<u?l:u,o=s):c===d&&l<u&&(u=l,o=s);t=o||t.children[0]}return t},_insert:function(e,t,i){var n=this.toBBox,r=i?e:n(e),a=[],s=this._chooseSubtree(r,this.data,t,a);s.children.push(e),l(s,r);while(t>=0){if(!(a[t].children.length>this._maxEntries))break;this._split(a,t),t--}this._adjustParentBBoxes(r,a,t)},_split:function(e,t){var i=e[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);var a=this._chooseSplitIndex(i,r,n),o=p(i.children.splice(a,i.children.length-a));o.height=i.height,o.leaf=i.leaf,s(i,this.toBBox),s(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(i,o)},_splitRoot:function(e,t){this.data=p([e,t]),this.data.height=e.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,i){var n,r,a,s,l,c,u,d;for(c=u=1/0,n=t;n<=i-t;n++)r=o(e,0,n,this.toBBox),a=o(e,n,i,this.toBBox),s=f(r,a),l=h(r)+h(a),s<c?(c=s,d=n,u=l<u?l:u):s===c&&l<u&&(u=l,d=n);return d},_chooseSplitAxis:function(e,t,i){var n=e.leaf?this.compareMinX:c,r=e.leaf?this.compareMinY:u,a=this._allDistMargin(e,t,i,n),s=this._allDistMargin(e,t,i,r);a<s&&e.children.sort(n)},_allDistMargin:function(e,t,i,n){e.children.sort(n);var r,a,s=this.toBBox,c=o(e,0,t,s),u=o(e,i-t,i,s),h=d(c)+d(u);for(r=t;r<i-t;r++)a=e.children[r],l(c,e.leaf?s(a):a),h+=d(c);for(r=i-t-1;r>=t;r--)a=e.children[r],l(u,e.leaf?s(a):a),h+=d(u);return h},_adjustParentBBoxes:function(e,t,i){for(var n=i;n>=0;n--)l(t[n],e)},_condense:function(e){for(var t,i=e.length-1;i>=0;i--)0===e[i].children.length?i>0?(t=e[i-1].children,t.splice(t.indexOf(e[i]),1)):this.clear():s(e[i],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},function(e,t,i){"use strict";(function(e){i(17),i(23),i(22),i(9),i(36),i(66),i(659),i(18),i(33),i(12),i(24),i(26),i(8),i(52),i(25),i(104),i(35),i(87),i(55),i(662),i(10),i(20);var n=i(371),r=i(14),a=i(1),s=i(0),o=i(117),l=i.n(o),c=i(16),u=i.n(c),h=i(673),d=i(184),m=i(578),f=i(674),g=i(7),y=i(137),p=function(){function t(e){Object(a["a"])(this,t),this.terrainProvider=e.terrainProvider||null,this.projection=e.projection||null,this.directions={},this.options=e,this.meta=[],this.extent=ol.extent.createEmpty(),this.minZoom=Object(g["h"])(e.minZoom,0),this.maxZoom=Object(g["h"])(e.maxZoom,0),this.hideLevels=Object(g["h"])(e.hideLevels,0),this.tiledSources=[],this.tileLevel=null,this.tileGrid=ol.tilegrid.createXYZ(),this.tileFootPrintsSource=new ol.source.Vector,this.tileFootPrintsLayer=new ol.layer.Vector({source:this.tileFootPrintsSource})}return Object(s["a"])(t,[{key:"loadData",value:function(e){var t=this,i=[],n=Array.isArray(e)?e:[e],r=u.a.create();return r.interceptors.response.use((function(e){return e}),(function(e){return String(e.response.status).startsWith("4")&&e.config&&!e.config.retriedWithNewURL?(e.config.retriedWithNewURL=!0,e.config.url="".concat(e.config.url,"/image.json"),r.request(e.config)):Promise.reject(e)})),n.forEach((function(e){i.push(r.get(e).then((function(e){var i=e.data,n=e.config,r=n.url.substring(0,n.url.lastIndexOf("/"));return t.handleMetadataResponse(i,r)})).catch((function(t){console.log("Invalid image.json data. Please correct, File: ".concat(e,", Error ").concat(t.message))})))})),Promise.all(i)}},{key:"handleMetadataResponse",value:function(e,i){var n=t.getVersion(e);return n.version>=3.5||3.4===n.version&&n.buildNumber>=36?this.handleMetadataResponseV35(e,i,n):(console.log("Could not load Meta Data, only meta data version 3.5 and higher are supported"),Promise.resolve())}},{key:"getImageMeta",value:function(e,t,i,n,r){var a=this.hideLevels?i.slice(0,i.length-this.hideLevels):i,s=this.meta.find((function(i){return i.isEqual(e,t,a)}));if(s)return s;var o=new f["a"]({url:e,size:t,tileSize:n,tileResolution:a,minZoom:this.minZoom,maxZoom:this.maxZoom}),l=new h["a"]({size:t,view:o,version:r.version,buildNumber:r.buildNumber});return this.meta.push(l),l}},{key:"handleMetadataResponseV35",value:function(t,i,n){var r=this,a=[t.generalImageInfo.width,t.generalImageInfo.height],s=t.generalImageInfo["tile-resolution"],o=[t.generalImageInfo["tile-width"],t.generalImageInfo["tile-width"]];t.generalImageInfo.width&&t.generalImageInfo.height&&t.generalImageInfo["tile-resolution"]&&this.getImageMeta(i,a,s,o,n);var c=[];t.generalImageInfo.cameraParameter&&Array.isArray(t.generalImageInfo.cameraParameter)&&t.generalImageInfo.cameraParameter.forEach((function(e){c.push(new m["a"](e))}));var u=null;if(t.generalImageInfo.crs){var h=l()();e.proj4.defs(h,t.generalImageInfo.crs),u=ol.proj.get(h)}var d={url:i,version:n,size:a,tileResolution:s,tileSize:o,cameras:c,imageProjection:u},f=null!=t.tileLevel?{}:this.handleImageResponse(t,d);if(t.tileLevel){if(this.tileLevel&&this.tileLevel!==t.tileLevel)throw new Error("Cannot add multiple tiled image.json data sources, if they do not have the same tile level");var g=!this.isTiled;this.tileLevel=t.tileLevel,this.tiledSources.push({imageConfig:d,availableTiles:new Set(t.availableTiles),cache:new Set});var y=t.availableTiles.map((function(e){var t=e.split("/").map((function(e){return Number(e)}));t[2]+=1,t[2]*=-1;var i=new ol.Feature({geometry:ol.geom.Polygon.fromExtent(r.tileGrid.getTileCoordExtent(t))});return i.setId(e),i})).filter((function(e){return!r.tileFootPrintsSource.getFeatureById(e.getId())}));if(this.tileFootPrintsSource.addFeatures(y),g)return this.loadTiledImageJson(ol.extent.getCenter(this.tileFootPrintsSource.getExtent()))}return this.handleDirectionOptions(f),Promise.resolve()}},{key:"handleDirectionOptions",value:function(e){var t=this;Object.keys(e).forEach((function(i){t.directions[i]?t.directions[i].addOptions(e[i]):t.directions[i]=t.createDirection(e[i]),t.extent=ol.extent.extend(t.extent,t.directions[i].footPrintsLayer.getSource().getExtent())}))}},{key:"getTileCoordinate",value:function(e){var t=this.tileGrid.getTileCoordForCoordAndZ(e,this.tileLevel);return t[2]*=-1,t[2]-=1,t}},{key:"loadTiledImageJson",value:function(e){return this.loadTile(this.getTileCoordinate(e).join("/"))}},{key:"loadTile",value:function(e){var t=this,i=this.tileFootPrintsSource.getFeatureById(e);return i&&this.tileFootPrintsSource.removeFeature(i),Promise.all(this.tiledSources.map((function(i){if(i.availableTiles.has(e)&&!i.cache.has(e)){i.cache.add(e);var n=i.imageConfig.url,r=u.a.create();return r.get("".concat(n,"/").concat(e,".json")).then((function(e){var n=e.data,r=t.handleImageResponse(n,i.imageConfig);t.handleDirectionOptions(r)})).catch((function(e){console.error(e)}))}return Promise.resolve()})))}},{key:"handleImageResponse",value:function(e,t){var i=this,a=t.url,s=t.version,o=t.size,l=t.tileResolution,c=t.tileSize,u=t.cameras,h=t.imageProjection,m=e.images.shift(),f={name:m.indexOf("name"),width:m.indexOf("width"),height:m.indexOf("height"),tileResolution:m.indexOf("tile-resolution"),viewDirection:m.indexOf("view-direction"),viewDirectionAngle:m.indexOf("view-direction-angle"),groundCoordinates:m.indexOf("groundCoordinates"),centerPointOnGround:m.indexOf("centerPointOnGround"),cameraIndex:m.indexOf("camera-index"),projectionCenter:m.indexOf("projection-center"),pToRealworld:m.indexOf("p-to-realworld"),pToImage:m.indexOf("p-to-image")},g={};return e.images.forEach((function(e){var t=[];e[f.pToRealworld]&&e[f.pToRealworld].forEach((function(e){t.push.apply(t,Object(r["a"])(e))}));var m=e[f.pToRealworld]?Object(n["a"])(Cesium.Matrix3,t):null,y=[];e[f.pToImage]&&(e[f.pToImage].forEach((function(e){y.push.apply(y,Object(r["a"])(e))})),y.push(0,0,0,1));var p=e[f.projectionCenter]?Cesium.Cartesian3.fromArray(e[f.projectionCenter]):null,v=e[f.pToImage]?Object(n["a"])(Cesium.Matrix4,y):null,_=e[f.width]&&e[f.height]?[e[f.width],e[f.height]]:o,b=e[f.tileResolution]?e[f.tileResolution]:l,L=i.getImageMeta(a,_,b,c,s),w={name:e[f.name],viewDirection:e[f.viewDirection],viewDirectionAngle:e[f.viewDirectionAngle],groundCoordinates:e[f.groundCoordinates],centerPointOnGround:e[f.centerPointOnGround],meta:L,camera:u[e[f.cameraIndex]],projectionCenter:p,pToRealworld:m,pToImage:v,projection:i.projection||h,terrainProvider:i.terrainProvider},M=new d["a"](w);g[M.viewDirection]||(g[M.viewDirection]={direction:M.viewDirection,images:{},rTreeItems:[],footPrintFeatures:[],projection:i.projection||h,terrainProvider:i.terrainProvider}),g[M.viewDirection].images[M.name]=M,g[M.viewDirection].rTreeItems.push({minX:M.centerPointOnGround[0],minY:M.centerPointOnGround[1],maxX:M.centerPointOnGround[0],maxY:M.centerPointOnGround[1],name:M.name});var k=new ol.geom.Polygon([M.groundCoordinates.concat([M.groundCoordinates[0]])]);k.transform(i.projection||h,ol.proj.get("EPSG:3857"));var O=new ol.Feature({geometry:k});O.setId(M.name),g[M.viewDirection].footPrintFeatures.push(O)})),g}},{key:"createDirection",value:function(e){return new y["a"](e)}},{key:"getImageByName",value:function(e){for(var t=Object.values(this.directions),i=0;i<t.length;i++){var n=t[i];if(n.images[e])return n.images[e]}return null}},{key:"destroy",value:function(){this.directions={},this.meta=[],this.tiledSources=[],this.tileGrid=null,this.tileFootPrintsSource.clear(),this.tileFootPrintsLayer=null}},{key:"isTiled",get:function(){return this.tileLevel>0}}],[{key:"getVersion",value:function(e){var t={version:null,buildNumber:null};if(e.version){var i=e.version.match(/\d+\.\d+/);i&&(t.version=Number(i[0]));var n=e.version.match(/-\d+-/);n&&(t.buildNumber=Number(n[0].match(/\d+/)[0]))}return t}}]),t}();t["a"]=p}).call(this,i(123))},function(e,t,i){"use strict";var n=i(692);function r(e,t,i,r,o,l){var c,u,h,d,m=e.data,f=[],g=e.toBBox,y=new n(null,a);while(m){for(c=0;c<m.children.length;c++)u=m.children[c],h=s(t,i,m.leaf?g(u):u),(!l||h<=l)&&y.push({node:u,isItem:m.leaf,dist:h});while(y.length&&y.peek().isItem)if(d=y.pop().node,o&&!o(d)||f.push(d),r&&f.length===r)return f;m=y.pop(),m&&(m=m.node)}return f}function a(e,t){return e.dist-t.dist}function s(e,t,i){var n=o(e,i.minX,i.maxX),r=o(t,i.minY,i.maxY);return n*n+r*r}function o(e,t,i){return e<t?t-e:e<=i?0:e-i}e.exports=r,e.exports.default=r},function(e,t,i){var n=i(726);e.exports=n},function(e,t,i){"use strict";e.exports={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]}},,function(e,t,i){var n=i(21),r=i(660);n({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(e,t,i){"use strict";var n=i(70),r=i(71),a=i(41),s=i(96),o=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,u=s("lastIndexOf");e.exports=c||u?function(e){if(c)return l.apply(this,arguments)||0;var t=n(this),i=a(t.length),s=i-1;for(arguments.length>1&&(s=o(s,r(arguments[1]))),s<0&&(s=i+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},function(e,t,i){var n=i(42),r=i(39),a=i(139),s=i(180).UNSUPPORTED_Y;n&&("g"!=/./g.flags||s)&&r.f(RegExp.prototype,"flags",{configurable:!0,get:a})},function(e,t,i){"use strict";var n=i(21),r=i(98).f,a=i(41),s=i(223),o=i(60),l=i(224),c=i(100),u="".startsWith,h=Math.min,d=l("startsWith"),m=!c&&!d&&!!function(){var e=r(String.prototype,"startsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!m&&!d},{startsWith:function(e){var t=String(o(this));s(e);var i=a(h(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return u?u.call(t,n,i):t.slice(i,i+n.length)===n}})},function(e,t){var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(i){var n=new Uint8Array(16);e.exports=function(){return i(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},function(e,t){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);function r(e,t){var n=t||0,r=i;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}e.exports=r},function(e,t,i){"use strict";var n=i(31),r=i(42),a=i(56).NATIVE_ARRAY_BUFFER,s=i(61),o=i(230),l=i(28),c=i(135),u=i(71),h=i(41),d=i(666),m=i(694),f=i(91).f,g=i(39).f,y=i(234),p=i(103),v=i(75),_=v.get,b=v.set,L="ArrayBuffer",w="DataView",M="prototype",k="Wrong length",O="Wrong index",T=n[L],S=T,C=n[w],j=n.RangeError,E=m.pack,I=m.unpack,D=function(e){return[255&e]},P=function(e){return[255&e,e>>8&255]},A=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},x=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Y=function(e){return E(e,23,4)},N=function(e){return E(e,52,8)},F=function(e,t){g(e[M],t,{get:function(){return _(this)[t]}})},R=function(e,t,i,n){var r=d(i),a=_(e);if(r+t>a.byteLength)throw j(O);var s=_(a.buffer).bytes,o=r+a.byteOffset,l=s.slice(o,o+t);return n?l:l.reverse()},H=function(e,t,i,n,r,a){var s=d(i),o=_(e);if(s+t>o.byteLength)throw j(O);for(var l=_(o.buffer).bytes,c=s+o.byteOffset,u=n(+r),h=0;h<t;h++)l[c+h]=u[a?h:t-h-1]};if(a){if(!l((function(){T(1)}))||!l((function(){new T(-1)}))||l((function(){return new T,new T(1.5),new T(NaN),T.name!=L}))){S=function(e){return c(this,S),new T(d(e))};for(var G,z=S[M]=T[M],B=f(T),V=0;B.length>V;)(G=B[V++])in S||s(S,G,T[G]);z.constructor=S}var U=new C(new S(2)),W=C[M].setInt8;U.setInt8(0,2147483648),U.setInt8(1,2147483649),!U.getInt8(0)&&U.getInt8(1)||o(C[M],{setInt8:function(e,t){W.call(this,e,t<<24>>24)},setUint8:function(e,t){W.call(this,e,t<<24>>24)}},{unsafe:!0})}else S=function(e){c(this,S,L);var t=d(e);b(this,{bytes:y.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},C=function(e,t,i){c(this,C,w),c(e,S,w);var n=_(e).byteLength,a=u(t);if(a<0||a>n)throw j("Wrong offset");if(i=void 0===i?n-a:h(i),a+i>n)throw j(k);b(this,{buffer:e,byteLength:i,byteOffset:a}),r||(this.buffer=e,this.byteLength=i,this.byteOffset=a)},r&&(F(S,"byteLength"),F(C,"buffer"),F(C,"byteLength"),F(C,"byteOffset")),o(C[M],{getInt8:function(e){return R(this,1,e)[0]<<24>>24},getUint8:function(e){return R(this,1,e)[0]},getInt16:function(e){var t=R(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=R(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return x(R(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return x(R(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return I(R(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return I(R(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){H(this,1,e,D,t)},setUint8:function(e,t){H(this,1,e,D,t)},setInt16:function(e,t){H(this,2,e,P,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){H(this,2,e,P,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){H(this,4,e,A,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){H(this,4,e,A,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){H(this,4,e,Y,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){H(this,8,e,N,t,arguments.length>2?arguments[2]:void 0)}});p(S,L),p(C,w),e.exports={ArrayBuffer:S,DataView:C}},function(e,t,i){var n=i(71),r=i(41);e.exports=function(e){if(void 0===e)return 0;var t=n(e),i=r(t);if(t!==i)throw RangeError("Wrong length or index");return i}},function(e,t,i){var n=i(698);e.exports=function(e,t){var i=n(e);if(i%t)throw RangeError("Wrong offset");return i}},function(e,t,i){"use strict";var n=i(21),r=i(162).trim,a=i(725);n({target:"String",proto:!0,forced:a("trim")},{trim:function(){return r(this)}})},function(e,t,i){"use strict";i(35);var n,r=i(21),a=i(42),s=i(670),o=i(31),l=i(372),c=i(62),u=i(135),h=i(44),d=i(728),m=i(729),f=i(181).codeAt,g=i(730),y=i(103),p=i(671),v=i(75),_=o.URL,b=p.URLSearchParams,L=p.getState,w=v.set,M=v.getterFor("URL"),k=Math.floor,O=Math.pow,T="Invalid authority",S="Invalid scheme",C="Invalid host",j="Invalid port",E=/[A-Za-z]/,I=/[\d+\-.A-Za-z]/,D=/\d/,P=/^(0x|0X)/,A=/^[0-7]+$/,x=/^\d+$/,Y=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,R=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,H=/[\u0009\u000A\u000D]/g,G=function(e,t){var i,n,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return C;if(i=B(t.slice(1,-1)),!i)return C;e.host=i}else if(X(e)){if(t=g(t),N.test(t))return C;if(i=z(t),null===i)return C;e.host=i}else{if(F.test(t))return C;for(i="",n=m(t),r=0;r<n.length;r++)i+=Z(n[r],W);e.host=i}},z=function(e){var t,i,n,r,a,s,o,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),t=l.length,t>4)return e;for(i=[],n=0;n<t;n++){if(r=l[n],""==r)return e;if(a=10,r.length>1&&"0"==r.charAt(0)&&(a=P.test(r)?16:8,r=r.slice(8==a?1:2)),""===r)s=0;else{if(!(10==a?x:8==a?A:Y).test(r))return e;s=parseInt(r,a)}i.push(s)}for(n=0;n<t;n++)if(s=i[n],n==t-1){if(s>=O(256,5-t))return null}else if(s>255)return null;for(o=i.pop(),n=0;n<i.length;n++)o+=i[n]*O(256,3-n);return o},B=function(e){var t,i,n,r,a,s,o,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,d=function(){return e.charAt(h)};if(":"==d()){if(":"!=e.charAt(1))return;h+=2,c++,u=c}while(d()){if(8==c)return;if(":"!=d()){t=i=0;while(i<4&&Y.test(d()))t=16*t+parseInt(d(),16),h++,i++;if("."==d()){if(0==i)return;if(h-=i,c>6)return;n=0;while(d()){if(r=null,n>0){if(!("."==d()&&n<4))return;h++}if(!D.test(d()))return;while(D.test(d())){if(a=parseInt(d(),10),null===r)r=a;else{if(0==r)return;r=10*r+a}if(r>255)return;h++}l[c]=256*l[c]+r,n++,2!=n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[c++]=t}else{if(null!==u)return;h++,c++,u=c}}if(null!==u){s=c-u,c=7;while(0!=c&&s>0)o=l[c],l[c--]=l[u+s-1],l[u+--s]=o}else if(8!=c)return;return l},V=function(e){for(var t=null,i=1,n=null,r=0,a=0;a<8;a++)0!==e[a]?(r>i&&(t=n,i=r),n=null,r=0):(null===n&&(n=a),++r);return r>i&&(t=n,i=r),t},U=function(e){var t,i,n,r;if("number"==typeof e){for(t=[],i=0;i<4;i++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=V(e),i=0;i<8;i++)r&&0===e[i]||(r&&(r=!1),n===i?(t+=i?":":"::",r=!0):(t+=e[i].toString(16),i<7&&(t+=":")));return"["+t+"]"}return e},W={},q=d({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),J=d({},q,{"#":1,"?":1,"{":1,"}":1}),K=d({},J,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var i=f(e,0);return i>32&&i<127&&!h(t,e)?e:encodeURIComponent(e)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(e){return h(Q,e.scheme)},$=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var i;return 2==e.length&&E.test(e.charAt(0))&&(":"==(i=e.charAt(1))||!t&&"|"==i)},ie=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ne=function(e){var t=e.path,i=t.length;!i||"file"==e.scheme&&1==i&&te(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},ae=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},se={},oe={},le={},ce={},ue={},he={},de={},me={},fe={},ge={},ye={},pe={},ve={},_e={},be={},Le={},we={},Me={},ke={},Oe={},Te={},Se=function(e,t,i,r){var a,s,o,l,c=i||se,u=0,d="",f=!1,g=!1,y=!1;i||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(R,"")),t=t.replace(H,""),a=m(t);while(u<=a.length){switch(s=a[u],c){case se:if(!s||!E.test(s)){if(i)return S;c=le;continue}d+=s.toLowerCase(),c=oe;break;case oe:if(s&&(I.test(s)||"+"==s||"-"==s||"."==s))d+=s.toLowerCase();else{if(":"!=s){if(i)return S;d="",c=le,u=0;continue}if(i&&(X(e)!=h(Q,d)||"file"==d&&($(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,i)return void(X(e)&&Q[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?c=_e:X(e)&&r&&r.scheme==e.scheme?c=ce:X(e)?c=me:"/"==a[u+1]?(c=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=ke)}break;case le:if(!r||r.cannotBeABaseURL&&"#"!=s)return S;if(r.cannotBeABaseURL&&"#"==s){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,c=Te;break}c="file"==r.scheme?_e:he;continue;case ce:if("/"!=s||"/"!=a[u+1]){c=he;continue}c=fe,u++;break;case ue:if("/"==s){c=ge;break}c=Me;continue;case he:if(e.scheme=r.scheme,s==n)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==s||"\\"==s&&X(e))c=de;else if("?"==s)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",c=Oe;else{if("#"!=s){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),c=Me;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Te}break;case de:if(!X(e)||"/"!=s&&"\\"!=s){if("/"!=s){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,c=Me;continue}c=ge}else c=fe;break;case me:if(c=fe,"/"!=s||"/"!=d.charAt(u+1))continue;u++;break;case fe:if("/"!=s&&"\\"!=s){c=ge;continue}break;case ge:if("@"==s){f&&(d="%40"+d),f=!0,o=m(d);for(var p=0;p<o.length;p++){var v=o[p];if(":"!=v||y){var _=Z(v,K);y?e.password+=_:e.username+=_}else y=!0}d=""}else if(s==n||"/"==s||"?"==s||"#"==s||"\\"==s&&X(e)){if(f&&""==d)return T;u-=m(d).length+1,d="",c=ye}else d+=s;break;case ye:case pe:if(i&&"file"==e.scheme){c=Le;continue}if(":"!=s||g){if(s==n||"/"==s||"?"==s||"#"==s||"\\"==s&&X(e)){if(X(e)&&""==d)return C;if(i&&""==d&&($(e)||null!==e.port))return;if(l=G(e,d),l)return l;if(d="",c=we,i)return;continue}"["==s?g=!0:"]"==s&&(g=!1),d+=s}else{if(""==d)return C;if(l=G(e,d),l)return l;if(d="",c=ve,i==pe)return}break;case ve:if(!D.test(s)){if(s==n||"/"==s||"?"==s||"#"==s||"\\"==s&&X(e)||i){if(""!=d){var b=parseInt(d,10);if(b>65535)return j;e.port=X(e)&&b===Q[e.scheme]?null:b,d=""}if(i)return;c=we;continue}return j}d+=s;break;case _e:if(e.scheme="file","/"==s||"\\"==s)c=be;else{if(!r||"file"!=r.scheme){c=Me;continue}if(s==n)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==s)e.host=r.host,e.path=r.path.slice(),e.query="",c=Oe;else{if("#"!=s){ie(a.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),ne(e)),c=Me;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Te}}break;case be:if("/"==s||"\\"==s){c=Le;break}r&&"file"==r.scheme&&!ie(a.slice(u).join(""))&&(te(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),c=Me;continue;case Le:if(s==n||"/"==s||"\\"==s||"?"==s||"#"==s){if(!i&&te(d))c=Me;else if(""==d){if(e.host="",i)return;c=we}else{if(l=G(e,d),l)return l;if("localhost"==e.host&&(e.host=""),i)return;d="",c=we}continue}d+=s;break;case we:if(X(e)){if(c=Me,"/"!=s&&"\\"!=s)continue}else if(i||"?"!=s)if(i||"#"!=s){if(s!=n&&(c=Me,"/"!=s))continue}else e.fragment="",c=Te;else e.query="",c=Oe;break;case Me:if(s==n||"/"==s||"\\"==s&&X(e)||!i&&("?"==s||"#"==s)){if(ae(d)?(ne(e),"/"==s||"\\"==s&&X(e)||e.path.push("")):re(d)?"/"==s||"\\"==s&&X(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(s==n||"?"==s||"#"==s))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==s?(e.query="",c=Oe):"#"==s&&(e.fragment="",c=Te)}else d+=Z(s,J);break;case ke:"?"==s?(e.query="",c=Oe):"#"==s?(e.fragment="",c=Te):s!=n&&(e.path[0]+=Z(s,W));break;case Oe:i||"#"!=s?s!=n&&("'"==s&&X(e)?e.query+="%27":e.query+="#"==s?"%23":Z(s,W)):(e.fragment="",c=Te);break;case Te:s!=n&&(e.fragment+=Z(s,q));break}u++}},Ce=function(e){var t,i,n=u(this,Ce,"URL"),r=arguments.length>1?arguments[1]:void 0,s=String(e),o=w(n,{type:"URL"});if(void 0!==r)if(r instanceof Ce)t=M(r);else if(i=Se(t={},String(r)),i)throw TypeError(i);if(i=Se(o,s,null,t),i)throw TypeError(i);var l=o.searchParams=new b,c=L(l);c.updateSearchParams(o.query),c.updateURL=function(){o.query=String(l)||null},a||(n.href=Ee.call(n),n.origin=Ie.call(n),n.protocol=De.call(n),n.username=Pe.call(n),n.password=Ae.call(n),n.host=xe.call(n),n.hostname=Ye.call(n),n.port=Ne.call(n),n.pathname=Fe.call(n),n.search=Re.call(n),n.searchParams=He.call(n),n.hash=Ge.call(n))},je=Ce.prototype,Ee=function(){var e=M(this),t=e.scheme,i=e.username,n=e.password,r=e.host,a=e.port,s=e.path,o=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",$(e)&&(c+=i+(n?":"+n:"")+"@"),c+=U(r),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==o&&(c+="?"+o),null!==l&&(c+="#"+l),c},Ie=function(){var e=M(this),t=e.scheme,i=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(n){return"null"}return"file"!=t&&X(e)?t+"://"+U(e.host)+(null!==i?":"+i:""):"null"},De=function(){return M(this).scheme+":"},Pe=function(){return M(this).username},Ae=function(){return M(this).password},xe=function(){var e=M(this),t=e.host,i=e.port;return null===t?"":null===i?U(t):U(t)+":"+i},Ye=function(){var e=M(this).host;return null===e?"":U(e)},Ne=function(){var e=M(this).port;return null===e?"":String(e)},Fe=function(){var e=M(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Re=function(){var e=M(this).query;return e?"?"+e:""},He=function(){return M(this).searchParams},Ge=function(){var e=M(this).fragment;return e?"#"+e:""},ze=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&l(je,{href:ze(Ee,(function(e){var t=M(this),i=String(e),n=Se(t,i);if(n)throw TypeError(n);L(t.searchParams).updateSearchParams(t.query)})),origin:ze(Ie),protocol:ze(De,(function(e){var t=M(this);Se(t,String(e)+":",se)})),username:ze(Pe,(function(e){var t=M(this),i=m(String(e));if(!ee(t)){t.username="";for(var n=0;n<i.length;n++)t.username+=Z(i[n],K)}})),password:ze(Ae,(function(e){var t=M(this),i=m(String(e));if(!ee(t)){t.password="";for(var n=0;n<i.length;n++)t.password+=Z(i[n],K)}})),host:ze(xe,(function(e){var t=M(this);t.cannotBeABaseURL||Se(t,String(e),ye)})),hostname:ze(Ye,(function(e){var t=M(this);t.cannotBeABaseURL||Se(t,String(e),pe)})),port:ze(Ne,(function(e){var t=M(this);ee(t)||(e=String(e),""==e?t.port=null:Se(t,e,ve))})),pathname:ze(Fe,(function(e){var t=M(this);t.cannotBeABaseURL||(t.path=[],Se(t,e+"",we))})),search:ze(Re,(function(e){var t=M(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Se(t,e,Oe)),L(t.searchParams).updateSearchParams(t.query)})),searchParams:ze(He),hash:ze(Ge,(function(e){var t=M(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Se(t,e,Te)):t.fragment=null}))}),c(je,"toJSON",(function(){return Ee.call(this)}),{enumerable:!0}),c(je,"toString",(function(){return Ee.call(this)}),{enumerable:!0}),_){var Be=_.createObjectURL,Ve=_.revokeObjectURL;Be&&c(Ce,"createObjectURL",(function(e){return Be.apply(_,arguments)})),Ve&&c(Ce,"revokeObjectURL",(function(e){return Ve.apply(_,arguments)}))}y(Ce,"URL"),r({global:!0,forced:!s,sham:!a},{URL:Ce})},function(e,t,i){var n=i(28),r=i(32),a=i(100),s=r("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,i="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),i+=n+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},function(e,t,i){"use strict";i(232);var n=i(21),r=i(101),a=i(670),s=i(62),o=i(230),l=i(103),c=i(378),u=i(75),h=i(135),d=i(44),m=i(120),f=i(143),g=i(40),y=i(43),p=i(97),v=i(90),_=i(731),b=i(170),L=i(32),w=r("fetch"),M=r("Headers"),k=L("iterator"),O="URLSearchParams",T=O+"Iterator",S=u.set,C=u.getterFor(O),j=u.getterFor(T),E=/\+/g,I=Array(4),D=function(e){return I[e-1]||(I[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},P=function(e){try{return decodeURIComponent(e)}catch(t){return e}},A=function(e){var t=e.replace(E," "),i=4;try{return decodeURIComponent(t)}catch(n){while(i)t=t.replace(D(i--),P);return t}},x=/[!'()~]|%20/g,Y={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(e){return Y[e]},F=function(e){return encodeURIComponent(e).replace(x,N)},R=function(e,t){if(t){var i,n,r=t.split("&"),a=0;while(a<r.length)i=r[a++],i.length&&(n=i.split("="),e.push({key:A(n.shift()),value:A(n.join("="))}))}},H=function(e){this.entries.length=0,R(this.entries,e)},G=function(e,t){if(e<t)throw TypeError("Not enough arguments")},z=c((function(e,t){S(this,{type:T,iterator:_(C(e).entries),kind:t})}),"Iterator",(function(){var e=j(this),t=e.kind,i=e.iterator.next(),n=i.value;return i.done||(i.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),i})),B=function(){h(this,B,O);var e,t,i,n,r,a,s,o,l,c=arguments.length>0?arguments[0]:void 0,u=this,m=[];if(S(u,{type:O,entries:m,updateURL:function(){},updateSearchParams:H}),void 0!==c)if(y(c))if(e=b(c),"function"===typeof e){t=e.call(c),i=t.next;while(!(n=i.call(t)).done){if(r=_(g(n.value)),a=r.next,(s=a.call(r)).done||(o=a.call(r)).done||!a.call(r).done)throw TypeError("Expected sequence with length 2");m.push({key:s.value+"",value:o.value+""})}}else for(l in c)d(c,l)&&m.push({key:l,value:c[l]+""});else R(m,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},V=B.prototype;o(V,{append:function(e,t){G(arguments.length,2);var i=C(this);i.entries.push({key:e+"",value:t+""}),i.updateURL()},delete:function(e){G(arguments.length,1);var t=C(this),i=t.entries,n=e+"",r=0;while(r<i.length)i[r].key===n?i.splice(r,1):r++;t.updateURL()},get:function(e){G(arguments.length,1);for(var t=C(this).entries,i=e+"",n=0;n<t.length;n++)if(t[n].key===i)return t[n].value;return null},getAll:function(e){G(arguments.length,1);for(var t=C(this).entries,i=e+"",n=[],r=0;r<t.length;r++)t[r].key===i&&n.push(t[r].value);return n},has:function(e){G(arguments.length,1);var t=C(this).entries,i=e+"",n=0;while(n<t.length)if(t[n++].key===i)return!0;return!1},set:function(e,t){G(arguments.length,1);for(var i,n=C(this),r=n.entries,a=!1,s=e+"",o=t+"",l=0;l<r.length;l++)i=r[l],i.key===s&&(a?r.splice(l--,1):(a=!0,i.value=o));a||r.push({key:s,value:o}),n.updateURL()},sort:function(){var e,t,i,n=C(this),r=n.entries,a=r.slice();for(r.length=0,i=0;i<a.length;i++){for(e=a[i],t=0;t<i;t++)if(r[t].key>e.key){r.splice(t,0,e);break}t===i&&r.push(e)}n.updateURL()},forEach:function(e){var t,i=C(this).entries,n=m(e,arguments.length>1?arguments[1]:void 0,3),r=0;while(r<i.length)t=i[r++],n(t.value,t.key,this)},keys:function(){return new z(this,"keys")},values:function(){return new z(this,"values")},entries:function(){return new z(this,"entries")}},{enumerable:!0}),s(V,k,V.entries),s(V,"toString",(function(){var e,t=C(this).entries,i=[],n=0;while(n<t.length)e=t[n++],i.push(F(e.key)+"="+F(e.value));return i.join("&")}),{enumerable:!0}),l(B,O),n({global:!0,forced:!a},{URLSearchParams:B}),a||"function"!=typeof w||"function"!=typeof M||n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,i,n,r=[e];return arguments.length>1&&(t=arguments[1],y(t)&&(i=t.body,f(i)===O&&(n=t.headers?new M(t.headers):new M,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=p(t,{body:v(0,String(i)),headers:v(0,n)}))),r.push(t)),w.apply(this,r)}}),e.exports={URLSearchParams:B,getState:C}},,function(e,t,i){"use strict";i(9),i(114),i(8),i(52),i(35),i(10),i(20);var n=i(1),r=i(0),a=i(50),s=function(){function e(t){var i=this;Object(n["a"])(this,e),this.size=t.size,this.views=new Map,t.view&&Object.values(a["a"]).forEach((function(e){i.views.set(e,t.view.clone())})),this.version=t.version||3.1,this.buildNumber=t.buildNumber||0}return Object(r["a"])(e,[{key:"getView",value:function(e){return this.views.get(e)}},{key:"isEqual",value:function(e,t,i){return this.size[0]===t[0]&&this.size[1]===t[1]&&(this.views.values().next().value.tileResolution.length===i.length&&this.views.values().next().value.url===e)}}]),e}();t["a"]=s},function(e,t,i){"use strict";i(17);var n=i(27),r=i(14),a=i(1),s=i(0),o=i(53),l=0,c=function(){function e(t){Object(a["a"])(this,e),this.id=l,l+=1,this.size=t.size,this.url=t.url,this.tileSize=t.tileSize,this.tileResolution=t.tileResolution,this.format=t.format||"jpg",this.minZoom=t.minZoom,this.maxZoom=t.maxZoom,this._createViewAndLayer()}return Object(s["a"])(e,[{key:"_createViewAndLayer",value:function(){var e=[0,0].concat(Object(r["a"])(this.size)),t=new ol.proj.Projection({code:"ZOOMIFY",units:"pixels",extent:e});this.view=new ol.View({projection:t,center:[this.size[0]/2,this.size[1]/2],minZoom:this.minZoom,maxZoom:this.maxZoom>0?this.maxZoom:this.tileResolution.length+4,extent:[-2e3,-2e3,this.size[0]+2e3,this.size[1]+2e3],zoom:this.minZoom});var i={projection:t,tileGrid:new ol.tilegrid.TileGrid({origin:[0,0],extent:e,resolutions:this.tileResolution,tileSize:this.tileSize})};o["a"].hasSameOrigin(this.url)||(i.crossOrigin="anonymous"),this.tileImageSource=new ol.source.TileImage(i),this.layer=new ol.layer.Tile({source:this.tileImageSource,extent:e})}},{key:"clone",value:function(){return new e({size:this.size,url:this.url,tileSize:this.tileSize,tileResolution:this.tileResolution,minZoom:this.minZoom,maxZoom:this.maxZoom})}},{key:"setSize",value:function(e){this.size=e,this._createViewAndLayer()}},{key:"setImageName",value:function(e){var t=this;this.tileImageSource.setTileUrlFunction((function(i){var r=Object(n["a"])(i,3),a=r[0],s=r[1],o=r[2];return"".concat(t.url,"/").concat(e,"/").concat(a,"/").concat(s,"/").concat(o,".").concat(t.format)})),this.tileImageSource.refresh()}}]),e}();t["a"]=c},function(e,t,i){"use strict";var n=Array.isArray,r=Object.keys,a=Object.prototype.hasOwnProperty;e.exports=function e(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){var s,o,l,c=n(t),u=n(i);if(c&&u){if(o=t.length,o!=i.length)return!1;for(s=o;0!==s--;)if(!e(t[s],i[s]))return!1;return!0}if(c!=u)return!1;var h=t instanceof Date,d=i instanceof Date;if(h!=d)return!1;if(h&&d)return t.getTime()==i.getTime();var m=t instanceof RegExp,f=i instanceof RegExp;if(m!=f)return!1;if(m&&f)return t.toString()==i.toString();var g=r(t);if(o=g.length,o!==r(i).length)return!1;for(s=o;0!==s--;)if(!a.call(i,g[s]))return!1;for(s=o;0!==s--;)if(l=g[s],!e(t[l],i[l]))return!1;return!0}return t!==t&&i!==i}},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAJhSURBVFiF7ZW/a1pRFMc/70XFYqVFUCq1hSClvCIShw6FItQ9U8EtHVySuYvg0C2BLB0KDeQf6NLFxU0KLRSKGMmDtKldqg3FEKVNaoqa6Hsd9JXrxR9tYsziF85wzzucz/fd++55cHYtAt97sXiOPmdSEPgFmL04Bu5OC24DPghwK/KAYxoGVgfArVi9aPhDoD3CQAd4dFHw60BJBPp8vhOfz3cimSj1aieuVyJIVVUznU4XM5lMUVVVQzLxetLwJxLAXFlZqZimmTdNM7+8vLwvPweWJgWfB47E5pqm/W42m1uWgVartRUKhY4lA3XgznnhNuC92NjhcHRyudxHC25FoVDYcTqdHclEDrCPAsyNMfAMaSvX1tb24vH4kVzo9/vbdru9k81mrwnpm3RvxtsxnIG6D/R94dFo9NAwjLz89mLEYrGf9O/CKfBgGEQZkr8KFBDO0OPxtHVd/xQIBE5Hua5UKrZwOHyvVquJW/8VWKA7vvukDunzUoQrisLGxkZpHBy6R7G5uVlSlL53mwdeDKof9A08RhqpiUTiIJVKHYyDW9I0rVUul23b29suIb0AfAF2xFr5CAKADnisRDAYbOi6/tnlchn/agCg0WgokUhEKxaLV4T0Yc9IeZCBOeANELUSqqqyvr7+TdO0pgzwer1tt9ttANTrdbVardrkmt3dXWcymbxtGH3e3wExurejT0mG/2QmHUkZDlCbooGaBRVvwY9Bri5If1niuS0Bz4EbUvEtaT1ytNIdPKL2pPU+8NRaDBtEo2SOef5fPYcNoqlpZmBmYGZgZuDSDfwBYHFBvEfx+bgAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABOSURBVFiF7dexDQAgCETRO+My7r+GveNga7AmNP86aHihAkvaaszoHA5AkmZuRMSpHGh7vXX7BgAAAAAAAAAAAAAAAPD9Bflur077BgBceZ8FPDUm8YQAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAPnSURBVFiFtZdNTGNVFMd/fZ1SCjPFxohtnyGY8SMhMaRm2LkRmrqYgG2gJCbETBcTNEZXysLERU10oTvjAhIIloWbBpuujE1oWKgLP1IYYWF00uQlfbwymRJgmBHKe3XxaH1zbUvLlP/ynHPv+d97zr3nHButoxd4DRgBXgJ8wLUz3SGwA/wJ/Ar8CDxsZVNbCzYDwC0gBHS3SPYf4AcgASgXJeAE3gXeAuwtOhZxCnwLzAMn7RAYAL4Erl/QsYg/gA+B+60QeBn4GvCIClmWTyKRyOHo6OhRIBA49vv9OoCqqvZcLufMZrO9qVTKXSgUHHX23QU+AP5uRmAAWBKdy7Jcjsfju7FY7ECSpIbHBDAMg8XFxb54PP6MqqoikSLwNpabsBLoAr7BzPAawuHwfiKR0Nxut9HUs4C9vT17NBr1ra2tXRNUd4B3OMsJa3K9D7xutZydnS2trKxo3d3dlXacA7hcrsrMzMyBoij2jY0Nl0X1LGAAv8N/NzAAJK2EwuHw/urqqnrelZ8HwzAIhULPCTfxEIgA96u737I6l2W5nEgktCd1DiBJEslkcqe/v//UIu4BbgNImD9cyLooHo/vthvzZvB4PPrc3Nw9QXwT6LEBbwCfVaWyLJ8oinK3E6e3olwu2wYHB68LL+NjCfNvryESiRx22jmAw+GojI+PHwjiGxLCswsGg0cd936GUCgk7v2iBPitkuHh4ePLIhAIBMR6IFeTsAav16tfFgGv13sqiK52PthtQgIei4umaRctvedC07QrguiBBKhWSS6Xc14WgVwu1yWIChJmG1VDNpvt5ZKQyWSuCqK/JMweroZUKuXWdb2VVq0t6LpuS6fTYmX8RUJoIAuFgmNpacndaQILCwtuTdOsv+Aj4OfqST8B3qxq/H5/eWtrK+/xeDryJEulkn1oaOj5YrFoJfAd8Hn1GSYwG0gAVFV1RKNRn2E8eT0yDIOpqSm/4Lx85rNWgvcxS+Rw1SKfzzsVRbFPTEwc2WwXSwnDMIjFYt50Ot0nqFaANfh/S7YAvGK1HBsbO0wmkzvthqNUKtknJyf96+vrYuY3bMl0zIQMAbVF+Xzeuby83CdJkjEyMnJstzf/p3Rdt83Pz/dNT0/L29vbLkF9D3gPc5IC6rflLwBfAf2iwuv1liORyEEwGDwKBAInPp/vtFKpoKrqlc3Nza5MJtObTqfFbK+iiNmW37UKGwX3KeAL4NVGJ20Td4CPqDOYNLrP6mxnAENAvRO1gjJmwn0KPKhn0Ep6P43ZQN4ExJg2wiPge8w5Q21m2M776sEcz29gdlF+Hh/PVcy68hvwEy2O5/8CzKw/sVG0Ap4AAAAASUVORK5CYII="},function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(i(733)),a=n(i(734)),s=i(370),o=n(i(738));function l(e,t){var i=!0;return s.flattenEach(e,(function(e){s.flattenEach(t,(function(t){if(!1===i)return!1;i=c(e.geometry,t.geometry)}))})),i}function c(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return!g(e.coordinates,t.coordinates);case"LineString":return!u(t,e);case"Polygon":return!r.default(e,t)}break;case"LineString":switch(t.type){case"Point":return!u(e,t);case"LineString":return!h(e,t);case"Polygon":return!d(t,e)}break;case"Polygon":switch(t.type){case"Point":return!r.default(t,e);case"LineString":return!d(e,t);case"Polygon":return!m(t,e)}}return!1}function u(e,t){for(var i=0;i<e.coordinates.length-1;i++)if(f(e.coordinates[i],e.coordinates[i+1],t.coordinates))return!0;return!1}function h(e,t){var i=a.default(e,t);return i.features.length>0}function d(e,t){for(var i=0,n=t.coordinates;i<n.length;i++){var s=n[i];if(r.default(s,e))return!0}var l=a.default(t,o.default(e));return l.features.length>0}function m(e,t){for(var i=0,n=e.coordinates[0];i<n.length;i++){var s=n[i];if(r.default(s,t))return!0}for(var l=0,c=t.coordinates[0];l<c.length;l++){var u=c[l];if(r.default(u,e))return!0}var h=a.default(o.default(e),o.default(t));return h.features.length>0}function f(e,t,i){var n=i[0]-e[0],r=i[1]-e[1],a=t[0]-e[0],s=t[1]-e[1],o=n*s-r*a;return 0===o&&(Math.abs(a)>=Math.abs(s)?a>0?e[0]<=i[0]&&i[0]<=t[0]:t[0]<=i[0]&&i[0]<=e[0]:s>0?e[1]<=i[1]&&i[1]<=t[1]:t[1]<=i[1]&&i[1]<=e[1])}function g(e,t){return e[0]===t[0]&&e[1]===t[1]}t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(739),r=i(77);function a(e,t,i){void 0===i&&(i={});for(var a=i.steps||64,s=i.properties?i.properties:!Array.isArray(e)&&"Feature"===e.type&&e.properties?e.properties:{},o=[],l=0;l<a;l++)o.push(n.default(e,t,-360*l/a,i).geometry.coordinates);return o.push(o[0]),r.polygon([o],s)}t.default=a},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAABDCAYAAADHyrhzAAAL9UlEQVR4Xs1bfVRU1RY/5zLO4KxRTDEx/EzRhFTmzuAiwq+MUktLW1jqk3LBCpHUQFEqLc0n8RRZIGJi44NXmolpJj5NS40kBBlmBAN8wnsaysPvEHB883HPeevwGtYIM3PPvXOn9e5fwPnt3973x7n3nn32PhD8QVdVVdUgAMDjVqvVn2GYfhjjXgzD9OQ4TgkhVDAM8wAh9BAA8AAA0AIAuIMxvm2xWG5FRETc+yPChN5yotfrB0IIx0AIh2OMB3viB0LYBiFsRAj9SyaTXRo/fjwRTPJLUjHIf99ms4UwDDMGIdRH8mj/R4gZhvnVZrPVyuXyGimFkUQMvV5PpvpEAIAWANDDSyJ0o4UQ3kUI/ajRaH6BEGJP/XosRmVlpQZCGIUx9hUbzPXr11WDBg1qF2sPAPi3TCY7PH78+FsecADRYpSWlvZVKBSvAACGehLAjRs3lDk5ObM3bdr0lSc8EELOZrOVhoWF/Uh+FsMlSgyDwfAMAGAaxlgmxqmjTV5e3rMlJSXPb9myZUtAQIDJUz6GYW5brdaDEyZMuCGUS5AYer3eD0I4BwAwTKgjV/j4+PgVJpOpT2Rk5A/x8fE/S8FLZgbG+EeWZX+GECJaTmoxyEsSAPAmhHAALTkfrri4eIhOp1tMcEqlsiUvLy+bz0bIOEKoJCws7AdaGyox6uvre7e1tb2JMe5HS0yD27hx4yuXL18OtWPffvvt/IkTJzbS2NJiMMYVWq327zR4XjFqampUFoslFiH0GA0hLeb+/fvy5cuXpyCEOt87o0aNurBu3bpvaTkE4PQajeYoH96tGFeuXPFtaWkhQvTnIxI6vmfPHvbEiROzHO0YhrFt27Zti5+fn0UoHx8eQljCsqzbR8atGAaDYRHGeASfIzHjSUlJsXfu3CH5yiNXVFTU0ZiYmEoxnHw2CKGvw8LCfnGFcylGZWVlOABgOp8DMeO1tbX9Pvnkk3ec2fbt27cpOztbJ4aXzwZC+FChUOSGhIQ4XeA5FaOqqupxjuPiMcY+fA7EjGdkZLxQVVVF1ipOr/fee297cHDwXTHcFDYNGo1mjzOcUzGMRuObCKHhFMSiILGxsSkWi4V8qp1eY8eOLVu9evUJUeQURgzDHFar1Re6QruJYTQaQxFCr1JwioIcPnw4+ODBg9HujGUymTk/Pz9dlAM6I5Ovr29WSEjIIy/qR8S4du1az1u3bi0jayA6TuGo1NTUhU1NTSP5LOfMmXNg7ty5tXw4D8bLNBrNd472j4hRUVExhWGYKR44cGva2NjY64MPPkim4Q8MDGxIT0/fS4MVg8EYI7lcnjNu3Ljf7PadYtTX1yva2tqSPEnF+YLKzc2dVFZWNpUPZx/ftGlT5pAhQ9po8UJxDMNcUKvVh7uJ4e1ZQRzakzLaoMPDw88kJib+RIsXius6OzpnhsFgWIIxDhBKSIs/derU8IKCghhaPMF5I3lz4v87jUZTRv7eIYZer/eHEDpdBAkJ3h12w4YNcxsaGsYK5YuJifk8KirqilA7WjzDMNfVanXHIq9DDG8/Infv3vVNTk5e6ZiU0QY7YsSIi+vXrz9EixeKYxiGbDBnkI3lDjGMRmMcQqhbniCU2BU+Pz8/7PTp0zPF8mVlZf2lX79+/xFrz2dnX4RB8hVpb29PRQjxpvN8pK7Gly1btqSlpUX0ptBzzz13fPHixefF+uezgxD+wrLs17C8vHyUTCZbwGcgdryysjIgKysrXqw9sevTp8/NnJycnZ5w8NiaNBrNZqjX6yMhhM97y1F6evqMmpqaCZ7yL1++fFdYWFizpzyu7FtbW/8MjUbjqwihzq03KZ2ZTCZZYmLiKpvNpvCUNyQkpCI1NfWYpzyu7E0mUzYR4y2EkGS73Y7OCgsLxxYVFc2V4gZI8pabm5uhVCptUvB15ZDL5bthZWUlWV/4e8PB6tWrY5qbmyXbCpg1a9ahefPmXfRGrFardS+ZGasQQiqpHdTX1/f5+OOPV0jJO3DgwCubN2/+XEpOB6790GAwrJWiMtY1wOzs7Kl6vX6S1IF/+OGH2UFBQaR/Q+rrEHlM1kvNSvji4uJWms1myWecVqv9acWKFWe8EHMRmRmpUqftx48fH/nll18u9ELAQKFQtOt0uq1e4N7vlXfGunXroq9evRrshYA7KBcsWLB3xowZDVLyI4T2kcckEQAgWZGItBikpKSkSBloV65hw4bVbty48YCUPjDGXxAx/gQA4N2TpHWs0+nCi4uLX6TFi8VJ1cJg989x3E4iBikUkYKRJFdCQsI77e3tkhaonQU2efLkk3FxceckCRoA0NramkFeoFqM8ctSkJ47dy5wx44dcVJw8XGoVKq7n3766XY+HOU41mg0G+D58+cDfHx8llAauYWlpaW9XFdXp5GCi4YjISFhd0RExHUarDsMhPAGy7I7O/YwDAbDGoxxT09ISVK2dOnSFI7j5EJ4fHx8bAEBAVeampqChNgR7OjRow1r164tEmrnBN9RQ7GL8QbG+ClPSPft2xd67Ngx0vBGfZF9iqVLlxaOGTPm3t69e0O///77mRzHUbdO+vj4WHfs2LHZ0+QNY/yVVqu9ZBfD4/dGcnLy4tu3bw+hVeLpp58+v2bNmuOO+IsXL/rv3LlzXmtrK/Wnfvr06d8uXLiwW92UNg6GYSwqlWprUFCQ2b47rmQYZqXYqruQpIyk4tHR0Ydmzpx52VXAaWlpL9XV1ZEGW96rf//+jZmZmfm8QBcAx0KSY91E9KOSmZn5vNFofJYvIH9//+uJiYlfjxw58j4f9siRI0998803r9JsDHnSwsAwTIFarb5K4nEUYyjGuKPzTujF12JA+FiWPZuUlHRaCHdDQ4NfTk7O6/fu3Rvozi40NPTnlStXUnf12bkghPdYlt3W+bujEzG7XkVFRaMLCwvfcBWsQqF4MH/+/IPTpk0TXQjKyMiIqqqqinDlQy6Xm3bv3r1FiNAE27VP45HygNFoHIYQeksI6fvvv//GtWvXRjuzGTBgwNVVq1YdkKLz9+TJkyP2798/11WTS3R09P7Zs2dfoo2drC3UanWeYwN+t1qJwWCgfne4S8oiIiJOJSQklNAGR4MjDfeZmZnRzr5agwcPvpyWlraPhodg7J9TR3w3McrKynorFIpEhBDvjra979uRUKlUti5atOhAZGSkxytDVze2ffv2yeXl5d36SGiTNwjhJZZluzXuO62ikUZ5jDFv5tm1xSAwMLA+JSXlkDdLgXaBSkpKBhUUFLzuuJtGORutvXv3zgkKCmrtKrbLkqLBYIh1d5zq7NmzQ3bt2tX59fF2CdDZLLl582bPrVu3vtbc3NzRq0rTwgAhPMqyrN4Zn0sxqqurH+M4LgEh5DTXsPd9q1Sq35YsWfKVpwdfaJ91ZzidTvdMcXHxC2QsNja2YMqUKb86vVkI/8my7BeufLktNldXV4+1Wq2vdTW2930PHTr0HykpKd/26tXL6snNSGGr1+sDPvvss9efeOKJXz/66KPO1iQ7N8MwLXK5XOeqIZbgeCvvFRUVzzIME+UYcGFh4TiO45j58+eLzgmkEMDZPykrK2vmu+++e8yx//z304+71Wq12xIDrxjE4YULFyI5jvNacVpqYcjMdRDDhDH+q1arvcPnh0oMQkJyD4TQIzOEj/z/YPyB2WwmG0BUh4SpxSA3RrYIIYQvebOxRUIB75vN5r/RCkH1zugaXHl5+fAePXrMwRj3ljBwqalqMcZHtVqtoAOAgmaGPeIzZ874qlSqFxmGUUt9F57wQQhJ39cRlmVFtVmLEsMecHV19ZMcx8324lFvIdpU+/r6nnT36eQj80gMQq7X63sghCbJZDKyhPf4nCtfwF3HyTlWAMBJtVpdL9S2K95jMeyE5GCfyWSa5OPjoxG7fSjkZsjGzO9nVy9KcQ5e1AuUL2DSStnS0hIsk8mCMcZPSikMhJAkV3UAgFq1Wt0olQj2e5JsZjgTqaamRm42m0kddwwAIEhk68MdknJbLJZL4eHhXtsW8MrMcDdzSktLe/r5+fW02WxKUnRyhlUoFNhms5kRQqaHDx+apk6d6pWGNme+/wtn7dJLR+980QAAAABJRU5ErkJggg=="},function(e,t,i){e.exports=i.p+"img/dirt_0.eb1569b0.png"},,,,,function(e,t,i){"use strict";var n=i(21),r=i(98).f,a=i(41),s=i(223),o=i(60),l=i(224),c=i(100),u="".endsWith,h=Math.min,d=l("endsWith"),m=!c&&!d&&!!function(){var e=r(String.prototype,"endsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!m&&!d},{endsWith:function(e){var t=String(o(this));s(e);var i=arguments.length>1?arguments[1]:void 0,n=a(t.length),r=void 0===i?n:h(a(i),n),l=String(e);return u?u.call(t,l,r):t.slice(r-l.length,r)===l}})},function(e,t,i){var n=i(21),r=i(28),a=i(63),s=i(166),o=i(373),l=r((function(){s(1)}));n({target:"Object",stat:!0,forced:l,sham:!o},{getPrototypeOf:function(e){return s(a(e))}})},function(e,t,i){var n=i(21),r=i(690);n({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,i){var n=i(31),r=i(162).trim,a=i(163),s=n.parseInt,o=/^[+-]?0[Xx]/,l=8!==s(a+"08")||22!==s(a+"0x16");e.exports=l?function(e,t){var i=r(String(e));return s(i,t>>>0||(o.test(i)?16:10))}:s},function(e,t,i){"use strict";function n(e,t,i,n,a){r(e,t,i||0,n||e.length-1,a||s)}function r(e,t,i,n,s){while(n>i){if(n-i>600){var o=n-i+1,l=t-i+1,c=Math.log(o),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(o-u)/o)*(l-o/2<0?-1:1),d=Math.max(i,Math.floor(t-l*u/o+h)),m=Math.min(n,Math.floor(t+(o-l)*u/o+h));r(e,t,d,m,s)}var f=e[t],g=i,y=n;a(e,i,t),s(e[n],f)>0&&a(e,i,n);while(g<y){a(e,g,y),g++,y--;while(s(e[g],f)<0)g++;while(s(e[y],f)>0)y--}0===s(e[i],f)?a(e,i,y):(y++,a(e,y,n)),y<=t&&(i=y+1),t<=y&&(n=y-1)}}function a(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function s(e,t){return e<t?-1:e>t?1:0}e.exports=n,e.exports.default=n},function(e,t,i){"use strict";function n(e,t){if(!(this instanceof n))return new n(e,t);if(this.data=e||[],this.length=this.data.length,this.compare=t||r,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}function r(e,t){return e<t?-1:e>t?1:0}e.exports=n,e.exports.default=n,n.prototype={push:function(e){this.data.push(e),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var e=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),e}},peek:function(){return this.data[0]},_up:function(e){var t=this.data,i=this.compare,n=t[e];while(e>0){var r=e-1>>1,a=t[r];if(i(n,a)>=0)break;t[e]=a,e=r}t[e]=n},_down:function(e){var t=this.data,i=this.compare,n=this.length>>1,r=t[e];while(e<n){var a=1+(e<<1),s=a+1,o=t[a];if(s<this.length&&i(t[s],o)<0&&(a=s,o=t[s]),i(o,r)>=0)break;t[e]=o,e=a}t[e]=r}}},function(e,t,i){"use strict";var n=i(21),r=i(28),a=i(665),s=i(40),o=i(102),l=i(41),c=i(142),u=a.ArrayBuffer,h=a.DataView,d=u.prototype.slice,m=r((function(){return!new u(2).slice(1,void 0).byteLength}));n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:m},{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(s(this),e);var i=s(this).byteLength,n=o(e,i),r=o(void 0===t?i:t,i),a=new(c(this,u))(l(r-n)),m=new h(this),f=new h(a),g=0;while(n<r)f.setUint8(g++,m.getUint8(n++));return a}})},function(e,t){var i=1/0,n=Math.abs,r=Math.pow,a=Math.floor,s=Math.log,o=Math.LN2,l=function(e,t,l){var c,u,h,d=new Array(l),m=8*l-t-1,f=(1<<m)-1,g=f>>1,y=23===t?r(2,-24)-r(2,-77):0,p=e<0||0===e&&1/e<0?1:0,v=0;for(e=n(e),e!=e||e===i?(u=e!=e?1:0,c=f):(c=a(s(e)/o),e*(h=r(2,-c))<1&&(c--,h*=2),e+=c+g>=1?y/h:y*r(2,1-g),e*h>=2&&(c++,h/=2),c+g>=f?(u=0,c=f):c+g>=1?(u=(e*h-1)*r(2,t),c+=g):(u=e*r(2,g-1)*r(2,t),c=0));t>=8;d[v++]=255&u,u/=256,t-=8);for(c=c<<t|u,m+=t;m>0;d[v++]=255&c,c/=256,m-=8);return d[--v]|=128*p,d},c=function(e,t){var n,a=e.length,s=8*a-t-1,o=(1<<s)-1,l=o>>1,c=s-7,u=a-1,h=e[u--],d=127&h;for(h>>=7;c>0;d=256*d+e[u],u--,c-=8);for(n=d&(1<<-c)-1,d>>=-c,c+=t;c>0;n=256*n+e[u],u--,c-=8);if(0===d)d=1-l;else{if(d===o)return n?NaN:h?-i:i;n+=r(2,t),d-=l}return(h?-1:1)*n*r(2,d-t)};e.exports={pack:l,unpack:c}},function(e,t,i){var n=i(696);n("Uint8",(function(e){return function(t,i,n){return e(this,t,i,n)}}))},function(e,t,i){"use strict";var n=i(21),r=i(31),a=i(42),s=i(697),o=i(56),l=i(665),c=i(135),u=i(90),h=i(61),d=i(41),m=i(666),f=i(667),g=i(99),y=i(44),p=i(143),v=i(43),_=i(97),b=i(161),L=i(91).f,w=i(699),M=i(57).forEach,k=i(182),O=i(39),T=i(98),S=i(75),C=i(141),j=S.get,E=S.set,I=O.f,D=T.f,P=Math.round,A=r.RangeError,x=l.ArrayBuffer,Y=l.DataView,N=o.NATIVE_ARRAY_BUFFER_VIEWS,F=o.TYPED_ARRAY_TAG,R=o.TypedArray,H=o.TypedArrayPrototype,G=o.aTypedArrayConstructor,z=o.isTypedArray,B="BYTES_PER_ELEMENT",V="Wrong length",U=function(e,t){var i=0,n=t.length,r=new(G(e))(n);while(n>i)r[i]=t[i++];return r},W=function(e,t){I(e,t,{get:function(){return j(this)[t]}})},q=function(e){var t;return e instanceof x||"ArrayBuffer"==(t=p(e))||"SharedArrayBuffer"==t},J=function(e,t){return z(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},K=function(e,t){return J(e,t=g(t,!0))?u(2,e[t]):D(e,t)},Z=function(e,t,i){return!(J(e,t=g(t,!0))&&v(i)&&y(i,"value"))||y(i,"get")||y(i,"set")||i.configurable||y(i,"writable")&&!i.writable||y(i,"enumerable")&&!i.enumerable?I(e,t,i):(e[t]=i.value,e)};a?(N||(T.f=K,O.f=Z,W(H,"buffer"),W(H,"byteOffset"),W(H,"byteLength"),W(H,"length")),n({target:"Object",stat:!0,forced:!N},{getOwnPropertyDescriptor:K,defineProperty:Z}),e.exports=function(e,t,i){var a=e.match(/\d+$/)[0]/8,o=e+(i?"Clamped":"")+"Array",l="get"+e,u="set"+e,g=r[o],y=g,p=y&&y.prototype,O={},T=function(e,t){var i=j(e);return i.view[l](t*a+i.byteOffset,!0)},S=function(e,t,n){var r=j(e);i&&(n=(n=P(n))<0?0:n>255?255:255&n),r.view[u](t*a+r.byteOffset,n,!0)},D=function(e,t){I(e,t,{get:function(){return T(this,t)},set:function(e){return S(this,t,e)},enumerable:!0})};N?s&&(y=t((function(e,t,i,n){return c(e,y,o),C(function(){return v(t)?q(t)?void 0!==n?new g(t,f(i,a),n):void 0!==i?new g(t,f(i,a)):new g(t):z(t)?U(y,t):w.call(y,t):new g(m(t))}(),e,y)})),b&&b(y,R),M(L(g),(function(e){e in y||h(y,e,g[e])})),y.prototype=p):(y=t((function(e,t,i,n){c(e,y,o);var r,s,l,u=0,h=0;if(v(t)){if(!q(t))return z(t)?U(y,t):w.call(y,t);r=t,h=f(i,a);var g=t.byteLength;if(void 0===n){if(g%a)throw A(V);if(s=g-h,s<0)throw A(V)}else if(s=d(n)*a,s+h>g)throw A(V);l=s/a}else l=m(t),s=l*a,r=new x(s);E(e,{buffer:r,byteOffset:h,byteLength:s,length:l,view:new Y(r)});while(u<l)D(e,u++)})),b&&b(y,R),p=y.prototype=_(H)),p.constructor!==y&&h(p,"constructor",y),F&&h(p,F,o),O[o]=y,n({global:!0,forced:y!=g,sham:!N},O),B in y||h(y,B,a),B in p||h(p,B,a),k(o)}):e.exports=function(){}},function(e,t,i){var n=i(31),r=i(28),a=i(376),s=i(56).NATIVE_ARRAY_BUFFER_VIEWS,o=n.ArrayBuffer,l=n.Int8Array;e.exports=!s||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!a((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new o(2),1,void 0).length}))},function(e,t,i){var n=i(71);e.exports=function(e){var t=n(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,i){var n=i(63),r=i(41),a=i(170),s=i(229),o=i(120),l=i(56).aTypedArrayConstructor;e.exports=function(e){var t,i,c,u,h,d,m=n(e),f=arguments.length,g=f>1?arguments[1]:void 0,y=void 0!==g,p=a(m);if(void 0!=p&&!s(p)){h=p.call(m),d=h.next,m=[];while(!(u=d.call(h)).done)m.push(u.value)}for(y&&f>2&&(g=o(g,arguments[2],2)),i=r(m.length),c=new(l(this))(i),t=0;i>t;t++)c[t]=y?g(m[t],t):m[t];return c}},function(e,t,i){"use strict";var n=i(56),r=i(701),a=n.aTypedArray,s=n.exportTypedArrayMethod;s("copyWithin",(function(e,t){return r.call(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,i){"use strict";var n=i(63),r=i(102),a=i(41),s=Math.min;e.exports=[].copyWithin||function(e,t){var i=n(this),o=a(i.length),l=r(e,o),c=r(t,o),u=arguments.length>2?arguments[2]:void 0,h=s((void 0===u?o:r(u,o))-c,o-l),d=1;c<l&&l<c+h&&(d=-1,c+=h-1,l+=h-1);while(h-- >0)c in i?i[l]=i[c]:delete i[l],l+=d,c+=d;return i}},function(e,t,i){"use strict";var n=i(56),r=i(57).every,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("every",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(234),a=n.aTypedArray,s=n.exportTypedArrayMethod;s("fill",(function(e){return r.apply(a(this),arguments)}))},function(e,t,i){"use strict";var n=i(56),r=i(57).filter,a=i(142),s=n.aTypedArray,o=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod;l("filter",(function(e){var t=r(s(this),e,arguments.length>1?arguments[1]:void 0),i=a(this,this.constructor),n=0,l=t.length,c=new(o(i))(l);while(l>n)c[n]=t[n++];return c}))},function(e,t,i){"use strict";var n=i(56),r=i(57).find,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("find",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(57).findIndex,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("findIndex",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(57).forEach,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("forEach",(function(e){r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(126).includes,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("includes",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(126).indexOf,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("indexOf",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(31),r=i(56),a=i(232),s=i(32),o=s("iterator"),l=n.Uint8Array,c=a.values,u=a.keys,h=a.entries,d=r.aTypedArray,m=r.exportTypedArrayMethod,f=l&&l.prototype[o],g=!!f&&("values"==f.name||void 0==f.name),y=function(){return c.call(d(this))};m("entries",(function(){return h.call(d(this))})),m("keys",(function(){return u.call(d(this))})),m("values",y,!g),m(o,y,!g)},function(e,t,i){"use strict";var n=i(56),r=n.aTypedArray,a=n.exportTypedArrayMethod,s=[].join;a("join",(function(e){return s.apply(r(this),arguments)}))},function(e,t,i){"use strict";var n=i(56),r=i(660),a=n.aTypedArray,s=n.exportTypedArrayMethod;s("lastIndexOf",(function(e){return r.apply(a(this),arguments)}))},function(e,t,i){"use strict";var n=i(56),r=i(57).map,a=i(142),s=n.aTypedArray,o=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod;l("map",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(a(e,e.constructor)))(t)}))}))},function(e,t,i){"use strict";var n=i(56),r=i(630).left,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("reduce",(function(e){return r(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(630).right,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("reduceRight",(function(e){return r(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=n.aTypedArray,a=n.exportTypedArrayMethod,s=Math.floor;a("reverse",(function(){var e,t=this,i=r(t).length,n=s(i/2),a=0;while(a<n)e=t[a],t[a++]=t[--i],t[i]=e;return t}))},function(e,t,i){"use strict";var n=i(56),r=i(41),a=i(667),s=i(63),o=i(28),l=n.aTypedArray,c=n.exportTypedArrayMethod,u=o((function(){new Int8Array(1).set({})}));c("set",(function(e){l(this);var t=a(arguments.length>1?arguments[1]:void 0,1),i=this.length,n=s(e),o=r(n.length),c=0;if(o+t>i)throw RangeError("Wrong length");while(c<o)this[t+c]=n[c++]}),u)},function(e,t,i){"use strict";var n=i(56),r=i(142),a=i(28),s=n.aTypedArray,o=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod,c=[].slice,u=a((function(){new Int8Array(1).slice()}));l("slice",(function(e,t){var i=c.call(s(this),e,t),n=r(this,this.constructor),a=0,l=i.length,u=new(o(n))(l);while(l>a)u[a]=i[a++];return u}),u)},function(e,t,i){"use strict";var n=i(56),r=i(57).some,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("some",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=n.aTypedArray,a=n.exportTypedArrayMethod,s=[].sort;a("sort",(function(e){return s.call(r(this),e)}))},function(e,t,i){"use strict";var n=i(56),r=i(41),a=i(102),s=i(142),o=n.aTypedArray,l=n.exportTypedArrayMethod;l("subarray",(function(e,t){var i=o(this),n=i.length,l=a(e,n);return new(s(i,i.constructor))(i.buffer,i.byteOffset+l*i.BYTES_PER_ELEMENT,r((void 0===t?n:a(t,n))-l))}))},function(e,t,i){"use strict";var n=i(31),r=i(56),a=i(28),s=n.Int8Array,o=r.aTypedArray,l=r.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,h=!!s&&a((function(){c.call(new s(1))})),d=a((function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()}))||!a((function(){s.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return c.apply(h?u.call(o(this)):o(this),arguments)}),d)},function(e,t,i){"use strict";var n=i(56).exportTypedArrayMethod,r=i(28),a=i(31),s=a.Uint8Array,o=s&&s.prototype||{},l=[].toString,c=[].join;r((function(){l.call({})}))&&(l=function(){return c.call(this)});var u=o.toString!=l;n("toString",l,u)},function(e,t,i){"use strict";var n={},r=Array.prototype,a=Object.prototype,s=r.slice,o=a.toString,l=a.hasOwnProperty,c=r.forEach,u=Object.keys,h=Array.isArray,d=function(){},m=d.each=d.forEach=function(e,t,i){if(null!=e)if(c&&e.forEach===c)e.forEach(t,i);else if(e.length===+e.length){for(var r=0,a=e.length;r<a;r++)if(t.call(i,e[r],r,e)===n)return}else{var s=d.keys(e);for(r=0,a=s.length;r<a;r++)if(t.call(i,e[s[r]],s[r],e)===n)return}};d.keys=u||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var i in e)d.has(e,i)&&t.push(i);return t},d.defaults=function(e){return m(s.call(arguments,1),(function(t){if(t)for(var i in t)void 0===e[i]&&(e[i]=t[i])})),e},d.isArray=h||function(e){return"[object Array]"===o.call(e)},d.has=function(e,t){if(!d.isArray(t))return null!=e&&l.call(e,t);for(var i=t.length,n=0;n<i;n++){var r=t[n];if(null==e||!l.call(e,r))return!1;e=e[r]}return!!i};var f={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}},g={escape:new RegExp("["+d.keys(f.escape).join("")+"]","g")};d.each(["escape"],(function(e){d[e]=function(t){return null==t?"":(""+t).replace(g[e],(function(t){return f[e][t]}))}})),d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var y=/(.)^/,p={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},v=/\\|'|\r|\n|\t|\u2028|\u2029/g;d.template=function(e,t,i){var n;i=d.defaults({},i,d.templateSettings);var r=new RegExp([(i.escape||y).source,(i.interpolate||y).source,(i.evaluate||y).source].join("|")+"|$","g"),a=0,s="__p+='";e.replace(r,(function(t,i,n,r,o){return s+=e.slice(a,o).replace(v,(function(e){return"\\"+p[e]})),i&&(s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),n&&(s+="'+\n((__t=("+n+"))==null?'':__t)+\n'"),r&&(s+="';\n"+r+"\n__p+='"),a=o+t.length,t})),s+="';\n",i.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{n=new Function(i.variable||"obj","_",s)}catch(l){throw l.source=s,l}if(t)return n(t,d);var o=function(e){return n.call(this,e,d)};return o.source="function("+(i.variable||"obj")+"){\n"+s+"}",o},e.exports=d},function(e,t,i){var n=i(28),r=i(163),a="​…᠎";e.exports=function(e){return n((function(){return!!r[e]()||a[e]()!=a||r[e].name!==e}))}},function(e,t,i){var n=i(727);e.exports=n},function(e,t,i){i(669),i(732),i(671);var n=i(177);e.exports=n.URL},function(e,t,i){"use strict";var n=i(42),r=i(28),a=i(121),s=i(178),o=i(138),l=i(63),c=i(124),u=Object.assign,h=Object.defineProperty;e.exports=!u||r((function(){if(n&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol(),r="abcdefghijklmnopqrst";return e[i]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[i]||a(u({},t)).join("")!=r}))?function(e,t){var i=l(e),r=arguments.length,u=1,h=s.f,d=o.f;while(r>u){var m,f=c(arguments[u++]),g=h?a(f).concat(h(f)):a(f),y=g.length,p=0;while(y>p)m=g[p++],n&&!d.call(f,m)||(i[m]=f[m])}return i}:u},function(e,t,i){"use strict";var n=i(120),r=i(63),a=i(375),s=i(229),o=i(41),l=i(140),c=i(170);e.exports=function(e){var t,i,u,h,d,m=r(e),f="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,p=void 0!==y,v=0,_=c(m);if(p&&(y=n(y,g>2?arguments[2]:void 0,2)),void 0==_||f==Array&&s(_))for(t=o(m.length),i=new f(t);t>v;v++)l(i,v,p?y(m[v],v):m[v]);else for(h=_.call(m),d=h.next,i=new f;!(u=d.call(h)).done;v++)l(i,v,p?a(h,y,[u.value,v],!0):u.value);return i.length=v,i}},function(e,t,i){"use strict";var n=2147483647,r=36,a=1,s=26,o=38,l=700,c=72,u=128,h="-",d=/[^\0-\u007E]/,m=/[.\u3002\uFF0E\uFF61]/g,f="Overflow: input needs wider integers to process",g=r-a,y=Math.floor,p=String.fromCharCode,v=function(e){var t=[],i=0,n=e.length;while(i<n){var r=e.charCodeAt(i++);if(r>=55296&&r<=56319&&i<n){var a=e.charCodeAt(i++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),i--)}else t.push(r)}return t},_=function(e){return e+22+75*(e<26)},b=function(e,t,i){var n=0;for(e=i?y(e/l):e>>1,e+=y(e/t);e>g*s>>1;n+=r)e=y(e/g);return y(n+(g+1)*e/(e+o))},L=function(e){var t=[];e=v(e);var i,o,l=e.length,d=u,m=0,g=c;for(i=0;i<e.length;i++)o=e[i],o<128&&t.push(p(o));var L=t.length,w=L;L&&t.push(h);while(w<l){var M=n;for(i=0;i<e.length;i++)o=e[i],o>=d&&o<M&&(M=o);var k=w+1;if(M-d>y((n-m)/k))throw RangeError(f);for(m+=(M-d)*k,d=M,i=0;i<e.length;i++){if(o=e[i],o<d&&++m>n)throw RangeError(f);if(o==d){for(var O=m,T=r;;T+=r){var S=T<=g?a:T>=g+s?s:T-g;if(O<S)break;var C=O-S,j=r-S;t.push(p(_(S+C%j))),O=y(C/j)}t.push(p(_(O))),g=b(m,k,w==L),m=0,++w}}++m,++d}return t.join("")};e.exports=function(e){var t,i,n=[],r=e.toLowerCase().replace(m,".").split(".");for(t=0;t<r.length;t++)i=r[t],n.push(d.test(i)?"xn--"+L(i):i);return n.join(".")}},function(e,t,i){var n=i(40),r=i(170);e.exports=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},function(e,t,i){"use strict";var n=i(21);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(369);function r(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var r=n.getCoord(e),o=n.getGeom(t),l=o.type,c=t.bbox,u=o.coordinates;if(c&&!1===s(r,c))return!1;"Polygon"===l&&(u=[u]);for(var h=!1,d=0;d<u.length&&!h;d++)if(a(r,u[d][0],i.ignoreBoundary)){var m=!1,f=1;while(f<u[d].length&&!m)a(r,u[d][f],!i.ignoreBoundary)&&(m=!0),f++;m||(h=!0)}return h}function a(e,t,i){var n=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var r=0,a=t.length-1;r<t.length;a=r++){var s=t[r][0],o=t[r][1],l=t[a][0],c=t[a][1],u=e[1]*(s-l)+o*(l-e[0])+c*(e[0]-s)===0&&(s-e[0])*(l-e[0])<=0&&(o-e[1])*(c-e[1])<=0;if(u)return!i;var h=o>e[1]!==c>e[1]&&e[0]<(l-s)*(e[1]-o)/(c-o)+s;h&&(n=!n)}return n}function s(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}t.default=r},function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=i(77),a=i(369),s=n(i(735)),o=i(370),l=n(i(736));function c(e,t){var i={},n=[];if("LineString"===e.type&&(e=r.feature(e)),"LineString"===t.type&&(t=r.feature(t)),"Feature"===e.type&&"Feature"===t.type&&null!==e.geometry&&null!==t.geometry&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var c=u(e,t);return c&&n.push(c),r.featureCollection(n)}var h=l.default();return h.load(s.default(t)),o.featureEach(s.default(e),(function(e){o.featureEach(h.search(e),(function(t){var r=u(e,t);if(r){var s=a.getCoords(r).join(",");i[s]||(i[s]=!0,n.push(r))}}))})),r.featureCollection(n)}function u(e,t){var i=a.getCoords(e),n=a.getCoords(t);if(2!==i.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==n.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var s=i[0][0],o=i[0][1],l=i[1][0],c=i[1][1],u=n[0][0],h=n[0][1],d=n[1][0],m=n[1][1],f=(m-h)*(l-s)-(d-u)*(c-o),g=(d-u)*(o-h)-(m-h)*(s-u),y=(l-s)*(o-h)-(c-o)*(s-u);if(0===f)return null;var p=g/f,v=y/f;if(p>=0&&p<=1&&v>=0&&v<=1){var _=s+p*(l-s),b=o+p*(c-o);return r.point([_,b])}return null}t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(77),r=i(369),a=i(370);function s(e){if(!e)throw new Error("geojson is required");var t=[];return a.flattenEach(e,(function(e){o(e,t)})),n.featureCollection(t)}function o(e,t){var i=[],n=e.geometry;if(null!==n){switch(n.type){case"Polygon":i=r.getCoords(n);break;case"LineString":i=[r.getCoords(n)]}i.forEach((function(i){var n=l(i,e.properties);n.forEach((function(e){e.id=t.length,t.push(e)}))}))}}function l(e,t){var i=[];return e.reduce((function(e,r){var a=n.lineString([e,r],t);return a.bbox=c(e,r),i.push(a),r})),i}function c(e,t){var i=e[0],n=e[1],r=t[0],a=t[1],s=i<r?i:r,o=n<a?n:a,l=i>r?i:r,c=n>a?n:a;return[s,o,l,c]}t.default=s},function(e,t,i){var n=i(653),r=i(77),a=i(370),s=i(737).default,o=a.featureEach,l=(a.coordEach,r.polygon,r.featureCollection);function c(e){var t=n(e);return t.insert=function(e){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:s(e),n.prototype.insert.call(this,e)},t.load=function(e){var t=[];return Array.isArray(e)?e.forEach((function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:s(e),t.push(e)})):o(e,(function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:s(e),t.push(e)})),n.prototype.load.call(this,t)},t.remove=function(e,t){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:s(e),n.prototype.remove.call(this,e,t)},t.clear=function(){return n.prototype.clear.call(this)},t.search=function(e){var t=n.prototype.search.call(this,this.toBBox(e));return l(t)},t.collides=function(e){return n.prototype.collides.call(this,this.toBBox(e))},t.all=function(){var e=n.prototype.all.call(this);return l(e)},t.toJSON=function(){return n.prototype.toJSON.call(this)},t.fromJSON=function(e){return n.prototype.fromJSON.call(this,e)},t.toBBox=function(e){var t;if(e.bbox)t=e.bbox;else if(Array.isArray(e)&&4===e.length)t=e;else if(Array.isArray(e)&&6===e.length)t=[e[0],e[1],e[3],e[4]];else if("Feature"===e.type)t=s(e);else{if("FeatureCollection"!==e.type)throw new Error("invalid geojson");t=s(e)}return{minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}},t}e.exports=c,e.exports.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(370);function r(e){var t=[1/0,1/0,-1/0,-1/0];return n.coordEach(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(77),r=i(369);function a(e,t){void 0===t&&(t={});var i=r.getGeom(e);switch(t.properties||"Feature"!==e.type||(t.properties=e.properties),i.type){case"Polygon":return s(i,t);case"MultiPolygon":return o(i,t);default:throw new Error("invalid poly")}}function s(e,t){void 0===t&&(t={});var i=r.getGeom(e),n=(i.type,i.coordinates),a=t.properties?t.properties:"Feature"===e.type?e.properties:{};return l(n,a)}function o(e,t){void 0===t&&(t={});var i=r.getGeom(e),a=(i.type,i.coordinates),s=t.properties?t.properties:"Feature"===e.type?e.properties:{},o=[];return a.forEach((function(e){o.push(l(e,s))})),n.featureCollection(o)}function l(e,t){return e.length>1?n.multiLineString(e,t):n.lineString(e[0],t)}t.default=a,t.polygonToLine=s,t.multiPolygonToLine=o,t.coordsToLine=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(77),r=i(369);function a(e,t,i,a){void 0===a&&(a={});var s=r.getCoord(e),o=n.degreesToRadians(s[0]),l=n.degreesToRadians(s[1]),c=n.degreesToRadians(i),u=n.lengthToRadians(t,a.units),h=Math.asin(Math.sin(l)*Math.cos(u)+Math.cos(l)*Math.sin(u)*Math.cos(c)),d=o+Math.atan2(Math.sin(c)*Math.sin(u)*Math.cos(l),Math.cos(u)-Math.sin(l)*Math.sin(h)),m=n.radiansToDegrees(d),f=n.radiansToDegrees(h);return n.point([m,f],a.properties)}t.default=a},function(e,t,i){var n,r,a=i(663),s=i(664),o=0,l=0;function c(e,t,i){var c=t&&i||0,u=t||[];e=e||{};var h=e.node||n,d=void 0!==e.clockseq?e.clockseq:r;if(null==h||null==d){var m=a();null==h&&(h=n=[1|m[0],m[1],m[2],m[3],m[4],m[5]]),null==d&&(d=r=16383&(m[6]<<8|m[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:l+1,y=f-o+(g-l)/1e4;if(y<0&&void 0===e.clockseq&&(d=d+1&16383),(y<0||f>o)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=f,l=g,r=d,f+=122192928e5;var p=(1e4*(268435455&f)+g)%4294967296;u[c++]=p>>>24&255,u[c++]=p>>>16&255,u[c++]=p>>>8&255,u[c++]=255&p;var v=f/4294967296*1e4&268435455;u[c++]=v>>>8&255,u[c++]=255&v,u[c++]=v>>>24&15|16,u[c++]=v>>>16&255,u[c++]=d>>>8|128,u[c++]=255&d;for(var _=0;_<6;++_)u[c+_]=h[_];return t||s(u)}e.exports=c},function(e,t){ol.Feature.prototype.getProperty=function(e){if("attributes"===e){var t=this.getProperties();return this.getGeometryName()&&delete t[this.getGeometryName()],t}if("olcs_geometryType"===e){var i=this.getGeometry().getType();return"Polygon"===i?1:"LineString"===i?2:"Point"===i?3:"Circle"===i||"MultiPolygon"===i?1:"MultiLineString"===i?2:"MultiPoint"===i?3:void 0}return this.get(e)}},function(e,t){Cesium.Material._materialCache.addMaterial("Wallpaper",{fabric:{type:"Wallpaper",uniforms:{image:Cesium.Material.DefaultImageId,anchor:new Cesium.Cartesian2(0,0)},components:{diffuse:"texture2D(image, fract((gl_FragCoord.xy - anchor.xy) / vec2(imageDimensions.xy))).rgb",alpha:"texture2D(image, fract((gl_FragCoord.xy - anchor.xy) / vec2(imageDimensions.xy))).a"}},translucent:!1})},function(e,t,i){i(17),Cesium.Cesium3DTilePointFeature.prototype.getId=function(){return this.getProperty("id")||"".concat(this.content.url).concat(this._batchId)}},function(e,t,i){i(17),Cesium.Cesium3DTileFeature.prototype.getId=function(){return this.getProperty("id")||"".concat(this.content.url).concat(this._batchId)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";i.r(t),i.d(t,"vcs",(function(){return vv}));var n={};i.r(n),i.d(n,"Buildings",(function(){return Ua})),i.d(n,"CesiumTilesetLayer",(function(){return Ba})),i.d(n,"Czml",(function(){return Ka})),i.d(n,"Gltf",(function(){return Qa})),i.d(n,"PointCloud",(function(){return es})),i.d(n,"Terrain",(function(){return is})),i.d(n,"ObliqueLayer",(function(){return Yi})),i.d(n,"GeoJSON",(function(){return rs})),i.d(n,"SingleImage",(function(){return ls})),i.d(n,"OpenStreetMap",(function(){return us})),i.d(n,"TMSBase",(function(){return ds})),i.d(n,"Vector",(function(){return _n})),i.d(n,"TiledLayer",(function(){return or})),i.d(n,"VectorCluster",(function(){return fs})),i.d(n,"WFS",(function(){return ys})),i.d(n,"WMS",(function(){return _s})),i.d(n,"WMTS",(function(){return Ls})),i.d(n,"Wsv",(function(){return Ts})),i.d(n,"FeatureStore",(function(){return Ps}));var r={};i.r(r),i.d(r,"Legend",(function(){return ko})),i.d(r,"Planning",(function(){return Ec})),i.d(r,"Query",(function(){return Qh})),i.d(r,"Search",(function(){return Dd})),i.d(r,"AdvancedWalkMode",(function(){return Yd})),i.d(r,"BalloonInfo",(function(){return Fd})),i.d(r,"Copyright",(function(){return Hd})),i.d(r,"CreateLink",(function(){return zd})),i.d(r,"DisplayQuality",(function(){return mm})),i.d(r,"Drawing",(function(){return pm})),i.d(r,"Export",(function(){return nf})),i.d(r,"FeatureList",(function(){return af})),i.d(r,"Locator",(function(){return hd})),i.d(r,"Measurement",(function(){return Af})),i.d(r,"SingleMeasurement",(function(){return Yf})),i.d(r,"NavigationControls",(function(){return Rf})),i.d(r,"OverviewMap",(function(){return Gf})),i.d(r,"PDFCreator",(function(){return tg})),i.d(r,"PositionDisplay",(function(){return ag})),i.d(r,"Shadow",(function(){return og})),i.d(r,"TransparentTerrainMode",(function(){return fg})),i.d(r,"SwipeTool",(function(){return _g})),i.d(r,"Flight",(function(){return Lg})),i.d(r,"HeightProfile",(function(){return Pg})),i.d(r,"ClippingTool",(function(){return Gg})),i.d(r,"MultiView",(function(){return Bg})),i.d(r,"AttributeEditor",(function(){return vy})),i.d(r,"Viewshed",(function(){return Fy}));i(23),i(25),i(92),i(588),i(604),i(619),i(621);var a=i(53),s=(i(17),i(69),i(22),i(64),i(9),i(66),i(18),i(24),i(83),i(688),i(26),i(8),i(34),i(87),i(46),i(10),i(37));function o(e,t,i){var n,r=function(e,t){if(null==t)return e!==t&&"Expected ".concat(c.getErrorValue(e)," to be ").concat(t);var n=c.atomic(e,t);if(null!==n)return n;var r=c.value(e,t);if(null!==r)return r;if(Array.isArray(t))return c.array(e,t,i);if(t instanceof Function)return!(e instanceof t)&&"Expected ".concat(c.getErrorValue(e,!0)," to be of Type ").concat(c.getConstructorString(t));if(t===Object)return c.object(e,{});if("object"!==Object(s["a"])(t))throw new Error("Cannot handler pattern ".concat(t));var a=c.object(e,t);return a||!!i&&c.requireKeys(e,t)};if(Array.isArray(t)&&t.length>1){var a=t.every((function(t){var i=r(e,t);return i}));a&&(n="Expected ".concat(c.getErrorValue(e)," to be a ").concat(t.map((function(e){return c.getConstructorString(e)})).join(" or ")))}else n=r(e,t);if(n)throw new Error("Match failed: ".concat(n));return!1}function l(e,t,i){var n=[null,void 0];return Array.isArray(t)&&t.length>1?t.forEach((function(e){n.push(e)})):n.push(t),o(e,n.reverse(),i)}var c={};c.patterns=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void 0,"undefined"]],c.getErrorValue=function(e,t){if(null===e)return"null";if("undefined"===typeof e)return"undefined";if(t)return Object(s["a"])(e);var i;if(Array.isArray(e)){var n=e.map((function(e){return c.getErrorValue(e,t)}));i="[".concat(n.join(","),"]")}else try{i=JSON.stringify(e)}catch(r){i=Object(s["a"])(e)}return i.length>20?"".concat(i.substr(0,20),"..."):i},c.getConstructorString=function(e){if(null===e)return"null";var t=c.patterns.find((function(t){return t[0]===e}));if(t)return t[1];var i=e.toString();if(e.className)return e.className;var n=i.match(/function (.*)\(/);if(n&&n.length>1)return n[1];if(c.isPlainObject(e)){var r={};Object.keys(e).forEach((function(t){r[t]=c.getConstructorString(e[t])}));try{i="Object of ".concat(JSON.stringify(r))}catch(a){i="Object"}}return i},c.atomic=function(e,t){if(t===Number)return!Number.isFinite(e)&&"expected ".concat(c.getErrorValue(e)," to be a number, excluding NaN");for(var i=c.patterns.length;i--;)if(t===c.patterns[i][0])return Object(s["a"])(e)!==c.patterns[i][1]&&"expected ".concat(c.getErrorValue(e)," to be a ").concat(c.patterns[i][1]);return null},c.value=function(e,t){return"string"===typeof t||"number"===typeof t||"boolean"===typeof t?e!==t&&"Expected ".concat(c.getErrorValue(e)," to equal ").concat(t):null},c.array=function(e,t,i){if(Array.isArray(t)){if(1!==t.length)throw new Error("Array patterns may only have on type");if(Array.isArray(e)){var n=!1,r=e.findIndex((function(e){try{o(e,t[0],i)}catch(r){n=r.message.replace(/Match failed:\s/,"")}return n}));return r>-1&&"".concat(n," in ").concat(c.getErrorValue(e))}return"Expected ".concat(c.getErrorValue(e)," to be an Array")}return null},c.object=function(e,t,i){var n=i?"".concat(i,"."):"",r=c.isPlainObject(e);if(!r)return"Expected ".concat(c.getErrorValue(e)," to be a plain Object");var a=!1,s=Object.keys(t).find((function(i){var r=e[i];if(c.isPlainObject(t[i]))a=c.object(r,t[i],n+i);else try{o(r,t[i])}catch(s){a=s.message.replace(/Match failed:\s/,"")}return a}));return!!s&&"".concat(a," in object.").concat(n).concat(s)},c.isPlainObject=function(e){var t={};if(!e||"[object Object]"!==t.toString(e))return!1;var i=Object.getPrototypeOf(e);if(!i)return!0;var n=t.hasOwnProperty,r=n.call(i,"constructor")&&i.constructor;return"function"===typeof r&&n.toString.call(r)===n.toString.call(Object)},c.requireKeys=function(e,t,i){var n=i?"".concat(i,"."):"",r=!1,a=Object.keys(e).find((function(i){if(c.isPlainObject(t[i])){var a=e[i];r=c.requireKeys(a,t[i],n+i)}else t[i]||(r="Found additional key ".concat(n).concat(i));return r=!!r&&r.replace(/\sin.*/,""),r}));return!!a&&"".concat(r," in ").concat(c.getErrorValue(e))};var u=i(7),h=i(50),d=(i(114),i(104),i(35),i(20),i(1)),m=i(0),f=(i(48),i(49),i(36),i(33),i(30),i(12),i(52),i(55),i(67),i(29)),g=i(14),y={OFF:1,ERROR:2,WARN:4,INFO:8,DEBUG:16},p={ERROR:0,WARN:0,INFO:0,DEBUG:0};p.ERROR=y.ERROR|y.WARN|y.INFO|y.DEBUG,p.WARN=y.WARN|y.INFO|y.DEBUG,p.INFO=y.INFO|y.DEBUG,p.DEBUG=y.DEBUG;var v,_=y.INFO,b=!1,L={},w=new Map;w.set(y.ERROR,"error"),w.set(y.WARN,"warn"),w.set(y.INFO,"info"),w.set(y.DEBUG,"log");var M=function(){function e(t){Object(d["a"])(this,e),this.className=t,this.deprecations=new Map}return Object(m["a"])(e,null,[{key:"loggers",get:function(){return L}},{key:"enabled",get:function(){return Object.keys(y).find((function(e){return y[e]===_}))||"OFF"},set:function(e){if(e){var t="string"===typeof e?e.toUpperCase():"INFO";_=y[t]||y.INFO}else _=y.OFF}},{key:"timestamp",get:function(){return b},set:function(e){b=e}}]),Object(m["a"])(e,[{key:"error",value:function(e){if(o(e,String),_&p.ERROR){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this._log(e,y.ERROR,i)}}},{key:"warning",value:function(e){if(o(e,String),_&p.WARN){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this._log(e,y.WARN,i)}}},{key:"deprecate",value:function(e,t){if(o(e,String),l(t,String),!this.deprecations.has(e)){this.deprecations.set(e,t||null);var i="".concat(e," has been deprecated and will be removed");t&&(i="".concat(i,". ").concat(t)),this.warning(i)}}},{key:"info",value:function(e){if(o(e,String),_&p.INFO){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this._log(e,y.INFO,i)}}},{key:"debug",value:function(e){if(o(e,String),_&p.DEBUG){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this._log(e,y.DEBUG,i)}}},{key:"log",value:function(e){if(o(e,String),_&p.DEBUG){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this._log(e,y.DEBUG,i)}}},{key:"_log",value:function(e,t,i){var n,r=e;if(this.className&&(r="[".concat(this.className,"] ").concat(r)),b){var a=new Date(Date.now());r="".concat(a.toLocaleDateString()," ").concat(a.toLocaleTimeString()," ").concat(r)}(n=console)[w.get(t)].apply(n,[r].concat(Object(g["a"])(i))),t&y.ERROR&&(console.group(),console.trace(),console.groupEnd())}}],[{key:"getLogger",value:function(t){return t?e.loggers[t]||e.createLogger(t):v}},{key:"createLogger",value:function(t){var i=new e(t);return e.loggers[t]=i,i}}]),e}();v=new M;var k=M,O=(i(122),{LOCALE_CHANGED:"LOCALE_CHANGED"}),T=null,S=function(){function e(){Object(d["a"])(this,e),this.languages=[{token:"de",language:"Deutsch",data:{}},{token:"en",language:"English",data:{}}],this.currentlocale="",this.defaultLocale="de",this.availableLocales=[],this.logger=k.getLogger("vcs.vcm.i18n"),this.i18nNumber=0}return Object(m["a"])(e,[{key:"detectBrowserLocale",value:function(){if(navigator.language){var e=navigator.language;return e.substring(0,2)}return null}},{key:"initialize",value:function(e){e.i18n&&this.setConfig(e.i18n);var t=e.availableLocales;if(Array.isArray(t))for(var i=0;i<t.length;i++){var n=t[i];if(null!==n&&"object"===Object(s["a"])(n)){var r=n.locale;r&&(this.isLanguageAvailable(r)||this.registerLanguage(r,r,{}),this.availableLocales.push(r))}else this.isLanguageAvailable(t[i])&&this.availableLocales.push(t[i])}this.setDefaultLocale(e.locale),e.locale&&(this.defaultLocale=e.locale);var a=this.detectBrowserLocale();a&&this.availableLocales.indexOf(a)>=0&&(this.defaultLocale=a)}},{key:"setDefaultLocale",value:function(e){this.defaultLocale=this.availableLocales[0],e&&this.isLanguageAvailable(e)&&(this.defaultLocale=e);var t=this.detectBrowserLocale();t&&this.isLanguageAvailable(t)&&(this.defaultLocale=t)}},{key:"setConfig",value:function(e){for(var t in e)if(this.isLanguageAvailable(t)){for(var i=0;i<this.languages.length;i++)if(this.languages[i].token===t)for(var n in e[t])this.languages[i].data[n]=e[t][n]}else this.registerLanguage(t,t,e[t])}},{key:"getLocaleAwareString",value:function(e){return"string"===typeof e?e.replace("$locale$",this.currentlocale):e}},{key:"registerLanguage",value:function(e,t,i){for(var n={token:e,language:t,data:i},r=0;r<this.languages.length;r++)if(this.languages[r].token==e)return void this.logger.info("Language ".concat(t," already registered"));this.languages.push(n)}},{key:"isLanguageAvailable",value:function(e){for(var t=0;t<this.languages.length;t++)if(this.languages[t].token==e)return!0;return!1}},{key:"handleURLParameter",value:function(e){e.lang&&this.isLanguageAvailable(e.lang)&&(this.defaultLocale=e.lang)}},{key:"getSingleMessage",value:function(e){var t=this.getLanguageData(this.currentlocale),i=this.getLanguageData("en"),n=Object.assign({},i,t);return n&&n.hasOwnProperty(e)?n[e]:e}},{key:"getLanguageData",value:function(e){for(var t=0;t<this.languages.length;t++)if(this.languages[t].token==e)return this.languages[t].data;return this.languages.length>0?this.languages[0].data:null}},{key:"getLocale",value:function(){return this.currentlocale?this.currentlocale:this.defaultLocale}},{key:"setLocale",value:function(e){e||(e=this.defaultLocale),this.currentlocale!=e&&(this.currentlocale=e,this.translateAll(),G.getInstance().publish(O.LOCALE_CHANGED,this.currentlocale))}},{key:"getRegisteredLanguages",value:function(){for(var e=[],t=0;t<this.languages.length;t++)e.push(this.languages[t].token);return e}},{key:"translateAll",value:function(e){var t=this.getLanguageData(this.currentlocale),i=this.getLanguageData("en"),n=Object.assign({},i,t),r=[],a=e||document.getElementById("balloonContainer")||document;for(var s in n){r=a.querySelectorAll(".".concat(s));for(var o=n[s],l=0;l<r.length;l++){var c=r[l];o=this.setParamValuesInTranslation(o,c),s.indexOf("tooltip")===s.length-"tooltip".length?c.title=o:"input"==c.nodeName.toLowerCase()?"submit"===c.attributes.type.value||"button"===c.attributes.type.value?c.value=o:c.placeholder=o:c.innerHTML=o}}}},{key:"setParamValuesInTranslation",value:function(e,t){var i=new RegExp("{[0-9]}","g"),n=e.match(i);if(n)for(var r=0;r<n.length;r++){var a=n[r].match(/{(.*)}/)[1],s=new RegExp("{[".concat(r,"]}"),"g"),o=t.getAttribute("data-".concat(a));o?e=e.replace(s,o):(e=e.replace(s,""),this.logger.warning("No attribute found to replace the placeholder at element: ".concat(t)))}return e}},{key:"replaceParamsInTranslation",value:function(e,t){var i=new RegExp("{[0-9]}","g"),n=e.match(i);if(n)for(var r=0;r<n.length;r++){n[r].match(/{(.*)}/)[1];var a=new RegExp("{[".concat(r,"]}"),"g"),s=t[r];e=s?e.replace(a,s):e.replace(a,"")}return e}}],[{key:"getInstance",value:function(){return T||(T=new e),T}},{key:"registerLanguage",value:function(t,i,n){e.getInstance().registerLanguage(t,i,n)}},{key:"getNextI18nNumber",value:function(){var t=e.getInstance();return t.i18nNumber++,t.i18nNumber}},{key:"getMessage",value:function(t){return e.getInstance().getSingleMessage(t)}},{key:"setMessage",value:function(t,i,n){var r={};r[i]=n;var a=e.getInstance(),s=a.getLanguageData(t);s&&(s[i]=n)}},{key:"setDataForElement",value:function(t,i){var n={};Array.isArray(i)||(i=[i]);for(var r=0;r<i.length;r++)n["data-".concat(String(r))]=i[r];if(t)for(var a in n)t.setAttribute(a,n[a]);e.updateElement(t)}},{key:"updateElement",value:function(t){for(var i=e.getInstance(),n=t.classList,r=0;r<n.length;r++){var a=n[r];if(-1!==a.indexOf("i18n")){var s=i.getSingleMessage(a);s=i.setParamValuesInTranslation(s,t),t.textContent=s}}}}]),e}(),C=S;i(84),i(38);O.SELECTED_ITEM_CHANGED="SELECTED_ITEM_CHANGED",O.SELECTIONSET_CHANGED="SELECTIONSET_CHANGED";var j,E=null,I=["vcs.vcm.layer.cesium.Buildings","vcs.vcm.layer.cesium.CesiumTilesetLayer","vcs.vcm.layer.TiledLayer","vcs.vcm.layer.FeatureStore","vcs.vcm.layer.Vector","vcs.vcm.layer.GeoJSON","vcs.vcm.layer.WFS"],D=function(){function e(t){Object(d["a"])(this,e),this.className="vcs.vcm.SelectBehavior",this.logger=k.getLogger(this.className);var i,n,r={invertClickBehaviorForCesiumMap:!(!t||!t.invertClickBehaviorForCesiumMap)&&t.invertClickBehaviorForCesiumMap,highlightStyle:{selectionset:{color:t&&t.highlightStyle&&t.highlightStyle.selectionset&&t.highlightStyle.selectionset.color?t.highlightStyle.selectionset.color:"#3F51B5"},currentItem:{color:t&&t.highlightStyle&&t.highlightStyle.currentItem&&t.highlightStyle.currentItem.color?t.highlightStyle.currentItem.color:"#F44336",pointStyle:{},lineStyle:t&&t.highlightStyle&&t.highlightStyle.currentItem&&t.highlightStyle.currentItem.lineStyle?t.highlightStyle.currentItem.lineStyle:{color:"#83f52c",width:1.25},polygonStyle:{fill:t&&t.highlightStyle&&t.highlightStyle.currentItem&&t.highlightStyle.currentItem.polygonStyle&&t.highlightStyle.currentItem.polygonStyle.fill?t.highlightStyle.currentItem.polygonStyle.fill:{color:"rgba(255,255,255,0.4)"},stroke:t&&t.highlightStyle&&t.highlightStyle.currentItem&&t.highlightStyle.currentItem.polygonStyle&&t.highlightStyle.currentItem.polygonStyle.stroke?t.highlightStyle.currentItem.polygonStyle.stroke:{color:"#83f52c",width:1}}}}};if(t&&t.highlightStyle&&t.highlightStyle.currentItem?t.highlightStyle.currentItem.pointStyle.icon?r.highlightStyle.currentItem.pointStyle.icon=t.highlightStyle.currentItem.pointStyle.icon:t.highlightStyle.currentItem.pointStyle.circle?r.highlightStyle.currentItem.pointStyle.circle=t.highlightStyle.currentItem.pointStyle.circle:r.highlightStyle.currentItem.pointStyle={icon:{scale:1,src:"{layerIcon}"}}:r.highlightStyle.currentItem.pointStyle={icon:{scale:1,src:"{layerIcon}"}},n=r.highlightStyle.selectionset.color,i=olcs.core.convertColorToCesium(n),this._selectionsetHighlightColor=i,n=r.highlightStyle.currentItem.color,i=olcs.core.convertColorToCesium(n),this._currentItemHighlightColor=i,r.highlightStyle.currentItem.pointStyle.icon)this._currentItemHighlightPointStyle=new ol.style.Style({image:new ol.style.Icon(r.highlightStyle.currentItem.pointStyle.icon)});else{var a=r.highlightStyle.currentItem.pointStyle.circle.stroke?new ol.style.Stroke(r.highlightStyle.currentItem.pointStyle.circle.stroke):void 0,s=new ol.style.Fill(r.highlightStyle.currentItem.pointStyle.circle.fill),o=r.highlightStyle.currentItem.pointStyle.circle.radius?r.highlightStyle.currentItem.pointStyle.circle.radius:5,l=new ol.style.Circle({fill:s,radius:o,stroke:a});this._currentItemHighlightPointStyle=new ol.style.Style({image:l})}this._currentItemHighlightLineStyle=new ol.style.Style({stroke:new ol.style.Stroke(r.highlightStyle.currentItem.lineStyle)});var c={};c.stroke=new ol.style.Stroke(r.highlightStyle.currentItem.polygonStyle.stroke),c.fill=new ol.style.Fill(r.highlightStyle.currentItem.polygonStyle.fill),this._currentItemHighlightPolygonStyle=new ol.style.Style(c),this._invertClickBehaviorForCesiumMap=!!r.invertClickBehaviorForCesiumMap,this._selectionset=[],this.selectMode="toplevelfeature",this._currentItem={},this._currentItemHighlightedUnderneath=!1,this.framework=G.getInstance(),this.active=!1,this.options=r,this.activateClickBehavior(),this.framework.subscribe(O.LAYER_DEACTIVATED,this.layerDeactivatedListener.bind(this)),this.framework.subscribe(O.FEATURE_REMOVED,this.featureRemovedListener.bind(this)),this.framework.subscribe(O.MAP_ACTIVATED,this.mapActivatedListener.bind(this)),this.selectionSetLayers=this.framework.getLayers().filter((function(e){return I.includes(e.className)})),this.framework.subscribe(O.LAYER_ACTIVATED,this.synchronizeSelectionSet.bind(this)),this.transformGeometryOnMove=!this.framework.isIE11}return Object(m["a"])(e,[{key:"activateClickBehavior",value:function(){this.active||(this.active=!0,this._invertClickBehaviorForCesiumMap?(this.featureClickedKey=this.framework.subscribe(O.FEATURE_CLICKED,this.handleFeatureCTRLClickedEvent.bind(this)),this.featureCtrlClickedKey=this.framework.subscribe(O.FEATURE_CTRL_CLICKED,this.handleFeatureClickedEvent.bind(this))):(this.featureClickedKey=this.framework.subscribe(O.FEATURE_CLICKED,this.handleFeatureClickedEvent.bind(this)),this.featureCtrlClickedKey=this.framework.subscribe(O.FEATURE_CTRL_CLICKED,this.handleFeatureCTRLClickedEvent.bind(this))),this.mapClickedKey=this.framework.subscribe(O.MAP_CLICKED,this.handleMapClickedEvent.bind(this)))}},{key:"deactivateClickBehavior",value:function(){this.active&&(this.active=!1,this.framework.unsubscribeByKey(this.featureClickedKey),this.framework.unsubscribeByKey(this.featureCtrlClickedKey),this.framework.unsubscribeByKey(this.mapClickedKey),this.clearCurrentItem())}},{key:"isClickBehaviorActivated",value:function(){return this.logger.deprecate("isClickBehaviorActivated","check the .active property"),this.active}},{key:"getInvertClickBehaviorForCesiumMap",value:function(){return this._invertClickBehaviorForCesiumMap}},{key:"setInvertClickBehaviorForCesiumMap",value:function(e){this._invertClickBehaviorForCesiumMap=e,this.deactivateClickBehavior(),this.activateClickBehavior()}},{key:"addToSelectionSet",value:function(e){var t=this,i=!1,n={};e.forEach((function(e){-1===t._selectionset.indexOf(e)&&(i=!0,t._selectionset.push(e),t._currentItem&&t._currentItem.id===e?t._currentItemHighlightedUnderneath=!0:n[e]=t._selectionsetHighlightColor)})),this.selectionSetLayers.forEach((function(e){e.initialized&&e.highlight(n)})),i&&this.framework.publish(O.SELECTIONSET_CHANGED)}},{key:"removeFromSelectionSet",value:function(e){var t=!1;e.forEach((function(e){var i=this._selectionset.indexOf(e);-1!==i&&(t=!0,this._currentItem&&this._currentItem.id&&this._currentItem.object?this._currentItem.id!==this._selectionset[i]?this.selectionSetLayers.forEach((function(e){e.initialized&&e.unHighlight([this._selectionset[i]])}),this):this._currentItemHighlightedUnderneath=null:this.selectionSetLayers.forEach((function(e){e.initialized&&e.unHighlight([this._selectionset[i]])}),this),this._selectionset.splice(i,1))}),this),t&&this.framework.publish(O.SELECTIONSET_CHANGED)}},{key:"synchronizeSelectionSet",value:function(){var e=this._selectionset.splice(0);this.clearSelectionSet(),this.addToSelectionSet(e)}},{key:"getSizeOfSelectionSet",value:function(){return this.logger.deprecate("getSizeOfSelectionSet","use getSelectionSet().length instead"),this._selectionset.length}},{key:"getSelectionSet",value:function(){return this._selectionset}},{key:"clearSelectionSet",value:function(){this.removeFromSelectionSet(this._selectionset.slice(0))}},{key:"setCurrentItem",value:function(e,t,i){if(o(e,String),l(t,Object),i&&!/^vcs\.vcm\.layer/.test(i.className))throw new Error("Match failed: expected ".concat(i," to be an instanceof vcs.vcm.layer.Layer"));this.framework.publish(O.SELECTED_ITEM_CHANGED,e,t,i),this.clearCurrentItem();for(var n=0;n<this._selectionset.length;n++)this._selectionset[n]===e&&(this.selectionSetLayers.forEach((function(e){e.initialized&&e.unHighlight([this._selectionset[n]])}),this),this._currentItemHighlightedUnderneath=!0);if(i){var r={};r[e]=i.determineHighlightStyle(e,t),i.highlight(r),this._currentItem={id:e,object:t,layer:i}}else this.selectionSetLayers.forEach((function(i){var n={};n[e]=i.determineHighlightStyle(e,t),i.highlight(n)})),this._currentItem={id:e,object:t,layer:this.selectionSetLayers};t&&i&&this.passToBalloonInfo(t,i)}},{key:"determineDefaultVectorHighlightStyle",value:function(e,t,i){var n=t.getGeometry(),r=t.get("olcs_extrudedHeight")||t.get("olcs_storeyNumber")&&t.get("olcs_storeyHeight");if(n instanceof ol.geom.Point||n instanceof ol.geom.MultiPoint){var a,s=t.getStyle()?t.getStyle():i.style.style,o=!1;if(s instanceof Function&&(s=s(t),o=!0),s.getImage())if(this._currentItemHighlightPointStyle.getImage()instanceof ol.style.Icon)if(s.getImage()instanceof ol.style.Icon){if(!o)if("{layerIcon}"===this._currentItemHighlightPointStyle.getImage().getSrc())s=i.style.style;else if("{featureIcon}"===this._currentItemHighlightPointStyle.getImage().getSrc()){var l=i.getFeatureById(e);s=l.getStyle()}var c,u=s.getImage().getImage();if("canvas"===u.nodeName.toLowerCase()){var h=s.getImage().getSize();c={img:u,imgSize:[h[0],h[1]],scale:this.options.highlightStyle.currentItem.pointStyle.icon.scale?this.options.highlightStyle.currentItem.pointStyle.icon.scale:1}}else{var d=s.getImage().getSrc();c=Object.assign({},this.options.highlightStyle.currentItem.pointStyle.icon,{src:d})}a=new ol.style.Style({image:new ol.style.Icon(c)})}else{var m=s.getImage().clone(),f=this.options.highlightStyle.currentItem.pointStyle.icon.scale?m.getScale()*this.options.highlightStyle.currentItem.pointStyle.icon.scale:2*m.getScale();m.setScale(f),a=new ol.style.Style({image:m})}else this._currentItemHighlightPointStyle.getImage()instanceof ol.style.Circle&&(a=new ol.style.Style({image:this._currentItemHighlightPointStyle.getImage()}));else a=new ol.style.Style({});if(s.getText()){var g=s.getText().clone(),y=g.getScale()||1,p=this.options.highlightStyle.currentItem.pointStyle.icon.scale?y*this.options.highlightStyle.currentItem.pointStyle.icon.scale:2*y;g.setScale(p),g.setFill(this._currentItemHighlightPolygonStyle.getFill()),a.setText(g)}return r&&a.setStroke(this._currentItemHighlightLineStyle.getStroke()),a}return n instanceof ol.geom.LineString||n instanceof ol.geom.MultiLineString?r?this._currentItemHighlightPolygonStyle:this._currentItemHighlightLineStyle:this._currentItemHighlightPolygonStyle}},{key:"passToBalloonInfo",value:function(e,t){var i=this.getBalloonInfoWidget();if(i){var n=t.getGenericFeatureFromClickedObject(e);n?i.createBalloonForGenericFeature(n):this.logger.warning("Could not create generic feature to pass to balloonInfo")}}},{key:"getBalloonInfoWidget",value:function(){return this.balloonWidget||(this.balloonWidget=this.framework.getWidgetByType("vcs.vcm.widgets.BalloonInfo")),this.balloonWidget}},{key:"clearCurrentItem",value:function(e){function t(e,t,n){e.unHighlight([t]),n&&(i={},i[t]=n,e.highlight(i))}var i;if(this._currentItem&&this._currentItem.id&&this._currentItem.layer){var n=this._currentItem.layer,r=this._currentItem.id;if(this._currentItem={},Array.isArray(n))n.forEach((function(e){var i=!!this._currentItemHighlightedUnderneath&&this._selectionsetHighlightColor;t(e,r,i)}),this);else{var a=!!this._currentItemHighlightedUnderneath&&this._selectionsetHighlightColor;t(n,r,a)}}this._currentItemHighlightedUnderneath=!1;var s=this.getBalloonInfoWidget();s&&s.clearBalloon(),e||this.framework.publish(O.SELECTED_ITEM_CHANGED,null)}},{key:"getCurrentItem",value:function(){return this._currentItem}},{key:"handleFeatureClickedEvent",value:function(e,t,i){this.setCurrentItem(e,t,i)}},{key:"handleFeatureCTRLClickedEvent",value:function(e,t,i){-1!==this._selectionset.indexOf(e)?this.removeFromSelectionSet([e]):this.addToSelectionSet([e])}},{key:"getLink",value:function(e){if(null!=this._currentItem.id&&null!=this._currentItem.layer){var t={};if(t.slLayer=this._currentItem.layer.name,t.slId=this._currentItem.id,this._currentItem.object instanceof ol.Feature){var i=this._currentItem.object.getGeometry();t.slOlT=i.getType()}e.addQueryParams(t)}}},{key:"handleMapClickedEvent",value:function(){this.clearCurrentItem()}},{key:"layerDeactivatedListener",value:function(e){this._currentItem.layer===e&&this.clearCurrentItem()}},{key:"featureRemovedListener",value:function(e){this.removeFromSelectionSet([e.id]),this._currentItem.id===e.id&&this.clearCurrentItem()}},{key:"mapActivatedListener",value:function(e){this._currentItem.layer&&this._currentItem.object&&(this._currentItem.layer.isSupported(e)?this.passToBalloonInfo(this._currentItem.object,this._currentItem.layer):this.clearCurrentItem())}}],[{key:"getInstance",value:function(t){return E||(E=new e(t)),E}},{key:"dispose",value:function(){E=null}}]),e}(),P=D,A=function(){function e(){Object(d["a"])(this,e),this.key_=1,this.pendingKeys_=[],this.publishDepth_=0,this.subscriptions_=[],this.topics_={}}return Object(m["a"])(e,[{key:"subscribe",value:function(e,t,i){o(e,String),o(t,Function);var n=this.topics_[e];n||(n=this.topics_[e]=[]);var r=this.key_;return this.subscriptions_[r]=e,this.subscriptions_[r+1]=t,this.subscriptions_[r+2]=i,this.key_=r+3,n.push(r),r}},{key:"subscribeOnce",value:function(e,t,i){var n=!1,r=this.subscribe(e,(function(e){n||(n=!0,this.unsubscribeByKey(r),t.apply(i,arguments))}),this);return r}},{key:"unsubscribe",value:function(e,t,i){var n=this.topics_[e];if(n){var r=this.subscriptions_,a=n.find((function(e){return r[e+1]==t&&r[e+2]==i}));if(a)return this.unsubscribeByKey(a)}return!1}},{key:"unsubscribeByKey",value:function(e){var t=this.subscriptions_[e];if(t){var i=this.topics_[t];if(0!=this.publishDepth_)this.pendingKeys_.push(e),this.subscriptions_[e+1]=function(){};else{if(i){var n=i.indexOf(e);i.splice(n,1)}delete this.subscriptions_[e],delete this.subscriptions_[e+1],delete this.subscriptions_[e+2]}}return!!t}},{key:"publish",value:function(t,i){var n=this.topics_[t];if(n){for(var r=new Array(arguments.length-1),a=1,s=arguments.length;a<s;a++)r[a-1]=arguments[a];if(this.async_)for(a=0;a<n.length;a++){var o=n[a];e.runAsync_(this.subscriptions_[o+1],this.subscriptions_[o+2],r)}else{this.publishDepth_++;try{for(a=0,s=n.length;a<s;a++){o=n[a];this.subscriptions_[o+1].apply(this.subscriptions_[o+2],r)}}finally{var l;if(this.publishDepth_--,this.pendingKeys_.length>0&&0==this.publishDepth_)while(l=this.pendingKeys_.pop())this.unsubscribeByKey(l)}}return 0!=a}return!1}},{key:"clear",value:function(e){if(e){var t=this.topics_[e];t&&(t.forEach(this.unsubscribeByKey,this),delete this.topics_[e])}else this.subscriptions_.length=0,this.topics_={}}},{key:"getCount",value:function(e){if(e){var t=this.topics_[e];return t?t.length:0}var i=0;for(var n in this.topics_)i+=this.getCount(n);return i}},{key:"disposeInternal",value:function(){this.clear(),this.pendingKeys_.length=0}}]),e}(),x=A,Y=function e(){Object(d["a"])(this,e),this.projection=null},N=new Y,F=0,R=Symbol("VcsConfigStyle"),H=function(){function e(){Object(d["a"])(this,e),this.widgets={},this.maps={},this.layers={},this.viewpoints={},this.styles={},this.flights={},this.activemap=null,this.lastactivemap=null,this.startingmap="",this.startViewPoint=null,this.mapcontainer=null,this.urlParameter=null,this.pubsub=new x,this.logger=k.getLogger("vcs.vcm.Framework"),this.layerIndexCounter=0,this.numberOfLocales=0,this.initialized=!1,this.exclusiveListener={id:null,listeners:[],removedCallback:null},this.config={},this.currentLocale=null,this.libraryBasePath="",this.baseUrl="",this.isIE11=!!window.MSInputMethodContext&&!!document.documentMode}return Object(m["a"])(e,[{key:"setInitialized",value:function(e){this.initialized=e}},{key:"isInitialized",value:function(){return this.initialized}},{key:"loadLibraries",value:function(e,t,i){this.libs||(this.libs={});for(var n=[],r=0;r<e.length;r++){var a=e[r];""===this.libraryBasePath||t||(a=this.libraryBasePath+a),this.libs[a]||(this.libs[a]=new Promise((function(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=a,n.defer=!1,n.async=!1,n.onload=e,n.onerror=t,i&&(/\.es6\.js$/.test(a)?n.type="module":n.noModule=!0),document.head.appendChild(n)}))),n.push(this.libs[a])}return Promise.all(n)}},{key:"addElementsToMapContainer",value:function(){var e=document.createElement("div");e.setAttribute("id","balloonContainer"),e.classList.add("mapElement"),e.classList.add("vcm-map-top");var t=document.createElement("div");t.setAttribute("id","vcmui"),this.mapcontainer.appendChild(e),this.mapcontainer.appendChild(t),this.mapcontainer.classList.add("vcs_map_container"),this.mapcontainer.classList.add("vcm-font-default")}},{key:"getConfig",value:function(e){var t=this.config;if(e)for(var i=e.split("."),n=0;n<i.length;n+=1){var r=i[n];if("undefined"===typeof t[r])return{};t=t[r]}return t}},{key:"handleUiPlugins",value:function(e){e&&e.plugins&&Object.keys(e.plugins).forEach((function(t){var i=this,n=e.plugins[t],r=n._entry||"plugins/".concat(t,"/").concat(t,".js");if("_dev"!==r){var a=[r],s=n._esmodule;s&&a.unshift(r.replace(/\.js$/,".es6.js")),this.loadLibraries(a,null,s).then((function(){i.logger.info("Loaded Plugin: ".concat(t))})).catch((function(){i.logger.warning("Could not find JS file for ui plugin ".concat(t)),delete e.plugins[t]}))}}),this)}},{key:"getI18nConfig",value:function(){return{availableLocales:this.config.availableLocales,locale:this.config.locale,i18n:this.config.i18n}}},{key:"addStyle",value:function(e){this.styles[e.name]=e}},{key:"getStyleByName",value:function(e){return o(e,String),this.styles[e]}},{key:"getStyles",value:function(){return this.styles}},{key:"addFlight",value:function(e){o(e.name,String),this.flights[e.name]=e}},{key:"getFlightByName",value:function(e){return o(e,String),this.flights[e]}},{key:"getFlights",value:function(){return Object.values(this.flights)}},{key:"getLogger",value:function(){return this.logger}},{key:"getActiveMap",value:function(){return this.activemap}},{key:"addMap",value:function(e){return this.maps[e.name]?(this.logger.warning("The map ".concat(e.name," already exist.")),!1):(this.maps[e.name]=e,!0)}},{key:"getMapByName",value:function(e){return this.maps[e]||null}},{key:"getMapByType",value:function(e){return Object.values(this.maps).find((function(t){return t.className===e}))}},{key:"activateMap",value:function(e,t){var i=this,n=this.getMapByType(e);n||(n=this.getMapByName(e));var r=this.activemap?this.activemap.className:null,a=n?n.className:null;if("vcs.vcm.maps.Cesium"!==r||"vcs.vcm.maps.Openlayers"!==a)return this._activateMapHandler(n,t);var s=this.activemap.getViewPoint();return s?(n.fixedNorthOrientation&&(s.heading=0),s.pitch=-90,s.animate=!0,s.groundPosition&&(s.cameraPosition=null),new Promise((function(e){i.activemap.gotoViewPoint(s,1,null,(function(){var r={listener:null};r.listener=i.activemap.getScene().postRender.addEventListener((function(){r.listener&&r.listener(),e(i._activateMapHandler(n,t))}))}))}))):Promise.reject()}},{key:"_synchronizeLayers",value:function(){var e=this,t=Object.values(this.layers).map((function(t){if(t.isSupported()){if(t.isCommonLayer())return t.synchronize(e.activemap,e.lastactivemap);if(!t.initialized&&t.activeOnStartup&&"vcs.vcm.layer.oblique.ObliqueLayer"!==t.className)return t.activate()}return Promise.resolve()}));return Promise.all(t.map((function(e){return e.catch((function(e){return e}))})))}},{key:"_activateMapHandler",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=34;break}if(n=i,!this.activemap){e.next=24;break}if(this.activemap.name!==t.name){e.next=7;break}if(!n){e.next=6;break}return e.abrupt("return",this.activemap.gotoViewPoint(n));case 6:return e.abrupt("return");case 7:if(n){e.next=11;break}return e.next=10,this.activemap.getViewPoint(!0,!0);case 10:n=e.sent;case 11:return e.next=13,t.canShowViewpoint(n);case 13:if(r=e.sent,r){e.next=21;break}if(a=t.fallbackMap,!a){e.next=21;break}return this.publish(O.MAP_FALLBACK_ACTIVATED,t),e.next=20,this._activateMapHandler(a,i);case 20:return e.abrupt("return",e.sent);case 21:return e.next=23,this.activemap.deactivate();case 23:this.lastactivemap=this.activemap;case 24:return this.activemap=t,e.next=27,this.activemap.activate();case 27:if(!t.active){e.next=34;break}return e.next=30,this._synchronizeLayers();case 30:if(!n){e.next=33;break}return e.next=33,this.activemap.gotoViewPoint(n);case 33:this.publish(O.MAP_ACTIVATED,t);case 34:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{key:"getMaps",value:function(){return Object.values(this.maps)}},{key:"addViewPoint",value:function(e){this.viewpoints[e.name]=e}},{key:"getViewPointByName",value:function(e){for(var t in this.viewpoints)if(this.viewpoints.hasOwnProperty(t)&&this.viewpoints[t].name==e)return this.viewpoints[t];return null}},{key:"getViewPoints",value:function(){var e=[];for(var t in this.viewpoints)this.viewpoints.hasOwnProperty(t)&&e.push(this.viewpoints[t]);return e}},{key:"getStartViewPoint",value:function(){return this.startViewPoint}},{key:"addLayer",value:function(e){return this.layers[e.name]?(this.logger.warning("Could not add Layer with same name twice, make sure the LayerName is unique"),!1):(this.layers[e.name]=e,e.index=this.layerIndexCounter,this.layerIndexCounter+=1,this.getActiveMap()&&!e.initialized&&e.activeOnStartup&&e.activate(),!0)}},{key:"removeLayerByName",value:function(e){var t=this.getLayerByName(e);t&&(t.dispose(),this.removeLayer(t))}},{key:"removeLayer",value:function(e){this.layers[e.name]&&delete this.layers[e.name]}},{key:"getLayerByName",value:function(e){return this.layers[e]||null}},{key:"getLayers",value:function(){return Object.values(this.layers)}},{key:"addWidget",value:function(e){return this.widgets[e.name]?(this.logger.warning("Could not add Widget with same name twice, make sure the widgetname is unique"),!1):(this.widgets[e.name]=e,!0)}},{key:"getWidgetByName",value:function(e){return this.logger.deprecate("getWidgetByName","use getWidgetByType instead"),this.widgets[e]||null}},{key:"getWidgetsByType",value:function(e){return Object.values(this.widgets).filter((function(t){return t.className===e}))}},{key:"getWidgets",value:function(){return Object.values(this.widgets)}},{key:"setStartViewPoint",value:function(e){this.startViewPoint=e}},{key:"getMapContainer",value:function(){return this.mapcontainer}},{key:"getWidgetByType",value:function(e){return Object.values(this.widgets).find((function(t){return t.className===e}))}},{key:"subscribe",value:function(e,t,i){return this.pubsub.subscribe(e,t,i)}},{key:"subscribeOnce",value:function(e,t,i){return e?this.pubsub.subscribeOnce(e,t,i):null}},{key:"subscribeExclusive",value:function(e,t,i,n,r){o(e,[String,O]),o(t,Function),o(i,String),l(n,Function),this.setExclusive(i,n);var a=this.pubsub.subscribe(e,t,r);return this.exclusiveListener.listeners.push(a),a}},{key:"subscribeOnceExclusive",value:function(e,t,i,n,r){var a;o(e,[String,O]),o(t,Function),o(i,String),l(n,Function),this.setExclusive(i,n);var s=function(){this.exclusiveListener.listeners=this.exclusiveListener.listeners.filter((function(e){return e!==a})),0===this.exclusiveListener.listeners.length&&this.clearExclusive(),t.call.apply(t,[r].concat(Array.prototype.slice.call(arguments)))};return a=this.pubsub.subscribeOnce(e,s,this),this.exclusiveListener.listeners.push(a),a}},{key:"setExclusive",value:function(e,t){if(null!==this.exclusiveListener.id&&this.exclusiveListener.id!==e){this.exclusiveListener.removedCallback&&this.exclusiveListener.removedCallback();while(this.exclusiveListener.listeners.length>0)this.unsubscribeByKey(this.exclusiveListener.listeners.shift())}P.getInstance().deactivateClickBehavior(),this.exclusiveListener.id=e,this.exclusiveListener.removedCallback=t}},{key:"clearExclusive",value:function(){P.getInstance().activateClickBehavior(),this.exclusiveListener.id=null,this.exclusiveListener.removedCallback=null}},{key:"unsubscribe",value:function(e,t,i){this.logger.deprecate("unsubscribe","use the unsubscribeByKey mechanic"),this.pubsub.unsubscribe(e,t,i)}},{key:"unsubscribeByKey",value:function(e){var t=this.exclusiveListener.listeners.indexOf(e);t>-1&&(this.exclusiveListener.listeners.splice(t,1),0===this.exclusiveListener.listeners.length&&this.clearExclusive()),this.pubsub.unsubscribeByKey(e)}},{key:"publish",value:function(e){for(var t,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(t=this.logger).debug.apply(t,["Published: ".concat(e)].concat(n)),this.pubsub.publish.apply(this.pubsub,arguments)}},{key:"getLocale",value:function(){return this.currentLocale}},{key:"getLocales",value:function(){return C.getInstance().getRegisteredLanguages()}},{key:"setLocale",value:function(e){this.currentLocale!==e&&(this.currentLocale=e,C.getInstance().setLocale(this.currentLocale))}},{key:"setProjection",value:function(e){this.logger.deprecate("setProjection","Framework Projection is not settable, change Config"),N.projection=e}},{key:"getProjection",value:function(){return this.logger.deprecate("getProjection","Access the property projection directly"),this.projection}},{key:"getSelectBehavior",value:function(){return P.getInstance()}},{key:"getNextUniqueId",value:function(){return":".concat((F++).toString(36))}},{key:"isMobile",value:function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}},{key:"dispose",value:function(){if(j){var t=e.getInstance();t.isInitialized()&&(Object.values(this.layers).forEach((function(e){return e.dispose()})),Object.values(this.maps).forEach((function(e){return e.dispose()})),Object.values(this.widgets).forEach((function(e){return e.dispose()})),this.widgets={},this.maps={},this.layers={},this.viewpoints={},this.startViewPoint=null,this.activemap=null,this.startingmap="",this.pubsub=new x,this.mapcontainer=null),j=void 0}}},{key:"projection",get:function(){return N.projection}}],[{key:"activateLogging",value:function(){e.getInstance().logger.deprecate("Framework.activateLogging","use vcs.vcm.util.Logger.enabled instead"),k.enabled="info"}},{key:"getVersion",value:function(){return/VCM_VERSION/.test(e.VCM_VERSION)?"3.6.000-devel #12345":e.VCM_VERSION}},{key:"getInstance",value:function(){return j||(j=new e),j}},{key:"VCM_VERSION",get:function(){return"3.7.203-stable #c6bc47c"}},{key:"configContentSymbol",get:function(){return R}}]),e}(),G=H,z=null,B=function(){function e(){Object(d["a"])(this,e),this.layers=new Map,this._listeners=[];var t=G.getInstance();this._listeners.push(t.subscribe(O.LAYER_ACTIVATED,this.handleLayerActivated,this)),this._listeners.push(t.subscribe(O.SPLIT_DIRECTION_CHANGED,this.handleSplitDirectionChanged,this))}return Object(m["a"])(e,[{key:"registerLayer",value:function(e){var t=e.exclusiveGroup;if(t){this.layers.has(t)||this.layers.set(t,new Set);var i=this.layers.get(t);i.add(e),G.getInstance().initialized&&e.active&&this.handleLayerActivated(e)}}},{key:"unregisterLayer",value:function(e){var t=e.exclusiveGroup;t&&this.layers.has(t)&&this.layers.get(t).delete(e)}},{key:"handleSplitDirectionChanged",value:function(e){e.active&&this.handleLayerActivated(e)}},{key:"handleLayerActivated",value:function(e){if(e.exclusiveGroup&&this.layers.has(e.exclusiveGroup)){var t=e.splitDirection||0;this.layers.get(e.exclusiveGroup).forEach((function(i){i===e||t&&i.splitDirection&&i.splitDirection!==t||i.deactivate()}))}}},{key:"getActiveLayersForGroup",value:function(e){var t=this.layers.get(e);if(t){var i=[];return t.forEach((function(e){e.active&&i.push(e)})),i}return[]}},{key:"destroy",value:function(){z=null;var e=G.getInstance();this._listeners.forEach((function(t){e.unsubscribeByKey(t)})),this._listeners=[],this.layers.clear()}}]),e}();function V(){return z||(z=new B),z}i(183),i(47);var U=i(13),W=i(16),q=i.n(W),J=ol.proj.getTransform("EPSG:4326","EPSG:3857"),K=ol.proj.getTransform("EPSG:3857","EPSG:4326"),Z=k.getLogger("vcs.vcm.util.Projection"),Q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(d["a"])(this,e),this._proj4=null;var i="";if(t.epsg&&(i=e.parseEPSGCode(t.epsg),i&&(t.proj4&&(this._proj4=t.proj4,proj4.defs(i,t.proj4)),t.alias&&Array.isArray(t.alias)))){var n=t.alias;n.forEach((function(e){proj4.defs(e,proj4.defs(i))}),this)}this._epsg=i,this.proj||(this._epsg=N.projection?N.projection.epsg:"EPSG:4326")}return Object(m["a"])(e,[{key:"getProjection",value:function(){return Z.deprecate("getProjection","Access the property proj directly"),this.proj}},{key:"getEPSG",value:function(){return Z.deprecate("getEPSG","Access the property epsg directly"),this.epsg}},{key:"getPROJ4",value:function(){return Z.deprecate("getPROJ4","Access the property proj4 directly"),this.proj4}},{key:"transformTo",value:function(t,i){return e.transform(t,this,i)}},{key:"transformFrom",value:function(t,i){return e.transform(this,t,i)}},{key:"getConfigObject",value:function(){var e={epsg:this.epsg};return this.proj4&&(e.proj4=this.proj4),e}},{key:"epsg",get:function(){return this._epsg}},{key:"proj4",get:function(){return this._proj4}},{key:"proj",get:function(){return ol.proj.get(this.epsg)}}],[{key:"transform",value:function(e,t,i){var n=ol.proj.getTransform(t.proj,e.proj),r=new Array(2);return n([i[0],i[1]],r,2),i.length>2&&r.push(i[2]),r}},{key:"transformCoordinates",value:function(t,i,n){for(var r=[],a=0;a<n.length;a++)r.push(e.transform(t,i,n[a]));return r}},{key:"getTransformer",value:function(e,t){return ol.proj.getTransform(t.proj,e.proj)}},{key:"createGeographicProjection",value:function(){return Z.deprecate("createGeographicProjection","use vcs.vcm.util.wgs84Projection"),new e({epsg:4326})}},{key:"createMercatorProjection",value:function(){return Z.deprecate("createMercatorProjection","use vcs.vcm.util.mercatorProjection"),new e({epsg:3857})}},{key:"parseUrlParameter",value:function(t){var i=t.epsg,n=t.proj4;return new e({epsg:i,proj4:n})}},{key:"mercatorToWgs84",value:function(e,t){return K(e,t?e:void 0,e.length)}},{key:"wgs84ToMercator",value:function(e,t){return J(e,t?e:void 0,e.length)}},{key:"validateOptions",value:function(t){var i=null;if(t.epsg)try{i=proj4(e.parseEPSGCode(t.epsg))}catch(n){i=null}if(t.proj4)try{i=proj4(t.proj4)}catch(n){i=null}return null!=i}},{key:"parseEPSGCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:",i="".concat(e).match(/^(?:epsg:)?(\d+)/i);return i&&i[1]?"".concat(t).concat(i[1]):""}}]),e}(),X=Q,$=new Q({epsg:4326}),ee=new Q({epsg:3857}),te=1,ie=function(){function e(){Object(d["a"])(this,e)}return Object(m["a"])(e,null,[{key:"getNextBit",value:function(e){return e<<1}},{key:"interactionTypeCounter",get:function(){return te}}]),e}(),ne={NONE:te=ie.getNextBit(te),ALT:te=ie.getNextBit(te),CTRL:te=ie.getNextBit(te),SHIFT:te=ie.getNextBit(te),ALL:0};ne.ALL=ne.NONE|ne.ALT|ne.CTRL|ne.SHIFT;var re={NONE:0,CLICK:te=ie.getNextBit(te),DBLCLICK:te=ie.getNextBit(te),DRAG:te=ie.getNextBit(te),DRAGSTART:te=ie.getNextBit(te),DRAGEND:te=ie.getNextBit(te),MOVE:te=ie.getNextBit(te),DRAGEVENTS:0,CLICKMOVE:0,ALL:0};re.DRAGEVENTS=re.DRAG|re.DRAGEND|re.DRAGSTART,re.CLICKMOVE=re.CLICK|re.MOVE,re.ALL=Object.values(re).reduce((function(e,t){return e|t}),0);var ae={LEFT:te=ie.getNextBit(te),RIGHT:te=ie.getNextBit(te),MIDDLE:te=ie.getNextBit(te),ALL:0};ae.ALL=ae.LEFT|ae.RIGHT|ae.CENTER;var se=0;function oe(){return se+=1,se}var le=function(){function e(){Object(d["a"])(this,e),this.id=oe(),this._defaultActive=re.NONE,this.active=this._defaultActive,this._defaultModificationKey=ne.NONE,this.modificationKey=this._defaultModificationKey,this._defaultPointerKey=ae.LEFT,this.pointerKey=this._defaultPointerKey}return Object(m["a"])(e,[{key:"initialize",value:function(){this.handleMapChange(G.getInstance().getActiveMap())}},{key:"handleMapChange",value:function(e){}},{key:"pipe",value:function(e){return this.pipeThrough(e)}},{key:"pipeThrough",value:function(e){return Promise.resolve(e)}},{key:"setActive",value:function(e){"undefined"===typeof e?(this.active=this._defaultActive,this.modificationKey=this._defaultModificationKey,this.pointerKey=this._defaultPointerKey):this.active="boolean"===typeof e?e?this._defaultActive:re.NONE:e}},{key:"setModification",value:function(e){this.modificationKey=e||this._defaultModificationKey}},{key:"setPointer",value:function(e){this.pointerKey=e||this._defaultPointerKey}}]),e}(),ce=le,ue=i(3),he=i(4),de=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.chain=e||[],n._defaultActive=re.ALL,n._defaultModificationKey=ne.ALL,n._defaultPointerKey=ae.ALL,n.setActive(),n}return Object(m["a"])(i,[{key:"addInteraction",value:function(e,t){null!=t?this.chain.splice(t,0,e):this.chain.push(e)}},{key:"removeInteraction",value:function(e){var t=this.chain.findIndex((function(t){return t.id===e.id}));return t>-1&&this.chain.splice(t,1),t}},{key:"initialize",value:function(){this.chain.forEach((function(e){e.initialize()}))}},{key:"handleMapChange",value:function(e){this.chain.forEach((function(t){t.handleMapChange(e)}))}},{key:"pipe",value:function(e){for(var t=Promise.resolve(e),i=this.chain.length,n=0;n<i;n++){var r=this.chain[n];r.active&e.type&&r.modificationKey&e.key&&r.pointerKey&e.pointer&&(t=t.then(function(e){return e.stopPropagation?Promise.resolve(e):this.pipe(e)}.bind(r)))}return t}},{key:"setModification",value:function(){this.modificationKey=this._defaultModificationKey}},{key:"setPointer",value:function(){this.pointerKey=this._defaultPointerKey}}]),i}(ce),me=de,fe=i(5);function ge(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=Object(fe["a"])(e),null===e)break;return e}function ye(e,t,i){return ye="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=ge(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(i):r.value}},ye(e,t,i||e)}i(659),i(88);var pe=function(){function e(t){Object(d["a"])(this,e),this.className=t.className?t.className:"vcs.vcm.Framework",this.id=Object(u["c"])(),this.framework=G.getInstance(),this.options=t,this.logger=k.getLogger(this.className),this.name=t.name||Object(u["c"])()}return Object(m["a"])(e,[{key:"getClassName",value:function(){return this.logger.deprecate("getClassName","Access the property className directly"),this.className}},{key:"getName",value:function(){return this.logger.deprecate("getName","Access the property name directly"),this.name}},{key:"getId",value:function(){return this.logger.deprecate("getId","Use name property as a unique identifier"),this.id}},{key:"getConfigObject",value:function(){return{type:this.className,name:this.name}}}]),e}(),ve=pe;O.MAP_ACTIVATED="MAP_ACTIVATED",O.MAP_CLICKED="MAP_CLICKED",O.CLICKED="CLICKED",O.CLICKED_FIRST_HIT="CLICKED_FIRST_HIT",O.FEATURE_CLICKED="FEATURE_CLICKED",O.FEATURE_CTRL_CLICKED="FEATURE_CTRL_CLICKED",O.CLUSTER_CLICKED="CLUSTER_CLICKED",O.MAP_FALLBACK_ACTIVATED="MAP_FALLBACK_ACTIVATED";var _e={},be=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.mapElement=document.createElement("div"),n.mapElement.setAttribute("id",Object(u["c"])()),n.framework.getMapContainer().appendChild(n.mapElement),n.mapElement.classList.add("mapElement"),n.mapElement.classList.add("vcm-map-top"),n.hide(),n.supportedlayers=[],n.active=!1,n.initialized=!1,n.layerState={},n.layerStateObject={state:!1},n.movementDisabled=!1,n._fallbackMap=e.fallbackMap||null,n}return Object(m["a"])(i,null,[{key:"specificLayerImpl",get:function(){return _e}}]),Object(m["a"])(i,[{key:"isSupported",value:function(){return this.logger.deprecate("isSupported","all maps are always supported, there is no need for this check"),!0}},{key:"isInitialized",value:function(){return this.logger.deprecate("isInitialized","access the initialized property directly"),this.initialized}},{key:"raiseClickEvent",value:function(e,t,i,n,r){if(t&&i&&null!=n){var a={longitude:t,latitude:i,height:n};r&&(a.obliqueParameters=r),this.framework.publish(e,a)}}},{key:"raiseClickedFirstHitEvent",value:function(e){e.latitude&&e.longitude&&e.height&&this.framework.publish(O.CLICKED_FIRST_HIT,e)}},{key:"isActive",value:function(){return this.logger.deprecate("isActive","access the active property instead."),this.active}},{key:"setLayerLoading",value:function(e,t){this.layerState[e.name]=t,this.layerStateObject.state=Object.values(this.layerState).some((function(e){return e}))}},{key:"canShowViewpoint",value:function(e){return Promise.resolve(!0)}},{key:"activate",value:function(e){return Promise.resolve()}},{key:"deactivate",value:function(){this.active=!1;var e=this.getViewPoint();return this.hide(),Promise.resolve(e)}},{key:"show",value:function(){if(null!==this.mapElement){this.mapElement.style.display="";var e=this.className.substr(this.className.lastIndexOf(".")+1,this.className.length);this.framework.getMapContainer().classList.add(e)}}},{key:"hide",value:function(){if(null!==this.mapElement){this.mapElement.style.display="none";var e=this.className.substr(this.className.lastIndexOf(".")+1,this.className.length);this.framework.getMapContainer().classList.remove(e)}}},{key:"supportsLayer",value:function(e){return null!=e&&this.supportedlayers.includes(e.type)}},{key:"disableMovement",value:function(e){this.movementDisabled=e}},{key:"gotoViewPoint",value:function(e,t,i,n){return Promise.resolve()}},{key:"getViewPoint",value:function(e,t){throw new Error}},{key:"dispose",value:function(){this.mapElement.parentElement.removeChild(this.mapElement),this.mapElement=null}},{key:"pointIsVisible",value:function(e){return!1}},{key:"getLink",value:function(e){return e.addQueryParams({startingmap:this.name}),this.getViewPoint(!0,!0).then((function(t){return t.getLink(e),e}))}},{key:"handleURLParameter",value:function(e){}},{key:"requestRender",value:function(){}},{key:"fallbackMap",get:function(){if(this._fallbackMap){var e=this.framework.getMapByName(this._fallbackMap);if(e&&e!==this)return e;this.logger.warning("the fallback map with the name: ".concat(this._fallbackMap," is missconfigured")),this._fallbackMap=null}return null},set:function(e){l(e,i),this._fallbackMap=e?e.name:null}}],[{key:"registerSpecificLayerImpl",value:function(e,t,n){i.specificLayerImpl[e]||(i.specificLayerImpl[e]={}),i.specificLayerImpl[e][t]=n}},{key:"createSpecificLayerImpl",value:function(e,t){return i.specificLayerImpl[e.className][t.className]?new i.specificLayerImpl[e.className][t.className](t.options):null}}]),i}(ve),Le=be,we=(i(85),k.getLogger("vcs.vcm.util.ViewPoint")),Me=function(){function e(t){Object(d["a"])(this,e),this.name=t.name?t.name:Object(u["c"])(),this.cameraPosition=null,Array.isArray(t.cameraPosition)&&3===t.cameraPosition.length&&(this.cameraPosition=t.cameraPosition.map((function(e){return Number(e)}))),this.groundPosition=null,Array.isArray(t.groundPosition)&&(this.groundPosition=t.groundPosition.map((function(e){return Number(e)}))),this.distance=null!=t.distance?t.distance:null,"string"===typeof this.distance&&(this.distance=Number(this.distance)),this.heading=Object(u["g"])(t.heading,0),this.pitch=Object(u["g"])(t.pitch,-90),this.roll=Object(u["g"])(t.roll,0),this.animate=Object(u["e"])(t.animate,!1),this.duration=t.duration||null,this.easingFunctionName=t.easingFunctionName||null}return Object(m["a"])(e,[{key:"getConfigObject",value:function(){return{name:this.name,distance:this.distance,cameraPosition:this.cameraPosition?this.cameraPosition.slice():null,groundPosition:this.groundPosition?this.groundPosition.slice():null,heading:this.heading,pitch:this.pitch,roll:this.roll,animate:this.animate,duration:this.duration,easingFunctionName:this.easingFunctionName}}},{key:"clone",value:function(){return new e(this.getConfigObject())}},{key:"getName",value:function(){return we.deprecate("getName","Access the property name directly"),this.name}},{key:"getCameraPosition",value:function(){return we.deprecate("getCameraPosition","Access the property cameraPosition directly"),this.cameraPosition}},{key:"setCameraPosition",value:function(e){we.deprecate("setCameraPosition","Access the property cameraPosition directly"),this.cameraPosition=e}},{key:"getAnimate",value:function(){return we.deprecate("getAnimate","Access the property animate directly"),this.animate}},{key:"setAnimate",value:function(e){we.deprecate("setAnimate","Access the property animate directly"),this.animate=e}},{key:"getGroundPosition",value:function(){return we.deprecate("getGroundPosition","Access the property groundPosition directly"),this.groundPosition}},{key:"setGroundPosition",value:function(e){we.deprecate("setGroundPosition","Access the property groundPosition directly"),this.groundPosition=e}},{key:"getDistance",value:function(){return we.deprecate("getDistance","Access the property distance directly"),this.distance}},{key:"setDistance",value:function(e){we.deprecate("setDistance","Access the property distance directly"),this.distance=e}},{key:"getHeading",value:function(){return we.deprecate("getHeading","Access the property heading directly"),this.heading}},{key:"setHeading",value:function(e){we.deprecate("setHeading","Access the property heading directly"),this.heading=e}},{key:"getPitch",value:function(){return we.deprecate("getPitch","Access the property pitch directly"),this.pitch}},{key:"setPitch",value:function(e){we.deprecate("setPitch","Access the property pitch directly"),this.pitch=e}},{key:"getRoll",value:function(){return we.deprecate("getRoll","Access the property roll directly"),this.roll}},{key:"setRoll",value:function(e){we.deprecate("setRoll","Access the property roll directly"),this.roll=e}},{key:"toString",value:function(){var e="ViewPoint: [Ground:".concat(String(this.groundPosition?this.groundPosition:null),"]")+"[Camera:".concat(String(this.cameraPosition?this.cameraPosition:null),"]")+"[Distance:".concat(this.distance,"]")+"[heading:".concat(this.distance,"]")+"[pitch:".concat(this.distance,"]")+"[roll:".concat(this.distance,"]");return e}},{key:"getLink",value:function(e){var t={},i="",n=this.groundPosition,r=this.cameraPosition;if(null!=e.queryParams.epsg){var a=$,s=new X({epsg:e.queryParams.epsg});n&&(n=X.transform(s,a,this.groundPosition)),r&&(r=X.transform(s,a,this.cameraPosition))}r&&(r.forEach((function(e){i+="".concat(e.toFixed(5),",")})),i=i.slice(0,-1),t.cameraPosition=i),i="",n&&(n.forEach((function(e){i+="".concat(e.toFixed(5),",")})),i=i.slice(0,-1),t.groundPosition=i),null!=this.distance&&(t.distance=this.distance.toFixed(2)),null!=this.pitch&&(t.pitch=this.pitch.toFixed(2)),null!=this.heading&&(t.heading=this.heading.toFixed(2)),null!=this.roll&&(t.roll=this.roll.toFixed(2)),e.addQueryParams(t)}},{key:"isValid",value:function(){try{var e=!1,t=!1;try{e=!o(this.cameraPosition,[Number])&&3===this.cameraPosition.length}catch(i){t=!o(this.groundPosition,[Number])&&this.groundPosition.length>1&&this.groundPosition.length<4}if(!e&&!t)throw new Error("Viewpoint is missing position");return t&&o(this.distance,Number),o(this.heading,Number),o(this.pitch,Number),o(this.roll,Number),!0}catch(i){return!1}}},{key:"easingFunction",get:function(){return this.easingFunctionName?Cesium.EasingFunction[this.easingFunctionName]:null}}],[{key:"createViewPointFromExtent",value:function(t){if(t&&4===t.length){var i=t[0],n=t[1],r=t[2],a=t[3],s=[(r-i)/2+i,(a-n)/2+n],o=0,l=Math.max(r-i,a-n);return o=l<.001?400:3e5*l,new e({name:"viewpointFromExtend",distance:o,groundPosition:s,heading:360,pitch:-90,roll:0,animate:!0})}return null}},{key:"parseURLparameter",value:function(t){var i=t.cameraPosition,n=t.groundPosition;if(null!=i&&(i=i.split(",").map((function(e){return Number(e)}))),null!=n&&(n=n.split(",").map((function(e){return Number(e)}))),null!=t.epsg){var r=X.parseUrlParameter(t),a=$;n&&(n=X.transform(a,r,n)),i&&(i=X.transform(a,r,i))}var s={cameraPosition:i,groundPosition:n,distance:Number(t.distance),pitch:Number(t.pitch),heading:Number(t.heading),roll:Number(t.roll)};return new e(s)}}]),e}(),ke=Me,Oe=(i(168),i(169),i(105),i(661),i(27)),Te=null,Se=function(){function e(){Object(d["a"])(this,e),this.className="vcs.vcm.NavigationMode",this.logger=k.getLogger(this.className),this.timeLastTick=null,this.lookFactor=.05,this.moveFactor=1,this.framework=G.getInstance(),this.allowHeightChanges=!1,this.useAbsoluteHeight=!1,this.referenceHeight=1.6,this.navActive=!1,this.initialized=!1,this.clockListenerRemover=null,this.boundClockTickHandler=this.clockOnTickHandler.bind(this),this.values={referenceHeight:this.referenceHeight,active:!1,walkmode:!1},this.flags={looking:!1,moveForward:!1,moveBackward:!1,moveUp:!1,moveDown:!1,moveLeft:!1,moveRight:!1,increaseFOV:!1,decreaseFOV:!1,rotation:!1,tiltUp:!1,tiltDown:!1,rotateEast:!1,rotateWest:!1},this.heading=null,this.defaultFOV=null}return Object(m["a"])(e,[{key:"setOptions",value:function(e){this.referenceHeight=e.referenceHeight||this.referenceHeight,this.moveFactor=e.moveFactor||this.moveFactor}},{key:"getLink",value:function(e){var t=this.framework.getActiveMap();this.navActive&&"vcs.vcm.maps.Cesium"===t.className&&e.addQueryParams({nav_uah:this.useAbsoluteHeight,nav_ahc:this.allowHeightChanges,nav_rh:this.referenceHeight})}},{key:"handleURLParameter",value:function(e){e.nav_rh&&(this.referenceHeight=e.nav_rh,this.values.referenceHeight=this.referenceHeight,this.activateFirstPersonMode(null,null,null,e.nav_ahc,e.nav_uah))}},{key:"isActive",value:function(){return this.logger.deprecate("isActive","access the navActive property directly"),this.navActive}},{key:"setFlags",value:function(e){var t=this;Object.entries(e).forEach((function(e){var i=Object(Oe["a"])(e,2),n=i[0],r=i[1];null!=t.flags[n]&&(t.flags[n]=r)}))}},{key:"setFlag",value:function(e,t){this.logger.deprecate("setFlag","access the flags property directly."),this.flags[e]=t}},{key:"activateFirstPersonMode",value:function(e,t,i,n,r){var a=this,s=this.framework.getActiveMap();if("vcs.vcm.maps.Cesium"===s.className){if(this.activateOverviewControls(!1),this.useAbsoluteHeight=r||!1,this.allowHeightChanges="boolean"===typeof n?n:this.allowHeightChanges,e){e.animate=!0,e.duration=t||e.duration;var o=i||null;this.navActive=!1,s.gotoViewPoint(e,null,o).then((function(){a.navActive=!0,a.activateFirstPersonControls(!0)}))}else this.navActive=!0,this.activateFirstPersonControls(!0);Object.keys(this.flags).forEach((function(e){a.flags[e]=!1})),this.values.walkmode=!0}else this.logger.warning("First person mode only available on Cesium (3D) map")}},{key:"activateOverviewMode",value:function(e,t,i){var n=this,r=this.framework.getActiveMap();if("vcs.vcm.maps.Cesium"===r.className)if(this.useAbsoluteHeight=!1,this.values.referenceHeight=1.6,this.navActive=!1,this.values.walkmode=!1,this.activateFirstPersonControls(!1),e){e.animate=!0,e.duration=t||e.duration;var a=i||null;r.gotoViewPoint(e,null,a).then((function(){n.activateOverviewControls(!0)}))}else this.activateOverviewControls(!0);else this.logger.warning("First person mode only available on Cesium (3D) map")}},{key:"activateFirstPersonControls",value:function(e){var t=this;if(e&&this.navActive)if(this.initializeCesium()){var i=this.cesiumMap.getViewPoint(!1),n=this.cesiumScene.globe.getHeight(Cesium.Cartographic.fromDegrees(i.cameraPosition[0],i.cameraPosition[1]));this.useAbsoluteHeight&&(this.values.referenceHeight=i.cameraPosition[2]-n),this.correctCurrentHeight(n),this.cesiumHandler.setInputAction((function(e){t.flags.looking=!0,t.startMousePosition=Cesium.Cartesian3.clone(e.position),t.mousePosition=t.startMousePosition}),Cesium.ScreenSpaceEventType.LEFT_DOWN),this.cesiumHandler.setInputAction((function(e){t.mousePosition=e.endPosition}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),this.cesiumHandler.setInputAction((function(){t.flags.looking=!1}),Cesium.ScreenSpaceEventType.LEFT_UP),this.clockListenerRemover&&this.clockListenerRemover(),this.clockListenerRemover=this.cesiumViewer.clock.onTick.addEventListener(this.boundClockTickHandler)}else this.logger.warning("Could not initialize, is Cesium active");else this.initialized&&(null!==this.defaultFOV&&(this.cesiumViewer.camera.frustum.fov=this.defaultFOV),this.clockListenerRemover&&this.clockListenerRemover(),this.cesiumHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOWN),this.cesiumHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_UP),this.cesiumHandler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE))}},{key:"initializeCesium",value:function(){return this.initialized||(this.cesiumMap=this.framework.getMapByType("vcs.vcm.maps.Cesium"),this.cesiumMap&&(this.cesiumViewer=this.cesiumMap.getCesiumWidget(),this.defaultFOV=this.cesiumViewer.camera.frustum.fov,this.cesiumScene=this.cesiumMap.getScene(),this.cesiumCanvas=this.cesiumScene.canvas,this.cesiumCanvas.setAttribute("tabindex","0"),this.cesiumCanvas.onclick=function(){this.cesiumCanvas.focus()}.bind(this),this.cesiumHandler=new Cesium.ScreenSpaceEventHandler(this.cesiumCanvas),this.cesiumEllipsoid=this.cesiumScene.globe.ellipsoid,this.initialized=!0)),!0}},{key:"activateOverviewControls",value:function(e){this.initializeCesium()?(this.cesiumScene.screenSpaceCameraController.enableRotate=e,this.cesiumScene.screenSpaceCameraController.enableTranslate=e,this.cesiumScene.screenSpaceCameraController.enableZoom=e,this.cesiumScene.screenSpaceCameraController.enableTilt=e,this.cesiumScene.screenSpaceCameraController.enableLook=e):this.logger.warning("Could not initialize, is Cesium active")}},{key:"clockOnTickHandler",value:function(e){if(!this.cesiumMap.movementDisabled){var t=this.timeLastTick?e.currentTime.secondsOfDay-this.timeLastTick.secondsOfDay:1/60;(t<=0||t>1)&&(t=1/60);var i=t/(1/60);this.timeLastTick=e.currentTime;var n=this.cesiumViewer.camera,r=this.lookFactor*i;if(this.flags.increaseFOV&&(n.frustum.fov=n.frustum.fov+.01>=5*Math.PI/8?n.frustum.fov:n.frustum.fov+.01),this.flags.decreaseFOV&&(n.frustum.fov=n.frustum.fov-.01<=Math.PI/10?Math.PI/10:n.frustum.fov-.01),this.flags.looking){var a=this.cesiumCanvas.clientWidth,s=this.cesiumCanvas.clientHeight,o=(this.mousePosition.x-this.startMousePosition.x)/a,l=-(this.mousePosition.y-this.startMousePosition.y)/s;n.look(n.position,r*o),n.lookUp(l*r)}if(this.flags.rotation&&n.look(n.position,r/10),this.flags.tiltUp&&n.lookUp(r/10),this.flags.tiltDown&&n.lookUp(-r/10),this.flags.rotateEast&&n.look(n.position,r/10),this.flags.rotateWest&&n.look(n.position,-r/10),null!==this.heading){var c=Cesium.Math.toRadians(this.heading)-n.heading;n.look(n.position,c),this.heading=null}var u=this.cesiumEllipsoid.cartesianToCartographic(n.position).height,h=this.cesiumScene.globe.getHeight(this.cesiumEllipsoid.cartesianToCartographic(n.position));h&&!this.useAbsoluteHeight||(h=u-this.referenceHeight);var d=(u-h)/30*i*this.moveFactor,m={heading:n.heading,pitch:n.pitch,roll:0},f=Cesium.Math.PI/2-.1;m.pitch>f&&(m.pitch=f),n.setView({orientation:{heading:n.heading,pitch:0,roll:0}}),this.flags.moveForward&&n.moveForward(d),this.flags.moveBackward&&n.moveBackward(d),this.flags.moveUp&&(this.referenceHeight+=d/2,this.values.referenceHeight=Number(this.referenceHeight.toFixed(2))),this.flags.moveDown&&(this.referenceHeight-=d/2,this.referenceHeight<1&&(this.referenceHeight=1),this.values.referenceHeight=Number(this.referenceHeight.toFixed(2))),this.flags.moveLeft&&n.moveLeft(d),this.flags.moveRight&&n.moveRight(d),this.correctCurrentHeight(h,m)}}},{key:"correctCurrentHeight",value:function(e,t){var i,n=this.cesiumViewer.camera,r=t||{heading:n.heading,pitch:n.pitch,roll:0};if(null==e||this.allowHeightChanges)n.setView({orientation:r});else{var a=n.positionCartographic,s=Number.parseFloat(this.values.referenceHeight.toString());Number.isNaN(s)||s.toFixed(2)===this.referenceHeight.toFixed(2)||(this.referenceHeight=s),this.values.referenceHeight=Number(this.referenceHeight.toFixed(2)),a.height=e+this.referenceHeight,i=Cesium.Cartesian3.fromRadians(a.longitude,a.latitude,a.height),n.setView({destination:i,orientation:r})}}},{key:"setValues",value:function(e){o(e,{referenceHeight:Number,active:Boolean,walkmode:Boolean},!1),this.values=e}},{key:"setHeading",value:function(e){this.logger.deprecate("setHeading","set the heading property instead"),this.heading=e}}],[{key:"getInstance",value:function(){return Te||(Te=new e),Te}},{key:"dispose",value:function(){Te=null}}]),e}(),Ce=Se,je=k.getLogger("vcs.vcm.util.Extent");function Ee(e){return!(!e||!Array.isArray(e)||4!==e.length)&&(!!(Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2])&&Number.isFinite(e[3]))&&(e[0]<=e[2]&&e[1]<=e[3]))}var Ie=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(d["a"])(this,e),this.projection=new X({epsg:t.epsg,proj4:t.proj4,alias:t.alias}),this.extent=t.coordinates||this.projection.proj.getExtent()}return Object(m["a"])(e,[{key:"getProjection",value:function(){return je.deprecate("getProjection","access the .projection property directly"),this.projection}},{key:"getCoordinatesInProjection",value:function(e,t){if(e.epsg===this.projection.epsg){var i=t?t.splice.apply(t,[0,4].concat(Object(g["a"])(this.extent))):this.extent.slice();return i}var n=X.getTransformer(e,this.projection),r=t||[];return n(this.extent,r,2),r}},{key:"isValid",value:function(){return Ee(this.extent)}},{key:"getConfigObject",value:function(){return Object.assign({coordinates:this.extent.slice()},this.projection.getConfigObject())}},{key:"clone",value:function(){return new e(this.getConfigObject())}},{key:"inputCoordinates",get:function(){return je.deprecate("inputCoordinates","use .extent instead"),this.extent},set:function(e){je.deprecate("inputCoordinates","use .extent instead"),this.extent=e}}],[{key:"validateOptions",value:function(e){return X.validateOptions(e)&&Ee(e.coordinates)}},{key:"WGS_84_EXTENT",get:function(){return[-180,-90,180,90]}}]),e}(),De=Ie,Pe={VECTOR:"vector",DECLARATIVE:"declarative",REFERENCE:"reference"},Ae=function(){function e(t){Object(d["a"])(this,e),this.className=t.className||"vcs.vcm.util.style.StyleItem",this.name=t.name||t.id||Object(u["c"])(),this.title=t.title||this.name.toString(),this.legend=t.legend||[],this.supportedLayers=[],this.cesiumStyle=new Cesium.Cesium3DTileStyle({show:!0}),this.styleChanged=new Cesium.Event,this.colorBlendMode=Object(u["f"])(t.colorBlendMode,Cesium.Cesium3DTileColorBlendMode,Cesium.Cesium3DTileColorBlendMode.HIGHLIGHT),this.style=null}return Object(m["a"])(e,[{key:"isSupported",value:function(e){return 0===this.supportedLayers.length||this.supportedLayers.indexOf(e)>-1}},{key:"getOptions",value:function(e){return e&&e.meta?{name:this.name.toString(),title:this.title,legend:this.legend.length?this.legend:void 0}:{}}},{key:"clone",value:function(e){return e}},{key:"assign",value:function(e){return e}},{key:"getReference",value:function(){return{type:Pe.REFERENCE,name:this.name.toString()}}},{key:"_styleChanged",value:function(){this.styleChanged.raiseEvent()}}]),e}(),xe=Ae,Ye=k.getLogger("vcs.vcm.util.style.StyleHelpers"),Ne={NWSE:1,SWNE:2,DIAGONALCROSS:3,NS:4,WE:5,CROSS:6};function Fe(e,t){var i=e.substring(1);return 3===i.length&&(i=i.replace(/([\w\d])/g,"$1$1")),[parseInt(i.substring(0,2),16),parseInt(i.substring(2,4),16),parseInt(i.substring(4,6),16),null!=t?t:1]}function Re(e){var t=e.toBytes();return t[3]/=255,t}function He(e){if(Array.isArray(e))return 3===e.length&&e.push(1),e;if("string"===typeof e){if(/^#/.test(e))return Fe(e);if(/^rgba?\((\d+(,\s?)?){3}((0|1)(\.\d+)?)?\)/.test(e)){var t=e.replace(/^rgba?\(([\s\S]+?)\)/,"$1").replace(/\s/,"").split(",").map((function(e){return Number(e)}));return 3===t.length&&t.push(1),t}}if(e instanceof CanvasPattern)return[255,255,255,.4];throw new Error("Cannot parse color ".concat(e))}function Ge(e){return"rgba(".concat(He(e).join(","),")")}function ze(e,t){var i=ol.has.DEVICE_PIXEL_RATIO,n=t||document.createElement("canvas");t&&n.width||(n.width=(e.pattern.size||10)*i,n.height=(e.pattern.size||10)*i);var r=n.getContext("2d"),a=n.width;function s(t,i){r.strokeStyle=Ge(e.pattern.color),r.lineWidth=e.pattern.width,r.lineCap="square",r.beginPath(),r.moveTo(t[0],t[1]),r.lineTo(i[0],i[1]),r.stroke()}switch(r.fillStyle=Ge(e.color),r.fillRect(0,0,a,a),e.pattern.type){case 1:s([a/2,a],[a,a/2]),s([0,a/2],[a/2,0]);break;case 2:s([a/2,a],[0,a/2]),s([a,a/2],[a/2,0]);break;case 3:s([a/2,a],[a,a/2]),s([0,a/2],[a/2,0]),s([a/2,a],[0,a/2]),s([a,a/2],[a/2,0]);break;case 4:s([a/2,0],[a/2,a]);break;case 5:s([0,a/2],[a,a/2]);break;case 6:s([a/2,0],[a/2,a]),s([0,a/2],[a,a/2]);break;default:return null}return r.createPattern(n,"repeat")}function Be(e){function t(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}return e.slice(0,3).reduce((function(e,i){return"".concat(e).concat(t(i))}),"#")}function Ve(e){return/^#[0-9a-f]{6}$/.test(e)}function Ue(e){if("string"!==typeof e)return e;var t=null,i=null,n="normal",r="normal",a="normal",s="normal";return e.split(/\s+/).forEach((function(e){switch(e){case"normal":break;case"italic":case"oblique":n=e;break;case"small-caps":a=e;break;case"bold":case"bolder":case"lighter":case"100":case"200":case"300":case"400":case"500":case"600":case"700":case"800":case"900":r=e;break;default:if(!i){var o=e.split("/");i=o[0],o.length>1&&(s=o[1]);break}t=t?"".concat(t," ").concat(e):e;break}})),{fontStyle:n,fontVariant:a,fontWeight:r,fontSize:i,lineHeight:s,fontFamily:t}}function We(e){var t=["fontStyle","fontVariant","fontWeight","fontSize","fontFamily"],i=null;return Object.entries(e).filter((function(e){return"normal"!==e[1]&&"lineWeight"!==e[0]})).sort((function(e,i){var n=t.indexOf(e[0]),r=t.indexOf(i[0]);return n<r?-1:n>r?1:0})).forEach((function(e){i=i?"".concat(i," ").concat(e[1]):e[1]})),i||""}function qe(e,t,i,n){for(var r=n||[0,0],a=e.getImageData(r[0],r[1],i[0],i[1]),s=a.data,o=Object(Oe["a"])(t,3),l=o[0],c=o[1],u=o[2],h=s.length,d=0;d<h;d+=4)s[d]=l,s[d+1]=c,s[d+2]=u;e.putImageData(a,r[0],r[1])}function Je(e){if(e.getFill()){var t=e.getFill().getColor();try{t=He(t).slice()}catch(i){Ye.warning(i.message)}return{color:t}}}function Ke(e){var t=e.getColor();if(t)try{t=He(t).slice()}catch(i){Ye.warning(i.message)}return{color:t,width:e.getWidth(),lineDash:e.getLineDash()}}function Ze(e){return{font:e.getFont(),fill:Je(e),stroke:e.getStroke()?Ke(e.getStroke()):void 0,textBaseline:e.getTextBaseline(),offsetY:e.getOffsetY(),offsetX:e.getOffsetX()}}function Qe(e){var t=Object.assign({},e);return!t.fill||t.fill instanceof ol.style.Fill||(t.fill=new ol.style.Fill(t.fill)),!t.stroke||t.stroke instanceof ol.style.Stroke||(t.stroke=new ol.style.Stroke(t.stroke)),t.font&&"string"!==typeof t.font&&(t.font=We(t.font)),new ol.style.Text(t)}var Xe=new ol.style.Style({}),$e=[255,255,255,1],et=[0,0,0,1];function tt(){return{image:{fill:{color:[255,255,255,.4]},stroke:{color:et,width:1},radius:5},stroke:{color:[51,153,204,1],width:1.25},fill:{color:[255,255,255,.4]},text:{font:"bold 18px sans-serif",textBaseline:"bottom",offsetY:-15,offsetX:0}}}var it={olcs_color:Ge($e),olcs_scale:"1.0",olcs_outlineWidth:"0.0",olcs_outlineColor:Ge(et),olcs_pointSize:"8.0",olcs_image:void 0,olcs_font:"'".concat(tt().text.font,"'"),olcs_fontColor:Ge(et),olcs_fontOutlineWidth:"1.0",olcs_fontOutlineColor:Ge($e),olcs_labelText:void 0,olcs_anchorLineColor:Ge($e)};function nt(e,t){var i="Boolean(${".concat(e,"})===true"),n=t?"color(${".concat(e,"})"):"${".concat(e,"}");return[[i,n],["true",it[e]]]}function rt(e){return!e.fill||e.fill instanceof ol.style.Fill||(e.fill=new ol.style.Fill(e.fill)),!e.stroke||e.stroke instanceof ol.style.Stroke||(e.stroke=new ol.style.Stroke(e.stroke)),e.points?new ol.style.RegularShape(e):new ol.style.Circle(e)}var at=function(){function e(){Object(d["a"])(this,e),this.shapes=[]}return Object(m["a"])(e,[{key:"addImage",value:function(e){var t=rt(Object.assign({},e)),i=t.getImage(1);e.src=i.toDataURL(),this.shapes.push(e)}}]),e}(),st=new at,ot={fill:new ol.style.Fill({color:[255,255,255,1]}),stroke:new ol.style.Stroke({color:[0,0,0,1],width:1}),radius:16};[null,{points:3},{points:3,angle:Math.PI},{points:4,angle:Math.PI/4},{points:6}].forEach((function(e){var t=e?Object.assign(e,ot):ot;st.addImage(t)}));var lt={POLYGON:1,POLYLINE:2,POINT:3},ct=k.getLogger("vcs.vcm.util.style.StyleItem"),ut=Symbol("VcsVectorStyleItem"),ht=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),i.validateOptions(e),n.exclude={fill:!1===e.fill,stroke:!1===e.stroke,image:!1===e.image},n._fillOptions=null,n._fill=void 0,n._stroke=e.stroke?new ol.style.Stroke(e.stroke):void 0,n._text=void 0,e.text&&(n._text=Qe(e.text)),n._label=e.label,n._cesiumColor=new Cesium.Color,n._image=void 0,e.image&&(n._image=e.image.radius?rt(Object.assign({},e.image)):new ol.style.Icon(e.image)),n._style=new ol.style.Style({image:n._image,stroke:n._stroke,text:n._text}),e.fill?(n._fillOptions=e.fill,n._setFill()):n.updateCesiumStyle(),n}return Object(m["a"])(i,[{key:"_setFill",value:function(){if(this._style instanceof ol.style.Style){var e=this._fillOptions.pattern?ze(this._fillOptions):this._fillOptions.color;this._fill?this._fill.setColor(e):(this._fill=new ol.style.Fill({color:e}),this._style.setFill(this._fill)),this._fillOptions.pattern&&(this._fill.fallBackColor=this._fillOptions.color),this.updateCesiumStyle()}}},{key:"updateCesiumStyle",value:function(){this.updateCesiumStyleColor(!0),this.updateCesiumStyleImage(!0),this.updateCesiumStyleText(!0),this._styleChanged()}},{key:"updateCesiumStyleColor",value:function(e){var t=nt("olcs_color",!0);this.stroke&&this.stroke.getColor()&&t.splice(1,0,["${olcs_geometryType}===".concat(lt.POLYLINE),Ge(this.stroke.getColor())]),this._image instanceof ol.style.Circle&&this._image.getFill()&&t.splice(1,0,["${olcs_geometryType}===".concat(lt.POINT),Ge(this._image.getFill().getColor())]),this.fillColor&&t.splice(-1,1,["true",Ge(this.fillColor)]),this.cesiumStyle.color={conditions:t},e||this._styleChanged()}},{key:"updateCesiumStyleImage",value:function(e){var t=nt("olcs_scale"),i=nt("olcs_outlineWidth"),n=nt("olcs_outlineColor",!0),r=nt("olcs_pointSize"),a=nt("olcs_image");if(this._image)if(null!=this._image.getScale()&&t.splice(1,1,["true","".concat(this._image.getScale())]),this._image instanceof ol.style.Circle){var s=this._image.getStroke(),o=2*this._image.getRadius();if(s){this._image.getStroke().getColor()&&n.splice(1,1,["true",Ge(this._image.getStroke().getColor())]);var l=this._image.getStroke().getWidth();i.splice(1,1,["true","".concat(l)]),o-=l}r.splice(1,1,["true","".concat(o)])}else if(this._image instanceof ol.style.RegularShape){var c=this._image.getImage(1).toDataURL();a.splice(1,1,["true",'"'.concat(c,'"')])}else this._image instanceof ol.style.Icon&&a.splice(1,1,["true",'"'.concat(this._image.getSrc(),'"')]);this.cesiumStyle.scale={conditions:t},this.cesiumStyle.pointOutlineWidth={conditions:i},this.cesiumStyle.pointOutlineColor={conditions:n},this.cesiumStyle.pointSize={conditions:r},this.cesiumStyle.image={conditions:a},this.cesiumStyle.verticalOrigin="1",this.cesiumStyle.horizontalOrigin="0",e||this._styleChanged()}},{key:"updateCesiumStyleText",value:function(e){var t=nt("olcs_font"),i=nt("olcs_labelText"),n=nt("olcs_fontColor",!0),r=nt("olcs_fontOutlineWidth"),a=nt("olcs_fontOutlineColor",!0);this._text&&(this._text.getFont()&&t.splice(1,1,["true","'".concat(this._text.getFont(),"'")]),this._text.getText()&&i.splice(1,1,["true","'".concat(this._text.getText(),"'")]),this._text.getFill()&&this._text.getFill().getColor()&&n.splice(1,1,["true",Ge(this._text.getFill().getColor())]),this._text.getStroke()&&this._text.getStroke().getColor()&&(a.splice(1,1,["true",Ge(this._text.getStroke().getColor())]),r.splice(1,1,["true","".concat(this._text.getStroke().getWidth()||1.25)]))),this.cesiumStyle.font={conditions:t},this.cesiumStyle.labelText={conditions:i},this.cesiumStyle.labelColor={conditions:n},this.cesiumStyle.labelOutlineWidth={conditions:r},this.cesiumStyle.labelOutlineColor={conditions:a},this.cesiumStyle.labelStyle="Boolean(${olcs_fontOutlineWidth}) === true ? 2 : 0",this.cesiumStyle.labelHorizontalOrigin="0";var s=Cesium.VerticalOrigin.CENTER;if(this._text)switch(this._text.getTextBaseline()){case"top":s=Cesium.VerticalOrigin.TOP;break;case"middle":s=Cesium.VerticalOrigin.CENTER;break;case"bottom":s=Cesium.VerticalOrigin.BOTTOM;break;case"alphabetic":s=Cesium.VerticalOrigin.TOP;break;case"hanging":s=Cesium.VerticalOrigin.BOTTOM;break;default:break}this.cesiumStyle.labelVerticalOrigin=s,e||this._styleChanged()}},{key:"clone",value:function(e){var t=this;return e?(e.style=this._style instanceof ol.style.Style?this._style.clone():this._style,this._fillOptions&&this._fillOptions.color&&(e.fillColor=this._fillOptions.color.slice(),this._fillOptions.pattern&&(e.pattern=Object.assign({},this._fillOptions.pattern))),Object.keys(this.exclude).forEach((function(i){t.exclude[i]&&e.unset(i)})),e):new i(this.getOptions())}},{key:"assign",value:function(e){var t=this;return e.fillColor&&(this.fillColor=e.fillColor.slice()),e.pattern?this.pattern=Object.assign({},e.pattern):this.pattern=void 0,e.stroke&&(this.stroke=e.stroke.clone()),e.image&&(this.image=e.image.clone()),e.text&&(this.text=e.text.clone()),e.label&&(this.label=e.label),Object.keys(e.exclude).forEach((function(i){e.exclude[i]&&t.unset(i)})),this}},{key:"getOptions",value:function(e){var t=ye(Object(fe["a"])(i.prototype),"getOptions",this).call(this,e);t.type=Pe.VECTOR;var n=e||{fill:!0,stroke:!0,text:!0,image:!0};return n.fill&&(this._fillOptions?(t.fill={color:He(this._fillOptions.color).slice()},this._fillOptions.pattern&&(t.fill.pattern=Object.assign({},this._fillOptions.pattern))):this.exclude.fill&&(t.fill=!1)),n.stroke&&(this._stroke?t.stroke=Ke(this._stroke):this.exclude.stroke&&(t.stroke=!1)),n.text&&this._text&&(t.text=Ze(this._text)),n.label&&(t.label=this._label),n.image&&(this._image instanceof ol.style.Icon?t.image={src:this._image.getSrc(),scale:this._image.getScale(),opacity:this._image.getOpacity()}:this._image instanceof ol.style.Circle?t.image={scale:this._image.getScale(),fill:Je(this._image),radius:this._image.getRadius(),stroke:this._image.getStroke()?Ke(this._image.getStroke()):void 0}:this._image instanceof ol.style.RegularShape?t.image={scale:this._image.getScale(),fill:Je(this._image),points:this._image.getPoints(),angle:this._image.getAngle(),radius:this._image.getRadius(),stroke:this._image.getStroke()?Ke(this._image.getStroke()):void 0}:this.exclude.image&&(t.image=!1)),t}},{key:"getOptionsForFeature",value:function(e){var t=e.getGeometry().getType(),i=e.get("olcs_extrudedHeight")||e.get("olcs_storeyHeight")&&e.get("olcs_storeyNumber"),n={};return"Point"===t||"MultiPoint"===t?(null!=e[ut].label&&(n.text=!0,n.label=!0),n.image=!0,i&&(n.stroke=!0)):"LineString"===t||"MultiLineString"===t?(n.stroke=!0,i&&(n.fill=!0)):"Polygon"===t||"MultiPolygon"===t||"Circle"===t?(n.stroke=!0,n.fill=!0):"GeometryCollection"===t&&(n.stroke=!0,n.fill=!0,n.image=!0,n.text=!0),this.getOptions(n)}},{key:"unset",value:function(e){o(e,Object.keys(this.exclude)),"fill"===e?this.fillColor=void 0:this[e]=void 0,this.exclude[e]=!0}},{key:"fillColor",get:function(){return this._fillOptions?this._fillOptions.color:null},set:function(e){this.exclude.fill=!1,this._style instanceof ol.style.Style?e?(this._fillOptions?this._fillOptions.color=He(e):this._fillOptions={color:He(e)},this._setFill()):(this._fillOptions=null,this._fill=void 0,this._style.setFill(this._fill),this.updateCesiumStyleColor(!0)):ct.info("trying to set fill on a style function")}},{key:"cesiumFillColor",get:function(){var e,t=this.fillColor?this.fillColor.slice():null;return t?(t[3]=t[3]||1,t[3]*=255,(e=Cesium.Color).fromBytes.apply(e,Object(g["a"])(t).concat([this._cesiumColor]))):Cesium.Color.RED.clone(this._cesiumColor)}},{key:"pattern",get:function(){return this._fillOptions&&this._fillOptions.pattern?this._fillOptions.pattern:null},set:function(e){this._fillOptions?(e?(l(e,{color:[String,[Number]],width:Number,type:Number,size:[Number,void 0,null]},!0),this._fillOptions.pattern=e):this._fillOptions.pattern=void 0,this._setFill()):ct.error("Missing fill color")}},{key:"stroke",get:function(){return this._stroke},set:function(e){this.exclude.stroke=!1,this._style instanceof ol.style.Style?(l(e,ol.style.Stroke),this._style.setStroke(e),this._stroke=e,this.updateCesiumStyleColor(!0)):ct.info("trying to set stroke on a style function")}},{key:"label",get:function(){return this._label},set:function(e){l(e,String),e.length?this._label=e:this._label=void 0,this._text&&this._text.setText(e)}},{key:"text",get:function(){return this._text},set:function(e){this._style instanceof ol.style.Style?(l(e,ol.style.Text),this._text=e,this._text.setText(this._label),this._style.setText(this._text)):ct.info("trying to set text on a style function")}},{key:"image",get:function(){return this._image},set:function(e){this.exclude.image=!1,this._style instanceof ol.style.Style?(l(e,ol.style.Image),this._image=e,this._style.setImage(this._image),this.updateCesiumStyle()):ct.info("trying to set text on a style function")}},{key:"style",get:function(){return this._style},set:function(e){l(e,[ol.style.Style,Function]),e instanceof ol.style.Style?(this._stroke=e.getStroke(),this._fill=e.getFill(),this._text=e.getText(),this._image=e.getImage()):(this._stroke=void 0,this._fill=void 0,this._text=void 0,this._image=void 0),this._style=e,this._fill&&this._fill.getColor()&&(this._fillOptions={color:He(this._fill.getColor())}),this._text&&this._text.setText(this._label),this.updateCesiumStyle()}}],[{key:"validateOptions",value:function(e){function t(e){try{e.color=He(e.color),o(e.color,[Number]),o(e.color.length,[3,4])}catch(t){ct.error(t.message),e.color=[255,255,255,.4]}}function i(e){t(e),e.width||(ct.error("missing width for stroke, setting to 1.5"),e.width=1.5)}e.fill&&(t(e.fill),e.fill.pattern&&(i(e.fill.pattern),e.fill.pattern.type&&Object.values(Ne).includes(e.fill.pattern.type)||(ct.error("Cannot find pattern ".concat(e.fill.pattern.type)),e.fill.pattern.type=Ne.NWSE))),e.stroke&&i(e.stroke),e.image&&(e.image.icon?e.image=e.image.icon:e.image.circle&&(e.image=e.image.circle),e.image.src||e.image.radius||(ct.error("missing source or label in style, setting default circle"),e.image={fill:{color:"rgba(255,255,255,0.4)"},stroke:{color:"#3399CC",width:1},radius:5}),e.image.radius&&(e.image.radius=Number(e.image.radius),Number.isFinite(e.image.radius)||(ct.error("radius must be a number"),e.image.radius=5),e.image.fill&&t(e.image.fill),e.image.stroke&&i(e.image.stroke)))}}]),i}(xe),dt=ht,mt=new ht(tt());function ft(e){var t=e.toBytes();return t[3]/=255,new ht({fill:{color:t},stroke:{color:t,width:mt.stroke.getWidth()}})}var gt=i(19),yt=Symbol("alreadyTransformedToMercator"),pt=Symbol("alreadyTransformedToImage"),vt=Symbol("imageGeometryChanged"),_t=Symbol("obliqueGeometry"),bt=Symbol("doNotTransform"),Lt=Symbol("OriginalFeature"),wt=new Cesium.Color,Mt=k.getLogger("vcs.vcm.util.style.DeclarativeStyleItem"),kt=new ol.style.Text({font:"30px sans-serif",fill:new ol.style.Fill({color:$e}),textAlign:"left",offsetY:-15});function Ot(e,t,i){i[t].conditions?e[t]=new Cesium.ConditionsExpression(i[t],i.defines):e[t]=new Cesium.Expression(i[t],i.defines)}var Tt,St=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=e.declarativeStyle||{};return r.show=null==r.show||r.show,n.cesiumStyle=new Cesium.Cesium3DTileStyle(r),n.style=n._styleFunction.bind(Object(gt["a"])(n)),r.strokeColor&&Ot(n.cesiumStyle,"strokeColor",r),r.strokeWidth&&Ot(n.cesiumStyle,"strokeWidth",r),n._styleOptions=r,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.util.style.DeclarativeStyleItem"}}]),Object(m["a"])(i,[{key:"getOptions",value:function(e){var t=ye(Object(fe["a"])(i.prototype),"getOptions",this).call(this,e);t.type=Pe.DECLARATIVE;var n=e||{declarativeStyle:!0,defaults:!0};return n.declarativeStyle&&(t.declarativeStyle=this.cesiumStyle.style),t}},{key:"clone",value:function(e){return e?e.assign(this):new i(this.getOptions())}},{key:"assign",value:function(e){return this.cesiumStyle=e.cesiumStyle,this._styleOptions=this.cesiumStyle.style,this}},{key:"_styleFunction",value:function(e){var t=e[Lt]||e;if(!this.cesiumStyle.show.evaluate(t))return Xe;var i=t.getGeometry().getType();return"Point"===i?this._stylePoint(t):"Polygon"===i?this._stylePolygon(t):"LineString"===i?this._styleLineString(t):"Circle"===i?this._stylePolygon(t):"MultiPoint"===i?this._stylePoint(t):"MultiPolygon"===i?this._stylePolygon(t):"MultiLineString"===i?this._styleLineString(t):(Mt.warning("could not style geometry type: ".concat(i)),Xe)}},{key:"_stylePolygon",value:function(e){var t=new ol.style.Style({}),i=this.cesiumStyle.color?this.cesiumStyle.color.evaluate(e,wt):Cesium.Color.WHITE;return i&&t.setFill(new ol.style.Fill({color:Re(i)})),this._evaluateStroke(e,t),t}},{key:"_styleLineString",value:function(e){var t=new ol.style.Style({}),i=e.get("olcs_extrudedHeight")||e.get("olcs_storeyHeight")&&e.get("olcs_storeyNumber"),n=this.cesiumStyle.color?this.cesiumStyle.color.evaluate(e,wt):Cesium.Color.WHITE;if(n)if(i)t.setFill(new ol.style.Fill({color:Re(n)}));else{var r=this.cesiumStyle.strokeWidth?this.cesiumStyle.strokeWidth.evaluate(e):1;t.setStroke(new ol.style.Stroke({width:Number.isFinite(r)?r:1,color:Re(n)}))}return i&&this._evaluateStroke(e,t),t}},{key:"_stylePoint",value:function(e){var t=new ol.style.Style({});if(this.cesiumStyle.labelText){var i=this.cesiumStyle.labelText.evaluate(e);if(i){var n=kt.clone();if(n.setText(i.toString()),this.cesiumStyle.font){var r=this.cesiumStyle.font.evaluate(e);r&&n.setFont(r)}if(this.cesiumStyle.labelColor){var a=this.cesiumStyle.labelColor.evaluateColor(e,wt);a&&n.getFill().setColor(Re(a))}if(this.cesiumStyle.labelOutlineColor){var s=this.cesiumStyle.labelOutlineColor.evaluate(e,wt);if(s){var o=this.cesiumStyle.labelOutlineWidth?this.cesiumStyle.labelOutlineWidth.evaluate(e):1;n.setStroke(new ol.style.Stroke({color:Re(s),width:o}))}}t.setText(n)}}if(this.cesiumStyle.image){var l=this.cesiumStyle.image.evaluate(e);l&&t.setImage(new ol.style.Icon({src:l}))}else{var c={radius:4},u=this.cesiumStyle.color?this.cesiumStyle.color.evaluate(e,wt):Cesium.Color.WHITE;if(c.fill=new ol.style.Fill({color:Re(u)}),this.cesiumStyle.pointSize){var h=this.cesiumStyle.pointSize.evaluate(e);c.radius=h/2}var d=this.cesiumStyle.pointOutlineWidth?this.cesiumStyle.pointOutlineWidth.evaluate(e):0;if(d){var m=this.cesiumStyle.pointOutlineColor?this.cesiumStyle.pointOutlineColor.evaluateColor(e,wt):Cesium.Color.BLACK;c.stroke=new ol.style.Stroke({color:Re(m),width:d}),c.radius+=d/2}t.setImage(new ol.style.Circle(c))}if(this.cesiumStyle.scale&&t.getImage()){var f=this.cesiumStyle.scale.evaluate(e);Number.isFinite(f)&&t.getImage().setScale(f)}return this._evaluateStroke(e,t),t}},{key:"_evaluateStroke",value:function(e,t){if(this.cesiumStyle.strokeColor){var i=this.cesiumStyle.strokeColor.evaluateColor(e,wt);if(i){var n=this.cesiumStyle.strokeWidth?this.cesiumStyle.strokeWidth.evaluate(e):1;t.setStroke(new ol.style.Stroke({width:Number.isFinite(n)?n:1,color:Re(i)}))}}}},{key:"show",get:function(){return this._styleOptions.show},set:function(e){this._styleOptions.show=e,this.cesiumStyle.show=e,this._styleChanged()}},{key:"color",get:function(){return this._styleOptions.color},set:function(e){this._styleOptions.color=e,this.cesiumStyle.color=e,this._styleChanged()}},{key:"strokeColor",get:function(){return this._styleOptions.strokeColor},set:function(e){this._styleOptions.strokeColor=e,this.cesiumStyle.strokeColor=e,this._styleChanged()}},{key:"strokeWidth",get:function(){return this._styleOptions.strokeWidth},set:function(e){this._styleOptions.strokeWidth=e,this.cesiumStyle.strokeWidth=e,this._styleChanged()}},{key:"image",get:function(){return this._styleOptions.image},set:function(e){this._styleOptions.image=e,this.cesiumStyle.image=e,this._styleChanged()}},{key:"labelText",get:function(){return this._styleOptions.labelText},set:function(e){this._styleOptions.labelText=e,this.cesiumStyle.labelText=e,this._styleChanged()}},{key:"labelColor",get:function(){return this._styleOptions.labelColor},set:function(e){this._styleOptions.labelColor=e,this.cesiumStyle.labelColor=e,this._styleChanged()}},{key:"font",get:function(){return this._styleOptions.font},set:function(e){this._styleOptions.font=e,this.cesiumStyle.font=e,this._styleChanged()}},{key:"pointSize",get:function(){return this._styleOptions.pointSize},set:function(e){this._styleOptions.pointSize=e,this.cesiumStyle.pointSize=e,this._styleChanged()}}]),i}(xe),Ct=St,jt=new St({declarativeStyle:{show:!0,color:{conditions:nt("olcs_color",!0)},scale:{conditions:nt("olcs_scale")},pointOutlineWidth:{conditions:nt("olcs_outlineWidth")},pointOutlineColor:{conditions:nt("olcs_outlineColor",!0)},pointSize:{conditions:nt("olcs_pointSize")},image:{conditions:nt("olcs_image")},font:{conditions:nt("olcs_font")},labelStyle:"2",labelText:{conditions:nt("olcs_labelText")},labelColor:{conditions:nt("olcs_fontColor",!0)},labelOutlineWidth:{conditions:nt("olcs_fontOutlineWidth")},labelOutlineColor:{conditions:nt("olcs_fontOutlineColor",!0)},verticalOrigin:"1",horizontalOrigin:"0",labelHorizontalOrigin:"0",labelVerticalOrigin:"1"}}),Et=function(){function e(){Object(d["a"])(this,e),this.hiddenObjects={},this.highlightedObjects={},this.lastUpdated=Date.now()}return Object(m["a"])(e,[{key:"highlight",value:function(e){var t=this,i=!1;Object.entries(e).forEach((function(e){var n=Object(Oe["a"])(e,2),r=n[0],a=n[1],s=a;a instanceof Cesium.Color?s=ft(a):a instanceof ol.style.Style&&(s=new dt({}),a.getText()&&a.getText().getText()&&(s.label=a.getText().getText()),s.style=a),s=s,t.highlightedObjects[r]?t.highlightedObjects[r].style.fillColor.some((function(e,t){return e!==s.fillColor[t]}))&&(t.highlightedObjects[r].style=s,i=!0):(t.highlightedObjects[r]={style:s,features:new Map},i=!0)})),i&&this._update()}},{key:"unHighlight",value:function(t){var i=this;t.forEach((function(t){i.highlightedObjects[t]&&(i.highlightedObjects[t].features.forEach((function(n,r){r instanceof Cesium.Cesium3DTileFeature||r instanceof Cesium.Cesium3DTilePointFeature?e.featureExists(r)&&(r.color=n):r instanceof ol.Feature&&(i.hiddenObjects[t]||r.setStyle(n))})),delete i.highlightedObjects[t])}))}},{key:"clearHighlighting",value:function(){this.unHighlight(Object.keys(this.highlightedObjects))}},{key:"hideObjects",value:function(e){var t=this,i=!1;e.forEach((function(e){t.hiddenObjects[e]||(t.hiddenObjects[e]=new Set,i=!0)})),i&&this._update()}},{key:"showObjects",value:function(t){var i=this,n=!1;t.forEach((function(t){i.hiddenObjects[t]&&(n=!0,i.hiddenObjects[t].forEach((function(n){if(n instanceof Cesium.Cesium3DTileFeature||n instanceof Cesium.Cesium3DTilePointFeature)e.featureExists(n)&&(n.show=!0);else if(n instanceof ol.Feature)if(i.highlightedObjects[t]){if(!i.highlightedObjects[t].features.has(n)){var r=n[ut]?n[ut].style:void 0;i.highlightedObjects[t].features.set(n,r)}n.setStyle(i.highlightedObjects[t].style.style)}else n.setStyle(n[ut]?n[ut].style:void 0)})),delete i.hiddenObjects[t])})),n&&this._update()}},{key:"clearHiddenObjects",value:function(){this.showObjects(Object.keys(this.hiddenObjects))}},{key:"_update",value:function(){this.lastUpdated=Date.now();var e=G.getInstance().getActiveMap();e&&e.requestRender()}}],[{key:"featureExists",value:function(e){return e&&e.content&&!e.content.isDestroyed()&&!e.content.batchTable.isDestroyed()}}]),e}(),It=Et,Dt=function(){function e(){Object(d["a"])(this,e),this.hiddenObjects={},this._hiddenObjectFeatures={},this.lastUpdated=Date.now()}return Object(m["a"])(e,[{key:"hideObjects",value:function(e){var t=this;o(e,[String]);var i=!1;e.forEach((function(e){t.hiddenObjects[e]||(i=!0,t.hiddenObjects[e]=0),t.hiddenObjects[e]+=1})),i&&this._update()}},{key:"showObjects",value:function(e){var t=this;o(e,[String]);var i=!1;e.forEach((function(e){t.hiddenObjects[e]&&(t.hiddenObjects[e]-=1,0===t.hiddenObjects[e]&&(i=!0,t._hiddenObjectFeatures[e]&&(t._hiddenObjectFeatures[e].forEach((function(e){e instanceof Cesium.Cesium3DTileFeature||e instanceof Cesium.Cesium3DTilePointFeature?It.featureExists(e)&&(e.show=!0):e instanceof ol.Feature&&e.setStyle(e[ut]?e[ut].style:void 0)})),t._hiddenObjectFeatures[e].clear()),delete t.hiddenObjects[e]))})),i&&this._update()}},{key:"addFeature",value:function(e,t){this._hiddenObjectFeatures[e]||(this._hiddenObjectFeatures[e]=new Set),this._hiddenObjectFeatures[e].add(t)}},{key:"hasFeature",value:function(e,t){return!!this._hiddenObjectFeatures[e]&&this._hiddenObjectFeatures[e].has(t)}},{key:"_update",value:function(){this.lastUpdated=Date.now();var e=G.getInstance().getActiveMap();e&&e.requestRender()}}]),e}();function Pt(){return Tt||(Tt=new Dt),Tt}O.LAYER_CHANGED="LAYER_CHANGED",O.LAYER_ACTIVATED="LAYER_ACTIVATED",O.LAYER_DEACTIVATED="LAYER_DEACTIVATED";var At={lastLayerId:0},xt=At.lastLayerId;At.lastLayerId+=1;var Yt={INACTIVE:1,ACTIVE:2,LOADING:4,SYNCING:8,CANCELED:16},Nt=Symbol("vcsLayerName"),Ft="1.0",Rt=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.extent=new De(e.extent),n.activeOnStartup=Object(u["e"])(e.activeOnStartup,!1),n._state=Yt.INACTIVE,n._loadingPromise=null,n.initialized=!1,n.type=null!=e.layertype?e.layertype:At.UNDEFINED,n.mapNames=e.mapNames||[],n._url=e.url,n.index=null,n.hiddenObjectIds=Array.isArray(e.hiddenObjectIds)?e.hiddenObjectIds:[],n._exclusiveGroup=null,null!=e.exclusive&&("string"===typeof e.exclusive?"true"===e.exclusive.toLowerCase()?n.exclusiveGroup="default":"false"!==e.exclusive.toLowerCase()&&(n.exclusiveGroup=e.exclusive):"boolean"===typeof e.exclusive?n.exclusiveGroup=e.exclusive?"default":null:n.exclusiveGroup=String(e.exclusive)),n.allowPicking=Object(u["e"])(e.allowPicking,!0),n._style=n.getStyleOrDefaultStyle(e.activeStyleName||e.style),n.defaultStyle=n._style,n.styleChanged=new Cesium.Event,n.featureVisibility=null,n.globalHider=Pt(),n._genericFeatureProperties=e.genericFeatureProperties||{},n}return Object(m["a"])(i,null,[{key:"UNDEFINED",get:function(){return xt}},{key:"className",get:function(){return"vcs.vcm.layer.Layer"}},{key:"vcsLayerNameSymbol",get:function(){return Nt}}]),Object(m["a"])(i,[{key:"raiseFeatureEvent",value:function(e,t,i,n){this.framework.publish(e,t,i,n)}},{key:"objectClickedHandler",value:function(e,t,i){return!1}},{key:"getExtent",value:function(){return this.extent}},{key:"initialize",value:function(){return Promise.reject(new Error)}},{key:"isExclusive",value:function(){return this.logger.deprecate("isExclusive","access the exclusive property"),this.exclusive}},{key:"getExclusiveGroup",value:function(){return this.logger.deprecate("getExclusiveGroup","access the exclusiveGroup property"),this.exclusiveGroup}},{key:"isInitialized",value:function(){return this.logger.deprecate("isInitialized","access the initialized property"),this.initialized}},{key:"getType",value:function(){return this.logger.deprecate("getType","access the type property"),this.type}},{key:"isActiveOnStartup",value:function(){return this.logger.deprecate("isActiveOnStartup","access the activeOnStartup property"),this.activeOnStartup}},{key:"isSupported",value:function(e){var t=e||this.framework.getActiveMap();return!(!t||!(0===this.mapNames.length||this.mapNames.indexOf(t.name)>=0))&&t.supportsLayer(this)}},{key:"isActive",value:function(){return this.logger.deprecate("isActive","access the active property"),this.active}},{key:"activate",value:function(e){var t=this;return null!=e&&this.logger.deprecate("activate","activate no longer accepts an argument, use deactivate to deactivate the layer"),!1===e?(this.deactivate(),Promise.resolve()):this.isSupported()?(this._state&Yt.CANCELED&&this.setStateLoading(),this._loadingPromise?this._loadingPromise:this._state&(Yt.INACTIVE|Yt.SYNCING)?(this.setStateLoading(),this.framework.publish(O.LAYER_CHANGED,this),this._loadingPromise=this.initialize().then((function(){if(t._state&Yt.LOADING){var e=!(t._state&Yt.SYNCING);t._state=Yt.ACTIVE,t.show(),t.globalHider.hideObjects(t.hiddenObjectIds),e&&t.framework.publish(O.LAYER_ACTIVATED,t)}else{var i=t._state&Yt.SYNCING;t._state=Yt.INACTIVE,i&&(t.framework.publish(O.LAYER_DEACTIVATED,t),t.globalHider.showObjects(t.hiddenObjectIds))}t.framework.publish(O.LAYER_CHANGED,t),t._loadingPromise=null})).catch((function(e){return t._state=Yt.INACTIVE,t._loadingPromise=null,Promise.reject(e)})),this._loadingPromise):Promise.resolve()):Promise.resolve()}},{key:"deactivate",value:function(){this.active&&this.initialized?(this.hide(),this._state=Yt.INACTIVE,this.framework.publish(O.LAYER_DEACTIVATED,this),this.framework.publish(O.LAYER_CHANGED,this),this.globalHider.showObjects(this.hiddenObjectIds)):this._state&Yt.LOADING&&this._setStateCanceled()}},{key:"setStateLoading",value:function(){this._state|=Yt.LOADING,this._state&Yt.CANCELED&&(this._state^=Yt.CANCELED)}},{key:"_setStateCanceled",value:function(){this._state|=Yt.CANCELED,this._state&Yt.LOADING&&(this._state^=Yt.LOADING)}},{key:"dispose",value:function(){this.framework.removeLayer(this)}},{key:"show",value:function(){}},{key:"hide",value:function(){}},{key:"getGenericFeatureFromClickedObject",value:function(e){return this.logger.warning("This method should be implemented by any specific layers"),null}},{key:"addGenericFeatureProperties",value:function(e){o(e,Object),Object.assign(this._genericFeatureProperties,e)}},{key:"isCommonLayer",value:function(){return!1}},{key:"handleURLParameter",value:function(e){}},{key:"highlight",value:function(e){this.featureVisibility&&this.featureVisibility.highlight(e)}},{key:"unHighlight",value:function(e){this.featureVisibility&&this.featureVisibility.unHighlight(e)}},{key:"clearHighlighting",value:function(){this.featureVisibility&&this.featureVisibility.clearHighlighting()}},{key:"hideObjects",value:function(e){this.featureVisibility&&this.featureVisibility.hideObjects(e)}},{key:"showObjects",value:function(e){this.featureVisibility&&this.featureVisibility.showObjects(e)}},{key:"clearHiddenObjects",value:function(){this.featureVisibility&&this.featureVisibility.clearHiddenObjects()}},{key:"determineHighlightStyle",value:function(e,t){return null}},{key:"getStyleOrDefaultStyle",value:function(e,t){if("string"===typeof e){var i=this.framework.getStyleByName(e);if(i)return i;this.logger.warning("could not find style with name ".concat(e))}else{if(e&&e instanceof xe)return e;if(e){if(e.type===Pe.DECLARATIVE||e.declarativeStyle)return new Ct(e);if(e.type!==Pe.REFERENCE){var n=new dt(e);return t?t.assign(n):n}var r=e.name,a=this.framework.getStyleByName(r);if(a)return a;this.logger.warning("could not find style with name ".concat(r))}}return t||jt.clone()}},{key:"setStyle",value:function(e,t){o(e,[ol.style.Style,xe,Function,String]);var i=this._style;if("string"===typeof e){var n=this.framework.getStyleByName(e);if(!n)return void this.logger.warning("could not find style with name ".concat(e));this._style=n}else e instanceof xe?this._style=e:(this._style=new dt({}),this._style.style=e);this.styleChanged.raiseEvent(this._style,i)}},{key:"clearStyle",value:function(){this.setStyle(this.defaultStyle)}},{key:"active",get:function(){return this._state===Yt.ACTIVE}},{key:"style",get:function(){return this._style}},{key:"loading",get:function(){return!!(this._state&Yt.LOADING)}},{key:"url",get:function(){if(this._url){if("string"===typeof this._url||Array.isArray(this._url))return this._url;var e=this.framework.getLocale();return this._url[e]?this._url[e]:Object.values(this._url)[0]}return""},set:function(e){o(e,[String,Object]),this._url=e}},{key:"exclusive",get:function(){return!!this.exclusiveGroup}},{key:"exclusiveGroup",get:function(){return this._exclusiveGroup},set:function(e){l(e,String),this._exclusiveGroup!==e&&(this._exclusiveGroup&&V().unregisterLayer(this),this._exclusiveGroup=e,this._exclusiveGroup&&V().registerLayer(this))}}]),i}(ve),Ht=Rt,Gt={};function zt(e){if(!Gt[e.url])return Gt[e.url]=new Cesium.CesiumTerrainProvider(e),Gt[e.url];var t=Gt[e.url];return!t.requestVertexNormals&&e.requestVertexNormals&&(Gt[e.url]=new Cesium.CesiumTerrainProvider(e),t=Gt[e.url]),t}function Bt(e,t,i){var n=i?X.getTransformer($,i):null,r=t.map((function(e){var t=n?n(e,e.slice(),e.length):e;return Cesium.Cartographic.fromDegrees(t[0],t[1])}));return new Promise((function(i,n){Cesium.sampleTerrainMostDetailed(e,r).then((function(e){e.forEach((function(e,i){t[i][2]=e.height||0})),i(t)}),n)}))}var Vt=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n._cesiumWidget=null,n.debugMode=!1,n.enableLightning=Object(u["e"])(e.enableLightning,!0),n.tileCacheSize=Object(u["h"])(e.tileCacheSize,1),n.eventHandler=null,n.invertClickBehavior=!1,n.defaultJDate=Cesium.JulianDate.fromDate(new Date(2014,6,20,13,0,0,0)),n.supportedlayers=[At.CESIUM_BUILDINGSLAYER,At.CESIUM_TERRAIN,At.CESIUM_POINTCLOUDLAYER,At.CESIUM_GLTFLAYER,At.CESIUM_ENTITIESLAYER,At.CESIUM_CZMLLAYER,At.CESIUM_TILESET_LAYER,At.TMSBase,At.VECTOR,At.FEATURESTORE,At.CLUSTER,At.WMS,At.WMTS,At.WSV,At.GEOJSON,At.IMAGE,At.OPENSTREETMAP,At.TILED_LAYER],n.urlParameter=null,n.webGLaa=Object(u["e"])(e.webGLaa,!1),n.enableTerrainAdjustmentWhenLoading=Object(u["e"])(e.enableTerrainAdjustmentWhenLoading,!0),n.limitCameraHeight=null!=e.limitCameraHeight?Object(u["g"])(e.limitCameraHeight,0):null,n.globeColor=e.globeColor?Cesium.Color.fromCssColorString(e.globeColor):Cesium.Color.fromBytes(63,71,204),n._clusterDataSourceDisplay=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.maps.Cesium"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;if(!this.initialized){try{this._cesiumWidget=new Cesium.CesiumWidget(this.mapElement.getAttribute("id"),{requestRenderMode:!1,scene3DOnly:!0,imageryProvider:!1,shadows:!1,terrainShadows:Cesium.ShadowMode.ENABLED,contextOptions:{webgl:{failIfMajorPerformanceCaveat:!1,antialias:this.webGLaa}}})}catch(s){return this.hide(),document.getElementById("error-message").classList.remove("vcm_ui_hidden"),this.initialized=!1,!1}this._cesiumWidget.scene.globe.tileCacheSize=this.tileCacheSize,this._cesiumWidget.scene.globe.baseColor=this.globeColor,this.dataSourceDisplay=new Cesium.DataSourceDisplay({scene:this._cesiumWidget.scene,dataSourceCollection:new Cesium.DataSourceCollection}),this._cesiumWidget.scene.frameState.creditDisplay.update=function(){},this._cesiumWidget.scene.frameState.creditDisplay.beginFrame=function(){},this._cesiumWidget.scene.frameState.creditDisplay.endFrame=function(){};var t=this._cesiumWidget.clock;t.shouldAnimate=!0,t.onTick.addEventListener((function(){var i=t.currentTime;e.dataSourceDisplay.update(i)})),Cesium.RequestScheduler.maximumRequestsPerServer=12,this._cesiumWidget.scene.shadowMap.maximumDistance=5e3,this._cesiumWidget.scene.shadowMap.darkness=.6,this._cesiumWidget.scene.globe.depthTestAgainstTerrain=!0,this._cesiumWidget.scene.highDynamicRange=!1,this._cesiumWidget.scene.imagerySplitPosition=.5,this._cesiumWidget.scene.globe.enableLighting=this.enableLightning,this._cesiumWidget.scene.camera.enableTerrainAdjustmentWhenLoading=this.enableTerrainAdjustmentWhenLoading,this.setDay(this.defaultJDate);var i=document.getElementsByClassName("cesium-widget-credits");if(i)for(var n=0;n<i.length;n++){var r=i[n];r.style.display="none"}var a=new Cesium.Cartographic;this._cesiumWidget.scene.preUpdate.addEventListener((function(){null!==e.limitCameraHeight&&(Cesium.Cartographic.fromCartesian(e._cesiumWidget.scene.camera.position,Cesium.Ellipsoid.WGS84,a),a&&a.height<e.limitCameraHeight&&(a.height=e.limitCameraHeight,Cesium.Cartographic.toCartesian(a,Cesium.Ellipsoid.WGS84,e._cesiumWidget.scene.camera.position)))})),this.eventHandler=new Cesium.ScreenSpaceEventHandler(this._cesiumWidget.scene.canvas),this.olMap=new ol.Map({view:new ol.View({resolutions:[1],resolution:1})}),this.clusterConverter=new olcs.ClusterConverter(this._cesiumWidget.scene),this.synchronizer=new olcs.VectorSynchronizer(this.olMap,this._cesiumWidget.scene),this.clusterSynchronizer=new olcs.VectorSynchronizer(this.olMap,this._cesiumWidget.scene,this.clusterConverter),this.initialized=!0,this.urlParameter&&this.handleURLParameter(this.urlParameter)}return!0}},{key:"activate",value:function(e){return this.active=!0,this.show(),this.initialize()?(this._cesiumWidget.resize(),e&&this.gotoViewPoint(e),Promise.resolve()):Promise.resolve()}},{key:"show",value:function(){this._cesiumWidget&&(this._cesiumWidget.container.style.display="",this._cesiumWidget.useDefaultRenderLoop=!0,this.cesiumInspectorContainer&&(this.cesiumInspectorContainer.style.display="")),ye(Object(fe["a"])(i.prototype),"show",this).call(this)}},{key:"hide",value:function(){this._cesiumWidget&&(this._cesiumWidget.useDefaultRenderLoop=!1,this._cesiumWidget.container.style.display="none",this.cesiumInspectorContainer&&(this.cesiumInspectorContainer.style.display="none")),ye(Object(fe["a"])(i.prototype),"hide",this).call(this)}},{key:"getOL3Map",value:function(){return this.logger.deprecate("getOL3Map","is deprecated in v3.6, use the property olMap directly"),this.olMap}},{key:"getSynchronizer",value:function(e){return"vcs.vcm.layer.cesium.VectorCluster"===e.className?this.clusterSynchronizer:this.synchronizer}},{key:"getHeightFromTerrain",value:function(e){var t=this._cesiumWidget.scene.terrainProvider;return t.readyPromise.then((function(){return t.availability?Bt(t,e,ee):Promise.resolve(e)}))}},{key:"getPositionOnGround",value:function(e,t){var i=Cesium.Cartesian3.fromDegreesArrayHeights(e)[0],n=Cesium.Cartesian3.fromDegreesArrayHeights(t)[0],r=new Cesium.Ray(i,n),a=this._cesiumWidget.scene.globe.pick(r,this._cesiumWidget.scene);if(a){var s=Cesium.Ellipsoid.WGS84.cartesianToCartographic(a),o=[Cesium.Math.toDegrees(s.longitude),Cesium.Math.toDegrees(s.latitude),s.height];return o}return null}},{key:"getViewPoint",value:function(e,t){if(!this._cesiumWidget||!this._cesiumWidget.scene)return null;var i=null==e||e,n=this._cesiumWidget.scene.camera,r=n.position,a=null,s=null;if(i){var o=new Cesium.Ray(n.position,n.direction),l=this._cesiumWidget.scene.globe.pick(o,this._cesiumWidget.scene);if(l){s=Cesium.Cartesian3.distance(l,r);var c=Cesium.Ellipsoid.WGS84.cartesianToCartographic(l);a=[Cesium.Math.toDegrees(c.longitude),Cesium.Math.toDegrees(c.latitude),c.height]}}var u=n.positionCartographic,h=[Cesium.Math.toDegrees(u.longitude),Cesium.Math.toDegrees(u.latitude),u.height],d=new ke({groundPosition:i?a:[],cameraPosition:h,distance:s,heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)});return t?Promise.resolve(d):d}},{key:"gotoViewPoint",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i,n,r){var a,s,o,l,c,u,h,d,m,f,g,y,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r&&this.logger.deprecate("gotoViewPoint","gotoViewPoint returns a promise when the view is set"),i&&this.logger.deprecate("gotoViewPoint","gotoViewPoint no longer accepts optional duration. use the duration property on the viewpoint"),!this.movementDisabled){e.next=4;break}return e.abrupt("return");case 4:if(Ce.getInstance().navActive&&Ce.getInstance().activateOverviewMode(),t.isValid()){e.next=7;break}return e.abrupt("return");case 7:if(a=null,s=t.distance,o=Cesium.Math.toRadians(t.heading),l=Cesium.Math.toRadians(t.pitch),c=Cesium.Math.toRadians(t.roll),!t.cameraPosition){e.next=17;break}u=t.cameraPosition,a=Cesium.Cartesian3.fromDegrees(u[0],u[1],u[2]),e.next=31;break;case 17:if(t.groundPosition){e.next=19;break}return e.abrupt("return");case 19:if(h=t.groundPosition,h[2]){e.next=25;break}return e.next=23,this.getHeightFromTerrain([X.wgs84ToMercator(h)]);case 23:d=e.sent,h[2]=d[0][2];case 25:m=Cesium.Cartesian3.fromDegrees(h[0],h[1],h[2]),f=new Cesium.Camera(this._cesiumWidget.scene),g={destination:m,orientation:{heading:o,pitch:l,roll:c}},f.setView(g),f.moveBackward(null!=s?s:2e3),a=f.position;case 31:if(y=this._cesiumWidget.scene.camera,p={heading:o,pitch:l,roll:c},a=a||null,!t.animate){e.next=39;break}return e.next=37,new Promise((function(e){var s=r?function(){e(),r()}:e,o={destination:a,orientation:p,complete:s};t.duration?o.duration=t.duration:i&&(o.duration=i),t.easingFunction&&(o.easingFunction=t.easingFunction),n&&(o.maximumHeight=n),y.flyTo(o)}));case 37:e.next=41;break;case 39:y.setView({destination:a,orientation:p}),r&&r();case 41:case"end":return e.stop()}}),e,this)})));function t(t,i,n,r){return e.apply(this,arguments)}return t}()},{key:"disableMovement",value:function(e){ye(Object(fe["a"])(i.prototype),"disableMovement",this).call(this,e),e?(this.originalState={enableRotate:this._cesiumWidget.scene.screenSpaceCameraController.enableRotate,enableTranslate:this._cesiumWidget.scene.screenSpaceCameraController.enableTranslate,enableZoom:this._cesiumWidget.scene.screenSpaceCameraController.enableZoom,enableTilt:this._cesiumWidget.scene.screenSpaceCameraController.enableTilt,enableLook:this._cesiumWidget.scene.screenSpaceCameraController.enableLook},this._cesiumWidget.scene.screenSpaceCameraController.enableRotate=!1,this._cesiumWidget.scene.screenSpaceCameraController.enableTranslate=!1,this._cesiumWidget.scene.screenSpaceCameraController.enableZoom=!1,this._cesiumWidget.scene.screenSpaceCameraController.enableTilt=!1,this._cesiumWidget.scene.screenSpaceCameraController.enableLook=!1):!e&&this.originalState&&(this._cesiumWidget.scene.screenSpaceCameraController.enableRotate=this.originalState.enableRotate,this._cesiumWidget.scene.screenSpaceCameraController.enableTranslate=this.originalState.enableTranslate,this._cesiumWidget.scene.screenSpaceCameraController.enableZoom=this.originalState.enableZoom,this._cesiumWidget.scene.screenSpaceCameraController.enableTilt=this.originalState.enableTilt,this._cesiumWidget.scene.screenSpaceCameraController.enableLook=this.originalState.enableLook,this.originalState=null)}},{key:"setDay",value:function(e){this._cesiumWidget.clock.currentTime=e,this._cesiumWidget.clock.multiplier=1}},{key:"setLightning",value:function(e){this.enableLightning=e,this._cesiumWidget.scene.globe.enableLighting=e}},{key:"getCesiumWidget",value:function(){return this._cesiumWidget}},{key:"getEntities",value:function(){return this.dataSourceDisplay.defaultDataSource.entities}},{key:"getDatasources",value:function(){return this.dataSourceDisplay.dataSources}},{key:"getClusterDatasources",value:function(){var e=this;if(this._clusterDataSourceDisplay)return this._clusterDataSourceDisplay.dataSources;var t=new Cesium.DataSourceCollection;function i(e,t,i){var n=i.entities;return[new Cesium.BillboardVisualizer(t,n),new Cesium.LabelVisualizer(t,n),new Cesium.PointVisualizer(t,n)]}return this._clusterDataSourceDisplay=new Cesium.DataSourceDisplay({scene:this._cesiumWidget.scene,dataSourceCollection:t,visualizersCallback:i}),this._cesiumWidget.clock.onTick.addEventListener((function(t){e._clusterDataSourceDisplay.update(t.currentTime)})),t}},{key:"getDataSourceDisplay",value:function(){return this.dataSourceDisplay}},{key:"getScene",value:function(){return this._cesiumWidget.scene}},{key:"getViewer",value:function(){return this.logger.deprecate("getViewer","use getCesiumWidget instead."),this._cesiumWidget}},{key:"pointIsVisible",value:function(e){var t=this._cesiumWidget.scene.camera,i=Cesium.Cartesian3.fromDegrees(e[0],e[1],0),n=t.frustum.computeCullingVolume(t.positionWC,t.directionWC,t.upWC);return n.computeVisibility(new Cesium.BoundingSphere(i))===Cesium.Intersect.INSIDE}},{key:"handleURLParameter",value:function(e){e.debug&&(this.initialized?this.setDebugMode():this.urlParameter=e)}},{key:"setDebugMode",value:function(){this.debugMode||(this.debugMode=!0,this.cesiumInspectorContainer=document.createElement("div"),this.cesiumInspectorContainer.className="vcm-cesium-inspector",this.framework.getMapContainer().appendChild(this.cesiumInspectorContainer),this.cesiumInspector=new Cesium.CesiumInspector(this.cesiumInspectorContainer,this.getScene()))}},{key:"pickPositionSupported",value:function(){return!!this.initialized&&this._cesiumWidget.scene.pickPositionSupported}},{key:"isGroundPrimitiveSupported",value:function(){return!!this.initialized&&this._cesiumWidget.scene.context.fragmentDepth}}]),i}(Le),Ut=Vt,Wt=i(54);function qt(e,t,i){var n=6371e3,r=Cesium.Math.toRadians(i),a=Cesium.Math.toRadians(e[1]),s=Cesium.Math.toRadians(e[0]),o=Math.asin(Math.sin(a)*Math.cos(t/n)+Math.cos(a)*Math.sin(t/n)*Math.cos(r)),l=s+Math.atan2(Math.sin(r)*Math.sin(t/n)*Math.cos(a),Math.cos(t/n)-Math.sin(a)*Math.sin(o));return[parseFloat(Cesium.Math.toDegrees(l).toFixed(5)),parseFloat(Cesium.Math.toDegrees(o).toFixed(5))]}function Jt(e,t){var i=Cesium.Math.toRadians(e[0]),n=Cesium.Math.toRadians(e[1]),r=Cesium.Math.toRadians(t[0]),a=Cesium.Math.toRadians(t[1]),s=Math.sin(r-i)*Math.cos(a),o=Math.cos(n)*Math.sin(a)-Math.sin(n)*Math.cos(a)*Math.cos(r-i),l=Cesium.Math.toDegrees(Math.atan2(s,o));return l=(l+360)%360,l}function Kt(e,t){var i=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(i*i+n*n)}var Zt=new ol.Sphere(6378137);function Qt(e,t){if(e instanceof ol.geom.Polygon)return null!=t?e.getLinearRing(t):e.getLinearRings();if(e instanceof ol.geom.MultiLineString)return null!=t?e.getLineString(t):e.getLineStrings();if(e instanceof ol.geom.MultiPoint)return null!=t?e.getPoint(t):e.getPoints();if(e instanceof ol.geom.MultiPolygon)return null!=t?e.getPolygon(t):e.getPolygons();if(e instanceof ol.geom.GeometryCollection)return null!=t?e.getGeometries()[t]:e.getGeometries();throw new Error("Geometry is not a MultiGeometry")}function Xt(e,t){if(e instanceof ol.geom.Polygon&&t instanceof ol.geom.LinearRing)e.appendLinearRing(t);else if(e instanceof ol.geom.MultiLineString&&t instanceof ol.geom.LineString)e.appendLineString(t);else if(e instanceof ol.geom.MultiPoint&&t instanceof ol.geom.Point)e.appendPoint(t);else{if(!(e instanceof ol.geom.MultiPolygon&&t instanceof ol.geom.Polygon))throw new Error("Geometry is not a MultiGeometry");e.appendPolygon(t)}}var $t=new Cesium.Cartesian2,ei=new Cesium.Cartesian2,ti=new Cesium.Cartesian2,ii=new Cesium.Cartesian3,ni=new Cesium.Cartesian3,ri=new Cesium.Cartesian3;function ai(e,t,i){ii=Cesium.Cartesian3.fromElements(t[0]-e[0],t[1]-e[1],t[2]-e[2],ii),ii.equals(Cesium.Cartesian3.ZERO)&&(ii=Cesium.Cartesian3.fromElements(1,1,1,ii)),ii=Cesium.Cartesian3.normalize(ii,ii),ni=Cesium.Cartesian3.fromElements(i[0]-e[0],i[1]-e[1],i[2]-e[2],ni);var n=Cesium.Cartesian3.dot(ii,ni);return ii=Cesium.Cartesian3.multiplyByScalar(ii,n,ii),[ii.x+e[0],ii.y+e[1],ii.z+e[2]]}function si(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function oi(e,t){return ii=Cesium.Cartesian3.fromElements(e[0],e[1],e[2],ii),ni=Cesium.Cartesian3.fromElements(t[0],t[1],t[2],ni),Cesium.Cartesian3.distance(ii,ni)}function li(e,t,i,n){ii=Cesium.Cartesian3.fromElements(t[0]-e[0],t[1]-e[1],t[2]-e[2],ii),ni=Cesium.Cartesian3.fromElements(i[0]-e[0],i[1]-e[1],i[2]-e[2],ni),ri=Cesium.Cartesian3.fromElements(i[0]-t[0],i[1]-t[1],i[2]-i[2],ri);var r=Cesium.Cartesian3.magnitude(ii);return!(r<Cesium.Cartesian3.magnitude(ni)||r<Cesium.Cartesian3.magnitude(ri))&&(ii=Cesium.Cartesian3.normalize(ii,ii),ni=Cesium.Cartesian3.normalize(ni,ni),ii.equalsEpsilon(ni,n||Cesium.Math.EPSILON5))}function ci(e,t,i,n){$t=Cesium.Cartesian2.fromElements(t[0]-e[0],t[1]-e[1],$t),ei=Cesium.Cartesian2.fromElements(i[0]-e[0],i[1]-e[1],ei),ti=Cesium.Cartesian2.fromElements(i[0]-t[0],i[1]-t[1],ti);var r=Cesium.Cartesian2.magnitude($t);return!(r<Cesium.Cartesian2.magnitude(ei)||r<Cesium.Cartesian2.magnitude(ti))&&($t=Cesium.Cartesian2.normalize($t,$t),ei=Cesium.Cartesian2.normalize(ei,ei),$t.equalsEpsilon(ei,n||Cesium.Math.EPSILON5))}function ui(e,t){var i=X.mercatorToWgs84(e);return ii=Cesium.Cartesian3.fromDegrees(i[0],i[1],i[2]),ni=t.globe.ellipsoid.geodeticSurfaceNormal(ii,ni),ni=Cesium.Cartesian3.cross(t.camera.rightWC,ni,ni),ni=Cesium.Cartesian3.normalize(ni,ni),Cesium.Plane.fromPointNormal(ii,ni)}function hi(e,t){var i=X.mercatorToWgs84(e);return ii=Cesium.Cartesian3.fromDegrees(i[0],i[1],i[2]),ni=t.globe.ellipsoid.geodeticSurfaceNormal(ii,ni),Cesium.Plane.fromPointNormal(ii,ni)}function di(e,t){var i=t||e.getCoordinates(),n=null;return e instanceof ol.geom.Point?n=[i]:e instanceof ol.geom.LineString?n=i:e instanceof ol.geom.Polygon?n=i.reduce((function(e,t){return e.concat(t)})):e instanceof ol.geom.MultiPoint?n=i:e instanceof ol.geom.MultiLineString?n=i.reduce((function(e,t){return e.concat(t)})):e instanceof ol.geom.MultiPolygon?n=i.reduce((function(e,t){return e.concat(t)})).reduce((function(e,t){return e.concat(t)})):e instanceof ol.geom.Circle?n=i:e instanceof ol.geom.GeometryCollection&&(n=e.getGeometries().map((function(e,t){return di(e,i[t])})).reduce((function(e,t){return e.concat(t)}))),n}function mi(e,t,i){var n=-1/0,r=1/0,a=e.getGeometry();if(a){var s=di(a),o=s.length;while(o--)3===s[o].length&&(n=s[o][2]>n?s[o][2]:n,r=s[o][2]<r?s[o][2]:r);if(!i&&"sphere"===e.get("olcs.circle_type")&&a instanceof ol.geom.Circle){var l=a.getCoordinates();X.mercatorToWgs84(l[0],!0),X.mercatorToWgs84(l[1],!0);var c=Zt.haversineDistance(l[0],l[1]),u=l[0][2]||0;n=u+c>n?u+c:n,r=u-c<r?u-c:r}}if(r=r===1/0?0:r,!i){var h=e.get("olcs_extrudedHeight");if(!h){var d=e.get("olcs_storeyHeight")||t,m=e.get("olcs_storeyNumber");d&&m&&(h=m*d)}var f=e.get("olcs_groundLevel");h&&(r=f||r),Array.isArray(h)||h&&(h>0?(n=f||n,n=r+h>n?r+h:n):(n=r>n?r:n,r=r+h<r?r+h:r))}return{max:r>n?r:n,min:r}}function fi(e,t,i,n){function r(e){var r=e.length;while(r--)null==e[r][2]||n?e[r][2]=i:e[r][2]+=t;return e}var a=e.getCoordinates(),s=di(e,a);r(s),e.setCoordinates(a)}function gi(e){e.unset("olcs_groundLevel",!0);var t=G.getInstance().getActiveMap();if(t instanceof Ut){var i=e.getGeometry();if(i){var n=i.getCoordinates(),r=di(i,n);return t.getHeightFromTerrain(r).then((function(){i.setCoordinates(n)}))}}return Promise.resolve()}function yi(e){e.set("olcs_altitudeMode","clampToGround")}function pi(e){return e instanceof ol.geom.Circle?ol.geom.Polygon.fromCircle(e):(e instanceof ol.geom.Polygon&&e.unset("_vcsGeomType"),e)}function vi(e,t){var i=Zt.offset(X.mercatorToWgs84(e),t,Math.PI/2),n=X.wgs84ToMercator(i),r=e[0]-n[0],a=e[1]-n[1],s=r*r,o=a*a,l=Math.sqrt(s+o);return new ol.geom.Circle(e,l,"XYZ")}function _i(e){for(var t=0,i=0;i<e.length;i++){var n=i+1;n>=e.length&&(n=0);var r=e[i],a=e[n],s=Kt(r,a);s>t&&(t=s)}return t}function bi(e,t){var i=_i(t.groundCoordinates),n=Math.PI/3,r=e.getViewport(),a={height:r.offsetHeight,width:r.offsetWidth},s=a.width/a.height,o=2*Math.atan(Math.tan(.5*n)/s),l=Object(Oe["a"])(t.size,2),c=l[0],u=l[1],h=c>u?c:u,d=i/h;return{size:a,fovy:o,metersPerUnit:d}}function Li(e,t,i){var n=e instanceof ol.geom.Circle?ol.geom.Polygon.fromCircle(e):e,r=n.getCoordinates(),a=di(n,r),s=ol.proj.getTransform(ol.proj.get("EPSG:4326"),i.projection),o=a.map((function(e){return X.mercatorToWgs84(e,!0),Cesium.Cartographic.fromDegrees(e[0],e[1])}));return Cesium.sampleTerrainMostDetailed(i.terrainProvider,o).then((function(e){return a.forEach((function(e){return s(e,e,3)})),e.forEach((function(e,t){var n=i.transformRealWorld2Image(a[t],e.height);a[t][0]=n[0],a[t][1]=n[1]})),t.setCoordinates(r),t}))}function wi(e,t,i){var n=e.getCoordinates(),r=ol.proj.get("EPSG:3857"),a=di(e,n),s=a.map((function(e){return Object(Wt["e"])(i,e,{dataProjection:r}).then((function(t){e[0]=t.coords[0],e[1]=t.coords[1],e[2]=t.coords[2]}))}));return Promise.all(s).then((function(){return t.setCoordinates(n),t}))}function Mi(e){var t=e.getGeometry(),i=t instanceof ol.geom.Circle,n=pi(t);return i&&e.setGeometry(n),n}var ki,Oi=i(654),Ti=i(184),Si=i(578),Ci=i(137),ji=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.footPrintFeatures.forEach((function(t){t.set("direction",e.direction)})),n=t.call(this,e),n.layer=e.layer||null,n.suppressPublish=!1,n}return Object(m["a"])(i,[{key:"addOptions",value:function(e){var t=this;e.footPrintFeatures.forEach((function(e){e.set("direction",t.direction)})),ye(Object(fe["a"])(i.prototype),"addOptions",this).call(this,e)}},{key:"activateWithViewPoint",value:function(e,t){var i=this;return this.olMap!==e&&this.deactivate(),this.state===Ci["a"].STATE.INACTIVE&&(this.state=Ci["a"].STATE.LOADING,this.olMap=e,t)?this.setViewPoint(t).then((function(){i.state=Ci["a"].STATE.ACTIVE})):Promise.resolve(this.state)}},{key:"setImageOnMap",value:function(e,t){var n=this,r=!this.suppressPublish&&(!this.currentImage||this.currentImage.name!==e);return ye(Object(fe["a"])(i.prototype),"setImageOnMap",this).call(this,e,t).then((function(){r&&G.getInstance().publish(O.OBLIQUE_IMAGE_CHANGED,n.layer,n.currentImage)}))}},{key:"setViewPoint",value:function(e,t){var i=this,n=e.groundPosition;n||(n=e.cameraPosition);var r=ol.proj.transform(n,$.proj,this.projection),a=this.getImageNameForCoordinates(r);if(null!=a){var s=n[2]||!this.terrainProvider?Promise.resolve([r]):Object(Wt["c"])(this.terrainProvider,[r],this.projection);return s.then((function(e){var t=Object(Oe["a"])(e,1),n=t[0];return i.setImageOnMap(a,n)})).catch((function(){return i.setImageOnMap(a,r)})).then((function(){var n=e.distance;n||(n=e.cameraPosition?e.cameraPosition[2]:1e3);var r=bi(i.olMap,i.currentImage),a=r.size,s=r.fovy,o=r.metersPerUnit,l=2*n*Math.tan(s/2),c=l/o,u=c/a.height,h=i.currentView.view;h.setResolution(t?u:h.constrainResolution(u))}))}return Promise.reject(new Error("could not find an image in this direction"))}},{key:"canShowViewpoint",value:function(e){var t=e.groundPosition;t||(t=e.cameraPosition);var i=ol.proj.transform(t,$.proj,this.projection),n=this.getImageNameForCoordinates(i);if(null!=n){var r=this.images[n],a=ol.extent.boundingExtent(r.groundCoordinates);return ol.extent.containsCoordinate(a,i)}return!1}}]),i}(Ci["a"]),Ei=ji,Ii=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.layer=e.layer,n.directions={},n}return Object(m["a"])(i,[{key:"handleMetadataResponse",value:function(e,t){var i=Oi["a"].getVersion(e);return i.version>=3.5||3.4===i.version&&i.buildNumber>=36?this.handleMetadataResponseV35(e,t,i):(i.version>=3.1||null===i.version?this.handleMetadataResponseV34(e,t,i):console.log("Could not load Meta Data, only meta data version 3.4 and higher are supported"),Promise.resolve())}},{key:"createDirection",value:function(e){return new Ei(Object.assign({layer:this.layer},e))}},{key:"handleMetadataResponseV34",value:function(e,t,n){var r=this,a=[e.generalImageInfo.width,e.generalImageInfo.height],s=e.generalImageInfo["tile-resolution"],o=[e.generalImageInfo["tile-width"],e.generalImageInfo["tile-width"]];e.generalImageInfo.width&&e.generalImageInfo.height&&e.generalImageInfo["tile-resolution"]&&this.getImageMeta(t,a,s,o,n);var l=[],c=e.generalImageInfo.cameraParameter;c&&Object.keys(c).forEach((function(e){var t=new Si["a"](Object.assign({name:e},c[e]));l.push(t)}));var u={};e.images&&Array.isArray(e.images)&&(e.images.forEach((function(e){var h=i.getImageOptionsFromJSON(e,l,c),d=e.width&&e.height?[e.width,e.height]:a,m=e["tile-resolution"]?e["tile-resolution"]:s,f=r.getImageMeta(t,d,m,o,n),g=new Ti["a"](Object.assign({terrainProvider:r.terrainProvider,projection:r.projection,meta:f},h));u[g.viewDirection]||(u[g.viewDirection]={direction:g.viewDirection,images:{},rTreeItems:[],footPrintFeatures:[],projection:r.projection,terrainProvider:r.terrainProvider}),u[g.viewDirection].images[g.name]=g,u[g.viewDirection].rTreeItems.push({minX:g.centerPointOnGround[0],minY:g.centerPointOnGround[1],maxX:g.centerPointOnGround[0],maxY:g.centerPointOnGround[1],name:g.name});var y=new ol.geom.Polygon([g.groundCoordinates.concat([g.groundCoordinates[0]])]);y.transform(r.projection,ol.proj.get("EPSG:3857"));var p=new ol.Feature({geometry:y});p.setId(g.name),u[g.viewDirection].footPrintFeatures.push(p)})),this.handleDirectionOptions(u))}},{key:"destroy",value:function(){ye(Object(fe["a"])(i.prototype),"destroy",this).call(this),this.layer=null}}],[{key:"getImageOptionsFromJSON",value:function(e,t,i){var n=h["c"][e["view-direction"]],r=e["view-directionAngle"],a=e["projection-center"],s=e.name,o=e.groundCoordinates,l=e.centerPointOnGround,c=e["camera-name"],u=t.find((function(e){return e.name===c})),d={name:s,viewDirection:n,viewDirectionAngle:r,groundCoordinates:o,centerPointOnGround:l};if(u){var m,f,y=i[c],p=Cesium.Matrix3.fromRowMajorArray((m=[]).concat.apply(m,Object(g["a"])(y["camera-matrix"]))),v=Cesium.Matrix3.inverse(p,new Cesium.Matrix3),_=Cesium.Matrix3.fromRowMajorArray((f=[]).concat.apply(f,Object(g["a"])(e["rotation-matrix"]))),b=Cesium.Matrix3.transpose(_,new Cesium.Matrix3),L=-1*y["focal-length"];Cesium.Matrix3.multiplyByScalar(v,L,v);var w=Cesium.Matrix3.multiply(b,v,new Cesium.Matrix3),M=Cesium.Matrix4.fromRotationTranslation(p,Cesium.Cartesian3.ZERO,new Cesium.Matrix4),k=Cesium.Cartesian3.fromArray(a),O=Cesium.Matrix4.fromTranslation(Cesium.Cartesian3.multiplyByScalar(k,-1,new Cesium.Cartesian3),new Cesium.Matrix4),T=Cesium.Matrix4.fromRotationTranslation(_,Cesium.Cartesian3.ZERO,new Cesium.Matrix4),S=Cesium.Matrix4.multiply(M,Cesium.Matrix4.multiply(T,O,new Cesium.Matrix4),new Cesium.Matrix4);d.projectionCenter=k,d.camera=u,d.pToRealworld=w,d.pToImage=S}return d}}]),i}(Oi["a"]),Di=Ii;At.OBLIQUE_OBLIQUELAYER=At.lastLayerId,At.lastLayerId+=1,O.OBLIQUE_IMAGE_CHANGED="OBLIQUE_IMAGE_CHANGED",O.OBLIQUE_DIRECTION_CHANGED="OBLIQUE_DIRECTION_CHANGED";var Pi=(ki={},Object(U["a"])(ki,h["a"].NORTH,0),Object(U["a"])(ki,h["a"].EAST,90),Object(U["a"])(ki,h["a"].SOUTH,180),Object(U["a"])(ki,h["a"].WEST,270),ki);function Ai(e){var t=e.heading,i=h["a"].NORTH;return t>=45&&t<135?i=h["a"].EAST:t>=135&&t<225?i=h["a"].SOUTH:t>=225&&t<315&&(i=h["a"].WEST),i}var xi=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.layertype=At.OBLIQUE_OBLIQUELAYER,e.className=i.className,n=t.call(this,e);var r=e.terrain?e.terrain.url:e.terrainUrl;return n.terrainProvider=r?zt({url:r}):null,n.sourceProjection=e.projection?new X(e.projection):new X({epsg:e.epsg,proj4:e.proj4}),n.terrainErrorThreshold=Object(u["g"])(e.terrainErrorThreshold,1),n.terrainErrorCountThreshold=Object(u["h"])(e.terrainErrorCountThreshold,3),n.obliqueCollection=new Di({terrainProvider:n.terrainProvider,projection:n.sourceProjection.proj,minZoom:e.minZoom,maxZoom:e.maxZoom,hideLevels:e.hideLevels,layer:Object(gt["a"])(n)}),n.obliqueMap=null,n.currentDirection=null,n.isDefaultObliqueLayer=n.activeOnStartup,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.oblique.ObliqueLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.initialized?Promise.resolve():(this.obliqueMap||(this.obliqueMap=this.framework.getMapByType("vcs.vcm.maps.Oblique"),this.obliqueMap||this.logger.warning("Oblique layer is not loading on top of an oblique map, please check: ".concat(this.name)),this.olMap=this.obliqueMap.olMap),this.obliqueCollection.loadData(this.url).then((function(){e.initialized=!0,e.currentDirection=e.obliqueCollection.directions[h["a"].NORTH]})))}},{key:"activate",value:function(e){if(null!=e&&this.logger.deprecate("activate","activate no longer accepts an argument, use deactivate to deactivate the layer"),!1===e)return this.deactivate(),Promise.resolve();if(this._state&Yt.INACTIVE&&this.isSupported()){var t=this.framework.getActiveMap();return this.olMap=t.olMap,this._state|=Yt.LOADING,t.setObliqueLayer(this)}return Promise.resolve()}},{key:"deactivate",value:function(){this.logger.warning("cannot deactivate oblique base layer")}},{key:"show",value:function(e){var t=this;return this._state=Yt.ACTIVE,this.initialize().then((function(){return e?t.setViewPoint(e):t.currentDirection.activate(t.olMap,[0,0],t.obliqueCollection.options.minZoom)}))}},{key:"hide",value:function(){this._state=Yt.INACTIVE,this.currentDirection&&this.currentDirection.deactivate()}},{key:"canShowViewpoint",value:function(e){var t=this;return this.initialize().then((function(){return t.obliqueCollection.isTiled?t.obliqueCollection.loadTiledImageJson(X.wgs84ToMercator(e.groundPosition||e.cameraPosition)):Promise.resolve()})).then((function(){var i=Ai(e);return!!t.obliqueCollection.directions[i]&&t.obliqueCollection.directions[i].canShowViewpoint(e)}))}},{key:"getExtentOfCurrentImage",value:function(){return this.currentImage&&this.currentImage.groundCoordinates?new De({coordinates:ol.extent.boundingExtent(this.currentImage.groundCoordinates),epsg:this.sourceProjection.epsg}):(this.logger.warning("No currentImage, cannot compute extent"),null)}},{key:"computeViewpoint",value:function(e){var t=this;if(!this.currentImage)return e?Promise.resolve(null):null;if(e)return Object(Wt["e"])(this.currentImage,this.olMap.getView().getCenter(),{dataProjection:ol.proj.get("EPSG:4326")}).then((function(e){var i=e.coords;return t._computeViewpointInternal(i)}));var i=this.olMap.getView().getCenter(),n=this.currentImage.transformImage2RealWorld(i,this.currentImage.averageHeight),r=this.sourceProjection.transformTo($,n);return this._computeViewpointInternal(r)}},{key:"_computeViewpointInternal",value:function(e){var t=bi(this.olMap,this.currentImage),i=t.size,n=t.fovy,r=t.metersPerUnit,a=this.olMap.getView(),s=a.getResolution(),o=s*i.height,l=o*r,c=Math.abs(l/2/Math.tan(n/2)),u=e[2]||this.currentImage.averageHeight,h=c+u;return new ke({cameraPosition:[e[0],e[1],h],groundPosition:e,heading:Pi[this.currentImage.viewDirection],pitch:0,roll:0,distance:c})}},{key:"setViewPoint",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=Ai(t),!this.obliqueCollection.isTiled){e.next=4;break}return e.next=4,this.obliqueCollection.loadTiledImageJson(X.wgs84ToMercator(t.groundPosition||t.cameraPosition));case 4:if(!this.currentDirection){e.next=10;break}if(this.currentDirection.direction!==i){e.next=9;break}if(this.currentDirection.state!==Ci["a"].STATE.ACTIVE){e.next=8;break}return e.abrupt("return",this.currentDirection.setViewPoint(t));case 8:return e.abrupt("return",this.currentDirection.activateWithViewPoint(this.olMap,t));case 9:this.currentDirection.deactivate();case 10:return this.obliqueCollection.directions[i]&&(this.currentDirection=this.obliqueCollection.directions[i]),this.currentDirection.suppressPublish=!0,e.abrupt("return",this.currentDirection.activateWithViewPoint(this.olMap,t).then((function(){n.framework.publish(O.OBLIQUE_DIRECTION_CHANGED,n,n.currentDirection),n.framework.publish(O.OBLIQUE_IMAGE_CHANGED,n,n.currentImage),n.currentDirection.suppressPublish=!1})).catch((function(e){n.logger.error(e.message),n.currentDirection.suppressPublish=!1})));case 13:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getImageIdInDirection",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i){var n,r,a,s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=2*Math.PI-(t*Math.PI/180-Math.PI/2),r=this.currentDirection.getImageIdInDirection(n,i),r||!this.obliqueCollection.isTiled){e.next=10;break}return a=this.currentImage,s=ol.proj.getTransform(a.projection,ee.proj),o=this.obliqueCollection.getTileCoordinate(s(this.currentImage.centerPointOnGround.slice(0,2))),t>315||t<=45?o[2]-=1:t>45&&t<=135?o[1]+=1:t>135&&t<=225?o[2]+=1:o[1]-=1,e.next=9,this.obliqueCollection.loadTile(o.join("/"));case 9:return e.abrupt("return",this.currentDirection.getImageIdInDirection(n,i));case 10:return e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{key:"getCurrentImage",value:function(){return this.currentImage}},{key:"existsImageForViewDirection",value:function(e){var t=this.currentImage.transformRealWorld2Image(e);return!(t[0]<0||t[0]>this.currentImage.size[0]||t[1]<0||t[1]>this.currentImage.size[1])}},{key:"dispose",value:function(){ye(Object(fe["a"])(i.prototype),"dispose",this).call(this),this.obliqueCollection.destroy()}},{key:"currentImage",get:function(){return this.currentDirection?this.currentDirection.currentImage:null}}]),i}(Ht),Yi=xi,Ni=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.olMap=null,n.mouseClickEvents=!1,n.activeLayer=null,n.listenerKey=null,n.mapChangeEvent=e.changeOnMoveEnd?"moveend":"postrender",n.switchThreshold=Object(u["g"])(e.switchThreshold,0),n.switchThreshold>1&&(n.switchThreshold=.2),n._switchOnEdge=null==e.switchOnEdge||e.switchOnEdge,n.switchEnabled=!0,n.supportedlayers=[At.OBLIQUE_OBLIQUELAYER,At.VECTOR,At.GEOJSON,At.WSV,At.CLUSTER],n.interactionsDefaultsObject={altShiftDragRotate:!1,pinchRotate:!1,shiftDragZoom:!1,doubleClickZoom:!1},n._initialViewpoint=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.maps.Oblique"}}]),Object(m["a"])(i,[{key:"_getInitialLayer",value:function(){var e=Object.values(this.framework.getLayers()).filter((function(e){return e instanceof Yi}));return e.find((function(e){return e.isDefaultObliqueLayer}))||e[0]}},{key:"initialize",value:function(){var e=this;if(!this.initializedPromise){this.olMap||(this.olMap=new ol.Map({layers:[],logo:!1,controls:[],loadTilesWhileInteracting:!0,interactions:this.getMapInteractions(),target:this.mapElement}));var t=this._getInitialLayer();if(!t)return Promise.reject(new Error("Could not find an oblique layer for configured oblique map"));this.setLayerLoading(t,!0),this.initializedPromise=t.activate().then((function(){e.initialized=!0,e.olMap.on(e.mapChangeEvent,e._postRenderHandler.bind(e))}))}return this.initializedPromise}},{key:"canShowViewpoint",value:function(e){if(this.initialized&&this.activeLayer)return this.activeLayer.canShowViewpoint(e);var t=this._getInitialLayer();return t?t.canShowViewpoint(e):Promise.reject(new Error("Could not find an oblique layer for configured oblique map"))}},{key:"getOl3Map",value:function(){return this.logger.deprecate("getOl3Map","access the olMap property directly"),this.olMap}},{key:"setObliqueLayer",value:function(e){var t=this;this.switchEnabled=!1;var i=Promise.resolve(null);if(this.activeLayer){var n=this.activeLayer;i=n.computeViewpoint(!0).then((function(e){return n.hide(),t.framework.publish(O.LAYER_CHANGED,n),t.framework.publish(O.LAYER_DEACTIVATED,n),e}))}else this._initialViewpoint&&(this.olMap.updateSize(),i=Promise.resolve(this._initialViewpoint));return this.setLayerLoading(e,!0),this.activeLayer=e,i.then((function(e){return t.activeLayer.show(e)})).then((function(){t.framework.getActiveMap().setLayerLoading(e,!1),t.switchEnabled=!0,t.framework.publish(O.LAYER_CHANGED,t.activeLayer),t.framework.publish(O.LAYER_ACTIVATED,t.activeLayer)})).catch((function(i){t.activeLayer=null,t.logger.warning("could not show oblique layer ".concat(e.name)),t.logger.warning("".concat(i.message))}))}},{key:"_postRenderHandler",value:function(){if(this.active&&this._switchOnEdge&&this.switchEnabled){var e=this.olMap.getView().getCenter(),t=this.activeLayer,i=t.currentImage,n=t.currentDirection,r=t.obliqueCollection,a=this.switchThreshold,s=1-a;if(!i||e[0]/i.size[0]>a&&e[0]/i.size[0]<s&&e[1]/i.size[1]>a&&e[1]/i.size[1]<s)return;if(null===i.averageHeight)return;if(r.isTiled){var o=X.transform(ee,this.activeLayer.sourceProjection,i.transformImage2RealWorld(e));r.loadTiledImageJson(o)}n.postRenderHandler(e)}}},{key:"activate",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.show(),this.switchEnabled=!0,this.initialized){e.next=6;break}return e.next=5,this.initialize();case 5:this.olMap.updateSize();case 6:if(!t){e.next=9;break}return e.next=9,this.gotoViewPoint(t);case 9:this.active=!0;case 10:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getExtentOfCurrentImage",value:function(){return this.activeLayer?this.activeLayer.getExtentOfCurrentImage():(this.logger.warning("Could not compute extent, because no oblique layer is active in the map"),new De({coordinates:[-18924313.4349,-15538711.0963,18924313.4349,15538711.0963],epsg:"EPSG:3857"}))}},{key:"getExtent",value:function(){return this.activeLayer?this.activeLayer.getExtent():(this.logger.warning("Could not compute extent, because no oblique layer is active in the map"),new De({coordinates:[-18924313.4349,-15538711.0963,18924313.4349,15538711.0963],epsg:"EPSG:3857"}))}},{key:"getCurrentImage",value:function(){return this.activeLayer?this.activeLayer.currentImage:(this.logger.warning("Could not obtain currentImage, because no oblique layer is active in the map"),null)}},{key:"deactivate",value:function(){var e=this;return this.initializedPromise.then((function(){return e.active=!1,e.getViewPoint(!1,!0).then((function(t){return e.hide(),t}))}))}},{key:"getViewPoint",value:function(e,t){return this.activeLayer?this.activeLayer.computeViewpoint(t):this._initialViewpoint?t?Promise.resolve(this._initialViewpoint):this._initialViewpoint:t?Promise.reject(new Error("no active layer or cachedViewpoint")):null}},{key:"disableMovement",value:function(e){ye(Object(fe["a"])(i.prototype),"disableMovement",this).call(this,e),this.olMap.getInteractions().forEach((function(t){t.setActive(!e)}))}},{key:"gotoViewPoint",value:function(e){return this.movementDisabled?Promise.resolve():this.activeLayer?this.activeLayer.setViewPoint(e):(this.logger.warning("Can't go to viewpoint, no active oblique layer."),Promise.resolve())}},{key:"getMapInteractions",value:function(){return ol.interaction.defaults(this.interactionsDefaultsObject)}},{key:"getolMap",value:function(){return this.logger.deprecate("getolMap","access the olMap property directly"),this.olMap}},{key:"pointIsVisible",value:function(e){var t=this.olMap.getView(),i=t.calculateExtent(this.olMap.getSize()),n=[i[0],i[3]];n=this.activeLayer.currentImage.transformImage2RealWorld(n);var r=[i[2],i[1]];r=this.activeLayer.currentImage.transformImage2RealWorld(r);var a=[n,r],s=X.transformCoordinates($,this.activeLayer.sourceProjection,a);return ol.extent.containsXY(ol.extent.boundingExtent(s),e[0],e[1])}},{key:"getLink",value:function(e){var t=this;return ye(Object(fe["a"])(i.prototype),"getLink",this).call(this,e).then((function(){return e.addQueryParams({osi:t.getCurrentImage().name}),e}))}},{key:"handleURLParameter",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.active||!t.osi){e.next=9;break}if(i=this.getCurrentImage(),i.name===t.osi){e.next=9;break}return e.next=5,Object(Wt["e"])(i,this.olMap.getView().getCenter());case 5:return n=e.sent,r=n.coords,e.next=9,this.activeLayer.currentDirection.setImageOnMap(t.osi,r);case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"requestRender",value:function(){this.initialized&&this.olMap.render()}},{key:"dispose",value:function(){this.olMap.setTarget(null),ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}},{key:"switchOnEdge",get:function(){return this._switchOnEdge},set:function(e){this.logger.warning("switchOnEdge is deprecated, use switchEnabled instead"),this._switchOnEdge=e}}]),i}(Le),Fi=Ni,Ri=new Cesium.Cartographic,Hi=new Cesium.Cartesian3,Gi=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){var e;return Object(d["a"])(this,i),e=t.call(this),e.activeMapHandler=e.pipeThrough,e._defaultActive=re.ALL,e._defaultModificationKey=ne.ALL,e.setActive(),e}return Object(m["a"])(i,[{key:"pipe",value:function(e){return this.activeMapHandler(e)}},{key:"handleMapChange",value:function(e){this.activeMapHandler=e instanceof Ut?i.cesiumHandler.bind(null,e):e instanceof Fi?i.obliqueHandler.bind(null,e):this.pipeThrough}}],[{key:"cesiumHandler",value:function(e,t){var i=e.getScene();return t.ray=i.camera.getPickRay(t.windowPosition),Hi=i.globe.pick(t.ray,i,Hi),Hi?(Ri=Cesium.Cartographic.fromCartesian(Hi,i.globe.ellipsoid,Ri),t.position=X.wgs84ToMercator([Cesium.Math.toDegrees(Ri.longitude),Cesium.Math.toDegrees(Ri.latitude),Ri.height],!0)):(Hi=new Cesium.Cartesian3,t.position=[0,0,0]),t.positionOrPixel=t.position,Promise.resolve(t)}},{key:"obliqueHandler",value:function(e,t){if(e.activeLayer&&e.activeLayer.currentImage){var i=t.type&(re.MOVE^re.DRAGEVENTS),n=t.position.slice(0,2);return Object(Wt["e"])(e.activeLayer.currentImage,n,{dontUseTerrain:!!i,dataProjection:ee.proj}).then((function(e){return t.obliqueParameters={pixel:n},t.position=e.coords,t.obliqueParameters.estimate=e.estimate,t}))}return t.stopPropagation=!0,Promise.resolve(t)}}]),i}(ce),zi=Gi,Bi=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.olMap=null,n.listenerKey=null,n.fixedNorthOrientation=Object(u["e"])(e.fixedNorthOrientation,!0),n.supportedlayers=[At.TMSBase,At.VECTOR,At.CLUSTER,At.WSV,At.WMS,At.WMTS,At.GEOJSON,At.IMAGE,At.OPENSTREETMAP,At.TILED_LAYER],n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.maps.Openlayers"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){this.initialized||(this.olMap=new ol.Map({layers:[],logo:!1,controls:[],interactions:ol.interaction.defaults({altShiftDragRotate:!1,pinchRotate:!1,shiftDragZoom:!1,doubleClickZoom:!1}),loadTilesWhileInteracting:!0,target:this.mapElement,view:new ol.View({center:[1230922.6203948376,6350766.117974091],zoom:13})}),this.initialized=!0)}},{key:"activate",value:function(e){return this.active=!0,this.show(),this.initialize(),e?(this.fixedNorthOrientation&&(e.heading=0),this.gotoViewPoint(e)):(this.olMap.updateSize(),Promise.resolve())}},{key:"getViewPoint",value:function(e,t){var i=this.olMap.getView(),n=i.getCenter(),r=ol.proj.getTransform(i.getProjection(),"EPSG:4326"),a=Math.PI/3,s=this.olMap.getViewport(),o={};o.height=s.offsetHeight,o.width=s.offsetWidth;var l=o.width/o.height,c=2*Math.atan(Math.tan(.5*a)/l),u=r(n.slice(0,2)),h=i.getProjection().getMetersPerUnit(),d=i.getResolution(),m=d*o.height,f=Math.cos(Math.abs(Cesium.Math.toRadians(u[1]))),g=m*h*f,y=Math.abs(g/2/Math.tan(c/2)),p=-Cesium.Math.toDegrees(i.getRotation()),v=u,_=-90,b=new ke({groundPosition:v,pitch:_,heading:p,distance:y});return t?Promise.resolve(b):b}},{key:"disableMovement",value:function(e){ye(Object(fe["a"])(i.prototype),"disableMovement",this).call(this,e),this.olMap.getInteractions().forEach((function(t){t.setActive(!e)}))}},{key:"gotoViewPoint",value:function(e){if(this.movementDisabled)return Promise.resolve();var t=this.olMap.getView(),i=ol.proj.getTransform("EPSG:4326",t.getProjection()),n=[];n=e.groundPosition?e.groundPosition.slice(0,2):e.cameraPosition.slice(0,2);var r=e.distance||e.cameraPosition[2],a=i(n),s=Math.PI/3,o=this.olMap.getViewport(),l={};l.height=o.offsetHeight?o.offsetHeight:1,l.width=o.offsetWidth?o.offsetWidth:1;var c=l.width/l.height,u=2*Math.atan(Math.tan(.5*s)/c),h=2*r*Math.tan(u/2),d=t.getProjection().getMetersPerUnit(),m=Math.cos(Math.abs(Cesium.Math.toRadians(n[1]))),f=h/d/m,g=f/l.height;if(e.animate){var y=0;this.fixedNorthOrientation||null==e.heading||(y=-Cesium.Math.toRadians(e.heading)),t.animate({duration:e.duration||100,center:a,easing:ol.easing.inAndOut,resolution:g,rotation:y})}else t.setCenter(a),t.setResolution(g),this.fixedNorthOrientation||null==e.heading||t.setRotation(-Cesium.Math.toRadians(e.heading));return Promise.resolve()}},{key:"getolMap",value:function(){return this.logger.deprecate("getolMap","access the olMap property directly"),this.olMap}},{key:"getOl3Map",value:function(){return this.logger.deprecate("getOl3Map","access the olMap property directly"),this.olMap}},{key:"pointIsVisible",value:function(e){var t=this.olMap.getView(),i=t.calculateExtent(this.olMap.getSize()),n=ol.proj.getTransform(t.getProjection(),"EPSG:4326"),r=[i[0],i[3]],a=[i[2],i[1]],s=[n(r),n(a)];return ol.extent.containsXY(ol.extent.boundingExtent(s),e[0],e[1])}},{key:"requestRender",value:function(){this.initialized&&this.olMap.render()}}]),i}(Le),Vi=Bi;i(693),i(695),i(700),i(702),i(703),i(704),i(705),i(706),i(707),i(708),i(709),i(710),i(711),i(712),i(713),i(714),i(715),i(716),i(717),i(718),i(719),i(720),i(721),i(722),i(723);function Ui(e,t,i,n){var r=1e-6,a=[0,0,0],s=[0,0,0],o=[0,0,0],l=[0,0,0],c=[0,0,0];function u(e,t,i){var n=t[0],r=t[1],a=t[2],s=i[0],o=i[1],l=i[2];return e[0]=r*l-a*o,e[1]=a*s-n*l,e[2]=n*o-r*s,e}function h(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function d(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}h(a,n[1],n[0]),h(s,n[2],n[0]),u(l,i,s);var m=d(a,l);if(m<r)return null;h(o,t,n[0]);var f=d(o,l);if(f<0||f>m)return null;u(c,o,a);var g=d(i,c);if(g<0||f+g>m)return null;var y=d(s,c)/m;return e[0]=t[0]+y*i[0],e[1]=t[1]+y*i[1],e[2]=t[2]+y*i[2],e}function Wi(e){var t=4;e||console.error("b3dmBuffer is not defined.");var i=new Uint8Array(e),n=Cesium.getStringFromTypedArray(i,0,4);"b3dm"!==n&&console.error('Invalid magic, expected "b3dm", got: "'.concat(n,'".'));var r=new DataView(e),a=4,s=r.getUint32(a,!0);1!==s&&console.error('Invalid version, only "1" is valid, got: "'.concat(s,'".')),a+=t;var o=r.getUint32(a,!0);a+=t;var l=r.getUint32(a,!0);a+=t;var c=r.getUint32(a,!0);a+=t;var u=r.getUint32(a,!0);a+=t;var h,d=r.getUint32(a,!0);a+=t,u>=570425344?(a-=2*t,h=l,u=c,d=0,l=0,c=0):d>=570425344&&(a-=t,h=u,u=l,d=c,l=0,c=0),a+=u,a+=d,a+=l,a+=c,0!==d&&console.error("The length of the binary BatchTable is not zero, currently only JSON based BatchTables are supported");var m=new Uint8Array(e,a,o-a);return{header:{magic:n,version:s,batchLength:h},batchTable:null,binaryGLTF:m}}function qi(e){var t=4;function i(e){var t=Cesium.getMagic(e);return"glTF"===t}i(e)||console.error("bgltf is not a valid Binary glTF file.");var n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=t,a=n.getUint32(r,!0);if(1!==a&&2!==a&&console.error("Only Binary glTF version 1 is supported.  Version ".concat(a," is not.")),1===a){r+=t;var s=n.getUint32(r,!0);console.log("len",s),r+=t;var o=n.getUint32(r,!0);r+=t;var l=n.getUint32(r,!0);0!==l&&console.error("content format should be 0 (-> JSON)");var c=20+o;r+=t;var u=r,h=u+o,d=Cesium.getStringFromTypedArray(e,u,o),m=e.subarray(c,s);return{glTF:JSON.parse(d),binaryOffset:h,binaryData:m,version:a,contentLength:o}}var f=null;r+=t;var g,y=n.getUint32(r,!0),p=12;while(p<y){var v=new DataView(e.buffer,e.byteOffset+p,8),_=v.getInt32(0,!0),b=v.getInt32(4,!0);p+=8;var L=e.subarray(p,p+_);if(p+=_,1313821514===b){var w=Cesium.getStringFromTypedArray(L);f=JSON.parse(w)}else 5130562===b&&(g=L)}return{glTF:f,version:a,binaryData:g}}function Ji(e){var t=[],i=e.meshes;for(var n in i)if(i.hasOwnProperty(n))for(var r=i[n].primitives,a=0;a<r.length;a++){var s=r[a].mode;if(4==s){var o=r[a].attributes.POSITION,l=e.accessors[o],c=l.bufferView,u=void 0!==r[a].attributes.BATCHID&&null!==r[a].attributes.BATCHID?r[a].attributes.BATCHID:r[a].attributes._BATCHID,h=e.accessors[u],d=h.bufferView,m={positionAccessor:l,positionBufferView:e.bufferViews[c],batchIdAccessor:h,batchIdBufferView:e.bufferViews[d]};t.push(m)}else console.log("Unknown mode: ".concat(s))}return t}function Ki(e){for(var t=[],i=0;i<e.length;i+=3){var n=[];n.push(e[i]),n.push(e[i+1]),n.push(e[i+2]),t.push(n)}return t}function Zi(e,t,i,n,r,a){var s=new Array(3),o=new Cesium.Matrix4,l=(new Cesium.Matrix4,Object.keys(a.glTF.nodes));o=Cesium.Matrix4.fromArray(a.glTF.nodes[l[0]].matrix,0,o);for(var c=0;c<3;c++)s[c]=e.getFloat32(t+i*c,!0);var u=new Cesium.Cartesian3;u=Cesium.Matrix4.multiplyByPoint(o,new Cesium.Cartesian3(s[0],s[1],s[2]),u);var h=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationX(Cesium.Math.PI_OVER_TWO)),d=new Cesium.Cartesian3;d=Cesium.Matrix4.multiplyByPoint(h,u,d);var m=Cesium.Cartesian3.fromArray(r.center,0),f=new Cesium.Cartesian3;return f=Cesium.Cartesian3.add(m,d,f),[f.x,f.y,f.z]}function Qi(e,t,i,n){function r(e){var t=e.componentType;switch(t){case 5120:case 5121:return 1;case 5122:case 5123:return 2;case 5126:return 4}}for(var a=i.glTF.extensions.CESIUM_RTC,s=(Cesium.Cartographic.fromCartesian(new Cesium.Cartesian3(a.center[0],a.center[1],a.center[2])),i.contentLength,[]),o=0;o<t.length;o++){var l=t[o];if(l.batchIdAccessor.min[0]<=n&&l.batchIdAccessor.max[0]>=n){var c=r(l.positionAccessor),u=r(l.batchIdAccessor),h=void 0,d=void 0;1===i.version?(h=null!=l.positionAccessor.byteStride?l.positionAccessor.byteStride:c,d=null!=l.batchIdAccessor.byteStride?l.batchIdAccessor.byteStride:u):(h=null!=l.positionBufferView.byteStride?l.positionBufferView.byteStride:c,d=null!=l.batchIdBufferView.byteStride?l.batchIdBufferView.byteStride:u);for(var m=l.positionBufferView,f=l.batchIdBufferView,g=new DataView(i.binaryData.buffer,i.binaryData.byteOffset+f.byteOffset,f.byteLength),y=new DataView(i.binaryData.buffer,i.binaryData.byteOffset+m.byteOffset,m.byteLength),p=null!=l.positionAccessor.byteOffset?l.positionAccessor.byteOffset:0,v=0,_=l.batchIdAccessor.byteOffset;v<l.batchIdAccessor.count;v++,_+=d){var b=g.getUint16(_,!0);if(b===n){var L=Zi(y,p+v*h,c,h,a,i);s.push(L)}}}}return s}function Xi(e,t){function i(e,t){var i,n=0;for(i=0;i<e.length;i++)n+=Math.pow(e[i]-t[i],2);return n}for(var n,r=99999999999,a=0;a<t.length;a++){var s=Ui([],e.origin,e.direction,t[a]);if(null!=s){var o=i(e.origin,s);r>=o&&(r=o,n=s)}}return null==n?(console.error("No intersection found!"),null):n}function $i(e,t,i,n){return Cesium.Resource.fetchArrayBuffer({url:e}).then((function(e){var r=Wi(e),a=r.binaryGLTF,s=qi(a),o=Ji(s.glTF),l=Qi(a,o,s,t),c=Ki(l),u={origin:[i.origin.x,i.origin.y,i.origin.z],direction:[i.direction.x,i.direction.y,i.direction.z]},h=Xi(u,c);if(h)return Cesium.Cartesian3.fromElements(h[0],h[1],h[2],n)})).otherwise((function(e){console.error(e)}))}var en,tn=i(15),nn=i(675),rn=i.n(nn),an=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.specificImpl={},n.options.commonLayer=Object(gt["a"])(n),n}return Object(m["a"])(i,[{key:"getImplementation",value:function(e){var t=e.id;return this.specificImpl[t]||(this.specificImpl[t]=this.getImplementationObject(e.className)),this.specificImpl[t]}},{key:"getImplementations",value:function(){return Object.values(this.specificImpl).filter((function(e){return e}))}},{key:"getImplementationObject",value:function(e){return Le.specificLayerImpl[e]&&Le.specificLayerImpl[e][this.className]?new Le.specificLayerImpl[e][this.className](this.options):null}},{key:"isCommonLayer",value:function(){return!0}},{key:"initialize",value:function(){this.initialized=!0;var e=this.framework.getActiveMap();if(e){var t=this.getImplementation(e);if(t&&!t.initialized)return t.initialize()}return Promise.resolve()}},{key:"synchronizeImplementations",value:function(e,t){var i=Promise.resolve();if(t){var n=this.getImplementation(t);n&&(i=i.then((function(){return n.mapDeactivated(t)})))}if(e){var r=this.getImplementation(e);r&&(i=i.then((function(){return r.mapActivated(e)})))}return i}},{key:"synchronize",value:function(e,t){var i=this;return this.synchronizeImplementations(e,t).then((function(){var t=i.getImplementation(e);if(t&&i.isSupported(e)){if(i.active)return i.setSyncing(),i.activate();if(!i.initialized&&i.activeOnStartup)return i.activate()}return Promise.resolve()}))}},{key:"setSyncing",value:function(){this.active&&(this._state|=Yt.SYNCING)}},{key:"show",value:function(){var e=this.getImplementation(this.framework.getActiveMap());e&&e.initialized&&e.show()}},{key:"hide",value:function(){this.getImplementations().forEach((function(e){e.initialized&&e.hide()}))}},{key:"setStyle",value:function(e,t){ye(Object(fe["a"])(i.prototype),"setStyle",this).call(this,e,t),this.getImplementations().forEach((function(e){e.updateStyle(t)}))}},{key:"dispose",value:function(){this.getImplementations().forEach((function(e){e.dispose()})),this.initialized=!1,this._state=Yt.INACTIVE,this.specificImpl={},ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}}]),i}(Ht),sn=an,on=ie.interactionTypeCounter,ln={NONE:on=ie.getNextBit(on),SELECT:on=ie.getNextBit(on),TRANSLATE:on=ie.getNextBit(on),ROTATE:on=ie.getNextBit(on),SCALE:on=ie.getNextBit(on),CREATE:on=ie.getNextBit(on),EDIT:on=ie.getNextBit(on),REMOVEVERTEX:on=ie.getNextBit(on),TRANSLATEVERTEX:on=ie.getNextBit(on),PAINTBUCKET:on=ie.getNextBit(on),PIPETTE:on=ie.getNextBit(on),FEATUREMODES:0,GEOMETRYMODES:0,PROPAGATEONSELECT:0};ln.FEATUREMODES=ln.SELECT|ln.TRANSLATE|ln.ROTATE|ln.SCALE|ln.PAINTBUCKET|ln.PIPETTE,ln.GEOMETRYMODES=ln.CREATE|ln.EDIT|ln.REMOVEVERTEX|ln.TRANSLATEVERTEX,ln.PROPAGATEONSELECT=ln.TRANSLATE|ln.PAINTBUCKET|ln.PIPETTE;var cn={UNEDITABLE:on=ie.getNextBit(on),EDITING:on=ie.getNextBit(on),EDITABLE:on=ie.getNextBit(on),VERTEX:on=ie.getNextBit(on),HEIGHTVERTEX:on=ie.getNextBit(on)},un={none:ln.NONE,select:ln.SELECT,translate:ln.TRANSLATE,rotate:ln.ROTATE,scale:ln.SCALE,create:ln.CREATE,edit:ln.EDIT,removeVertex:ln.REMOVEVERTEX,translateVertex:ln.TRANSLATEVERTEX,paintBucket:ln.PAINTBUCKET,pipette:ln.PIPETTE,geometryModes:ln.GEOMETRYMODES,featureModes:ln.FEATUREMODES},hn={CLAMP:1,ABSOLUTE:2,ZPLANE:4},dn={clampToGround:hn.CLAMP,absolute:hn.ABSOLUTE,zPlane:hn.ZPLANE},mn={both:Cesium.ClassificationType.BOTH,terrain:Cesium.ClassificationType.TERRAIN,cesium3DTile:Cesium.ClassificationType.CESIUM_3D_TILE},fn=(en={},Object(U["a"])(en,mn.both,"both"),Object(U["a"])(en,mn.terrain,"terrain"),Object(U["a"])(en,mn.cesium3DTile,"cesium3DTile"),en);function gn(e,t){if(e.image&&e.image.src&&/^data:/.test(e.image.src))if(t){var i=t.indexOf(e.image.src);-1===i&&(t.push(e.image.src),i=t.length-1),e.image.src=":".concat(i)}else e.image={radius:5};return e}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e[G.configContentSymbol]?t.style=e.getReference():e instanceof dt?t.style=gn(e.getOptions(),t.embeddedIcons):e instanceof Ct&&(t.style=e.getOptions()),t}var pn=yn;At.VECTOR=At.lastLayerId,At.lastLayerId+=1,O.FEATURE_REMOVED="FEATURE_REMOVED";var vn=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=e.layertype?e.layertype:At.VECTOR,e.className=e.className?e.className:i.className,n=t.call(this,e),n.source=new ol.source.Vector({}),n.projection=new X(e.projection),n.maxResolution=null!=e.maxResolution?e.maxResolution:null,n.minResolution=null!=e.minResolution?e.minResolution:null,n.dontUseTerrainForOblique=!!e.dontUseTerrainForOblique,n.sourceProjection=n.projection.proj,n._altitudeMode=e.altitudeMode||"relativeToGround",n._skirt=Object(u["g"])(e.skirt,null),n._storeyHeight=Object(u["g"])(e.storeyHeight,null),n._classificationType=e.classificationType,n.balloonHeightOffset=Object(u["h"])(e.balloonHeightOffset,10),n.zIndex=Object(u["h"])(e.zIndex,50),n.zCoordinateEyeOffset=Object(u["h"])(e.zCoordinateEyeOffset,0),n.heightAboveGround=null!=e.heightAboveGround?e.heightAboveGround:null,n.scaleByDistance=e.scaleByDistance||null,n.internalProjection=ee,n.destinationProjection=n.internalProjection.proj,n.highlightStyle=e.highlightStyle?new dt(e.highlightStyle):null,n.featureVisibility=e.featureVisibility||new It,n.hasFeatureUUID=!1,n.visibility=!0,n.isDynamic=e.isDynamic,n.FVlastUpdated=0,n._onStyleChangeRemover=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.Vector"}},{key:"alreadyTransformedToMercator",get:function(){return yt}},{key:"alreadyTransformedToImage",get:function(){return pt}},{key:"imageGeometryChanged",get:function(){return vt}},{key:"obliqueGeometry",get:function(){return _t}},{key:"doNotTransform",get:function(){return bt}},{key:"originalFeatureSymbol",get:function(){return Lt}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e._trackStyleChanges()}))}},{key:"getVcsMeta",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={version:Ft};if(this.skirt&&(t.skirt=this.skirt),this.storeyHeight&&(t.storeyHeight=this.storeyHeight),this.classificationType&&(t.classificationType=this.classificationType),this.altitudeMode&&(t.altitudeMode=this.altitudeMode),e.embedIcons&&(t.embeddedIcons=[]),e.writeStyle){var i=this.getStyleOrDefaultStyle(this.options.activeStyleName||this.options.style);!e.writeDefaultStyle&&rn()(i.getOptions(),this.style.getOptions())||pn(this.style,t)}return t}},{key:"setVcsMeta",value:function(e){e.skirt!==this.skirt&&(this.skirt=e.skirt),e.storeyHeight!==this.storeyHeight&&(this.storeyHeight=e.storeyHeight),e.altitudeMode&&e.altitudeMode!==this.altitudeMode&&(this.altitudeMode=e.altitudeMode),e.classificationType!==this.classificationType&&(this.classificationType=e.classificationType)}},{key:"getStyleOrDefaultStyle",value:function(e,t){return ye(Object(fe["a"])(i.prototype),"getStyleOrDefaultStyle",this).call(this,e,t||mt.clone())}},{key:"setStyle",value:function(e,t){var n=this;ye(Object(fe["a"])(i.prototype),"setStyle",this).call(this,e,t),this._trackStyleChanges();var r=e instanceof Ct;this.getFeatures().forEach((function(e){e[ut]&&(r?n.featureVisibility.highlightedObjects[e.getId()]&&n.featureVisibility.highlightedObjects[e.getId()].features.has(e)?n.featureVisibility.highlightedObjects[e.getId()].features.set(e,void 0):e.setStyle(void 0):e.getStyle()?n.featureVisibility.highlightedObjects[e.getId()]&&n.featureVisibility.highlightedObjects[e.getId()].features.has(e)&&n.featureVisibility.highlightedObjects[e.getId()].features.set(e,e[ut].style):e.setStyle(e[ut].style))}))}},{key:"_trackStyleChanges",value:function(){var e=this;this._onStyleChangeRemover&&(this._onStyleChangeRemover(),this._onStyleChangeRemover=null);var t=this.style instanceof Ct;this._onStyleChangeRemover=this.style.styleChanged.addEventListener((function(){e.getFeatures().forEach((function(e){!t&&e[ut]||e.changed()}))}))}},{key:"setHighlightStyle",value:function(e){o(e,[ol.style.Style,dt,Function]),e instanceof dt?this.highlightStyle=e:(this.highlightStyle||(this.highlightStyle=new dt({})),this.highlightStyle.style=e)}},{key:"postRenderStyling",value:function(){if(this.FVlastUpdated<this.featureVisibility.lastUpdated||this.FVlastUpdated<this.globalHider.lastUpdated){if(this.visibility){for(var e=Object.keys(this.featureVisibility.highlightedObjects),t=e.length,i=0;i<t;i++){var n=e[i];if(!this.featureVisibility.hiddenObjects[n]){var r=this.getFeatureById(n);r&&(this.featureVisibility.highlightedObjects[n].features.has(r)||this.featureVisibility.highlightedObjects[n].features.set(r,r.getStyle()),r.getStyle()!==this.featureVisibility.highlightedObjects[n].style.style&&r.setStyle(this.featureVisibility.highlightedObjects[n].style.style))}}for(var a=Object.keys(this.featureVisibility.hiddenObjects),s=a.length,o=0;o<s;o++){var l=a[o],c=this.getFeatureById(l);c&&!this.featureVisibility.hiddenObjects[l].has(c)&&(c.setStyle(Xe.clone()),this.featureVisibility.hiddenObjects[l].add(c))}if(this.hasFeatureUUID)for(var u=Object.keys(this.globalHider.hiddenObjects),h=u.length,d=0;d<h;d++){var m=u[d],f=this.getFeatureById(m);f&&!this.globalHider.hasFeature(m,f)&&(f.setStyle(Xe.clone()),this.globalHider.addFeature(m,f))}}this.FVlastUpdated=Date.now()}}},{key:"getSource",value:function(){return this.source}},{key:"updateGeometryOfFeature",value:function(e,t){t.transform(this.sourceProjection,this.destinationProjection);var i=this.source.getFeatureById(e);i&&i.setGeometry(t)}},{key:"addFeatures",value:function(e){var t=this;o(e,[ol.Feature]);var n=this.style instanceof Ct,r=e.map((function(e){var r=e.getId();if(null==r)e.setId(Object(u["c"])());else if(t.hasFeatureUUID=!0,r&&t.getFeatureById(r))return!1;if(t.projection.epsg!==t.internalProjection.epsg){var a=e.getGeometry();a&&(a[i.alreadyTransformedToMercator]||(a.transform(t.sourceProjection,t.destinationProjection),a[i.alreadyTransformedToMercator]=!0))}return t.zCoordinateEyeOffset&&!e.get("olcs_zCoordinateEyeOffset")&&e.set("olcs_zCoordinateEyeOffset",t.zCoordinateEyeOffset,!1),t.heightAboveGround&&!e.get("olcs_heightAboveGround")&&e.set("olcs_heightAboveGround",t.heightAboveGround,!1),t.scaleByDistance&&!e.get("olcs_scaleByDistance")&&e.set("olcs_scaleByDistance",t.scaleByDistance,!1),e[Ht.vcsLayerNameSymbol]=t.name,n&&e[ut]&&e.setStyle(),e})).filter((function(e){return e}));return this.source.addFeatures(r),this.FVlastUpdated=0,e.map((function(e){return e.getId()}))}},{key:"removeFeaturesById",value:function(e){for(var t=this.getFeaturesById(e),i=0;i<t.length;i++)this.source.removeFeature(t[i])}},{key:"removeAllFeatures",value:function(){this.source.clear()}},{key:"getFeaturesById",value:function(e){for(var t,i=[],n=null,r=0;r<e.length;r++)t=e[r],n=this.getFeatureById(t),n&&i.push(n);return i}},{key:"getFeatureById",value:function(e){var t=e;return-1!==String(e).indexOf("_OBLIQUE")&&(t=String(e).split("_OBLIQUE")[0]),this.source.getFeatureById(t)}},{key:"getFeatures",value:function(){return this.source.getFeatures()}},{key:"getFeatureExtent",value:function(){return new De(Object(tn["a"])(Object(tn["a"])({},ee.getConfigObject()),{},{coordinates:this.source.getExtent()}))}},{key:"setVisibility",value:function(e){var t=this.getImplementation(this.framework.getActiveMap());t&&t.setVisibility(e),this.visibility=e}},{key:"determineHighlightStyle",value:function(e,t){var i=t||this.source.getFeatureById(e);return i?this.highlightStyle?this.highlightStyle:this.framework.getSelectBehavior().determineDefaultVectorHighlightStyle(e,i,this):(this.logger.warning("No object found to highlight."),null)}},{key:"objectClickedHandler",value:function(e,t,i){if(this.allowPicking){var n=this.getFeatureById(e.getId()),r=n.getId();return this.raiseFeatureEvent(t,r,n,i||this),!0}return!1}},{key:"getGenericFeatureFromClickedObject",value:function(e){if(!(e instanceof ol.Feature))return null;var t=e.getProperties();delete t[e.getGeometryName()];var i=e.clickedPosition,n=e.getGeometry();if(n&&("Point"===n.getType()||i&&!i.exactPosition||!i&&n)){var r=ol.extent.getCenter(n.getExtent());r&&(X.mercatorToWgs84(r,!0),i={longitude:r[0],latitude:r[1]})}var a=mi(e,this.storeyHeight).max,s=!1,o=e.get("olcs_altitudeMode")||this.altitudeMode;return a&&(dn[o]===hn.ABSOLUTE||e.get("olcs_extrudedHeight")||e.get("olcs_storeyNumber"))||(a=this.heightAboveGround,s=!0),a+=this.balloonHeightOffset,delete t.clickedPosition,{layerName:this.name,layerClass:this.className,attributes:Object.assign({},this._genericFeatureProperties,t),longitude:i.longitude,latitude:i.latitude,height:a,relativeToGround:s}}},{key:"isVisible",value:function(){return this.logger.deprecate("isVisible","Access the property visibility directly"),this.visibility}},{key:"getZCoordinateEyeOffset",value:function(){return this.logger.deprecate("zCoordinateEyeOffset","Access the property zCoordinateEyeOffset directly"),this.zCoordinateEyeOffset}},{key:"getHeightAboveGround",value:function(){return this.logger.deprecate("getHeightAboveGround","Access the property heightAboveGround directly"),this.heightAboveGround}},{key:"getZIndex",value:function(){return this.logger.deprecate("getZIndex","Access the property zIndex directly"),this.zIndex}},{key:"getAltitudeMode",value:function(){return this.logger.deprecate("altitudeMode","Access the property altitudeMode directly"),this.altitudeMode}},{key:"getScaleByDistance",value:function(){return this.logger.deprecate("scaleByDistance","Access the property scaleByDistance directly"),this.scaleByDistance}},{key:"getProjection",value:function(){return this.logger.deprecate("getProjection","Access the property projection directly"),this.projection}},{key:"setProjection",value:function(e){this.logger.deprecate("setProjection","Access the property projection directly"),this.projection=e}},{key:"getStyle",value:function(){return this.logger.deprecate("getStyle","Access the property style directly"),this.style}},{key:"getMaxResolution",value:function(){return this.logger.deprecate("getMaxResolution","Access the property maxResolution directly"),this.maxResolution}},{key:"getMinResolution",value:function(){return this.logger.deprecate("getMinResolution","Access the property minResolution directly"),this.minResolution}},{key:"altitudeMode",get:function(){return this._altitudeMode},set:function(e){this._altitudeMode=e,this.getImplementations().forEach((function(t){t.olLayer&&t.olLayer.set("olcs_altitudeMode",e)}))}},{key:"skirt",get:function(){return this._skirt},set:function(e){this._skirt=e,this.getImplementations().forEach((function(t){t.olLayer&&t.olLayer.set("olcs_skirt",e)}))}},{key:"storeyHeight",get:function(){return this._storeyHeight},set:function(e){this._storeyHeight=e,this.getImplementations().forEach((function(t){t.olLayer&&t.olLayer.set("olcs_storeyHeight",e)}))}},{key:"classificationType",get:function(){return this._classificationType},set:function(e){this._classificationType=e,this.getImplementations().forEach((function(t){t.olLayer&&t.olLayer.set("olcs_classificationType",e)}))}}]),i}(sn),_n=vn,bn=null,Ln=new Cesium.Cartographic,wn=new Cesium.Cartesian3,Mn=new Cesium.Cartesian3,kn=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){var e;return Object(d["a"])(this,i),e=t.call(this),e.activeMapHandler=e.pipeThrough,e._pickPosition=re.CLICK,e._pickPositionMask=-1,e.pickTranslucent=!0,e.pullPickedPosition=0,e.hitTolerance=10,e._defaultModificationKey=ne.ALL,e._defaultActive=re.ALL^re.MOVE,e.setActive(),e}return Object(m["a"])(i,[{key:"pipe",value:function(e){return e.type&re.DRAG&&!(this._pickPosition&re.DRAG)?(bn&&(e.feature=bn),Promise.resolve(e)):(e.type&re.DRAGEND&&(bn=null),this.activeMapHandler(e).then((function(t){return e.type&re.DRAGSTART&&t.feature&&(bn=t.feature),e.type&re.DRAG&&bn&&(e.feature=bn),Promise.resolve(e)})))}},{key:"handleMapChange",value:function(e){this.activeMapHandler=e instanceof Vi?this._openlayersHandler.bind(this,e):e instanceof Fi?this._obliqueHandler.bind(this,e):e instanceof Ut?this._cesiumHandler.bind(this,e):this.pipeThrough}},{key:"setActive",value:function(e){"undefined"===typeof e&&(this.pickPosition=re.CLICK,this.pullPickedPosition=0),ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,e)}},{key:"_openlayersHandler",value:function(e,t){var i=null,n=null;return e.olMap.forEachFeatureAtPixel([t.windowPosition.x,t.windowPosition.y],(function(e,t){return!e||null!=e.get("olcs_allowPicking")&&!0!==e.get("olcs_allowPicking")||(i=e,n=t),!0}),{hitTolerance:this.hitTolerance}),i&&n&&(t.feature=i,i.get("features")&&(t.feature[Ht.vcsLayerNameSymbol]=n.get("name")),t.exactPosition=!0),Promise.resolve(t)}},{key:"_obliqueHandler",value:function(e,t){var i=null,n=null;return e.olMap.forEachFeatureAtPixel([t.windowPosition.x,t.windowPosition.y],(function(e,t){return e&&(i=e.get("features")&&!e[_n.originalFeatureSymbol]?e:e[_n.originalFeatureSymbol]),n=t,!0}),{hitTolerance:this.hitTolerance}),i&&n&&(t.feature=i,i.get("features")&&(t.feature[Ht.vcsLayerNameSymbol]=n.get("name")),t.exactPosition=!0),Promise.resolve(t)}},{key:"_cesiumHandler",value:function(e,t){var i=this,n=e.getScene(),r=n.pick(t.windowPosition,this.hitTolerance,this.hitTolerance),a=function(){return wn?(i.pullPickedPosition&&t.ray&&(Mn=Cesium.Cartesian3.multiplyByScalar(t.ray.direction,i.pullPickedPosition,Mn),wn=Cesium.Cartesian3.subtract(wn,Mn,wn)),Ln=Cesium.Cartographic.fromCartesian(wn,n.globe.ellipsoid,Ln),t.position=X.wgs84ToMercator([Cesium.Math.toDegrees(Ln.longitude),Cesium.Math.toDegrees(Ln.latitude),Ln.height],!0),t.positionOrPixel=t.position,n.pickTranslucentDepth=!1,Promise.resolve(t)):(wn=new Cesium.Cartesian3,Promise.resolve(t))};if(r){if(r.primitive&&r.primitive.olFeature)t.feature=r.primitive.olFeature;else if(r.primitive&&r.primitive[Ht.vcsLayerNameSymbol]&&(r instanceof Cesium.Cesium3DTileFeature||r instanceof Cesium.Cesium3DTilePointFeature)){t.feature=r;for(var s=Object.getOwnPropertySymbols(r.primitive),o=s.length,l=0;l<o;l++)t.feature[s[l]]=r.primitive[s[l]]}else if(r.id&&r.id.olFeature)t.feature=r.id.olFeature;else if(r.id&&r.id[Ht.vcsLayerNameSymbol])t.feature=r,t.feature[Ht.vcsLayerNameSymbol]=r.id[Ht.vcsLayerNameSymbol];else if(Array.isArray(r.id)){if(1!==r.id.length)return Ln=Cesium.Cartographic.fromCartesian(r.primitive.position,null,Ln),t.position=X.wgs84ToMercator([Cesium.Math.toDegrees(Ln.longitude),Cesium.Math.toDegrees(Ln.latitude),Ln.height],!0),t.positionOrPixel=t.position,t.feature=new ol.Feature({geometry:new ol.geom.Point(t.position),features:r.id.map((function(e){return e.olFeature}))}),t.feature[Ht.vcsLayerNameSymbol]=r.id[0].olLayer.get("layerName"),Promise.resolve(t);t.feature=r.id[0].olFeature}else t.feature=r;if(!(t.type&this.pickPosition))return Promise.resolve(t);if(n.pickPositionSupported)return!r.primitive||!this.pickTranslucent||r.primitive.pointCloudShading&&r.primitive.pointCloudShading.attenuation||(n.pickTranslucentDepth=!0,n.render(e.getCesiumWidget().clock.currentTime),t.exactPosition=!0),wn=n.pickPosition(t.windowPosition,wn),a();if(r.content&&r.content.url&&null!=r._batchId){var c=t.ray||n.camera.getPickRay(t.windowPosition);return $i(r.content.url,r._batchId,c,wn).then((function(e){return e?a():Promise.resolve(t)}))}}return Promise.resolve(t)}},{key:"pickPosition",get:function(){return this._pickPosition},set:function(e){this._pickPosition=e&this._pickPositionMask}},{key:"excludedPickPositionEvents",get:function(){return~this._pickPositionMask},set:function(e){this._pickPositionMask=~e}}]),i}(ce),On=kn,Tn=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.events=Object.assign({},e||O),n._defaultActive=re.CLICK,n._defaultModificationKey=ne.NONE|ne.CTRL,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(e.key&ne.CTRL){if(e.feature&&e.feature[Ht.vcsLayerNameSymbol]){var t=G.getInstance().getLayerByName(e.feature[Ht.vcsLayerNameSymbol]);t.objectClickedHandler(e.feature,O.FEATURE_CTRL_CLICKED)}return Promise.resolve(e)}if(!e.position.every((function(e){return 0===e}))){var i=X.mercatorToWgs84(e.position),n=Object(Oe["a"])(i,3),r=n[0],a=n[1],s=n[2],o={latitude:a,longitude:r,height:s||0};if(e.obliqueParameters&&(o.obliqueParameters=e.obliqueParameters),this.raise(O.CLICKED,o),e.feature&&e.feature[Ht.vcsLayerNameSymbol]){o.exactPosition=e.exactPosition,e.feature.clickedPosition=o;var l=G.getInstance().getLayerByName(e.feature[Ht.vcsLayerNameSymbol]);l.objectClickedHandler(e.feature,O.FEATURE_CLICKED)}else this.raise(O.MAP_CLICKED,o)}return Promise.resolve(e)}},{key:"raise",value:function(e){if(this.events[e]){for(var t,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(t=G.getInstance()).publish.apply(t,[e].concat(n))}}}]),i}(ce),Sn=Tn,Cn=new zi,jn=new On,En=new Sn,In=new me([Cn,jn,En]),Dn=null,Pn=function(){function e(){Object(d["a"])(this,e),this.listeners=[],this.clickDuration=400,this.dragDuration=100,this._lastDown=null,this._lastClick={time:null,windowPosition:new Cesium.Cartesian2},this._dragging=null,this._running=!1,this._eventQueue=[];var t=G.getInstance();t.subscribe("MAP_ACTIVATED",this.handleMapChange,this),this.handleMapChange(G.getInstance().getActiveMap()),In.initialize(),this._exclusiveInteraction=null,this._exclusiveFrameworkKey=null,this._multiples=!1}return Object(m["a"])(e,[{key:"addExclusiveInteraction",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3?arguments[3]:void 0;return o(e,ce),o(t,Function),o(i,Number),l(n,String),this._exclusiveInteraction&&this._exclusiveInteraction.id!==n&&this._removeExclusive(),e.handleMapChange(G.getInstance().getActiveMap()),In.addInteraction(e,i),this._exclusiveInteraction?(this._exclusiveInteraction.interactions.push(e),this._exclusiveInteraction.cb.push(t)):this._exclusiveInteraction={id:n||Object(u["c"])(),cb:[t],interactions:[e]},null===this._exclusiveFrameworkKey&&(this._exclusiveFrameworkKey=G.getInstance().subscribeExclusive(O.CLICKED,(function(){}),"vcs:EventHandler",this._removeExclusive.bind(this))),this._exclusiveUnListen.bind(this,e,this._exclusiveInteraction.id)}},{key:"_removeExclusive",value:function(){this._exclusiveInteraction&&(this._exclusiveInteraction.interactions.filter((function(e){return e})).forEach((function(e){In.removeInteraction(e)})),this._exclusiveInteraction.cb.filter((function(e){return e})).forEach((function(e){e()})),this._exclusiveInteraction=null)}},{key:"_exclusiveUnListen",value:function(e,t){if(!this._exclusiveInteraction||this._exclusiveInteraction&&this._exclusiveInteraction.id!==t)return 0;var i=In.removeInteraction(e),n=this._exclusiveInteraction.interactions.findIndex((function(t){return t&&t.id===e.id}));return n>-1&&(this._exclusiveInteraction.interactions.splice(n,1,void 0),this._exclusiveInteraction.cb.splice(n,1,void 0)),this._exclusiveInteraction.interactions.every((function(e){return void 0===e}))&&(this._exclusiveInteraction=null,G.getInstance().unsubscribeByKey(this._exclusiveFrameworkKey),this._exclusiveFrameworkKey=null),-1!==i?1:0}},{key:"addPersistentInteraction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return o(e,ce),o(t,Number),e.handleMapChange(G.getInstance().getActiveMap()),In.addInteraction(e,t),function(){return-1!==In.removeInteraction(e)?1:0}}},{key:"handleMapChange",value:function(e){this.listeners.forEach((function(e){e()})),this.listeners.splice(0),e instanceof Vi||e instanceof Fi?this._setupOpenlayersHandlers(e):e instanceof Ut&&this._setupCesiumHandlers(e),In.handleMapChange(e)}},{key:"_mouseDown",value:function(e,t,i){if(this._lastDown)this._multiples=!0;else{var n=e(t,i);0===n.windowPosition.x&&0===n.windowPosition.y||(this._lastDown=n,this._lastDown.time=Date.now())}}},{key:"_mouseUp",value:function(e,t,i){var n=e(t,i);return n.multipleTouch?(this._multiples=!0,void(this._lastDown=null)):this._multiples?(this._lastDown=null,void(this._multiples=!1)):(this._dragging?(n.type=re.DRAGEND,n.key=this._dragging.key,n.pointer=this._dragging.pointer,this._startChain(n)):this._lastDown&&(this._lastClick.time&&Date.now()-this._lastClick.time<this.clickDuration&&Cesium.Cartesian2.distanceSquared(this._lastClick.windowPosition,n.windowPosition)<12?(this._lastClick.time=null,n.type=re.DBLCLICK):(this._lastClick.time=Date.now(),Cesium.Cartesian2.clone(n.windowPosition,this._lastClick.windowPosition),n.type=re.CLICK),this._startChain(n)),this._dragging=null,void(this._lastDown=null))}},{key:"_mouseMove",value:function(e,t,i){var n=e(t,i);this._lastDown?this._dragging?(n.type=re.DRAG,n.key=this._dragging.key,n.pointer=this._dragging.pointer,this._startChain(n,!0)):!this._dragging&&Date.now()-this._lastDown.time>this.dragDuration&&(n=Object.assign({type:re.DRAGSTART},this._lastDown),this._dragging=n,this._startChain(n,!0)):(n.type=re.MOVE,this._startChain(n,!0))}},{key:"_startChain",value:function(e,t){this._running&&t||(this._running?this._eventQueue.push(e):(this._running=!0,In.pipe(e).then(this._endChain.bind(this)).catch(this._endChain.bind(this))))}},{key:"_endChain",value:function(){this._running=!1,this._eventQueue.length>0&&this._startChain(this._eventQueue.shift())}},{key:"_setupOpenlayersHandlers",value:function(e){var t=function(e,t){var i={"-1":ae.ALL,0:ae.LEFT,1:ae.MIDDLE,2:ae.RIGHT},n=t.originalEvent.shiftKey?ne.SHIFT:ne.NONE;n=t.originalEvent.ctrlKey?ne.CTRL:n,n=t.originalEvent.altKey?ne.ALT:n,n!==ne.NONE&&t.preventDefault(),t.originalEvent.preventDefault();var r=[t.coordinate[0],t.coordinate[1],0];return{position:r,positionOrPixel:r,windowPosition:Cesium.Cartesian2.fromArray(t.pixel,0,new Cesium.Cartesian2),key:n,pointer:i[t.originalEvent.button||0]}},i=e.olMap,n=[];n.push(i.on("pointerdown",this._mouseDown.bind(this,t,null))),n.push(i.on("pointerup",this._mouseUp.bind(this,t,null))),n.push(i.on("pointermove",this._mouseMove.bind(this,t,null))),this.listeners=n.map((function(e){return function(){ol.Observable.unByKey(e)}}))}},{key:"_setupCesiumHandlers",value:function(e){var t,i,n=this,r=(t={},Object(U["a"])(t,Cesium.KeyboardEventModifier.ALT,ne.ALT),Object(U["a"])(t,Cesium.KeyboardEventModifier.CTRL,ne.CTRL),Object(U["a"])(t,Cesium.KeyboardEventModifier.SHIFT,ne.SHIFT),t),a=function(t,i){var n=t.mod,a=t.pointer,s=e.eventHandler._positions.length>1;return{windowPosition:i.position||i.endPosition,key:r[n]||ne.NONE,pointer:a,multipleTouch:s}},s=(i={},Object(U["a"])(i,Cesium.ScreenSpaceEventType.LEFT_DOWN,{handler:this._mouseDown,pointer:ae.LEFT}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.LEFT_UP,{handler:this._mouseUp,pointer:ae.LEFT}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.RIGHT_DOWN,{handler:this._mouseDown,pointer:ae.RIGHT}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.RIGHT_UP,{handler:this._mouseUp,pointer:ae.RIGHT}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.MIDDLE_DOWN,{handler:this._mouseDown,pointer:ae.MIDDLE}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.MIDDLE_UP,{handler:this._mouseUp,pointer:ae.MIDDLE}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.MOUSE_MOVE,{handler:this._mouseMove,pointer:ae.ALL}),i);Object.keys(s).forEach((function(t){var i=Object.keys(r);i.push(void 0),i.forEach((function(i){var r=s[t],o=r.handler,l=r.pointer;null!=i?(e.eventHandler.setInputAction(o.bind(n,a,{mod:i,pointer:l}),t,i),n.listeners.push((function(){e.eventHandler.removeInputAction(t,i)}))):(e.eventHandler.setInputAction(o.bind(n,a,{mod:i,pointer:l}),t),n.listeners.push((function(){e.eventHandler.removeInputAction(t)})))}))}))}},{key:"positionInteraction",get:function(){return Cn}},{key:"featureInteraction",get:function(){return jn}},{key:"eventEmitter",get:function(){return En}},{key:"interactions",get:function(){return In.chain.slice()}}],[{key:"destroy",value:function(){Dn&&(Dn._removeExclusive(),Dn.listeners.forEach((function(e){e()}))),Dn=null}}]),e}(),An=Pn;function xn(){return null===Dn&&(Dn=new Pn),Dn}function Yn(e){for(var t=e.getPropertyNames(),i={},n=0;n<t.length;n++)i[t[n]]=e.getProperty(t[n]);return null==i.id&&(i.id="".concat(e.content.url).concat(e._batchId)),i.attributes?i.attributes.gmlId=i.id:null==i.gmlId&&(i.gmlId=i.id),i.clickedPosition=e.clickedPosition?e.clickedPosition:{},i}var Nn=i(117),Fn=i.n(Nn),Rn=Symbol("vcsFeatureType"),Hn={DYNAMIC:"dynamic",STATIC:"static",EDITED:"edited"},Gn=new ol.format.GeoJSON,zn="EPSG:3857",Bn=new ol.Sphere(6378137),Vn=k.getLogger("vcs.vcm.layer.GeoJSONHelper");function Un(e){var t=Object(Oe["a"])(e[e.length-1],2),i=t[0],n=t[1];e[0][0]===i&&e[0][1]===n||e.push(e[0].slice())}function Wn(e){var t=Object(Oe["a"])(e[e.length-1],2),i=t[0],n=t[1];e[0][0]===i&&e[0][1]===n&&e.pop()}function qn(e){if(e instanceof ol.geom.Polygon){var t=e.getCoordinates();t.forEach((function(e){Wn(e)})),e.setCoordinates(t)}else if(e instanceof ol.geom.MultiPolygon){var i=e.getCoordinates();i.forEach((function(e){e.forEach((function(e){Wn(e)}))})),e.setCoordinates(i)}}function Jn(e){var t=e.crs;if(t){if("name"===t.type)return t.properties.name;if("EPSG"===t.type)return"EPSG:".concat(t.properties.code)}return null}function Kn(e){if(e.get("altitudeMode")&&(e.set("olcs_altitudeMode",e.get("altitudeMode"),!0),e.unset("altitudeMode",!0)),e.get("extrudedHeight")){if(e.get("drawingType"))e.set("olcs_extrudedHeight",e.get("extrudedHeight"),!0);else{var t=mi(e).min;e.set("olcs_extrudedHeight",e.get("extrudedHeight")-t,!0)}e.unset("extrudedHeight",!0)}e.get("skirt")&&(e.set("olcs_skirt",e.get("skirt"),!0),e.unset("skirt",!0)),e.get("radius")&&e.unset("radius",!0)}function Zn(e,t){var i=Gn.readGeometry(e,t.formatOptions);return"EPSG:3857"===String(t.formatOptions.featureProjection)&&(i[_n.alreadyTransformedToMercator]=!0),qn(i),new ol.Feature({geometry:i})}function Qn(e,t){return e.image&&e.image.src&&/^:\d+$/.test(e.image.src)&&(t.embeddedIcons?e.image.src=t.embeddedIcons[e.image.src.substring(1)]:delete e.image.src),e}function Xn(e,t){var i=!!e.color&&He(e.color),n=e.width||1.25,r=e.pointRadius||5,a=e.opacity||.8;if(delete e.color,delete e.width,delete e.pointRadius,delete e.opacity,"Polygon"===t||"Circle"===t){var s=i?i.slice():[255,255,255,.4];return s[3]=a,{fill:{color:s},stroke:{color:i||He("#3399CC"),width:n}}}return"LineString"===t?{stroke:{color:i||He("#3399CC"),width:n}}:"Point"===t?{image:{fill:{color:[255,255,255,.4]},radius:r,stroke:{color:i||He("#3399CC"),width:1}}}:void 0}function $n(e,t){if(!e.geometry)return null;var i=e.geometry.olcs_radius,n=Gn.readGeometry(e.geometry,t.formatOptions);if(e.radius&&n instanceof ol.geom.Point){var r=n.getCoordinates();2===r.length&&r.push(0),n=new ol.geom.Circle(r,e.radius,"XYZ")}if(i&&n instanceof ol.geom.Point){var a=n.getCoordinates();2===a.length&&a.push(0),n=vi(a,i)}"EPSG:3857"===String(t.formatOptions.featureProjection)&&(n[_n.alreadyTransformedToMercator]=!0),e.vcsMeta=e.vcsMeta||{},e.vcsStyle&&(e.vcsMeta.style=e.vcsMeta.style||e.vcsStyle);var s=e.properties;t.readLegacyStyleOptions&&!e.vcsMeta.style&&(e.vcsMeta.style=Xn(s,n.getType())),qn(n);var o,l=new ol.Feature(Object.assign({},s,{geometry:n}));(e.id&&l.setId(e.id),e.state&&(l[Rn]=e.state),e.vcsMeta.style&&!t.dontReadStyle)&&(e.vcsMeta.style=Qn(e.vcsMeta.style,t),t.defaultStyle?(o=t.defaultStyle.clone().assign(new dt(e.vcsMeta.style)),null!=o.label&&n.set("_vcsGeomType","Label")):o=new dt(e.vcsMeta.style),l[ut]=o,l.setStyle(o.style));return Kn(l),l}function er(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof e?JSON.parse(e):e,r=Jn(n),a=r?{epsg:r}:i.dataProjection,s={formatOptions:{dataProjection:a?a.epsg:$.epsg,featureProjection:i.targetProjection?i.targetProjection.epsg:ee.epsg},dontReadStyle:i.dontReadStyle,readLegacyStyleOptions:i.readLegacyStyleOptions,defaultStyle:i.defaultStyle};if(i.dynamicStyle&&!s.defaultStyle&&(s.defaultStyle=mt),"FeatureCollection"===n.type)return n.vcsMeta=n.vcsMeta||{embeddedIcons:n.vcsEmbeddedIcons,style:n.vcsStyle},n.vcsMeta.embeddedIcons&&(s.embeddedIcons=n.vcsMeta.embeddedIcons),n.vcsMeta.style&&i.dynamicStyle&&(n.vcsMeta.style.type===Pe.REFERENCE?(t=G.getInstance().getStyleByName(n.vcsMeta.style.name),t?t instanceof dt&&(s.defaultStyle=t):Vn.warning("could not load referenced style ".concat(n.vcsMeta.style.name))):n.vcsMeta.style.type===Pe.DECLARATIVE?t=new Ct(n.vcsMeta.style):(n.vcsMeta.style=Qn(n.vcsMeta.style,s),s.defaultStyle=s.defaultStyle.clone().assign(new dt(n.vcsMeta.style)),t=s.defaultStyle)),{features:n.features.map((function(e){return $n(e,s)})).filter((function(e){return e})),style:n.vcsMeta.style?t:void 0,vcsMeta:n.vcsMeta?n.vcsMeta:void 0};if("Feature"===n.type){var o=$n(n,s);return{features:o?[o]:[],vcsMeta:n.vcsMeta?n.vcsMeta:void 0}}return null!=n.type?{features:[Zn(n,s)]}:{features:[]}}function tr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,n={type:"Feature",properties:e.getProperties()};t.writeId&&(n.id=e.getId()),delete n.properties[e.getGeometryName()],delete n.properties.style,delete n.properties.olcs_allowPicking;var r=e.getGeometry(),a=null;if(r instanceof ol.geom.Circle){var s=r.getCoordinates();a=Bn.haversineDistance(X.mercatorToWgs84(s[0],!0),X.mercatorToWgs84(s[1],!0)),r=new ol.geom.Point(r.getCenter())}else if(r instanceof ol.geom.Polygon){var o=r.getCoordinates();o.forEach((function(e){Un(e)})),r.setCoordinates(o)}else if(r instanceof ol.geom.MultiPolygon){var l=r.getCoordinates();l.forEach((function(e){e.forEach((function(e){Un(e)}))})),r.setCoordinates(l)}return n.geometry=Gn.writeGeometryObject(r,{featureProjection:zn,rightHanded:!0}),a&&(n.geometry.olcs_radius=a),n.vcsMeta={},t.writeStyle&&e[ut]&&(n.vcsMeta.style=gn(e[ut].getOptionsForFeature(e),i)),n}function ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.vcsMeta||{};i.version=Ft;var n=e.features.map((function(e){return tr(e,t,i.embeddedIcons)})),r={type:"FeatureCollection",features:n,vcsMeta:i};return t.writeStyle&&e.style&&(Vn.deprecate("data.style","use layer.getVcsMeta and pass that in instead"),pn(e.style,r.vcsMeta)),t.asObject?r:JSON.stringify(r,null,t.prettyPrint?2:null)}function nr(e){for(var t=0,i=e.length,n=0;n<=i-2;n++){var r=e[n],a=e[n+1];t+=r[0]*a[1]-r[1]*a[0]}return t/=2,t}function rr(e){var t=nr(e);return t<0&&e.reverse(),e}At.TILED_LAYER=At.lastLayerId,At.lastLayerId+=1;var ar=Symbol("isTiledFeature"),sr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=e.layertype?e.layertype:At.TILED_LAYER,e.className=e.className?e.className:i.className,n=t.call(this,e),n.featureVisibility=e.featureVisibility||new It,n.highlightStyle=null,e.highlightStyle&&(n.highlightStyle=e.highlightStyle instanceof dt?e.highlightStyle:new dt(e.highlightStyle)),n.cesiumTilesetLayerOptions=Object.assign({},e.cesiumTilesetLayerOptions,{featureVisibility:n.featureVisibility,highlightStyle:n.highlightStyle,genericFeatureProperties:n._genericFeatureProperties}),n.openlayersTiledLayerOptions=Object.assign({},e.openlayersTiledLayerOptions,{featureVisibility:n.featureVisibility,highlightStyle:n.highlightStyle,genericFeatureProperties:n._genericFeatureProperties}),n._dataFetched=!1,n.source=new ol.source.Vector({}),n.projection=ee,n.sourceProjection=n.projection.proj,n.internalProjection=ee,n.zIndex=50,n.editing=null,n.addedEditingSymbol=!1,n.FVlastUpdated=0,n._dataFetchedPromise=null,n._featureExtent=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.TiledLayer"}}]),Object(m["a"])(i,[{key:"getSource",value:function(){return this.source}},{key:"postRenderStyling",value:function(){_n.prototype.postRenderStyling.call(this)}},{key:"setEditing",value:function(e,t){this._dataFetched?this.addedEditingSymbol&&!t?(this.source.getFeatures().forEach((function(t){delete t[e]})),this.addedEditingSymbol=!1):t&&(this.addedEditingSymbol=!0,this.source.getFeatures().forEach((function(i){i[e]=t}))):this.editing={symbol:e,featureType:t}}},{key:"getFeatureById",value:function(e){var t=e;return-1!==String(e).indexOf("_OBLIQUE")&&(t=String(e).split("_OBLIQUE")[0]),this.source.getFeatureById(t)}},{key:"initialize",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.framework.getActiveMap(),n="vcs.vcm.maps.Cesium"===t.className?!!this.cesiumTilesetLayerOptions.url:!!this.openlayersTiledLayerOptions.url,!n){e.next=6;break}return e.next=5,ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);case 5:this.getFeatureExtent();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"activate",value:function(e){if(null!=e&&this.logger.deprecate("activate","activate no longer accepts an argument, use deactivate to deactivate the layer"),!1===e)return this.deactivate(),Promise.resolve();var t=this.framework.getActiveMap(),n="vcs.vcm.maps.Cesium"===t.className?!!this.cesiumTilesetLayerOptions.url:!!this.openlayersTiledLayerOptions.url;return n?ye(Object(fe["a"])(i.prototype),"activate",this).call(this):Promise.resolve()}},{key:"setHighlightStyle",value:function(e){this.highlightStyle=e}},{key:"determineHighlightStyle",value:function(e,t){var i=this.framework.getActiveMap();if(this.highlightStyle)return this.highlightStyle;if("vcs.vcm.maps.Cesium"===i.className){var n=this.getImplementation(this.framework.getActiveMap());return n.determineHighlightStyle()}return _n.prototype.determineHighlightStyle.call(this,e,t)}},{key:"setMaximumScreenSpaceError",value:function(e){var t=this.framework.getMapByType("vcs.vcm.maps.Cesium");if(t){var i=this.getImplementation(t);i&&i.setMaximumScreenSpaceError(e)}}},{key:"fetchData",value:function(){var e=this;return this._dataFetchedPromise||(null!=this.openlayersTiledLayerOptions.url?(this.framework.getActiveMap().setLayerLoading(this,!0),this._dataFetchedPromise=q.a.get(this.openlayersTiledLayerOptions.url).then((function(t){var i=t.data,n=er({features:i.features,type:"FeatureCollection"},{defaultStyle:e.defaultStyle instanceof dt?e.defaultStyle:mt}),r=n.features;r.forEach((function(e){e[ar]=!0})),_n.prototype.addFeatures.call(e,r),e.editing&&(e.setEditing(e.editing.symbol,e.editing.featureType),e.editing=null)})).catch((function(t){return e.logger.warning("Could not send request for loading layer content (".concat(t.message,")")),Promise.reject(t)})).then((function(){e.framework.getActiveMap().setLayerLoading(e,!1)}))):(this._dataFetched=!0,this._dataFetchedPromise=Promise.resolve())),this._dataFetchedPromise}},{key:"objectClickedHandler",value:function(e,t,i){if(this.allowPicking){var n=this.framework.getActiveMap();if((e instanceof Cesium.Cesium3DTileFeature||e instanceof Cesium.Cesium3DTilePointFeature)&&"vcs.vcm.maps.Cesium"===n.className){var r=this.getImplementation(n);return r.objectClickedHandler(e,t,i||this)}if(e instanceof ol.Feature&&("vcs.vcm.maps.Openlayers"===n.className||"vcs.vcm.maps.Oblique"===n.className))return _n.prototype.objectClickedHandler.call(this,e,t,i||this)}return!1}},{key:"getGenericFeatureFromClickedObject",value:function(e){var t=this.framework.getActiveMap(),i=this.getImplementation(t);return i?i.getGenericFeatureFromClickedObject(e):null}},{key:"getFeatureExtent",value:function(){if(!this._featureExtent){var e=this.framework.getActiveMap();if(this.initialized&&"vcs.vcm.maps.Cesium"===e.className){var t=this.getImplementation(e);this._featureExtent=t.getFeatureExtent()}else{if(!this.initialized||"vcs.vcm.maps.Openlayers"!==e.className){var i=new De(ee.getConfigObject());return i.extent=ol.extent.createEmpty(),i}this._featureExtent=new De(ee.getConfigObject()),this._featureExtent.extent=this.source.getExtent()}}return this._featureExtent.clone()}},{key:"screenSpaceErrorMobile",get:function(){var e=this.framework.getMapByType("vcs.vcm.maps.Cesium");if(e){var t=this.getImplementation(e);if(t)return t.screenSpaceErrorMobile}return null}},{key:"screenSpaceError",get:function(){var e=this.framework.getMapByType("vcs.vcm.maps.Cesium");if(e){var t=this.getImplementation(e);if(t)return t.screenSpaceError}return null}}]),i}(sn),or=sr,lr=k.getLogger("vcs.vcm.util.clipping.ClippingObject"),cr=Symbol("ClippingObjectGlobe"),ur=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(d["a"])(this,e),this.id=Fn()(),this.layerNames=t.layerNames||[],this.entities=t.entities||[],this.targets=new Map,this._clippingPlaneCollection=t.clippingPlaneCollection||null,this._terrain=Object(u["e"])(t.terrain,!1),this._local=Object(u["e"])(t.local,!1),this.targetsUpdated=new Cesium.Event,this.clippingPlaneUpdated=new Cesium.Event,this._cachedTiledLayers=new Set}return Object(m["a"])(e,[{key:"handleLayerChanged",value:function(e){var t,i=this,n=G.getInstance().getActiveMap();if(n instanceof Ut){if(this.layerNames.includes(e.name))if(e.active)if(e.cesium3DTileset?t=e:e instanceof or&&(t=e.getImplementation(n)),t)t.cesium3DTileset.readyPromise.then((function(t){i.layerNames.includes(e.name)&&e.active&&(i.targets.set(e.name,t),i.targetsUpdated.raiseEvent())}));else{var r=this.layerNames.indexOf(e.name);lr.warning("layer ".concat(e.name," cannot have a ClippingObject applied")),this.layerNames.splice(r,1)}else this.targets.has(e.name)&&(this.targets.delete(e.name),this.targetsUpdated.raiseEvent());else if(this.entities.find((function(t){return t.layerName===e.name}))){var a=!1;this.entities.filter((function(t){return t.layerName===e.name})).forEach((function(t){var n="".concat(t.layerName,"-").concat(t.entityId);if(e.active){var r=e.entities.getById(t.entityId);if(r)i.targets.set(n,r),a=!0;else{var s=i.entities.indexOf(t);lr.warning("could not find entity with id ".concat(t.entityId," in layer ").concat(t.layerName)),i.entities.splice(s,1)}}else i.targets.has(n)&&(i.targets.delete(n),a=!0)})),a&&this.targetsUpdated.raiseEvent()}}else this.layerNames.includes(e.name)&&e instanceof or&&(e.active?this._cachedTiledLayers.add(e):this._cachedTiledLayers.has(e)&&this._cachedTiledLayers.delete(e))}},{key:"handleMapChanged",value:function(e){var t=this;if(e instanceof Ut){var i=e.getScene(),n=i.globe,r=!1;this._terrain&&!this.targets.has(cr)?(this.targets.set(cr,n),r=!0):!this._terrain&&this.targets.has(cr)&&(this.targets.delete(cr),r=!0),r&&this.targetsUpdated.raiseEvent(),this._cachedTiledLayers.size>0&&(this._cachedTiledLayers.forEach((function(e){t.handleLayerChanged(e)})),this._cachedTiledLayers.clear())}}},{key:"addLayer",value:function(e){if(o(e,String),!this.layerNames.includes(e)){this.layerNames.push(e);var t=G.getInstance().getLayerByName(e);t&&t.active&&this.handleLayerChanged(t)}}},{key:"removeLayer",value:function(e){o(e,String);var t=this.layerNames.indexOf(e);t>-1&&this.layerNames.splice(t,1),this.targets.has(e)&&(this.targets.delete(e),this.targetsUpdated.raiseEvent())}},{key:"addEntity",value:function(e,t){if(o(e,String),o(t,String),!this.entities.find((function(i){return i.layerName===e&&i.entityId===t}))){this.entities.push({layerName:e,entityId:t});var i=G.getInstance().getLayerByName(e);i&&i.active&&this.handleLayerChanged(i)}}},{key:"removeEntity",value:function(e,t){o(e,String),o(t,String);var i=this.entities.findIndex((function(i){return i.layerName===e&&i.entityId===t}));i>-1&&this.entities.splice(i,1);var n="".concat(e,"-").concat(t);this.targets.has(n)&&(this.targets.delete(n),this.targetsUpdated.raiseEvent())}},{key:"clippingPlaneCollection",get:function(){return this._clippingPlaneCollection},set:function(e){this._clippingPlaneCollection=e,this.clippingPlaneUpdated.raiseEvent()}},{key:"terrain",get:function(){return this._terrain},set:function(e){o(e,Boolean),this._terrain!==e&&(this._terrain=e,this.handleMapChanged(G.getInstance().getActiveMap()))}},{key:"local",get:function(){return this._local},set:function(e){o(e,Boolean),this._local!==e&&(this._local=e,this.clippingPlaneUpdated.raiseEvent())}}]),e}(),hr=ur,dr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.zPlane=e.zPlane,n.scene=null,n.plane=null,n.ray=new Cesium.Ray,n.cartographic=new Cesium.Cartographic,n}return Object(m["a"])(i,[{key:"handleMapChange",value:function(e){this.plane=null,this.scene=e instanceof Ut?e.getScene():null}},{key:"createPlane",value:function(e){this.scene&&(this.plane=this.zPlane?hi(e,this.scene):ui(e,this.scene))}},{key:"getPosition",value:function(e){var t=e.positionOrPixel.slice();if(this.plane){this.ray=this.scene.camera.getPickRay(e.windowPosition,this.ray);var i=Cesium.IntersectionTests.rayPlane(this.ray,this.plane);i&&(this.cartographic=this.scene.globe.ellipsoid.cartesianToCartographic(i,this.cartographic),this.zPlane?t=X.wgs84ToMercator([Cesium.Math.toDegrees(this.cartographic.longitude),Cesium.Math.toDegrees(this.cartographic.latitude),this.cartographic.height]):t[2]=this.cartographic.height)}return t}}]),i}(ce),mr=dr,fr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n,r){var a;return Object(d["a"])(this,i),a=t.call(this,{zPlane:!0}),a.editor=e,a.finished=!0,a.onFinish=n,a._lastVertex=null,a.maxVertices=r,a._lastPosition=null,a._defaultActive=re.CLICKMOVE,a.setActive(!1),a}return Object(m["a"])(i,[{key:"pipe",value:function(e){return this.finished||(e.type&re.MOVE?(t=this.getPosition(e),this.editor.vertices.length<this.maxVertices?this.editor.changeVertex(this._lastVertex,t,!this.editor.state.transformGeometryOnMove):this.editor.translateVertex(t[0]-this._lastPosition[0],t[1]-this._lastPosition[1],t,this._lastVertex,!this.editor.state.transformGeometryOnMove),this._lastPosition=t):e.type&re.CLICK&&(this.editor.vertices.length<this.maxVertices?(1!==this.editor.vertices.length||!this.scene||this.editor.state.altitudeMode&hn.CLAMP||this.createPlane(e.positionOrPixel),t=this.getPosition(e),this._lastVertex.setStyle(null),this.editor.changeVertex(this._lastVertex,t),this._lastVertex=this.editor.pushVertex(t),this._lastVertex.setStyle(Xe),this._lastPosition=t):(t=this.getPosition(e),this.editor.translateVertex(t[0]-this._lastPosition[0],t[1]-this._lastPosition[1],t,this._lastVertex,!1),this._lastVertex.setStyle(null),this.editor.state.transformGeometryOnMove||this.editor.updateGeometry(),this._lastVertex&&this._lastVertex.setStyle(null),this.onFinish(),this.setActive(!1)))),Promise.resolve(e);var t}},{key:"setActive",value:function(e){var t=e;e&&0===this.editor.vertices.length?(this.finished=!1,this._lastVertex=this.editor.pushVertex([0,0,0]),this._lastVertex.setStyle(Xe)):(t=!1,this.finished=!0),ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,t)}}]),i}(mr),gr=fr,yr=k.getLogger("vcs.vcm.util.editor.AbstractEditor"),pr=function(){function e(t){var i=this;Object(d["a"])(this,e),this.parent=t.parent||null;var n=this.parent?this.parent.scratchLayer:t.scratchLayer;this.scratchLayer=n||new _n({projection:ee.getConfigObject(),altitudeMode:"clampToGround",isDynamic:!0,zCoordinateEyeOffset:-1}),this.interactionChain=new me;var r=this.parent?this.parent.state:t.state;this.state=r||{mode:ln.NONE,altitudeMode:hn.CLAMP,defaultAltitudeMode:hn.CLAMP,allowedGeometries:[],allowedModes:[],onlyAllowTranslation:!1,selectedFeatures:0,selectedCesiumFeatures:0,layerName:null,selectedFeatureId:null,active:!1,featureTypeSymbol:Symbol("featureType"),exclusiveId:Object(u["c"])(),dedicatedFeatureStyle:!1,transformGeometryOnMove:P.getInstance().transformGeometryOnMove,activeMap:null,isFeatureStore:!1,canSwitchToDynamic:!1,classificationType:mn.terrain,defaultClassificationType:mn.terrain,isDeclarativeStyle:!1,isLayerStyle:!1},this.isOblique=G.getInstance().getActiveMap()instanceof Fi,this._mapChangedSubscriptionKey=G.getInstance().subscribe(O.MAP_ACTIVATED,(function(e){i.state.active&&i.handleMapChange(e)})),this.modeChange=new Cesium.Event}return Object(m["a"])(e,[{key:"className",get:function(){return"vcs.vcm.util.editor.AbstractEditor"}}]),Object(m["a"])(e,[{key:"activate",value:function(){this.isOblique=G.getInstance().getActiveMap()instanceof Fi,this.parent||(this.state.active=!0,this.scratchLayer.activate())}},{key:"deactivate",value:function(){this.parent||(this.state.active=!1,this.scratchLayer.deactivate())}},{key:"getRootEditor",value:function(){var e=this;while(e.parent)e=e.parent;return e}},{key:"initialize",value:function(){this.interactionChain.initialize(),this.handleMapChange(G.getInstance().getActiveMap())}},{key:"beforeSetMode",value:function(e){}},{key:"setMode",value:function(e){this.parent||this.beforeSetMode(e),yr.debug("AbstractEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e})))),o(e,Number),this.interactionChain.chain.forEach((function(e){e.setActive(!1)})),this.state.mode=e,this.modeChange.raiseEvent(e)}},{key:"destroy",value:function(){null!=this._mapChangedSubscriptionKey&&G.getInstance().unsubscribeByKey(this._mapChangedSubscriptionKey)}},{key:"handleMapChange",value:function(e){this.isOblique=e instanceof Fi}}]),e}(),vr=pr,_r=new ol.style.Style({}),br=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this,{zPlane:!0}),r.editor=e,r.selectFeatureInteraction=e.parent?e.parent.selectFeatureInteraction:null,r.forceZPlane=!!n,r._defaultActive=re.DRAGEVENTS,r._defaultModificationKey=ne.ALT,r._lastPosition=null,r._vertex=null,r.setActive(),r}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(this._lastPosition){var t=this.getPosition(e),i=e.type&(re.DRAGEND|re.CLICK);this.editor.translateVertex(t[0]-this._lastPosition[0],t[1]-this._lastPosition[1],t,this._vertex,!(this.editor.state.transformGeometryOnMove||i)),this._lastPosition=t,i&&(this._lastPosition=null,this._vertex.setStyle(this._vertex[ut]?this._vertex[ut].style:null),this._vertex=null,this.editor.feature.set("olcs_allowPicking",!!(this.editor.state.mode&ln.EDIT)),this.selectFeatureInteraction&&this.selectFeatureInteraction.setActive(!0))}else e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.VERTEX&&e.type&(re.DRAGSTART|re.CLICK)&&(this.scene&&(this.editor.state.altitudeMode&hn.ZPLANE||this.forceZPlane&&this.editor.state.altitudeMode&hn.ABSOLUTE)?(this._lastPosition=e.feature.getGeometry().getCoordinates(),this.createPlane(this._lastPosition)):(this.plane=null,this._lastPosition=this.scene?e.feature.getGeometry().getCoordinates():e.positionOrPixel),this._vertex=e.feature,this._vertex.setStyle(_r),this.editor.feature.set("olcs_allowPicking",!1),this.selectFeatureInteraction&&this.selectFeatureInteraction.setActive(!1));return Promise.resolve(e)}}]),i}(mr),Lr=br,wr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,{zPlane:!1}),n.editor=e,n.selectFeatureInteraction=e.parent?e.parent.selectFeatureInteraction:null,n._defaultActive=re.DRAGEVENTS,n._defaultModificationKey=ne.CTRL,n._lastHeight=null,n._vertex=null,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(this.scene)if(this._lastHeight){var t=this.getPosition(e),i=e.type&(re.DRAGEND|re.CLICK);this.editor.translateVertexHeight(t[2]-this._lastHeight,this._vertex,!(this.editor.state.transformGeometryOnMove||i)),this._lastHeight=t[2],i&&(this._lastHeight=null,this._vertex=null,this.selectFeatureInteraction&&this.selectFeatureInteraction.setActive(!0))}else if(e.key&ne.CTRL&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.VERTEX&&e.type&(re.DRAGSTART|re.CLICK)){var n=e.feature.getGeometry().getCoordinates();this._lastHeight=n[2],this.createPlane(n),this._vertex=e.feature,this.selectFeatureInteraction&&this.selectFeatureInteraction.setActive(!0)}return Promise.resolve(e)}},{key:"setActive",value:function(e){ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,"clampToGround"!==this.editor.feature.get("olcs_altitudeMode")&&e)}}]),i}(mr),Mr=wr,kr=Symbol("vertexIndex"),Or=k.getLogger("vcs.vcm.util.editor.AbstractGeometryEditor"),Tr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this,e),r.creationActive=!1,r.geometry=e.geometry,r.layer=e.layer,r.feature=e.feature,r.vertices=[],r.onFinish=e.onFinish||r.getRootEditor().setMode.bind(Object(gt["a"])(r),ln.EDIT),r.onRemoved=e.onRemoved||function(){},r._create=null,r._translateVertex=new Lr(Object(gt["a"])(r),n),r.interactionChain.addInteraction(r._translateVertex),r._translateVertexHeight=new Mr(Object(gt["a"])(r)),r.interactionChain.addInteraction(r._translateVertexHeight),r.setAltitudeModeToAbsoluteOnClassification=!0,r}return Object(m["a"])(i,[{key:"initialize",value:function(){ye(Object(fe["a"])(i.prototype),"initialize",this).call(this),this._createVertices(),this.feature.set("olcs_allowPicking",!1)}},{key:"_createVertices",value:function(){}},{key:"_createVertex",value:function(e,t){var i=this.feature.get("olcs_extrudedHeight")||this.feature.get("olcs_storeyNumber")&&this.feature.get("olcs_storeyHeight")?this.feature.get("olcs_groundLevel"):0;e[2]=i||e[2]||0;var n=new ol.geom.Point(e);this.isOblique&&(n[_n.alreadyTransformedToImage]=!0);var r=new ol.Feature({geometry:n});r[this.state.featureTypeSymbol]=cn.VERTEX,null!=t&&(r[kr]=t),r[_n.doNotTransform]=!0;var a=this.feature.get("olcs_altitudeMode")||this.layer.altitudeMode;return this.setAltitudeModeToAbsoluteOnClassification&&this.state.classificationType!==mn.terrain&&(a="absolute"),r.set("olcs_altitudeMode",a),r}},{key:"getVertexIndex",value:function(e){return this.vertices.findIndex((function(t){return t.getId()===e.getId()}))}},{key:"changeVertex",value:function(e,t,i){e.getGeometry().setCoordinates(t),i||this.updateGeometry()}},{key:"translateVertex",value:function(e,t,i,n,r){this.state.altitudeMode&hn.ZPLANE?n.getGeometry().translate(e,t):(this.isOblique&&(n.getGeometry()[_n.alreadyTransformedToImage]=!0),n.getGeometry().setCoordinates(i)),r||this.updateGeometry()}},{key:"updateGeometry",value:function(){}},{key:"pushVertex",value:function(e){return null}},{key:"translateVertexHeight",value:function(e,t,i){var n=t.getGeometry(),r=n.getCoordinates();r[2]+=e,n.setCoordinates(r),i||this.updateGeometry()}},{key:"validate",value:function(){return!1}},{key:"_validateOnFinish",value:function(){this.creationActive=!1,this.validate()?this.onFinish():this._removeFeature()}},{key:"_removeFeature",value:function(){if(!this.parent||"vcs.vcm.util.editor.MultiGeometryEditor"!==this.parent.className){var e=G.getInstance().getLayerByName(this.feature[Ht.vcsLayerNameSymbol]);e&&e instanceof _n&&e.removeFeaturesById([this.feature.getId()])}this.onRemoved()}},{key:"setAltitudeMode",value:function(e){var t=this.vertices.length;while(t--)this.vertices[t].set("olcs_altitudeMode",e&hn.CLAMP?"clampToGround":"absolute");this.state.mode^ln.CREATE&&this.setMode(this.state.mode)}},{key:"stopCreation",value:function(){if(!this.validate()){var e=G.getInstance().getLayerByName(this.feature[Ht.vcsLayerNameSymbol]);e&&e instanceof _n&&e.removeFeaturesById([this.feature.getId()])}}},{key:"setMode",value:function(e){Or.debug("AbstractGeometryEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e}))));var t=e;0===this.vertices.length&&(t=ln.CREATE),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,t),this.creationActive&&(this.stopCreation(),this.creationActive=!1),t&ln.CREATE?(this.creationActive=!0,this._create.setActive(!0)):t&ln.TRANSLATEVERTEX?(this._translateVertex.setModification(ne.NONE),this._translateVertex.setActive(re.CLICKMOVE),this._translateVertexHeight.setModification(ne.NONE|ne.CTRL),this._translateVertexHeight.setActive(re.CLICKMOVE)):t&ln.GEOMETRYMODES&&(this._translateVertex.setActive(),this._translateVertexHeight.setActive())}},{key:"destroy",value:function(){ye(Object(fe["a"])(i.prototype),"destroy",this).call(this),this._clearVertices(),this.feature.set("olcs_allowPicking",!0)}},{key:"_clearVertices",value:function(){var e=this.vertices.map((function(e){return e.getId()}));this.scratchLayer.removeFeaturesById(e),this.vertices.splice(0)}}]),i}(vr),Sr=Tr,Cr=k.getLogger("vcs.vcm.util.editor.RectangleEditor"),jr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i);var r=e.geometry,a=r.getLinearRing(0);return e.geometry=a,n=t.call(this,e,!0),n._create=new gr(Object(gt["a"])(n),n._validateOnFinish.bind(Object(gt["a"])(n)),e.isBBox?2:3),n.interactionChain.addInteraction(n._create),n.polygon=r,n.geometry=n.geometry,n._setupGeometry(r),n.isBBox=e.isBBox||!1,n._aspectRatio=null,n.aspectRatio=e.aspectRatio,n._scratchCartesian1=new Cesium.Cartesian2,n._scratchCartesian2=new Cesium.Cartesian2,n.setAltitudeModeToAbsoluteOnClassification=!1,n}return Object(m["a"])(i,[{key:"_createVertices",value:function(){for(var e=this.geometry.getCoordinates(),t=0;t<e.length;t++)this.vertices.push(this._createVertex(e[t],t));this.scratchLayer.addFeatures(this.vertices)}},{key:"pushVertex",value:function(e){var t=this;if(4===this.vertices.length)return this._create.setActive(!1),this.vertices[3];if(this.isBBox&&1===this.vertices.length){var i=[1,2,0].map((function(i){var n=e.slice();2===i?(n[0]+=1e-4,n[1]+=1e-4):n[i]+=1e-4;var r=t._createVertex(n);return t.vertices.push(r),r}));return this.scratchLayer.addFeatures(i),this.vertices[0]}if(this.vertices.length<2){var n=this._createVertex(e),r=this.geometry.getCoordinates();return r.push(e),this.geometry.setCoordinates(r),this.vertices.push(n),this.scratchLayer.addFeatures([n]),n}var a=Cesium.Matrix2.fromArray([0,1,-1,0]),s=this.vertices[0].getGeometry().getCoordinates(),o=this.vertices[1].getGeometry().getCoordinates();this._scratchCartesian1=Cesium.Cartesian2.fromElements(s[0]-o[0],s[1]-o[1],this._scratchCartesian1),this._scratchCartesian2=Cesium.Matrix2.multiplyByVector(a,this._scratchCartesian1,this._scratchCartesian2),this._scratchCartesian2=Cesium.Cartesian2.normalize(this._scratchCartesian2,this._scratchCartesian2),this._scratchCartesian2=Cesium.Cartesian2.multiplyByScalar(this._scratchCartesian2,1e-4,this._scratchCartesian2);var l=[this._scratchCartesian2.x+s[0],this._scratchCartesian2.y+s[1],s[2]],c=this._createVertex([l[0]-this._scratchCartesian1.x,l[1]-this._scratchCartesian1.y,s[2]]),u=this._createVertex(l);return this.vertices.push(c),this.vertices.push(u),this.scratchLayer.addFeatures([c,u]),this.updateGeometry(),c}},{key:"updateGeometry",value:function(){var e=this;this.isOblique&&(this.geometry[_n.imageGeometryChanged]=!0),this.geometry.setCoordinates(this.vertices.map((function(t){return e.isOblique?t[_n.obliqueGeometry].getCoordinates():t.getGeometry().getCoordinates()})),"XYZ")}},{key:"_setupGeometry",value:function(e){var t=this;this.polygon=e,this.geometry=e.getLinearRing(0),this.listener=this.geometry.on("change",(function(){t.polygon.setCoordinates([t.geometry.getCoordinates()],"XYZ")}))}},{key:"translateVertex",value:function(e,t,i,n,r){var a=this.isOblique?n[_n.obliqueGeometry]:n.getGeometry();this.isOblique&&(a[_n.alreadyTransformedToImage]=!0);var s=t;if(this.aspectRatio){var o=this.vertices.findIndex((function(e){return e===n}));s=e*this.aspectRatio,s=1===o||3===o?-s:s}a.translate(e,s);var l=a.getCoordinates(),c={0:[3,1,2],1:[2,0,3],2:[1,3,0],3:[0,2,1]},u=c[this.getVertexIndex(n)],h=this.isOblique?this.vertices[u[2]][_n.obliqueGeometry]:this.vertices[u[2]].getGeometry(),d=h.getCoordinates(),m=oi(d,l);if(m<1e-4)a.setCoordinates([d[0]+1e-4,d[1]+1e-4,i[2]]);else{var f=this.isOblique?this.vertices[u[0]][_n.obliqueGeometry]:this.vertices[u[0]].getGeometry(),g=this.isOblique?this.vertices[u[1]][_n.obliqueGeometry]:this.vertices[u[1]].getGeometry();this.isOblique&&(f[_n.alreadyTransformedToImage]=!0,g[_n.alreadyTransformedToImage]=!0),f.setCoordinates(ai(d,f.getCoordinates(),l)),g.setCoordinates(ai(d,g.getCoordinates(),l)),r||this.updateGeometry()}}},{key:"translateVertexHeight",value:function(e,t,n){var r=this.vertices.length;while(r--)ye(Object(fe["a"])(i.prototype),"translateVertexHeight",this).call(this,e,this.vertices[r],!0);n||this.updateGeometry()}},{key:"validate",value:function(){return!this.creationActive&&4===this.vertices.length}},{key:"destroy",value:function(){ye(Object(fe["a"])(i.prototype),"destroy",this).call(this),ol.Observable.unByKey(this.listener)}},{key:"setExtent",value:function(e,t){o(e,[Number]),o(e.length,4);var i=ol.geom.Polygon.fromExtent(e).getLinearRing(0).getCoordinates();Wn(i);var n=t||(this.vertices.length?this.vertices[0].getGeometry().getCoordinates()[2]:0);this.geometry.setCoordinates(i.map((function(e){return e[2]=n,e}))),this._clearVertices(),this._createVertices()}},{key:"aspectRatio",set:function(e){l(e,Number),e&&e<1e3&&e>1e-4?this._aspectRatio=e:(this._aspectRatio=null,e&&Cr.warning("aspect ratio ".concat(e," is too small or too large")))},get:function(){return this._aspectRatio}}]),i}(Sr),Er=jr,Ir=new ol.style.Style({});function Dr(){}var Pr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this),r.editor=e,r.finished=!0,r.onFinish=n||Dr,r._defaultActive=re.CLICKMOVE,r.setActive(!1),r}return Object(m["a"])(i,[{key:"pipe",value:function(e){return this.finished||(e.type&re.MOVE&&this.editor.changeVertex(this._lastVertex,e.positionOrPixel,!this.editor.state.transformGeometryOnMove),e.type&re.CLICK&&(this.editor.changeVertex(this._lastVertex,e.positionOrPixel),this._lastVertex.setStyle(null),this.editor.feature.setStyle(this._featureStyle),this.onFinish(),this.setActive(!1))),Promise.resolve(e)}},{key:"setActive",value:function(e){e&&0===this.editor.vertices.length?(this.finished=!1,this._lastVertex=this.editor.pushVertex([0,0,0]),this._lastVertex.setStyle(Ir),this._featureStyle=this.editor.feature.getStyle(),this.editor.feature.setStyle(Ir)):this.finished=!0,ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,!this.finished&&e)}}]),i}(ce),Ar=Pr,xr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.editor=e,n._defaultActive=re.CLICK,n._defaultModificationKey=ne.SHIFT,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){return!this.editor.state.onlyAllowTranslation&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.VERTEX&&this.editor.removeVertex(e.feature),Promise.resolve(e)}}]),i}(ce),Yr=xr,Nr=i(89),Fr=i.n(Nr),Rr=[/\+/,/-/,/\*/,new RegExp("\\/")],Hr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.balloonContent=e.balloonContent,n.template=e.template,n.attributes=e.attributes,n.layerName=e.layerName,n.longitude=e.longitude,n.latitude=e.latitude,n.height=e.height||0,n.relativeToGround=e.relativeToGround,n.minTop=e.minTop||"0",n.viewerTopOffset=0,n.minLeft=e.minLeft||"0",n.containerId=e.containerId||"balloonContainer",n.balloonWidget=e.balloonWidget,n.balloonId=Object(u["c"])(),n.initialized=!1,n.initializedFor=null,n.cartographic=new Cesium.Cartographic,n.cartesian3=null,n.mercatorCoordinates=null,n.obliqueCoordinates=null,n.obliqueImageChangedSubscriptionKey=n.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,n.obliqueChangedListener.bind(Object(gt["a"])(n))),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.util.Balloon"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this.framework.getActiveMap();e instanceof Ut?this.initializeForCesium():e instanceof Vi?this.initializeForOpenlayers():e instanceof Fi&&this.initializeForOblique()}},{key:"setPosition",value:function(e){var t=this;if("cesium"===this.initializedFor)X.mercatorToWgs84(e,!0),this.relativeToGround?(this.cartographic.longitude=Cesium.Math.toRadians(e[0]),this.cartographic.latitude=Cesium.Math.toRadians(e[1])):this.cartesian3=Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2],this.cesiumScene.globe.ellipsoid,this.cartesian3);else if("openlayers"===this.initializedFor)this.mercatorCoordinates.splice(0,3,e[0],e[1],e[2]);else if("oblique"===this.initializedFor){var i=this.framework.getActiveMap();if(i instanceof Fi)return Object(Wt["f"])(i.activeLayer.currentImage,[e[0],e[1],e[2]],{dataProjection:ol.proj.get("EPSG:3857")}).then((function(e){var i=e.coords;t.obliqueCoordinates.splice(0,2,i[0],i[1])}))}return Promise.resolve()}},{key:"obliqueChangedListener",value:function(){this.close()}},{key:"getDomNodes",value:function(){var e;if(this.balloonContent)e=this.balloonContent;else try{e=Fr()(this.template)(this.attributes)}catch(a){return this.logger.warning("Could not render the template for layer: ".concat(this.layerName,". Please verify that the balloon template is correct")),null}var t=document.createElement("div");if(t.setAttribute("id",this.balloonId),e instanceof HTMLElement?t.appendChild(e):t.innerHTML=e,!t.children.length){var i=document.createElement("div");i.innerHTML=e,t.appendChild(i)}for(var n=0;n<t.children.length;n++){C.getInstance().translateAll(t.children[n]);var r=t.children[n];r.style.top="-1000px",r.style.left="-1000px"}return t}},{key:"initializeForCesium",value:function(){if(!this.initialized){var e=this.initializeBalloon();if(this.cesiumMap=this.framework.getActiveMap(),this.cesiumScene=this.cesiumMap.getScene(),!this.cartesian3||this.relativeToGround&&Cesium.Cartographic.equals(this.cartographic,Cesium.Cartographic.ZERO)){if(null==this.longitude||null==this.latitude)return void this.logger.error("Cannot instatiate balloon without defined cartesian3 or longitude latitude");this.relativeToGround&&Cesium.Cartographic.equals(this.cartographic,Cesium.Cartographic.ZERO)?(this.cartographic=Cesium.Cartographic.fromDegrees(this.longitude,this.latitude,this.height,this.cartographic),this.cartographic.height=this.cesiumScene.globe.getHeight(this.cartographic)+this.height,this.cartesian3=Cesium.Cartographic.toCartesian(this.cartographic)):this.cartesian3=Cesium.Cartesian3.fromDegrees(this.longitude,this.latitude,this.height)}this.cesiumPostRenderBind=this.cesiumPostRenderHandler.bind(this,e.minTop,e.minLeft),this.cesiumScene.postRender.addEventListener(this.cesiumPostRenderBind),this.initialized=!0,this.initializedFor="cesium"}}},{key:"cesiumPostRenderHandler",value:function(e,t){this.relativeToGround&&(this.cartographic.height=this.cesiumScene.globe.getHeight(this.cartographic)+this.height,this.cartesian3=Cesium.Cartographic.toCartesian(this.cartographic,this.cesiumScene.globe.ellipsoid,this.cartesian3));var i=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this.cesiumScene,this.cartesian3);i&&i.x&&i.y&&(this.poiLocationWindowCoordsx=i.x,this.poiLocationWindowCoordsy=i.y,this.setBalloonPosition(e,t))}},{key:"initializeForOpenlayers",value:function(){if(!this.initialized){var e=this.initializeBalloon();this.olMap=this.framework.getActiveMap().olMap,this.mercatorCoordinates||(this.mercatorCoordinates=X.wgs84ToMercator([this.longitude,this.latitude,this.height])),this.openlayersUnsubscribeKey=this.olMap.on("postrender",this.olPostRenderHandler.bind(this,this.mercatorCoordinates,e.minTop,e.minLeft)),this.initialized=!0,this.initializedFor="openlayers",this.olMap.dispatchEvent("postrender")}}},{key:"setBalloonPosition",value:function(e,t){var i=document.getElementById(this.balloonId);if(i&&i.children[0]){var n=i.children[0];n.style.top="".concat(this.poiLocationWindowCoordsy-e,"px"),n.style.left="".concat(this.poiLocationWindowCoordsx-t,"px")}}},{key:"olPostRenderHandler",value:function(e,t,i){var n=this.olMap.getPixelFromCoordinate(e);if(n){var r=this.olMap.get("vcs_scale")||1;this.poiLocationWindowCoordsx=n[0]/r,this.poiLocationWindowCoordsy=n[1]/r,this.setBalloonPosition(t,i)}}},{key:"initializeBalloon",value:function(){var e=this.getDomNodes();if(!e)return null;var t=document.getElementById(this.containerId);t.appendChild(e);var n=i.computeOffset(e,this.minTop)-this.viewerTopOffset,r=i.computeOffset(e,this.minLeft),a=document.getElementById(this.balloonId).getElementsByClassName("close-balloon");if(a)for(var s=0;s<a.length;s++)a[s].addEventListener("click",this.closeBalloonClicked.bind(this));return{minTop:n,minLeft:r}}},{key:"initializeForOblique",value:function(){var e=this;if(!this.initialized){var t=this.initializeBalloon(),i=this.framework.getActiveMap();this.olMap=i.olMap;var n=Promise.resolve();this.obliqueCoordinates||(n=Object(Wt["f"])(i.activeLayer.currentImage,[this.longitude,this.latitude,this.relativeToGround?0:this.height],{dataProjection:ol.proj.get("EPSG:4326")}).then((function(t){var i=t.coords;e.obliqueCoordinates=i}))),n.then((function(){e.obliqueUnsubscribeKey=e.olMap.on("postrender",e.olPostRenderHandler.bind(e,e.obliqueCoordinates,t.minTop,t.minLeft)),e.initializedFor="oblique",e.initialized=!0,e.olMap.dispatchEvent("postrender")}))}}},{key:"close",value:function(){var e=document.getElementById(this.balloonId);e&&(e.parentNode.removeChild(e),"cesium"===this.initializedFor?this.cesiumScene.postRender.removeEventListener(this.cesiumPostRenderBind):"openlayers"===this.initializedFor?ol.Observable.unByKey(this.openlayersUnsubscribeKey):"oblique"===this.initializedFor&&ol.Observable.unByKey(this.obliqueUnsubscribeKey)),this.obliqueImageChangedSubscriptionKey&&this.framework.unsubscribeByKey(this.obliqueImageChangedSubscriptionKey),this.initialized=!1}},{key:"closeBalloonClicked",value:function(){var e=P.getInstance();e&&this.balloonWidget?e.clearCurrentItem():this.close()}},{key:"show",value:function(e){document.getElementById(this.balloonId).style.display=e?"block":"none"}},{key:"getLink",value:function(e){var t="".concat(this.longitude.toFixed(8),",").concat(this.latitude.toFixed(8),",").concat(this.height.toFixed(2)),i={slLayer:this.layerName,slPos:t,slR2G:this.relativeToGround,slAt:JSON.stringify(this.attributes)};e.addQueryParams(i)}}],[{key:"computeOffset",value:function(e,t){if("number"===typeof t)return t;var i=e.children[0],n=i.offsetHeight,r=i.offsetWidth;function a(e){return/\d+/.test(e)?Number(e.match(/\d+/)[0]):/balloonHeight/.test(e)?n:/balloonWidth/.test(e)?r:0}function s(e,t){return e.reduce((function(e,i){switch(!0){case t.test("+"):return e+i;case t.test("-"):return e-i;case t.test("*"):return e*i;case t.test("/"):return e/i;default:return e+i}}))}var o,l=Rr.find((function(e){return e.test(t)}));if(l){var c=t.split(l),u=c.map(a);o=s(u,l)}else o=a(t);return Number(o)}}]),i}(ve),Gr=Hr,zr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n._defaultActive=re.CLICK,n.editor=e,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){return e.feature&&e.feature[this.editor.state.featureTypeSymbol]&(cn.EDITING|cn.VERTEX)&&this.editor.editLabel(),Promise.resolve(e)}}]),i}(ce),Br=zr,Vr=k.getLogger("vcs.vcm.util.editor.PointGeometryEditor"),Ur=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n._create=new Ar(Object(gt["a"])(n),n._checkLabel.bind(Object(gt["a"])(n))),n.interactionChain.addInteraction(n._create),n.geometry=n.geometry,n.feature[n.state.featureTypeSymbol]|=cn.VERTEX,n._removeVertex=new Yr(Object(gt["a"])(n)),n.interactionChain.addInteraction(n._removeVertex),n.isLabel="Label"===n.geometry.get("_vcsGeomType"),n._selectLabel=null,n.isLabel&&(n._selectLabel=new Br(Object(gt["a"])(n)),n.interactionChain.addInteraction(n._selectLabel)),n._balloon=null,n._textArea=null,n}return Object(m["a"])(i,[{key:"_createVertices",value:function(){var e=this.geometry.getCoordinates();if(!e.every((function(e){return 0===e}))){var t=this._createVertex(e);this.vertices.push(t),this.scratchLayer.addFeatures([t])}}},{key:"pushVertex",value:function(e){if(this.vertices.length)return this.state.mode&ln.CREATE&&this.onFinish(),this.vertices[0];var t=this._createVertex(e);return this.vertices.push(t),this.geometry.setCoordinates(e),this.scratchLayer.addFeatures([t]),t}},{key:"_checkLabel",value:function(){!this._balloon&&this.isLabel&&1===this.vertices.length?this.editLabel():ye(Object(fe["a"])(i.prototype),"_validateOnFinish",this).call(this)}},{key:"_validateOnFinish",value:function(){this.creationActive=!!this.isLabel&&!this._hasLabel(),this.validate()?this.onFinish():this._removeFeature()}},{key:"addLabel",value:function(){this._selectLabel||(this._selectLabel=new Br(this),this.interactionChain.addInteraction(this._selectLabel)),this.isLabel=!0,this.geometry.set("_vcsGeomType","Label",!0),this.feature[ut]||(this.feature[ut]=this.parent.activeLayer.style.clone(),this.feature.setStyle(this.feature[ut].style),this.feature.changed()),this.editLabel()}},{key:"editLabel",value:function(){this._setBalloon(this.feature[ut].label)}},{key:"_setBalloon",value:function(e){if(!this._textArea){this._textArea=document.createElement("textarea"),this._textArea.rows=1,this._textArea.cols=100,this._textArea.classList.add("balloon");var t=this.feature[ut].text;if(t){if(this._textArea.style.font=t.getFont(),t.getStroke()){var i=t.getStroke().getWidth(),n=Be(He(t.getStroke().getColor()));this._textArea.style.textShadow="-".concat(i,"px ").concat(i,"px 0 ").concat(n,",").concat(i,"px ").concat(i,"px 0 ").concat(n,",").concat(i,"px -").concat(i,"px 0 ").concat(n,",-").concat(i,"px -").concat(i,"px 0 ").concat(n)}t.getFill()&&(this._textArea.style.color=Be(He(t.getFill().getColor())))}this._textArea.addEventListener("keydown",this._labelKeyDown.bind(this))}e&&(this._textArea.value=e);var r={balloonContent:this._textArea};if(!this.isOblique){var a=X.mercatorToWgs84(this.geometry.getCoordinates()),s=Object(Oe["a"])(a,3);r.longitude=s[0],r.latitude=s[1],r.height=s[2]}this._balloon=new Gr(r),this.isOblique&&(this._balloon.obliqueCoordinates=this.geometry.getCoordinates()),this._balloon.initialize(),this._textArea.focus()}},{key:"stopEditingLabel",value:function(e){this._balloon&&(e&&this._textArea&&(this.feature[ut].label=this._textArea.value,this.feature.changed()),this._balloon.close(),this._balloon=null,this._textArea=null,this.state.mode&ln.CREATE?this._validateOnFinish():this.validate()||this.stopCreation())}},{key:"translateVertex",value:function(e,t,n,r,a){ye(Object(fe["a"])(i.prototype),"translateVertex",this).call(this,e,t,n,this.vertices[0],a)}},{key:"translateVertexHeight",value:function(e,t,n){ye(Object(fe["a"])(i.prototype),"translateVertexHeight",this).call(this,e,this.vertices[0],n)}},{key:"_labelKeyDown",value:function(e){e.stopPropagation(),"Escape"===e.key?this.stopEditingLabel():"Enter"===e.key&&this.stopEditingLabel(!0)}},{key:"removeVertex",value:function(e){this.scratchLayer.removeFeaturesById([e.getId()]),this._removeFeature()}},{key:"_hasLabel",value:function(){var e=this.feature[ut]?this.feature[ut].label:null;return e&&e.length}},{key:"stopCreation",value:function(){ye(Object(fe["a"])(i.prototype),"stopCreation",this).call(this),this.validate()&&this.isLabel&&(this._hasLabel()||this.geometry.unset("_vcsGeomType",!0))}},{key:"validate",value:function(){return!this.creationActive&&!this.geometry.getCoordinates().every((function(e){return 0===e}))}},{key:"updateGeometry",value:function(){var e=this.vertices[0].getGeometry().getCoordinates();this.geometry.setCoordinates(e,"XYZ"),this._balloon&&(this.isOblique?this._balloon.obliqueCoordinates.splice(0,2,e[0],e[1]):this._balloon.setPosition(e))}},{key:"setPosition",value:function(e){o(e,[Number]),o(e.length,3),this.vertices.length?(this.vertices[0].getGeometry().setCoordinates(e),this.updateGeometry()):this.pushVertex(e),this.creationActive&&this._validateOnFinish()}},{key:"setMode",value:function(e){Vr.debug("PointGeometryEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e})))),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,e),this.state.mode&ln.EDIT?(this._selectLabel&&this._selectLabel.setActive(),this._removeVertex.setActive()):this.state.mode&ln.REMOVEVERTEX&&(this._removeVertex.setActive(!0),this._removeVertex.setModification(ne.NONE))}},{key:"handleMapChange",value:function(e){this._balloon&&(this._balloon.close(),this._setBalloon())}},{key:"destroy",value:function(){this._balloon&&(this._balloon.close(),this._balloon=null,this._textArea=null),this.feature[this.state.featureTypeSymbol]^=cn.VERTEX,ye(Object(fe["a"])(i.prototype),"destroy",this).call(this)}}]),i}(Sr),Wr=Ur;function qr(){}var Jr=new ol.style.Style({}),Kr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this),r.editor=e,r.finished=!0,r._lastVertex=null,r.onFinish=n||qr,r._defaultActive=re.CLICK|re.DBLCLICK|re.MOVE,r.setActive(!1),r}return Object(m["a"])(i,[{key:"pipe",value:function(e){return this.finished||(e.type&re.MOVE&&this.editor.changeVertex(this._lastVertex,e.positionOrPixel,!this.editor.state.transformGeometryOnMove),e.type&re.CLICK&&(this.editor.changeVertex(this._lastVertex,e.positionOrPixel),this._lastVertex.setStyle(null),this._lastVertex=this.editor.reverse?this.editor.unshiftVertex(e.positionOrPixel):this.editor.pushVertex(e.positionOrPixel),this._lastVertex.setStyle(Jr)),e.type&re.DBLCLICK&&(this.editor.removeVertex(this._lastVertex),this.editor.reverse=!1,this.onFinish(),this.setActive(!1))),Promise.resolve(e)}},{key:"setActive",value:function(e){var t;e?(this.finished=!1,this.editor.vertices.length>0?(t=this.editor.reverse?this.editor.vertices[0]:this.editor.vertices.slice(-1)[0],t=t.getGeometry().getCoordinates()):t=[0,0,0],this._lastVertex=this.editor.reverse?this.editor.unshiftVertex(t):this.editor.pushVertex(t),this._lastVertex.setStyle(Jr)):this.finished=!0;ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,e)}}]),i}(ce),Zr=Kr,Qr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this),r.editor=e,r.callback=n,r.timeOut=null,r.clickDuration=xn().clickDuration,r._defaultActive=re.CLICK|re.DBLCLICK,r.setActive(),r}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(!this.editor.state.onlyAllowTranslation){if(e.type&re.DBLCLICK)return this.editor.reverse=!1,clearTimeout(this.timeOut),Promise.resolve(e);if(e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.VERTEX){var t=this.editor.getVertexIndex(e.feature);0===t?(this.editor.reverse=!0,this.doCallback()):t===this.editor.vertices.length-1&&this.doCallback()}}return Promise.resolve(e)}},{key:"doCallback",value:function(){this.timeOut=setTimeout(this.callback,this.clickDuration)}}]),i}(ce),Xr=Qr,$r=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.editor=e,n._defaultActive=re.CLICK,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){return!this.editor.state.onlyAllowTranslation&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.EDITING&&this.editor.insertVertex(e.positionOrPixel),Promise.resolve(e)}}]),i}(ce),ea=$r,ta=k.getLogger("vcs.vcm.util.editor.LineGeometryEditor"),ia=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n._create=new Zr(Object(gt["a"])(n),n._validateOnFinish.bind(Object(gt["a"])(n))),n.interactionChain.addInteraction(n._create),n.geometry=n.geometry,n.reverse=!1,n._lastVertex=new Xr(Object(gt["a"])(n),(function(){n.getRootEditor().setMode(ln.CREATE)})),n.interactionChain.addInteraction(n._lastVertex),n._insertVertex=new ea(Object(gt["a"])(n)),n.interactionChain.addInteraction(n._insertVertex),n._removeVertex=new Yr(Object(gt["a"])(n)),n.interactionChain.addInteraction(n._removeVertex),n}return Object(m["a"])(i,[{key:"_createVertices",value:function(){for(var e=this.geometry.getCoordinates(),t=0;t<e.length;t++)this.vertices.push(this._createVertex(e[t]));this.scratchLayer.addFeatures(this.vertices)}},{key:"updateGeometry",value:function(){var e=this;this.isOblique&&(this.geometry[_n.imageGeometryChanged]=!0),this.geometry.setCoordinates(this.vertices.map((function(t){return e.isOblique?t[_n.obliqueGeometry].getCoordinates():t.getGeometry().getCoordinates()})),"XYZ")}},{key:"pushVertex",value:function(e){var t=this._createVertex(e);this.vertices.push(t),this.scratchLayer.addFeatures([t]);var i=this.geometry.getCoordinates();return i.push(e),this.geometry.setCoordinates(i),t}},{key:"insertVertex",value:function(e){var t=this.geometry.getCoordinates(),i=this.geometry.getClosestPoint(e);this.geometry instanceof ol.geom.LinearRing&&t.push(t[0]);var n="clampToGround"===this.feature.get("olcs_altitudeMode")?si(i,e):oi(i,e);if(n<5){var r=t.length-1,a=0;for(a;a<r;a++){var s="clampToGround"===this.feature.get("olcs_altitudeMode")?ci(t[a],t[a+1],i):li(t[a],t[a+1],i);if(s)break}var o=this._createVertex(e);return this.vertices.splice(a+1,0,o),this.scratchLayer.addFeatures([o]),this.updateGeometry(),o}return null}},{key:"unshiftVertex",value:function(e){var t=this._createVertex(e);this.vertices.unshift(t),this.scratchLayer.addFeatures([t]);var i=this.geometry.getCoordinates();return i.unshift(e),this.geometry.setCoordinates(i),t}},{key:"removeVertex",value:function(e){var t=this.getVertexIndex(e);if(t>-1){var i=this.geometry.getCoordinates();i.splice(t,1),this.geometry.setCoordinates(i),this.vertices.splice(t,1),this.scratchLayer.removeFeaturesById([e.getId()])}}},{key:"stopCreation",value:function(){if(ye(Object(fe["a"])(i.prototype),"stopCreation",this).call(this),this.creationActive&&this.validate()){var e=this.reverse?this.vertices[0]:this.vertices[this.vertices.length-1];this.removeVertex(e)}}},{key:"setMode",value:function(e){ta.debug("LineGeometryEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e})))),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,e),this.feature.set("olcs_allowPicking",!!(e&ln.EDIT)),this.state.mode&ln.EDIT?(this._lastVertex.setActive(),this._insertVertex.setActive(),this._removeVertex.setActive()):this.state.mode&ln.REMOVEVERTEX&&(this._removeVertex.setActive(!0),this._removeVertex.setModification(ne.NONE))}},{key:"validate",value:function(){var e=1;return this.creationActive&&(e+=1),"LinearRing"===this.geometry.getType()&&(e+=1),this.geometry.getCoordinates().length>e}}]),i}(Sr),na=ia,ra=new ol.Sphere(6378137),aa=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),n=t.call(this,e),n._create=new gr(Object(gt["a"])(n),n._validateOnFinish.bind(Object(gt["a"])(n)),2),n.interactionChain.addInteraction(n._create),n.geometry=n.geometry,n.radius=null;var r=n.feature.get("olcs.circle_type");return r&&"sphere"===r||(n._translateVertex.forceZPlane=!0),n.setAltitudeModeToAbsoluteOnClassification=!1,n}return Object(m["a"])(i,[{key:"initialize",value:function(){var e=this.geometry.getCenter();e[2]=e[2]||0;var t=this.geometry.getRadius();this.geometry.setCenterAndRadius(e,t,"XYZ"),ye(Object(fe["a"])(i.prototype),"initialize",this).call(this)}},{key:"_createVertices",value:function(){var e=this.geometry.getFirstCoordinate();if(!e.every((function(e){return 0===e}))){this.vertices.push(this._createVertex(e,0));var t=this.geometry.getLastCoordinate();t.length&&this.vertices.push(this._createVertex(t,1)),this.scratchLayer.addFeatures(this.vertices)}}},{key:"updateGeometry",value:function(){2===this.vertices.length&&this.geometry.setCoordinates([this.vertices[0].getGeometry().getCoordinates(),this.vertices[1].getGeometry().getCoordinates()])}},{key:"pushVertex",value:function(e){if(this.vertices.length<2){var t=!1,i=this.vertices.length;1===i&&(this.geometry.setCenter(this.vertices[0].getGeometry().getCoordinates()),this.radius&&(this.geometry.setRadius(this.radius),e[0]+=this.radius,this.radius=null,t=!0));var n=this._createVertex(e,i);return this.vertices.push(n),this.scratchLayer.addFeatures([n]),t&&this.stopCreation(),n}return this.vertices[1]}},{key:"validate",value:function(){return!this.creationActive}},{key:"translateVertex",value:function(e,t,n,r,a){if(0===r[kr])ye(Object(fe["a"])(i.prototype),"translateVertex",this).call(this,e,t,n,r,!0),a||(this.geometry.setCenter(r.getGeometry().getCoordinates()),this.vertices[1].getGeometry().setCoordinates(this.geometry.getLastCoordinate()));else{var s,o=this.feature.get("olcs.circle_type");if(o&&"sphere"===o?(s=oi,ye(Object(fe["a"])(i.prototype),"translateVertex",this).call(this,e,t,n,r,!0)):(s=si,r.getGeometry().translate(e,t)),!a){var l=this.vertices[0].getGeometry().getCoordinates(),c=r.getGeometry().getCoordinates(),u=s(l,c);this.geometry.setRadius(u)}}}},{key:"translateVertexHeight",value:function(e,t,i){var n=2;while(n--){var r=this.vertices[n].getGeometry(),a=r.getCoordinates();a[2]+=e,r.setCoordinates(a)}i||this.geometry.setCenter(this.vertices[0].getGeometry().getCoordinates())}},{key:"setPosition",value:function(e){o(e,[Number]),o(e.length,3),this.geometry.setCenter(e),this._clearVertices(),this._createVertices()}},{key:"setRadius",value:function(e){o(e,Number);var t=this.geometry.getCenter(),i=ra.offset(X.mercatorToWgs84(t),e,Math.PI/2);i[2]=t[2],this.geometry.setCoordinates([t,X.wgs84ToMercator(i,!0)]),this.vertices.length>1?(this.vertices[1].getGeometry().setCoordinates(this.geometry.getLastCoordinate()),this.creationActive&&this._validateOnFinish()):this.radius=Math.abs(i[0]-t[0])}}]),i}(Sr),sa=aa,oa=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n,r,a){var s;return Object(d["a"])(this,i),s=t.call(this),s.geometry=e,s.cb=n,s.isEditingGeometry=r,s.featureTypeSymbol=a,s._defaultActive=re.CLICK,s.setActive(),s}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(e.feature&&e.feature[this.featureTypeSymbol]&cn.EDITING&&this.geometry[this.isEditingGeometry]){var t=Qt(this.geometry);if(0===t.length)return this.cb(0),Promise.resolve(e);for(var i=1/0,n=0,r=0;r<t.length;r++){var a=t[r].getClosestPoint(e.positionOrPixel),s=oi(a,e.positionOrPixel);s<i&&(n=r,i=s)}this.cb(n)}return Promise.resolve(e)}}]),i}(ce),la=oa,ca={MultiPolygon:"Polygon",MultiPoint:"Point",MultiLineString:"LineString",Polygon:"LinearRing"},ua=k.getLogger("vcs.vcm.util.editor.MultiGeometryEditor"),ha=Symbol("isEditingGeometry"),da=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.geometry=e.geometry,n.feature=e.feature,n.layer=e.layer,n.editors=[],n.listeners=[],n.isEditingGeometry=Symbol("isEditingGeometry"),n._selectGeometryInteraction=new la(n.geometry,n.activateEditor.bind(Object(gt["a"])(n)),ha,n.state.featureTypeSymbol),n.interactionChain.addInteraction(n._selectGeometryInteraction),n._finishAction=e.onFinish||n.setMode.bind(Object(gt["a"])(n),ln.EDIT),n.onRemoved=e.onRemoved||function(){},n.activateEditorIndex=null,n._setupGeometries(),n.geometry[ha]=!0,n}return Object(m["a"])(i,[{key:"className",get:function(){return"vcs.vcm.util.editor.MultiGeometryEditor"}}]),Object(m["a"])(i,[{key:"_setupGeometries",value:function(){var e=Qt(this.geometry);e.forEach(this.addGeometry,this)}},{key:"addGeometry",value:function(e){var t=this,i=e||fa[ca[this.geometry.getType()]](),n=ga({parent:this,geometry:i,layer:this.layer,feature:this.feature,onFinish:this._finishAction,onRemoved:this._geometryRemoved.bind(this,this.editors.length)}),r=this.editors.push(n)-1;this.listeners.push(i.on("change",(function(){var e=t.geometry.getCoordinates();e[r]=i.getCoordinates(),t.geometry.setCoordinates(e,"XYZ")}))),e||(Xt(this.geometry,i),this.state.mode=ln.CREATE,this.activateEditor(r))}},{key:"_geometryRemoved",value:function(e,t){if(e||"Polygon"!==this.geometry.getType()){var i=this.geometry.getCoordinates();if(i.splice(e,1),!i.length)return void this._removeFeature(t);this.geometry.setCoordinates(i,"XYZ"),this.destroy(),this.editors=[],this.listeners=[],this._setupGeometries()}else this._removeFeature(t)}},{key:"_removeFeature",value:function(e){var t=this.parent&&this.parent.className===this.className;if(!t){var i=G.getInstance().getLayerByName(this.state.layerName);i.removeFeaturesById([this.feature.getId()])}e&&!t||this.onRemoved()}},{key:"setAltitudeMode",value:function(e){null!=this.activateEditorIndex&&this.editors[this.activateEditorIndex].setAltitudeMode(e)}},{key:"activateEditor",value:function(e){if(this.activateEditorIndex!==e){if(null!==this.activateEditorIndex){var t=this.editors[this.activateEditorIndex];t.destroy(),t.geometry[ha]=!1,this.interactionChain.removeInteraction(t.interactionChain)}this.activateEditorIndex=e,this._selectGeometryInteraction.setActive(!1);var i=this.editors[e];i.initialize(),i.geometry[ha]=!0,this.interactionChain.addInteraction(i.interactionChain),this.setMode(this.state.mode)}}},{key:"setMode",value:function(e){ua.debug("MultiGeometryEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e}))));var t=Qt(this.geometry,null===this.activateEditorIndex?0:this.activateEditorIndex);if(t){var n=e,r=t.getExtent();if((ol.extent.isEmpty(r)||r.every((function(e){return 0===e})))&&(n=ln.CREATE),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,n),n^ln.CREATE&&this._selectGeometryInteraction.setActive(),null===this.activateEditorIndex)this.activateEditor(0);else{var a=this.editors[this.activateEditorIndex];a.interactionChain.setActive(!0),a.setMode(n)}}else this.addGeometry()}},{key:"stopCreation",value:function(){null!==this.activateEditorIndex&&(this.editors[this.activateEditorIndex].validate()?this.editors[this.activateEditorIndex].stopCreation():this._geometryRemoved(this.activateEditorIndex,!0))}},{key:"validate",value:function(){return this.editors.some((function(e){return e.validate()}))}},{key:"destroy",value:function(){ye(Object(fe["a"])(i.prototype),"destroy",this).call(this),ol.Observable.unByKey(this.listeners);for(var e=0;e<this.editors.length;e++)this.editors[e].destroy();this.activateEditorIndex=null}}]),i}(vr),ma=da,fa={Point:function(){var e=new ol.geom.Point([0,0,0],"XYZ");return e[_n.alreadyTransformedToMercator]=!0,e},Label:function(){var e=new ol.geom.Point([0,0,0],"XYZ");return e[_n.alreadyTransformedToMercator]=!0,e.set("_vcsGeomType","Label"),e},Circle:function(){var e=new ol.geom.Circle([0,0,0],20,"XYZ");return e[_n.alreadyTransformedToMercator]=!0,e},LineString:function(){return new ol.geom.LineString([],"XYZ")},LinearRing:function(){return new ol.geom.LinearRing([],"XYZ")},Polygon:function(){return new ol.geom.Polygon([[]],"XYZ")},BBox:function(){var e=new ol.geom.Polygon([[]],"XYZ");return e.set("_vcsGeomType","bbox"),e},Rectangle:function(){var e=new ol.geom.Polygon([[]],"XYZ");return e.set("_vcsGeomType","rectangle"),e},MultiLineString:function(){return new ol.geom.MultiLineString([[]],"XYZ")},MultiPolygon:function(){return new ol.geom.MultiPolygon([[[]]],"XYZ")},MultiPoint:function(){var e=new ol.geom.MultiPoint([[0,0,0]],"XYZ");return e[_n.alreadyTransformedToMercator]=!0,e}};function ga(e){var t=e.geometry;if(t instanceof ol.geom.Polygon){var i=t.get("_vcsGeomType"),n=t.get("_vcsAspectRatio");return i&&"rectangle"===i?new Er(Object.assign(e,{aspectRatio:n})):i&&"bbox"===i?new Er(Object.assign(e,{isBBox:!0,aspectRatio:n})):new ma(Object.assign(e,{geomType:"LinearRing"}))}if(t instanceof ol.geom.Circle)return new sa(e);if(t instanceof ol.geom.Point)return new Wr(e);var r=["LineString","Polygon","Point"],a=r.find((function(e){return t instanceof ol.geom["Multi".concat(e)]}));return a?new ma(Object.assign(e,{geomType:a})):new na(e)}var ya={DISTANCE:"distance",AREA:"area",VERTICAL_HEIGHT:"verticalHeight",OBLIQUE_HEIGHT:"obliqueHeight",OBLIQUE_DISTANCE:"obliqueDistance",POINT:"point",CARTESIAN_DISTANCE:"cartesianDistance",CARTESIAN_AREA:"cartesianArea"},pa=function(){function e(t){Object(d["a"])(this,e),this.parent=t.parent,this.decimalPlaces=this.parent.decimalPlaces,this.map=G.getInstance().getActiveMap(),this.featureIds=[],this.forceMove=null!=t.forceMove?t.forceMove:null,this.values={type:t.type,isValid:!1}}return Object(m["a"])(e,null,[{key:"measurementType",get:function(){return ya.DISTANCE}}]),Object(m["a"])(e,[{key:"_createFeature",value:function(e){if(this.feature=this.parent.geometryEditor.createFeature(e.geometryType),e.isAbsolute?this.feature.set("olcs_altitudeMode","absolute",!0):this.feature.set("olcs_altitudeMode","clampToGround",!0),e.startPosition){var t=this.feature.getGeometry();t instanceof ol.geom.LineString?t.setCoordinates([e.startPosition]):t instanceof ol.geom.Polygon?t.setCoordinates([[e.startPosition]]):t instanceof ol.geom.Point&&t.setCoordinates(e.startPosition)}e.addFeatureStyle&&(this.feature[ut]=this.parent.featureLayer.style.clone(),this.feature.setStyle(this.feature[ut].style)),this.map instanceof Fi?(this.feature[_n.obliqueGeometry].on("change",this.geometryChangedCallback.bind(this)),this.feature[_n.doNotTransform]=!0):this.feature.getGeometry().on("change",this.geometryChangedCallback.bind(this));var i=ln.CREATE;e.startPosition&&"Point"===e.geometryType&&(this.feature.getGeometry().changed(),i=ln.EDIT),this.parent.geometryEditor.setModeAndSelectFeature(i,this.feature),this.id=this.feature.getId().toString(),this.featureIds.push(this.id)}},{key:"geometryChangedCallback",value:function(e){}},{key:"getValue",value:function(e,t){var i=Math.abs(e),n=t?2:1,r=t?"m²":"m",a=Math.pow(1e3,n);return i>a*(t?1:10)&&(i/=a,r="k".concat(r)),"".concat(i.toFixed(this.decimalPlaces)," ").concat(r)}},{key:"addLabel",value:function(){var e=fa.Point(),t=new ol.Feature({geometry:e});return this.map instanceof Fi&&(e[_n.alreadyTransformedToImage]=!0,t[_n.doNotTransform]=!0),t.setStyle(new ol.style.Style({text:this.parent.featureLayer.style.text.clone()})),this.parent.featureLayer.addFeatures([t]),t[this.parent.geometryEditor.state.featureTypeSymbol]=0,this.featureIds.push(t.getId()),t}},{key:"destroy",value:function(){this.parent.featureLayer.removeFeaturesById(this.featureIds)}}],[{key:"setTextOnLabel",value:function(e,t){e.getStyle().getText().setText(t)}}]),e}(),va=pa,_a=new ol.Sphere(6378137);function ba(e,t){var i=Cesium.Cartesian3.subtract(e,t,new Cesium.Cartesian3);Cesium.Cartesian3.normalize(i,i);var n=Cesium.Plane.fromPointNormal(e,i);return Cesium.ClippingPlane.fromPlane(n)}function La(e){for(var t=[],i=e.map((function(e){var t;return(t=Cesium.Cartesian3).fromDegrees.apply(t,Object(g["a"])(X.mercatorToWgs84(e)))})),n=0;n<i.length-1;n++){var r=n+1,a=new Cesium.Cartesian3;Cesium.Cartesian3.cross(i[r],i[n],a),Cesium.Cartesian3.normalize(a,a);var s=new Cesium.Plane(a,0);Number.isNaN(s.distance)||t.push(Cesium.ClippingPlane.fromPlane(s))}return t}function wa(e,t,i){var n=[],r=mi(e),a=e.get("olcs_extrudedHeight");a&&e.get("olcs_skirt")&&(r.min-=e.get("olcs_skirt")),r.min===r.max&&(r.max+=1);var s=X.mercatorToWgs84(t[0]),o=Object(Oe["a"])(s,2),l=o[0],c=o[1],u=Cesium.Cartesian3.fromDegrees(l,c,r.min),h=Cesium.Cartesian3.fromDegrees(l,c,r.max);return i.createBottomPlane&&n.push(ba(u,h)),a&&i.createTopPlane&&n.push(ba(h,u)),n}function Ma(e){var t=[],i=e.map((function(e){var t;return(t=Cesium.Cartesian3).fromDegrees.apply(t,Object(g["a"])(X.mercatorToWgs84(e)))})),n=new Cesium.Cartesian3;function r(e){var i=Cesium.Cartesian3.add(e,n,new Cesium.Cartesian3),r=new Cesium.Cartesian3;Cesium.Cartesian3.cross(e,i,r),Cesium.Cartesian3.normalize(r,r);var a=new Cesium.Plane(r,0);t.push(Cesium.ClippingPlane.fromPlane(a))}return Cesium.Cartesian3.cross(i[0],i[1],n),Cesium.Cartesian3.normalize(n,n),r(i[0]),Cesium.Cartesian3.negate(n,n),r(i[1]),t}function ka(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;o(e,ol.Feature),o(t,Object),l(i,Cesium.Matrix4);var n=[],r=e.getGeometry(),a=r.getType();if("Point"===a)n.push.apply(n,Object(g["a"])(wa(e,[r.getCoordinates()],t)));else{var s=di(r);if(s.length<2||s[0][0]===s[1][0]&&s[0][1]===s[1][1])return null;"Polygon"===a?(Un(s),rr(s)):"LineString"===a&&2===s.length&&t.createEndingPlanes&&n.push.apply(n,Object(g["a"])(Ma(s))),t.createVerticalPlanes&&n.push.apply(n,Object(g["a"])(La(s))),"absolute"===e.get("olcs_altitudeMode")&&(t.createBottomPlane||t.createTopPlane)&&n.push.apply(n,Object(g["a"])(wa(e,s,t)))}return i&&n.forEach((function(e){var t=Cesium.Plane.transform(e,i);e.normal=t.normal,e.distance=t.distance})),t.reverse&&n.forEach((function(e){Cesium.Cartesian3.negate(e.normal,e.normal),e.distance*=-1})),new Cesium.ClippingPlaneCollection({planes:n,unionClippingRegions:t.reverse})}function Oa(e,t,i,n){o(e,Cesium.ClippingPlaneCollection),o(t,Cesium.ClippingPlaneCollection),t.length>0&&t.removeAll();for(var r=0;r<e.length;r++){var a=e.get(r);if(i&&n){var s=Cesium.Plane.getPointDistance(a,n),l=Cesium.Plane.transform(a,i);l.distance=s,t.add(Cesium.ClippingPlane.fromPlane(l))}else t.add(Cesium.ClippingPlane.clone(a))}return t.modelMatrix=e.modelMatrix.clone(),t.unionClippingRegions=e.unionClippingRegions,t.edgeColor=e.edgeColor.clone(),t.edgeWidth=e.edgeWidth,t}function Ta(e){if(e instanceof Cesium.Entity){if(e.model)if(e.model.clippingPlanes){var t=e.model.clippingPlanes.getValue();t.removeAll()}else e.model.clippingPlanes=new Cesium.ConstantProperty(new Cesium.ClippingPlaneCollection)}else e.clippingPlanes?e.clippingPlanes.removeAll():e.clippingPlanes=new Cesium.ClippingPlaneCollection}function Sa(e,t,i){if(Ta(e),i)Oa(t,e.clippingPlanes);else{var n=Cesium.Matrix4.getMatrix3(Cesium.Matrix4.inverse(e.clippingPlanesOriginMatrix,new Cesium.Matrix4),new Cesium.Matrix3),r=Cesium.Matrix4.fromRotationTranslation(n,new Cesium.Cartesian3);Oa(t,e.clippingPlanes,r,e.boundingSphere.center)}}function Ca(e,t){Ta(e),Oa(t,e.clippingPlanes)}function ja(e,t,i){if(e.model){Ta(e);var n=e.model.clippingPlanes.getValue();if(Oa(t,n),!i){var r=e.computeModelMatrix(Cesium.JulianDate.now());Cesium.Matrix4.inverseTransformation(r,n.modelMatrix),t.modelMatrix.equals(Cesium.Matrix4.IDENTITY)||Cesium.Matrix4.multiply(n.modelMatrix,t.modelMatrix,n.modelMatrix)}}}function Ea(e,t,i){e instanceof Cesium.Cesium3DTileset?Sa(e,t,i):e instanceof Cesium.Globe?Ca(e,t):ja(e,t,i)}function Ia(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25;if(o(e,[Number]),o(i,Boolean),o(n,Number),i){var r=G.getInstance().getMapByType("vcs.vcm.maps.Cesium").getScene(),a=r.camera,s=_a.offset(e,-n,a.heading),l=_a.offset(e,n,a.heading);t=new ol.geom.LineString([[s[0],s[1],e[2]],[l[0],l[1],e[2]]],"XYZ")}else{t=fa.Polygon();var c=2*Math.PI-Math.PI/4,u=Object(g["a"])(new Array(4)).map((function(){var t=_a.offset(e,n,c);return c-=Math.PI/2,[t[0],t[1],e[2]]}));t.setCoordinates([u])}var h=new ol.Feature({geometry:t});return h.set("olcs_altitudeMode","absolute"),i&&h.set("olcs_extrudedHeight",2*n),t.transform($.proj,ee.proj),h}function Da(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];l(e,ol.Feature),o(t,Boolean);var i=!!e&&"LineString"===e.getGeometry().getType();return i?{createBottomPlane:!t,createTopPlane:!t,createEndingPlanes:!t,createVerticalPlanes:!0}:{createVerticalPlanes:!t,createBottomPlane:!0}}var Pa,Aa=null,xa=function(){function e(){Object(d["a"])(this,e),this._defaultClippingObjects=new Set,this._exclusiveClippingObjects=null,this._targetsMap=new Map,this._listenersMap=new Map,this._exclusiveRemovedCb=null,this.initialized=!1,this._updateSuspended=!1,this._dirty=!1}return Object(m["a"])(e,null,[{key:"className",get:function(){return"vcs.vcm.util.clipping.ClippingObjectManager"}}]),Object(m["a"])(e,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var t=G.getInstance();t.subscribe(O.LAYER_CHANGED,(function(t){e.suspendUpdate=!0,e._defaultClippingObjects.forEach((function(e){e.handleLayerChanged(t)})),e._exclusiveClippingObjects&&e._exclusiveClippingObjects.forEach((function(e){e.handleLayerChanged(t)})),e.suspendUpdate=!1})),t.subscribe(O.MAP_ACTIVATED,(function(t){e.suspendUpdate=!0,e._defaultClippingObjects.forEach((function(e){e.handleMapChanged(t)})),e._exclusiveClippingObjects&&e._exclusiveClippingObjects.forEach((function(e){e.handleMapChanged(t)})),e.suspendUpdate=!1}))}}},{key:"addClippingObject",value:function(e){if(o(e,hr),this.hasClippingObject(e))throw new Error("ClippingObject already managed, remove it first");this._defaultClippingObjects.add(e);var t=G.getInstance(),i=t.getActiveMap();i instanceof Ut&&(e.handleMapChanged(i),t.getLayers().forEach((function(t){e.handleLayerChanged(t)}))),this._listenersMap.set(e,[e.targetsUpdated.addEventListener(this._update.bind(this)),e.clippingPlaneUpdated.addEventListener(this._clippingPlaneUpdated.bind(this,e))]),this._update()}},{key:"removeClippingObject",value:function(e){o(e,hr),this._defaultClippingObjects.has(e)&&(this._defaultClippingObjects.delete(e),this._listenersMap.get(e).forEach((function(e){e()})),this._listenersMap.delete(e),this._update())}},{key:"hasClippingObject",value:function(e){return o(e,hr),this._defaultClippingObjects.has(e)||!(!this._exclusiveClippingObjects||!this._exclusiveClippingObjects.includes(e))}},{key:"setExclusiveClippingObjects",value:function(e,t){var i=this;if(o(e,[hr]),o(t,Function),e.find((function(e){return i._defaultClippingObjects.has(e)})))throw new Error("Some ClippingObjects are already managed, remove them first");var n=G.getInstance(),r=n.getActiveMap(),a=n.getLayers();this._clearExclusiveClippingObjects(),this._exclusiveRemovedCb=t,this._exclusiveClippingObjects=e,this._exclusiveClippingObjects.forEach((function(e){r instanceof Ut&&(e.handleMapChanged(r),a.forEach((function(t){e.handleLayerChanged(t)}))),i._listenersMap.set(e,[e.targetsUpdated.addEventListener(i._update.bind(i)),e.clippingPlaneUpdated.addEventListener(i._clippingPlaneUpdated.bind(i,e))])})),this._update()}},{key:"_clearExclusiveClippingObjects",value:function(e){var t=this;this._exclusiveClippingObjects&&(this._exclusiveClippingObjects.forEach((function(e){t._listenersMap.get(e).forEach((function(e){e()})),t._listenersMap.delete(e)})),this._exclusiveClippingObjects=null),!e&&this._exclusiveRemovedCb&&this._exclusiveRemovedCb(),this._exclusiveRemovedCb=null}},{key:"clearExclusiveClippingObjects",value:function(e){this._clearExclusiveClippingObjects(e),this._update()}},{key:"_update",value:function(){var e=this;if(this._updateSuspended)this._dirty=!0;else{var t=new Set(this._targetsMap.keys()),i=function(i){i.targets.forEach((function(n){e._targetsMap.set(n,i),t.delete(n)}))};this._targetsMap.clear(),this._defaultClippingObjects.forEach(i),this._exclusiveClippingObjects&&this._exclusiveClippingObjects.forEach(i),t.forEach((function(e){Ta(e)})),this._targetsMap.forEach((function(e,t){e.clippingPlaneCollection&&Ea(t,e.clippingPlaneCollection,e.local)}))}}},{key:"_clippingPlaneUpdated",value:function(e){this._targetsMap.forEach((function(t,i){t===e&&e.clippingPlaneCollection&&Ea(i,e.clippingPlaneCollection)}))}},{key:"suspendUpdate",get:function(){return this._updateSuspended},set:function(e){o(e,Boolean),this._updateSuspended=e,!this._updateSuspended&&this._dirty&&(this._dirty=!1,this._update())}}],[{key:"getInstance",value:function(){return Aa||(Aa=new e,Aa.initialize()),Aa}}]),e}(),Ya=xa;O.SPLIT_DIRECTION_CHANGED="SPLIT_DIRECTION_CHANGED";var Na=function(){function e(){Object(d["a"])(this,e),this._position=.5,this.scene=null,this.olMap=null,this.initialized=!1,this.leftScreenClippingObject=new hr,this.rightScreenClippingObject=new hr,this._cameraListener=null,this.originalCameraPercentageChanged=null}return Object(m["a"])(e,[{key:"initialize",value:function(){if(!this.initialized){var e=G.getInstance();this.handleMapChange(e.getActiveMap()),this.mapListener=e.subscribe(O.MAP_ACTIVATED,this.handleMapChange,this),this.rightScreenClippingObject.targetsUpdated.addEventListener(this._targetsChanged,this),this.leftScreenClippingObject.targetsUpdated.addEventListener(this._targetsChanged,this),Ya.getInstance().addClippingObject(this.rightScreenClippingObject),Ya.getInstance().addClippingObject(this.leftScreenClippingObject),this.initialized=!0}}},{key:"_targetsChanged",value:function(){if(this.scene){var e=this.rightScreenClippingObject.targets.size+this.leftScreenClippingObject.targets.size,t=this.scene.camera;this._cameraListener&&0===e?(this._cameraListener(),this._cameraListener=null,t.percentageChanged=this.originalCameraPercentageChanged):!this._cameraListener&&e>0&&(this.originalCameraPercentageChanged=t.percentageChanged,t.percentageChanged=0,this._cameraListener=t.changed.addEventListener(this._updateClippingPlanes.bind(this)),this._updateClippingPlanes())}}},{key:"_updatePosition",value:function(e){this._position=e,this.scene?(this.scene.imagerySplitPosition=e,this._updateClippingPlanes()):this.olMap&&this.olMap.render()}},{key:"handleMapChange",value:function(e){e instanceof Ut?(this.scene=e.getScene(),this.olMap=null,this._targetsChanged()):e instanceof Vi&&(this.scene=null,this.olMap=e.olMap),this._updatePosition(this.position)}},{key:"_calcClippingPlane",value:function(){var e,t=this.scene.camera,i=t.frustum,n=i.fov,r=i.near,a=this.scene.canvas.width,s=this.scene.canvas.height;e=s>a?r*Math.tan(.5*n)*2/s:r*Math.tan(.5*n)*2/a;var o=a*this.position-a/2,l=s/2,c=new Cesium.Cartesian3(e*o,e*l,-1*r),u=new Cesium.Cartesian3(e*o,-1*e*l,-1*r);Cesium.Matrix4.multiplyByPoint(t.inverseViewMatrix,c,c),Cesium.Matrix4.multiplyByPoint(t.inverseViewMatrix,u,u);var h=t.positionWC;Cesium.Cartesian3.subtract(h,c,c),Cesium.Cartesian3.subtract(h,u,u);var d=Cesium.Cartesian3.cross(c,u,new Cesium.Cartesian3);Cesium.Cartesian3.normalize(d,d);var m=Cesium.Plane.fromPointNormal(h,d);return Cesium.ClippingPlane.fromPlane(m)}},{key:"_updateClippingPlanes",value:function(){var e=this._calcClippingPlane();this.leftScreenClippingObject.clippingPlaneCollection=new Cesium.ClippingPlaneCollection({planes:[e]});var t=Cesium.ClippingPlane.clone(e);t.normal=Cesium.Cartesian3.negate(t.normal,t.normal),t.distance*=-1,this.rightScreenClippingObject.clippingPlaneCollection=new Cesium.ClippingPlaneCollection({planes:[t]})}},{key:"getClippingObjectForDirection",value:function(e){return o(e,[Cesium.ImagerySplitDirection.LEFT,Cesium.ImagerySplitDirection.RIGHT,Cesium.ImagerySplitDirection.NONE]),e===Cesium.ImagerySplitDirection.LEFT?this.leftScreenClippingObject:e===Cesium.ImagerySplitDirection.RIGHT?this.rightScreenClippingObject:null}},{key:"destroy",value:function(){this.initialized&&(G.getInstance().unsubscribeByKey(this.mapListener),Ya.getInstance().removeClippingObject(this.rightScreenClippingObject),Ya.getInstance().removeClippingObject(this.leftScreenClippingObject),this.rightScreenClippingObject.targetsUpdated.removeEventListener(this._targetsChanged,this),this.leftScreenClippingObject.targetsUpdated.removeEventListener(this._targetsChanged,this)),this._cameraListener&&(this._cameraListener(),this._cameraListener=null),Pa=null}},{key:"position",get:function(){return this._position},set:function(e){if(o(e,Number),e<0||e>1)throw new Error("Position must be between 0 and 1");Math.abs(this._position-e)>1e-4&&this._updatePosition(e)}}]),e}();function Fa(){return Pa||(Pa=new Na,Pa.initialize()),Pa}var Ra=Symbol("_lastUpdated"),Ha=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),n=t.call(this,e),n.url&&!/\.json$/.test(n.url)&&(n.url="".concat(n.url.replace(/\/$/,""),"/tileset.json")),n.featureVisibility=e.featureVisibility||new It,n.highlightStyle=e.highlightStyle?new dt(e.highlightStyle):null,n.jumpToLocation=!!e.jumpToLocation,n.screenSpaceError=Object(u["h"])(e.screenSpaceError,16),n.screenSpaceErrorMobile=Object(u["h"])(e.screenSpaceErrorMobile,32),n.maximumMemoryUsage=Object(u["h"])(e.maximumMemoryUsage,16),n._featureExtent=null;var r=e.tilesetOptions||{};return n.tilesetOptions=Object.assign({url:n.url,maximumScreenSpaceError:n.framework.isMobile()?n.screenSpaceErrorMobile:n.screenSpaceError,maximumMemoryUsage:n.maximumMemoryUsage},r),n._styleLastUpdated=Date.now(),n._loadProgressListener=null,n._splitDirection=Cesium.ImagerySplitDirection.NONE,e.splitDirection&&(n._splitDirection="left"===e.splitDirection?Cesium.ImagerySplitDirection.LEFT:Cesium.ImagerySplitDirection.RIGHT),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.AbstractCesiumTilesetLayer"}},{key:"lastUpdated",get:function(){return Ra}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this._initializedPromise||(this.cesium3DTileset=new Cesium.Cesium3DTileset(this.tilesetOptions),this.cesium3DTileset[Ht.vcsLayerNameSymbol]=this.name,this.cesium3DTileset.tileVisible.addEventListener(this.applyStyle.bind(this)),this.cesium3DTileset.tileUnload.addEventListener((function(e){delete e[i.lastUpdated]})),this.layerLoadingEventListener=function(e,t){0===e&&0===t?this.framework.getActiveMap().setLayerLoading(this,!1):this.framework.getActiveMap().setLayerLoading(this,!0)}.bind(this),this._initializedPromise=new Promise((function(t,i){e.cesium3DTileset.readyPromise.then((function(i){if(e.jumpToLocation){var n=e.framework.getActiveMap();n.getCesiumWidget().camera.viewBoundingSphere(i.boundingSphere,new Cesium.HeadingPitchRange(0,-2,0)),n.getCesiumWidget().camera.lookAtTransform(Cesium.Matrix4.IDENTITY)}e.initialized=!0,e.setStyle(e.style),t()}),i)}))),this._initializedPromise}},{key:"show",value:function(){var e=this.framework.getActiveMap();if(e&&"vcs.vcm.maps.Cesium"===e.className&&(e.getScene().primitives.contains(this.cesium3DTileset)||e.getScene().primitives.add(this.cesium3DTileset)),this._loadProgressListener||(this._loadProgressListener=this.cesium3DTileset.loadProgress.addEventListener(this.layerLoadingEventListener)),this.splitDirection){var t=Fa().getClippingObjectForDirection(this.splitDirection);t&&t.addLayer(this.name)}this.cesium3DTileset.show=!0}},{key:"hide",value:function(){if(this._loadProgressListener&&(this._loadProgressListener(),this._loadProgressListener=null),this.splitDirection){var e=Fa().getClippingObjectForDirection(this.splitDirection);e&&e.removeLayer(this.name)}this.cesium3DTileset.show=!1,this.framework.getActiveMap().setLayerLoading(this,!1)}},{key:"objectClickedHandler",value:function(e,t,i){if(this.allowPicking){var n=Yn(e);if(n)return this.raiseFeatureEvent(t,n.id,n,i||this),!0}return!1}},{key:"getGenericFeatureFromClickedObject",value:function(e){var t=Object.assign({},this._genericFeatureProperties,e.attributes||e);return{layerName:this.name,layerClass:this.className,attributes:t,longitude:e.clickedPosition.longitude,latitude:e.clickedPosition.latitude,height:e.clickedPosition.height,relativeToGround:!1}}},{key:"getCesium3DTileset",value:function(){return this.logger.warning("Function getCesium3DTileset is deprecated and will be removed in the next release. Access the property cesium3DTileset directly instead"),this.cesium3DTileset}},{key:"getFeatureExtent",value:function(){if(this._featureExtent)return this._featureExtent.clone();var e=new De(ee.getConfigObject());if(e.extent=ol.extent.createEmpty(),this.cesium3DTileset){var t=this.cesium3DTileset.root.boundingVolume.rectangle;if(t){var i=Cesium.Rectangle.southwest(t),n=Cesium.Rectangle.northeast(t),r=X.wgs84ToMercator([Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude)]),a=X.wgs84ToMercator([Cesium.Math.toDegrees(n.longitude),Cesium.Math.toDegrees(n.latitude)]);e.extent=[r[0],r[1],a[0],a[1]]}else{var s=this.cesium3DTileset.boundingSphere,o=s.center,l=s.radius,c=Cesium.Cartographic.fromCartesian(o),u=X.wgs84ToMercator([Cesium.Math.toDegrees(c.longitude),Cesium.Math.toDegrees(c.latitude),c.height]),h=vi(u,l);e.extent=h.getExtent()}e.isValid()&&(this._featureExtent=e.clone())}return e}},{key:"setStyle",value:function(e,t){var n=this;ye(Object(fe["a"])(i.prototype),"setStyle",this).call(this,e,t),this.initialized&&(this.cesium3DTileset.style=this.style.cesiumStyle,this._onStyleChangeRemover&&this._onStyleChangeRemover(),this._onStyleChangeRemover=this.style.styleChanged.addEventListener((function(){n.cesium3DTileset.makeStyleDirty(),n._styleLastUpdated=Date.now(),n._lastUpdated=Date.now()})),this._styleLastUpdated=Date.now(),this.featureVisibility.lastUpdated=Date.now(),this.cesium3DTileset.readyPromise.then((function(){n.cesium3DTileset.colorBlendMode!==n.style.colorBlendMode&&(n.style.colorBlendMode!==Cesium.Cesium3DTileColorBlendMode.HIGHLIGHT?n.cesium3DTileset.extras&&n.cesium3DTileset.extras._3DTILESDIFFUSE&&(n.cesium3DTileset.colorBlendMode=n.style.colorBlendMode):n.cesium3DTileset.colorBlendMode=n.style.colorBlendMode)})))}},{key:"applyStyle",value:function(e){if(e.content instanceof Cesium.Composite3DTileContent)for(var t=0;t<e.content.innerContents.length;t++)this.styleContent(e.content.innerContents[t]);else this.styleContent(e.content)}},{key:"styleContent",value:function(e){if(!e[i.lastUpdated]||e[i.lastUpdated]<this.featureVisibility.lastUpdated||e[i.lastUpdated]<this.globalHider.lastUpdated||e[i.lastUpdated]<this._styleLastUpdated){for(var t=e.featuresLength,n=0;n<t;n++){var r=e.getFeature(n);if(r){var a=r.getProperty("id");a||(a="".concat(e.url).concat(n)),this.featureVisibility.highlightedObjects[a]&&((!this.featureVisibility.highlightedObjects[a].features.has(r)||this._styleLastUpdated>e[i.lastUpdated])&&this.featureVisibility.highlightedObjects[a].features.set(r,r.color.clone()),r.color=this.featureVisibility.highlightedObjects[a].style.cesiumFillColor),this.featureVisibility.hiddenObjects[a]?(this.featureVisibility.hiddenObjects[a].add(r),r.show=!1):this.globalHider.hiddenObjects[a]&&(this.globalHider.addFeature(a,r),r.show=!1)}}e[i.lastUpdated]=Date.now()}}},{key:"determineHighlightStyle",value:function(){return this.highlightStyle?this.highlightStyle:P.getInstance()._currentItemHighlightColor}},{key:"setMaximumScreenSpaceError",value:function(e){this.cesium3DTileset&&(this.cesium3DTileset.maximumScreenSpaceError=e)}},{key:"dispose",value:function(){if(this.cesium3DTileset){this.hide();var e=this.framework.getMapByType("vcs.vcm.maps.CesiumMap"),t=!1;e&&e.initialized&&(t=e.getScene().primitives.remove(this.cesium3DTileset)),t||this.cesium3DTileset.destroy(),this.cesium3DTileset=null}this.initialized=!1,this._state=Yt.INACTIVE,ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}},{key:"handleURLParameter",value:function(e){e.debug&&(this.cesium3DTileset?(this.cesium3DTileset.debugShowRenderingStatistics=!0,this.cesium3DTileset.debugShowBoundingVolume=!0,this.cesium3DTileset.debugShowContentBoundingVolume=!0):(this.tilesetOptions.debugShowRenderingStatistics=!0,this.tilesetOptions.debugShowBoundingVolume=!0,this.tilesetOptions.debugShowContentBoundingVolume=!0))}},{key:"splitDirection",get:function(){return this._splitDirection},set:function(e){if(e!==this._splitDirection){var t=Fa(),i=t.getClippingObjectForDirection(this._splitDirection);if(i&&i.removeLayer(this.name),this._splitDirection=e,this.active){var n=t.getClippingObjectForDirection(this._splitDirection);n&&n.addLayer(this.name)}this.framework.publish(O.SPLIT_DIRECTION_CHANGED,this,e)}}}]),i}(Ht),Ga=Ha;At.CESIUM_TILESET_LAYER=At.lastLayerId,At.lastLayerId+=1;var za=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=e.layertype||At.CESIUM_TILESET_LAYER,e.className=e.className||i.className,n=t.call(this,e),n.pickMode=e.pickMode||"topLevelFeature",n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.CesiumTilesetLayer"}}]),i}(Ga),Ba=za;At.CESIUM_BUILDINGSLAYER=At.lastLayerId,At.lastLayerId+=1;var Va=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.layertype=At.CESIUM_BUILDINGSLAYER,e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Buildings"}}]),i}(Ba),Ua=Va;At.CESIUM_ENTITIESLAYER=At.lastLayerId,At.lastLayerId+=1;var Wa=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.CESIUM_ENTITIESLAYER,e.className=e.className||i.className,n=t.call(this,e),n.dataSource=e.dataSource||new Cesium.CustomDataSource(n.name),n.entities=n.dataSource.entities,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Entities"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=this.framework.getActiveMap();e.getDatasources().add(this.dataSource),this.initialized=!0}return Promise.resolve()}},{key:"getEntities",value:function(){return this.logger.deprecate("getEntities","access the entities property directly"),this.entities}},{key:"getDataSource",value:function(){return this.logger.deprecate("getEntities","access the dataSource property directly"),this.dataSource}},{key:"show",value:function(){this.dataSource.show=!0}},{key:"hide",value:function(){this.dataSource.show=!1}},{key:"dispose",value:function(){if(this.entities.removeAll(),this.initialized){var e=this.framework.getMapByType("vcs.vcm.maps.Cesium");e&&e.getDatasources().contains(this.dataSource)&&e.getDatasources().remove(this.dataSource)}this.initialized=!1,this._state=Yt.INACTIVE,ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}},{key:"hideObjects",value:function(e){var t=this;e.forEach((function(e){var i=t.entities.getById(e);i&&(i.show=!1)}))}},{key:"showObjects",value:function(e){var t=this;e.forEach((function(e){var i=t.entities.getById(e);i&&(i.show=!0)}))}},{key:"addEntity",value:function(e,t,i){var n=this.entities.add(e);return n[Ht.vcsLayerNameSymbol]=this.name,n.attributes=t||null,n.allowPicking=null!=i?i:this.allowPicking,n.id}},{key:"flyToEntity",value:function(e){var t=this.framework.getActiveMap(),i=this.entities.getById(e);if(i){var n,r=t.getDataSourceDisplay(),a=t.getScene(),s=a.camera,o=new Cesium.BoundingSphere,l=t.getViewPoint(),c=l.heading,u=l.pitch,h=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(c),Cesium.Math.toRadians(u<-45?u:-45),void 0),d=0,m=r.defaultDataSource;if(m.isLoading)var f=m.loadingEvent.addEventListener((function(){n=a.postRender.addEventListener(g),f()}));else n=a.postRender.addEventListener(g)}else this.logger.warning("could not find entity on this layer");function g(){var e=r.getBoundingSphere(i,!0,o);if(e!==Cesium.BoundingSphereState.PENDING){if(e===Cesium.BoundingSphereState.FAILED)return d+=1,void(d>3&&n());s.flyToBoundingSphere(o,{duration:1,offset:h}),n()}}}},{key:"removeObjectById",value:function(e){return this.entities.removeById(e)}},{key:"objectClickedHandler",value:function(e,t,i){if(this.allowPicking&&e.id.allowPicking){var n=e.id,r=n.id;return n.clickedPosition=e.clickedPosition,this.raiseFeatureEvent(t,r,n,i||this),!0}return!1}},{key:"getGenericFeatureFromClickedObject",value:function(e){var t=Object.assign({},this._genericFeatureProperties,e.attributes||{});return{layerName:this.name,layerClass:this.className,attributes:t,longitude:e.clickedPosition.longitude,latitude:e.clickedPosition.latitude,height:e.clickedPosition.height,relativeToGround:!1}}}]),i}(Ht),qa=Wa;At.CESIUM_CZMLLAYER=At.lastLayerId,At.lastLayerId+=1;var Ja=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.CESIUM_CZMLLAYER,e.className=i.className,e.dataSource=new Cesium.CzmlDataSource,n=t.call(this,e),n.sourceUri=e.sourceUri||null,n._loadedResolve=function(){},n._loadedReject=function(){},n.loaded=new Promise((function(e,t){n._loadedResolve=e,n._loadedReject=t})),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Czml"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.initialized?Promise.resolve():ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){var t=e.dataSource.load(e.url,e.sourceUri?{sourceUri:e.sourceUri}:void 0);return t.then(e._handleLoaded.bind(e),e._loadedReject),t}))}},{key:"_handleLoaded",value:function(){var e=this;this.entities.values.forEach((function(t){t[Ht.vcsLayerNameSymbol]=e.name,t.allowPicking=e.allowPicking})),this._loadedResolve()}}]),i}(qa),Ka=Ja;At.CESIUM_GLTFLAYER=At.lastLayerId,At.lastLayerId+=1;var Za=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.CESIUM_GLTFLAYER,e.className=i.className,n=t.call(this,e),n.modelConfigs=e.models||[],n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Gltf"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.initialized?Promise.resolve():ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e.modelConfigs.forEach(e.addObject,e)}))}},{key:"addObject",value:function(e){var t=this.getEntityOptionsFromModel(e);if(!t)return null;var i={uri:t.url,scale:t.scale};i=e.modelOptions?Object.assign({},e.modelOptions,i):i;var n={name:t.url,position:t.position,orientation:t.orientation,show:t.show,model:i};return this.addEntity(n,t.attributes,t.allowPicking)}},{key:"getEntityOptionsFromModel",value:function(e){var t={};if("string"!==typeof e.url)return this.logger.warning("Could not find URL for model ".concat(e)),null;t.url=e.url;var i=[e.longitude,e.latitude,e.height].every((function(e){return Number.isFinite(e)}));if(!i)return this.logger.warning("Could not find longitude/latitude/height for model".concat(e)),null;t.position=Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height);var n=0;Number.isFinite(e.heading)?n=e.heading/180*Math.PI:Number.isFinite(e.rotation)&&(n=e.rotation/180*Math.PI);var r=0;Number.isFinite(e.pitch)&&(r=e.pitch/180*Math.PI);var a=0;Number.isFinite(e.roll)&&(a=e.roll/180*Math.PI);var s=new Cesium.HeadingPitchRoll(n,r,a);return t.orientation=Cesium.Transforms.headingPitchRollQuaternion(t.position,s),t.scale=1,Number.isFinite(e.scale)&&(t.scale=e.scale),t.attributes={},e.attributes&&(t.attributes=e.attributes),t.allowPicking=null==e.allowPicking||e.allowPicking,t.show=null==e.show||e.show,t}},{key:"updateEntityById",value:function(e,t){var i=this.entities.getById(e),n=this.getEntityOptionsFromModel(t);i&&n&&(i.model.scale=n.scale,i.orientation=n.orientation,i.position=n.position,i.attributes=n.attributes,i.allowPicking=n.allowPicking)}}]),i}(qa),Qa=Za;At.CESIUM_POINTCLOUDLAYER=At.lastLayerId,At.lastLayerId+=1;var Xa=new Ct({}),$a=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.CESIUM_POINTCLOUDLAYER,e.className=i.className,n=t.call(this,e),n.defaultPointSize=null!=e.pointSize?e.pointSize:null,n._pointSize=n.defaultPointSize,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.PointCloud"}}]),Object(m["a"])(i,[{key:"getStyleOrDefaultStyle",value:function(e,t){return ye(Object(fe["a"])(i.prototype),"getStyleOrDefaultStyle",this).call(this,e,t||Xa)}},{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e._assignPointSize()}))}},{key:"clearStyle",value:function(){ye(Object(fe["a"])(i.prototype),"clearStyle",this).call(this),this.pointSize=this.defaultPointSize}},{key:"setStyle",value:function(e,t){e instanceof dt?this.logger.warning("trying to apply vector style to point cloud layer."):ye(Object(fe["a"])(i.prototype),"setStyle",this).call(this,e,t)}},{key:"_assignPointSize",value:function(){this.initialized&&(this.cesium3DTileset.style?(this.cesium3DTileset.style.pointSize=this._pointSize,this.cesium3DTileset.makeStyleDirty()):null!=this._pointSize&&(this.cesium3DTileset.style=new Cesium.Cesium3DTileStyle({pointSize:this._pointSize.toString()})))}},{key:"pointSize",get:function(){return this._pointSize},set:function(e){l(e,[Number,String]),this._pointSize=e,this._assignPointSize()}}]),i}(Ga),es=$a;At.CESIUM_TERRAIN=At.lastLayerId,At.lastLayerId+=1;var ts=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.CESIUM_TERRAIN,e.className=i.className,n=t.call(this,e),n.requestVertexNormals=null==e.requestVertexNormals||e.requestVertexNormals,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Terrain"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){return this.initialized||(this.cesiumTerrainProvider=zt({url:this.url,requestVertexNormals:this.requestVertexNormals}),this.initialized=!0),Promise.resolve()}},{key:"show",value:function(){var e=this,t=this.framework.getActiveMap();if(t&&t.initialized){this.framework.getLayers().filter((function(t){return t instanceof i&&t!==e})).forEach((function(e){e.deactivate()}));var n=t.getScene(),r=n.globe;r.depthTestAgainstTerrain=!0,r.terrainProvider=this.cesiumTerrainProvider}}},{key:"hide",value:function(){var e=this.framework.getActiveMap();if(e){this.ellipsoidProvider||(this.ellipsoidProvider=new Cesium.EllipsoidTerrainProvider({}));var t=e.getScene(),i=t.globe;i.depthTestAgainstTerrain=!1,i.terrainProvider=this.ellipsoidProvider}}},{key:"dispose",value:function(){var e=this.framework.getActiveMap();e&&(e.getCesiumWidget().terrainProvider=new Cesium.EllipsoidTerrainProvider({})),this.ellipsoidProvider=null,this.cesiumTerrainProvider=null,this.initialized=!1,this._state=Yt.INACTIVE,ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}},{key:"getHeightForWGS84Coordinates",value:function(e){return Bt(this.cesiumTerrainProvider,e)}}]),i}(Ht),is=ts;At.GEOJSON=At.lastLayerId,At.lastLayerId+=1;var ns=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,e.projection||(e.projection=$.getConfigObject()),n=t.call(this,e),n.url=e.url||null,n.altitudeMode=e.altitudeMode||"none",n._dataFetchedPromise=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.GeoJSON"}}]),Object(m["a"])(i,[{key:"fetchData",value:function(){var e=this;return this._dataFetchedPromise?this._dataFetchedPromise:null!=this.url?(this.framework.getActiveMap().setLayerLoading(this,!0),this._dataFetchedPromise=q.a.get(this.url).then((function(t){e.dataFetchedHandler(t.data)})).catch((function(t){return e.logger.warning("Could not send request for loading layer content (".concat(t.message,")")),Promise.reject(t)})).then((function(){e.framework.getActiveMap().setLayerLoading(e,!1)})),this._dataFetchedPromise):(this.logger.warning("Could not load GeoJSON layer, no url is set"),Promise.reject(new Error("missing url in GeoJSON layer")))}},{key:"dataFetchedHandler",value:function(e){var t=er(e,{dataProjection:this.projection,dynamicStyle:!0});this.addFeatures(t.features),t.style&&this.setStyle(t.style)}}]),i}(_n),rs=ns,as=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.url=e.url||"",n=t.call(this,e);var r=null!=e.minLevel?e.minLevel:e.minZoom,a=null!=e.maxLevel?e.maxLevel:e.maxZoom;return n.minLevel=Object(u["h"])(r,0),n.maxLevel=Object(u["h"])(a,18),n.tilingSchema=e.tilingSchema,null==r&&e.extent&&n.calculateMinLevel(),n.opacity=Object(u["g"])(e.opacity,1),n.opacity=n.opacity<0?0:n.opacity,n.opacity=n.opacity>1?1:n.opacity,"string"!==typeof n.url&&n.framework.subscribe("LOCALE_CHANGED",n.handleLocaleChange,Object(gt["a"])(n)),n._splitDirection=Cesium.ImagerySplitDirection.NONE,e.splitDirection&&(n._splitDirection="left"===e.splitDirection?Cesium.ImagerySplitDirection.LEFT:Cesium.ImagerySplitDirection.RIGHT),n}return Object(m["a"])(i,[{key:"handleLocaleChange",value:function(){var e=this.active;e&&this.deactivate(),this.getImplementations().forEach((function(e){e.initialized=!1})),e&&this.activate()}},{key:"getUrl",value:function(){return this.logger.deprecate("getUrl","access the url property directly"),this.url}},{key:"getTilingScheme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"mercator"===this.tilingSchema?new Cesium.WebMercatorTilingScheme(e):new Cesium.GeographicTilingScheme(e)}},{key:"_getExtentPoints",value:function(){var e=this.extent.getCoordinatesInProjection($),t=[ol.extent.getBottomLeft(e),ol.extent.getBottomRight(e),ol.extent.getTopRight(e),ol.extent.getTopLeft(e)];return t.map((function(e){return Cesium.Cartographic.fromDegrees(e[0],e[1])}))}},{key:"calculateMinLevel",value:function(){var e=this;if(this.extent.isValid()){var t=this.getTilingScheme(),i=this._getExtentPoints();while(this.minLevel<this.maxLevel){var n=i.map((function(i){return t.positionToTileXY(i,e.minLevel)})),r=[];if(r.push(Math.abs(n[0].x-n[1].x)),r.push(Math.abs(n[0].y-n[3].y)),r[0]>1||r[1]>1){this.minLevel-=1;break}this.minLevel+=1}}}},{key:"setOpacity",value:function(e){o(e,Number),this.opacity=e,this.getImplementations().forEach((function(e){e.updateOpacity()}))}},{key:"splitDirection",get:function(){return this._splitDirection},set:function(e){e!==this._splitDirection&&(this._splitDirection=e,this.getImplementations().forEach((function(e){e.updateSplitDirection()})),this.framework.publish(O.SPLIT_DIRECTION_CHANGED,this,e))}}]),i}(sn),ss=as;At.IMAGE=At.lastLayerId,At.lastLayerId+=1;var os=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.IMAGE,e.className=i.className,n=t.call(this,e),n.imageExtent=e.imageExtent,n.credit=e.credit,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.SingleImage"}}]),Object(m["a"])(i,[{key:"setExtent",value:function(e){this.imageExtent=e;var t=this.getImplementation(this.framework.getActiveMap());t&&t.updateLayer()}}]),i}(ss),ls=os;At.OPENSTREETMAP=At.lastLayerId,At.lastLayerId+=1;var cs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.OPENSTREETMAP,e.className=i.className,n=t.call(this,e),n._splitDirection=Cesium.ImagerySplitDirection.NONE,e.splitDirection&&(n._splitDirection="left"===e.splitDirection?Cesium.ImagerySplitDirection.LEFT:Cesium.ImagerySplitDirection.RIGHT),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.OpenStreetMap"}}]),Object(m["a"])(i,[{key:"splitDirection",get:function(){return this._splitDirection},set:function(e){e!==this._splitDirection&&(this._splitDirection=e,this.getImplementations().forEach((function(e){e.updateSplitDirection()})),this.framework.publish(O.SPLIT_DIRECTION_CHANGED,this,e))}}]),i}(sn),us=cs;At.TMSBase=At.lastLayerId,At.lastLayerId+=1;var hs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.TMSBase,e.className=i.className,e.tilingSchema=e.tilingSchema||"mercator",n=t.call(this,e),n.format=e.format||"jpeg",n.tileWidth=Object(u["h"])(e.tileWidth,256),n.tileHeight=Object(u["h"])(e.tileHeight,256),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.TMSBase"}}]),i}(ss),ds=hs;At.CLUSTER=At.lastLayerId,At.lastLayerId+=1;var ms=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.layertype=At.CLUSTER,e.className=i.className,e.zCoordinateEyeOffset=Object(u["h"])(e.zCoordinateEyeOffset,-200),e.heightAboveGround=Object(u["h"])(e.heightAboveGround,65),e.activeOnStartup=!0,e.altitudeMode=e.altitudeMode||"none",e.zIndex=Object(u["h"])(e.zIndex,60),n=t.call(this,e),n.clusterSource=new ol.source.Cluster({source:n.source,distance:Object(u["h"])(e.clusterDistance,40)}),n.clusterLayers=e.clusterLayers||[],n.activeClusterLayers=[],n.activeClusterLayersLastUpdated={},n.lastClickedFeatures=[];var r=e.defaultFeatureTemplate||"<%=title%>";Array.isArray(r)&&(r=r.join(" ")),n.defaultFeatureTemplate=Fr()(r),n.showInContent=Object(u["e"])(e.showInContent,!0);var a=e.style||{};return n.icon=a.icon||"images/clusterIcon.svg",n.selectedIcon=a.selectedIcon||"images/clusterSelectedIcon.svg",n.iconWidth=Object(u["h"])(a.iconWidth,40),n.iconHeight=Object(u["h"])(a.iconHeight,44),n.iconScaleFactor=Object(u["h"])(a.iconScaleFactor,.05),n.fontSize=Object(u["h"])(a.fontSize,16),n.textOffset=Object(u["h"])(a.textOffset,-4),n.breaks=a.breaks||[2,3,4,5,10,15,20,25],n.zeroScaleOffset=Object(u["h"])(a.zeroScaleOffset,3),n._icons=new Array(n.breaks.length),n._selectedIcons=new Array(n.breaks.length),n._images=new Array(n.breaks.length),n._inactive2dClustering=!0,n._resultLayer=new _n({name:"_clusterResultLayer".concat(n.name),altitudeMode:n.altitudeMode,activeOnStartup:!0,zCoordinateEyeOffset:n.zCoordinateEyeOffset-20,zIndex:1e3,projection:ee.getConfigObject(),allowPicking:!1}),n._resultFeature=null,n._initializedPromise=null,n.framework.subscribe(O.LAYER_ACTIVATED,n._handleActivation.bind(Object(gt["a"])(n))),n.framework.subscribe(O.LAYER_DEACTIVATED,n._handleDeactivation.bind(Object(gt["a"])(n))),n.framework.subscribe(O.SELECTED_ITEM_CHANGED,n._handleSelectedItemChanged.bind(Object(gt["a"])(n))),n.mapNames=[],n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.VectorCluster"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return null===this._initializedPromise&&(this.clusterLayers=this._validateLayers(this.clusterLayers),this._initializedPromise=this.framework.loadLibraries(["./lib/thirdparty/canvg-1.4/rgbcolor.js","./lib/thirdparty/canvg-1.4/StackBlur.js","./lib/thirdparty/canvg-1.4/canvg.js"]).then(this._createIcons.bind(this)).then((function(){e.setStyle(e._styleFunction.bind(e)),e._resultLayer.setStyle(e._getSelectedStyle()),e.framework.addLayer(e._resultLayer)}))),this._initializedPromise.then((function(){return ye(Object(fe["a"])(i.prototype),"initialize",e).call(e)}))}},{key:"synchronize",value:function(e,t){return"vcs.vcm.maps.Openlayers"!==e.className?(this._inactive2dClustering=!0,this.clusterSource.setPause(!0)):(this._inactive2dClustering=!1,this.clusterSource.setPause(!1)),ye(Object(fe["a"])(i.prototype),"synchronize",this).call(this,e,t)}},{key:"deactivate",value:function(){throw this.logger.error("trying to deactivate cluster layer!"),new Error("cannot deactivate cluster layer")}},{key:"_validateLayers",value:function(e,t){var i=this;return e.filter((function(e){var n=i.framework.getLayerByName(e.name);if(!(n&&n instanceof _n))return i.logger.warning("Missconfigured cluster layer, failed with layer: ".concat(n)),!1;if("string"===typeof e.featureTemplate&&(e.featureTemplate=Fr()(e.featureTemplate)),n.heightAboveGround=i.heightAboveGround,n.altitudeMode=i.altitudeMode,n.setVisibility(!1),t){var r=i.clusterLayers.find((function(t){return t.name===e.name}));r?(r.title=e.title||r.title,r.featureTemplate=e.featureTemplate||r.featureTemplate):i.clusterLayers.push(e)}return!0}))}},{key:"_createIcons",value:function(){var e=this;function t(e,t,i,n,r){var a=this,s=t-this.zeroScaleOffset;s=s>0?s:0,s=r?s:s+.2;var o=Math.round(this.iconWidth*(1+this.iconScaleFactor*s)),l=Math.round(this.iconHeight*(1+this.iconScaleFactor*s));return new Promise((function(e){var t=document.createElement("canvas");t.width=o,t.height=l,canvg(t,i,{renderCallback:function(){e(t)}})})).then((function(i){return new Promise((function(n){var r,s=a.fontSize;r=t<a.zeroScaleOffset?e:"".concat(e,"+");var c='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(o,'" heigth="').concat(l,'" viewbox="0 0 ').concat(o," ").concat(l,'">')+'<text x="'.concat(o/2,'" y="').concat(l/2+s/2+a.textOffset,'" text-anchor="middle" ')+'lengthAdjust="spacingAndGlyphs" textLength="'.concat(o-20,'" ')+'font-size="'.concat(s,'" font-family="Arial" font-weight="bold">').concat(r,"</text></svg>"),u=document.createElement("canvas");u.width=o,u.height=l,canvg(u,c,{ignoreDimensions:!0,renderCallback:function(){var e=document.createElement("canvas");e.width=o,e.height=l;var t=e.getContext("2d");t.drawImage(i,0,0),t.drawImage(u,0,0),n(e)}})}))})).then((function(e){return r&&(a._images[t]=e),n[t]=new ol.style.Style({image:new ol.style.Icon({img:e,imgSize:[o,l],anchor:[.5,.5]})}),Promise.resolve()}))}var i=this.breaks.map((function(i,n){return Promise.all([t.bind(e)(i,n,e.icon,e._icons,!0),t.bind(e)(i,n,e.selectedIcon,e._selectedIcons,!1)])}));return Promise.all(i)}},{key:"getSource",value:function(){return this.clusterSource}},{key:"_styleFunction",value:function(e){var t=this,i=e.get("features");if(i&&i.length>1){var n=i.length,r=this.breaks.findIndex((function(e,i){return i>t.zeroScaleOffset?n<e:n<=e}));return r=r>this.zeroScaleOffset?r-1:r,-1===r?this._icons[this._icons.length-1]:this._icons[r]}var a=i?i[0]:e,s=a[_n.originalFeatureSymbol]||a,o=this.framework.getLayerByName(s.get("_layerName"));if(o){if(s.getId()&&P.getInstance().getCurrentItem().id===s.getId())return o.highlightStyle?o.highlightStyle.style:null;var l=o.style.style;if(l instanceof ol.style.Style)return l;if("function"===typeof l)return l(s)}return new ol.style.Style({})}},{key:"_getSelectedStyle",value:function(){return function(e){var t=this,i=e[_n.originalFeatureSymbol]||e,n=i.get("features");if(n&&n.length>1){var r=n.length,a=this.breaks.findIndex((function(e,i){return i>t.zeroScaleOffset?r<e:r<=e}));return a=a>this.zeroScaleOffset?a-1:a,-1===a?this._selectedIcons[this._selectedIcons.length-1]:this._selectedIcons[a]}return this._selectedIcons[0]}.bind(this)}},{key:"cesiumStyleFunction",value:function(e,t){var i=this;if(!(e.length<2)){var n,r=e.length,a=this.breaks.findIndex((function(e,t){return t>i.zeroScaleOffset?r<e:r<=e}));a=a>this.zeroScaleOffset?a-1:a,n=-1===a?this._images[this._images.length-1]:this._images[a],t.billboard.setImage(this.name+a,n),t.billboard.show=!0}}},{key:"objectClickedHandler",value:function(e,t,i){var n=this;this.unSelect();var r=e.get("features");if(r&&r.length>1){this.lastClickedFeatures.splice(0),r.forEach((function(e){var t=e[_n.originalFeatureSymbol]||e,i=n.clusterLayers.find((function(e){return e.name===t.get("_layerName")})),r=t.getProperties();r.template=i&&i.featureTemplate?i.featureTemplate(r):n.defaultFeatureTemplate(r),r.template=r.template.replace(/\[br\]/g,"<br>");var a={id:t.getId()||r.id,template:r.template,_layerName:r._layerName};n.lastClickedFeatures.push(a)})),this.raiseFeatureEvent(O.CLUSTER_CLICKED,"",r,this),this.framework.getSelectBehavior().clearCurrentItem();var a=e.getGeometry().clone();return a[_n.alreadyTransformedToImage]="vcs.vcm.maps.Oblique"===this.framework.getActiveMap().className,this._resultFeature=new ol.Feature({geometry:a,features:this.lastClickedFeatures}),this._resultLayer.addFeatures([this._resultFeature]),!0}var s=r?r[0]:e,o=s[_n.originalFeatureSymbol]||s,l=this.framework.getLayerByName(o.get("_layerName"));return l.objectClickedHandler(o,t,i)}},{key:"contains",value:function(e){var t=this.clusterLayers.findIndex((function(t){return t.name===e}));return t>-1}},{key:"_handleActivation",value:function(e){var t=this,i=this.activeClusterLayers.findIndex((function(t){return t===e.name}));if(this.contains(e.name)&&-1===i&&e instanceof _n){var n=e.getSource();if("ready"===n.getState()){var r=e.name,a=n.getFeatures();a.forEach((function(e){e.set("_layerName",r,!0),e.getId()||e.setId(t.framework.getNextUniqueId())})),this.source.addFeatures(a),this.activeClusterLayers.push(r)}else n.once("change",this._handleActivation.bind(this,e))}}},{key:"_handleDeactivation",value:function(e){var t=this;if(this.contains(e.name)&&e instanceof _n){this._inactive2dClustering||this.clusterSource.setPause(!0);var i=e.getSource();i.getFeatures().forEach((function(e){t.source.removeFeature(e,!0)})),this.source.changed();var n=this.activeClusterLayers.findIndex((function(t){return t===e.name}));this.activeClusterLayers.splice(n,1),delete this.activeClusterLayersLastUpdated[e.name],this._inactive2dClustering||this.clusterSource.setPause(!1);var r=this.lastClickedFeatures.slice();this.lastClickedFeatures.splice(0),r.forEach((function(i){i._layerName!==e.name&&t.lastClickedFeatures.push(i)})),this._resultFeature&&this._resultFeature.changed()}}},{key:"_handleSelectedItemChanged",value:function(e){var t=this.lastClickedFeatures.find((function(t){return t.id===e}));e&&!t&&this.unSelect()}},{key:"postRenderStyling",value:function(){for(var e=this,t=!1,i=function(i){var n=e.activeClusterLayers[i],r=e.framework.getLayerByName(n);if(r&&(!e.activeClusterLayersLastUpdated[n]||e.activeClusterLayersLastUpdated[n]<r.featureVisibility.lastUpdated)){var a=r.getSource();a.getFeatures().forEach((function(i){e.source.getFeatureById(i.getId())?r.featureVisibility.hiddenObjects[i.getId()]&&(e.source.removeFeature(i,!0),t=!0):r.featureVisibility.hiddenObjects[i.getId()]||(e.source.addFeature(i,!0),t=!0)})),e.activeClusterLayersLastUpdated[n]=Date.now()}},n=0;n<this.activeClusterLayers.length;n++)i(n);t&&this.source.changed()}},{key:"unSelect",value:function(){this._resultFeature=null,this._resultLayer.removeAllFeatures()}},{key:"addLayers",value:function(e){this._validateLayers(Array.isArray(e)?e:[e],!0)}}]),i}(_n),fs=ms,gs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className;var r=new X(e.projection).getConfigObject();return r.alias=["http://www.opengis.net/gml/srs/epsg.xml#".concat(r.epsg.match(/\d+/)[0])],e.projection=r,n=t.call(this,e),n.featureType=Array.isArray(e.featureType)?e.featureType:[e.featureType],n.featureNS=e.featureNS,n.featurePrefix=e.featurePrefix,n.getFeaturesOptions=e.getFeatureOptions||{},n.wfsFormat=new ol.format.WFS({featureNS:n.featureNS,featureType:n.featureType}),n._dataFetchedPromise=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.WFS"}}]),Object(m["a"])(i,[{key:"fetchData",value:function(){var e=this;if(this._dataFetchedPromise)return this._dataFetchedPromise;if(null!=this.url){var t=this.wfsFormat.writeGetFeature(Object.assign({featureNS:this.featureNS,featurePrefix:this.featurePrefix,featureTypes:[this.featureType],srsName:this.projection.epsg},this.getFeaturesOptions)),i=(new XMLSerializer).serializeToString(t);return this.framework.getActiveMap().setLayerLoading(this,!0),this._dataFetchedPromise=q.a.post(this.url,i,{headers:{"Content-Type":"application/text+xml"}}).then((function(t){e.dataFetchedHandler(t.data)})).catch((function(t){return e.logger.info("Could not send request for loading layer content (".concat(t.message,")")),Promise.reject(t)})).then((function(){e.framework.getActiveMap().setLayerLoading(e,!1)})),this._dataFetchedPromise}return this.logger.warning("Could not load WFS layer, no url is set"),Promise.reject(new Error("missing url in WFS layer"))}},{key:"dataFetchedHandler",value:function(e){var t=this.wfsFormat.readFeatures(e);this.addFeatures(t)}}]),i}(_n),ys=gs;At.WMS=At.lastLayerId,At.lastLayerId+=1;var ps=["application/geojson","application/json","application/vnd.geo+json"],vs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n,r;(Object(d["a"])(this,i),e.layertype=At.WMS,e.className=i.className,e.tilingSchema=e.tilingSchema||"geographic",n=t.call(this,e),n.layers=e.layers?e.layers.split(","):[],n.version=e.version||"1.1.1",n.parameters={},e.parameters)&&("string"===typeof e.parameters?r=a["a"].parseQueryParams(e.parameters):e.parameters instanceof Object&&(r=e.parameters),Object.keys(r).forEach((function(e){n.parameters[e.toUpperCase()]=r[e]})));return null==n.parameters.TRANSPARENT&&(n.parameters.TRANSPARENT=!1),n.version&&(n.parameters.VERSION=n.version),n.parameters.LAYERS=n.layers.join(","),n.featureInfoResponseType=e.featureInfo&&e.featureInfo.responseType?e.featureInfo.responseType:null,n.featureInfoProjection=e.featureInfo&&e.featureInfo.projection?new X(e.featureInfo.projection):null,n.showFeatureInfoGeometry=!!e.featureInfo&&Object(u["e"])(e.featureInfo.showGeometry,!1),n.tileSize=e.tileSize||[256,256],n.highResolution=Object(u["e"])(e.highResolution,!1),n.featureInfoActivated=!1,n.featureInfoListenerKey=null,n.featureClickedDataHandler=n._defaultFeatureClickedDataHandler.bind(Object(gt["a"])(n)),n.featureInfoResponseFormat=n._getDefaultFeatureInfoResponseFormat(e.featureInfo?e.featureInfo.formatOptions:{}),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.Wms"}}]),Object(m["a"])(i,[{key:"activateFeatureInfo",value:function(e){if(!this.featureInfo)throw new Error("this layer does not support featureInfo request");e&&!this.featureInfoActivated?(this.featureInfoListenerKey=this.framework.subscribe(O.MAP_CLICKED,this.featureInfoHandler.bind(this)),this.featureInfoActivated=!0):!e&&this.featureInfoActivated&&this.featureInfoListenerKey&&(this.framework.unsubscribeByKey(this.featureInfoListenerKey),this.featureInfoActivated=!1,this.featureInfoListenerKey=null)}},{key:"featureInfoHandler",value:function(e){var t=this,i=this.framework.getActiveMap(),n=0;if("vcs.vcm.maps.Openlayers"===i.className)n=i.olMap.getView().getResolution()/1e5;else if("vcs.vcm.maps.Cesium"===i.className){var r=i.getViewPoint(),a=Math.PI/3,s={};s.width=this.framework.getMapContainer().offsetWidth,s.height=this.framework.getMapContainer().offsetHeight;var o=s.width/s.height,l=2*Math.atan(Math.tan(.5*a)/o),c=2*r.distance*Math.tan(l/2),u=111194.87428468118,h=Math.cos(Math.abs(Cesium.Math.toRadians(e.latitude))),d=c/u/h;n=d/s.height}var m="EPSG:4326";"1.3.0"===this.version&&(m="CRS:84");var f=[e.longitude,e.latitude];"mercator"===this.tilingSchema&&(f=$.transformTo(ee,f),m="EPSG:3857");var g=this.wmsSource.getGetFeatureInfoUrl(f,n,m,{INFO_FORMAT:this.featureInfoResponseType});g&&q.a.get(g).then((function(i){var n=i.data;t.featureClickedDataHandler(n,X.wgs84ToMercator([e.longitude,e.latitude]))}))}},{key:"_getResultLayer",value:function(){var e=this.framework.getLayerByName("_wmsResultLayer");return e||(e=new _n({projection:ee.getConfigObject(),name:"_wmsResultLayer",style:this.options.featureInfo?this.options.featureInfo.style:void 0}),e.activate(),this.framework.addLayer(e)),e}},{key:"_getDefaultFeatureInfoResponseFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"text/xml"===this.featureInfoResponseType?(e.gmlFormat=e.gmlFormat?new ol.format[e.gmlFormat]:new ol.format.GML2,new ol.format.WFS(e)):ps.includes(this.featureInfoResponseType)?new ol.format.GeoJSON(e):"application/vnd.ogc.gml"===this.featureInfoResponseType?new ol.format.GML2(e):"application/vnd.ogc.gml/3.1.1"===this.featureInfoResponseType?new ol.format.GML3(e):null}},{key:"_defaultFeatureClickedDataHandler",value:function(e,t){var i,n=this;try{i=this.featureInfoResponseFormat.readFeatures(e,{dataProjection:this.featureInfoProjection?this.featureInfoProjection.proj:void 0,featureProjection:ee.proj})}catch(o){return void this.logger.warning("Features could not be read, please verify the featureInfoResponseType with the capabilities from the server")}if(Array.isArray(i)&&i.length>=1){var r=i[0],a=r.getGeometry();if(a||r.setGeometry(new ol.geom.Point(t)),this.showFeatureInfoGeometry){var s=this._getResultLayer();s.removeAllFeatures(),s.addFeatures([r])}r[Ht.vcsLayerNameSymbol]=this.name,this.framework.publish(O.FEATURE_CLICKED,"wmsFeatureInfo",r,this),this.showFeatureInfoGeometry&&this.framework.subscribeOnce(O.SELECTED_ITEM_CHANGED,(function(){n._getResultLayer().removeFeaturesById([r.getId()])}))}}},{key:"getTilingOptions",value:function(){for(var e="geographic"===this.tilingSchema?$:ee,t=e.proj.getExtent(),i=ol.extent.getWidth(t),n="geographic"===this.tilingSchema?i/(2*this.tileSize[0]):i/this.tileSize[0],r=this.maxLevel+1,a=[],s=0;s<r;++s)a.push(n/Math.pow(2,s));var o={origin:ol.extent.getTopLeft(t),resolutions:a,tileSize:this.tileSize,minZoom:this.minLevel};return this.extent.isValid()&&(o.extent=this.extent.getCoordinatesInProjection(e)),o}},{key:"setCommonSource",value:function(){if(!this.wmsSource){var e=this.getTilingOptions(),t=new ol.tilegrid.TileGrid(e),i={url:this.url,tileGrid:t,params:this.parameters};a["a"].hasSameOrigin(this.url)||(i.crossOrigin="anonymous"),"geographic"===this.tilingSchema&&("1.3.0"===this.version?i.projection="CRS:84":i.projection="EPSG:4326"),this.wmsSource=new ol.source.TileWMS(i)}}},{key:"getGenericFeatureFromClickedObject",value:function(e){var t=e.getGeometry(),i=X.mercatorToWgs84(ol.extent.getCenter(t.getExtent())),n=e.getProperties();return delete n[e.getGeometryName()],{layerName:this.name,layerClass:this.className,attributes:Object.assign({},this._genericFeatureProperties,n),longitude:i[0],latitude:i[1],height:0,relativeToGround:!0}}},{key:"setLayers",value:function(e){o(e,[String,[String]]),this.layers=Array.isArray(e)?e:[e],this.parameters.LAYERS=this.layers.join(","),this._updateLayer()}},{key:"_updateLayer",value:function(){this.wmsSource&&(this.wmsSource.updateParams(this.parameters),this.getImplementations().forEach((function(e){e.updateLayer()})))}},{key:"dispose",value:function(){ye(Object(fe["a"])(i.prototype),"dispose",this).call(this),this.showFeatureInfoGeometry&&this._getResultLayer().dispose()}},{key:"featureInfo",get:function(){return this.featureInfoResponseType&&this.featureInfoResponseFormat&&this.featureClickedDataHandler}}]),i}(ss),_s=vs;At.WMTS=At.lastLayerId,At.lastLayerId+=1;var bs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.WMTS,e.className=i.className,e.tilingSchema=e.tilingSchema||"mercator",n=t.call(this,e),n.numberOfLevelZeroTilesX=e.numberOfLevelZeroTilesX?e.numberOfLevelZeroTilesX:1,n.numberOfLevelZeroTilesY=e.numberOfLevelZeroTilesY?e.numberOfLevelZeroTilesY:1,n.layer=e.layer||"",n.wmtsStyle=e.style||"",n.format=e.format||"",n.tileMatrixPrefix=e.tileMatrixPrefix||"",n.tileMatrixSetID=e.tileMatrixSetID||"",n.olOptions=e.ol3Options?e.ol3Options:{},n.matrixIds=e.matrixIds?e.matrixIds:null,n.tileSize=e.tileSize||[256,256],n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.Wmts"}}]),Object(m["a"])(i,[{key:"getTilingScheme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.numberOfLevelZeroTilesX&&this.numberOfLevelZeroTilesY&&(e.numberOfLevelZeroTilesX=this.numberOfLevelZeroTilesX,e.numberOfLevelZeroTilesY=this.numberOfLevelZeroTilesY),ye(Object(fe["a"])(i.prototype),"getTilingScheme",this).call(this,e)}}]),i}(ss),Ls=bs,ws=null,Ms=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){var e;Object(d["a"])(this,i),e=t.call(this,{className:i.className}),e.colorLayerMap={},e.layerLegendCanvasMap={},e.baseUrl="./images/icons.json",e.iconMap={0:{stroke:"inner_0.svg"},1:{stroke:"inner_2.svg",fill:"inner_2_fill_shaded.svg",colorizeInner:!0},2:{stroke:"inner_3.svg",fill:"inner_3_fill_white.svg",colorizeOuter:!0},3:{stroke:"inner_4.svg"},4:{stroke:"inner_1.svg",fill:"inner_1_fill_shaded.svg",colorizeInner:!0},5:{stroke:"inner_5.svg",fill:"inner_5_fill_white.svg",colorizeOuter:!0},6:{stroke:"inner_10.svg"},7:{stroke:"inner_9.svg",fill:"inner_9_fill_shaded.svg",colorizeInner:!0},8:{stroke:"inner_8.svg",fill:"inner_8_fill_white.svg",colorizeOuter:!0},9:{stroke:"inner_6.svg"},10:{stroke:"inner_12.svg",fill:"inner_12_fill_shaded.svg",colorizeInner:!0},11:{stroke:"inner_7.svg",fill:"inner_7_fill_white.svg",colorizeOuter:!0},12:{stroke:"inner_11.svg"},13:{stroke:"inner_0.svg",fill:"inner_0_fill_shaded.svg",colorizeInner:!0},14:{stroke:"inner_2.svg",fill:"inner_2_fill_white.svg",colorizeOuter:!0},15:{stroke:"inner_3.svg"},16:{stroke:"inner_4.svg",fill:"inner_4_fill_shaded.svg",colorizeInner:!0},17:{stroke:"inner_1.svg",fill:"inner_1_fill_white.svg",colorizeOuter:!0},18:{stroke:"inner_5.svg"},19:{stroke:"inner_10.svg",fill:"inner_10_fill_shaded.svg",colorizeInner:!0},20:{stroke:"inner_9.svg",fill:"inner_9_fill_white.svg",colorizeOuter:!0},21:{stroke:"inner_8.svg"},22:{stroke:"inner_6.svg",fill:"inner_6_fill_shaded.svg",colorizeInner:!0},23:{stroke:"inner_12.svg",fill:"inner_12_fill_white.svg",colorizeOuter:!0},24:{stroke:"inner_7.svg"},25:{stroke:"inner_11.svg",fill:"inner_11_fill_shaded.svg",colorizeInner:!0},26:{stroke:"inner_0.svg",fill:"inner_0_fill_white.svg",colorizeOuter:!0},27:{stroke:"inner_2.svg"},28:{stroke:"inner_3.svg",fill:"inner_3_fill_shaded.svg",colorizeInner:!0},29:{stroke:"inner_4.svg",fill:"inner_4_fill_white.svg",colorizeOuter:!0},30:{stroke:"inner_1.svg"},31:{stroke:"inner_5.svg",fill:"inner_5_fill_shaded.svg",colorizeInner:!0},32:{stroke:"inner_10.svg",fill:"inner_10_fill_white.svg",colorizeOuter:!0},33:{stroke:"inner_9.svg"},34:{stroke:"inner_8.svg",fill:"inner_8_fill_shaded.svg",colorizeInner:!0},35:{stroke:"inner_6.svg",fill:"inner_6_fill_white.svg",colorizeOuter:!0},36:{stroke:"inner_12.svg"},37:{stroke:"inner_7.svg",fill:"inner_7_fill_shaded.svg",colorizeInner:!0},38:{stroke:"inner_11.svg",fill:"inner_11_fill_white.svg",colorizeOuter:!0},39:{stroke:"inner_last.svg"}},e._svgMap={};var n=e.framework.loadLibraries(["./lib/thirdparty/canvg-1.4/rgbcolor.js","./lib/thirdparty/canvg-1.4/StackBlur.js","./lib/thirdparty/canvg-1.4/canvg.js"]),r=q.a.get(e.baseUrl).then((function(t){return e._svgMap=t.data,!0}));return e.readyPromise=Promise.all([n,r]),e.dedicatedIconMap={berlinpartner:"outerCircle.svg",sbahn:"SBahn.svg",ubahn:"UBahn.svg",haltestelle:"Haltestelle.svg",top200:"Top200.svg",gewerbeimmobilien:"GewerbeImmobilien-rot.svg"},e.width=40,e.height=44,e}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.util.IconManager"}}]),Object(m["a"])(i,[{key:"getStyleForColor",value:function(e,t,i){var n,r=this,a=ol.color.asArray(t);return a?(this.colorLayerMap[t]?-1!==this.colorLayerMap[t].indexOf(e)?n=this.colorLayerMap[t].indexOf(e):(n=this.colorLayerMap[t].length,this.colorLayerMap[t].push(e)):(this.colorLayerMap[t]=[e],n=0),n=n>39?39:n,this.readyPromise.then((function(){var t=a[0],s=a[1],o=a[2],l=[];return i?(l.push(r.createOutline(t,s,o,n,r._svgMap["outerSquare.svg"])),l.push(r.createFill(t,s,o,n,r._svgMap["innerWhiteSquare.svg"],r._svgMap["innerShadedSquare.svg"])),l.push(r.createOutline(t,s,o,n,r._svgMap["legendSquare_outer.svg"])),l.push(r.createFill(t,s,o,n,r._svgMap["legendSquare_inner_white.svg"],r._svgMap["legendSquare_inner_shaded.svg"]))):(l.push(r.createOutline(t,s,o,n,r._svgMap["outerCircle.svg"])),l.push(r.createFill(t,s,o,n,r._svgMap["innerWhiteCircle.svg"],r._svgMap["innerShadedCircle.svg"])),l.push(r.createOutline(t,s,o,n,r._svgMap["legendCircle_outer.svg"])),l.push(r.createFill(t,s,o,n,r._svgMap["legendCircle_inner_white.svg"],r._svgMap["legendCircle_inner_shaded.svg"]))),l.push(r.createInner(t,s,o,n)),Promise.all(l).then((function(t){var n=t[0],a=t[1],s=t[2],o=t[3],l=t[4],c=document.createElement("canvas");c.width=22,c.height=22;var u=c.getContext("2d");i?(u.drawImage(s,0,0,25,28,0,0,22,22),u.drawImage(o,0,0,25,28,0,0,22,22),u.drawImage(l,8,6,26,26,2.1,2.4,15,15)):(u.drawImage(o,0,0,28,28,0,0,22,22),u.drawImage(s,0,0,28,28,0,0,22,22),u.drawImage(l,8,6,26,26,3.7,2.9,15,15)),r.layerLegendCanvasMap[e]=c;var h=document.createElement("canvas");h.width=r.width,h.height=r.height;var d=h.getContext("2d");return d.drawImage(n,0,0),d.drawImage(a,0,0),i?d.drawImage(l,-.7,-.52):d.drawImage(l,0,0),h.id=e,new ol.style.Style({image:new ol.style.Icon({img:h,imgSize:[r.width,r.height],anchor:[.5,1]})})}))}))):Promise.reject(new Error("Not a valid color is provided for the layer with name ".concat(e,", no style is provided")))}},{key:"getStyleForDedicatedIcon",value:function(e,t){var i=this;return this.readyPromise.then((function(){return new Promise((function(n,r){if(t=t.toLowerCase(),i.dedicatedIconMap[t]){var a=document.createElement("canvas");a.width=i.width,a.height=i.height,canvg(a,i._svgMap.dedicatedIcons[i.dedicatedIconMap[t]],{renderCallback:function(){var t=new ol.style.Style({image:new ol.style.Icon({img:a,imgSize:[this.width,this.height],scale:.8})}),i=document.createElement("canvas");i.width=22,i.height=22;var r=i.getContext("2d");r.drawImage(a,0,0,39,44,0,0,22,22),this.layerLegendCanvasMap[e]=i,n(t)}.bind(i)})}else r(new Error("This icon is not known, please check"))}))}))}},{key:"getLegendCanvas",value:function(e){var t=this;if(this.layerLegendCanvasMap[e])return Promise.resolve(this.layerLegendCanvasMap[e]);var i=this.framework.getLayerByName(e);return i?i.dedicatedIcon?this.getStyleForDedicatedIcon(i.name,i.dedicatedIcon).then((function(){return t.getLegendCanvas(e)})):this.getStyleForColor(i.name,i.iconColor,i.useSquareShapeAsOuter).then((function(){return t.getLegendCanvas(e)})):Promise.reject(new Error("Could not find layer: ".concat(e)))}},{key:"createOutline",value:function(e,t,i,n,r){var a=this;return new Promise((function(n,s){var o=document.createElement("canvas");o.width=a.width,o.height=a.height;var l=o.getContext("2d");canvg(o,r,{renderCallback:function(){qe(l,[e,t,i,0],[this.width,this.height]),n(o)}.bind(a)})}))}},{key:"createFill",value:function(e,t,i,n,r,a){var s=this;return new Promise((function(o,l){var c=s.iconMap[n];if(c.colorizeOuter){var u=[];u.push(new Promise((function(e,t){var i=document.createElement("canvas");i.width=s.width,i.height=s.height,canvg(i,r,{renderCallback:function(){e(i)}})}))),u.push(new Promise((function(n,r){var o=document.createElement("canvas");o.width=s.width,o.height=s.height;var l=o.getContext("2d");canvg(o,a,{renderCallback:function(){qe(l,[e,t,i,0],[this.width,this.height]),n(o)}.bind(s)})}))),Promise.all(u).then((function(e){var t=e[0],i=e[1],n=document.createElement("canvas");n.width=s.width,n.height=s.height;var r=n.getContext("2d");t&&r.drawImage(t,0,0),i&&r.drawImage(i,0,0),o(n)}))}else{var h=document.createElement("canvas");h.width=s.width,h.height=s.height,canvg(h,r,{renderCallback:function(){o(h)}})}}))}},{key:"createInner",value:function(e,t,i,n){var r=this;return new Promise((function(a,s){var o=r.iconMap[n],l=[];l.push(new Promise((function(n,a){if(o.stroke){var s=document.createElement("canvas");s.width=r.width,s.height=r.height;var l=s.getContext("2d");canvg(s,r._svgMap[o.stroke],{renderCallback:function(){qe(l,[e,t,i,0],[this.width,this.height]),n(s)}.bind(r)})}else n()}))),l.push(new Promise((function(n,a){if(o.fill){var s=document.createElement("canvas");s.width=r.width,s.height=r.height;var l=s.getContext("2d");canvg(s,r._svgMap[o.fill],{renderCallback:function(){o.colorizeInner&&qe(l,[e,t,i,0],[this.width,this.height]),n(s)}.bind(r)})}else n()}))),Promise.all(l).then((function(e){var t=e[0],i=e[1],n=document.createElement("canvas");n.width=r.width,n.height=r.height;var s=n.getContext("2d");i&&s.drawImage(i,0,0),t&&s.drawImage(t,0,0),a(n)}))}))}}],[{key:"getInstance",value:function(){return ws||(ws=new i),ws}}]),i}(ve),ks=Ms;At.WSV=At.lastLayerId,At.lastLayerId+=1;var Os=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.projection={epsg:"EPSG:4326",proj4:"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs "},e.zCoordinateEyeOffset=-100,e.heightAboveGround=10,e.altitudeMode="relativeToGround",e.zIndex=e.zIndex||60,e.className=i.className,e.layertype=At.WSV,n=t.call(this,e),n.dedicatedIcon=e.dedicatedIcon||null,n.iconColor=e.iconColor||null,n.useSquareShapeAsOuter=!!e.useSquareShape,n.iconManagerInUse=!(!n.dedicatedIcon&&!n.iconColor),n.baseUrl=e.baseurl||"/wsv-live",n.name=e.name,n.logo="adf33bbe08057b9251536c73ff627f512955ffc7.png",n.scaleUnselected=n.iconManagerInUse?.8:.5,n.scaleSelected=n.iconManagerInUse?0:1,e.wsvProjection||(e.wsvProjection={proj4:"+proj=cass +lat_0=52.41864827777778 +lon_0=13.62720366666667 +x_0=40000 +y_0=10000 +ellps=bessel +datum=potsdam +units=m +no_defs",epsg:"3068"}),n.wsvProjection=new X(e.wsvProjection),n.noFilterValue=e.noFilterValue?e.noFilterValue:"Keine Angabe",n.filter=e.filter?e.filter:null,n.filterAttribute=e.filterAttribute?e.filterAttribute:"tags",n.filterAttributeName=e.filterAttributeName?e.filterAttributeName:null,n._dataFetchedPromise=null,n._initializedPromise=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.Wsv"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this._initializedPromise||(this.framework.subscribe(O.LOCALE_CHANGED,this.handleLocaleChanged,this),this._initializedPromise=this.framework.loadLibraries(["./lib/thirdparty/canvg-1.4/rgbcolor.js","./lib/thirdparty/canvg-1.4/StackBlur.js","./lib/thirdparty/canvg-1.4/canvg.js"])),this._initializedPromise.then((function(){return e.fetchData()})).then((function(){return ye(Object(fe["a"])(i.prototype),"initialize",e).call(e)}))}},{key:"fetchData",value:function(){var e=this;if(!this._dataFetchedPromise){this.framework.getActiveMap().setLayerLoading(this,!0);var t="".concat(this.baseUrl,"/api/").concat(this.framework.getLocale(),"/layer/").concat(this.name,".json");this._dataFetchedPromise=q.a.get(t).then((function(t){return e.dataFetchedHandler(t.data)})).catch((function(t){return e.logger.warning("Could not send request for loading layer content (".concat(t.message,")")),Promise.reject(t)})).then((function(){e.framework.getActiveMap().setLayerLoading(e,!1)}))}return this._dataFetchedPromise}},{key:"handleLocaleChanged",value:function(){if(this._dataFetchedPromise){var e=this.active;e&&this.deactivate(),this.removeAllFeatures(),this._dataFetchedPromise=null,e&&this.activate()}}},{key:"getFilter",value:function(){if(this.filter)return this.filter;for(var e=this.source.getFeatures(),t={},i=0;i<e.length;i++){var n=e[i].get(this.filterAttribute);if(n)if(Array.isArray(n))for(var r=0;r<n.length;r++){var a=n[r];a&&(this.filterAttributeName?t[a[this.filterAttributeName]]=!0:t[a]=!0)}else"string"===typeof n?t[n]=!0:"object"===Object(s["a"])(n)&&this.filterAttributeName&&(t[n[this.filterAttributeName]]=!0);else t[this.noFilterValue]=!0}return Object.keys(t)}},{key:"setFilter",value:function(e){this.activeFilter=e;for(var t=this.source.getFeatures(),i=0;i<t.length;i++){var n=t[i].get(this.filterAttribute),r=!1;if(n){if(Array.isArray(n))for(var a=0;a<n.length;a++)if(this.filterAttributeName){if(n[a][this.filterAttributeName]){var o=e.indexOf(n[a][this.filterAttributeName]);if(o>-1){r=!0;break}}}else{var l=e.indexOf(n[a]);if(l>-1){r=!0;break}}else if("string"===typeof n){var c=e.indexOf(n);if(c>-1){r=!0;break}}else if("object"===Object(s["a"])(n)&&this.filterAttributeName){var u=e.indexOf(n[this.filterAttributeName]);if(u>-1){r=!0;break}}}else{var h=e.indexOf(this.noFilterValue);h>-1&&(r=!0)}r?t[i].setGeometryName("geometry"):t[i].setGeometryName("hidden")}}},{key:"dataFetchedHandler",value:function(e){var t=this;try{return e?(e.logo&&(this.logo=this.baseUrl+e.logo),e.name&&(this.options.title=e.name),e.category&&(this.options.category=e.category),this._createStyle().then((function(){var i=e.locations;if(i){var n=[];i.forEach((function(e){var i=t._createLocation(e);i&&n.push(i)})),t.addFeatures(n)}return t.activeFilter&&t.setFilter(t.activeFilter),!0}))):Promise.resolve()}catch(i){return this.logger.warning("Could not load WSV json: ".concat(i.message)),Promise.reject(i)}}},{key:"_createStyle",value:function(){var e,t=this;return this.iconManagerInUse?(e=this.dedicatedIcon?ks.getInstance().getStyleForDedicatedIcon(this.name,this.dedicatedIcon):ks.getInstance().getStyleForColor(this.name,this.iconColor,this.useSquareShapeAsOuter),e.then((function(e){e.getImage().setScale(t.scaleUnselected),t.setStyle(e);var i=e.clone();return i.getImage().setOpacity(0),t.setHighlightStyle(i),!0}))):(this.setStyle(new ol.style.Style({image:new ol.style.Icon({src:this.logo,scale:this.scaleUnselected})})),this.setHighlightStyle(new ol.style.Style({image:new ol.style.Icon({src:this.logo,scale:this.scaleSelected})})),Promise.resolve())}},{key:"_createLocation",value:function(e){if(!e.address||!e.address.x||!e.address.y||!e.name||!e.id)return!1;var t="&amp;",i=/&(?!([a-zA-Z0-9]+|#([0-9]+|x[A-Z0-9]+));)/g,n=new ol.Feature;e.id="".concat(this.name,"_").concat(e.id),n.setId(e.id),n.setProperties({name:e.name.replace(i,t)});var r=this.wsvProjection.transformTo(this.projection,[e.address.x,e.address.y]),a=new ol.geom.Point(r);if(this.extent.isValid()){var s=a.clone();if(s.transform(ol.proj.get("EPSG:4326"),this.extent.projection.proj),!s.intersectsExtent(this.extent.extent))return!1}return n.setGeometry(a),n.setProperties(e),e.logo&&(n.setProperties({logo:this.baseUrl+e.logo}),e.logosize&&e.logosize.width&&e.logosize.height&&(n.setProperties({width:e.logosize.width}),n.setProperties({height:e.logosize.height}))),e.address&&e.address.city?n.setProperties({city:e.address.city.replace(i,t)}):n.setProperties({city:""}),e.address&&e.address.zip?n.setProperties({zip:e.address.zip}):n.setProperties({zip:""}),e.address&&e.address.street?n.setProperties({street:e.address.street.replace(i,t)}):n.setProperties({street:""}),e.contact&&e.contact.website?n.setProperties({website:e.contact.website}):n.setProperties({website:""}),n.setProperties({placemarkurl:"".concat(this.baseUrl,"/").concat(this.framework.getLocale(),"/location/").concat(e.id)}),this.options.title&&n.setProperties({layername:this.options.title}),this.options.category&&n.setProperties({category:this.options.category}),n}}]),i}(_n),Ts=Os;function Ss(e,t,i,n){return Ss="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(e,t,i,n){var r,a=ge(e,t);if(a){if(r=Object.getOwnPropertyDescriptor(a,t),r.set)return r.set.call(n,i),!0;if(!r.writable)return!1}if(r=Object.getOwnPropertyDescriptor(n,t),r){if(!r.writable)return!1;r.value=i,Object.defineProperty(n,t,r)}else Object(U["a"])(n,t,i);return!0},Ss(e,t,i,n)}function Cs(e,t,i,n,r){var a=Ss(e,t,i,n||e);if(!a&&r)throw new Error("failed to set property");return i}var js=k.getLogger("vcs.vcm.layer.FeatureStoreChanges"),Es=function(){function e(t){Object(d["a"])(this,e),this.layer=t,this._changesListeners={addfeature:null,changefeature:null,removefeature:null},this._addedFeatures=new Set,this._editedFeatures=new Set,this._removedFeatures=new Set,this._convertedFeatures=new Set,this.values={changed:!1}}return Object(m["a"])(e,[{key:"track",value:function(){null===this._changesListeners.addfeature&&(this._changesListeners.addfeature=this.layer.source.on("addfeature",this._featureAdded.bind(this))),null===this._changesListeners.changefeature&&(this._changesListeners.changefeature=this.layer.source.on("changefeature",this._featureChanged.bind(this))),null===this._changesListeners.removefeature&&(this._changesListeners.removefeature=this.layer.source.on("removefeature",this._featureRemoved.bind(this)))}},{key:"getChanges",value:function(){return{add:Object(g["a"])(this._addedFeatures),edit:Object(g["a"])(this._editedFeatures),remove:Object(g["a"])(this._removedFeatures)}}},{key:"commitChanges",value:function(e){var t=this,i=[];this._addedFeatures.forEach((function(e){var t=tr(e,{writeStyle:!0});i.push({action:"add",feature:t,original:e,success:function(t){e.setId(t),e[Rn]=Hn.DYNAMIC}})})),this._editedFeatures.forEach((function(e){var t=tr(e,{writeStyle:!0});t._id=e.getId(),t.geomety="test",i.push({action:"edit",original:e,feature:t,success:function(){e[Rn]===Hn.STATIC&&(e[Rn]=Hn.EDITED)}})})),this._removedFeatures.forEach((function(e){var t=e.getId();i.push({original:e,action:"remove",feature:{_id:t},success:function(){}})}));var n=Promise.resolve();return i.length&&(n=q.a.post(e.toString(),i.map((function(e){return{action:e.action,feature:e.feature}}))).then((function(e){var n=e.data,r=n.failedActions.map((function(e){var n=e.index,r=e.error,a=i[n];return js.log("failed action ".concat(a.action,": ").concat(r)),i[n]=null,t._resetFeature(a.original)}));return i.filter((function(e){return e})).forEach((function(e){var t=e.action,i=e.success;"add"===t?i(n.insertedIds.shift()._id):i()})),Promise.all(r)}))),n.then((function(){var e=[];t._convertedFeatures.forEach((function(i){e.push(t._resetFeature(i))})),Promise.all(e)})).then((function(){t._resetValues()})).catch((function(e){t._resetValues(),js.error(e.message)}))}},{key:"reset",value:function(){var e=this,t=[];return this._addedFeatures.forEach((function(i){t.push(e._resetFeature(i))})),this._editedFeatures.forEach((function(i){t.push(e._resetFeature(i))})),this._removedFeatures.forEach((function(i){t.push(e._resetFeature(i))})),this._convertedFeatures.forEach((function(i){t.push(e._resetFeature(i))})),Promise.all(t).then((function(){e._resetValues()})).catch((function(t){js.error(t),e._resetValues()}))}},{key:"_resetFeature",value:function(e){var t=this,i=[e.getId()];return e[Rn]?e[Rn]===Hn.STATIC?(this.layer.removeFeaturesById(i),this.layer.hiddenStaticFeatureIds.delete(e.getId()),this.layer.showObjects(i),Promise.resolve()):this.layer.injectedFetchDynamicFeatureFunc(e.getId()).then((function(e){var n=er(e),r=n.features;t.layer.removeFeaturesById(i),t.layer.addFeatures(r)})).catch((function(e){js.error("failed to reset feature, giving up",e.message)})):(this.layer.removeFeaturesById(i),Promise.resolve())}},{key:"_resetValues",value:function(){this._addedFeatures.clear(),this._editedFeatures.clear(),this._removedFeatures.clear(),this._convertedFeatures.clear(),this.values.changed=!1}},{key:"unTrack",value:function(){ol.Observable.unByKey(Object.values(this._changesListeners)),this._changesListeners.addfeature=null,this._changesListeners.changefeature=null,this._changesListeners.removefeature=null,this._resetValues()}},{key:"pauseTracking",value:function(e){this._changesListeners[e]&&(ol.Observable.unByKey(this._changesListeners[e]),this._changesListeners[e]=null)}},{key:"_featureAdded",value:function(e){var t=e.feature;t[Rn]?t[Rn]===Hn.STATIC&&(this._convertedFeatures.add(t),this.values.changed=!0):(this._addedFeatures.add(t),this.values.changed=!0)}},{key:"_featureChanged",value:function(e){var t=e.feature;t[Rn]&&(this._convertedFeatures.delete(t),this._editedFeatures.add(t),this.values.changed=!0)}},{key:"_featureRemoved",value:function(e){var t=e.feature;t[Rn]?(this._removedFeatures.add(t),this._editedFeatures.delete(t),this._convertedFeatures.delete(t),this.values.changed=!0):this._addedFeatures.delete(t)}},{key:"removeFeature",value:function(e){o(e,ol.Feature),this._featureRemoved({feature:e})}},{key:"addFeature",value:function(e){o(e,ol.Feature),this._featureAdded({feature:e})}},{key:"editFeature",value:function(e){o(e,ol.Feature),this._featureChanged({feature:e})}},{key:"dispose",value:function(){this.unTrack(),this.layer=null}},{key:"active",get:function(){return Object.values(this._changesListeners).some((function(e){return null!==e}))}}]),e}(),Is=Es;At.FEATURESTORE=At.lastLayerId,At.lastLayerId+=1;var Ds=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i);var r=Object.assign({altitudeMode:"clampToGround",layerType:At.FEATURESTORE,className:i.className,projection:ee.getConfigObject()},e);if(n=t.call(this,r),n.extent.projection=ee,n.layerId=e.id,n.staticRepresentation=e.staticRepresentation||{},n.hiddenStaticFeatureIds=new Set(e.hiddenStaticFeatureIds||[]),n.changeTracker=new Is(Object(gt["a"])(n)),n.vcsMeta=e.vcsMeta||{},n.setVcsMeta(n.vcsMeta),n.injectedFetchDynamicFeatureFunc=e.injectedFetchDynamicFeatureFunc,n._staticFeaturesLayer=new or({cesiumTilesetLayerOptions:{url:n.staticRepresentation.threeDim,screenSpaceError:n.vcsMeta.screenSpaceError?n.vcsMeta.screenSpaceError:4},openlayersTiledLayerOptions:n.staticRepresentation.twoDim?{url:n.staticRepresentation.twoDim}:void 0,name:n.name,style:n.style,genericFeatureProperties:n._genericFeatureProperties}),n._setEditing=null,e.features){var a={type:"FeatureCollection",features:e.features,vcsMeta:e.vcsMeta},s=er(a,{targetProjection:ee,dynamicStyle:!0}),o=s.style,l=s.features;o&&(n.defaultStyle=o,n._staticFeaturesLayer.defaultStyle=o,n.setStyle(o)),n.addFeatures(l)}return n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.FeatureStore"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.initialized?ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){return e._staticFeaturesLayer.initialize()})):ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){return e._staticFeaturesLayer.initialize()})).then((function(){e._hideDynamicFeatures()}))}},{key:"getVcsMeta",value:function(e){var t=ye(Object(fe["a"])(i.prototype),"getVcsMeta",this).call(this,e);return t}},{key:"synchronizeImplementations",value:function(e,t){var n=this;return ye(Object(fe["a"])(i.prototype),"synchronizeImplementations",this).call(this,e,t).then((function(){return n._staticFeaturesLayer.synchronizeImplementations(e,t)}))}},{key:"_hideDynamicFeatures",value:function(){var e=[];this.hiddenStaticFeatureIds.forEach((function(t){e.push(t)})),this._staticFeaturesLayer.hideObjects(e)}},{key:"setSyncing",value:function(){ye(Object(fe["a"])(i.prototype),"setSyncing",this).call(this),this._staticFeaturesLayer.setSyncing()}},{key:"activate",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null!=t&&this.logger.deprecate("activate","activate no longer accepts an argument, use deactivate to deactivate the layer"),!1!==t){e.next=4;break}return this.deactivate(),e.abrupt("return");case 4:if(this.isSupported()){e.next=6;break}return e.abrupt("return");case 6:if(this._state&Yt.CANCELED&&this.setStateLoading(),!this._loadingPromise){e.next=11;break}return e.next=10,this._loadingPromise;case 10:return e.abrupt("return");case 11:return e.next=13,ye(Object(fe["a"])(i.prototype),"activate",this).call(this);case 13:if(!this.active){e.next=17;break}return e.next=16,this._staticFeaturesLayer.activate();case 16:this._setEditing&&this.setEditing(this._setEditing.symbol,this._setEditing.featureType);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this._staticFeaturesLayer.deactivate()}},{key:"setStyle",value:function(e,t){var n=this.changeTracker.active;n&&this.changeTracker.pauseTracking("changefeature"),ye(Object(fe["a"])(i.prototype),"setStyle",this).call(this,e,t),this._staticFeaturesLayer.setStyle(e,t),n&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"getFeatureExtent",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getFeatureExtent",this).call(this);if(this._staticFeaturesLayer.initialized){var t=this._staticFeaturesLayer.getFeatureExtent();ol.extent.extend(e.extent,t.extent)}return e}},{key:"setEditing",value:function(e,t){var i=this.framework.getMapByType("vcs.vcm.maps.Cesium");if(this._staticFeaturesLayer.setEditing(e,t),i){var n=this._staticFeaturesLayer.getImplementation(i);n.initialized?(null!=t?n.cesium3DTileset[e]=t:delete n.cesium3DTileset[e],this._setEditing=null):this._setEditing={symbol:e,featureType:t}}}},{key:"hideObjects",value:function(e){ye(Object(fe["a"])(i.prototype),"hideObjects",this).call(this,e),this._staticFeaturesLayer.hideObjects(e)}},{key:"showObjects",value:function(e){var t=this;ye(Object(fe["a"])(i.prototype),"showObjects",this).call(this,e);var n=e.filter((function(e){return!t.hiddenStaticFeatureIds.has(e)}));this._staticFeaturesLayer.showObjects(n)}},{key:"clearHiddenObjects",value:function(){ye(Object(fe["a"])(i.prototype),"clearHiddenObjects",this).call(this),this._staticFeaturesLayer.clearHiddenObjects(),this._hideDynamicFeatures()}},{key:"highlight",value:function(e){ye(Object(fe["a"])(i.prototype),"highlight",this).call(this,e),this._staticFeaturesLayer.highlight(e)}},{key:"unHighlight",value:function(e){ye(Object(fe["a"])(i.prototype),"unHighlight",this).call(this,e),this._staticFeaturesLayer.unHighlight(e)}},{key:"clearHighlighting",value:function(){ye(Object(fe["a"])(i.prototype),"clearHighlighting",this).call(this),this._staticFeaturesLayer.clearHighlighting()}},{key:"objectClickedHandler",value:function(e,t,n){return e[ar]?this._staticFeaturesLayer.objectClickedHandler(e,t,n||this):e instanceof ol.Feature&&ye(Object(fe["a"])(i.prototype),"objectClickedHandler",this).call(this,e,t,n||this)}},{key:"getGenericFeatureFromClickedObject",value:function(e){if(e instanceof ol.Feature)return ye(Object(fe["a"])(i.prototype),"getGenericFeatureFromClickedObject",this).call(this,e);var t=this._staticFeaturesLayer.getGenericFeatureFromClickedObject(e);return t.layerName=this.name,t.layerClass=this.className,t}},{key:"determineHighlightStyle",value:function(e,t){var n=this.getFeatureById(e);return n||t instanceof ol.Feature?ye(Object(fe["a"])(i.prototype),"determineHighlightStyle",this).call(this,e,t):this._staticFeaturesLayer.determineHighlightStyle(e,t)}},{key:"setMaximumScreenSpaceError",value:function(e){this._staticFeaturesLayer.setMaximumScreenSpaceError(e)}},{key:"switchStaticFeatureToDynamic",value:function(e){var t=this;return this.hiddenStaticFeatureIds.has(e)?Promise.resolve(this.getFeatureById(e)):this.injectedFetchDynamicFeatureFunc?this.injectedFetchDynamicFeatureFunc(e).then((function(i){var n=er(i,{targetProjection:ee,defaultStyle:t.defaultStyle instanceof dt?t.defaultStyle:mt}),r=n.features;return t._staticFeaturesLayer.hideObjects([e]),t.hiddenStaticFeatureIds.add(e),t.addFeatures(r),r[0]})).catch((function(e){t.logger.error(e.message)})):Promise.reject(new Error("no injected fetching function"))}},{key:"removeStaticFeature",value:function(e){this._staticFeaturesLayer.hideObjects([e]),this.hiddenStaticFeatureIds.add(e);var t=new ol.Feature;t.setId(e),t[Rn]=Hn.STATIC,this.changeTracker.removeFeature(t)}},{key:"dispose",value:function(){this.removeAllFeatures(),this._staticFeaturesLayer.dispose(),this.changeTracker.dispose(),ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}},{key:"altitudeMode",get:function(){return this._altitudeMode},set:function(e){var t=this.changeTracker.active;t&&this.changeTracker.pauseTracking("changefeature"),Cs(Object(fe["a"])(i.prototype),"altitudeMode",e,this,!0),t&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"skirt",get:function(){return this._skirt},set:function(e){var t=this.changeTracker.active;t&&this.changeTracker.pauseTracking("changefeature"),Cs(Object(fe["a"])(i.prototype),"skirt",e,this,!0),t&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"storeyHeight",get:function(){return this._storeyHeight},set:function(e){var t=this.changeTracker.active;t&&this.changeTracker.pauseTracking("changefeature"),Cs(Object(fe["a"])(i.prototype),"storeyHeight",e,this,!0),t&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"classificationType",get:function(){return this._classificationType},set:function(e){var t=this.changeTracker.active;t&&this.changeTracker.pauseTracking("changefeature"),Cs(Object(fe["a"])(i.prototype),"classificationType",e,this,!0),t&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"screenSpaceErrorMobile",get:function(){return this._staticFeaturesLayer.screenSpaceErrorMobile}},{key:"screenSpaceError",get:function(){return this._staticFeaturesLayer.screenSpaceError}}]),i}(_n),Ps=Ds;O.WIDGET_ACTIVATED="WIDGET_ACTIVATED",O.WIDGET_DEACTIVATED="WIDGET_DEACTIVATED",O.WIDGET_STATE_CHANGED="WIDGET_STATE_CHANGED";var As,xs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),n=t.call(this,e);var r=i.getDefaultOptions();return n.supportedMaps=e.supportedMaps?e.supportedMaps:r.supportedMaps,n.initializeKey=null,n.initialized=!1,n.active=!1,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return{supportedMaps:["ALL"]}}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){if("ALL"===this.supportedMaps[0])return!0;var e=this.framework.getActiveMap();return this.isSupported(e)?(this.initializeKey&&this.framework.unsubscribeByKey(this.initializeKey),this.framework.subscribe(O.MAP_ACTIVATED,this.handleMapChangeEvent.bind(this)),!0):(this.initializeKey||(this.initializeKey=this.framework.subscribe(O.MAP_ACTIVATED,this.initialize.bind(this))),!1)}return!0}},{key:"initializedFinished",value:function(){"ALL"!==this.supportedMaps[0]&&this.handleMapChangeEvent(this.framework.getActiveMap())}},{key:"dispose",value:function(){}},{key:"isActive",value:function(){return this.logger.deprecate("isActive","please use the property .active directly"),this.active}},{key:"activate",value:function(){this.active||(this.active=!0,this.framework.publish(O.WIDGET_ACTIVATED,this))}},{key:"deactivate",value:function(){this.active&&(this.active=!1,this.framework.publish(O.WIDGET_DEACTIVATED,this))}},{key:"handleURLParameter",value:function(e){}},{key:"getLink",value:function(e){}},{key:"isSupported",value:function(e){o(e,[Le,String]);var t=e instanceof Le?e.className:e;return"ALL"===this.supportedMaps[0]||-1!==this.supportedMaps.indexOf(t)}},{key:"getSupportedMaps",value:function(){return this.supportedMaps}},{key:"handleMapChangeEvent",value:function(e){this.isSupported(e)?this.framework.publish(O.WIDGET_STATE_CHANGED,this):(this.framework.publish(O.WIDGET_STATE_CHANGED,this),this.deactivate())}},{key:"isInitialized",value:function(){return this.logger.deprecate("isInitialized","access the initialized property directly."),this.initialized}}]),i}(ve),Ys=xs,Ns=k.getLogger("vcs.vcm.widgets.legend.TreeItem"),Fs={ACTIVE:"active",INACTIVE:"inactive",LOADING:"loading",INDETERMINATE:"indeterminate"},Rs=function(){function e(t){Object(d["a"])(this,e),this.className=t.className,this.titleObject=t.title,this.infoUrl=t.infoUrl?t.infoUrl:null,this.infoUrlTarget=t.infoUrlTarget?t.infoUrlTarget:null,this.viewpointName=t.viewpointName?t.viewpointName:null,this.level=0,this.visible=!1,this.disabled=!1,this.id=t.name||Object(u["c"])(),this.focus=!1,this.initialized=!1,this.showInLegendIfDisabled=Object(u["e"])(t.showInLegendIfDisabled,!0),this.icon=t.icon||null}return Object(m["a"])(e,[{key:"initialize",value:function(e){return this.initialized||(this.level=e),!0}},{key:"isIconManagerInUse",value:function(){return!1}},{key:"isInitialized",value:function(){return Ns.deprecate("isInitialized","access the property .initialized directly."),this.initialized}},{key:"activate",value:function(e,t){return Promise.resolve()}},{key:"mapChanged",value:function(e){}},{key:"layerChanged",value:function(e){}},{key:"getViewPoint",value:function(){return Ns.deprecate("getViewPoint","use goToViewpoint instead or access the .viewpointName property."),this.viewpointName?G.getInstance().getViewPointByName(this.viewpointName):null}},{key:"gotoViewpoint",value:function(){if(this.viewpointName){var e=G.getInstance(),t=e.getViewPointByName(this.viewpointName);t&&e.getActiveMap().gotoViewPoint(t)}}}]),e}(),Hs=Rs,Gs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;if(Object(d["a"])(this,i),n=t.call(this,e),n.factory=e.factory,n.startopen=Object(u["e"])(e.startOpen,!1),n.clickable=Object(u["e"])(e.clickable,!0),n.open=n.startopen,n.children=[],n.state=Fs.INACTIVE,Array.isArray(e.children)){for(var r=e.children,a=0;a<r.length;a++){var s=r[a],o=n.factory(s);o&&o instanceof Hs&&n.children.push(o)}if(e.clusterIcons){var l=[],c=function e(t){t.children?t.children.forEach(e):l.push({name:t.layerName,title:t.title,parent:{id:n.id,title:n.titleObject}})};if(r.forEach(c),"string"===typeof e.clusterIcons){var h=G.getInstance(),m=h.getLayerByName(e.clusterIcons);m&&m instanceof fs?m.addLayers(l):h.addLayer(new fs({name:e.clusterIcons,clusterLayers:l,activeOnStartup:!0}))}}}return n}return Object(m["a"])(i,[{key:"initialize",value:function(e){var t=this;if(!this.initialized){if(!ye(Object(fe["a"])(i.prototype),"initialize",this).call(this,e))return!1;var n=[];this.children.forEach((function(e,i){e.initialize(t.level+1)||n.push(i)}));for(var r=n.length-1;r>-1;r--)this.children.splice(n[r],1)}return!0}},{key:"setState",value:function(){if(this.visible){var e=null,t=function(t){t.visible&&t.state&&(e?e===Fs.ACTIVE||e===Fs.INACTIVE?e!==t.state&&(e=t.state===Fs.LOADING?t.state:Fs.INDETERMINATE):e===Fs.INDETERMINATE&&t.state===Fs.LOADING&&(e=t.state):e=t.state)};this.children.forEach(t),this.state=e}}},{key:"activate",value:function(e,t){var i=this.children.map((function(t){return t.activate(e,!0)}));return this.setState(),e&&!t&&this.gotoViewpoint(),Promise.all(i)}},{key:"mapChanged",value:function(e){this.children.forEach((function(t){t.mapChanged(e)}),this),this.visible=!!this.children.find((function(e){return e.visible})),this.setState()}},{key:"layerChanged",value:function(e){this.children.forEach((function(t){t.layerChanged(e)}),this),this.visible=!!this.children.find((function(e){return e.visible})),this.setState()}}]),i}(Hs),zs=Gs,Bs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.startopen=!0,n.clickable=!1,n.open=!0,n.breakAfter=!!e.breakAfter,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.ClusterItem"}}]),i}(zs),Vs=Bs,Us=k.getLogger("vcs.vcm.widgets.legend.LayerItem"),Ws=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.layerName=e.layerName?e.layerName:"",n.state=Fs.INACTIVE,n.activeStyleName=null,n.hasFeatureListView=!1,n._styleListener=null,n}return Object(m["a"])(i,[{key:"initialize",value:function(e){if(!this.initialized){if(!ye(Object(fe["a"])(i.prototype),"initialize",this).call(this,e))return!1;var t=G.getInstance().getLayerByName(this.layerName);if(!t)return Us.warning("Could not find Layer with name ".concat(this.layerName," Legend LayerItem for layer ").concat(this.layerName," is not shown")),this.visible=!1,!1;this.activeStyleName=t.style?t.style.name:null,this._styleListener=t.styleChanged.addEventListener(this._styleChangedHandler,this),this.initialized=!0}return!0}},{key:"_styleChangedHandler",value:function(e){this.activeStyleName!==e.name&&(this.activeStyleName=e.name)}},{key:"layerChanged",value:function(e){e.name===this.layerName&&this.setState()}},{key:"mapChanged",value:function(e){var t=G.getInstance().getLayerByName(this.layerName);t&&(this.visible=t.isSupported(e),this.setState())}},{key:"setState",value:function(){if(this.visible){var e=G.getInstance().getLayerByName(this.layerName);e&&(e.active?this.state=Fs.ACTIVE:e.loading?this.state=Fs.LOADING:this.state=Fs.INACTIVE)}}},{key:"activate",value:function(e,t){var i=this,n=G.getInstance().getLayerByName(this.layerName);if(n&&n.isSupported()&&(n.active||n.loading)!==e){var r=Promise.resolve();return e?(this.state=Fs.LOADING,r=n.activate()):n.deactivate(),r.then((function(){i.setState(),e&&!t&&i.gotoViewpoint()})).catch((function(){i.visible=!1}))}return Promise.resolve()}},{key:"isIconManagerInUse",value:function(){var e=G.getInstance().getLayerByName(this.layerName);return e&&e.iconManagerInUse}},{key:"destroy",value:function(){this._styleListener&&(this._styleListener(),this._styleListener=null)}}]),i}(Hs),qs=Ws,Js=k.getLogger("vcs.vcm.widgets.legend.LayerItem"),Ks=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.availableStyles=e.availableStyles||[],e.styles&&(Js.deprecate("styles","define styles in the config and add their names as availableStyles, do not define them in the LayerItem config"),e.styles.forEach((function(e){e.name||("string"===typeof e.title?e.name=e.title:e.name=Object(u["c"])()),G.getInstance().addStyle(new Ct(e)),n.availableStyles.push(e.name)}))),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.LayerItem"}}]),i}(qs),Zs=Ks,Qs=k.getLogger("vcs.vcm.widgets.legend.GroupLayerItem"),Xs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.layerNames=e.layerNames||e.layerName||[],e.layerName&&Qs.deprecate("option.layerName","Use option.layerNames instead"),n.state=Fs.INACTIVE,n.availableStyles=e.availableStyles||[],n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.GroupLayerItem"}}]),Object(m["a"])(i,[{key:"initialize",value:function(e){var t=this;if(!this.initialized){ye(Object(fe["a"])(i.prototype),"initialize",this).call(this,e);var n,r=G.getInstance(),a=[],s=this.layerNames.every((function(e){var i=r.getLayerByName(e);return i?(a.push(i),n?n=!(!i.style||i.style.name!==n)&&n:!1!==n&&(n=!!i.style&&i.style.name),t.activeStyleName=n,!0):(Qs.warning("Could not find Layer with name ".concat(e," Legend GroupLayerItem is not shown")),!1)}));if(!s)return!1;this.visible=a.some((function(e){return e.isSupported()})),this.state=a.every((function(e){return e.active||e.activeOnStartup}))?Fs.ACTIVE:Fs.INACTIVE}return!0}},{key:"activate",value:function(e,t){var i=this;if(this.setState(),this.state!==Fs.ACTIVE&&e||!e){var n=G.getInstance();this.state=e?Fs.LOADING:Fs.INACTIVE;var r=this.layerNames.map((function(e){return n.getLayerByName(e)})).map((function(t){return e?t.activate():(t.deactivate(),Promise.resolve())}));return e&&!t&&this.gotoViewpoint(),Promise.all(r).then((function(){i.state=Fs.INDETERMINATE,i.setState()}))}return Promise.resolve()}},{key:"setState",value:function(){var e=G.getInstance(),t=this.layerNames.map((function(t){return e.getLayerByName(t)})).filter((function(e){return e.isSupported()})).map((function(e){return e.active}));(this.state!==Fs.LOADING||t.every((function(e){return e})))&&(t.every((function(e){return e}))?this.state=Fs.ACTIVE:t.some((function(e){return e}))?this.state=Fs.INDETERMINATE:this.state=Fs.INACTIVE)}},{key:"mapChanged",value:function(e){var t=G.getInstance();this.visible=this.layerNames.map((function(e){return t.getLayerByName(e)})).some((function(t){return t.isSupported(e)})),this.visible&&this.state===Fs.ACTIVE&&this.activate(!0)}},{key:"layerChanged",value:function(e){if(this.visible&&this.layerNames.includes(e.name)){if(this.state===Fs.ACTIVE||this.state===Fs.LOADING)return void this.setState();var t=G.getInstance(),i=this.layerNames.map((function(e){return t.getLayerByName(e)})).every((function(e){return e.initialized&&!e.active||!e.initialized&&!e.activeOnStartup}));i&&this.setState()}}}]),i}(Hs),$s=Xs,eo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.GroupItem"}}]),i}(zs),to=eo,io=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.name=e.name,n.id=e.id||Fn()(),n.plugin=e.plugin,n.config=e.config||{},n.visible=!0,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.PluginItem"}}]),i}(Hs),no=io,ro=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.layerNames=e.layerNames||[],n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.ViewpointItem"}}]),Object(m["a"])(i,[{key:"initialize",value:function(e){if(!this.initialized){if(!ye(Object(fe["a"])(i.prototype),"initialize",this).call(this,e))return!1;this.viewpointName&&(this.visible=!!G.getInstance().getViewPointByName(this.viewpointName))}return!0}},{key:"activate",value:function(e,t){return t||!e?Promise.resolve():(this.gotoViewpoint(),Promise.all(this.layerNames.map((function(e){var t=G.getInstance().getLayerByName(e);return t?t.activate():Promise.resolve()}))))}}]),i}(Hs),ao=ro,so=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.planningInstance=e.planningInstance,n.titleObject=n.planningInstance.name,n.visible=!0,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.PlanningInstanceItem"}}]),i}(Hs),oo=so,lo=i(175),co=k.getLogger("vcs.vcm.widgets.legend.PlanningClusterItem"),uo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),As?(co.warning("trying to instanciate PlanningClusterItem more then once!"),Object(lo["a"])(n,As)):(n=t.call(this,e),As=Object(gt["a"])(n),n)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.PlanningClusterItem"}}]),Object(m["a"])(i,[{key:"destroy",value:function(){As=void 0}}]),i}(Vs),ho=uo;function mo(){return As}var fo,go=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.flightInstance=e.flightName?G.getInstance().getFlightByName(e.flightName):e.flightInstance,n.titleObject=e.title||n.flightInstance.name,n.allowPlayer=Object(u["e"])(e.allowPlayer,!1),n.visible=!0,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.FlightInstanceItem"}}]),Object(m["a"])(i,[{key:"mapChanged",value:function(e){this.visible=e instanceof Ut}}]),i}(Hs),yo=go,po=k.getLogger("vcs.vcm.widgets.legend.StyledLayerItem"),vo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.styleName=e.styleName,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.StyledLayerItem"}}]),Object(m["a"])(i,[{key:"initialize",value:function(e){var t=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this,e);if(t){var n=G.getInstance().getStyleByName(this.styleName);if(!n)return this.visible=!1,this.initialized=!1,po.warning("cannot created styled layer item for layer ".concat(this.layerName,". style ").concat(this.styleName," cannot be found")),!1}return t}},{key:"_styleChangedHandler",value:function(e){this.activeStyleName!==e.name&&(ye(Object(fe["a"])(i.prototype),"_styleChangedHandler",this).call(this,e),this.setState())}},{key:"setState",value:function(){this.activeStyleName===this.styleName||this.state===Fs.LOADING?ye(Object(fe["a"])(i.prototype),"setState",this).call(this):this.state=Fs.INACTIVE}},{key:"activate",value:function(e,t){var n=this;return ye(Object(fe["a"])(i.prototype),"activate",this).call(this,e,t).then((function(){var e=G.getInstance().getLayerByName(n.layerName);e.setStyle(n.styleName)}))}}]),i}(qs),_o=vo;O.LEGEND_INITIALIZED="LEGEND_INITIALIZED";var bo=(fo={},Object(U["a"])(fo,Vs.className,Vs),Object(U["a"])(fo,Zs.className,Zs),Object(U["a"])(fo,$s.className,$s),Object(U["a"])(fo,to.className,to),Object(U["a"])(fo,no.className,no),Object(U["a"])(fo,oo.className,oo),Object(U["a"])(fo,ao.className,ao),Object(U["a"])(fo,yo.className,yo),Object(U["a"])(fo,ho.className,ho),Object(U["a"])(fo,_o.className,_o),fo),Lo=k.getLogger("vcs.vcm.widgets.legend.Legend");function wo(e){if(!e.type)return Lo.warning("Need a type to instanciate a Legend Entry"),null;var t=bo[e.type];return t?(e.factory=wo,new t(e)):(Lo.warning("could not find constructor for ".concat(e.type)),null)}var Mo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.cluster=[],n.level=-1;var a=[];if(Array.isArray(e.children))for(var s=e.children,o=0;o<s.length;o++){var l=s[o];if(l.type&&l.type===Vs.className){var c=wo(l);c&&c instanceof Vs&&n.cluster.push(c)}else a.push(l)}if(a.length>0){var h=new Vs({children:a,factory:wo});n.cluster.push(h)}n.layerTitles={};var m=function e(t){t.children?t.children.forEach(e,this):t.layerName&&(this.layerTitles[t.layerName]=t.titleObject)};return n.cluster.forEach(m,Object(gt["a"])(n)),n.zoomToFirstLayer=Object(u["e"])(e.zoomToFirstLayer,r.zoomToFirstLayer),n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{children:[],zoomToFirstLayer:!1})}},{key:"className",get:function(){return"vcs.vcm.widgets.legend.Legend"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;this.cluster.forEach((function(e){e.initialize(this.level)}),this);var t=this.framework.getActiveMap();this.cluster.forEach((function(e){e.mapChanged(t)}),this),this.initialized=!0,this.framework.publish(O.LEGEND_INITIALIZED,this),this.framework.subscribe(O.MAP_ACTIVATED,this.mapChanged.bind(this)),this.framework.subscribe(O.LAYER_CHANGED,this.layerChanged.bind(this)),this.framework.subscribe(O.PLANNINGINSTANCES_CHANGED,this.layerChanged.bind(this,{}))}}},{key:"handleURLParameter",value:function(e){if(this.zoomToFirstLayer&&e.layerToActivate){var t=Array.isArray(e.layerToActivate)?e.layerToActivate:[e.layerToActivate],i=function e(i){if(i.children){var n=i.children.find(e);return n&&(i.open=!0,i.startopen=!0,(n instanceof Zs||n instanceof $s)&&(n.level>0?i.focus=!0:n.focus=!0)),n}return i.layerNames?i.visible&&i.layerNames.every((function(e){return t.includes(e)})):i.visible&&i.layerName&&t.includes(i.layerName)};this.cluster.find(i)}}},{key:"mapChanged",value:function(e){this.cluster.forEach((function(t){t.mapChanged(e)}),this)}},{key:"layerChanged",value:function(e){this.cluster.forEach((function(t){t.layerChanged(e)}),this)}},{key:"resetLayer",value:function(){this.framework.getLayers().forEach((function(e){e.active!==e.activeOnStartup&&(e.activeOnStartup?e.activate():e.deactivate())}))}},{key:"getLayerTitle",value:function(e){return o(e,String),this.layerTitles[e]||null}},{key:"findTreeItems",value:function(e){var t=[];function i(n){for(var r=0;r<n.length;r++)e(n[r])&&t.push(n[r]),n[r]instanceof zs&&i(n[r].children)}return i(this.cluster),t}}]),i}(Ys),ko=Mo;O.PLANNING_OBJECT_SAVED="PLANNING_OBJECT_SAVED";var Oo={GLTF:"gltf",FEATURE_STORE:"featureStore",IMAGE:"image",DRAWING:"drawing",PROCESSING:"processing",TILED:"tiled"},To={INITIALIZING:"initializing",CONVERTING:"converting",OPTIMIZING:"optimizing",READY:"ready",FAILED:"failed"},So=function(){function e(t){Object(d["a"])(this,e),this.name=t.name?t.name:"think of something",this._id=t._id,this.planningInstanceId=t.planningInstanceId,this.type=t.type,this.created=t.created,this.lastUpdated=t.lastUpdated||null,this.allowPicking=t.allowPicking,this.status=t.status,this._onServiceUrl=t.url,this.serviceUrl=t.serviceUrl;var i=this.serviceUrl.clone();if(i.clearQueryParams(),this.url=t.url?i.extendPath("..",t.url).toString():null,this.inputFileUrl=null,t.inputFile){var n=this.serviceUrl.clone();n.addQueryParams({planningObjectId:this._id,planningId:this.planningInstanceId}),n.extendPath("input-file"),this.inputFileUrl=n.toString()}this.description=t.description,this.visible=Object(u["e"])(t.visibility,!0),this.supportedMaps=[],this.supported=!1,this.properties=t.properties||{}}return Object(m["a"])(e,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObject"}}]),Object(m["a"])(e,[{key:"initialize",value:function(){var e=G.getInstance().getActiveMap();this.handleMapChange(e)}},{key:"getDefinition",value:function(){return{_id:this._id,planningId:this.planningInstanceId,name:this.name,description:this.description,type:this.type,visibility:this.visible,url:this.getDefinitionUrl()}}},{key:"handleMapChange",value:function(e){this.isSupported(e)}},{key:"isSupported",value:function(e){this.supported=0===this.supportedMaps.length||this.supportedMaps.indexOf(e.className)>-1}},{key:"save",value:function(){var e=this.serviceUrl.clone().extendPath("edit-object");return q.a.post(e.toString(),this.getDefinition()).then((function(){G.getInstance().publish(O.PLANNING_OBJECT_SAVED)}))}},{key:"delete",value:function(){var e=this.serviceUrl.clone().extendPath("delete-object");return q.a.post(e.toString(),{_id:this._id,planningId:this.planningInstanceId})}},{key:"getDefinitionUrl",value:function(){return this._onServiceUrl}},{key:"load",value:function(){}},{key:"unload",value:function(){}},{key:"hide",value:function(){this.visible=!1,this.unload()}},{key:"show",value:function(){this.visible=!0}},{key:"isPlaced",value:function(){return!0}},{key:"zoomTo",value:function(){}},{key:"destroy",value:function(){}},{key:"getConfigObject",value:function(){return{url:this.url,attributes:{name:this.name,description:this.description}}}}]),e}(),Co=So,jo=["longitude","latitude","height","heading","pitch","roll","scale"],Eo=k.getLogger("vcs.vcm.widgets.planning.PlanningObjectGltf"),Io=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.planningInstanceGltfLayerName=e.planningInstanceGltfLayerName,n.latitude=e.modelMeta.latitude,n.longitude=e.modelMeta.longitude,n.height=null!=e.modelMeta.height?e.modelMeta.height:0,n.heading=e.modelMeta.heading,n.heading=n.heading>180?n.heading-360:n.heading,n.pitch=e.modelMeta.pitch,n.roll=e.modelMeta.roll,n.scale=e.modelMeta.scale,n.supportedMaps=["vcs.vcm.maps.Cesium"],n.entityId=null,n.loaded=Promise.resolve(),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectGltf"}}]),Object(m["a"])(i,[{key:"handleMapChange",value:function(e){if(ye(Object(fe["a"])(i.prototype),"handleMapChange",this).call(this,e),this.supported&&!this.entityId){var t=this.getModelLayer();this.entityId=t.addObject(this.getConfigObject())}}},{key:"getModelLayer",value:function(){var e=G.getInstance().getLayerByName(this.planningInstanceGltfLayerName);return e}},{key:"getDefinition",value:function(){var e=this,t=ye(Object(fe["a"])(i.prototype),"getDefinition",this).call(this),n={};return jo.forEach((function(t){n[t]=e[t]})),t.modelMeta=n,t}},{key:"resetModelMatrix",value:function(){if(this.entityId){var e=this.getModelLayer();e.updateEntityById(this.entityId,this.getConfigObject())}}},{key:"zoomTo",value:function(){this.isPlaced()&&this.getModelLayer().flyToEntity(this.entityId)}},{key:"hide",value:function(){ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this.entityId&&this.getModelLayer().hideObjects([this.entityId])}},{key:"show",value:function(){ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.entityId&&this.getModelLayer().showObjects([this.entityId])}},{key:"setObjectOntoTerrain",value:function(){var e=this;Eo.deprecate("setObjectOntoTerrain","use vcs.vcm.maps.Cesium.getHeightFromTerrain with this object coordinates instead");var t=G.getInstance().getLayers(),i=t.find((function(e){return e instanceof is&&e.active}));return Bt(i.cesiumTerrainProvider,[[this.longitude,this.latitude]]).then((function(t){e.height=t[0][2]}))}},{key:"isPlaced",value:function(){var e=this,t=[];return jo.forEach((function(i){var n=e[i];-1===t.indexOf(n)&&t.push(n)})),!(0===t[0]&&1===t[1]&&2===t.length)}},{key:"destroy",value:function(){this.entityId&&this.getModelLayer().removeObjectById(this.entityId)}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.latitude=this.latitude,e.longitude=this.longitude,e.height=this.height,e.heading=this.heading,e.pitch=this.pitch,e.roll=this.roll,e.scale=this.scale,e.allowPicking=this.allowPicking,e.show=this.visible,e}}]),i}(Co),Do=Io,Po=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),n=t.call(this,e),n.extent=[-.5,-.5,.5,.5],e.imageMeta.extent&&n._setExtent(e.imageMeta.extent);var r=e.imageMeta.size;return n._size=r&&Array.isArray(r)&&2===r.length?r:null,n.opacity=e.imageMeta.opacity,n.credit=e.imageMeta.credit,n.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"],n.editorId=e.editorId,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectImage"}}]),Object(m["a"])(i,[{key:"load",value:function(){var e=this;if(!this.getImageLayer()){var t=new ls({name:this._id,url:this.url,imageExtent:this.extent,opacity:this.opacity,credit:this.credit});G.getInstance().addLayer(t)}if(!this.size){var i=new Image;i.src=this.url,i.onload=function(){e._size=[i.width,i.height]}}this.visible&&this.getImageLayer().activate()}},{key:"unload",value:function(){var e=this.getImageLayer();e&&e.deactivate()}},{key:"isPlaced",value:function(){return!this.extent.every((function(e){return.5===Math.abs(e)}))}},{key:"getAspectRatio",value:function(){if(this.isPlaced()){var e=new De({coordinates:this.extent,epsg:$.epsg});if(e.isValid()){var t=ol.extent.getSize(e.getCoordinatesInProjection(ee));return t[1]/t[0]}}return this._size?this._size[1]/this._size[0]:null}},{key:"getImageLayer",value:function(){var e=G.getInstance().getLayerByName(this._id);return e}},{key:"getDefinition",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getDefinition",this).call(this);return e.imageMeta={extent:this.extent,size:this.size,opacity:this.opacity,credit:this.credit},e}},{key:"zoomTo",value:function(){if(this.isPlaced()){var e=G.getInstance().getActiveMap(),t=ke.createViewPointFromExtent(this.extent);t.heading=0,t.pitch=-90,t.roll=0,e.gotoViewPoint(t)}}},{key:"show",value:function(){ye(Object(fe["a"])(i.prototype),"show",this).call(this);var e=this.getImageLayer();e&&e.activate()}},{key:"setOpacity",value:function(e){o(e,Number),this.opacity=e,this.getImageLayer().setOpacity(e)}},{key:"setExtent",value:function(e,t){o(e,[Number]),o(e.length,4),l(t,X);var i=this._setExtent(e,t);i.isValid()&&this.getImageLayer().setExtent(this.extent)}},{key:"_setExtent",value:function(e,t){var i=t?t.epsg:void 0;if(!i){var n=ol.extent.containsExtent(De.WGS_84_EXTENT,e);i=n?"EPSG:4326":i}var r=new De({coordinates:e,epsg:i});return r.isValid()&&r.getCoordinatesInProjection($,this.extent),r}},{key:"destroy",value:function(){var e=this.getImageLayer();e&&e.dispose()}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.extent=this.extent,e.credit=this.credit,e.opacity=this.opacity,e}},{key:"size",get:function(){return this._size?this._size.slice(0):null}}]),i}(Co),Ao=Po,xo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n._onSelect=[],n._onCesiumSelect=[],n.featureMap=new Map,n.cesiumFeatureMap=new Map,n.state=e,n._defaultActive=re.CLICK,n._defaultModificationKey=ne.NONE,n.modificationKey=n._defaultModificationKey,n.maintainSelection=!1,n.setActive(!1),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){return e.feature&&e.feature[this.state.featureTypeSymbol]&cn.EDITABLE&&!(e.feature[this.state.featureTypeSymbol]&cn.EDITING)?(e.key&ne.NONE?this.selectFeature(e.feature):e.key&ne.CTRL&&this.selectionSetClick(e.feature),e.stopPropagation=!(this.state.mode&ln.PROPAGATEONSELECT)):e.key&ne.NONE&&(!e.feature||!e.feature[this.state.featureTypeSymbol]&&this.state.mode&(ln.EDIT|ln.SELECT))&&this.state.selectedFeatures>0&&this.clearSelectionSet(),Promise.resolve(e)}},{key:"setActive",value:function(e){ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,e),this.maintainSelection=!1}},{key:"hasMultiSelect",value:function(){this._defaultModificationKey&ne.CTRL||(this._defaultModificationKey|=ne.CTRL,this.setModification())}},{key:"selectFeature",value:function(e){this.state.mode&ln.TRANSLATE&&this.featureMap.has(e.getId())||(this.clearSelectionSet(!0),e[ar]?(this.cesiumFeatureMap.set(e.getId(),e),this.state.selectedCesiumFeatures=this.cesiumFeatureMap.size,this.state.selectedFeatures=this.featureMap.size+this.cesiumFeatureMap.size,this._setState(e),this._cesiumCb()):(this.featureMap.set(e.getId(),e),this.state.selectedFeatures=this.featureMap.size+this.cesiumFeatureMap.size,this._setState(e)),this._cb())}},{key:"_setState",value:function(e){if(e){this.state.selectedFeatureId=e.getId(),this.state.layerName=e[Ht.vcsLayerNameSymbol];var t=e.getProperty("olcs_classificationType");t&&mn[t]?this.state.classificationType=mn[t]:this.state.classificationType=this.state.defaultClassificationType;var i=e.getProperty("olcs_altitudeMode");if(i&&dn[i]){var n=dn[i];this.state.altitudeMode&hn.ZPLANE&&n&hn.ABSOLUTE||(this.state.altitudeMode=n)}else this.state.altitudeMode=this.state.defaultAltitudeMode}else this.state.altitudeMode=this.state.defaultAltitudeMode,this.state.classificationType=this.state.defaultClassificationType,this.state.selectedCesiumFeatures=0,this.state.selectedFeatures=0,this.state.selectedFeatureId=null}},{key:"selectionSetClick",value:function(e,t){var i=e.getId(),n=!e[ar],r=n?this.featureMap.delete(i):this.cesiumFeatureMap.delete(i);r||(n?this.featureMap.set(i,e):this.cesiumFeatureMap.set(i,e)),r?r&&i===this.state.selectedFeatureId&&(this.featureMap.size?this._setState(this.featureMap.values().next().value):this.cesiumFeatureMap.size?this._setState(this.cesiumFeatureMap.values().next().value):this._setState()):(n&&1===this.featureMap.size&&!this.cesiumFeatureMap.size||!n&&1===this.cesiumFeatureMap.size&&!this.featureMap.size)&&this._setState(e),this.state.selectedFeatures=this.featureMap.size+this.cesiumFeatureMap.size,this.state.selectedCesiumFeatures=this.cesiumFeatureMap.size,t||(n?this._cb():this._cesiumCb())}},{key:"clearCesiumSelectionSet",value:function(){var e=!!this.cesiumFeatureMap.size;this.cesiumFeatureMap.has(this.state.selectedFeatureId)&&(this.featureMap.size?this._setState(this.featureMap.values().next().value):this._setState()),this.state.selectedCesiumFeatures=0,this.cesiumFeatureMap.clear(),e&&this._cesiumCb()}},{key:"clearSelectionSet",value:function(e){this.featureMap.clear(),this.clearCesiumSelectionSet(),this._setState(),e||this._cb()}},{key:"onSelect",value:function(e){o(e,Function),this._onSelect.push(e)}},{key:"onCesiumSelect",value:function(e){o(e,Function),this._onCesiumSelect.push(e)}},{key:"_cb",value:function(){for(var e=0;e<this._onSelect.length;e++)this._onSelect[e]()}},{key:"_cesiumCb",value:function(){for(var e=0;e<this._onCesiumSelect.length;e++)this._onCesiumSelect[e]()}}]),i}(ce),Yo=xo,No={selectShift:ln.SELECT|ne.SHIFT,selectAlt:ln.SELECT|ne.ALT,selectCtrl:ln.SELECT|ne.CTRL,editShift:ln.EDIT|ne.SHIFT,editAlt:ln.EDIT|ne.ALT},Fo={auto:"auto",scaleNESW:"nesw-resize",scaleNWSE:"nwse-resize",rotate:"crosshair",translate:"move",select:"pointer",edit:"pointer",translateVertex:"move",removeVertex:"pointer",insertVertex:"cell",addToSelection:"cell",removeFromSelection:"not-allowed"},Ro=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n,r;return Object(d["a"])(this,i),r=t.call(this),r._lastFeature=null,r.features=e.features,r.cesiumFeatures=e.cesiumFeatures,r.state=e.state,r.cursorStyle=G.getInstance().getMapContainer().style,r._keyDown=(n={},Object(U["a"])(n,ne.SHIFT,!1),Object(U["a"])(n,ne.ALT,!1),Object(U["a"])(n,ne.CTRL,!1),n),r.modifier=0,r.boundKeyListener=r._keyListener.bind(Object(gt["a"])(r)),r.eventEmitter=xn().eventEmitter,r.hasMultiSelect=!1,r.screenSpaceCameraController=null,r.originalScreenSpaceEvents={lookEventTypes:[],tiltEventTypes:[],rotateEventTypes:[]},r.dragPanInteraction=null,r._defaultActive=re.MOVE,r._defaultModificationKey=ne.ALL,r.modificationKey=r._defaultModificationKey,r.setActive(!1),r}return Object(m["a"])(i,[{key:"pipe",value:function(e){return e.feature&&e.feature[this.state.featureTypeSymbol]?(this.screenSpaceCameraController?e.feature[this.state.featureTypeSymbol]&(cn.VERTEX|cn.HEIGHTVERTEX)||this.state.mode&ln.TRANSLATE&&e.feature[this.state.featureTypeSymbol]&cn.EDITABLE?(this.screenSpaceCameraController.lookEventTypes=void 0,this.screenSpaceCameraController.tiltEventTypes=void 0,this.screenSpaceCameraController.rotateEventTypes=void 0):(this.screenSpaceCameraController.lookEventTypes=this.originalScreenSpaceEvents.lookEventTypes,this.screenSpaceCameraController.tiltEventTypes=this.originalScreenSpaceEvents.tiltEventTypes,this.screenSpaceCameraController.rotateEventTypes=this.originalScreenSpaceEvents.rotateEventTypes):this.dragPanInteraction&&(this.state.mode&(ln.SCALE|ln.ROTATE|ln.TRANSLATE)&&e.feature[this.state.featureTypeSymbol]&(cn.VERTEX|cn.HEIGHTVERTEX)||this.state.mode&ln.TRANSLATE&&e.feature[this.state.featureTypeSymbol]&cn.EDITABLE?this.dragPanInteraction.setActive(!1):this.dragPanInteraction.setActive(!0)),this.eventEmitter.setActive(!1),this._lastFeature=e.feature,this._evaluate()):(this.eventEmitter.setActive(),this._lastFeature=null,this.reset()),Promise.resolve(e)}},{key:"setActive",value:function(e){ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,e),this.active?(window.addEventListener("keydown",this.boundKeyListener),window.addEventListener("keyup",this.boundKeyListener)):(window.removeEventListener("keydown",this.boundKeyListener),window.removeEventListener("keyup",this.boundKeyListener)),this.cursorStyle.cursor=Fo.auto}},{key:"reset",value:function(){this.cursorStyle.cursor=Fo.auto,this.screenSpaceCameraController&&(this.screenSpaceCameraController.lookEventTypes=this.originalScreenSpaceEvents.lookEventTypes,this.screenSpaceCameraController.tiltEventTypes=this.originalScreenSpaceEvents.tiltEventTypes,this.screenSpaceCameraController.rotateEventTypes=this.originalScreenSpaceEvents.rotateEventTypes),this.dragPanInteraction&&this.dragPanInteraction.setActive(!0)}},{key:"handleMapChange",value:function(e){var t=this;function i(e){return Array.isArray(e)?e.slice():"object"===Object(s["a"])(e)?Object.assign({},e):e}if(e instanceof Ut)this.dragPanInteraction=null,this.screenSpaceCameraController=e.getScene().screenSpaceCameraController,["lookEventTypes","tiltEventTypes","rotateEventTypes"].forEach((function(e){null!=t.screenSpaceCameraController[e]&&(t.originalScreenSpaceEvents[e]=i(t.screenSpaceCameraController[e]))}));else{this.screenSpaceCameraController=null;var n=e.olMap;n.getInteractions().forEach((function(e){e instanceof ol.interaction.DragPan&&(t.dragPanInteraction=e)}))}}},{key:"_evaluate",value:function(){if(this._lastFeature){var e=this.state.mode|this.modifier|this._lastFeature[this.state.featureTypeSymbol];if(e&cn.VERTEX)return(e&No.selectShift)===No.selectShift||(e&No.selectAlt)===No.selectAlt||e&ln.SCALE?void(this.cursorStyle.cursor=1===this._lastFeature[kr]||3===this._lastFeature[kr]?Fo.scaleNWSE:Fo.scaleNESW):(e&No.selectCtrl)===No.selectCtrl||e&ln.ROTATE?void(this.cursorStyle.cursor=Fo.rotate):(e&No.editShift)===No.editShift&&!this.state.onlyAllowTranslation||e&ln.REMOVEVERTEX?void(this.cursorStyle.cursor=Fo.removeVertex):(e&No.editAlt)===No.editAlt||e&ln.TRANSLATEVERTEX?void(this.cursorStyle.cursor=Fo.translateVertex):void(this.cursorStyle.cursor=Fo.auto);if(e&cn.EDITABLE){var t=this.features.has(this._lastFeature.getId())||this.cesiumFeatures.has(this._lastFeature.getId());return t&&(e&No.selectAlt)===No.selectAlt?void(this.cursorStyle.cursor=Fo.translate):e&ln.FEATUREMODES&&e&ne.CTRL&&this.hasMultiSelect?void(this.cursorStyle.cursor=t?Fo.removeFromSelection:Fo.addToSelection):e&ln.GEOMETRYMODES&&e&ne.CTRL&&!t&&this.hasMultiSelect?void(this.cursorStyle.cursor=Fo.addToSelection):e&ln.TRANSLATE?void(this.cursorStyle.cursor=Fo.translate):e&ln.EDIT&&t&&this.state.onlyAllowTranslation?void(this.cursorStyle.cursor=Fo.auto):void(this.cursorStyle.cursor=Fo.select)}}this.cursorStyle.cursor=Fo.auto}},{key:"_keyListener",value:function(e){var t=!1,i={};i=Object.assign(i,this._keyDown),this._keyDown[ne.ALT]=e.altKey,this._keyDown[ne.CTRL]=e.ctrlKey,this._keyDown[ne.SHIFT]=e.shiftKey,"Shift"!==e.key&&"Alt"!==e.key||(e.preventDefault(),e.stopPropagation());for(var n=[ne.ALT,ne.CTRL,ne.SHIFT],r=0;r<3;r++)if(t=i[n[r]]!==this._keyDown[n[r]],t){this.modifier=this._keyDown[n[r]]?n[r]:0,this._evaluate();break}}}]),i}(ce),Ho=Ro,Go=k.getLogger("vcs.vcm.util.editor.AbstractLayerEditor"),zo={};function Bo(e){return zo[e]}var Vo=new dt({fill:{color:"#E8514C"}}),Uo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.id=Object(u["c"])(),n.convertStaticOnClick=Object(u["e"])(e.convertStaticOnClick,!0),n.defaultMode=ln.SELECT,n.layers={},n.editingFeature=null,n._listeners=[],n.eventHandler=xn(),n._interactionRemover=null,n._pullPickedPosition=null!=e.pullPickedPosition?e.pullPickedPosition:.05,n.parent?(n.parent=n.parent,n.selectFeatureInteraction=n.parent.selectFeatureInteraction,n.features=n.selectFeatureInteraction.featureMap,n.mouseOverInteraction=n.parent.mouseOverInteraction):(n.selectFeatureInteraction=new Yo(n.state),n.interactionChain.addInteraction(n.selectFeatureInteraction),n.features=n.selectFeatureInteraction.featureMap,n.mouseOverInteraction=new Ho({cesiumFeatures:n.selectFeatureInteraction.cesiumFeatureMap,features:n.features,state:n.state}),n.interactionChain.addInteraction(n.mouseOverInteraction)),zo[n.id]=Object(gt["a"])(n),n}return Object(m["a"])(i,[{key:"className",get:function(){return"vcs.vcm.util.editor.AbstractLayerEditor"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);var e=G.getInstance();e.getLayerByName(this.scratchLayer.name)||e.addLayer(this.scratchLayer),this.selectFeatureInteraction.onSelect(this.onSelect.bind(this)),this.selectFeatureInteraction.onCesiumSelect(this.onCesiumSelect.bind(this))}},{key:"onSelect",value:function(){}},{key:"onCesiumSelect",value:function(){if(!this.parent&&this.state.isFeatureStore&&this.activeLayer)if(this.convertStaticOnClick&&this.selectFeatureInteraction.cesiumFeatureMap.size)this.switchToDynamic();else{this.activeLayer.clearHighlighting();var e={};this.selectFeatureInteraction.cesiumFeatureMap.forEach((function(t,i){e[i]=Vo})),this.activeLayer.highlight(e)}}},{key:"switchToDynamic",value:function(){var e=this;if(this.activeLayer instanceof Ps&&this.activeLayer.injectedFetchDynamicFeatureFunc){var t=[];return this.selectFeatureInteraction.cesiumFeatureMap.forEach((function(i,n){t.push(e.activeLayer.switchStaticFeatureToDynamic(n))})),this.selectFeatureInteraction.clearCesiumSelectionSet(),Promise.all(t).then((function(t){t.forEach((function(t){e.selectFeatureInteraction.selectionSetClick(t)}))}))}return Promise.resolve()}},{key:"setAltitudeMode",value:function(e){return this.parent||(0===this.features.size&&(this.state.defaultAltitudeMode=e),this.state.altitudeMode=e,this._setPickingBehaviour()),Promise.resolve()}},{key:"activate",value:function(){if(ye(Object(fe["a"])(i.prototype),"activate",this).call(this),this._interactionRemover||(this._interactionRemover=this.eventHandler.addExclusiveInteraction(this.interactionChain,this.deactivate.bind(this),void 0,this.state.exclusiveId)),!this.parent){var e=G.getInstance();this._setPickingBehaviour();var t=e.getActiveMap();this.state.activeMap!==t.className&&this.handleMapChange(t)}}},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.eventHandler.featureInteraction.setActive(),this.eventHandler.eventEmitter.setActive(),null!=this._interactionRemover&&(this._interactionRemover(),this._interactionRemover=null),this.mouseOverInteraction&&this.mouseOverInteraction.reset(),this.obliqueImageSubscriptionKey&&(G.getInstance().unsubscribeByKey(this.obliqueImageSubscriptionKey),this.obliqueImageSubscriptionKey=null)}},{key:"beforeSetMode",value:function(e){ye(Object(fe["a"])(i.prototype),"beforeSetMode",this).call(this,e),this.state.active||(this.parent?Go.warning("Trying to set mode on inactive child, set mode on the parent"):this.activate())}},{key:"setMode",value:function(e){Go.debug("AbstractLayerEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e})))),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,e),this.parent||(e&ln.NONE&&this.selectFeatureInteraction.clearSelectionSet(!0),this._setPickingBehaviour())}},{key:"_setPickingBehaviour",value:function(){if(this.state.mode&ln.GEOMETRYMODES&&this.features.size?this.eventHandler.featureInteraction.hitTolerance=2:this.eventHandler.featureInteraction.hitTolerance=10,this.state.mode&ln.CREATE){P.getInstance().deactivateClickBehavior(),this.mouseOverInteraction.setActive(!1),this.mouseOverInteraction.cursorStyle.cursor=Fo.edit,this.selectFeatureInteraction.setActive(!1),this.eventHandler.eventEmitter.setActive(!1);var e=this.state.altitudeMode&hn.CLAMP&&this.state.classificationType===mn.terrain;e?(this.eventHandler.featureInteraction.setActive(),this.eventHandler.featureInteraction.pickPosition=re.NONE):(this.eventHandler.featureInteraction.setActive(re.CLICKMOVE),this.eventHandler.featureInteraction.pickPosition=re.CLICKMOVE,this.eventHandler.featureInteraction.pullPickedPosition=this._pullPickedPosition)}else if(this.state.mode&ln.NONE)P.getInstance().activateClickBehavior(),this.eventHandler.featureInteraction.setActive(),this.eventHandler.eventEmitter.setActive(),this.eventHandler.featureInteraction.hitTolerance=10,this.mouseOverInteraction.setActive(!1);else{P.getInstance().deactivateClickBehavior(),this.eventHandler.featureInteraction.setActive(re.ALL),this.mouseOverInteraction.cursorStyle.cursor=Fo.auto,this.state.mode&ln.TRANSLATE?this.selectFeatureInteraction.setActive(re.CLICK|re.DRAGSTART):this.selectFeatureInteraction.setActive(),this.mouseOverInteraction.setActive();var t=this.state.altitudeMode&hn.ABSOLUTE||this.state.altitudeMode&hn.CLAMP&&this.state.classificationType!==mn.terrain;this.state.mode&ln.EDIT&&t?(this.eventHandler.featureInteraction.pickPosition=re.DRAGEVENTS|re.CLICK,this.eventHandler.featureInteraction.pullPickedPosition=this._pullPickedPosition):this.state.mode&ln.TRANSLATEVERTEX&&t?(this.eventHandler.featureInteraction.pickPosition=re.CLICKMOVE,this.eventHandler.featureInteraction.pullPickedPosition=this._pullPickedPosition):this.eventHandler.featureInteraction.pickPosition=0}}},{key:"_setFeatureEditable",value:function(e){if(!e[this.state.featureTypeSymbol]){e[this.state.featureTypeSymbol]=cn.EDITABLE;var t=e.getGeometry();if(t&&"XY"===t.getLayout()){var i=t.getCoordinates(),n=di(t,i);n.forEach((function(e){e[2]=0})),t.setCoordinates(i,"XYZ")}}}},{key:"addEditingLayer",value:function(e){var t=this;if(o(e,_n),this.activeLayer=e,!this.parent){e.getFeatures().forEach((function(e){t._setFeatureEditable(e)})),this.state.layerName=e.name,this.state.defaultClassificationType=mn[e.classificationType]||mn.terrain,this.state.classificationType=this.state.defaultClassificationType,this.state.defaultAltitudeMode="absolute"===e.altitudeMode?hn.ABSOLUTE:hn.CLAMP;var i=[];if(i.push(e.source.on("addfeature",(function(e){var i=e.feature;t._setFeatureEditable(i)}))),i.push(e.source.on("removefeature",(function(e){var i=e.feature;t.features.has(i.getId())&&t.selectFeatureInteraction.selectionSetClick(i),delete i[t.state.featureTypeSymbol]}))),e instanceof Ps){e.setEditing(this.state.featureTypeSymbol,cn.EDITABLE),this.state.isFeatureStore=!0;var n="vcs.vcm.util.editor.CompositeLayerEditor"===this.getRootEditor().className?!!this.getRootEditor().getFeatureLayerEditor():"vcs.vcm.util.editor.FeatureLayerEditor"===this.getRootEditor().className;this.state.canSwitchToDynamic=!!e.injectedFetchDynamicFeatureFunc&&n}else this.state.isFeatureStore=!1,this.state.canSwitchToDynamic=!1;this.layers[e.name]=i}}},{key:"removeEditingLayer",value:function(e){var t=this;o(e,_n),e.getFeatures().forEach((function(e){delete e[t.state.featureTypeSymbol]})),this.activeLayer instanceof Ps&&(this.activeLayer.setEditing(this.state.featureTypeSymbol),this.state.isFeatureStore=!1,this.state.canSwitchToDynamic=!1);var i=this.layers[e.name]||[];i.forEach((function(e){ol.Observable.unByKey(e)})),delete this.layers[e.name],this.activeLayer=null,this.state.layerName=null}},{key:"handleMapChange",value:function(e){var t=this;if(!this.parent){this.state.activeMap=e.className;var n=G.getInstance();this.obliqueImageSubscriptionKey&&(n.unsubscribeByKey(this.obliqueImageSubscriptionKey),this.obliqueImageSubscriptionKey=null),e instanceof Fi&&(this.obliqueImageSubscriptionKey=n.subscribe("OBLIQUE_IMAGE_CHANGED",(function(){if(t.state.active)if(t.selectFeatureInteraction.active)t.selectFeatureInteraction.clearSelectionSet();else if(t.state.mode&ln.CREATE){var e=t.activeLayer.getImplementation(n.getActiveMap());if(e.synchronizing)var i=e.synchronizeEvent.addEventListener((function(){i(),t.selectFeatureInteraction.clearSelectionSet()}))}}))),this.selectFeatureInteraction.featureMap.size&&(this.isOblique||e instanceof Fi)&&(this.state.mode&ln.CREATE?this.getRootEditor().setMode(ln.NONE):this.selectFeatureInteraction.clearSelectionSet())}ye(Object(fe["a"])(i.prototype),"handleMapChange",this).call(this,e)}},{key:"destroy",value:function(){var e=this;ye(Object(fe["a"])(i.prototype),"destroy",this).call(this),Object.keys(this.layers).forEach((function(t){var i=G.getInstance().getLayerByName(t);i&&i instanceof _n&&e.removeEditingLayer(i)})),null!=this.obliqueImageSubscriptionKey&&G.getInstance().unsubscribeByKey(this.obliqueImageSubscriptionKey),delete zo[this.id]}},{key:"clearSelectionSet",value:function(e){this.selectFeatureInteraction.clearSelectionSet(e)}}]),i}(vr),Wo=Uo,qo=new dt({});qo.style=new ol.style.Style({fill:new ol.style.Fill({color:"rgba(200, 200, 200, 0.5)"}),stroke:new ol.style.Stroke({color:"rgb(200, 200, 200)",width:2}),image:new ol.style.Circle({fill:new ol.style.Fill({color:"rgba(200, 200, 200, 0.5)"}),stroke:new ol.style.Stroke({color:"rgb(200, 200, 200)",width:2}),radius:5})});var Jo={},Ko=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.loaded=null,n.greyed=!1,n.original=null,n.editorId=e.editorId;var r=new _n({name:n._id,projection:ee.getConfigObject(),genericFeatureProperties:{planningName:n.name,planningDescription:n.description}});return G.getInstance().addLayer(r),r.getSource().on("addfeature",(function(e){var t=e.feature;t.get("title")||t.set("title",n.name,!0),t.get("description")||t.set("description",n.description,!0)})),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectDrawing"}}]),Object(m["a"])(i,[{key:"save",value:function(){var e=Bo(this.editorId);return e.state.active&&e.setMode(un.none),this.original=this._writeToGeoJSON(),ye(Object(fe["a"])(i.prototype),"save",this).call(this)}},{key:"load",value:function(){var e=this;!this.loaded&&this.url?this.loaded=q.a.get(this.url).then((function(t){var i=t.data;e.original=i,e._setFeaturesFromGeoJSON()})):this.loaded=Promise.resolve(),this.loaded.then((function(){e.getDrawingLayer()||(G.getInstance().addLayer(new _n({name:e._id,projection:ee.getConfigObject()})),e._setFeaturesFromGeoJSON())})).then((function(){e.visible&&e.getDrawingLayer().activate()}))}},{key:"unload",value:function(){var e=this.getDrawingLayer();e&&this.getDrawingLayer().deactivate()}},{key:"_setFeaturesFromGeoJSON",value:function(){var e=this.getDrawingLayer(),t=er(this.original,{dynamicStyle:!0,readLegacyStyleOptions:!0}),i=t.features,n=t.style;e.addFeatures(i),n&&e.setStyle(n);var r=function(){var e=i.filter((function(e){return"clampToGround"===e.get("olcs_altitudeMode")&&e.get("olcs_extrudedHeight")&&e.get("olcs_extrudedHeight")>0}));e.forEach((function(e){gi(e).then((function(){e.set("olcs_altitudeMode","absolute")}))}))};if("vcs.vcm.maps.Cesium"===G.getInstance().getActiveMap().className)r();else var a=G.getInstance().subscribe("MAP_ACTIVATED",(function(e){"vcs.vcm.maps.Cesium"===e.className&&(r(),G.getInstance().unsubscribeByKey(a))}))}},{key:"_writeToGeoJSON",value:function(){var e=this.getDrawingLayer(),t={asObject:!0,writeStyle:!0,embedIcons:!0};return ir({features:e.getFeatures(),vcsMeta:e.getVcsMeta(t)},t)}},{key:"getDrawingLayer",value:function(){return G.getInstance().getLayerByName(this._id)}},{key:"zoomTo",value:function(){var e=this.getDrawingLayer();if(e.getFeatures().length>0){var t=e.source.getExtent(),i=X.getTransformer($,ee);i(t,t,2);var n=ke.createViewPointFromExtent(t);G.getInstance().getActiveMap().gotoViewPoint(n)}}},{key:"greyOut",value:function(){var e=this.getDrawingLayer();this.loaded&&e.active&&!this.greyed&&(Jo[this._id]=e.style,e.setStyle(qo),this.greyed=!0)}},{key:"unGrey",value:function(){this.greyed&&Jo[this._id]&&(this.getDrawingLayer().setStyle(Jo[this._id]),this.greyed=!1)}},{key:"show",value:function(){ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.getDrawingLayer().activate()}},{key:"setDrawing",value:function(e){var t=Bo(this.editorId);e?t.addEditingLayer(this.getDrawingLayer()):t.removeEditingLayer(this.getDrawingLayer())}},{key:"getDefinition",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getDefinition",this).call(this);return e.geoJSON=this._writeToGeoJSON(),e}},{key:"reset",value:function(){this.getDrawingLayer().removeAllFeatures(),this._setFeaturesFromGeoJSON()}},{key:"destroy",value:function(){this.getDrawingLayer().removeAllFeatures(),this.getDrawingLayer().dispose()}}]),i}(Co),Zo=Ko,Qo=k.getLogger("vcs.vcm.widgets.planning.PlanningObjectProcessing"),Xo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.description=e.stdoutMsgs&&Array.isArray(e.stdoutMsgs)?e.stdoutMsgs.join("\n"):"",n._pollingInterval=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectProcessing"}}]),Object(m["a"])(i,[{key:"load",value:function(){this._observeStatus()}},{key:"unload",value:function(){clearInterval(this._pollingInterval),this._pollingInterval=null}},{key:"observeStatus",value:function(){Qo.deprecate("observeStatus","Use load to start polling the status & unload to stop."),this._observeStatus()}},{key:"_observeStatus",value:function(){var e=this;null!=this._pollingInterval&&clearInterval(this._pollingInterval),this._pollingInterval=window.setInterval((function(){var t=e.serviceUrl.clone().extendPath("get-object-status",e._id);q.a.post(t.toString()).then((function(t){if(e.status=t.data,e.status===To.FAILED||e.status===To.READY){var i=G.getInstance().getWidgetByType("vcs.vcm.widgets.Planning").planningInstances.find((function(t){return t._id===e.planningInstanceId}));return i.updatePlanningObject(e).then((function(){e.destroy()}))}return Promise.resolve()})).catch((function(t){if(t.response&&t.response.data&&"notFound"===t.response.data.error){var i=G.getInstance().getWidgetByType("vcs.vcm.widgets.Planning").planningInstances.find((function(t){return t._id===e.planningInstanceId}));i.updatePlanningObjects()}else Qo.error("Could not update PlanningObject ".concat(e._id,", polling is stopped Error: ").concat(t.toString())),e.destroy()}))}),1e4)}},{key:"destroy",value:function(){clearInterval(this._pollingInterval),this._pollingInterval=null}}]),i}(Co),$o=Xo,el=k.getLogger("vcs.vcm.widgets.planning.PlanningObjectFeatureStore"),tl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.loaded=null,n.featureStoreUrl=n.serviceUrl.clone(),n.featureStoreUrl.extendPath("feature-store"),n.featureStoreUrl.addQueryParams({planningId:n.planningInstanceId,planningObjectId:n._id}),n.layerId=e.layerId,n.editorId=e.editorId,n.trackerValues={},n.terrainUrl=e.terrainUrl,n._balloonTemplate=e.balloonTemplate||"",n._pollingInterval=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectFeatureStore"}}]),Object(m["a"])(i,[{key:"getLayer",value:function(){return G.getInstance().getLayerByName(this.layerId)}},{key:"load",value:function(){var e=this;if(this.status===To.READY){if(!this.loaded){var t=this.featureStoreUrl.clone();t.extendPath("get-layer"),this.loaded=q.a.get(t.toString()).then((function(t){var i=t.data;if(i.staticRepresentation&&i.staticRepresentation.threeDim){var n="".concat(e.serviceUrl.base);if(e.serviceUrl.path.length>1){var r=e.serviceUrl.path.slice(0,e.serviceUrl.path.length-1);n="".concat(n,"/").concat(r.join("/"))}i.staticRepresentation.threeDim="".concat(n,"/").concat(i.staticRepresentation.threeDim);var a=e.featureStoreUrl.clone().extendPath("get-layer-file");a.addQueryParams({asJson:!0,onlyStatic:!0}),i.staticRepresentation.twoDim=a.toString()}i.injectedFetchDynamicFeatureFunc=e.getDynamicFeature.bind(e),i.name=e.layerId;var s=G.getInstance();i.genericFeatureProperties={planningName:e.name,planningDescription:e.description};var o=new Ps(i);if(s.addLayer(o),e._balloonTemplate){var l=s.getWidgetByType("vcs.vcm.widgets.BalloonInfo");l&&l.addTypeForLayer(e.layerId,e._balloonTemplate)}})).catch((function(e){el.log(e)}))}this.loaded.then((function(){e.visible&&e.getLayer().activate()}))}else this._observeStatus()}},{key:"unload",value:function(){var e=this.getLayer();e&&e.deactivate(),this._pollingInterval&&(clearInterval(this._pollingInterval),this._pollingInterval=null),this._removeModeChangeListener&&(this._removeModeChangeListener(),this._removeModeChangeListener=null)}},{key:"getDynamicFeature",value:function(e){var t=this.featureStoreUrl.clone();return t.extendPath("get-feature",this.planningInstanceId,this._id,e.toString()),q.a.post(t.toString()).then((function(e){var t=e.data;return t}))}},{key:"show",value:function(){this.getLayer()?(ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.getLayer().activate()):el.warning("FeatureStoreLayer for PlanningObjectFeatureStore does not exists, check code")}},{key:"setEditing",value:function(e){var t=Bo(this.editorId),i=this.getLayer();this._removeModeChangeListener&&(this._removeModeChangeListener(),this._removeModeChangeListener=null),e?(this._removeModeChangeListener=t.modeChange.addEventListener((function(e){e&ln.NONE?i.changeTracker.pauseTracking("changefeature"):i.changeTracker.track()})),i.changeTracker.track(),this.trackerValues=i.changeTracker.values,t.addEditingLayer(i),Bo(this.editorId).state.dedicatedFeatureStyle=!1):(i.changeTracker.unTrack(),t.removeEditingLayer(i),Bo(this.editorId).state.dedicatedFeatureStyle=!0)}},{key:"appendFile",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(e,Object),o(i,Object),this.terrainUrl&&(i.terrain=i.terrain||this.terrainUrl),e.append("converterOptions",JSON.stringify(i));var n=this.featureStoreUrl.clone();return n.extendPath("append"),q.a.post(n.toString(),e).then((function(){t.status=To.CONVERTING,t._observeStatus()}))}},{key:"calculateStatic",value:function(){var e=this,t=this.featureStoreUrl.clone();t.extendPath("calculate-static");var i=this.terrainUrl?{terrain:this.terrainUrl}:void 0;return q.a.post(t.toString(),i).then((function(){e.status=To.OPTIMIZING,e._observeStatus()}))}},{key:"_observeStatus",value:function(){var e=this;null!=this._pollingInterval&&clearInterval(this._pollingInterval),this._pollingInterval=window.setInterval((function(){var t=e.serviceUrl.clone().extendPath("get-object-status",e._id);q.a.post(t.toString()).then((function(t){if(e.status=t.data,e.status===To.FAILED)el.warning("conversion failed"),clearInterval(e._pollingInterval),e._pollingInterval=null;else if(e.status===To.READY){G.getInstance().removeLayerByName(e.layerId);var i=G.getInstance().getWidgetByType("vcs.vcm.widgets.Planning").planningInstances.find((function(t){return t._id===e.planningInstanceId}));e.loaded=null,i.loaded&&e.load(),clearInterval(e._pollingInterval),e._pollingInterval=null}})).catch((function(e){el.error(e)}))}),2e4)}},{key:"getDefinition",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getDefinition",this).call(this);return e.balloonTemplate=this._balloonTemplate&&""!==this._balloonTemplate?this._balloonTemplate:void 0,e}},{key:"save",value:function(){var e=this,t=this.getLayer(),n=Bo(this.editorId);n.state.active&&n.setMode(ln.NONE);var r=this.featureStoreUrl.clone();return r.extendPath("bulk"),t.changeTracker.commitChanges(r.toString()).then((function(){return e.saveVcsMeta()})).then((function(){return ye(Object(fe["a"])(i.prototype),"save",e).call(e)}))}},{key:"saveVcsMeta",value:function(){var e=this.getLayer().getVcsMeta({writeStyle:!0}),t=this.featureStoreUrl.clone();return t.extendPath("edit-meta"),q.a.post(t.toString(),e)}},{key:"reset",value:function(){var e=this.getLayer(),t=Bo(this.editorId);return t.setMode(ln.NONE),e.changeTracker.reset()}},{key:"destroy",value:function(){var e=this.getLayer();e&&e.dispose(),this._pollingInterval&&(clearInterval(this._pollingInterval),this._pollingInterval=null)}},{key:"zoomTo",value:function(){var e=this.getLayer(),t=e.getFeatureExtent();if(t.isValid()){var i=t.getCoordinatesInProjection($),n=ke.createViewPointFromExtent(i);n.distance=n.distance<4e3?n.distance:4e3,G.getInstance().getActiveMap().gotoViewPoint(n)}}},{key:"balloonTemplate",get:function(){return this._balloonTemplate},set:function(e){this._balloonTemplate=e;var t=G.getInstance().getWidgetByType("vcs.vcm.widgets.BalloonInfo");if(t)if(this._balloonTemplate&&""!==this._balloonTemplate)if(t.layerNamesToBalloonTypes[this.layerId]){var i=t.balloonTypes[t.layerNamesToBalloonTypes[this.layerId]];i.template=this._balloonTemplate}else t.addTypeForLayer(this.layerId,this._balloonTemplate);else delete t.layerNamesToBalloonTypes[this.layerId]}},{key:"name",get:function(){return this._name},set:function(e){this._name=e;var t=this.getLayer();t&&t.addGenericFeatureProperties({planningName:e})}},{key:"description",get:function(){return this._description},set:function(e){this._description=e;var t=this.getLayer();t&&t.addGenericFeatureProperties({planningDescription:e})}}]),i}(Co),il=tl,nl=i(6),rl=i.n(nl),al="<div class='balloon' id='myBalloon'>\n  <h1 class='balloon-title'><%= obj.title %></h1>\n  <div class='balloon-content'>\n    <%= obj.description %>\n    <hr>\n    <small>\n    <% if (obj.edited) {%>\n      <i><%= obj.edited %></i>\n    <% }%>\n    <%= obj.author %> <%= obj.date %>\n    </small>\n  </div>\n  <div class='balloon-close-col'>\n    <button class='close-balloon'><i class='fa fa-times fa-lg'></i></button>\n  </div>\n  <div class='dialog-image-balloon'></div>\n  <div class='balloon-left-edge'></div>\n</div>\n",sl=null,ll=function(){function e(){var t=this;Object(d["a"])(this,e),this.active=!1,this.setupResolve=null,this.setupPromise=new Promise((function(e){t.setupResolve=e})),this.serviceUrl=null,this.scenarioId=null,this.projectId=null,this.currentUser={userSettings:null},this.projectGroups=[],this.projectUsers=[],this.projectSettings={hasMail:!1,selfRegister:!1,userInvite:!1},this.onLogin=[],this.onLogout=[],this.beforeLogout=[],window.addEventListener("beforeunload",(function(){t.logout()}))}return Object(m["a"])(e,null,[{key:"className",get:function(){return"vcs.vcm.util.Login"}}]),Object(m["a"])(e,[{key:"handleURLParameter",value:function(e){e["reset-token"]?e.enrollment?window.location.hash="#/login/enroll/".concat(e["reset-token"]):window.location.hash="#/login/reset/".concat(e["reset-token"]):e["verify-token"]&&(window.location.hash="#/login/verify/".concat(e["verify-token"]))}},{key:"registerWidget",value:function(e){if(this.active){var t=this.serviceUrl===e.serviceUrl,i=this.projectId===e.projectId,n=this.scenarioId===e.scenarioId;return t&&n&&i?(e.onLogin.forEach((function(e){this.onLogin.push(e)}),this),e.onLogout.forEach((function(e){this.onLogout.push(e)}),this),e.beforeLogout.forEach((function(e){this.beforeLogout.push(e)}),this),Promise.resolve()):Promise.reject(new Error("Login recieved two different configurations"))}return this.serviceUrl=e.serviceUrl,this.url=a["a"].parse(this.serviceUrl),this.url.addQueryParams({version:3.7}),this.projectId=e.projectId,this.scenarioId=e.scenarioId,e.onLogin.forEach((function(e){this.onLogin.push(e)}),this),e.onLogout.forEach((function(e){this.onLogout.push(e)}),this),e.beforeLogout.forEach((function(e){this.beforeLogout.push(e)}),this),this._getProject()}},{key:"registerHook",value:function(e,t){o(e,["onLogin","onLogout","beforeLogout"]),o(t,Function),"onLogin"===e?this.onLogin.push(t):"onLogout"===e?this.onLogout.push(t):"beforeLogout"===e&&this.beforeLogout.push(t)}},{key:"_getProject",value:function(){var e=this.url.clone();return q.a.post(e.extendPath("project","get").toString(),{projectId:this.projectId}).then(this._setProject.bind(this)).catch((function(){})).then(this.setupResolve)}},{key:"_setProject",value:function(e){return e.data&&e.data._id===this.projectId?(Object.assign(this.projectSettings,e.data),this.active=!0,Promise.resolve()):Promise.reject("Login project was not found or did not match registered project")}},{key:"login",value:function(t,i){if(o(t,String),o(i,String),!this.active)return Promise.reject("Login has not been activated!");var n=e.sha256(i),r=this.url.clone();return q.a.post(r.extendPath("user","login").toString(),{email:t,password:n,mapId:this.scenarioId}).then(this.setUser.bind(this))}},{key:"logout",value:function(){var e=this.beforeLogout.map((function(e){return e()})).filter((function(e){return null!=e})),t=function(e){return q.a.post("".concat(this.serviceUrl,"/user/logout?access_token=").concat(this.getBearerToken())).then(this.clearUser.bind(this)),e?Promise.reject(new Error("logout failed")):Promise.resolve()};return Promise.all(e).then(t.bind(this,!1)).catch(t.bind(this,!0))}},{key:"register",value:function(t,i,n){if(o(t,String),o(i,String),l(n,String),!Object(u["d"])(t))throw new Error("i18n_error_invalidEmail");var r=n?{name:n}:null,a=e.sha256(i);return q.a.post("".concat(this.serviceUrl,"/user/register"),{email:t,password:a,projectId:this.projectId,profile:r,mapId:this.scenarioId})}},{key:"invite",value:function(e){if(o(e,String),!Object(u["d"])(e))throw new Error("i18n_error_invalidEmail");var t=this.getBearerToken();return q.a.post("".concat(this.serviceUrl,"/user/register")+"?access_token=".concat(t),{email:e,projectId:this.projectId,mapId:this.scenarioId})}},{key:"verifyEmail",value:function(e){return o(e,String),q.a.post("".concat(this.serviceUrl,"/user/verify-email"),{token:e})}},{key:"requestResetPassword",value:function(e){return o(e,String),q.a.post("".concat(this.serviceUrl,"/user/request-reset"),{email:e,mapId:this.scenarioId})}},{key:"resetPassword",value:function(t,i){o(t,String),o(i,String);var n=e.sha256(t);return q.a.post("".concat(this.serviceUrl,"/user/reset-password"),{password:n,token:i}).then(this.setUser.bind(this))}},{key:"getCurrentUser",value:function(){return this.currentUser}},{key:"getUserById",value:function(e){return this.projectUsers.find((function(t){return t._id===e}))}},{key:"getBearerToken",value:function(){return this.currentUser?this.currentUser.token:null}},{key:"setUser",value:function(e){var t=this;Object.assign(this.currentUser,e.data),this.url.addQueryParams({access_token:this.currentUser.token});var i=this.url.clone(),n=q.a.post(i.extendPath("group","get-shareable").toString(),{projectId:this.projectId}),r=this.url.clone(),a=q.a.post(r.extendPath("user","get").toString(),{userId:this.currentUser.id}),s=this.url.clone(),o=q.a.get(s.extendPath("project-users",this.projectId).toString());return Promise.all([n,a,o]).then((function(e){t.setProjectGroups(e[0]),t.setProfile(e[1]),t._setProjectUsers(e[2]),t.onLogin.forEach((function(e){e()}))}))}},{key:"setProjectGroups",value:function(e){this.projectGroups.splice(0,this.projectGroups.length),e.data.forEach((function(e){var t={};t.id=e._id,t.name=e.name,this.projectGroups.push(t)}),this)}},{key:"setProfile",value:function(e){this.currentUser.userSettings=e.data}},{key:"_setProjectUsers",value:function(e){var t=e.data;t.users&&t.users.forEach((function(e){this.projectUsers.push(e)}),this)}},{key:"clearUser",value:function(){Object.keys(this.currentUser).forEach((function(e){"userSettings"===e?this.currentUser[e]=null:delete this.currentUser[e]}),this),this.projectGroups.splice(0,this.projectGroups.length),this.onLogout.forEach((function(e){e()})),console.log("logged out",this.currentUser)}},{key:"searchUser",value:function(e){var t=this.url.clone();return q.a.post(t.extendPath("user","search").toString(),{text:e,projectId:this.projectId})}}],[{key:"getInstance",value:function(){return sl||(sl=new e),sl}},{key:"sha256",value:function(e){var t=8,i=0;function n(e,t){var i=(65535&e)+(65535&t),n=(e>>16)+(t>>16)+(i>>16);return n<<16|65535&i}function r(e,t){return e>>>t|e<<32-t}function a(e,t){return e>>>t}function s(e,t,i){return e&t^~e&i}function o(e,t,i){return e&t^e&i^t&i}function l(e){return r(e,2)^r(e,13)^r(e,22)}function c(e){return r(e,6)^r(e,11)^r(e,25)}function u(e){return r(e,7)^r(e,18)^a(e,3)}function h(e){return r(e,17)^r(e,19)^a(e,10)}function d(e,t){var i,r,a,d,m,f,g,y,p,v,_=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),b=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),L=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var w=0;w<e.length;w+=16){i=b[0],r=b[1],a=b[2],d=b[3],m=b[4],f=b[5],g=b[6],y=b[7];for(var M=0;M<64;M++)L[M]=M<16?e[M+w]:n(n(n(h(L[M-2]),L[M-7]),u(L[M-15])),L[M-16]),p=n(n(n(n(y,c(m)),s(m,f,g)),_[M]),L[M]),v=n(l(i),o(i,r,a)),y=g,g=f,f=m,m=n(d,p),d=a,a=r,r=i,i=n(p,v);b[0]=n(i,b[0]),b[1]=n(r,b[1]),b[2]=n(a,b[2]),b[3]=n(d,b[3]),b[4]=n(m,b[4]),b[5]=n(f,b[5]),b[6]=n(g,b[6]),b[7]=n(y,b[7])}return b}function m(e){for(var i=Array(),n=(1<<t)-1,r=0;r<e.length*t;r+=t)i[r>>5]|=(e.charCodeAt(r/t)&n)<<24-r%32;return i}function f(e){for(var t="",i=0;i<e.length;i++){var n=e.charCodeAt(i);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t}function g(e){for(var t=i?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*e.length;r++)n+=t.charAt(e[r>>2]>>8*(3-r%4)+4&15)+t.charAt(e[r>>2]>>8*(3-r%4)&15);return n}return e=f(e),g(d(m(e),e.length*t))}}]),e}(),cl=ll,ul=k.getLogger("vcs.vcm.widgets.planning.PlanningComment");function hl(e){var t,i,n=e.properties;n.editedBy&&n.editedOn?(t=n.editedBy,i=n.editedOn,n.edited=C.getInstance().getSingleMessage("i18n_planning_comment_edited")):(t=n.createdBy,i=n.createdOn);var r=cl.getInstance().getUserById(t);n.author=r&&r.profile?r.profile.name:"anonymous",n.date=rl()(i).format("LLL")}function dl(e){var t=ir({features:[e]},{asObject:!0}),i=t.features[0];return i.id=e.getId(),delete i.properties.selected,i}var ml={DEFAULT:"default",INFO:"info",SUCCESS:"success",WARNING:"warning"},fl=function(){function e(t,i,n){var r=this;Object(d["a"])(this,e),this.planningId=t,this.url=i.clone(),this.url.addQueryParams({planningId:t}),this.url.extendPath("comment"),this.dataLoaded=!1,this.ready=new Promise((function(e){r._readyResolve=e})),this.permissions=n,this.comments=[];var a=G.getInstance(),s=a.getWidgetByType("vcs.vcm.widgets.BalloonInfo");s&&s.addTypeForLayer("".concat(this.planningId,"_comments"),al),a.subscribe("LOCALE_CHANGED",this.localeChanged.bind(this)),this.localeChanged(a.getLocale()),this.active=!1}return Object(m["a"])(e,[{key:"getLayer",value:function(){var e=G.getInstance(),t=e.getLayerByName("".concat(this.planningId,"_comments"));return t||(t=new _n({altitudeMode:"absolute",name:"".concat(this.planningId,"_comments"),allowPicking:!0,projection:ee.getConfigObject(),balloonHeightOffset:1,style:"planningCommentStyle"}),e.addLayer(t)),t}},{key:"load",value:function(){var e=this;if(!this.dataLoaded){var t=this.getLayer(),i=this.url.clone();i.extendPath("get-comments"),q.a.get(i.toString()).then((function(i){var n,r=i.data;(n=e.comments).push.apply(n,Object(g["a"])(r.features)),e.comments.forEach(hl);var a=er(r),s=a.features;t.addFeatures(s),e.dataLoaded=!0,e._readyResolve()})).catch((function(t){ul.error(t.message),e.dataLoaded=!0,e._readyResolve()}))}this.ready.then((function(){e.getLayer().activate(),e.active=!0}))}},{key:"localeChanged",value:function(e){if(rl.a.locale(e),this.dataLoaded){var t=this.getLayer();this.comments.forEach((function(e){hl(e);var i=t.getFeatureById(e.id);i&&(e.properties.edited&&i.set("edited",e.properties.edited,!0),i.set("author",e.properties.author,!0),i.set("date",e.properties.date))}))}}},{key:"unLoad",value:function(){this.getLayer().deactivate(),this.active=!1}},{key:"lookAt",value:function(e){var t=G.getInstance(),i=this.getLayer(),n=i.getFeatureById(e),r=t.getActiveMap(),a=r.getViewPoint();a.pitch>-45&&(a.pitch=-45),a.distance||(a.distance=2e3),a.cameraPosition=null,a.groundPosition=X.mercatorToWgs84(n.getGeometry().getCoordinates()),a.animate=!0,r.gotoViewPoint(a),t.publish("FEATURE_CLICKED",n.getId(),n,i)}},{key:"addComment",value:function(e){var t=this;o(e,ol.Feature);var i=dl(e),n=this.url.clone();return n.extendPath("add"),q.a.post(n.toString(),i).then((function(i){var n=i.data;hl(n),t.comments.push(n),e.setId(n.id),e.set("author",n.properties.author,!0),e.set("date",n.properties.date)}))}},{key:"editComment",value:function(e){var t=this;o(e,ol.Feature);var i=dl(e),n=this.url.clone();return n.extendPath("edit"),q.a.post(n.toString(),i).then((function(i){var n=i.data,r=t.comments.findIndex((function(e){return e.id===n.id}));t.comments.splice(r,1,n),hl(n),e.set("author",n.properties.author,!0),e.set("date",n.properties.date)}))}},{key:"deleteComment",value:function(e){var t=this;o(e,ol.Feature);var i=dl(e),n=this.url.clone();return n.extendPath("delete"),q.a.post(n.toString(),i).then((function(){var e=t.comments.findIndex((function(e){return e.id===i.id}));t.comments.splice(e,1),t.getLayer().removeFeaturesById([i.id])}))}},{key:"destroy",value:function(){this.comments.splice(0);var e=G.getInstance().getLayerByName("".concat(this.planningId,"_comments"));e&&e.dispose()}}]),e}(),gl=fl;function yl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.viewpoints.map((function(e){e.duration=null!=e.duration?e.duration:null;var t=J(e.cameraPosition.slice(),void 0,3),i=new ol.Feature({geometry:new ol.geom.Point(t)});return i.setProperties(Object.assign({},e)),i})),n={features:i,vcsMeta:{flightOptions:{name:e.name,loop:e.loop,interpolation:e.interpolation}}};return ir(n,t)}function pl(e){var t=er(e),i=t.vcsMeta&&t.vcsMeta.flightOptions?t.vcsMeta.flightOptions:{name:"ImportedFlight"};return i.viewpoints=t.features.map((function(e){var t={name:e.get("name"),distance:e.get("distance"),groundPosition:e.get("groundPosition"),cameraPosition:e.get("cameraPosition"),heading:e.get("heading"),pitch:e.get("pitch"),roll:e.get("roll"),animate:!1,duration:null!=e.get("duration")?e.get("duration"):null};return t})),i}var vl={SPLINE:"spline",LINEAR:"linear"},_l=function(){function e(t){Object(d["a"])(this,e),this.id=Object(u["c"])(),this.name=t.name,this.viewpoints=t.viewpoints||[],this.multiplier=Object(u["g"])(t.multiplier,1),this.loop=Object(u["e"])(t.loop,!1),this.interpolation=t.interpolation||vl.SPLINE,this.changed=new Cesium.Event,this.url=t.url,this._readyPromise=null}return Object(m["a"])(e,null,[{key:"className",get:function(){return"vcs.vcm.util.flight.FlightInstance"}}]),Object(m["a"])(e,[{key:"isValid",value:function(){var e=this;return this.viewpoints.forEach((function(t,i){t.cameraPosition||e.viewpoints.splice(i,1)})),this.viewpoints.length>=2}},{key:"assign",value:function(e){this.name=e.name,this.viewpoints=e.viewpoints,this.multiplier=e.multiplier,this.loop=e.loop,this.interpolation=e.interpolation,this.changed.raiseEvent()}},{key:"getConfigObject",value:function(){return{name:this.name,multiplier:this.multiplier,loop:this.loop,interpolation:this.interpolation,viewpoints:this.viewpoints.map((function(e){return Object.assign({},e)}))}}},{key:"ready",get:function(){var e=this;return this._readyPromise||(this.url?this._readyPromise=q.a.get(this.url).then((function(t){var i=t.data,n=pl(i);e.assign(n)})):this._readyPromise=Promise.resolve()),this._readyPromise}}]),e}(),bl=_l,Ll=k.getLogger("vcs.vcm.widgets.planning.PlanningObjectTiled"),wl=new Cesium.Cartographic,Ml=new Cesium.Cartesian3,kl=new Cesium.Cartesian3,Ol=new Cesium.HeadingPitchRoll,Tl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.supportedMaps=["vcs.vcm.maps.Cesium"],n._translationModelMeta=e.modelMatrix||null,n.longitude=0,n.latitude=0,n.height=0,n.heading=0,n.pitch=0,n.roll=0,n.scale=1,n.usesCesiumRTC=!1,n._loadedResolve=function(){},n.loaded=new Promise((function(e){n._loadedResolve=e})),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectTiled"}}]),Object(m["a"])(i,[{key:"getLayer",value:function(){return G.getInstance().getLayerByName(this._id)}},{key:"load",value:function(){var e=this,t=this.getLayer();t||(t=new Ba({name:this._id,url:this.url.toString()}),G.getInstance().addLayer(t));var i=this.visible?t.activate():t.initialize();return i.then((function(){var i=Cesium.Cartesian3.pack(t.cesium3DTileset.boundingSphere.center,new Array(3));i.some((function(e){return 0!==e}))&&Cesium.Matrix4.equals(t.cesium3DTileset.root.transform,Cesium.Matrix4.IDENTITY)&&(e.usesCesiumRTC=!0),e._translationModelMeta&&!e.usesCesiumRTC&&Cesium.Matrix4.unpack(e._translationModelMeta,0,t.cesium3DTileset.root.transform),e._setPositionFields(t.cesium3DTileset.boundingSphere.center,t.cesium3DTileset.root.transform),e._loadedResolve()}))}},{key:"_setPositionFields",value:function(e,t){var i=Cesium.Cartographic.fromCartesian(e,null,wl);i&&(this.longitude=Cesium.Math.toDegrees(i.longitude),this.latitude=Cesium.Math.toDegrees(i.latitude),this.height=i.height),this.usesCesiumRTC||(Cesium.Matrix4.getScale(t,Ml),this.scale=Ml.x,Cesium.Transforms.fixedFrameToHeadingPitchRoll(t,void 0,void 0,Ol),this.heading=Cesium.Math.toDegrees(Ol.heading),this.pitch=Cesium.Math.toDegrees(Ol.pitch),this.roll=Cesium.Math.toDegrees(Ol.roll))}},{key:"unload",value:function(){var e=this.getLayer();e&&e.deactivate()}},{key:"show",value:function(){this.getLayer()?(ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.getLayer().activate()):Ll.warning("TilesetLayer for PlanningObjectTiled does not exists, check code")}},{key:"resetModelMatrix",value:function(){var e=this.getLayer();e&&e.initialized&&!this.usesCesiumRTC&&(Cesium.Cartesian3.fromDegrees(this.longitude,this.latitude,this.height,null,kl),Cesium.HeadingPitchRoll.fromDegrees(this.heading,this.pitch,this.roll,Ol),Cesium.Cartesian3.fromElements(this.scale,this.scale,this.scale,Ml),e.cesium3DTileset.root.transform=Cesium.Transforms.headingPitchRollToFixedFrame(kl,Ol),Cesium.Matrix4.multiplyByScale(e.cesium3DTileset.root.transform,Ml,e.cesium3DTileset.root.transform))}},{key:"isPlaced",value:function(){var e=this,t=[];return jo.forEach((function(i){var n=e[i];-1===t.indexOf(n)&&t.push(n)})),!(0===t[0]&&1===t[1]&&2===t.length)}},{key:"zoomTo",value:function(){var e=this.getLayer();if(e&&e.initialized){var t=G.getInstance().getActiveMap(),i=t.getViewPoint(),n=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(i.heading),Cesium.Math.toRadians(i.pitch<-45?i.pitch:-45),void 0);t.getScene().camera.flyToBoundingSphere(e.cesium3DTileset.boundingSphere,{duration:1,offset:n})}}},{key:"getDefinition",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getDefinition",this).call(this),t=this.getLayer();if(t&&t.initialized&&!this.usesCesiumRTC){var n=!t.cesium3DTileset.root.transform.equals(Cesium.Matrix4.IDENTITY);n&&(e.modelMatrix=Cesium.Matrix4.pack(t.cesium3DTileset.root.transform,new Array(16)))}return e}},{key:"destroy",value:function(){var e=this.getLayer();e&&e.dispose()}}]),i}(Co),Sl=Tl;O.PLANNING_INSTANCE_LOADED="PLANNING_INSTANCE_LOADED",O.PLANNING_INSTANCE_UNLOADED="PLANNING_INSTANCE_UNLOADED";var Cl=Pt(),jl=function(){function e(t){var i=this;Object(d["a"])(this,e),this.maintainLockInterval=null,this._id=t._id,this.name=t.name&&""!==t.name?t.name:"planning: ".concat(t._id),this.hiddenObjects=t.hiddenObjects?t.hiddenObjects:[],this.planningObjects=[],this.viewpoints=[],t.viewpoints&&t.viewpoints.length>0?this.viewpoints=t.viewpoints:t.viewpoint&&(t.viewpoint.default=!0,this.viewpoints.push(t.viewpoint)),this.flights=[],t.flights&&t.flights.forEach((function(e){var t=pl(e);i.flights.push(new bl(t))})),this.description=t.description?t.description:null,this.permissions=t.permissions||[],this.owner=t.created,this.lastUpdated=t.lastUpdated||null,this.public=t.public;var n=new Qa({allowPicking:!0,name:"_".concat(this._id,"_model")});G.getInstance().addLayer(n),this.layerName=n.name,this.sharedUsers=[],this.mapId=t.mapId,this.url=t.url,this.editorId=t.editorId,this.terrainUrl=t.terrainUrl,t.planningObjects&&t.planningObjects.forEach((function(e){i.addPlanningObject(e)})),this.loaded=!1,this.comments=new gl(this._id,this.url,this.permissions),this.properties=t.properties||{}}return Object(m["a"])(e,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningInstance"}}]),Object(m["a"])(e,[{key:"load",value:function(e){var t=G.getInstance(),i=t.getLayerByName(this.layerName),n=t.getActiveMap();"vcs.vcm.maps.Cesium"===n.className&&(i.initialized||i.initialize(),i.activate()),Cl.hideObjects(this.hiddenObjects),this.planningObjects.forEach((function(e){e.handleMapChange(n),e.load()})),e||this.gotoViewpoint(),this.comments.load(),this.loaded=!0,t.publish(O.PLANNING_INSTANCE_LOADED,this)}},{key:"unLoad",value:function(){var e=G.getInstance(),t=e.getLayerByName(this.layerName);t.deactivate(),Cl.showObjects(this.hiddenObjects),this.planningObjects.forEach((function(e){e.unload()})),this.comments.unLoad(),this.loaded=!1,e.publish(O.PLANNING_INSTANCE_UNLOADED,this)}},{key:"handleMapChange",value:function(e){if(this.loaded){var t=G.getInstance().getLayerByName(this.layerName);"vcs.vcm.maps.Cesium"===e.className&&t.activate(),this.planningObjects.forEach((function(t){t.handleMapChange(e)}))}}},{key:"addPlanningObject",value:function(e){var t;return"geojson"===e.type&&(e.type="drawing"),"ready"!==e.status?(t="featureStore"===e.type?new il(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId,terrainUrl:this.terrainUrl},e)):new $o(Object.assign({planningInstanceId:this._id,serviceUrl:this.url},e)),"failed"!==t.status&&this.loaded&&t.load(),this.planningObjects.push(t)):"gltf"===e.type?(t=new Do(Object.assign({planningInstanceId:this._id,planningInstanceGltfLayerName:this.layerName,serviceUrl:this.url},e)),this.planningObjects.push(t)):"featureStore"===e.type?(t=new il(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId,terrainUrl:this.terrainUrl},e)),this.loaded&&!t.loaded&&t.load(),this.planningObjects.push(t)):"image"===e.type?(t=new Ao(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId},e)),this.loaded&&t.load(),this.planningObjects.push(t)):"tiled"===e.type?(t=new Sl(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId},e)),this.loaded&&t.load(),this.planningObjects.push(t)):"drawing"===e.type&&(t=new Zo(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId},e)),this.loaded&&!t.loaded&&t.load(),this.planningObjects.push(t)),t.initialize(),t}},{key:"updatePlanningObject",value:function(e){var t=this,i=this.url.clone();return q.a.post(i.extendPath("get-id").toString(),{id:this._id}).then((function(i){var n=i.data,r=t.planningObjects.findIndex((function(t){return t._id===e._id}));t.planningObjects.splice(r,1);var a=n.planningObjects.find((function(t){return t._id===e._id}));t.addPlanningObject(a)}))}},{key:"updatePlanningObjects",value:function(){var e=this,t=this.url.clone();return q.a.post(t.extendPath("get-id").toString(),{id:this._id}).then((function(t){var i=t.data;e.planningObjects.forEach((function(e){e.destroy()})),e.planningObjects.splice(0),i.planningObjects.forEach(e.addPlanningObject.bind(e))}))}},{key:"deletePlanningObject",value:function(e,t){var i=this;o(e,Co),l(t,Function);var n=this.planningObjects.findIndex((function(t){return t._id===e._id}));return this.planningObjects.splice(n,1),e.delete().then((function(){e.destroy(),t(null)})).catch((function(n){var r=e.getConfigObject();e.destroy(),i.addPlanningObject(r),t(n)}))}},{key:"lock",value:function(){var e=this,t=this.url.clone();return q.a.post(t.extendPath("lock").toString(),{_id:this._id}).then((function(){e.maintainLockInterval||(e.maintainLockInterval=setInterval(e.maintainLock.bind(e),1e5))}))}},{key:"maintainLock",value:function(){var e=this;this.lock().catch((function(){e.unlock()}))}},{key:"unlock",value:function(){this.maintainLockInterval&&clearInterval(this.maintainLockInterval),this.maintainLockInterval=null;var e=this.url.clone();return q.a.post(e.extendPath("unlock").toString(),{_id:this._id})}},{key:"save",value:function(){var e={_id:this._id,mapId:this.mapId,name:this.name,description:this.description,viewpoint:void 0,viewpoints:this.viewpoints,flights:this.flights.map((function(e){return yl(e,{asObject:!0})})),hiddenObjects:this.hiddenObjects},t=this.url.clone();return q.a.post(t.extendPath("update").toString(),e)}},{key:"getPlanningObjectDefinitions",value:function(){return Object.values(this.planningObjects).map((function(e){return e.getDefinition()}))}},{key:"addHiddenObject",value:function(e){return o(e,String),!this.hiddenObjects.includes(e)&&(Cl.hideObjects([e]),this.hiddenObjects.push(e),!0)}},{key:"removeHiddenObject",value:function(e){if(o(e,[String,Number]),this.hiddenObjects.includes(e)){Cl.showObjects([e]);var t=this.hiddenObjects.indexOf(e);return this.hiddenObjects.splice(t,1),!0}return!1}},{key:"destroy",value:function(){this.loaded&&this.unLoad();for(var e=0;e<this.planningObjects.length;e++)this.planningObjects[e].destroy();this.comments.destroy();var t=G.getInstance().getLayerByName(this.layerName);return t.dispose(),this.layerName="",this.maintainLockInterval?this.unlock():Promise.resolve()}},{key:"gotoViewpoint",value:function(e){var t=e;if(null==t&&(t=this.viewpoints.findIndex((function(e){return e.default})),t=-1===t?0:t),this.viewpoints[t]){var i=new ke(this.viewpoints[t]),n=G.getInstance();n.getActiveMap().gotoViewPoint(i)}}},{key:"sharePlanning",value:function(e,t,i){o(e,String),o(t,String),l(i,[String]);var n={actorId:t,doc:{_id:e}};i&&(n.permissions=i);var r=this.url.clone().extendPath("share");return q.a.post(r.toString(),n).then(this.getSharedUsers.bind(this))}},{key:"getSharedUsers",value:function(){var e=this,t=this.url.clone().extendPath("shared-users");return q.a.post(t.toString(),{_id:this._id}).then((function(t){e.sharedUsers=t.data}))}},{key:"publishPlanning",value:function(){var e=this,t=this.url.clone().extendPath("publish");return q.a.post(t.toString(),{_id:this._id,public:!this.public}).then((function(){e.public=!e.public}))}},{key:"userHasPermission",value:function(e){return o(e,String),this.permissions.indexOf(e)>-1}},{key:"isLocked",value:function(){return null!==this.maintainLockInterval}},{key:"uploadNewModel",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(e,Object),o(t,{percentage:[Number,String,null]}),o(n,Object);var r={};t&&(r.onUploadProgress=function(e){t.percentage=Math.round(100*e.loaded/e.total)}),this.terrainUrl&&(n.terrain=n.terrain||this.terrainUrl),n.defaultProjection=G.getInstance().projection.epsg,e.append("converterOptions",JSON.stringify(n));var a=this.url.clone().extendPath("upload");return a.addQueryParams({planning_id:this._id}),q.a.post(a.toString(),e,r).then((function(e){var t=e.data,n=null;return t.planningObjects.forEach((function(e){var t=i.planningObjects.find((function(t){return t._id===e._id}));t||(n=i.addPlanningObject(e))})),n}))}},{key:"createFeatureStoreObject",value:function(){var e=this,t=this.url.clone().extendPath("feature-store","create");return t.addQueryParams({planningId:this._id}),q.a.post(t.toString()).then((function(t){var i=t.data;return e.addPlanningObject(i)}))}}]),e}(),El=jl,Il=i(116);function Dl(e,t){var i;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=Object(Il["a"])(e))||t&&e&&"number"===typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 a,s=!0,o=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==i["return"]||i["return"]()}finally{if(o)throw a}}}}var Pl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,{zPlane:!0}),n.editor=e,n._lastPosition=null,n._firstPosition=null,n._translationOptions={},n._defaultActive=re.DRAGEVENTS,n._defaultModificationKey=ne.ALT,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(this._lastPosition){var t=this.getPosition(e),i=t[0]-this._lastPosition[0],n=t[1]-this._lastPosition[1];e.type&re.DRAGEND?(this._translationOptions.dxTotal=t[0]-this._firstPosition[0],this._translationOptions.dyTotal=t[1]-this._firstPosition[1],this._translationOptions.isMoving=!1,this._translationOptions.toTransform=this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.GEOMETRY,this.editor.translate(this.editor.state.transformGeometryOnMove?i:this._translationOptions.dxTotal,this.editor.state.transformGeometryOnMove?n:this._translationOptions.dyTotal,this._translationOptions),this._lastPosition=null,this._firstPosition=null):e.type&re.DRAG?(this.editor.translate(i,n,this._translationOptions),this._lastPosition=t):this._lastPosition=null}else e.type&re.DRAGSTART&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.EDITABLE&&this.editor.features.has(e.feature.getId())&&(this.scene?(this.createPlane(e.positionOrPixel),this._lastPosition=this.getPosition(e),this._firstPosition=this.getPosition(e)):(this._lastPosition=e.positionOrPixel,this._firstPosition=e.positionOrPixel),this._translationOptions={toTransform:this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.VERTEX,isMoving:!0});return Promise.resolve(e)}}]),i}(mr),Al=Pl,xl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,{zPlane:!0}),n.editor=e,n._defaultActive=re.DRAGEVENTS,n._defaultModificationKey=ne.SHIFT|ne.ALT,n._lastPosition=null,n._firstPosition=null,n.setActive(),n._scaleOptions={},n}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(this._lastPosition){var t=this.getPosition(e),i=t[0]-this._lastPosition[0],n=t[1]-this._lastPosition[1];e.type&re.DRAGEND?(this._scaleOptions.dxTotal=t[0]-this._firstPosition[0],this._scaleOptions.dyTotal=t[1]-this._firstPosition[1],this._scaleOptions.isMoving=!1,this._scaleOptions.toTransform=this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.GEOMETRY,this.editor.scale(this.editor.state.transformGeometryOnMove?i:this._scaleOptions.dxTotal,this.editor.state.transformGeometryOnMove?n:this._scaleOptions.dyTotal,this._scaleOptions),this._lastPosition=null,this._firstPosition=null):(this._lastPosition=t,this.editor.scale(i,n,this._scaleOptions))}else if(e.type&re.DRAGSTART&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.VERTEX){var r=e.feature.getGeometry().getCoordinates()[2]?e.feature.getGeometry().getCoordinates():e.positionOrPixel;this._scaleOptions={maintainAspectRatio:!!(e.key&ne.SHIFT),vertex:e.feature,toTransform:this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.VERTEX,isMoving:!0},this._lastPosition=r,this._firstPosition=r,this.scene&&this.createPlane(this._lastPosition)}return Promise.resolve(e)}}]),i}(mr),Yl=xl;function Nl(e,t,i){var n=e.x*t.y-e.y*t.x;return n>0?i:-1*i}var Fl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,{zPlane:!0}),n.editor=e,n._defaultActive=re.DRAGEVENTS,n._defaultModificationKey=ne.CTRL,n._lastPosition=new Cesium.Cartesian2,n._firstPosition=new Cesium.Cartesian2,n._newPosition=new Cesium.Cartesian2,n._scratchCenter=new Cesium.Cartesian2,n._rotationOptions={},n._rotating=!1,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(this._rotating){var t,i=this.getPosition(e);this._newPosition=Cesium.Cartesian2.fromElements(i[0],i[1],this._newPosition),this._newPosition=Cesium.Cartesian2.subtract(this._scratchCenter,this._newPosition,this._newPosition),e.type&re.DRAGEND?(this._rotationOptions.angleTotal=Nl(this._firstPosition,this._newPosition,Cesium.Cartesian2.angleBetween(this._firstPosition,this._newPosition)),this._rotationOptions.isMoving=!1,this._rotationOptions.toTransform=this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.GEOMETRY,t=this.editor.state.transformGeometryOnMove?Nl(this._lastPosition,this._newPosition,Cesium.Cartesian2.angleBetween(this._lastPosition,this._newPosition)):this._rotationOptions.angleTotal,this._rotating=!1):t=Nl(this._lastPosition,this._newPosition,Cesium.Cartesian2.angleBetween(this._lastPosition,this._newPosition)),this.editor.rotate(t,this._rotationOptions),this._lastPosition=this._newPosition.clone(this._lastPosition)}else if(e.type&re.DRAGSTART&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.VERTEX){var n=e.feature.getGeometry().getCoordinates()[2]?e.feature.getGeometry().getCoordinates():e.positionOrPixel;this.scene&&this.createPlane(n),this._scratchCenter=Cesium.Cartesian2.fromArray(ol.extent.getCenter(this.editor.extent),0,this._scratchCenter),this._firstPosition=Cesium.Cartesian2.fromArray(n,0,this._firstPosition),this._firstPosition=Cesium.Cartesian2.subtract(this._scratchCenter,this._firstPosition,this._firstPosition),this._lastPosition=this._firstPosition.clone(this._lastPosition),this._rotationOptions={toTransform:this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.VERTEX,isMoving:!0},this._rotating=!0}return Promise.resolve(e)}}]),i}(mr),Rl=Fl,Hl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,{zPlane:!1}),n.editor=e,n._defaultActive=re.DRAGEVENTS,n._defaultModificationKey=ne.ALT|ne.SHIFT,n._lastHeight=null,n._firstHeight=null,n._isExtrusion=!1,n._heightOptions={},n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(this.scene)if(null!==this._lastHeight){var t,i=this.getPosition(e);e.type&(re.CLICK|re.DRAGEND)?(this._heightOptions.heightTotal=i[2]-this._firstHeight,this._heightOptions.isMoving=!1,this.editor.state.transformGeometryOnMove?t=i[2]-this._lastHeight:(this._heightOptions.toTransform=Wl.GEOMETRY,t=this._heightOptions.heightTotal),this._lastHeight=null,this._firstHeight=null):(t=i[2]-this._lastHeight,this._lastHeight=i[2]),this._isExtrusion?this.editor.extrude(t,i[2],this._heightOptions):this.editor.translateHeight(t,i[2],this._heightOptions)}else if(e.type&(re.DRAGSTART|re.CLICK)&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.HEIGHTVERTEX){var n=e.feature.getGeometry().getCoordinates();this._lastHeight=n[2]||e.positionOrPixel[2],this._firstHeight=this._lastHeight,this._isExtrusion=!!(e.key&ne.SHIFT),this._heightOptions={toTransform:this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.VERTEX,isMoving:!0},this.createPlane(n)}return Promise.resolve(e)}}]),i}(mr),Gl=Hl,zl=i(676),Bl=i.n(zl),Vl=i(677),Ul=i.n(Vl),Wl={VERTEX:1,GEOMETRY:2,BOTH:0};Wl.BOTH=Wl.VERTEX|Wl.GEOMETRY;var ql=Symbol("isTransformation"),Jl=Symbol("isEmpty"),Kl=k.getLogger("vcs.vcm.util.editor.FeatureLayerEditor"),Zl=new ol.style.Icon({src:Bl.a,anchor:[.5,.8],scale:.6}),Ql=new ol.style.Style({image:Zl}),Xl={olcs_altitudeMode:"altitudeMode",olcs_skirt:"skirt",olcs_storeyHeight:"storeyHeight"};function $l(e){e instanceof Ut?Ql.setImage(Zl):Ql.setImage(null)}var ec=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(d["a"])(this,i),e=t.call(this,n),e.translateInteraction=new Al(Object(gt["a"])(e)),e.interactionChain.addInteraction(e.translateInteraction),e.scaleTransformation=new Yl(Object(gt["a"])(e)),e.interactionChain.addInteraction(e.scaleTransformation),e.rotationTransformation=new Rl(Object(gt["a"])(e)),e.interactionChain.addInteraction(e.rotationTransformation),e.heightTransformation=new Gl(Object(gt["a"])(e)),e.interactionChain.addInteraction(e.heightTransformation),e.selectFeatureInteraction.hasMultiSelect(),e.mouseOverInteraction.hasMultiSelect=!0,(null==n.allowSelectMode||n.allowSelectMode)&&e.state.allowedModes.push(Object.keys(un).find((function(e){return un[e]===ln.SELECT}))),e._scratchCenter=new Cesium.Cartesian2,e.flippedY=!1,e.flippedX=!1,e.heights={min:0,max:0,clamped:!0},e.extent=ol.extent.createEmpty(),e.geometry=e._createExtent(),e.feature=new ol.Feature({geometry:e.geometry}),e.feature[ql]=!0,e.feature[_n.doNotTransform]=!0,e.feature.set("olcs_altitudeMode",e.heights.clamped?"clampToGround":"absolute"),e.feature.setId("_transformationFeature"),e.vertices=[],e.style=new ol.style.Style({stroke:new ol.style.Stroke({color:"#444444",width:2}),image:new ol.style.Icon({src:Ul.a,scale:.45})}),e}return Object(m["a"])(i,[{key:"className",get:function(){return"vcs.vcm.util.editor.FeatureLayerEditor"}}]),Object(m["a"])(i,[{key:"onSelect",value:function(){this.state.mode&ln.FEATUREMODES&&this.state.active?this.recalculateExtent():this._clearGeometriesFromLayer()}},{key:"activate",value:function(){ye(Object(fe["a"])(i.prototype),"activate",this).call(this),$l(G.getInstance().getActiveMap())}},{key:"_createExtent",value:function(){var e=this,t=ol.extent.createEmpty(),i=-1/0,n=1/0,r=!0;this.features.forEach((function(a){var s=e.isOblique?a[_n.obliqueGeometry]:a.getGeometry();t=ol.extent.extend(t,s.getExtent());var o=a.get("olcs_altitudeMode");if(("clampToGround"===o||null==o&&"clampToGround"===e.activeLayer.altitudeMode)&&null==a.get("olcs_groundLevel"))n=n>0?0:n;else{r=!1;var l=mi(a,e.activeLayer.storeyHeight);i=l.max>i?l.max:i,n=l.min<n?l.min:n}})),this.extent=t,this.heights.max=i===-1/0?0:i,this.heights.min=n===1/0?0:n,this.heights.clamped=r;var a=ol.extent.getSize(this.extent);return 0===a[0]&&0===a[1]&&(this.extent=ol.extent.buffer(this.extent,10,this.extent)),this._createExtentGeom()}},{key:"_createExtentGeom",value:function(){function e(e,t){for(var i=[[0,1],[0,3],[2,3],[2,1],[0,1]],n=new Array(5),r=0;r<5;r++)n[r]=[e[i[r][0]],e[i[r][1]],t];return new ol.geom.LineString(n)}var t;if(ol.extent.isEmpty(this.extent)){var i=[0,0,1,1];t=new ol.geom.MultiLineString([e(i,this.heights.min).getCoordinates()]),t[Jl]=!0}else{var n=e(this.extent,this.heights.max),r=n.getCoordinates();t=new ol.geom.MultiLineString([r]),t.appendLineString(e(this.extent,this.heights.min));for(var a=0;a<4;a++){var s=r[a].slice(0);s[2]=this.heights.min,t.appendLineString(new ol.geom.LineString([r[a],s]))}}return this.isOblique&&(t[_n.alreadyTransformedToImage]=!0),t}},{key:"_createVertex",value:function(e,t){e[2]=e[2]||0;var i=new ol.geom.Point(e);this.isOblique&&(i[_n.alreadyTransformedToImage]=!0);var n=new ol.Feature({geometry:i});return n[this.state.featureTypeSymbol]=cn.VERTEX,n[kr]=t,n[_n.doNotTransform]=!0,n}},{key:"_createVertices",value:function(){var e=this;if(!this.geometry[Jl]){for(var t=this.geometry.getCoordinates()[0],i=0;i<4;i++){var n=t[i];this.vertices.push(this._createVertex(n,i))}var r=ol.extent.getCenter(this.extent);r[2]=this.heights.max;var a=this._createVertex(r,4);a[this.state.featureTypeSymbol]=cn.HEIGHTVERTEX,a.setStyle(Ql),this.vertices.push(a);var s=this.heights.clamped?"clampToGround":"absolute";this.vertices.forEach((function(t,i){t.set("olcs_altitudeMode",s,!0),i<4&&t.setStyle(e.style)}),this),this.feature.set("olcs_altitudeMode",s),this.scratchLayer.addFeatures([].concat(Object(g["a"])(this.vertices),[this.feature]))}}},{key:"setMode",value:function(e){Kl.debug("FeatureLayerEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e})))),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,e),this.state.mode&ln.FEATUREMODES?this.recalculateExtent():this.state.mode&ln.FEATUREMODES||this._clearGeometriesFromLayer(),e&ln.SELECT?(this.translateInteraction.setActive(),this.scaleTransformation.setActive(),this.rotationTransformation.setActive(),this.heightTransformation.setActive()):e&ln.SCALE?(this.scaleTransformation.setModification(ne.NONE|ne.SHIFT),this.scaleTransformation.setActive(re.DRAGEVENTS)):e&ln.TRANSLATE?(this.translateInteraction.setModification(ne.NONE),this.translateInteraction.setActive(re.DRAGEVENTS)):e&ln.ROTATE&&(this.rotationTransformation.setModification(ne.NONE),this.rotationTransformation.setActive(re.DRAGEVENTS))}},{key:"setAltitudeMode",value:function(e){var t,i=this,n=[],r=Dl(this.features.values());try{var a=function(){var i=t.value;if(e&(hn.ABSOLUTE|hn.ZPLANE)&&"absolute"!==i.get("olcs_altitudeMode")){var r=gi(i).then((function(){i.set("olcs_altitudeMode","absolute")}));n.push(r)}else e&hn.CLAMP&&"clampToGround"!==i.get("olcs_altitudeMode")&&(yi(i),n.push(Promise.resolve()))};for(r.s();!(t=r.n()).done;)a()}catch(o){r.e(o)}finally{r.f()}var s=Promise.all(n);return s.then((function(){n.length&&i.recalculateExtent()}))}},{key:"translate",value:function(e,t,i){var n=this,r=i&&i.toTransform?i.toTransform:Wl.BOTH;if(this.extent=[this.extent[0]+e,this.extent[1]+t,this.extent[2]+e,this.extent[3]+t],r&Wl.VERTEX)for(var a=this.vertices.length-1;a>=0;a--)this.vertices[a].getGeometry().translate(e,t);r&Wl.GEOMETRY&&(this.feature.getGeometry().translate(e,t),this.features.forEach((function(i){n.isOblique?i[_n.obliqueGeometry].translate(e,t):i.getGeometry().translate(e,t)})))}},{key:"translateHeight",value:function(e,t,i){var n=this;this.state.altitudeMode&hn.CLAMP&&(this.state.altitudeMode=hn.ABSOLUTE);var r=i&&i.toTransform?i.toTransform:Wl.BOTH,a=!1;if(r&Wl.GEOMETRY&&(this.features.forEach((function(i){var r=i.get("olcs_altitudeMode");a=a||"clampToGround"===r||!r&&"clampToGround"===n.activeLayer.altitudeMode,i.set("olcs_altitudeMode","absolute",!0);var s=i.get("olcs_groundLevel");i.unset("olcs_groundLevel");var o=s&&(i.get("olcs_extrudedHeight")||i.get("olcs_storeyNumber")&&i.get("olcs_storeyHeight"));fi(i.getGeometry(),e,o?s+e:t,o)})),fi(this.geometry,e,t)),r&Wl.VERTEX){var s=this.vertices.length;while(s--)this.vertices[s].set("olcs_altitudeMode","absolute",!0),fi(this.vertices[s].getGeometry(),e,t)}this.heights.min+=e,this.heights.max+=e,a&&this.recalculateExtent(),this.heights.clamped=!1}},{key:"extrude",value:function(e,t,i){var n=this,r=i||{};this.state.altitudeMode&hn.CLAMP&&(this.state.altitudeMode=hn.ABSOLUTE);var a=r.toTransform||Wl.BOTH,s=[];if(a&Wl.GEOMETRY)this.features.forEach((function(i){var a=i.get("olcs_extrudedHeight"),o=i.get("olcs_altitudeMode"),l="absolute"===o||"absolute"===n.activeLayer.altitudeMode&&null==o||null!=i.get("olcs_groundLevel");if(!l){i.set("olcs_altitudeMode","absolute",!0);var c=gi(i);s.push(c)}if(null==a)r.setHeight?i.set("olcs_extrudedHeight",t):i.set("olcs_extrudedHeight",e);else{if(Array.isArray(a)){var u=a.length;if(r.setHeight)while(u--)a[u]=t;else while(u--)a[u]+=e}else null!=a&&(r.setHeight?a=t:a+=e);i.set("olcs_extrudedHeight",a)}})),this.recalculateExtent();else if(a&Wl.VERTEX){var o=this.vertices.length;while(o--)this.vertices[o].set("olcs_altitudeMode","absolute",!0),fi(this.vertices[o].getGeometry(),e,t)}return s.length?Promise.all(s).then((function(){n.recalculateExtent()})):Promise.resolve()}},{key:"placeOnTerrain",value:function(){var e=this,t=[];return this.features.forEach((function(e){t.push(gi(e))})),t.length?Promise.all(t).then((function(){e.recalculateExtent()})):Promise.resolve()}},{key:"setProperty",value:function(e,t,i){this.features.forEach((function(n){n.set(e,t,i)})),0===this.features.size&&Xl[e]&&(this.activeLayer[Xl[e]]=t),!i&&this.features.size&&this.recalculateExtent()}},{key:"unsetProperty",value:function(e,t){this.features.forEach((function(i){i.unset(e,t)})),0===this.features.size&&Xl[e]&&(this.activeLayer[Xl[e]]=void 0),!t&&this.features.size&&this.recalculateExtent()}},{key:"scale",value:function(e,t,i){var n=this,r=i||{},a=r.toTransform||Wl.BOTH,s=r.vertex||this.vertices[2],o=s[kr],l=s.getGeometry(),c=ol.extent.getSize(this.extent),u=t;if(r.maintainAspectRatio){var h=c[1]/c[0];h<1e3&&h>1e-4?(u=e*h,u=1===o||3===o?-u:u):r.maintainAspectRatio=!1}var d=[{dx:1,dy:3,across:2,flipY:!1,flipX:!1},{dx:0,dy:2,across:3,flipY:!0,flipX:!1},{dx:3,dy:1,across:0,flipY:!0,flipX:!0},{dx:2,dy:0,across:1,flipY:!1,flipX:!0}],m=d[o];if(a&Wl.VERTEX&&(l.translate(e,u),this.vertices[m.dx].getGeometry().translate(e,0),this.vertices[m.dy].getGeometry().translate(0,u),this.vertices[4].getGeometry().translate(e/2,u/2)),a&Wl.GEOMETRY){for(var f=this.vertices[m.across].getGeometry().getCoordinates(),g=l.getCoordinates(),y=f[1]-g[1]>0===m.flipY,p=f[0]-g[0]>0===m.flipX,v=[],_=0;_<4;_++)v[_]=this.vertices[_].getGeometry().getCoordinates();var b=ol.extent.boundingExtent(v),L=ol.extent.getSize(b),w=0!==c[0]?L[0]/c[0]:L[0],M=0!==c[1]?L[1]/c[1]:L[1];this.flippedY!==y&&(this.flippedY=y,M*=-1),this.flippedX!==p&&(this.flippedX=p,w*=-1),this.features.forEach((function(e){var t=n.isOblique?e[_n.obliqueGeometry]:e.getGeometry(),i=t.get("_vcsGeomType");!i||"bbox"!==i&&"rectangle"!==i||r.maintainAspectRatio||t.unset("_vcsGeomType",!0),t.scale(w,M,f)})),this.extent=b,this.feature.getGeometry().scale(w,M,f)}}},{key:"rotate",value:function(e,t){var i=this,n=t||{},r=n.toTransform||Wl.BOTH,a=ol.extent.getCenter(this.extent);if(r&Wl.VERTEX)for(var s=this.vertices.length-1;s>=0;s--)this.vertices[s].getGeometry().rotate(e,a);r&Wl.GEOMETRY&&(this.feature.getGeometry().rotate(e,a),this.features.forEach((function(t){var n=i.isOblique?t[_n.obliqueGeometry]:t.getGeometry();"bbox"===n.get("_vcsGeomType")&&n.set("_vcsGeomType","rectangle",!0),n.rotate(e,a)}))),n.isMoving||this.recalculateExtent()}},{key:"_clearGeometriesFromLayer",value:function(){var e=this.vertices.length,t=new Array(e+1);t[e]=this.feature.getId();while(e--)t[e]=this.vertices[e].getId();this.vertices.splice(0),this.scratchLayer.removeFeaturesById(t)}},{key:"recalculateExtent",value:function(){if(this.state.mode&ln.FEATUREMODES){var e=this._createExtent();if(this._clearGeometriesFromLayer(),e[Jl])return;this.geometry=e,this.feature.set("olcs_altitudeMode",this.heights.clamped?"clampToGround":"absolute",!0),this.feature.setGeometry(e),this.flippedY=!1,this.flippedX=!1,this.feature.setStyle(this.style),this._createVertices()}}},{key:"handleMapChange",value:function(e){$l(e),5===this.vertices.length&&this.vertices[4].changed(),ye(Object(fe["a"])(i.prototype),"handleMapChange",this).call(this,e)}}]),i}(Wo),tc=ec,ic=i(678),nc=i.n(ic),rc=k.getLogger("vcs.vcm.util.editor.GeometryLayerEditor"),ac=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(d["a"])(this,i),e=t.call(this,n),e.state.allowedGeometries=n.allowedGeometries||["Point","LineString","Polygon","BBox","Circle","Rectangle","Label"],e.lastFeatureType=null,(null==n.allowEditMode||n.allowEditMode)&&e.state.allowedModes.push(Object.keys(un).find((function(e){return un[e]===ln.EDIT}))),e.geometryEditor=null,e.defaultMode=un[n.defaultMode]||ln.CREATE,e.scratchLayer.setStyle(new ol.style.Style({image:new ol.style.Icon({src:nc.a,scale:.45})})),e.state.dedicatedFeatureStyle=n.dedicatedFeatureStyle,e}return Object(m["a"])(i,[{key:"className",get:function(){return"vcs.vcm.util.editor.GeometryLayerEditor"}}]),Object(m["a"])(i,[{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.isOblique&&(G.getInstance().getActiveMap().switchEnabled=!0)}},{key:"beforeSetMode",value:function(e){ye(Object(fe["a"])(i.prototype),"beforeSetMode",this).call(this,e),e&ln.GEOMETRYMODES||this.clearGeometryEditor()}},{key:"setMode",value:function(e){if(rc.debug("GeometryLayerEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e})))),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,e),this.isOblique&&(G.getInstance().getActiveMap().switchEnabled=!(e&ln.GEOMETRYMODES)||0===this.features.size),e&ln.GEOMETRYMODES)if(this.geometryEditor)this.geometryEditor.validate()?(this.geometryEditor.setMode(e),this.geometryEditor.interactionChain.setActive(!0)):this.clearGeometryEditor();else if(this.features.size){var t=this.features.values().next().value;if(this.features.size>1)return void this.selectFeatureInteraction.selectFeature(t);this.editingFeature=t,this.editingFeature[this.state.featureTypeSymbol]|=cn.EDITING,this.geometryEditor=ga({parent:this,layer:this.activeLayer,geometry:this.isOblique?this.editingFeature[_n.obliqueGeometry]:this.editingFeature.getGeometry(),feature:this.editingFeature,onFinish:this._onCreationFinish.bind(this),onRemoved:this._onCreationFinish.bind(this)}),this.geometryEditor.initialize(),this.geometryEditor.setMode(e),this.interactionChain.addInteraction(this.geometryEditor.interactionChain)}}},{key:"setAltitudeMode",value:function(e){var t=this;return e&this.state.altitudeMode?Promise.resolve():ye(Object(fe["a"])(i.prototype),"setAltitudeMode",this).call(this,e).then((function(){t.geometryEditor&&t.geometryEditor.setAltitudeMode(e)}))}},{key:"createFeature",value:function(e,t,i){o(e,Object.keys(fa)),l(t,[String,Number]);var n=i||fa[e](),r=new ol.Feature({geometry:n});if(this._setFeatureEditable(r),this.state.altitudeMode!==this.state.defaultAltitudeMode){var a=this.state.altitudeMode!==hn.CLAMP&&G.getInstance().getActiveMap()instanceof Ut?"absolute":"clampToGround";r.set("olcs_altitudeMode",a)}else this.state.defaultAltitudeMode!==hn.ABSOLUTE||G.getInstance().getActiveMap()instanceof Ut||r.set("olcs_altitudeMode","clampToGround");if(this.state.classificationType!==this.state.defaultClassificationType&&r.set("olcs_classificationType",fn[this.state.classificationType]),t&&r.setId(t),this.lastFeatureType=e,this.state.layerName){var s=G.getInstance().getLayerByName(this.state.layerName);if(s&&s instanceof _n&&(t&&s.removeFeaturesById([t]),this.isOblique&&(n[_n.alreadyTransformedToImage]=!0),s.addFeatures([r]),this.state.dedicatedFeatureStyle||"Label"===e)){var c=s.defaultStyle instanceof dt?s.defaultStyle:mt;r[ut]=c.clone(new dt({name:r.getId().toString()})),r.setStyle(r[ut].style)}}return r}},{key:"setModeAndSelectFeature",value:function(e,t){this.getRootEditor().beforeSetMode(e),this.state.mode=e,this.selectFeatureInteraction.selectFeature(t)}},{key:"clearGeometryEditor",value:function(){if(this.editingFeature&&(this.editingFeature[this.state.featureTypeSymbol]^=cn.EDITING,this.editingFeature=null),this.geometryEditor){var e=this.geometryEditor.feature.getId();this.features.has(e)&&!this.geometryEditor.validate()&&this.selectFeatureInteraction.clearSelectionSet(!0),this.geometryEditor.stopCreation(),this.interactionChain.removeInteraction(this.geometryEditor.interactionChain),this.geometryEditor.destroy(),this.geometryEditor=null}}},{key:"onSelect",value:function(){if(this.clearGeometryEditor(),this.state.active){var e=this.state.mode;this.state.mode&ln.GEOMETRYMODES&&this.features.size>1&&this.parent?(e=ln.SELECT,this.getRootEditor().setMode(e)):e&ln.CREATE&&0===this.features.size?this._onCreationFinish():e&ln.GEOMETRYMODES&&this.getRootEditor().setMode(e)}}},{key:"_onCreationFinish",value:function(){if(this.state.mode===ln.CREATE&&this.defaultMode===ln.CREATE){var e=this.createFeature(this.lastFeatureType);this.setModeAndSelectFeature(this.state.mode,e)}else this.getRootEditor().setMode(this.defaultMode)}},{key:"convertEditingFeatureToPolygon",value:function(){if(this.editingFeature&&1===this.features.size){var e=this.isOblique?this.editingFeature[_n.obliqueGeometry]:this.editingFeature.getGeometry(),t=pi(e);this.isOblique&&(t[_n.alreadyTransformedToImage]=!0),this.editingFeature.setGeometry(t);var i=this.editingFeature;this.selectFeatureInteraction.clearSelectionSet(!0),this.selectFeatureInteraction.selectFeature(i)}}},{key:"setEditingFeatureTypeProperty",value:function(e,t){this.editingFeature&&1===this.features.size&&(this.editingFeature.set(e,t),this.selectFeatureInteraction.clearSelectionSet(!0),this.selectFeatureInteraction.selectFeature(this.editingFeature))}},{key:"handleMapChange",value:function(e){ye(Object(fe["a"])(i.prototype),"handleMapChange",this).call(this,e)}}]),i}(Wo),sc=ac,oc=window.localStorage,lc=k.getLogger("vcs.vcm.util.storage");function cc(){if(!oc)return!1;try{var e="__storage_test__";return oc.setItem(e,e),oc.removeItem(e),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==oc.length}}var uc=function(){function e(t){Object(d["a"])(this,e),this.namespace=t}return Object(m["a"])(e,[{key:"setItem",value:function(e,t){cc()?oc.setItem("".concat(this.namespace,".").concat(e),t):lc.warning("storage unavailable or full")}},{key:"getItem",value:function(e){return oc?oc.getItem("".concat(this.namespace,".").concat(e)):null}},{key:"removeItem",value:function(e){oc&&oc.removeItem("".concat(this.namespace,".").concat(e))}}]),e}(),hc=uc,dc=k.getLogger("vcs.vcm.util.editor.StyleLayerEditor"),mc=new hc("StyleLayerEditor"),fc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(d["a"])(this,i),e=t.call(this,n),e.icons=n.icons||[],e.customIcons=[],e.allowCustomIcons=n.allowCustomIcons||!1,e.storeCustomIcons=n.storeCustomIcons||!1,e.currentStyleOptions={text:null,fill:null,stroke:null,image:null},e.currentStyleItem=mt.clone(),!n.noDefaultIcons){var r=G.getInstance().libraryBasePath;e._fetchIcons("".concat(r,"images/editor/defaultIconsCategory.json"))}return n.iconLibraries&&n.iconLibraries.forEach(e._fetchIcons.bind(Object(gt["a"])(e))),e.allowCustomIcons&&e.storeCustomIcons&&cc()&&e._fetchCustomIcons(),e._syncOptions(mt.getOptions()),e}return Object(m["a"])(i,[{key:"className",get:function(){return"vcs.vcm.util.editor.StyleLayerEditor"}}]),Object(m["a"])(i,[{key:"_fetchIcons",value:function(e){var t=this;return q.a.get(e).then((function(i){var n=i.data,r=e.replace(/\/?[^/]+$/,"");Array.isArray(n)?n.forEach((function(e){if("string"===typeof e){var i=/^data/.test(e)?e:"".concat(r,"/").concat(e);t.icons.push({src:i})}else e.src="".concat(r,"/").concat(e.src),t.icons.push(e)})):dc.error("could not load icon library, content of ".concat(e," is not a JSONArray"))}))}},{key:"_fetchCustomIcons",value:function(){var e=this,t=mc.getItem("customIconIndex");t&&JSON.parse(t).forEach((function(t){var i=mc.getItem("".concat(t));i&&e.customIcons.push({src:i})}))}},{key:"readIconFromFile",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.allowCustomIcons?new Promise((function(n,r){var a=new FileReader;a.onloadend=function(){var e=a.result;if(t.customIcons.push(Object.assign(i,{src:e})),t.storeCustomIcons&&cc()){var r=JSON.parse(mc.getItem("customIconIndex")||"[]"),s=Object(u["c"])();r.push(s),mc.setItem("customIconIndex",JSON.stringify(r)),mc.setItem("".concat(s),e)}n()},a.onerror=r,a.readAsDataURL(e)})):(dc.warning("custom icons are not supported at this time"),Promise.resolve())}},{key:"deleteCustomIcon",value:function(e){if(this.storeCustomIcons){var t=JSON.parse(mc.getItem("customIconIndex")||"[]"),i=t.filter((function(t){var i=mc.getItem(t);return i!==e||(mc.removeItem(t),!1)}));mc.setItem("customIconIndex",JSON.stringify(i))}var n=this.customIcons.findIndex((function(t){return t.src===e}));n>-1&&this.customIcons.splice(n,1)}},{key:"addEditingLayer",value:function(e){ye(Object(fe["a"])(i.prototype),"addEditingLayer",this).call(this,e),this.onSelect()}},{key:"setMode",value:function(){this.onSelect()}},{key:"onSelect",value:function(){if(this.activeLayer){this.state.isDeclarativeStyle=!1;var e=this.activeLayer.style;if(e instanceof Ct&&(this.state.isDeclarativeStyle=!0,e=null),!this.state.isDeclarativeStyle&&this.features.size){var t=this.features.get(this.state.selectedFeatureId);e=t[ut]||e}this.state.isLayerStyle=this.activeLayer.style===e,e?this.currentStyleItem&&this.currentStyleItem===e||(this.currentStyleItem=e,this._syncOptions(e.getOptions())):(this.currentStyleOptions.text=null,this.currentStyleOptions.fill=null,this.currentStyleOptions.stroke=null,this.currentStyleOptions.image=null,this.currentStyleItem=null)}}},{key:"setLayerStyle",value:function(e){this.activeLayer.setStyle(e||this.activeLayer.defaultStyle),this.onSelect()}},{key:"_syncOptions",value:function(e){e.fill?(this.currentStyleOptions.fill?this.currentStyleOptions.fill.color=e.fill.color:(e.fill.pattern||(e.fill.pattern=null),this.currentStyleOptions.fill=e.fill),e.fill.pattern&&this.currentStyleOptions.fill.pattern?Object.assign(this.currentStyleOptions.fill.pattern,e.fill.pattern):this.currentStyleOptions.fill.pattern={type:0,color:[0,0,0,1],width:1,size:10}):this.currentStyleOptions.fill=null,this.currentStyleOptions.stroke=e.stroke||null,e.text?(this.currentStyleOptions.text=e.text,this.currentStyleOptions.text.font=Ue(e.text.font||"18px sans-serif")):this.currentStyleOptions.text=null,e.image?(this.currentStyleOptions.image=e.image,this.currentStyleOptions.image.currentImage=e.image.radius?this.currentStyleItem.image.getImage(1).toDataURL():e.image.src):this.currentStyleOptions.image=null}},{key:"addDedicatedStyleFromCurrentStyle",value:function(){var e,t=this;!this.state.isDeclarativeStyle&&this.features.size&&(this.features.forEach((function(i){var n=t.currentStyleItem.clone(new dt({id:i.getId()}));e||(e=n),i[ut]=n,i.setStyle(i[ut].style),i.changed()})),this.currentStyleItem=e,this.state.isLayerStyle=!1)}},{key:"cloneCurrentStyleOntoLayer",value:function(){var e=this.currentStyleItem.clone();this.activeLayer.setStyle(e),this.currentStyleItem=e}},{key:"updateFont",value:function(e){this.currentStyleItem.text||(this.currentStyleItem.text=new ol.style.Text);var t=We(e);this.currentStyleItem.text.setFont(t),this.currentStyleOptions.text||(this.currentStyleOptions.text={}),this.currentStyleOptions.text.font?Object.assign(this.currentStyleOptions.text.font,e):this.currentStyleOptions.text.font=e}},{key:"setImage",value:function(e){var t,i=Object.assign({},e);t=i.radius?rt(i):new ol.style.Icon(i),this.currentStyleItem.image=t;var n=this.currentStyleItem.getOptions({image:!0});n.image?(this.currentStyleOptions.image=n.image,this.currentStyleOptions.image.currentImage=this.currentStyleOptions.image.src||this.currentStyleItem.image.getImage(1).toDataURL()):this.currentStyleOptions.image=null}},{key:"updateStyle",value:function(e){var t=this;this.features.size&&this.currentStyleItem&&this.features.forEach((function(e){if(!e[ut]||e[ut].name!==t.currentStyleItem.name){var i=e[ut];i?t.currentStyleItem.clone(i):e[ut]=t.currentStyleItem.clone(new dt({id:e.getId()})),e.setStyle(e[ut].style)}e.changed()})),e&&this._syncOptions(this.currentStyleItem.getOptions())}},{key:"updateStyleSection",value:function(e,t){var i=this;o(e,["fill","stroke","text","image"]),this.features.size&&this.currentStyleItem&&this.features.forEach((function(n){n[ut]||(n[ut]=i.activeLayer.style.clone(new dt({id:n.getId()})),n.setStyle(n[ut].style)),n[ut].name!==i.currentStyleItem.name&&("fill"===e?(n[ut].fillColor=i.currentStyleItem.fillColor.slice(),n[ut].pattern=i.currentStyleItem.pattern?Object.assign({},i.currentStyleItem.pattern):void 0):n[ut][e]=i.currentStyleItem[e].clone()),t||n.changed()}))}}]),i}(Wo),gc=fc,yc=k.getLogger("vcs.vcm.util.editor.CompositeLayerEditor"),pc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;if(Object(d["a"])(this,i),n=t.call(this,e),n.children=[],e.featureLayerEditor&&n.children.push(new tc(Object.assign(e.featureLayerEditor,{parent:Object(gt["a"])(n)}))),e.geometryLayerEditor){var r=Object.assign(e.geometryLayerEditor,{parent:Object(gt["a"])(n)});r.dedicatedFeatureStyle=!(null!=r.dedicatedFeatureStyle||!e.styleLayerEditor),n.children.push(new sc(r))}return e.styleLayerEditor&&n.children.push(new gc(Object.assign(e.styleLayerEditor,{parent:Object(gt["a"])(n)}))),n}return Object(m["a"])(i,[{key:"className",get:function(){return"vcs.vcm.util.editor.CompositeLayerEditor"}}]),Object(m["a"])(i,[{key:"getFeatureLayerEditor",value:function(){return this.children.find((function(e){return e instanceof tc}))}},{key:"getGeometryLayerEditor",value:function(){return this.children.find((function(e){return e instanceof sc}))}},{key:"getStyleLayerEditor",value:function(){return this.children.find((function(e){return e instanceof gc}))}},{key:"initialize",value:function(){this.interactionChain.initialize(),this.children.forEach((function(e){e.initialize()})),this.selectFeatureInteraction.onCesiumSelect(this.onCesiumSelect.bind(this))}},{key:"activate",value:function(){this.children.forEach((function(e){e.activate()})),ye(Object(fe["a"])(i.prototype),"activate",this).call(this)}},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.children.forEach((function(e){e.deactivate()}))}},{key:"beforeSetMode",value:function(e){ye(Object(fe["a"])(i.prototype),"beforeSetMode",this).call(this),this.children.forEach((function(t){t.beforeSetMode(e)}))}},{key:"setMode",value:function(e){yc.debug("CompositeLayerEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e})))),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,e),this.children.forEach((function(t){t.setMode(e)}))}},{key:"setAltitudeMode",value:function(e){var t=this,n=Promise.resolve();return this.children.forEach((function(t){n=n.then((function(){return t.setAltitudeMode(e)}))})),n.then((function(){return ye(Object(fe["a"])(i.prototype),"setAltitudeMode",t).call(t,e)}))}},{key:"addEditingLayer",value:function(e){ye(Object(fe["a"])(i.prototype),"addEditingLayer",this).call(this,e),this.children.forEach((function(t){t.addEditingLayer(e)}))}},{key:"destroy",value:function(){ye(Object(fe["a"])(i.prototype),"destroy",this).call(this),this.children.forEach((function(e){e.destroy()}))}}]),i}(Wo),vc=pc,_c=(i(668),"<div class='balloon' id='myBalloon'>\n  <h1 class='balloon-title'><%= obj.planningName %></h1>\n  <div class='balloon-content'>\n    <%= obj.planningDescription %>\n  </div>\n  <div class='balloon-close-col'>\n    <button class='close-balloon'><i class='fa fa-times fa-lg'></i></button>\n  </div>\n  <div class='dialog-image-balloon'></div>\n  <div class='balloon-left-edge'></div>\n</div>\n"),bc="<div class='balloon' id='myBalloon'>\n  <div class='balloon-content'>\n    <h1 class='balloon-title'> Available Attributes </h1>\n    <% for (var key in obj) { %>\n    <% if (obj[key] instanceof Object){%>\n    <% for (var key2 in obj[key]) { %>\n    <p class='balloon-text'><span class='balloon-street'> <%=key%>.<%=key2%> : <%=obj[key][key2]%></span><br></p>\n    <% } %>\n    <% } else{ %>\n    <p class='balloon-text'><span class='balloon-street'> <strong> <%=key%> </strong> : <%=obj[key]%></span><br></p>\n    <% } %>\n    <% } %>\n  </div>\n  <div class='balloon-close-col'>\n    <button class='close-balloon'><i class='fa fa-times fa-lg'></i></button>\n  </div>\n  <div class='dialog-image-balloon'></div>\n  <div class='balloon-left-edge'></div>\n</div>\n",Lc=[{title:{de:"Leerer Balloon",en:"Empty Balloon"},template:""},{title:{de:"Ebenen Name & Beschreibung",en:"Layer Name & Description"},template:_c.trim()},{title:{de:"Alle Attribute",en:"All Properties"},template:bc.trim()}],wc=Lc;O.PLANNINGINSTANCES_CHANGED="PLANNINGINSTANCES_CHANGED";var Mc,kc,Oc,Tc,Sc,Cc,jc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r,s=i.getDefaultOptions();(n.serviceUrl=e.serviceUrl||"https://planning.virtualcityplanner.de",n.scenarioId=e.scenarioId,n.projectId=e.projectId,n.useLocalCRS=Object(u["e"])(e.useLocalCRS,s.useLocalCRS),n.showInLegend=Object(u["e"])(e.showInLegend,s.showInLegend),n.legendTitle=e.legendTitle||s.legendTitle,n.loginManager=cl.getInstance(),n.url=a["a"].parse(n.serviceUrl),n.url.extendPath("planning"),n.loginManager.registerWidget({onLogin:[n.fetchUserPlannings.bind(Object(gt["a"])(n)),n.fetchUserCreate.bind(Object(gt["a"])(n))],onLogout:[n.fetchUserPlannings.bind(Object(gt["a"])(n))],beforeLogout:[n.clear.bind(Object(gt["a"])(n)),n.setUserMayCreate.bind(Object(gt["a"])(n),{data:!1})],serviceUrl:n.serviceUrl,projectId:n.projectId,scenarioId:n.scenarioId}).then((function(){n.url=n.loginManager.url.clone(),n.url.extendPath("planning"),n.url.queryParams=n.loginManager.url.queryParams})).catch((function(e){n.logger.warning(e.message),n.logger.warning("could not initialize planning, missing login url")})),n.planningInstances=[],n.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"],n._linkedPlannings=[],n.activePlanningInstance=null,n.userMayCreate={permission:!1},n.fetching=null,n.legendCluster=new Vs({title:n.legendTitle}),n.commentIcons=n._setupCommentStyle(e.commentIcons),n.terrainUrl=e.terrainUrl||null,n.useDefaultTerrain=Object(u["e"])(e.useDefaultTerrain,s.useDefaultTerrain),n.allowBalloonEditor=Object(u["e"])(e.allowBalloonEditor,s.allowBalloonEditor),n.predefinedBalloons=wc,Array.isArray(e.predefinedBalloons))&&(r=n.predefinedBalloons).push.apply(r,Object(g["a"])(e.predefinedBalloons));return n.editorOptions=Object.assign(e.editorOptions||{},{hideExport:!0,showStyleSelector:Object(u["e"])(e.showStyleSelector,s.showStyleSelector)}),n.allowedFeatureStoreGeometries=e.allowedFeatureStoreGeometries,n.featureStoreEditorDefaultMode=e.featureStoreEditorDefaultMode||s.featureStoreEditorDefaultMode,n.simpleEditorUi=Object(u["e"])(e.simpleEditorUi,s.simpleEditorUi),n.allowEditorSwitch=Object(u["e"])(e.allowEditorSwitch,s.allowEditorSwitch),n.isExtendedPlanner=Object(u["e"])(e.isExtendedPlanner,s.isExtendedPlanner),n.styleLayerEditorOptions=e.styleLayerEditorOptions||s.styleLayerEditorOptions,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{serviceUrl:"",scenarioId:"",projectId:"",useLocalCRS:!1,showInLegend:!0,legendTitle:{en:"Plannings",de:"Planungen",pl:"Planowanie"},commentIcons:void 0,useDefaultTerrain:!0,allowBalloonEditor:!1,predefinedBalloons:void 0,editorOptions:void 0,styleLayerEditorOptions:{},showStyleSelector:!1,allowedFeatureStoreGeometries:void 0,featureStoreEditorDefaultMode:"create",simpleEditorUi:!1,allowEditorSwitch:!1,isExtendedPlanner:!1})}},{key:"className",get:function(){return"vcs.vcm.widgets.Planning"}}]),Object(m["a"])(i,[{key:"_setupCommentStyle",value:function(e){var t;if(this.framework.getStyleByName("planningCommentStyle"))return{};var i=this.framework.libraryBasePath,n=e||(t={},Object(U["a"])(t,ml.DEFAULT,"".concat(i,"images/editor/icon-bubble.png")),Object(U["a"])(t,ml.WARNING,"".concat(i,"images/editor/icon-bubble-red.png")),Object(U["a"])(t,ml.INFO,"".concat(i,"images/editor/icon-bubble-blue.png")),Object(U["a"])(t,ml.SUCCESS,"".concat(i,"images/editor/icon-bubble-green.png")),t),r={strokeColor:'color("#AAAAAA")'};if("string"===typeof n)r.image='"'.concat(n,'"');else{var a=Object.values(ml),s=[];Object.entries(n).forEach((function(e){var t=Object(Oe["a"])(e,2),i=t[0],n=t[1];a.includes(i)&&i!==ml.DEFAULT&&s.push(['${commentType} === "'.concat(i,'"'),'"'.concat(n,'"')])})),n[ml.DEFAULT]=n[ml.DEFAULT]||"".concat(i,"images/editor/icon-bubble.png"),s.push(["true",'"'.concat(n[ml.DEFAULT],'"')]),r.image={conditions:s},a.forEach((function(e){n[e]||(n[e]=n[ml.DEFAULT])}))}var o=new Ct({name:"planningCommentStyle",declarativeStyle:r});return o.cesiumStyle.ready?(this.framework.addStyle(o),"string"===typeof n?{}:n):(this.logger.warning("could not setup custom comment style, using default"),this._setupCommentStyle())}},{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;if(this.layerEditor=new vc({geometryLayerEditor:{allowedGeometries:this.allowedFeatureStoreGeometries,defaultMode:this.featureStoreEditorDefaultMode},featureLayerEditor:{},styleLayerEditor:this.styleLayerEditorOptions}),this.layerEditor.initialize(),this.commentsLayerEditor=new vc({geometryLayerEditor:{allowedGeometries:["Point"],defaultMode:"edit"},styleLayerEditor:{}}),this.useDefaultTerrain&&!this.terrainUrl){var t=this.framework.getLayers().find((function(e){return e.activeOnStartup&&e instanceof is}));this.terrainUrl=t?t.url:null}if(this.terrainUrl&&!/https?:/.test(this.terrainUrl)){var n=a["a"].parse(window.location.href);n.queryParams={},n.hashPath=[],/^\//.test(this.terrainUrl)?(n.path=[],this.terrainUrl="".concat(n.toString()).concat(this.terrainUrl)):this.terrainUrl="".concat(n.toString().replace(/\/$/,""),"/").concat(this.terrainUrl.replace(/^\.\//,""))}if(this.fetchUserPlannings(),this.showInLegend&&(this.legendCluster=mo(),!this.legendCluster)){this.legendCluster=new Vs({title:this.legendTitle});var r=this.framework.getWidgetByType("vcs.vcm.widgets.legend.Legend");r&&r.cluster.push(this.legendCluster)}this.initialized=!0,this.initializedFinished()}return!0}},{key:"handleMapChangeEvent",value:function(e){ye(Object(fe["a"])(i.prototype),"handleMapChangeEvent",this).call(this,e),-1===this.supportedMaps.indexOf(e.className)?this.legendCluster.visible=!1:this.legendCluster.visible=!0,this.planningInstances.forEach((function(t){t.handleMapChange(e)}))}},{key:"fetchUserCreate",value:function(){var e=this.url.clone();q.a.post(e.extendPath("permission").toString(),{mapId:this.scenarioId}).then(this.setUserMayCreate.bind(this))}},{key:"setUserMayCreate",value:function(e){null!==e.data&&(this.userMayCreate.permission=e.data)}},{key:"fetchUserPlannings",value:function(){var e=this,t=this.url.clone();this.fetching=q.a.post(t.extendPath("list").toString(),{mapId:this.scenarioId}).then(this.setPlannings.bind(this)).catch((function(t){e.logger.error(t)}))}},{key:"setPlannings",value:function(e){var t=this;this.clear().then((function(){var i=e.data;i.forEach(t.createPlanningInstance,t),t._linkedPlannings=[],t.fetching=null,t.framework.publish(O.PLANNINGINSTANCES_CHANGED,t.planningInstances)}))}},{key:"setActivePlanning",value:function(e){if(o(e,El),this.activePlanningInstance){if(this.activePlanningInstance._id===e._id)return;this.activePlanningInstance.maintainLockInterval&&this.activePlanningInstance.unlock(),this.activePlanningInstance.unLoad()}this.activePlanningInstance=e,this.activePlanningInstance&&this.activePlanningInstance.load()}},{key:"deactivateActivePlanning",value:function(){this.activePlanningInstance&&(this.activePlanningInstance.maintainLockInterval&&this.activePlanningInstance.unlock(),this.activePlanningInstance.unLoad()),this.activePlanningInstance=null}},{key:"createPlanningInstance",value:function(e){e.url=this.url;var t=new El(Object.assign(e,{editorId:this.layerEditor.id,commentsEditorId:this.commentsLayerEditor.id,terrainUrl:this.terrainUrl}));return this._linkedPlannings.indexOf(e._id)>-1&&e.public&&t.load(),this.planningInstances.push(t),this.legendCluster.children.push(new oo({planningInstance:t})),this.legendCluster.visible=!0,t}},{key:"addPlanningInstance",value:function(e,t,i){var n=this;o(e,String),l(t,String),l(i,Object);var r={name:e,description:t,mapId:this.scenarioId};i&&(r.properties=i);var a=this.url.clone();return q.a.post(a.extendPath("add").toString(),r).then((function(e){var t=e.data,i=n.createPlanningInstance(t);return n.framework.publish(O.PLANNINGINSTANCES_CHANGED,n.planningInstances),i})).catch((function(e){n.logger.warning(e.response.data)}))}},{key:"deletePlanning",value:function(e){var t=this;o(e,El);var i=this.url.clone();return q.a.post(i.extendPath("remove").toString(),{_id:e._id}).then((function(){var i=t.planningInstances.findIndex((function(t){return t._id===e._id}));t.planningInstances.splice(i,1),t.activePlanningInstance&&t.activePlanningInstance._id===e._id&&(t.activePlanningInstance=null);var n=t.legendCluster.children.findIndex((function(t){return t instanceof oo&&t.planningInstance._id===e._id}));return t.legendCluster.children.splice(n,1),e.destroy(),t.framework.publish(O.PLANNINGINSTANCES_CHANGED,t.planningInstances),e._id}))}},{key:"clear",value:function(){var e=this,t=this.planningInstances.map((function(t){return t.destroy().then((function(){return Promise.resolve()})).catch((function(){return e.logger.error("could not unlock planning instance".concat(t.name)),Promise.resolve()}))}));return Promise.all(t).then((function(){return e.planningInstances.splice(0),e.activePlanningInstance=null,e.legendCluster.children.splice(0),e.legendCluster.visible=!1,Promise.resolve()}))}},{key:"getConfigObject",value:function(){return{useLocalCRS:this.useLocalCRS}}},{key:"handleURLParameter",value:function(e){var t=this;e.plannings&&Array.isArray(e.plannings)&&this.framework.subscribeOnce("PLANNINGINSTANCES_CHANGED",(function(){t.planningInstances.filter((function(t){return e.plannings.includes(t._id)})).forEach((function(e){e.load()}))}))}},{key:"getLink",value:function(e){var t=this.planningInstances.filter((function(e){return e.public&&e.loaded})).map((function(e){return e._id}));e.queryParams.plannings&&delete e.queryParams.plannings,t.length>0&&e.addQueryParams({plannings:JSON.stringify(t)})}}]),i}(Ys),Ec=jc,Ic=function(){function e(t,i,n){Object(d["a"])(this,e),this.id=t,this.symbol=i,this.openlayersFilter=n}return Object(m["a"])(e,[{key:"getId",value:function(){return this.id}},{key:"getOpenlayersFilter",value:function(){return this.openlayersFilter}}]),e}(),Dc={IS_NULL:new Ic("IS_NULL","isNull",ol.format.filter.isNull),EQUAL_TO:new Ic("EQUAL_TO"," = ",ol.format.filter.EqualTo),NOT_EQUAL_TO:new Ic("NOT_EQUAL_TO"," != ",ol.format.filter.NotEqualTo),LESS_THAN:new Ic("LESS_THAN"," < ",ol.format.filter.LessThan),GREATER_THAN:new Ic("GREATER_THAN"," > ",ol.format.filter.GreaterThan),LESS_THAN_OR_EQUAL_TO:new Ic("LESS_THAN_OR_EQUAL_TO"," <= ",ol.format.filter.LessThanOrEqualTo),GREATER_THAN_OR_EQUAL_TO:new Ic("GREATER_THAN_OR_EQUAL_TO"," >= ",ol.format.filter.GreaterThanOrEqualTo),LIKE:new Ic("LIKE","like",ol.format.filter.IsLike),BETWEEN:new Ic("BETWEEN","between",ol.format.filter.IsBetween),BBOX:new Ic("BBOX","bbox",ol.format.filter.Bbox),INTERSECTS:new Ic("INTERSECTS","intersects",ol.format.filter.Intersects),DWITHIN:new Ic("DWITHIN","distance within",ol.format.filter.DWithin),WITHIN:new Ic("WITHIN","within",ol.format.filter.Within),AND:new Ic("AND","and",ol.format.filter.and),OR:new Ic("OR","or",ol.format.filter.or)},Pc=Ic,Ac=k.getLogger("vcs.vcm.cityGML.property.Property"),xc={GEOMETRY:0,ATTRIBUTE:1,GENERICATTRIBUTE:2,GENERICDATEATTRIBUTE:3,DATEATTRIBUTE:4,DATEYEARATTRIBUTE:5,FILTER:6},Yc={GEOMETRY:0,STRING:1,DOUBLE:2,INTEGER:3,BOOLEAN:4,DATE:5,DATETIME:6,FILTER:7},Nc=function(){function e(t,i,n,r,a,s,o){Object(d["a"])(this,e),this.id=t,this.type=n,this.dataType=o,this.allowedComparisons=[],this.prefix=s,this.valueReference=r||"".concat(s,":").concat(this.id);for(var l=0;l<a.length;l++){var c=a[l];i.hasOwnProperty(c)&&this.allowedComparisons.push(i[c])}}return Object(m["a"])(e,[{key:"getPrefix",value:function(){return Ac.deprecate("getPrefix","access the prefix property."),this.prefix}},{key:"getId",value:function(){return Ac.deprecate("getId","access the id property."),this.id}},{key:"getType",value:function(){return Ac.deprecate("getType","access the type property."),this.type}},{key:"getAllowedComparisons",value:function(){return Ac.deprecate("getAllowedComparisons","access the allowedComparisons property."),this.allowedComparisons}},{key:"getValueReference",value:function(){return Ac.deprecate("getValueReference","access the valueReference property."),this.valueReference}}]),e}(),Fc={Filter:(Mc={},Object(U["a"])(Mc,Dc.AND.id,Dc.AND),Object(U["a"])(Mc,Dc.OR.id,Dc.OR),Mc),Geometry:(kc={},Object(U["a"])(kc,Dc.BBOX.id,Dc.BBOX),Object(U["a"])(kc,Dc.INTERSECTS.id,Dc.INTERSECTS),Object(U["a"])(kc,Dc.DWITHIN.id,Dc.DWITHIN),Object(U["a"])(kc,Dc.WITHIN.id,Dc.WITHIN),kc),StringAttribute:(Oc={},Object(U["a"])(Oc,Dc.EQUAL_TO.id,Dc.EQUAL_TO),Object(U["a"])(Oc,Dc.NOT_EQUAL_TO.id,Dc.NOT_EQUAL_TO),Object(U["a"])(Oc,Dc.LIKE.id,Dc.LIKE),Object(U["a"])(Oc,Dc.IS_NULL.id,Dc.IS_NULL),Oc),BooleanAttribute:(Tc={},Object(U["a"])(Tc,Dc.EQUAL_TO.id,Dc.EQUAL_TO),Object(U["a"])(Tc,Dc.NOT_EQUAL_TO.id,Dc.NOT_EQUAL_TO),Object(U["a"])(Tc,Dc.IS_NULL.id,Dc.IS_NULL),Tc),DateAttribute:(Sc={},Object(U["a"])(Sc,Dc.EQUAL_TO.id,Dc.EQUAL_TO),Object(U["a"])(Sc,Dc.NOT_EQUAL_TO.id,Dc.NOT_EQUAL_TO),Object(U["a"])(Sc,Dc.LESS_THAN.id,Dc.LESS_THAN),Object(U["a"])(Sc,Dc.GREATER_THAN.id,Dc.GREATER_THAN),Object(U["a"])(Sc,Dc.LESS_THAN_OR_EQUAL_TO.id,Dc.LESS_THAN_OR_EQUAL_TO),Object(U["a"])(Sc,Dc.GREATER_THAN_OR_EQUAL_TO.id,Dc.GREATER_THAN_OR_EQUAL_TO),Object(U["a"])(Sc,Dc.BETWEEN.id,Dc.BETWEEN),Object(U["a"])(Sc,Dc.IS_NULL.id,Dc.IS_NULL),Sc),NumberAttribute:(Cc={},Object(U["a"])(Cc,Dc.EQUAL_TO.id,Dc.EQUAL_TO),Object(U["a"])(Cc,Dc.NOT_EQUAL_TO.id,Dc.NOT_EQUAL_TO),Object(U["a"])(Cc,Dc.LESS_THAN.id,Dc.LESS_THAN),Object(U["a"])(Cc,Dc.GREATER_THAN.id,Dc.GREATER_THAN),Object(U["a"])(Cc,Dc.LESS_THAN_OR_EQUAL_TO.id,Dc.LESS_THAN_OR_EQUAL_TO),Object(U["a"])(Cc,Dc.GREATER_THAN_OR_EQUAL_TO.id,Dc.GREATER_THAN_OR_EQUAL_TO),Object(U["a"])(Cc,Dc.BETWEEN.id,Dc.BETWEEN),Object(U["a"])(Cc,Dc.IS_NULL.id,Dc.IS_NULL),Cc)},Rc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"boundedBy",Fc.Geometry,xc.GEOMETRY,"gml:boundedBy",e,"gml",Yc.GEOMETRY)}return i}(Nc),Hc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"id",Fc.StringAttribute,xc.ATTRIBUTE,"@gml:id",e,"gml",Yc.STRING)}return i}(Nc),Gc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"name",Fc.StringAttribute,xc.ATTRIBUTE,"gml:name",e,"gml",Yc.STRING)}return i}(Nc),zc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"description",Fc.StringAttribute,xc.ATTRIBUTE,"gml:description",e,"gml",Yc.STRING)}return i}(Nc),Bc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"lineage",Fc.StringAttribute,xc.ATTRIBUTE,"citydb:lineage",e,"citydb",Yc.STRING)}return i}(Nc),Vc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"updatingPerson",Fc.StringAttribute,xc.ATTRIBUTE,"citydb:updatingPerson",e,"citydb",Yc.STRING)}return i}(Nc),Uc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"lastModificationDate",Fc.DateAttribute,xc.DATEATTRIBUTE,"citydb:lastModificationDate",e,"citydb",Yc.DATE)}return i}(Nc),Wc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"reasonForUpdate",Fc.StringAttribute,xc.ATTRIBUTE,"citydb:reasonForUpdate",e,"citydb",Yc.STRING)}return i}(Nc),qc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"creationDate",Fc.DateAttribute,xc.DATEATTRIBUTE,"core:creationDate",e,"core",Yc.DATE)}return i}(Nc),Jc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"terminationDate",Fc.DateAttribute,xc.DATEATTRIBUTE,"core:terminationDate",e,"core",Yc.DATE)}return i}(Nc),Kc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"relativeToTerrain",Fc.StringAttribute,xc.ATTRIBUTE,"core:relativeToTerrain",e,"core",Yc.STRING)}return i}(Nc),Zc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"relativeToWater",Fc.StringAttribute,xc.ATTRIBUTE,"core:relativeToWater",e,"core",Yc.STRING)}return i}(Nc),Qc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"externalReferenceInformationSystem",Fc.StringAttribute,xc.ATTRIBUTE,"core:externalReference/core:informationSystem",e,"core",Yc.STRING)}return i}(Nc),Xc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"externalReferenceName",Fc.StringAttribute,xc.ATTRIBUTE,"core:externalReference/core:externalObject/core:name",e,"core",Yc.STRING)}return i}(Nc),$c=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"externalReferenceUri",Fc.StringAttribute,xc.ATTRIBUTE,"core:externalReference/core:externalObject/core:uri",e,"core",Yc.STRING)}return i}(Nc),eu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"stringAttribute",Fc.StringAttribute,xc.GENERICATTRIBUTE,"gen:stringAttribute[@gen:name='token']/gen:value",e,"gen",Yc.STRING)}return i}(Nc),tu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"doubleAttribute",Fc.NumberAttribute,xc.GENERICATTRIBUTE,'gen:doubleAttribute[@gen:name="token"]/gen:value',e,"gen",Yc.DOUBLE)}return i}(Nc),iu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"intAttribute",Fc.NumberAttribute,xc.GENERICATTRIBUTE,'gen:intAttribute[@gen:name="token"]/gen:value',e,"gen",Yc.INTEGER)}return i}(Nc),nu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"uriAttribute",Fc.StringAttribute,xc.GENERICATTRIBUTE,'gen:uriAttribute[@gen:name="token"]/gen:value',e,"gen",Yc.STRING)}return i}(Nc),ru=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"dateAttribute",Fc.DateAttribute,xc.GENERICDATEATTRIBUTE,'gen:dateAttribute[@gen:name="token"]/gen:value',e,"gen",Yc.DATE)}return i}(Nc),au=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"measureAttribute",Fc.NumberAttribute,xc.GENERICATTRIBUTE,'gen:measureAttribute[@gen:name="token"]/gen:value',e,"gen",Yc.DOUBLE)}return i}(Nc),su=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"class",Fc.StringAttribute,xc.ATTRIBUTE,null,e,n,Yc.STRING)}return i}(Nc),ou=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"function",Fc.StringAttribute,xc.ATTRIBUTE,null,e,n,Yc.STRING)}return i}(Nc),lu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"usage",Fc.StringAttribute,xc.ATTRIBUTE,null,e,n,Yc.STRING)}return i}(Nc),cu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"yearOfConstruction",Fc.DateAttribute,xc.DATEYEARATTRIBUTE,null,e,n,Yc.DATE)}return i}(Nc),uu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"yearOfDemolition",Fc.DateAttribute,xc.DATEYEARATTRIBUTE,null,e,n,Yc.DATE)}return i}(Nc),hu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"roofType",Fc.StringAttribute,xc.ATTRIBUTE,null,e,n,Yc.STRING)}return i}(Nc),du=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"measuredHeight",Fc.NumberAttribute,xc.ATTRIBUTE,null,e,n,Yc.DOUBLE)}return i}(Nc),mu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"storeysAboveGround",Fc.NumberAttribute,xc.ATTRIBUTE,null,e,n,Yc.INTEGER)}return i}(Nc),fu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"storeysBelowGround",Fc.NumberAttribute,xc.ATTRIBUTE,null,e,n,Yc.INTEGER)}return i}(Nc),gu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"storeyHeightsAboveGround",Fc.NumberAttribute,xc.ATTRIBUTE,null,e,n,Yc.DOUBLE)}return i}(Nc),yu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"storeyHeightsBelowGround",Fc.NumberAttribute,xc.ATTRIBUTE,null,e,n,Yc.DOUBLE)}return i}(Nc),pu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"street",Fc.StringAttribute,xc.ATTRIBUTE,"bldg:Building/bldg:address/core:Address/citydb:street",e,"citydb",Yc.STRING)}return i}(Nc),vu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"houseNumber",Fc.StringAttribute,xc.ATTRIBUTE,"bldg:Building/bldg:address/core:Address/citydb:houseNumber",e,"citydb",Yc.STRING)}return i}(Nc),_u=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"poBox",Fc.StringAttribute,xc.ATTRIBUTE,"bldg:Building/bldg:address/core:Address/citydb:poBox",e,"citydb",Yc.STRING)}return i}(Nc),bu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"zipCode",Fc.StringAttribute,xc.ATTRIBUTE,"bldg:Building/bldg:address/core:Address/citydb:zipCode",e,"citydb",Yc.STRING)}return i}(Nc),Lu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"city",Fc.StringAttribute,xc.ATTRIBUTE,"bldg:Building/bldg:address/core:Address/citydb:city",e,"citydb",Yc.STRING)}return i}(Nc),wu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"state",Fc.StringAttribute,xc.ATTRIBUTE,"bldg:Building/bldg:address/core:Address/citydb:state",e,"citydb",Yc.STRING)}return i}(Nc),Mu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,"country",Fc.StringAttribute,xc.ATTRIBUTE,"bldg:Building/bldg:address/core:Address/citydb:country",e,"citydb",Yc.STRING)}return i}(Nc),ku=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"isMovable",Fc.BooleanAttribute,xc.ATTRIBUTE,null,e,n,Yc.BOOLEAN)}return i}(Nc),Ou=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"species",Fc.StringAttribute,xc.ATTRIBUTE,null,e,n,Yc.STRING)}return i}(Nc),Tu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"height",Fc.NumberAttribute,xc.ATTRIBUTE,null,e,n,Yc.DOUBLE)}return i}(Nc),Su=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"trunkDiameter",Fc.NumberAttribute,xc.ATTRIBUTE,null,e,n,Yc.DOUBLE)}return i}(Nc),Cu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"crownDiameter",Fc.NumberAttribute,xc.ATTRIBUTE,null,e,n,Yc.DOUBLE)}return i}(Nc),ju=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"averageHeight",Fc.NumberAttribute,xc.ATTRIBUTE,null,e,n,Yc.DOUBLE)}return i}(Nc),Eu=Nc,Iu={gml:"http://www.opengis.net/gml",core:"http://www.opengis.net/citygml/2.0",citydb:"http://www.3dcitydb.org/citygml-ade/3.0/citygml/2.0",tran:"http://www.opengis.net/citygml/transportation/2.0",wtr:"http://www.opengis.net/citygml/waterbody/2.0",grp:"http://www.opengis.net/citygml/cityobjectgroup/2.0",luse:"http://www.opengis.net/citygml/landuse/2.0",frn:"http://www.opengis.net/citygml/cityfurniture/2.0",app:"http://www.opengis.net/citygml/appearance/2.0",tex:"http://www.opengis.net/citygml/texturedsurface/2.0",bldg:"http://www.opengis.net/citygml/building/2.0",xal:"urn:oasis:names:tc:ciq:xsdschema:xAL:2.0",dem:"http://www.opengis.net/citygml/relief/2.0",veg:"http://www.opengis.net/citygml/vegetation/2.0",gen:"http://www.opengis.net/citygml/generics/2.0",brid:"http://www.opengis.net/citygml/bridge/2.0",tun:"http://www.opengis.net/citygml/tunnel/2.0",vcs:"http://www.virtualcitysystems.de/wfs/2.0/"},Du=["_CityObject","Building","CityFurniture","GenericCityObject","SolitaryVegetationObject","Bridge","Tunnel","CityObjectGroup","LandUse","TransportationComplex","Railway","Road","Square","Track","PlantCover","WaterBody"],Pu=["BuildingInstallation","BuildingPart","BridgeInstallation","BridgePart","BridgeConstructionElement","TunnelInstallation","TunnelPart"],Au=["WallSurface","RoofSurface","GroundSurface","ClosureSurface","OuterCeilingSurface","OuterFloorSurface","Window","Door","WaterSurface","WaterGroundSurface","WaterClosureSurface","TrafficArea","AuxiliaryTrafficArea"],xu=["id","name","creationDate","terminationDate","relativeToTerrain","relativeToWater","externalReferenceInformationSystem","externalReferenceName","externalReferenceUri","stringAttribute","doubleAttribute","intAttribute","uriAttribute","dateAttribute","measureAttribute","class","function","usage","yearOfConstruction","yearOfDemolition","roofType","measuredHeight","storeysAboveGround","storeysBelowGround","storeyHeightsAboveGround","storeyHeightsBelowGround","street","houseNumber","poBox","zipCode","city","state","country","isMovable","species","height","trunkDiameter","crownDiameter","averageHeight","lineage","updatingPerson","lastModificationDate","reasonForUpdate"],Yu=["id","name","relativeToTerrain","relativeToWater","externalReferenceInformationSystem","externalReferenceName","externalReferenceUri","class","function","usage","roofType","measuredHeight","storeysAboveGround","storeysBelowGround","storeyHeightsAboveGround","storeyHeightsBelowGround","street","houseNumber","poBox","zipCode","city","state","country","isMovable","species","height","trunkDiameter","crownDiameter","averageHeight","lineage","updatingPerson"],Nu=["stringAttribute","doubleAttribute","intAttribute","uriAttribute","measureAttribute"],Fu=["creationDate","terminationDate","lastModificationDate","reasonForUpdate"],Ru=["yearOfConstruction","yearOfDemolition"],Hu=["genericDateAttribute"],Gu={"bldg:Building":26,"frn:CityFurniture":21,"gen:GenericCityObject":5,"veg:SolitaryVegetationObject":7,"veg:PlantCover":8,"brid:Bridge":64,"tun:Tunnel":85,"grp:CityObjectGroup":23,"luse:LandUse":4,"tran:TransportationComplex":42,"tran:Track":43,"tran:Railway":44,"tran:Road":45,"tran:Square":46,"wtr:WaterBody":9},zu=k.getLogger("vcs.vcm.cityGML.feature.FeatureType"),Bu={LAND_USE:4,GENERIC_CITY_OBJECT:5,SOLITARY_VEGETATION_OBJECT:7,PLANT_COVER:8,WATER_BODY:9,WATER_SURFACE:11,WATER_GROUND_SURFACE:12,WATER_CLOSURE_SURFACE:13,RELIEF_FEATURE:14,TIN_RELIEF:16,MASSPOINT_RELIEF:17,BREAKLINE_RELIEF:18,RASTER_RELIEF:19,CITY_FURNITURE:21,CITY_OBJECT_GROUP:23,BUILDING_PART:25,BUILDING:26,BUILDING_INSTALLATION:27,INT_BUILDING_INSTALLATION:28,BUILDING_CEILING_SURFACE:30,INTERIOR_BUILDING_WALL_SURFACE:31,BUILDING_FLOOR_SURFACE:32,BUILDING_ROOF_SURFACE:33,BUILDING_WALL_SURFACE:34,BUILDING_GROUND_SURFACE:35,BUILDING_CLOSURE_SURFACE:36,OUTER_BUILDING_CEILING_SURFACE:60,OUTER_BUILDING_FLOOR_SURFACE:61,BUILDING_WINDOW:38,BUILDING_DOOR:39,BUILDING_FURNITURE:40,BUILDING_ROOM:41,TRANSPORTATION_COMPLEX:42,TRACK:43,RAILWAY:44,ROAD:45,SQUARE:46,TRAFFIC_AREA:47,AUXILIARY_TRAFFIC_AREA:48,APPEARANCE:50,X3D_MATERIAL:53,PARAMETERIZED_TEXTURE:54,GEOREFERENCED_TEXTURE:55,CITY_MODEL:57,BRIDGE_PART:63,BRIDGE:64,BRIDGE_INSTALLATION:65,INT_BRIDGE_INSTALLATION:66,BRIDGE_CEILING_SURFACE:68,INTERIOR_BRIDGE_WALL_SURFACE:69,BRIDGE_FLOOR_SURFACE:70,BRIDGE_ROOF_SURFACE:71,BRIDGE_WALL_SURFACE:72,BRIDGE_GROUND_SURFACE:73,BRIDGE_CLOSURE_SURFACE:74,OUTER_BRIDGE_CEILING_SURFACE:75,OUTER_BRIDGE_FLOOR_SURFACE:76,BRIDGE_WINDOW:78,BRIDGE_DOOR:79,BRIDGE_FURNITURE:80,BRIDGE_ROOM:81,BRIDGE_CONSTRUCTION_ELEMENT:82,TUNNEL_PART:84,TUNNEL:85,TUNNEL_INSTALLATION:86,INT_TUNNEL_INSTALLATION:87,TUNNEL_CEILING_SURFACE:89,INTERIOR_TUNNEL_WALL_SURFACE:90,TUNNEL_FLOOR_SURFACE:91,TUNNEL_ROOF_SURFACE:92,TUNNEL_WALL_SURFACE:93,TUNNEL_GROUND_SURFACE:94,TUNNEL_CLOSURE_SURFACE:95,OUTER_TUNNEL_CEILING_SURFACE:96,OUTER_TUNNEL_FLOOR_SURFACE:97,TUNNEL_WINDOW:99,TUNNEL_DOOR:100,TUNNEL_FURNITURE:101,HOLLOW_SPACE:102},Vu=function(){function e(t,i,n,r,a,s){Object(d["a"])(this,e),this.featureType=t,this.featureNs=Iu[i],this.featurePrefix=i,this.allowedProperties=[];for(var o=0;o<r.length;o++){var l=r[o];if(n.hasOwnProperty(l)){var c=new n[l](a,i);this.allowedProperties.push(c)}}this.classType=s}return Object(m["a"])(e,[{key:"getFeatureType",value:function(){return zu.deprecate("getFeatureType","access the featureType property."),this.featureType}},{key:"getFeatureNs",value:function(){return zu.deprecate("getFeatureNs","access the featureNs property."),this.featureNs}},{key:"getFeaturePrefix",value:function(){return zu.deprecate("getFeaturePrefix","access the featurePrefix property."),this.featurePrefix}},{key:"getAllowedProperties",value:function(){return zu.deprecate("getAllowedProperties","access the allowedProperties property."),this.allowedProperties}}]),e}(),Uu={boundedBy:Rc,id:Hc,name:Gc,description:zc,lineage:Bc,updatingPerson:Vc,lastModificationDate:Uc,reasonForUpdate:Wc,creationDate:qc,terminationDate:Jc,relativeToTerrain:Kc,relativeToWater:Zc,externalReferenceInformationSystem:Qc,externalReferenceName:Xc,externalReferenceUri:$c,stringAttribute:eu,doubleAttribute:tu,intAttribute:iu,uriAttribute:nu,dateAttribute:ru,measureAttribute:au},Wu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"_CityObject","core",i.properties,e,n,Bu.GENERIC_CITY_OBJECT)}return Object(m["a"])(i,null,[{key:"properties",get:function(){return Object.assign({},Uu)}}]),i}(Vu),qu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"GenericCityObject","gen",i.properties,e,n,Bu.GENERIC_CITY_OBJECT)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu})}}]),i}(Vu),Ju=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"Building","bldg",i.properties,e,n,Bu.BUILDING)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu,yearOfConstruction:cu,yearOfDemolition:uu,roofType:hu,measuredHeight:du,storeysAboveGround:mu,storeysBelowGround:fu,storeyHeightsAboveGround:gu,storeyHeightsBelowGround:yu,street:pu,houseNumber:vu,poBox:_u,zipCode:bu,city:Lu,state:wu,country:Mu})}}]),i}(Vu),Ku=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"BuildingPart","bldg",Ju.properties,e,n,Bu.BUILDING_PART)}return i}(Vu),Zu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"BuildingInstallation","bldg",Ju.properties,e,n,Bu.BUILDING_INSTALLATION)}return i}(Vu),Qu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"WallSurface","bldg",Uu,e,n,Bu.BUILDING_WALL_SURFACE)}return i}(Vu),Xu=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"GroundSurface","bldg",Uu,e,n,Bu.BUILDING_GROUND_SURFACE)}return i}(Vu),$u=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"RoofSurface","bldg",Uu,e,n,Bu.BUILDING_ROOF_SURFACE)}return i}(Vu),eh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"ClosureSurface","bldg",Uu,e,n,Bu.BUILDING_CLOSURE_SURFACE)}return i}(Vu),th=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"OuterCeilingSurface","bldg",Uu,e,n,Bu.OUTER_BUILDING_CEILING_SURFACE)}return i}(Vu),ih=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"OuterFloorSurface","bldg",Uu,e,n,Bu.OUTER_BRIDGE_FLOOR_SURFACE)}return i}(Vu),nh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"Window","bldg",Uu,e,n,Bu.BUILDING_WINDOW)}return i}(Vu),rh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"Door","bldg",Uu,e,n,Bu.BUILDING_DOOR)}return i}(Vu),ah=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"Bridge","brid",i.properties,e,n,Bu.BRIDGE)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu,yearOfConstruction:cu,yearOfDemolition:uu,isMovable:ku})}}]),i}(Vu),sh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"BridgePart","brid",ah.properties,e,n,Bu.BRIDGE_PART)}return i}(Vu),oh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"BridgeInstallation","brid",ah.properties,e,n,Bu.BRIDGE_INSTALLATION)}return i}(Vu),lh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"BridgeConstructionElement","brid",ah.properties,e,n,Bu.BRIDGE_CONSTRUCTION_ELEMENT)}return i}(Vu),ch=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"Tunnel","tun",i.properties,e,n,Bu.TUNNEL)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu,yearOfConstruction:cu,yearOfDemolition:uu})}}]),i}(Vu),uh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"TunnelPart","tun",ch.properties,e,n,Bu.TUNNEL_PART)}return i}(Vu),hh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"TunnelInstallation","tun",ch.properties,e,n,Bu.TUNNEL_INSTALLATION)}return i}(Vu),dh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"CityFurniture","frn",i.properties,e,n,Bu.CITY_FURNITURE)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu})}}]),i}(Vu),mh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"CityObjectGroup","grp",i.properties,e,n,Bu.CITY_OBJECT_GROUP)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu})}}]),i}(Vu),fh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"LandUse","luse",i.properties,e,n,Bu.LAND_USE)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu})}}]),i}(Vu),gh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"TransportationComplex","tran",i.properties,e,n,Bu.TRANSPORTATION_COMPLEX)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu})}}]),i}(Vu),yh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"Railway","tran",gh.properties,e,n,Bu.RAILWAY)}return i}(Vu),ph=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"Road","tran",gh.properties,e,n,Bu.ROAD)}return i}(Vu),vh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"Square","tran",gh.properties,e,n,Bu.SQUARE)}return i}(Vu),_h=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"Track","tran",gh.properties,e,n,Bu.TRACK)}return i}(Vu),bh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"TrafficArea","tran",Uu,e,n,Bu.TRAFFIC_AREA)}return i}(Vu),Lh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"AuxiliaryTrafficArea","tran",Uu,e,n,Bu.AUXILIARY_TRAFFIC_AREA)}return i}(Vu),wh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"SolitaryVegetationObject","veg",i.properties,e,n,Bu.SOLITARY_VEGETATION_OBJECT)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu,species:Ou,height:Tu,trunkDiameter:Su,crownDiameter:Cu})}}]),i}(Vu),Mh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"PlantCover","veg",i.properties,e,n,Bu.PLANT_COVER)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu,averageHeight:ju})}}]),i}(Vu),kh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"WaterBody","wtr",i.properties,e,n,Bu.WATER_BODY)}return Object(m["a"])(i,null,[{key:"properties",get:function(){var e=Object.assign({},Uu);return Object.assign(e,{class:su,function:ou,usage:lu})}}]),i}(Vu),Oh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"WaterSurface","wtr",Uu,e,n,Bu.WATER_SURFACE)}return i}(Vu),Th=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"WaterGroundSurface","wtr",Uu,e,n,Bu.WATER_GROUND_SURFACE)}return i}(Vu),Sh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){return Object(d["a"])(this,i),t.call(this,"WaterClosureSurface","wtr",Uu,e,n,Bu.WATER_GROUND_SURFACE)}return i}(Vu);function Ch(e,t,i){var n={_CityObject:Wu,GenericCityObject:qu,Building:Ju,Bridge:ah,Tunnel:ch,CityFurniture:dh,CityObjectGroup:mh,LandUse:fh,TransportationComplex:gh,Railway:yh,Road:ph,Track:_h,Square:vh,SolitaryVegetationObject:wh,PlantCover:Mh,WaterBody:kh};return e.map((function(e){return new n[e](t,i)}))}function jh(e,t,i){var n={BuildingInstallation:Zu,BuildingPart:Ku,BridgeInstallation:oh,BridgePart:sh,BridgeConstructionElement:lh,TunnelInstallation:hh,TunnelPart:uh};return e.map((function(e){return new n[e](t,i)}))}function Eh(e,t,i){var n={WallSurface:Qu,RoofSurface:$u,GroundSurface:Xu,ClosureSurface:eh,OuterCeilingSurface:th,OuterFloorSurface:ih,Window:nh,Door:rh,WaterSurface:Oh,WaterGroundSurface:Th,WaterClosureSurface:Sh,TrafficArea:bh,AuxiliaryTrafficArea:Lh};return e.map((function(e){return new n[e](t,i)}))}var Ih=function(){function e(t){Object(d["a"])(this,e),this.type=t.type,this.id=t.id||Object(u["c"])(),this.comparison=t.comparison||null,this.fixedComparison=t.comparison&&t.isPreset,this.property=t.property||null,this.isPreset=Object(u["e"])(t.isPreset,!1),this.not=Object(u["e"])(t.not,!1)}return Object(m["a"])(e,[{key:"getFilter",value:function(){var e=this;o(this.comparison,Pc),o(this.property,Eu);var t=this.property.allowedComparisons.findIndex((function(t){return t.id===e.comparison.id}));if(-1===t)throw new Error("Comparison ".concat(this.comparison.id," not allowed for ").concat(this.property.id));return null}},{key:"destroy",value:function(){}},{key:"_wrapInNot",value:function(e){return this.not?new ol.format.filter.Not(e):e}}]),e}(),Dh=Ih,Ph=new Eu("filter",Fc.Filter,xc.FILTER,null,Object.keys(Fc.Filter),"",Yc.FILTER),Ah=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.type="combination",e.property=Ph,e.comparison=Ph.allowedComparisons[0],n=t.call(this,e),n.filters=e.filters||[],n.level=e.level||0;var r=!e.isPreset&&"all";return n.allowAdditional=e.allowAdditional||r,n}return Object(m["a"])(i,[{key:"getFilter",value:function(){ye(Object(fe["a"])(i.prototype),"getFilter",this).call(this);var e=this.comparison.openlayersFilter;if(0===this.filters.length)throw new Error("Cannot process empty filter");if(1===this.filters.length)return this.filters[0].getFilter();var t=this.filters.map((function(e){return e.getFilter()}));return this._wrapInNot(e.apply(void 0,Object(g["a"])(t)))}},{key:"removeChild",value:function(e){var t=this.filters.findIndex((function(t){return t.id===e.id}));this.filters.splice(t,1)}},{key:"hasChild",value:function(e){return this.filters.some((function(t){return t&&t.id===e.id}))}}]),i}(Dh),xh=Ah;function Yh(e){var t=X.mercatorToWgs84(e,!0);return[t[1],t[0]]}function Nh(e){var t=e.clone();if(t instanceof ol.geom.Polygon){var i=t.getCoordinates().map((function(e){return e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]||e.push(e[0].slice()),e.map(Yh)}));t.setCoordinates(i,"XY")}else if(t instanceof ol.geom.Point){var n=t.getCoordinates();t.setCoordinates(Yh(n),"XY")}else if(t instanceof ol.geom.LineString){var r=t.getCoordinates().map(Yh);t.setCoordinates(r,"XY")}return t}var Fh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.type="geometry";var r=e.allowedComparisons||Object.keys(Fc.Geometry).map((function(e){return Fc.Geometry[e].id}));return e.property=new Eu("geometry",Fc.Geometry,xc.GEOMETRY,"gml:boundedBy",r,"gml",Yc.GEOMETRY),n=t.call(this,e),n.distance=null,n.editorId=e.editorId,n}return Object(m["a"])(i,[{key:"getFilter",value:function(){ye(Object(fe["a"])(i.prototype),"getFilter",this).call(this);var e=this.comparison.openlayersFilter,t=G.getInstance().getLayerByName("_queryWidgetGeometryFilterLayer"),n=t.getFeatureById(this.id);if(!n)throw new Error("cannot find drawing for filter");var r=n.getGeometry();if(!r)throw new Error("cannot find drawing for filter");var a=r.clone(),s=a.getCoordinates();di(a,s).forEach((function(e){var t=e.slice();e[1]=t[0],e[0]=t[1]})),a.setCoordinates(s);var o=Nh(r);if(!e)throw new Error("Comparison is not defined");if("DWITHIN"===this.comparison.id){if(!this.distance)throw new Error("DWITHIN filter requires a distance");return this._wrapInNot(new e(this.property.valueReference,o,this.distance,"m","urn:ogc:def:crs:EPSG::4326"))}return"BBOX"===this.comparison.id?this._wrapInNot(new e(this.property.valueReference,r.getExtent(),"urn:ogc:def:crs:EPSG::4326")):this._wrapInNot(new e(this.property.valueReference,o,"urn:ogc:def:crs:EPSG::4326"))}},{key:"destroy",value:function(){var e=G.getInstance().getLayerByName("_queryWidgetGeometryFilterLayer");e.removeFeaturesById([this.id])}}]),i}(Dh),Rh=Fh,Hh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.type="property",n=t.call(this,e),n.value=e.value||null,n.fixedValue=e.value&&e.isPreset,n.genericAttributeName=e.genericAttributeName||null,n}return Object(m["a"])(i,[{key:"getFilter",value:function(){ye(Object(fe["a"])(i.prototype),"getFilter",this).call(this);var e=this.property.valueReference;this.genericAttributeName&&(e=e.replace("token",this.genericAttributeName));var t=this.comparison.openlayersFilter;return"BETWEEN"===this.comparison.id?(o(this.value,Array),this.value[0]instanceof Date?this._wrapInNot(new t(e,this._getDateValue(this.value[0]),this._getDateValue(this.value[1]))):this._wrapInNot(new t(e,this.value[0],this.value[1]))):this.value instanceof Date?this._wrapInNot(new t(e,this._getDateValue(this.value))):this._wrapInNot(new t(e,this.value))}},{key:"_getDateValue",value:function(e){return this.property.dataType===Yc.DATE?rl()(e).format("YYYY-MM-DD"):e.toISOString()}}]),i}(Dh),Gh=Hh;function zh(e,t,i){return{id:t,type:e,children:[{type:"_3",attributes:{extent:i}}]}}function Bh(e){var t=[],i=(new DOMParser).parseFromString(e,"application/xml");if(i)for(var n=i.getElementsByTagNameNS("http://www.opengis.net/wfs/2.0","member"),r=0;r<n.length;r++){var a=n[r],s=a.getElementsByTagNameNS("http://www.opengis.net/gml","boundedBy")[0],o=void 0;if(s){var l=s.getElementsByTagNameNS("http://www.opengis.net/gml","lowerCorner")[0].textContent.split(" "),c=s.getElementsByTagNameNS("http://www.opengis.net/gml","upperCorner")[0].textContent.split(" ");o=[l[0],l[1],c[0],c[1]].map(Number.parseFloat)}t.push(zh(Gu[s.parentNode.nodeName],s.parentNode.getAttributeNS("http://www.opengis.net/gml","id"),o))}return t}var Vh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.url=e.url,n.projection=new X(e.projection),n.maxFeatures=e.maxFeatures||1e4,n.runningRequest=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.wfs.WFSObject"}}]),Object(m["a"])(i,[{key:"getFeatures",value:function(e,t){if(!this.url||""===this.url)return Promise.reject(new Error("Missing URL"));this.cancelRequest();var i=(new ol.format.WFS2).writeGetFeature({featureNS:e.featureNs,featurePrefix:e.featurePrefix,featureTypes:[e.featureType],propertyNames:["gml:boundedBy"],filter:t,outputFormat:"application/gml+xml; version=3.1",count:this.maxFeatures,allNs:Iu});function n(e){var t;return t=window.ActiveXObject?e.xml:(new XMLSerializer).serializeToString(e),t}var r=n(i);return r=r.replace(/__--__/g,":"),this.runningRequest=q.a.CancelToken.source(),q.a.post(this.url,r,{cancelToken:this.runningRequest.token}).then((function(e){var t=e.data;return Bh(t)})).catch((function(e){var t=e.response;return t&&t.data?Promise.reject(new Error(t.data)):Promise.reject(e)}))}},{key:"cancelRequest",value:function(){this.runningRequest&&this.runningRequest.cancel(),this.runningRequest=null}}]),i}(ve),Uh=["EQUAL_TO","NOT_EQUAL_TO","LESS_THAN","GREATER_THAN","LESS_THAN_OR_EQUAL_TO","GREATER_THAN_OR_EQUAL_TO","LIKE","IS_NULL"],Wh=["BETWEEN"],qh=["EQUAL_TO","NOT_EQUAL_TO","LESS_THAN","GREATER_THAN","LESS_THAN_OR_EQUAL_TO","GREATER_THAN_OR_EQUAL_TO","LIKE","BETWEEN","IS_NULL"],Jh=["INTERSECTS","WITHIN","DWITHIN"],Kh=Vh,Zh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.allFeatureTypes=e.allFeatureTypes||r.allFeatureTypes,n.allProperties=e.allProperties||r.allProperties,n.allLogicalRelations=e.allLogicalRelations||r.allLogicalRelations,n.allSpatialFilters=e.allSpatialFilters||r.allSpatialFilters,n.freeQueriesOption=Object(u["e"])(e.freeQueries,r.freeQueries),n.predefinedQueries=e.predefinedQueries||r.predefinedQueries,n.featureTypes=Ch(n.allFeatureTypes,n.allProperties,n.allLogicalRelations),n.wfs=new Kh(e.wfs||r.wfs),n.showDownload=Object(u["e"])(e.showDownload,r.showDownload),n._filters=[],n._defaultMaxLevel=Object(u["h"])(e.maximumLevel,r.maximumLevel),n.maximumLevel=n._defaultMaxLevel,n.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"],n.activeQuery={type:null,featureType:null,filter:null,runningRequest:null},n.foundFeatures=[],n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{allFeatureTypes:Du.slice(),allProperties:xu.slice(),allLogicalRelations:qh.slice(),allSpatialFilters:Jh.slice(),freeQueries:!0,predefinedQueries:[],wfs:{url:""},showDownload:!0,maximumLevel:1})}},{key:"className",get:function(){return"vcs.vcm.widgets.Query"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.geometryFilterLayer=new _n({name:"_queryWidgetGeometryFilterLayer",projection:ee,altitudeMode:"clampToGround"}),this.framework.addLayer(this.geometryFilterLayer),this.geometryLayerEditor=new sc({allowedGeometries:["Point","LineString","BBox","Polygon"],defaultMode:"edit"}),this.geometryLayerEditor.initialize(),this.geometryLayerEditor.addEditingLayer(this.geometryFilterLayer),this.initialized=!0,this.initializedFinished()}return!0}},{key:"getAllowedProperties",value:function(e){o(e,String);var t=this.featureTypes.find((function(t){return t.featureType===e}));return t?t.allowedProperties:[]}},{key:"setPreset",value:function(e){if(o(e,[Object,String]),this.activeQuery.filter&&this.removeFilter(this.activeQuery.filter),this.activeQuery.filter=null,this.activeQuery.featureType=null,this.maximumLevel=this._defaultMaxLevel,"_free"!==e){e=e,this.activeQuery.type=e.name;var t=JSON.parse(JSON.stringify(e));if(this.activeQuery.featureType=t.featureType,t.property){var i=this.getAllowedProperties(this.activeQuery.featureType).find((function(e){return e.id===t.property})),n=null;t.valueInput?n=t.valueInput:t.dateInput?n=new Date(t.dateInput.year,t.dateInput.month-1,t.dateInput.date):t.dateInputLower&&(n=[new Date(t.dateInputLower.year,t.dateInputLower.month-1,t.dateInputLower.date),new Date(t.dateInputUpper.year,t.dateInputUpper.month-1,t.dateInputUpper.date)]);var r=null;if(t.comparison){var a=Object.keys(Dc).find((function(e){return Dc[e].id===t.comparison}));r=Dc[a]}t.allowAdditional||(this.maximumLevel=0),Number.isFinite(t.maximumLevel)&&(this.maximumLevel=t.maximumLevel),this.addFilter({type:"property",property:i,comparison:r,value:n,isPreset:!0,genericAttributeName:t.genericAttributeName,allowAdditional:t.allowAdditional,not:t.not})}}else this.activeQuery.type="_free"}},{key:"_createFilter",value:function(e){var t;return t="geometry"===e.type?new Rh(Object.assign(e,{allowedComparisons:this.allSpatialFilters,editorId:this.geometryLayerEditor.id})):"property"===e.type?new Gh(e):new xh(e),this._filters.push(t),t}},{key:"addFilter",value:function(e){if(o(e,{type:["geometry","property","combination"]}),this.activeQuery.filter)return this.addFilterToCombination(this.activeQuery.filter,e);"combination"===e.type&&(e.level=1);var t=this._createFilter(e);return this.activeQuery.filter=this._createFilter({type:"combination",filters:[t],isPreset:e.isPreset,allowAdditional:e.allowAdditional}),t.id}},{key:"removeFilter",value:function(e){var t=this;o(e,Dh);var i=this._filters.find((function(t){return t instanceof xh&&t.hasChild(e)}));if(!i)return this.activeQuery.filter=null,this._filters.forEach((function(e){e.destroy()})),void this._filters.splice(0);e instanceof xh&&e.filters.forEach((function(e){t.removeFilter(e)})),i.removeChild(e),0===i.filters.length&&this.removeFilter(i);var n=this._filters.findIndex((function(t){return t.id===e.id}));e.destroy(),this._filters.splice(n,1)}},{key:"addFilterToCombination",value:function(e,t){if(o(t,{type:["geometry","property","combination"]}),o(e,xh),"combination"===t.type){if(e.level===this.maximumLevel)throw new Error("Maximum complexity reached, cannot add another level of depth");t.level=e.level+1}var i=this._createFilter(t);return e.filters.push(i),i.id}},{key:"sendRequest",value:function(){var e=this;this.foundFeatures.splice(0);var t=this.featureTypes.find((function(t){return t.featureType===e.activeQuery.featureType})),i=this.activeQuery.filter.getFilter();if(!t||!i)throw new Error("Could not find active featureType");return this.wfs.getFeatures(t,i).then(this._handleResult.bind(this))}},{key:"cancelRequest",value:function(){this.wfs.cancelRequest()}},{key:"_handleResult",value:function(e){var t=this;e.forEach((function(e){t.foundFeatures.push(e)}))}},{key:"addToSelectionSet",value:function(e){l(e,Boolean);var t=this.framework.getSelectBehavior();e&&t.clearSelectionSet();var i=this.foundFeatures.map((function(e){return e.id}));t.addToSelectionSet(i)}},{key:"zoomToFeatures",value:function(){if(this.foundFeatures.length>0){var e=ol.extent.createEmpty();this.foundFeatures.forEach((function(t){t.children&&t.children.forEach((function(t){"_3"===t.type&&(e=ol.extent.extend(e,t.attributes.extent))}))}));var t=ol.proj.getTransform(this.framework.projection.proj,ol.proj.get("EPSG:4326"));e=ol.extent.applyTransform(e,t);var i=ke.createViewPointFromExtent(e);this.framework.getActiveMap().gotoViewPoint(i)}}},{key:"zoomToFeature",value:function(e){var t=ol.extent.createEmpty();e.children&&e.children.forEach((function(e){"_3"===e.type&&(t=ol.extent.extend(t,e.attributes.extent))}));var i=ol.proj.getTransform(this.framework.projection.proj,ol.proj.get("EPSG:4326"));t=ol.extent.applyTransform(t,i);var n=ke.createViewPointFromExtent(t);this.framework.getActiveMap().gotoViewPoint(n)}},{key:"clear",value:function(){var e=this.framework.getSelectBehavior();e.clearSelectionSet(),this.foundFeatures.splice(0)}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.allFeatureTypes=this.allFeatureTypes,e.allProperties=this.allProperties,e.allLogicalRelations=this.allLogicalRelations,e.allSpatialFilters=this.allSpatialFilters,e.freeQueries=this.freeQueriesOption,e.predefinedQueries=this.predefinedQueries,e.maximumLevel=this.maximumLevel,e.wfs={maxFeatures:this.wfs.maxFeatures},e.showDownload=this.showDownload,e}}]),i}(Ys),Qh=Zh,Xh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.middleware=e.middleware||[],n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return{middleware:void 0}}}]),Object(m["a"])(i,[{key:"initialize",value:function(){}},{key:"search",value:function(e,t,i){}}]),i}(ve),$h=Xh,ed=k.getLogger("vcs.vcm.widgets.search.Nominatim"),td=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions(),s=e.url||r.url;return n.url=a["a"].parse(s),n.city=e.city||null,n.state=e.state||null,n.countrycode=e.countrycode||r.countrycode,n.extent=e.extent?new De(e.extent):null,n.limit=e.limit||r.limit,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},$h.getDefaultOptions()),{},{type:i.className,url:"https://nominatim.openstreetmap.org/search",city:void 0,state:void 0,countrycode:"de",extent:void 0,limit:20})}},{key:"className",get:function(){return"vcs.vcm.widgets.search.Nominatim"}}]),Object(m["a"])(i,[{key:"search",value:function(e,t,n){var r=this.url.clone(),a={q:e,countrycodes:this.countrycode,format:"json",polygon_geojson:1,addressdetails:1,limit:this.limit};this.city&&(a.q+=",".concat(this.city)),this.state&&(a.q+=",".concat(this.state)),this.extent&&(a.viewbox=this.extent.getCoordinatesInProjection($).join(","),a.bounded=1),r.addQueryParams(a),q.a.get(r.toString()).then((function(e){var t=i.handleSearchResults(e);n(t)})).catch((function(){ed.error("got an error from the server"),n([])}))}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return Object.assign({},e,{url:this.url.toString(),city:this.city,state:this.state,countrycode:this.countrycode,extent:this.extent?this.extent.getConfigObject():null,limit:this.limit})}}],[{key:"handleSearchResults",value:function(e){var t=e.data;return t.map((function(e){return e.point=[Number(e.lon),Number(e.lat)],e.geojson?e.type="geojson":e.type="point",e}))}}]),i}($h),id=td,nd={NEVER:0,MOBILE:1,DESKTOP:2,ALWAYS:3};function rd(e,t){if(e){var i=e.toUpperCase();return null!=nd[i]?nd[i]:t}return t}var ad,sd,od,ld,cd,ud=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions(),a=new dt(r.style);return n.vectorLayer=new _n({name:"_locatorVector",altitudeMode:"clampToGround",classificationType:e.classificationType||r.classificationType,allowPicking:!1,heightAboveGround:2,projection:{epsg:"EPSG:4326"},style:e.style?a.assign(new dt(e.style)):a}),n.show=rd(e.show,nd[r.show.toUpperCase()]),n.showInToolbox=rd(e.showInToolbox,nd[r.showInToolbox.toUpperCase()]),n.tracker=null,n.flatError=0,n.zoomDistance=Object(u["g"])(e.zoomDistance,r.zoomDistance),n.locatorExtrusion=!1!==e.extrusion&&Object(u["h"])(e.extrusion,r.extrusion),n.values={locatorVisibility:!1},n._pickingTerrain=!1,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{classificationType:"both",style:{fill:{color:[85,110,255,.4]},stroke:{color:[0,0,0,1],width:1.25},image:{fill:{color:[255,255,255,1]},stroke:{color:[0,0,0,1],width:1},radius:5}},show:"always",showInToolbox:"mobile",zoomDistance:1e3,extrusion:80})}},{key:"className",get:function(){return"vcs.vcm.widgets.Locator"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var t=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!t)return!1;var n=i.testForApi();if(!n)return this.logger.warning("Locator Widget is not supported"),!1;this.framework.addLayer(this.vectorLayer),this.locatorPoint=new ol.Feature({geometry:new ol.geom.Point([0,0,0],"XYZ"),heading:!1}),this.locatorExtrusion&&this.locatorPoint.set("olcs_extrudedHeight",this.locatorExtrusion),this.errorCircle=new ol.Feature({geometry:new ol.geom.Circle([0,0],5e3)}),this.vectorLayer.addFeatures([this.locatorPoint,this.errorCircle]),this.framework.subscribe("MAP_ACTIVATED",(function(t){"vcs.vcm.maps.Cesium"===t.className&&e.tracker&&e._placeLocatorOnTerrain()})),this.initialized=!0,this.initializedFinished()}return!0}},{key:"locatorClicked",value:function(){if(null===this.tracker)this.tracker=navigator.geolocation.watchPosition(this.trackLocator.bind(this),this.handleError.bind(this));else if(this.locatorInsideView())this.toggleVisibility(),navigator.geolocation.clearWatch(this.tracker),this.tracker=null;else{var e=this.locatorPoint.getGeometry().getCoordinates(),t=X.mercatorToWgs84(e);this.goToLocator(null,{coords:{longitude:t[0],latitude:t[1]}})}}},{key:"toggleVisibility",value:function(){this.values.locatorVisibility=!this.values.locatorVisibility,this.values.locatorVisibility?this.vectorLayer.activate():this.vectorLayer.deactivate()}},{key:"goToLocator",value:function(e,t){var i=this.framework.getActiveMap().getViewPoint();i.animate=!0,i.cameraPosition=null,i.groundPosition=[t.coords.longitude,t.coords.latitude],null!=e&&(i.distance=e),this.framework.getActiveMap().gotoViewPoint(i,1,0)}},{key:"trackLocator",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n,r,a,s,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._pickingTerrain){e.next=2;break}return e.abrupt("return");case 2:if(i=function(e){var t=ol.geom.Polygon.circular(new ol.Sphere(6378137),e,o.flatError,128);t.applyTransform((function(e,t,i){for(var n=e.length,r=0;r<n;r+=i){var a=[e[r],e[r+1]];X.wgs84ToMercator(a,!0),t[r]=a[0],t[r+1]=a[1]}return t})),o.errorCircle.setGeometry(t)},n=[t.coords.longitude,t.coords.latitude],r=t.coords.heading,null!=r?this.locatorPoint.set("heading",r):this.locatorPoint.set("heading",!1),a=this.locatorPoint.getGeometry().getCoordinates(),s=X.mercatorToWgs84(a),0===Math.abs(s[0]-n[0])&&0===Math.abs(s[1]-n[1])){e.next=16;break}return this.locatorPoint.getGeometry().setCoordinates(X.wgs84ToMercator(n)),e.next=12,this._placeLocatorOnTerrain();case 12:this.flatError=t.coords.accuracy,i(n),e.next=17;break;case 16:0!==Math.abs(this.flatError-t.coords.accuracy)&&(this.flatError=t.coords.accuracy,i(n));case 17:this.values.locatorVisibility||(this.goToLocator(this.zoomDistance,t),this.toggleVisibility());case 18:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_placeLocatorOnTerrain",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.framework.getActiveMap(),"vcs.vcm.maps.Cesium"!==t.className){e.next=8;break}return i=this.locatorPoint.getGeometry().getCoordinates(),this._pickingTerrain=!0,e.next=6,t.getHeightFromTerrain([i]);case 6:this.locatorPoint.getGeometry().setCoordinates(i),this._pickingTerrain=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"locatorInsideView",value:function(){var e=this.locatorPoint.getGeometry().getCoordinates(),t=X.mercatorToWgs84(e);return this.framework.getActiveMap().pointIsVisible(t)}},{key:"handleError",value:function(e){switch(this.values.locatorVisibility&&this.toggleVisibility(),e.code){case 1:alert("Der Zugriff auf Ihre Position wurde verweigert.");break;case 2:alert("Ihre momentane Position konnte leider nicht erfasst werden.");break;case 3:alert("Wärend dem ermitteln Ihrer Position wurde die Verbindung verloren");break;default:alert("Ihre Position kann leider nicht erfasst werden");break}this.logger.warning("Geolocation could not be verified")}},{key:"setStyle",value:function(e){this.logger.deprecate("setStyle","use the config or set the style via the .vectorLayer property"),this.vectorLayer.setStyle(e);for(var t,i=this.vectorLayer.getFeatures(),n=0;n<i.length;n++)t=i[n],t.setStyle(e)}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.zoomDistance=this.zoomDistance,e.style=this.vectorLayer.style.getOptions({fill:!0,stroke:!0,image:!0}),e.locatorExtrusion=this.locatorExtrusion,e.classificationType=this.vectorLayer.classificationType,e}},{key:"isVisible",value:function(){return this.logger.deprecate("isVisible","access values.locatorVisibility directly"),this.values.locatorVisibility}},{key:"getValuesObject",value:function(){return this.logger.deprecate("getValuesObject","access values directly"),this.values}}],[{key:"getLocation",value:function(){return new Promise((function(e,t){navigator.geolocation.getCurrentPosition(e,t)}))}},{key:"testForApi",value:function(){var e=location,t=e.hostname,i=e.protocol,n=!!navigator.geolocation&&!G.getInstance().isIE11;return("localhost"===t||"127.0.0.1"===t||"https:"===i)&&n}}]),i}(Ys),hd=ud,dd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.sortByType=Object(u["e"])(e.sortByType,r.sortByType),n.location={},n.resultSize=null!=e.resultSize?e.resultSize:null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},$h.getDefaultOptions()),{},{type:i.className,sortByType:!1,resultSize:void 0})}},{key:"className",get:function(){return"vcs.vcm.widgets.search.Elasticsearch"}}]),Object(m["a"])(i,[{key:"search",value:function(e,t,i){var n=this;this.initSearchQuery(e,t).then((function(r){var a=Fr()(JSON.stringify(r.query)),s=Object.assign(r.values,{userInput:e}),o=a(s);n.middleware.forEach((function(e){o=e.addToQuery(o)}));var l=t.endpoints.find((function(e){return e.searchImpl===this.className}),n),c=C.getInstance().getLocaleAwareString(l.url);q.a.post(c,o).then(n.handleSearch.bind(n,i)).catch(n.handleSearch.bind(n,i))}))}},{key:"handleSearch",value:function(e,t){if(t instanceof Error)e([]);else{var i=t.data,n=[];this.middleware.forEach((function(e){e.handleResult(i)}));try{if(i.hits.hits.length>0){var r=i.hits.hits;n=r.map((function(e){return Object.assign(e._source,{type:e._type})}))}}catch(a){}e(n)}}},{key:"parseSearchQuery",value:function(e,t){var i,n={},r=t.hasOwnProperty("filter"),a=t.hasOwnProperty("function")||t.decayByLocation,s=t.hasOwnProperty("rescore");if(t.hasOwnProperty("values")&&Object.assign(n,this.makeTemplateValues(e,t.values)),r&&a){if(t.hasOwnProperty("function")&&t.decayByLocation){var o=this.getDecayByLocation();l=t.functions.concat(o)}else l=t.hasOwnProperty("function")?t.function:this.getDecayByLocation();i={query:{filtered:{query:{function_score:{query:t.query,functions:l}},filter:t.filter}}}}else if(r)i={query:{filtered:{query:t.query,filter:t.filter}}};else if(a){var l;if(t.hasOwnProperty("function")&&t.decayByLocation){o=this.getDecayByLocation();l=t.functions.concat(o)}else l=t.hasOwnProperty("function")?t.function:this.getDecayByLocation();i={query:{function_score:{query:t.query,functions:l}}}}else i={query:t.query};return s&&(i.rescore=t.rescore),this.resultSize&&(i.size=this.resultSize),{query:i,values:n}}},{key:"initSearchQuery",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i.decayByLocation){e.next=14;break}if(n=this.location.coords&&Date.now()-this.location.setAt>3e5,r=!this.location.coords&&hd.testForApi(),!n&&!r){e.next=14;break}return e.prev=4,e.next=7,hd.getLocation();case 7:a=e.sent,this.location={coords:{lat:a.coords.latitude,lon:a.coords.longitude},setAt:Date.now()},e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](4),this.logger.warning(e.t0.message);case 14:return e.abrupt("return",this.parseSearchQuery(t,i));case 15:case"end":return e.stop()}}),e,this,[[4,11]])})));function t(t,i){return e.apply(this,arguments)}return t}()},{key:"getDecayByLocation",value:function(){var e;return e=this.location.hasOwnProperty("coords")?[{gauss:{geoLocation:{origin:this.location.coords,offset:"1km",scale:"2km"}}}]:[],e}},{key:"makeTemplateValues",value:function(e,t){var i={};return Object.values(t).forEach((function(t){var n=new RegExp(t.regex),r=e.match(n)[0];t.hasOwnProperty("replace")&&(r=r.replace(new RegExp(t.replace.regex,"g"),t.replace.value)),i[t.name]=r.trim()})),i}}]),i}($h),md=dd,fd=function(){function e(t){Object(d["a"])(this,e)}return Object(m["a"])(e,[{key:"initialize",value:function(){}},{key:"addToQuery",value:function(e){return e}},{key:"addFilter",value:function(e,t){var i=JSON.parse(e);if(i.query.hasOwnProperty("filtered")){var n=i.query.filtered.filter;if(n.hasOwnProperty("bool")){var r=n.bool;if(r.hasOwnProperty("must")){var a=r.must;if(Array.isArray(a))a.push(t);else{var s={};Object.assign(s,a),r.must=[s,t]}}else r.must=t}else{var o={};Object.assign(o,n);var l={bool:{must:[o,t]}};i.query.filtered.filter=l}return JSON.stringify(i)}var c={query:{filtered:{query:i.query,filter:t}}};return JSON.stringify(c)}},{key:"handleResult",value:function(e){}},{key:"clear",value:function(){}}]),e}(),gd=fd,yd=k.getLogger("vcs.vcm.widgets.search.middleware.Near"),pd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.className=i.className,n.tags=[],n.activeTags=[],n.doHandle=!0,n.tagOrder=e.tagOrder?e.tagOrder:[],n.combineTagsWithOr=!!e.combineTagsWithOr,n.isActive=!1,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.middleware.Tags"}}]),Object(m["a"])(i,[{key:"addToQuery",value:function(e){var t=this._addTagAggregation(e);return this._filterByTags(t)}},{key:"_addTagAggregation",value:function(e){var t=JSON.parse(e);return t.aggregations?t.aggregations.tagCount={terms:{field:"tags"}}:t.aggregations={tagCount:{terms:{field:"tags"}}},JSON.stringify(t)}},{key:"_filterByTags",value:function(e){if(0===this.activeTags.length)return e;var t={};if(1===this.activeTags.length)t.term={tags:this.activeTags[0].key};else{var i=this.activeTags.map((function(e){return{term:{tags:e.key}}}));t=this.combineTagsWithOr?{or:i}:{and:i}}return this.addFilter(e,t)}},{key:"handleResult",value:function(e){if(this.doHandle)if(e.aggregations&&e.aggregations.tagCount){var t=e.aggregations.tagCount.buckets;if(t.length){var i=this.sortTags(t),n=i.filter((function(e){return this.activeTags.find((function(t){return t.key===e.key}))}),this);this.clear(),i.forEach((function(e){this.tags.push(e)}),this),n.forEach((function(e){this.activeTags.push(e)}),this)}else this.clear()}else this.clear()}},{key:"setHandle",value:function(e){yd.deprecate("setHandle","access the doHandle property."),this.doHandle=e}},{key:"sortTags",value:function(e){var t=this;return e=this.tagOrder.length>0?e.sort((function(e,i){var n=t.tagOrder.indexOf(e.key),r=t.tagOrder.indexOf(i.key);return n=n>-1?n:t.tagOrder.length+1,r=r>-1?r:t.tagOrder.length+1,n-r})):e.sort((function(e,t){return e.key.toLocaleString()<t.key.toLocaleString()?-1:1})),e}},{key:"clear",value:function(){this.tags.splice(0,this.tags.length),this.activeTags.splice(0,this.activeTags.length),this.isActive=!1}}]),i}(gd),vd=pd,_d=k.getLogger("vcs.vcm.widgets.search.middleware.Near"),bd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.className=i.className,n.fillColor=e.fillColor?e.fillColor:"rgba(85,110,255,0.4)",n.searchCenterIcon=e.searchCenterIcon?e.searchCenterIcon:null,n.pointId=null,n.cirleId=null,n.searchCenter=[0,0],n.searchDistance=500,n.isActive=!1,n.title=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.middleware.Near"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e,t=G.getInstance(),i=new _n({projection:{epsg:4326},altitudeMode:"clampToGround",allowPicking:!1,name:"_".concat(Object(u["c"])())});t.addLayer(i),this.layerName=i.name,e=null!==this.searchCenterIcon?new ol.style.Icon({src:this.searchCenterIcon,scale:.5}):new ol.style.Circle({fill:new ol.style.Fill({color:"#000"}),stroke:new ol.style.Stroke({color:"rgba(1,1,1,0.0)",width:0}),radius:5}),i.setStyle(new ol.style.Style({image:e,fill:new ol.style.Fill({color:this.fillColor}),stroke:new ol.style.Stroke({width:0,color:"rgba(1,1,1,0.0)"})}));var n=new ol.Feature({geometry:new ol.geom.Point([0,0])}),r=new ol.Feature({geometry:new ol.geom.Circle([0,0]),radius:2e5}),a=i.addFeatures([n,r]);this.pointId=a[0],this.circleId=a[1]}},{key:"addToQuery",value:function(e){if(this.isActive){var t={geo_distance:{distance:this.searchDistance,geoLocation:this.searchCenter}};return this.addFilter(e,t)}return e}},{key:"activate",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i){var n,r,a,s,o,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.searchCenter=t,i||(i="".concat(String(Math.round(100*t[1])/100),"N ").concat(String(Math.round(100*t[0])/100),"E")),this.title=i,e.next=5,this.showLayer();case 5:return n=G.getInstance(),r=n.getActiveMap(),a=r.getViewPoint(),a.animate=!0,s=a.groundPosition,o=this.searchCenter.slice(),s&&s[2]&&(o[2]=s[2]),l=a.pitch,(!l||l>-20)&&(a.pitch=-20),a.groundPosition=o,a.distance=2e3,a.cameraPosition=null,e.next=19,r.gotoViewPoint(a);case 19:this.isActive=!0;case 20:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{key:"setDistance",value:function(e){var t=Number(/^[0-9]+/.exec(e)[0]),i=/\D+$/.exec(e);i&&"m"!==i[0]&&(t*=1e3),this.searchDistance=t,this.isActive&&this.showLayer()}},{key:"getDistance",value:function(){return _d.deprecate("getDistance","access the searchDistance property directly"),this.searchDistance}},{key:"showLayer",value:function(){var e=G.getInstance().getLayerByName(this.layerName);return this.searchCenter?(e.updateGeometryOfFeature(this.pointId,new ol.geom.Point(this.searchCenter)),e.updateGeometryOfFeature(this.circleId,ol.geom.Polygon.circular(new ol.Sphere(6378137),this.searchCenter,this.searchDistance,128)),e.activate()):Promise.resolve()}},{key:"hideLayer",value:function(){if(this.layerName){var e=G.getInstance().getLayerByName(this.layerName);e.deactivate()}}},{key:"clear",value:function(){this.hideLayer(),this.isActive=!1,this.title=null}}]),i}(gd),Ld=bd,wd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADcAAAA3CAYAAACo29JGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4BpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2RUM4Mzk3QUJERDQxMUU1QjJEN0FDNDY2NkM0MTA0RiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo3Nzc1MkM2NkRCQTExMUU1QUUwQjhGQjIwQjM0ODRBNyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo3Nzc1MkM2NURCQTExMUU1QUUwQjhGQjIwQjM0ODRBNyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoV2luZG93cykiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NjMwYzU0NC03NmE3LWEzNGMtOWQ0OC1jNGU5OTZkMGIxYWMiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDpkYmYzYzlmNi1kYmEwLTExZTUtYjFiYi1iMWYzNDcxM2ZjNzQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4hNWn9AAAJk0lEQVR42txafWwUxxV/t3t3Pp8/LtgEG0zBJC20caJijN1CpSYEWqXBFqJNaRAUsI0cJFQI1P2DSoVgKtqmSexQsJQmjogaF5IUU1onsdoGqNQUCjU2Ul1RigOJC8R8nO2zfT77dm/7ZvXGGfbWt3t3Nm4z0mN9y87O++3vzZv33owTxr85UCQUma4S3XMIz2gkERKVrtp4KuIcR0BOEheJW7gnghRBKSQjKGESfk+bbHCyACQVxYOSQve5OARgInOcKVWQYZQQypAAWE3miyfSJAFQGl05U7LAnplpmpmkyBhnkgEcFIBGJhocNz8GJoOAeeiem1hzJfjRNAI5TGAU+nsApZ9AxmWupkpoWnR/h8MhkfLpBMxLgDwkMn928+bNs1esWDF/zpw5n8vKyvqM1+u91+l0pqKkKYoyiDIUDAZv+v3+rsuXL//72LFj7QcOHPhQGE4l8wwR0CABZECHUb+IiX6JgcOOMrHlQ8kkkCnEnA5q9erVOdu2bXusoKDgUQQzPV7aEOz1jo6O47W1tS2HDh3qFkAOEoNMAih9jEXUUbUCB2OB40ImxwDNQnkQpQjlqyhfY1JeXr6+s7Pzj5FIRNHGobH3sPex9/IxaLwiGn8W6eM06Bkfc/g1nMTOFDLFFHqxnJeX5z569OiTRUVF35EkyTXeiyWCDLe2tr65cuXKQ1evXh0hFgPEIDPRHsYq6qrEzRyZGwOSj/IQSgnKUvYlKyoqNvT29l7S7kJj47DxiMGlpMdDpJf+ocdiLparTycT4MCWsQHq6+t3hMPhQe0uNjYejvtDArhMADiL9JTi8aDME84kGy/mwBobG/eoqhrWJqGxcdn4AoPFpN9M0tdhFmEYm4u84j3kIRn1Ul1d3fzKyspdOL+cMAmNLUXoiRfj0tLR0tLSTXoqxJpqttDLJuaYRsDSyIm40ObzampqnpVl2QOT2BjAhQsXLr5+/fr7586dGxCAaUJsqpl5Swd5w2yULA6OeUVcf+p8Pt9n4/J2ff0Q/N0fIPTn0zDS3gFq9y2IBPpBykgHOfdecM8vAM/DXwbviq+DlJkRF8i+vr5LyOLT5EX7aS30o9wmb6oZwXHvOE1gTz5z5sy64uLitfGA6nvhJeh/qRG0oZA1G6keyHhqLfi2V4Hksw/y7NmzjSUlJa8Rc70E8CYt8qrRLFMIEA+tUnAhnbFp06YdFKFYtsE3fw83nqiC0IlTOBsUe1ric8Onz8HAa2+Bc0YOuAvm2eo2ffr0L3R1dZ1sb28fFAJxHo8qInMOYi2HXCtbtCWM+3bk5+cvsbEwQs+u5yHwYkPS8yrz6UqY8sz32QSzfPbKlSsnMH79CQHrodizm0w1IgseMkNgzbNu3boZGzZs2OqwsfT37q6FQN0r4+I0hk+34T8j4HlkkeWz6AfykYDj58+fHyBT5OkSYy/CFU+luXYPiRu9UUVhYeGTlqb4VjPc2viDMVJhGdK++Th4y5aB64G5IE/NAvWWH8L/vAjB5vdg8MjbqI55Ljr1lZ9D2rdLLQG2tbW9sWDBggYC1UtygwXXPIFkjOWSSTJP6cAo/Vepqak5sV6s3rwN14q+oTsRY/MsWQzZL+wC532zxp5uH3wEt7fvxjn61+gQCZ3LjL+/C/K07JjghoaGbmAWspbmnZ9M82NmmjxLdgkZtGPLli2zrYDpLvln9abA0tc/ATlNL8cEphOL/59z5Jf686Ze99l6S+ZQz2lMXyJJxCHxKpVbuAmlpaVftOPyB15vMmes9hl6tZ0qjKw/z/oZG3u/2cczNtR3vuA7RvFw5pxCQQfQA821TC5xgTauYw6XE7Kf36krHF+ZSdb7sf53OGF8PxvHqrGMX1irZV5xE8HxKhVg/DbT6oWhk6ei7nm/9Tg475+dWBkO+7H+dsYxNkFfSajzjIITq1SAE9Ryvo3840I0uOVLk1oGvKXLbI0T1c/rnSaAG622SQbE+m9WzLF6oXq1O+qe3ehirOZ+YK6tcaJYdzq9QjDiEME5Yjw8tkPpH4h231N8SYEz6282jgW40atkVgdUFCVoqUhGerQiPX3J1U1M+kvpaTbCU2VIqH2OXrlZRoTgU3x4bAeXFz0tRzDySKaZ9Zdn5toBFzTZYNEkwy5LhGqIlobufvDz0ctD85+SAmfW32wck5pnt0BSxAhOEZnz+/3/sXqh5+HowDZ45B09pEqkKZ0f6v3tjGNsgr7cAhmeiAiO77QAK3Fbul/MoFmieceiG1b0WBHUODdmMGXyV+/R+xsTWTaOVRP0VYXsICIWV/huCzQ3N7dbOhQMbNPXrIxedDEIvr1tN6uq2gOGH8K/vQaGjr8fHaPi++1k54K+YRFPrKzgdRaUxtTrBmYFCycwKzj7Dsg5Uy2zgszMzO+iU+EJa7+YFYhbR6PsXbhw4YSlx8R0JIvFkmbhGSp8rWQ53KqshuBvWyB86QpEegP6lf1m9699qdQUmB5SPfcjS2BcTwSmCawN8yoYj1QV2i7iNQh3XV3duwcPHlxllYmzhDLccRH6al+Onko4hwZ/87YucZUatlZC2qoyO2V/jenJk3gCFTLWUCQyzcRrKDufg8C+V5OvoWypgCk11XZrKCcxI9hrVUPRhGQvhcC6A4HAB2VlZcstq1+oSOqjXwEXRvahv5wBLTScUOiV/Ys9kPm9clvA2C5QdXX1j9va2hiQIDEWIGBhu3XL9cXFxWsmtm65Bnzbn4q3bvnrkpKSg7HqlnYrzi/6fL77E6o4Yz42WnHGIFivOKOj0CvOjyxKtOLcWVBQsNWq4gwmewWMvftQWOqu76Bu3LixPBwOD2j/A43pwfSBT3Zc55O+mWDYyjLOJR6C8TqEXpdgmw7Z2dn/QjNYQhv/k9LYlvL+/ft37t279yJ5xAGaa33EoBoLnBGgi36nsG2jefPmdbFtpMkAyIAdPnz4p1VVVX8j/foFJ9JLUQlYgQMhU+D1FfY7pamp6aPc3NyLhYWFiyZiH3zsCE0NNjQ01JSXl5+ijy0C66G/7e0df1r2xJM9zbC6qKho1QSdZlBaW1vfmJDTDJ/6cyifBCBxnSBa6vV6c+NlCrOQj3E9fW88TxBNyNkvVrtnJW7h7FeO0+n0sCoVq3eghFhpgJ/9YvnYvn37rM5+8QNuyZ39ihUtwZ2n9tIJ8P/PqT07cS6Yn7d0CbX6eM5bKkI+xk8lBOEun7c0Wyd5JsHNM5GTsuJ+NjfHYZikk7JmTIqMJXvGWU2EqYkCZ3xnvKfTuXmO6+n0/wowALmncfsG1yHoAAAAAElFTkSuQmCC",Md=wd,kd=function(){function e(t){Object(d["a"])(this,e),this.className=t.className,this.title=t.title?t.title:null,this.description=t.description?t.description:null,this.initialized=!1}return Object(m["a"])(e,[{key:"initialize",value:function(){return!0}},{key:"handleClickEvent",value:function(e){}},{key:"destroy",value:function(){this.initialized=!1}}]),e}(),Od=kd,Td=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.pointWGS84=e.pointWGS84||null,n.geometry=e.geometry||null,n.balloonContent=e.balloonContent||null,n.result=e.result||{},n.layerName=e.layerName,n.icon=e.icon||Md,n.clearLayerOnClick=null==e.clearLayerOnClick||e.clearLayerOnClick,n._featureId=null,n.zoomDistance="number"===typeof e.zoomDistance?e.zoomDistance:2e3,n.initialize(),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.FeatureItem"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=G.getInstance();if(ye(Object(fe["a"])(i.prototype),"initialize",this).call(this),!this.initialized){if(!this.pointWGS84&&!this.geometry)return console.log("you need to specify a geometry or a point"),!1;if(!this.pointWGS84){var t=(new ol.format.GeoJSON).readFeature(this.geometry);if(!t)return!1;this.pointWGS84=ol.extent.getCenter(t.getGeometry().getExtent())}var n=this.layerName&&e.getLayerByName(this.layerName)instanceof _n;if(!n)return console.log("could not find the result layer vector layer: ".concat(this.layerName)),!1;this.initialized=!0}return!0}},{key:"handleClickEvent",value:function(){if(this.initialized){var e=G.getInstance(),t=e.getActiveMap(),i=t.getViewPoint();i.animate=!0;var n=i.groundPosition,r=this.pointWGS84.slice();n&&n[2]&&(r[2]=n[2]),i.groundPosition=r,i.distance=this.zoomDistance,i.cameraPosition=null;var a=i.pitch;(!a||a>-20)&&(i.pitch=-20);var s=e.getLayerByName(this.layerName),o=this.getFeature();this.clearLayerOnClick&&s.removeAllFeatures(),s.addFeatures([o]),s.activate(),t.gotoViewPoint(i);var l=P.getInstance();l.getCurrentItem()&&l.getCurrentItem().id===o.getId()||l.setCurrentItem(o.getId(),o,s)}}},{key:"getFeature",value:function(){if(this.initialized){var e,t=G.getInstance();if(null!=this._featureId){var i=t.getLayerByName(this.layerName),n=i.getFeatureById(this._featureId);if(n)return n}if(this.geometry){var r=new ol.format.GeoJSON;e=r.readGeometry(this.geometry)}else e=new ol.geom.Point(this.pointWGS84);var a=new ol.Feature(Object.assign({},{geometry:e},this.result));return this._featureId=Object(u["c"])(),a.setId(this._featureId),this.balloonContent&&a.set("balloonContent",this.balloonContent),a}return null}},{key:"destroy",value:function(){if(ye(Object(fe["a"])(i.prototype),"destroy",this).call(this),null!=this._featureId){var e=G.getInstance(),t=e.getLayerByName(this.layerName);t.removeFeaturesById([this._featureId])}this._featureId=null}}]),i}(Od),Sd=Td,Cd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.slug=e.slug,n.initialize(),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.LayerItem"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(ye(Object(fe["a"])(i.prototype),"initialize",this).call(this),!this.initialized){if(!this.slug)return console.log("Could not find layer for LayerItem"),!1;var e=G.getInstance().getLayerByName(this.slug);if(!e)return console.log("Could not find layer for LayerItem"),!1;this.initialized=!0}return!0}},{key:"isActive",value:function(){return G.getInstance().getLayerByName(this.slug).active}},{key:"handleClickEvent",value:function(e){if(this.initialized){var t=G.getInstance().getLayerByName(this.slug);t&&(t.active||t.loading?(t.deactivate(),e()):t.activate().then(e))}}}]),i}(Od),jd=Cd,Ed=(ad={},Object(U["a"])(ad,id.className,id),Object(U["a"])(ad,md.className,md),ad),Id=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.autocomplete=Object(u["e"])(e.autocomplete,r.autocomplete),n.autocompleteRequest=e.autocompleteRequest||null,n.fullAddressRequest=e.fullAddressRequest||null,n.extendedSearches=e.extendedSearches||[],n.middleware=[],n.extendedSearches.forEach((function(t){var i;"string"===typeof t?"searchTags"===t?this.middleware.push(new vd(e)):"searchNear"===t&&this.middleware.push(new Ld(e)):("vcs.vcm.widgets.search.middleware.Near"===t.type?i=new Ld(t):"vcs.vcm.widgets.search.middleware.Tags"===t.type&&(i=new vd(t)),i&&i instanceof gd&&this.middleware.push(i))}),Object(gt["a"])(n)),n.searchImplementations=[];var a=e.searchImplementations||r.searchImplementations;if(a)for(var s=0;s<a.length;s++){a[s].middleware=n.middleware;var o=Ed[a[s].type];if(o){var l=new o(a[s]);l&&l instanceof $h&&(l.searchWidget=Object(gt["a"])(n),n.searchImplementations.push(l))}else n.logger.warning("could not find search implementation with type ".concat(a[s].type))}n.searchQueries=e.searchQueries||r.searchQueries,n.searchQueries.reverse(),n.searchResultItems=e.searchResultItems||r.searchResultItems,Object.values(n.searchResultItems).forEach((function(e){Object.keys(e).forEach((function(t){if(["title","description","balloonContent"].indexOf(t)>-1){var i=e[t],n=Array.isArray(i)?i.join("\n"):i;e[t]=Fr()(n)}}))})),n.currentResults=[],n.justSearched=!1;var c=r.style;e.resultIcon&&(c.image.src=e.resultIcon,n.logger.deprecate("resultIcon","use style instead."));var h=e.style||c;return n.resultLayer=new _n({projection:{epsg:4326},style:h,highlightStyle:e.highlightStyle||h,name:"_searchResultVector",zCoordinateEyeOffset:-100,heightAboveGround:10,altitudeMode:"clampToGround",classificationType:e.classificationType||r.classificationType}),n.showAllResults=!!e.showAllResults,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{autocomplete:!1,autocompleteRequest:void 0,fullAddressRequest:void 0,extendedSearches:void 0,searchImplementations:[id.getDefaultOptions()],searchQueries:[{endpoints:[{searchImpl:"vcs.vcm.widgets.search.Nominatim"}],regex:".*"}],searchResultItems:{address:{zoomTo:!0,pointType:!0,geomProperty:"geometry",title:"",description:"<%= obj.fulladdress %>",balloonContent:["   <div class='balloon-content'>","       <p class='balloon-text'><span class='balloon-street'> <%= obj.fulladdress %></span><br></p>","   </div>"]},point:{pointType:!0,geomProperty:"point",title:"<%= obj.display_name %>",description:"<%= obj.licence %>",balloonContent:["   <h1 class='balloon-title'><%= obj.display_name %></h1>","   <div class='balloon-content'>","       <p class='balloon-text'><%= obj.licence %></p>","   </div>"]},geojson:{zoomTo:!0,pointType:!1,geomProperty:"geojson",pointProperty:"point",title:"<%= obj.display_name %>",description:"<%= obj.licence %>",balloonContent:["   <h1 class='balloon-title'><%= obj.display_name %></h1>","   <div class='balloon-content'>","       <p class='balloon-text'><%= obj.licence %></p>","   </div>"]}},style:{image:{src:Md,scale:.5},fill:{color:"rgba(168, 192, 43, 0.6)"},stroke:{color:"rgb(168, 192, 32)",width:1.25}},highlightStyle:{image:{src:Md,scale:.5},fill:{color:"rgba(168, 192, 43, 0.6)"},stroke:{color:"rgb(168, 192, 32)",width:1.25}},classificationType:void 0,showAllResults:!1})}},{key:"className",get:function(){return"vcs.vcm.widgets.search.Search"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;this.searchImplementations.forEach((function(e){e.initialize()})),this.middleware.forEach((function(e){e.initialize()})),this.framework.addLayer(this.resultLayer),this.initialized=!0;var t=this.framework.getWidgetByType("vcs.vcm.widgets.BalloonInfo");t&&!t.hasTypeForLayerName("_searchResultVector")&&t.addTypeForLayer("_searchResultVector",["<div class='balloon' id='myBalloon'>","    <%= balloonContent %>","   <div class='balloon-close-col'>","       <button class='close-balloon'><i class='fa fa-times fa-lg'></i></button>","   </div>","   <div class='dialog-image-balloon'></div>","   <div class='balloon-left-edge'></div>","</div>"],"balloonHeight + 30","70"),this.initializedFinished()}}},{key:"search",value:function(e){var t=this;return this.clearSearch(),new Promise((function(i){var n=t._handleSearchResults.bind(t,i);t._handleSearch(e,n)}))}},{key:"_handleSearch",value:function(e,t,i){var n;if(this.runningRequest&&this.runningRequest.cancel(),this.justSearched=!0,Number.isFinite(i)){if(!(i<this.searchQueries.length-1))return void t([]);n=this.searchQueries.slice(i+1).findIndex((function(t){var i=new RegExp(t.regex);return i.test(e)})),n=n+i+1}else n=this.searchQueries.findIndex((function(t){var i=new RegExp(t.regex);return i.test(e)}));var r=this.searchQueries[n],a=this.searchImplementations.filter((function(e){var t=r.endpoints.findIndex((function(t){return t.searchImpl===e.className}));return t>-1}));if(0!==a.length){var s=this.searchCascade.bind(this,e,r.cascade,n,t);a.forEach((function(t){t.search(e,r,s)}))}else t([])}},{key:"searchCascade",value:function(e,t,i,n,r){0===r.length&&t?this._handleSearch(e,n,i):n(r)}},{key:"_handleSearchResults",value:function(e,t){var i=this._getResultItems(t),n=i.map((function(e){return!!(e.initialized&&(this.currentResults.push(e),this.showAllResults&&e instanceof Sd))&&e.getFeature()}),this).filter((function(e){return e}));this.showAllResults&&(this.resultLayer.addFeatures(n),this.resultLayer.activate()),e()}},{key:"_getResultItems",value:function(e){var t;if(0===e.length)return[];var i=[];return e.forEach((function(e){var n,r=this.searchResultItems[e.type];if(!r&&!t)throw new Error("Got undefined result type");if(t)n=e;else if(r.geomProperty){var a,s;if(r.pointType)s=e[r.geomProperty],a=!1;else{a=e[r.geomProperty];var o=new ol.format.GeoJSON,l=o.readGeometry(a);s=r.pointProperty&&e[r.pointProperty]?e[r.pointProperty]:ol.extent.getCenter(l.getExtent())}r.geomProperty&&e[r.geomProperty]&&delete e[r.geomProperty],r.pointProperty&&e[r.pointProperty]&&delete e[r.pointProperty],e.zoomTo=r.zoomTo,n=new Sd({geometry:a,result:e,balloonContent:r.balloonContent(e),title:r.title(e),pointWGS84:s,description:r.description(e),layerName:"_searchResultVector",clearLayerOnClick:!this.showAllResults,icon:Md,zoomDistance:r.zoomTo})}else"layer"===e.type&&(n=new jd({slug:e.slug,title:r.title(e),description:r.description(e)}));i.push(n)}),this),i}},{key:"clearSearch",value:function(){this.runningRequest&&this.runningRequest.cancel(),this.resultLayer.removeAllFeatures(),this.currentResults.splice(0,this.currentResults.length),this.resultLayer.deactivate()}},{key:"getAutocomplete",value:function(e,t){var i=this,n=JSON.parse(JSON.stringify(this.autocompleteRequest)),r=new RegExp(/\b[0-9]+/g),a=new RegExp(/\b[0-9]{5}\b/);if(r.test(e)&&null!==this.fullAddressRequest){var s=e.match(r);1===s.length&&a.test(e)||(n.query=Object.assign(n.query,this.fullAddressRequest))}var o=Fr()(JSON.stringify(n.query));this.runningRequest&&this.runningRequest.cancel();var l=C.getInstance().getLocaleAwareString(n.endPoint);return this.runningRequest=q.a.CancelToken.source(),new Promise((function(n,r){q.a.post(l,o({query:e}),{cancelToken:i.runningRequest.token}).then((function(e){var r=e.data;r=r.suggest||r;var a=[];if(i.justSearched)return t&&(n(a),t(a)),void(i.justSearched=!1);r.fullAddressSuggest&&r.fullAddressSuggest[0].options.length>0&&r.fullAddressSuggest[0].options.forEach((function(e){a.push(e.text)})),0===a.length&&r.nameSuggest[0].options.length>0&&r.nameSuggest[0].options.forEach((function(e){a.push(e.text)})),a=a.filter((function(e,t,i){return i.indexOf(e)===t})),t&&t(a),n(a)})).catch((function(e){t&&t([]),n([])})).then((function(){i.runningRequest=null}))}))}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.autocomplete=this.autocomplete,e.autocompleteRequest=this.autocompleteRequest,e.searchImplementations=[],e.extendedSearches=this.extendedSearches,e.searchImplementations.push(new id({}).getConfigObject()),e}}]),i}(Ys),Dd=Id,Pd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this),r.cb=n,r.scratchLayer=e,r._defaultActive=re.CLICK,r.coordinates=[],r.setActive(),r}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(!e.position.every((function(e){return 0===e}))){var t=e.position.slice();e.feature||2===this.coordinates.length||(t[2]+=1.6),this.coordinates.push(t),2===this.coordinates.length?(this.scratchLayer.addFeatures([new ol.Feature({geometry:new ol.geom.Point(t)}),new ol.Feature({geometry:new ol.geom.LineString(this.coordinates)})]),this.setActive(!1),this.cb(this.coordinates)):this.scratchLayer.addFeatures([new ol.Feature({geometry:new ol.geom.Point(t)})])}return Promise.resolve(e)}}]),i}(ce),Ad=Pd,xd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.navigationControls=null,n.color=e.color||r.color,n.featureLayer=new _n({projection:{epsg:3857},name:"_advancedWalkMode",altitudeMode:"none"}),n.supportedMaps=["vcs.vcm.maps.Cesium"],n._removeInteraction=null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{color:"#A8C02B"})}},{key:"className",get:function(){return"vcs.vcm.widgets.AdvancedWalkMode"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.initialized=!0,this.initializedFinished();var t=new ol.style.Fill({color:this.color}),n=new ol.style.Stroke({color:this.color,width:2});this.featureLayer.setStyle(new ol.style.Style({image:new ol.style.Circle({fill:t,stroke:n,radius:5}),fill:t,stroke:n}))}return!0}},{key:"isSupported",value:function(e){return!(!this.navigationControls&&this.framework.isInitialized()&&(this.navigationControls=this.framework.getWidgetByType("vcs.vcm.widgets.NavigationControls"),!this.navigationControls))&&ye(Object(fe["a"])(i.prototype),"isSupported",this).call(this,e)}},{key:"activate",value:function(){this.featureLayer.activate(),this.navigationControls.navigationMode.values.walkmode&&this.navigationControls.navigationMode.activateOverviewMode(),this.active&&this.deactivate();var e=new Ad(this.featureLayer,this.calculateViewPoint.bind(this));this._removeInteraction=xn().addExclusiveInteraction(e,this.deactivate.bind(this)),ye(Object(fe["a"])(i.prototype),"activate",this).call(this)}},{key:"deactivate",value:function(){this._removeInteraction&&this._removeInteraction(),this.featureLayer.getSource().clear(),this.featureLayer.deactivate(),ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this)}},{key:"calculateViewPoint",value:function(e){var t,i,n,r,a=e.map((function(e){return X.mercatorToWgs84(e)})),s=Object(Oe["a"])(a,2),o=s[0],l=s[1],c={};o[2]>l[2]?(c=o.slice(),c[2]=l[2]):(c=l.slice(),c[2]=o[2]),sd=(t=Cesium.Cartesian3).fromDegrees.apply(t,Object(g["a"])(o).concat([Cesium.Ellipsoid.WGS84,sd])),od=(i=Cesium.Cartesian3).fromDegrees.apply(i,Object(g["a"])(l).concat([Cesium.Ellipsoid.WGS84,od])),ld=(n=Cesium.Cartesian3).fromDegrees.apply(n,Object(g["a"])(c).concat([Cesium.Ellipsoid.WGS84,ld])),od=Cesium.Cartesian3.subtract(od,sd,new Cesium.Cartesian3),ld=Cesium.Cartesian3.subtract(ld,sd,new Cesium.Cartesian3),Cesium.Cartesian3.normalize(od,od),Cesium.Cartesian3.normalize(ld,ld),r=o[2]>l[2]?Cesium.Math.toDegrees(Math.acos(Cesium.Cartesian3.dot(od,ld)))-90:Cesium.Math.toDegrees(Math.acos(Cesium.Cartesian3.dot(od,ld)));var u={groundPosition:o,distance:0,animate:!0,heading:Jt(o,l),pitch:r},h=new ke(u);this.navigationControls.navigationMode.activateFirstPersonMode(h,null,null,null,!0),setTimeout(this.deactivate.bind(this),1e3)}}]),i}(Ys),Yd=xd,Nd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.balloonTypes=[],n.layerNamesToBalloonTypes={},n.layerTypesToBalloonTypes={};var a=e.balloonTypes||r.balloonTypes;return a.forEach((function(e,t){var i=e.template;"string"!==typeof e.template&&(i=e.template.join("\n")),n.balloonTypes.push({template:i,minTop:e.minTop?e.minTop:0,minLeft:e.minLeft?e.minLeft:0,layerNames:e.layerNames?e.layerNames:[],layerTypes:e.layerTypes?e.layerTypes:[]}),e.layerTypes&&e.layerTypes.forEach((function(e){n.layerTypesToBalloonTypes[e]=t})),e.layerNames&&e.layerNames.forEach((function(e){n.layerNamesToBalloonTypes[e]=t}))})),n.balloon=null,n.excludedLayerNames=e.excludedLayerNames||[],n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{balloonTypes:[{template:["<div class='balloon' id='myBalloon'>","   <h1 class='balloon-title'><%= obj.title %></h1>","   <div class='balloon-content'>","       <%= obj.description %>","   </div>","   <div class='balloon-close-col'>","       <button class='close-balloon'><i class='fa fa-times fa-lg'></i></button>","   </div>","   <div class='dialog-image-balloon'></div>","   <div class='balloon-left-edge'></div>","</div>"],minTop:"balloonHeight + 70",minLeft:"70",layerTypes:["vcs.vcm.layer.Vector"],layerNames:[]}],excludedLayerNames:void 0})}},{key:"className",get:function(){return"vcs.vcm.widgets.BalloonInfo"}}]),Object(m["a"])(i,[{key:"createBalloonForGenericFeature",value:function(e){this.clearBalloon();var t,i=e.layerName,n=e.layerClass;if(!this.excludedLayerNames.includes(i)){if(null!=this.layerNamesToBalloonTypes[i])t=this.balloonTypes[this.layerNamesToBalloonTypes[i]];else{if(null==this.layerTypesToBalloonTypes[n])return;t=this.balloonTypes[this.layerTypesToBalloonTypes[n]]}var r,a=e.attributes||e,s={};Object.keys(a).forEach((function(e){/^olcs_/.test(e)||(s[e]=a[e])}));try{r=Fr()(t.template)(s)}catch(l){return void this.logger.warning("Could not render the template for layer: ".concat(i,". Please verify that the balloon template is correct"))}var o=Object.assign(e,{balloonWidget:this,minTop:t.minTop,minLeft:t.minLeft,balloonContent:r});this.balloon=new Gr(o),this.balloon.initialize()}}},{key:"clearBalloon",value:function(){this.balloon&&(this.balloon.close(),this.balloon=null)}},{key:"hasTypeForLayerName",value:function(e){return o(e,String),null!=this.layerNamesToBalloonTypes[e]}},{key:"addTypeForLayer",value:function(e,t,i,n){Array.isArray(t)&&(t=t.join("")),o(e,String),o(t,String),l(n,String),l(i,String);var r={layerTypes:[],layerNames:[e],template:t,minTop:i||"balloonHeight + 30",minLeft:n||"70"},a=this.balloonTypes.length;this.balloonTypes.push(r),this.layerNamesToBalloonTypes[e]=a}},{key:"getLink",value:function(e){this.balloon&&this.balloon.getLink(e)}},{key:"dispose",value:function(){this.clearBalloon()}},{key:"getBalloon",value:function(){return this.logger.deprecate("getBalloon","access the balloon property directly"),this.balloon}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.balloonTypes=this.balloonTypes,e.balloonTypes.forEach((function(e){e.template&&(e.template=e.template.split("\n"))})),e.excludedLayerNames=this.excludedLayerNames,e}}]),i}(Ys),Fd=Nd,Rd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.data={},n.headerLogoBox=e.headerLogoBox||null,Array.isArray(n.headerLogoBox)&&(n.headerLogoBox=n.headerLogoBox.join("\n")),n.headerTitle=e.headerTitle||null,Array.isArray(n.headerTitle)&&(n.headerTitle=n.headerTitle.join("\n")),n.footerLogoBox=e.footerLogoBox||null,Array.isArray(n.footerLogoBox)&&(n.footerLogoBox=n.footerLogoBox.join("\n")),n.showOverflow=!!e.showOverflow,n.layerItems=[],n.uiOptions={headerLogoBox:n.headerLogoBox,headerTitle:n.headerTitle,footerLogoBox:n.footerLogoBox},n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.Copyright"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;this.updateLayers(),this.framework.subscribe(O.MAP_ACTIVATED,this.updateLayers.bind(this)),this.framework.subscribe(O.LAYER_CHANGED,this.layerChanged.bind(this)),this.initialized=!0,this.initializedFinished()}}},{key:"updateLayers",value:function(){var e=this.framework.getLayers(),t=this.framework.getActiveMap();t&&(this.layerItems.splice(0),e.forEach((function(e){if(e.isSupported(t)&&e.active){var i=this.createLayerItem(e);i&&this.layerItems.push(i)}}),this))}},{key:"layerChanged",value:function(e){var t=this.layerItems.findIndex((function(t){return t.layerName===e.name}));if(e.active){if(-1===t){var i=this.createLayerItem(e);i&&this.layerItems.push(i)}}else t>-1&&this.layerItems.splice(t,1)}},{key:"createLayerItem",value:function(e){var t=e.options.copyright;if(t&&t.provider&&""!==t.provider){t.layerName=e.name;var i="";return e.options.category&&(i+="".concat(e.options.category," - ")),e.options.title?i+=e.options.title:i+=e.name,t.title=i,t}return null}},{key:"handleURLParameter",value:function(e){var t=e.headerTitle;null!=t&&(this.uiOptions.headerTitle=t)}},{key:"getLink",value:function(e){this.headerTitle!==this.uiOptions.headerTitle&&e.addQueryParams({headerTitle:this.uiOptions.headerTitle})}}]),i}(Ys),Hd=Rd,Gd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.CreateLink"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;this.initializedFinished()}}}]),i}(Ys),zd=Gd,Bd={AMBIENT_OCCLUSION:"ambientOcclusion",BLOOM:"bloom",BLACK_AND_WHITE:"blackAndWhite",BLUR:"blur",BRIGHTNESS:"brightness",DEPTH_OF_FIELD:"depthOfField",LENS_FLARE:"lensFlare",NIGHT_VISION:"nightVision",SILHOUTTE:"silhouette"},Vd=function(){function e(t,i){var n=this;Object(d["a"])(this,e),this._enabled=t.enabled,this.uniforms={},Object.keys(i).forEach((function(e){"color"===i[e].type?Object.defineProperty(n.uniforms,e,{get:function(){var i=t.uniforms[e].toBytes();return i[3]/=255,i},set:function(i){t.uniforms[e]=Cesium.Color.fromBytes(i[0],i[1],i[2],255*i[3],t.uniforms[e])}}):n.uniforms[e]=t.uniforms[e]})),this.uniformTypes=i,this.update=this._update.bind(this,t),this.setEnabled=this._setEnabled.bind(this,t)}return Object(m["a"])(e,[{key:"_setEnabled",value:function(e){e.enabled=this._enabled}},{key:"_update",value:function(e){var t=this;Object.keys(this.uniforms).forEach((function(i){e.uniforms[i]=t.uniforms[i]}))}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this.setEnabled()}}],[{key:"isSupported",value:function(e){return!0}}]),e}(),Ud=Vd,Wd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e,{intensity:{type:"number"},bias:{type:"number"},lengthCap:{type:"number"},stepSize:{type:"number",step:.2},frustumLength:{type:"number",step:10},ambientOcclusionOnly:{type:"boolean"}}),n.uniforms.lengthCap=3,n.update(),n}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.AMBIENT_OCCLUSION}}]),Object(m["a"])(i,null,[{key:"isSupported",value:function(e){return Cesium.PostProcessStageLibrary.isAmbientOcclusionSupported(e)}}]),i}(Ud),qd=Wd,Jd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{contrast:{type:"number",step:2},brightness:{type:"number"},delta:{type:"number"},sigma:{type:"number"},stepSize:{type:"number"},glowOnly:{type:"boolean"}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.BLOOM}}]),i}(Ud),Kd=Jd,Zd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{gradations:{type:"number",step:1}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.BLACK_AND_WHITE}}]),Object(m["a"])(i,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createBlackAndWhiteStage()}}]),i}(Ud),Qd=Zd,Xd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{delta:{type:"number"},sigma:{type:"number"},stepSize:{type:"number"}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.BLUR}}]),Object(m["a"])(i,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createBlurStage()}}]),i}(Ud),$d=Xd,em=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{brightness:{type:"number"}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.BRIGHTNESS}}]),Object(m["a"])(i,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createBrightnessStage()}}]),i}(Ud),tm=em,im=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{focalDistance:{type:"number",step:1},delta:{type:"number"},sigma:{type:"number"},stepSize:{type:"number"}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.DEPTH_OF_FIELD}}]),Object(m["a"])(i,null,[{key:"isSupported",value:function(e){return Cesium.PostProcessStageLibrary.isDepthOfFieldSupported(e)}},{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createDepthOfFieldStage()}}]),i}(Ud),nm=im,rm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{intensity:{type:"number"},distortion:{type:"number",step:1},ghostDispersal:{type:"number"},haloWidth:{type:"number"},earthRadius:{type:"number",step:1e3}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.LENS_FLARE}}]),Object(m["a"])(i,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createLensFlareStage()}}]),i}(Ud),am=rm,sm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.NIGHT_VISION}}]),Object(m["a"])(i,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createNightVisionStage()}}]),i}(Ud),om=sm,lm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{color:{type:"color"},length:{type:"number"}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.SILHOUTTE}}]),Object(m["a"])(i,null,[{key:"isSupported",value:function(e){return Cesium.PostProcessStageLibrary.isSilhouetteSupported(e)}},{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createSilhouetteStage()}}]),i}(Ud),cm=lm,um=(cd={},Object(U["a"])(cd,qd.type,qd),Object(U["a"])(cd,Kd.type,Kd),Object(U["a"])(cd,Qd.type,Qd),Object(U["a"])(cd,$d.type,$d),Object(U["a"])(cd,tm.type,tm),Object(U["a"])(cd,nm.type,nm),Object(U["a"])(cd,am.type,am),Object(U["a"])(cd,om.type,om),Object(U["a"])(cd,cm.type,cm),cd),hm=k.getLogger("vcs.vcm.widets.DisplayQuality"),dm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.defaultQualityLevel=e.defaultQualityLevel||r.defaultQualityLevel,n.defaultMobileQualityLevel=e.defaultMobileQualityLevel||r.defaultMobileQualityLevel,n.viewModel=null;var a={},s=e.low||{};a.low=i.createViewModel(r.low,s);var o=e.medium||{};a.medium=i.createViewModel(r.medium,o);var l=e.high||{};a.high=i.createViewModel(r.high,l),n.viewModelSettings=a,n.showAdvancedSettings=Object(u["e"])(e.showAdvancedSettings,r.showAdvancedSettings),n.sseLayerTypes=["vcs.vcm.layer.cesium.AbstractCesiumTilesetLayer","vcs.vcm.layer.TiledLayer","vcs.vcm.layer.FeatureStore"],n.supportedMaps=["vcs.vcm.maps.Cesium"],n.cesiumMap=null,n.layers=[],n.activePreset={preset:null},n.postProcessStages={};var c=e.allowedPostRenderStages||r.allowedPostRenderStages;return c.forEach((function(e){n.postProcessStages[e]=null})),n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{defaultQualityLevel:"medium",defaultMobileQualityLevel:"low",low:{sse:4,fxaa:!1,fog:{enabled:!0,density:9e-4,screenSpaceErrorFactor:6},resolutionScale:.9,layerSSEFactor:2},medium:{sse:2.333,fxaa:!1,fog:{enabled:!0,density:5e-4,screenSpaceErrorFactor:4},resolutionScale:1,layerSSEFactor:1.1},high:{sse:4/3,fxaa:!0,fog:{enabled:!1,density:0,screenSpaceErrorFactor:0},resolutionScale:1,layerSSEFactor:.5},showAdvancedSettings:!1,allowedPostRenderStages:[qd.type,Kd.type,Qd.type,$d.type,tm.type,nm.type,om.type,cm.type]})}},{key:"className",get:function(){return"vcs.vcm.widgets.DisplayQuality"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var t=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!t)return!1;this.cesiumMap=this.framework.getMapByType("vcs.vcm.maps.Cesium");var n=this.cesiumMap.getScene(),r=n.postProcessStages;Object.keys(this.postProcessStages).forEach((function(t){um[t]&&um[t].isSupported(e.cesiumMap.getScene())?r[t]&&(e.postProcessStages[t]=new um[t](r[t])):delete e.postProcessStages[t]})),this.viewModel={sse:n.globe.maximumScreenSpaceError,fxaa:r.fxaa.enabled,fog:n.fog,resolutionScale:1},this.initializeLayers(),this.framework.subscribe(O.LAYER_ACTIVATED,this.layerActivated,this),this.framework.isMobile()?this.setPreset(this.defaultMobileQualityLevel):this.setPreset(this.defaultQualityLevel),this.initialized=!0,this.initializedFinished()}return!0}},{key:"addPostProcessingStage",value:function(e){this.postProcessStages[e]&&hm.warning("trying to add existing stage");var t=um[e],i=this.cesiumMap.getScene();if(t&&t.isSupported(i)){var n=t.createStage();i.postProcessStages.add(n),this.postProcessStages[e]=new t(n)}else hm.error("could not find ".concat(e," or ").concat(e," is not supported"))}},{key:"initializeLayers",value:function(){var e=this;this.framework.getLayers().filter((function(e){return e instanceof Ga||e instanceof or||e instanceof Ps})).forEach((function(t){var i=e.framework.isMobile()?t.screenSpaceErrorMobile:t.screenSpaceError;e.layers.push({layerName:t.name,sse:i,defaultSse:i})}))}},{key:"layerActivated",value:function(e){var t=this.layers.find((function(t){return t.layerName===e.name}));t&&this.setLayerQuality(e.name)}},{key:"setQuality",value:function(e){if(l(e,Boolean),e||(this.activePreset.preset=null),this.cesiumMap.initialized&&this.viewModel){var t=this.cesiumMap.getCesiumWidget();t.scene.globe.maximumScreenSpaceError=this.viewModel.sse,t.scene.postProcessStages.fxaa.enabled=this.viewModel.fxaa,t.resolutionScale=this.viewModel.resolutionScale,t.scene.fog.enabled=this.viewModel.fog.enabled,t.scene.fog.density=this.viewModel.fog.density,t.scene.fog.screenSpaceErrorFactor=this.viewModel.fog.screenSpaceErrorFactor}}},{key:"setPreset",value:function(e){var t=this;o(e,["high","medium","low"]),this.activePreset.preset=e;var i={};"high"===e?Object.assign(i,this.viewModelSettings.high):"medium"===e?Object.assign(i,this.viewModelSettings.medium):Object.assign(i,this.viewModelSettings.low),Object.assign(this.viewModel,i),this.layers.forEach((function(e){e.sse=e.defaultSse*i.layerSSEFactor,t.setLayerQuality(e.layerName)})),this.setQuality(!0)}},{key:"setLayerQuality",value:function(e){o(e,String);var t=this.framework.getLayerByName(e);if(t&&t.active){var i=this.layers.find((function(t){return t.layerName===e}));i&&t.setMaximumScreenSpaceError(i.sse)}}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.low=this.viewModelSettings.low,e.medium=this.viewModelSettings.medium,e.high=this.viewModelSettings.high,e.defaultQualityLevel=this.defaultQualityLevel,e.showAdvancedSettings=this.showAdvancedSettings,e.allowedPostRenderStages=this.options.allowedPostRenderStages||[qd.type,Kd.type,Qd.type,$d.type,tm.type,nm.type,om.type,cm.type],e}}],[{key:"createViewModel",value:function(e,t){var i=new Cesium.Fog,n=Object.assign(e.fog,"object"===Object(s["a"])(t.fog)?t.fog:{});i.enabled=!!n.enabled,i.density=Number(n.density),i.screenSpaceErrorFactor=Number(n.screenSpaceErrorFactor);var r=Object.assign(e,t);return{sse:Number(r.sse),fxaa:!!r.fxaa,fog:i,resolutionScale:Number(r.resolutionScale),layerSSEFactor:Number(r.layerSSEFactor)}}}]),i}(Ys),mm=dm;function fm(){return{image:{fill:{color:"rgba(255, 255, 255, 0.4)"},stroke:{color:"rgb(0, 0, 0)",width:1},radius:5},stroke:{color:"rgb(51, 153, 204)",width:2},fill:{color:"rgba(255, 255, 255, 0.4)"},text:{font:"bold 18px Arial, Helvetica, sans-serif",textBaseline:"bottom",fill:{color:"rgb(0, 0, 0)"},offsetY:-15,offsetX:0,stroke:{color:"rgb(255, 255, 255)",width:2}}}}var gm=new dt(fm()),ym=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers","vcs.vcm.maps.Oblique"],n.allowedGeometries=e.allowedGeometries||r.allowedGeometries,n.allowEditMode=Object(u["e"])(e.allowEditMode,r.allowEditMode),n.allowSelectMode=Object(u["e"])(e.allowSelectMode,r.allowSelectMode),n.defaultMode=null!=un[e.defaultMode]?e.defaultMode:r.defaultMode,n.editorOptions={hideAltitudeMode:Object(u["e"])(e.hideAltitudeMode,r.hideAltitudeMode),simpleStyleUi:Object(u["e"])(e.simpleStyleUi,r.simpleStyleUi),hideExport:Object(u["e"])(e.hideExport,r.hideExport),hideHelp:Object(u["e"])(e.hideHelp,r.hideHelp),showFeatureEditorUiInEditMode:!n.allowSelectMode&&n.allowEditMode},("select"===n.defaultMode&&!n.allowSelectMode||"edit"===n.defaultMode&&!n.allowEditMode)&&(n.defaultMode="create"),n.editingLayer=null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{allowedGeometries:["Point","LineString","Polygon","BBox","Circle","Rectangle","Label"],allowEditMode:!0,allowSelectMode:!0,defaultMode:"create",hideAltitudeMode:!1,simpleStyleUi:!1,hideExport:!1,hideHelp:!1,style:fm()})}},{key:"className",get:function(){return"vcs.vcm.widgets.Drawing"}}]),Object(m["a"])(i,[{key:"activate",value:function(){ye(Object(fe["a"])(i.prototype),"activate",this).call(this)}},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.layerEditor.deactivate()}},{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.initialized=!0;var t=gm.clone();this.options.style&&t.assign(new dt(this.options.style)),this.editingLayer=new _n({altitudeMode:"clampToGround",projection:ee,style:t,isDynamic:!0}),this.framework.addLayer(this.editingLayer),this.editingLayer.activate(),this.layerEditor=new vc({geometryLayerEditor:{allowEditMode:this.allowEditMode,defaultMode:this.defaultMode,allowedGeometries:this.allowedGeometries},featureLayerEditor:{allowSelectMode:this.allowSelectMode},styleLayerEditor:{}}),this.layerEditor.initialize(),this.layerEditor.addEditingLayer(this.editingLayer),this.initializedFinished()}return!0}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this),t=gm.clone();return this.options.style&&t.assign(new dt(this.options.style)),Object(tn["a"])(Object(tn["a"])({},e),{},{allowedGeometries:this.allowedGeometries,allowSelectMode:this.allowSelectMode,allowEditMode:this.allowEditMode,defaultMode:this.defaultMode,simpleStyleUi:this.editorOptions.simpleStyleUi,hideHelp:this.editorOptions.hideHelp,hideExport:this.editorOptions.hideExport,hideAltitudeMode:this.editorOptions.hideAltitudeMode,style:t.getOptions()})}}]),i}(Ys),pm=ym,vm=i(656),_m=i.n(vm);function bm(e){var t=e[_n.obliqueGeometry];if(t){var i=t.clone(),n=G.getInstance().getActiveMap();return wi(t,i,n.activeLayer.currentImage)}return Promise.resolve(null)}function Lm(e){return e<1e3?"".concat(e," kB"):e<1e6?"".concat(e/1e3," MB"):"".concat(e/1e6," GB")}var wm=i(679),Mm=i.n(wm),km=i(77),Om=i(680),Tm=i.n(Om),Sm=new ol.Sphere(6378137);function Cm(e,t){var i=e.clone();i.transform("EPSG:3857","EPSG:4326");var n=i.getType(),r=i.getCoordinates();if("Polygon"===n)return r.forEach(Un),Object(km["polygon"])(r,t);if("LineString"===n)return Object(km["lineString"])(r,t);if("Point"===n)return Object(km["point"])(r,t);if("Circle"===n){var a=Sm.haversineDistance(r[0],r[1]),s=Tm()(Object(km["point"])(r[0]),a);return s.properties=t||s.properties,s}if("MultiPolygon"===n)return r.forEach((function(e){e.forEach(Un)})),Object(km["multiPolygon"])(r);if("MultiPoint"===n)return Object(km["multiPoint"])(r);if("MultiLineString"===n)return Object(km["multiLineString"])(r);throw Error("unsupported geometry type ".concat(n))}var jm=k.getLogger("vcs.vcm.widgets.export.AbstractExportDataSource"),Em=function(){function e(t){Object(d["a"])(this,e),this.title=t.title,this.url=t.baseUrl?t.baseUrl.replace(/\/$/,""):"",this.resultLayerName="_exportResultLayer",this.initialized=!1,this.results=[]}return Object(m["a"])(e,[{key:"initialize",value:function(){return Promise.resolve()}},{key:"getResultLayer",value:function(){return G.getInstance().getLayerByName(this.resultLayerName)}},{key:"query",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n,r,a,s,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o(t,ol.Feature),this.initialized){e.next=4;break}return e.next=4,this.initialize();case 4:if(this.clear(),"vcs.vcm.maps.Oblique"!==G.getInstance().getActiveMap().className){e.next=11;break}return e.next=8,bm(t);case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=t.getGeometry();case 12:if(i=e.t0,!i){e.next=22;break}if(n=new De(Object(tn["a"])({coordinates:i.getExtent()},ee.getConfigObject())),!n.isValid()){e.next=22;break}return r=Cm(i),e.next=19,this._getFeatureInExtent(n);case 19:a=e.sent.map((function(e){var t=Cm(e.getGeometry());if(!Mm()(t,r)){var i=l._getResultFromFeature(e);return l.results.push(i),e}return null})).filter((function(e){return e})),s=this.getResultLayer(),s&&s.addFeatures(a);case 22:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"clear",value:function(){this.results.splice(0);var e=this.getResultLayer();e&&e.removeAllFeatures()}},{key:"_getResultFromFeature",value:function(e){throw new Error("Implementation Error")}},{key:"_getFeatureInExtent",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}],[{key:"validateOptions",value:function(e){try{l(e.baseUrl,String),o(e.title,[String,Object])}catch(t){return jm.error(t.message),!1}return!0}}]),e}(),Im=Em,Dm=function(){function e(t){Object(d["a"])(this,e),this.title=t.title,this.featureId=t.featureId,this.fileSize=t.fileSize}return Object(m["a"])(e,[{key:"download",value:function(){return Promise.resolve()}}]),e}(),Pm=Dm;i(669);function Am(e,t){var i=document.createElement("a");i.download=t,i.href=e,a["a"].hasSameOrigin(e)||(i.target="_blank"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}function xm(e,t){window.navigator.msSaveBlob?window.navigator.msSaveOrOpenBlob(e,t):Am(URL.createObjectURL(e),t)}function Ym(e,t){window.navigator.msSaveBlob?xm(new Blob([e]),t):Am("data:text/plain;charset=utf-8,".concat(encodeURIComponent(e)),t)}function Nm(e,t,i){null!=e.toBlob?e.toBlob((function(e){xm(e,t)}),i):window.navigator.msSaveBlob&&xm(e.msToBlob(),t)}var Fm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.href=e.href,n}return Object(m["a"])(i,[{key:"download",value:function(){return Am(this.href,""),Promise.resolve()}}]),i}(Pm),Rm=Fm,Hm=k.getLogger("vcs.vcm.widgets.export.GeoJSONExportDataSource"),Gm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.geojsonUrl=e.geojsonUrl,n.layerName=null,n}return Object(m["a"])(i,[{key:"getLayer",value:function(){return this.layerName?G.getInstance().getLayerByName(this.layerName):null}},{key:"initialize",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.initialized){e.next=2;break}return e.abrupt("return");case 2:return this.layerName?t=this.getLayer():(t=new rs({url:this.geojsonUrl,altitudeMode:"clampToGround"}),this.layerName=t.name,G.getInstance().addLayer(t),t.initialize()),e.next=5,t.fetchData();case 5:this.initialized=!0;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_getResultFromFeature",value:function(e){var t=e.getProperties();return new Rm({href:"".concat(this.url,"/").concat(t.url.replace(/^\//,"")),title:t.url,featureId:e.getId(),fileSize:t.fileSize?Lm(t.fileSize):null})}},{key:"_getFeatureInExtent",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=this.getLayer(),!i){e.next=3;break}return e.abrupt("return",i.source.getFeaturesInExtent(t.extent));case 3:return e.abrupt("return",[]);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}],[{key:"validateOptions",value:function(e){var t=Im.validateOptions(e);if(!t)return!1;try{o(e.geojsonUrl,String)}catch(i){return Hm.error(i.message),!1}return!0}}]),i}(Im),zm=Gm;function Bm(e){return/jpe?g$/i.test(e)?"image/jpeg":/png$/i.test(e)?"image/png":/tiff?$/i.test(e)?"image/tiff":""}function Vm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jpg",i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;o(e,Ti["a"]),l(t,["jpg","jpeg","png","tif","tiff"]),l(i,Number),n&&o(n,{progress:Number});var r=e.view.clone();r.setImageName(e.name);var s=r.tileImageSource,c=s.getTileGrid(),u=s.getTileUrlFunction(),h=i?c.getResolutions().indexOf(i):c.getMaxZoom(),d=document.createElement("canvas"),m=c.getTileSize(h),f=e.size.slice();i&&(f[0]/=i,f[1]/=i),d.width=f[0],d.height=f[1];var g=d.getContext("2d"),y=[],p=0;return c.forEachTileCoord([0,0,e.size[0],e.size[1]],h,(function(e){var t=new Image;a["a"].hasSameOrigin(r.url)||(t.crossOrigin="anonymous"),y.push(new Promise((function(i,r){t.onload=function(){g.drawImage(t,0,0,m[0],m[1],e[1]*m[0],f[1]-(e[2]+1)*m[1],m[0],m[1]),p+=1,n&&(n.progress=p/y.length),i()},t.onerror=r}))),t.src=u(e)})),Promise.all(y).then((function(){Nm(d,"".concat(e.name,".").concat(t),Bm(t))}))}var Um=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.obliqueLayerName=e.obliqueLayerName,n.direction=e.direction,n.imageName=e.imageName,n.fileExtension=e.fileExtension,n.resolution=e.resolution,n.progress={progress:0},n}return Object(m["a"])(i,[{key:"download",value:function(){var e=this,t=G.getInstance().getLayerByName(this.obliqueLayerName),i=t.obliqueCollection.directions[this.direction.toString()].images[this.imageName];return Vm(i,this.fileExtension,this.resolution,this.progress).then((function(){e.progress.progress=0}))}}]),i}(Pm),Wm=Um,qm=k.getLogger("vcs.vcm.widgets.export.ObliqueExportDataSource"),Jm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.dedicatedSource=Object(u["e"])(e.dedicatedSource,!1),n.obliqueLayerName=e.obliqueLayerName,n.fileExtension=e.fileExtension||"jpg",n.viewDirectionFilter=null,n.resolution=e.resolution,n}return Object(m["a"])(i,[{key:"initialize",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.initialized){e.next=2;break}return e.abrupt("return");case 2:return t=G.getInstance().getLayerByName(this.obliqueLayerName),e.next=5,t.initialize();case 5:this.initialized=!0;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getUriForImage",value:function(e){return"".concat(this.url,"/").concat(e,".").concat(this.fileExtension)}},{key:"_getResultFromFeature",value:function(e){var t=e.getId();return this.dedicatedSource?new Rm({title:t,href:this.getUriForImage(t),featureId:t}):new Wm({title:t,featureId:t,obliqueLayerName:this.obliqueLayerName,imageName:t,direction:e.get("direction"),fileExtension:this.fileExtension,resolution:this.resolution})}},{key:"_getFeatureInExtent",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n,r,a,s,o,l,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=G.getInstance().getLayerByName(this.obliqueLayerName),n=i.obliqueCollection,!n.isTiled){e.next=7;break}return r=n.tileFootPrintsSource.getFeaturesInExtent(t.extent),a=r.map((function(e){return n.loadTile(e.getId())})),e.next=7,Promise.all(a);case 7:if(s=n.directions,!this.viewDirectionFilter){e.next=14;break}if(o=s[this.viewDirectionFilter],!o){e.next=12;break}return e.abrupt("return",o.footPrintsLayer.getSource().getFeaturesInExtent(t.extent));case 12:e.next=16;break;case 14:return c=Object.values(s).map((function(e){return e.footPrintsLayer.getSource().getFeaturesInExtent(t.extent)})),e.abrupt("return",(l=[]).concat.apply(l,Object(g["a"])(c)));case 16:return e.abrupt("return",[]);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}],[{key:"validateOptions",value:function(e){var t=Im.validateOptions(e);if(!t)return!1;try{o(e.obliqueLayerName,String),o(G.getInstance().getLayerByName(e.obliqueLayerName),Yi),l(e.fileExtension,String),l(e.resolution,Number)}catch(i){return qm.error(i.message),!1}return!0}}]),i}(Im),Km=Jm,Zm={GEOJSON:"geojson",OBLIQUE:"oblique"};function Qm(e){return e.type===Zm.GEOJSON&&zm.validateOptions(e)?new zm(e):e.type===Zm.OBLIQUE&&Km.validateOptions(e)?new Km(e):null}var Xm=[{type:"2D Shape",texture:!1,localCoordinates:!1,genericAttributes:!0},{type:"3D Shape - PolygonZ",texture:!1,localCoordinates:!1,genericAttributes:!0},{type:"3D Shape - Multipatch",texture:!1,localCoordinates:!1,genericAttributes:!0},{type:"ESRI FGDB",texture:!1,localCoordinates:!1,genericAttributes:!0},{type:"KMZ",texture:!0,localCoordinates:!1,genericAttributes:!1},{type:"CityGML",texture:!0,localCoordinates:!1,genericAttributes:!0},{type:"DXF",texture:!1,localCoordinates:!0,genericAttributes:!1},{type:"DWG",texture:!1,localCoordinates:!0,genericAttributes:!1},{type:"3DS",texture:!0,localCoordinates:!0,genericAttributes:!1},{type:"SketchUp",texture:!0,localCoordinates:!0,genericAttributes:!1},{type:"OBJ",texture:!0,localCoordinates:!0,genericAttributes:!1},{type:"VRML",texture:!0,localCoordinates:!0,genericAttributes:!1},{type:"COLLADA",texture:!0,localCoordinates:!0,genericAttributes:!1},{type:"3DPDF",texture:!0,localCoordinates:!1,genericAttributes:!1},{type:"FMEAR",texture:!0,localCoordinates:!1,genericAttributes:!1}];function $m(e){return Array.isArray(e)?e.map((function(e){return"string"===typeof e?Xm.find((function(t){return t.type===e})):e})).filter((function(e){return e})):null}var ef,tf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.showFreeFormCrsInput=Object(u["e"])(e.showFreeFormCrsInput,r.showFreeFormCrsInput),n.dataProjection=e.dataProjection?new X(e.dataProjection):n.framework.projection;var a=n.dataProjection?n.dataProjection.epsg:"";n.coordinateSystem=e.coordinateSystem||a,n.heightMode=e.heightMode||r.heightMode;var s=e.formats&&Array.isArray(e.formats)?e.formats:r.formats;n.formatOptions=$m(s),n.lodOptions=e.lod||r.lod,n.citygmlclassesOptions=e.citygmlclasses||r.citygmlclasses,n.appearanceThemesOptions=e.appearanceThemes||r.appearanceThemes,n.maxArea=Object(u["h"])(e.maxarea,r.maxarea),n.serverUrl=e.serverUrl||r.serverUrl,n.token=e.securityToken&&""!==e.securityToken?e.securityToken:null;var o=mt.clone();e.style&&o.assign(new dt(e.style)),n._layerOptions={projection:ee,name:"_exportLayer",classificationType:e.classificationType||r.classificationType,altitudeMode:"clampToGround",style:o},n.singleFeatureId=Object(u["c"])();var l=e.dataSources||r.dataSources;return n.dataSources=l.map((function(e){return Qm(e)})).filter((function(e){return e})),n.disableWarehouse=Object(u["e"])(e.disableWarehouse,r.disableWarehouse),n.allowTerrainExport=Object(u["e"])(e.allowTerrainExport,r.allowTerrainExport),n.terrainUrl=e.terrainUrl,n.terrainZoomLevel=Object(u["h"])(e.terrainZoomLevel,-1),n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{showFreeFormCrsInput:!1,dataProjection:void 0,coordinateSystem:void 0,heightMode:"absolute",formats:Xm.map((function(e){return e.type})).sort(),lod:["LoD1","LoD2","LoD3","LoD4","haLoD"].sort(),citygmlclasses:["26","7","14","5","21","85","64","45","43","46","8","9","4"].sort(),appearanceThemes:["rgbTexture"],maxarea:2e6,securityToken:"",serverUrl:"http://fmeserver/fmedatadownload/Repository/workbench.fmw",dataSources:[],disableWarehouse:!1,classificationType:"both",allowTerrainExport:!0,style:tt()})}},{key:"className",get:function(){return"vcs.vcm.widgets.Export"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;if(this.geometryLayer=new _n(this._layerOptions),this.resultLayer=new _n({projection:ee,name:"_exportResultLayer",classificationType:"both",altitudeMode:"clampToGround",allowPicking:!1}),this.framework.addLayer(this.geometryLayer),this.framework.addLayer(this.resultLayer),this.layerEditor=new sc({allowedGeometries:["Polygon","BBox"],defaultMode:"edit"}),this.layerEditor.initialize(),this.layerEditor.addEditingLayer(this.geometryLayer),!this.disableWarehouse&&null==this.token)return this.logger.warning("Could not authentificate FME: missing security token"),!1;this.initialized=!0,this.initializedFinished()}return!0}},{key:"validateFeature",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("vcs.vcm.maps.Oblique"!==this.framework.getActiveMap().className){e.next=6;break}return e.next=3,bm(t);case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=t.getGeometry();case 7:if(i=e.t0,i&&"Polygon"===i.getType()){e.next=10;break}throw new Error("i18n_export_geometry_error");case 10:if(null==this.maxArea){e.next=14;break}if(n=ol.Sphere.getArea(i),!(n>this.maxArea)){e.next=14;break}throw new Error("i18n_export_maxArea_error");case 14:return e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"prepareRequestAndSend",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i,n){var r,a,s,o,l,c,h,d,m,f,g;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.token||n){e.next=2;break}throw new Error("i18n_export_authentification_error");case 2:if(t.cityGmlClasses&&0!==t.cityGmlClasses.length){e.next=4;break}throw new Error("i18n_export_themclass_error");case 4:if(r={COORD_SYS:t.crs||(Array.isArray(this.coordinateSystem)?this.coordinateSystem[0]:this.coordinateSystem),HEIGHT_MODE:this.heightMode,TOKEN:n||this.token,OPT_SERVICEMODE:"async"},r.EXPORT_FORMAT=t.format.type,r.THEM_CLASS=t.cityGmlClasses.map((function(e){return e.value})),t.format.texture&&(r.TEXTURE=t.texture?"Yes":"No"),t.format.localCoordinates&&(r.LOCAL=t.localCoordinates?"Yes":"No"),t.format.genericAttributes&&(r.GENERIC_ATTRIB=t.genericAttributes?"Yes":"No"),r.APP_THEME=t.appearance||"none",r.LOD_SELECTION=t.level,r.TERRAIN="No",this.allowTerrainExport&&t.terrainExport&&"2D Shape"!==t.format.type&&(a=this.framework.getLayers().find((function(e){return"vcs.vcm.layer.cesium.Terrain"===e.className&&e.active})),this.terrainUrl?(r.TERRAIN="Yes",r.LAYER_JSON=this.terrainUrl):a&&(r.TERRAIN="Yes",s=new _m.a(window.location.href),o=new _m.a(a.url,s).toString(),l=/layer.json/.test(o)?o:"".concat(o,"/layer.json"),r.LAYER_JSON=l),this.terrainZoomLevel>=0&&(r.ZOOM=this.terrainZoomLevel)),!t.useFeatureGeometry){e.next=27;break}if(r.SELECTION="Polygon",c=this.geometryLayer.getFeatureById(this.singleFeatureId),c){e.next=19;break}throw new Error("i18n_export_geometry_error");case 19:return e.next=21,this.validateFeature(c);case 21:h=c.getGeometry().clone(),h.transform(ee.proj,this.dataProjection.proj),d=h.getCoordinates()[0],r.POLYGON=d.map((function(e){var t=Object(Oe["a"])(e,2),i=t[0],n=t[1];return"".concat(i,",").concat(n)})).join(";"),e.next=32;break;case 27:if(m=this.framework.getSelectBehavior(),!(m.getSelectionSet().length<=0)){e.next=30;break}throw new Error("i18n_export_feature_error");case 30:r.SELECTION="Einzelobjekte",r.GMLID=m.getSelectionSet();case 32:if(Object(u["d"])(t.email)){e.next=34;break}throw new Error("i18n_export_email_error");case 34:return r.OPT_REQUESTEREMAIL=t.email,f=Object.keys(r).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(r[e]))})).join("&"),g=i||this.serverUrl,e.abrupt("return",q.a.post(g,f,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}));case 38:case"end":return e.stop()}}),e,this)})));function t(t,i,n){return e.apply(this,arguments)}return t}()},{key:"getCitygmlClassOptions",value:function(){var e={26:"Building",7:"SolitaryVegetationObjects",5:"GenericCityObject",21:"CityFurniture",14:"ReliefFeature",85:"Tunnel",64:"Bridge",45:"Road",43:"Track",46:"Square",8:"Plant Cover",9:"WaterBody",4:"LandUse"},t={85:!0,45:!0,43:!0,46:!0,8:!0,9:!0,4:!0};return this.citygmlclassesOptions.map((function(i){return{value:i,title:e[i],citygmlOnly:t[i]}})).filter((function(e){return e.title}))}},{key:"deactivate",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.framework.getSelectBehavior().deactivateClickBehavior())}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.formats=this.formatOptions,e.coordinateSystem=this.coordinateSystem,e.heightMode=this.heightMode,e.lod=this.lodOptions,e.citygmlclasses=this.citygmlclassesOptions,e.appearanceThemes=this.appearanceThemesOptions,e.maxarea=this.maxArea,e.serverUrl=this.serverUrl,e.securityToken=this.token,e}}]),i}(Ys),nf=tf,rf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.layers=new Set,n._setLayers(e.layerTypes,e.layers,e.excludedLayers),n.headerTemplate=e.headerTemplate?n._makeHeaderTemplate(e.headerTemplate):null,n.itemTemplate=e.itemTemplate||r.itemTemplate,Array.isArray(n.itemTemplate)&&(n.itemTemplate=n.itemTemplate.join("")),n.layerTemplateMap={},Array.isArray(e.layerTemplates)&&e.layerTemplates.forEach(n._setLayerTemplates,Object(gt["a"])(n)),n.queryProperties=e.queryProperties||r.queryProperties,n.values={currentHeader:n.headerTemplate,query:!0},n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{layerTypes:void 0,layers:void 0,excludedLayers:void 0,headerTemplate:void 0,itemTemplate:["<div class='ui-listview-list-column-2 ui-listview-list-data-cell'>","<span class='ui-listview-list-data-cell-value'><%= data.feature.properties.name %>","<% if(data.feature.properties.website){ %>","<br><a href='<%= data.feature.properties.website %>' target='_blank'><%= data.feature.properties.website %></a>","<% } %>","</span>","</div>","<div class='ui-listview-list-column-3 ui-listview-list-data-cell'>","<span class='ui-listview-list-data-cell-value'><%= data.feature.properties.street %><br><%= data.feature.properties.zip %> <%= data.feature.properties.city %></span>","</div>"],layerTemplates:void 0,queryProperties:["name"]})}},{key:"className",get:function(){return"vcs.vcm.widgets.FeatureList"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;var t=function e(t){t.children?t.children.forEach(e,this):this.layers.has(t.layerName)&&(t.hasFeatureListView=!0)},n=this.framework.getWidgetsByType(ko.className)[0];n&&n.cluster.forEach(t,this),this.initialized=!0,this.initializedFinished()}}},{key:"_setLayers",value:function(e,t,i){e&&this.framework.getLayers().filter((function(t){return e.includes(t.className)&&!/^_/.test(t.name)})).forEach((function(e){this.layers.add(e.name)}),this),t&&t.forEach((function(e){this.layers.add(e)}),this),i&&i.forEach((function(e){this.layers.delete(e)}),this)}},{key:"_setLayerTemplates",value:function(e){var t=e.layers,i=e.itemTemplate,n=e.headerTemplate;i=Array.isArray(i)?i.join(""):i;var r={item:i,header:n?this._makeHeaderTemplate(n):this.headerTemplate,queryProperties:e.queryProperties||this.queryProperties};t.filter((function(e){return this.layers.has(e)}),this).forEach((function(e){this.layerTemplateMap[e]=r}),this)}},{key:"_makeHeaderTemplate",value:function(e){return Array.isArray(e)?e.join(""):("object"===Object(s["a"])(e)&&(e=e,Object.keys(e).forEach((function(t){e[t]=Array.isArray(e[t])?e[t].join(""):e[t]}))),e)}},{key:"getItems",value:function(e){if(!this.layers.has(e))return this.logger.warning("Could not render listview for layer ".concat(e,". Please check your configuration.")),null;var t=this.framework.getLayerByName(e),i=t.getFeatures(),n=this.layerTemplateMap[e]?this.layerTemplateMap[e]:{item:this.itemTemplate,header:this.headerTemplate,queryProperties:this.queryProperties};this.values.currentHeader=n.header,this.values.query=!!n.queryProperties.length;var r=i.map((function(e){var t=e.getProperties();return delete t[e.getGeometryName()],{id:e.getId(),properties:t,query:n.queryProperties.reduce((function(t,i){var n=e.get(i);return null!=n?t+" "+n.toString():t}),"")}}));return r.map((function(e,t){return{template:Fr()(n.item)({data:{featureCount:t+1,feature:e}}),id:e.id,query:e.query}}))}}]),i}(Ys),af=rf,sf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.type=e.type||i.measurementType,n=t.call(this,e),n.segmentDistance=[],n.values.distance="0",n.values.estimate=!1,n.label=n.addLabel(),n._createFeature({geometryType:"LineString",startPosition:e.startPosition}),n}return Object(m["a"])(i,null,[{key:"measurementType",get:function(){return ya.DISTANCE}}]),Object(m["a"])(i,[{key:"geometryChangedCallback",value:function(e){var t=this,i=e.target.getCoordinates(),n=i.length;if(n>1&&(i[0][0]!==i[1][0]||i[0][1]!==i[1][1])){this.values.isValid=this.values.isValid||n>2,this.label.getGeometry().setCoordinates(i[n-1]);var r,a=Promise.resolve([]);if(this.map instanceof Fi){r=new Array(n);var s=i.map((function(e,i){return Object(Wt["e"])(t.map.activeLayer.currentImage,e,{dataProjection:ol.proj.get("EPSG:4326")}).then((function(e){r[i]=e.coords,t.values.estimate=e.estimate}))}));a=Promise.all(s)}else{for(var o=0;o<n;o++)X.mercatorToWgs84(i[o],!0);r=i}return a.then((function(){var e=t.calculateDistance(r);t.setValueAndLabel(e)}))}return this.values.isValid&&this.parent.removeMeasurement(this),null}},{key:"calculateDistance",value:function(e){var t=e.length;this.segmentDistance=new Array(t-1);for(var i=0,n=1;n<t;n++)this.segmentDistance[n-1]=_a.haversineDistance(e[n-1],e[n]),i+=this.segmentDistance[n-1];return i}},{key:"setValueAndLabel",value:function(e){this.values.distance=this.getValue(e),va.setTextOnLabel(this.label,this.values.distance),this.label.changed()}}]),i}(va),of=sf,lf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.type=i.measurementType,n=t.call(this,e),n.values.area="0",n.values.circumference="0",n.label=n.addLabel(),n._createFeature({geometryType:"Polygon",startPosition:e.startPosition}),n}return Object(m["a"])(i,null,[{key:"measurementType",get:function(){return ya.AREA}}]),Object(m["a"])(i,[{key:"geometryChangedCallback",value:function(e){var t=e.target,i=t.getCoordinates()[0],n=i.length,r=0;if(n>2){this.values.isValid=this.values.isValid||n>3;for(var a=0;a<n;a++)X.mercatorToWgs84(i[a],!0),a&&(r+=_a.haversineDistance(i[a-1],i[a])),a===n-1&&(r+=_a.haversineDistance(i[a],i[0]));this.values.area=this.getValue(_a.geodesicArea(i),!0),this.values.circumference=this.getValue(r),va.setTextOnLabel(this.label,this.values.area),this.label.setGeometry(t.getInteriorPoint())}else this.values.isValid&&this.parent.removeMeasurement(this)}}]),i}(va),cf=lf,uf=new Cesium.Cartographic,hf=new Cesium.Cartesian3,df=[{key:"height",indices:[0,1]},{key:"horizontal",indices:[1,2]},{key:"distance",indices:[0,2]}],mf={horizontal:0,height:0,distance:0},ff=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.type=i.measurementType,n=t.call(this,e),n.triangleFeature=new ol.Feature({geometry:fa.LineString(),olcs_altitudeMode:"absolute"}),n.parent.featureLayer.addFeatures([n.triangleFeature]),n.triangleFeature[n.parent.geometryEditor.state.featureTypeSymbol]=0,n.featureIds.push(n.triangleFeature.getId()),n.cartesians=[new Cesium.Cartesian3,new Cesium.Cartesian3,new Cesium.Cartesian3],n.labels={height:n.addLabel(),horizontal:n.addLabel(),distance:n.addLabel()},n.values.height="0",n.values.horizontal="0",n.values.distance="0",n.values.alpha="0",n.values.beta="0",Object.values(n.labels).forEach((function(e){e.set("olcs_altitudeMode","absolute")})),n._createFeature({geometryType:"LineString",isAbsolute:!0,startPosition:e.startPosition}),n}return Object(m["a"])(i,null,[{key:"measurementType",get:function(){return ya.VERTICAL_HEIGHT}}]),Object(m["a"])(i,[{key:"geometryChangedCallback",value:function(e){var t=e.target,i=t.getCoordinates();if(!this.values.isValid&&i.length>2&&(this.values.isValid=!0),this.values.isValid){if(this.parent.geometryEditor.state.mode===ln.CREATE&&this.parent.geometryEditor.setMode(ln.EDIT),i.length<2)return void this.parent.removeMeasurement(this);var n=i[0][2]<i[1][2]?0:1,r=i[n].slice();r[2]=i[n?0:1][2];var a=[i[n],r,i[n?0:1]];this.triangleFeature.getGeometry().setCoordinates(a);for(var s=0;s<3;s++)X.mercatorToWgs84(a[s],!0),Cesium.Cartesian3.fromDegrees(a[s][0],a[s][1],a[s][2],void 0,this.cartesians[s]);for(var o=0;o<3;o++){var l=df[o],c=l.key,u=l.indices,h=Cesium.Cartesian3.distance(this.cartesians[u[0]],this.cartesians[u[1]]);hf=Cesium.Cartesian3.lerp(this.cartesians[u[0]],this.cartesians[u[1]],.5,hf),uf=Cesium.Cartographic.fromCartesian(hf,void 0,uf),mf[c]=h,this.values[c]=this.getValue(h),va.setTextOnLabel(this.labels[c],this.values[c]),this.labels[c].getGeometry().setCoordinates(X.wgs84ToMercator([Cesium.Math.toDegrees(uf.longitude),Cesium.Math.toDegrees(uf.latitude),uf.height]))}var d=Cesium.Math.toDegrees(Math.asin(mf.horizontal/mf.distance)),m=90-d;this.values.alpha="".concat(d.toFixed(this.decimalPlaces),"°"),this.values.beta="".concat(m.toFixed(this.decimalPlaces),"°")}}}]),i}(va),gf=ff,yf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.type=i.measurementType,n=t.call(this,e),n.values.x="0",n.values.y="0",n.values.z="0",n.values.estimate=!1,n.transformer=X.getTransformer(G.getInstance().projection,ee),n.map instanceof Ut?n._callback=n.setCoords.bind(Object(gt["a"])(n),!0):n.map instanceof Vi?(n._callback=n.setCoords.bind(Object(gt["a"])(n),!1),delete n.values.z):n.map instanceof Fi&&(n._callback=n.setFromObliqueCoords.bind(Object(gt["a"])(n))),n.geometryCreated=!!e.startPosition,n._createFeature({geometryType:"Point",isAbsolute:!0,addFeatureStyle:!0,startPosition:e.startPosition}),n}return Object(m["a"])(i,null,[{key:"measurementType",get:function(){return ya.POINT}}]),Object(m["a"])(i,[{key:"geometryChangedCallback",value:function(e){if(this._callback&&this.geometryCreated){var t=e.target.getCoordinates();this.values.isValid=!0,this._callback(t)}else this.geometryCreated=!0}},{key:"setCoords",value:function(e,t){this.transformer(t,t,3),this.values.x=t[0].toFixed(this.decimalPlaces),this.values.y=t[1].toFixed(this.decimalPlaces);var i="".concat(this.values.x,", ").concat(this.values.y);if(e){var n=this.getValue(t[2]);this.values.z=n,i="".concat(i,", ").concat(n)}this.feature[ut].label="(".concat(i,")"),this.feature.changed()}},{key:"setFromObliqueCoords",value:function(e){var t=this;return Object(Wt["e"])(this.map.activeLayer.currentImage,e,{dataProjection:ee.proj}).then((function(e){t.values.estimate=e.estimate,t.setCoords(!e.estimate,e.coords)}))}}]),i}(va),pf=yf,vf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.type=i.measurementType,e.forceMove=!0,n=t.call(this,e),n.values.height="0",n.values.estimate=!1,n.map=n.map,n.startUndistorted=null,n.startDistorted=null,n.liftedUndistorted=null,n.measureVecGround=new Cesium.Cartesian3,n.measureVecOrientation=new Cesium.Cartesian3,n.set=!1,n.onHold=!1,n.selfCall=!1,n.label=n.addLabel(),n._createFeature({geometryType:"LineString",startPosition:e.startPosition}),n}return Object(m["a"])(i,null,[{key:"measurementType",get:function(){return ya.OBLIQUE_HEIGHT}}]),Object(m["a"])(i,[{key:"geometryChangedCallback",value:function(e){var t=this;if(this.selfCall)this.selfCall=!1;else if(!this.onHold){var i=e.target.getCoordinates();if(this.values.isValid){if(this.parent.geometryEditor.state.mode===ln.CREATE)return void this.parent.geometryEditor.setMode(ln.EDIT);if(i.length<2)return void this.parent.removeMeasurement(this)}var n=this.map.activeLayer,r=n.currentImage.camera;if(this.set||2!==i.length){if(this.set){3!==i.length||this.values.isValid||(this.parent.geometryEditor.setMode(ln.EDIT),this.values.isValid=!0);var a=r.radialDistortionCoordinate(i[1],!0),s=[[a[0],a[1]],[a[0]+1,a[1]]],o=Object(Wt["b"])(s,[this.startUndistorted,this.liftedUndistorted]),l=[o.x,o.y],c=r.radialDistortionCoordinate(l,!1),u=new Cesium.Cartesian3(l[0],l[1],0),h=Cesium.Cartesian3.subtract(u,this.measureVecGround,new Cesium.Cartesian3);h=Cesium.Cartesian3.normalize(h,h);var d,m=Cesium.Cartesian3.dot(this.measureVecOrientation,h);if(this.selfCall=!0,m<0||Number.isNaN(m))this.values.height=this.getValue(0),d=[this.startDistorted,this.startDistorted];else{var f=this.findVertical3DPositionRegardingPixel(l,this.startPointRealWorld);this.values.height=this.getValue(oi(this.startPointRealWorld,f)),d=[this.startDistorted,c]}va.setTextOnLabel(this.label,this.values.height),this.label.getGeometry().setCoordinates(d[1]),this.feature.getGeometry().setCoordinates(d),this.parent.geometryEditor.geometryEditor.vertices[0].getGeometry().setCoordinates(d[0]),this.parent.geometryEditor.geometryEditor.vertices[1].getGeometry().setCoordinates(d[1])}}else this.onHold=!0,this.startUndistorted=r.radialDistortionCoordinate(i[0],!0),this.startDistorted=i[0].slice(),this.measureVecGround=Cesium.Cartesian3.fromElements(this.startUndistorted[0],this.startUndistorted[1],0,this.measureVecGround),Object(Wt["e"])(n.currentImage,i[0]).then((function(e){t.startPointRealWorld=e.coords,t.values.estimate=e.estimate;var i=e.coords.slice();return i[2]+=10,Object(Wt["f"])(n.currentImage,i)})).then((function(e){t.liftedUndistorted=r.radialDistortionCoordinate(e.coords,!0);var i=Cesium.Cartesian3.fromElements(t.liftedUndistorted[0],t.liftedUndistorted[1],0);t.onHold=!1,t.set=!0,t.measureVecOrientation=Cesium.Cartesian3.subtract(i,t.measureVecGround,t.measureVecOrientation),t.measureVecOrientation=Cesium.Cartesian3.normalize(t.measureVecOrientation,t.measureVecOrientation),t.selfCall=!0,t.feature.getGeometry().setCoordinates([t.startDistorted,t.startDistorted])}))}}},{key:"findVertical3DPositionRegardingPixel",value:function(e,t){var i=this.map.getCurrentImage(),n=new Cesium.Cartesian3(e[0],i.size[1]-e[1],1);n=Cesium.Matrix3.multiplyByVector(i.pToRealworld,n,n);var r=new Cesium.Cartesian3(0,0,1),a=Cesium.Cartesian3.cross(r,n,new Cesium.Cartesian3),s=Cesium.Cartesian3.fromArray(t),o=Cesium.Cartesian3.subtract(i.projectionCenter,s,new Cesium.Cartesian3),l=Cesium.Matrix3.fromRowMajorArray([r.x,n.x,a.x,r.y,n.y,a.y,r.z,n.z,a.z]);l=Cesium.Matrix3.inverse(l,l);var c=Cesium.Matrix3.multiplyByVector(l,o,new Cesium.Cartesian3);return a=Cesium.Cartesian3.multiplyByScalar(a,c.z,a),r=Cesium.Cartesian3.multiplyByScalar(r,c.x,r),r=Cesium.Cartesian3.add(r,a,r),s=Cesium.Cartesian3.add(s,r,s),[s.x,s.y,s.z]}}]),i}(va),_f=vf,bf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.type=i.measurementType,t.call(this,e)}return Object(m["a"])(i,null,[{key:"measurementType",get:function(){return ya.OBLIQUE_DISTANCE}}]),i}(of),Lf=bf,wf=new Cesium.Cartesian3,Mf=new Cesium.Cartesian3,kf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.type=i.measurementType,n=t.call(this,e),n.segmentDistance=[],n.values.distance="0",n.label=n.addLabel(),n.label.set("olcs_altitudeMode","absolute"),n._createFeature({geometryType:"LineString",startPosition:e.startPosition,isAbsolute:!0}),n}return Object(m["a"])(i,null,[{key:"measurementType",get:function(){return ya.CARTESIAN_DISTANCE}}]),Object(m["a"])(i,[{key:"geometryChangedCallback",value:function(e){var t=e.target.getCoordinates(),i=t.length;if(i>1&&(t[0][0]!==t[1][0]||t[0][1]!==t[1][1])){this.values.isValid=this.values.isValid||i>2,this.label.getGeometry().setCoordinates(t[i-1]),this.segmentDistance=new Array(i-1);var n=0;X.mercatorToWgs84(t[0],!0),wf=Cesium.Cartesian3.fromDegrees(t[0][0],t[0][1],t[0][2],void 0,wf);for(var r=1;r<i;r++)X.mercatorToWgs84(t[r],!0),Mf=Cesium.Cartesian3.fromDegrees(t[r][0],t[r][1],t[r][2],void 0,Mf),this.segmentDistance[r-1]=Cesium.Cartesian3.distance(wf,Mf),n+=this.segmentDistance[r-1],wf=Mf.clone(wf);this.values.distance=this.getValue(n),va.setTextOnLabel(this.label,this.values.distance),this.label.changed()}else this.values.isValid&&this.parent.removeMeasurement(this)}}]),i}(va),Of=kf,Tf=new Cesium.Cartesian3,Sf=new Cesium.Cartesian3,Cf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.type=i.measurementType,e.forceMove=!1,n=t.call(this,e),n.values.area="0",n.values.circumference="0",n.label=n.addLabel(),n.label.set("olcs_altitudeMode","absolute"),n.label.set("olcs_zCoordinateEyeOffset",-10),n._createFeature({geometryType:"Polygon",startPosition:e.startPosition,isAbsolute:!0}),n}return Object(m["a"])(i,null,[{key:"measurementType",get:function(){return ya.CARTESIAN_AREA}}]),Object(m["a"])(i,[{key:"geometryChangedCallback",value:function(e){var t=e.target,i=t.getCoordinates()[0],n=i.length,r=0;if(this.values.isValid&&i.length<3)this.parent.removeMeasurement(this);else if(n>3||this.values.isValid){this.values.isValid=!0;for(var a=new Array(n),s=new Array(n),o=i[0][2],l=0,c=0;c<n;c++)o=i[c][2]>o?i[c][2]:o,X.mercatorToWgs84(i[c],!0),a[c]=Cesium.Cartesian3.fromDegrees(i[c][0],i[c][1],i[c][2]),s[c]=Cesium.Cartesian2.fromCartesian3(a[c]),c&&(l+=Cesium.Cartesian3.distance(a[c-1],a[c]));l+=Cesium.Cartesian3.distance(a[n-1],a[0]);for(var u=Cesium.PolygonPipeline.triangulate(s),h=u.length,d=0;d<h;d+=3){var m=u[d],f=u[d+1],g=u[d+2];Tf=Cesium.Cartesian3.subtract(a[m],a[f],Tf),Sf=Cesium.Cartesian3.subtract(a[m],a[g],Sf),Tf=Cesium.Cartesian3.cross(Tf,Sf,Tf),r+=Cesium.Cartesian3.magnitude(Tf)/2}this.values.area=this.getValue(r,!0),this.values.circumference=this.getValue(l),va.setTextOnLabel(this.label,this.values.area);var y=t.getInteriorPoint().getCoordinates();y[2]=o,this.label.getGeometry().setCoordinates(y)}}}]),i}(va),jf=Cf,Ef=(ef={},Object(U["a"])(ef,of.measurementType,of),Object(U["a"])(ef,cf.measurementType,cf),Object(U["a"])(ef,gf.measurementType,gf),Object(U["a"])(ef,pf.measurementType,pf),Object(U["a"])(ef,_f.measurementType,_f),Object(U["a"])(ef,Lf.measurementType,Lf),Object(U["a"])(ef,Of.measurementType,Of),Object(U["a"])(ef,jf.measurementType,jf),ef);function If(){return{image:{fill:{color:"rgba(244, 67, 54, 0.8)"},stroke:{color:"rgb(0, 0, 0)",width:1},radius:5},stroke:{color:"rgb(244, 67, 54)",width:3},fill:{color:"rgba(244, 67, 54, 0.8)"},text:{font:"bold 18px Arial, Helvetica, sans-serif",textBaseline:"bottom",fill:{color:"rgb(0, 0, 0)"},offsetY:-15,offsetX:0,stroke:{color:"rgb(255, 255, 255)",width:2}}}}var Df=new dt(If()),Pf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=e.className||i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"];var a=Df.clone();return e.style&&a.assign(new dt(e.style)),n.featureLayer=new _n({style:a,altitudeMode:"clampToGround",zCoordinateEyeOffset:-20}),n.geometryEditor=null,n.decimalPlaces=Object(u["h"])(e.decimalPlaces,r.decimalPlaces),n.allowedMeasurements=e.allowedMeasurements||r.allowedMeasurements,(n.allowedMeasurements.includes("obliqueDistance")||n.allowedMeasurements.includes("obliqueHeight"))&&n.supportedMaps.push("vcs.vcm.maps.Oblique"),n.supportedMeasurements=[],n.useCartesianIn3D=Object(u["e"])(e.useCartesianIn3D,r.useCartesianIn3D),n.measurements=new Map,n._defaultTransformOnMove=P.getInstance().transformGeometryOnMove,n._transformOnMove=n._defaultTransformOnMove,n.obliqueListener=null,n.state=null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{style:If(),decimalPlaces:1,allowedMeasurements:["distance","cartesianDistance","cartesianArea","area","point","verticalHeight","obliqueDistance","obliqueHeight"],useCartesianIn3D:!1})}},{key:"className",get:function(){return"vcs.vcm.widgets.Measurement"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.geometryEditor=new sc({allowedGeometries:["LineString","Polygon","Point"],defaultMode:"edit",dedicatedFeatureStyle:!1,pullPickedPosition:0}),this.state={activeMeasurementId:null,editorState:this.geometryEditor.state,measurementsSize:0},this.framework.addLayer(this.featureLayer),this.handleMapChangeEvent(this.framework.getActiveMap()),this.geometryEditor.initialize(),this.geometryEditor.addEditingLayer(this.featureLayer),this._transformOnMove=P.getInstance().transformGeometryOnMove,this.geometryEditor.selectFeatureInteraction.onSelect(this.onSelect.bind(this)),this.initialized=!0}return!0}},{key:"handleMapChangeEvent",value:function(e){ye(Object(fe["a"])(i.prototype),"handleMapChangeEvent",this).call(this,e),this.active&&this.geometryEditor.setMode(ln.NONE),this.supportedMeasurements.splice(0),this._transformOnMove=this._defaultTransformOnMove,this.clearMeasurements(),e instanceof Vi?(this.supportedMeasurements.push(of.measurementType),this.supportedMeasurements.push(pf.measurementType),this.supportedMeasurements.push(cf.measurementType)):e instanceof Ut?(this.supportedMeasurements.push(Of.measurementType),this.supportedMeasurements.push(pf.measurementType),this.supportedMeasurements.push(jf.measurementType),this.supportedMeasurements.push(gf.measurementType),this.useCartesianIn3D||(this.supportedMeasurements.push(of.measurementType),this.supportedMeasurements.push(cf.measurementType))):e instanceof Fi&&(this._transformOnMove=!1,this.obliqueListener||(this.obliqueListener=this.framework.subscribe("OBLIQUE_IMAGE_CHANGED",this.obliqueImageChangeHandler.bind(this))),this.supportedMeasurements.push(Lf.measurementType),this.supportedMeasurements.push(pf.measurementType),this.supportedMeasurements.push(_f.measurementType))}},{key:"checkObliqueMeasurementIsSupported",value:function(e,t){if(e.camera&&!this.supportedMeasurements.includes(t))this.supportedMeasurements.push(t);else if(!e.camera&&this.supportedMeasurements.includes(t)){var i=this.supportedMeasurements.indexOf(t);this.supportedMeasurements.splice(i,1)}}},{key:"obliqueImageChangeHandler",value:function(e,t){this.checkObliqueMeasurementIsSupported(t,_f.measurementType),this.checkObliqueMeasurementIsSupported(t,Lf.measurementType),this.clearMeasurements()}},{key:"activate",value:function(){return ye(Object(fe["a"])(i.prototype),"activate",this).call(this),this.geometryEditor.activate(),this.featureLayer.activate()}},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.geometryEditor.deactivate()}},{key:"createMeasurement",value:function(e,t){if(this.state.activeMeasurementId){var i=this.measurements.get(this.state.activeMeasurementId);i.values.isValid||this.removeMeasurement(i)}var n=Ef[e],r=new n({parent:this,startPosition:t,defaultTransformOnMove:this._transformOnMove});this.measurements.set(r.id,r),this.state.activeMeasurementId=r.id,this.state.measurementsSize=this.measurements.size,this._setTransformOnMove(r)}},{key:"_setTransformOnMove",value:function(e){this.geometryEditor.state.transformGeometryOnMove=e&&null!==e.forceMove?e.forceMove:this._transformOnMove,this.geometryEditor.state.onlyAllowTranslation=e&&(e.values.type===gf.measurementType||e.values.type===_f.measurementType)}},{key:"removeMeasurement",value:function(e){e.destroy(),this.state.activeMeasurementId===e.id&&(this.state.activeMeasurementId=null),this.measurements.delete(e.id),this.state.measurementsSize=this.measurements.size}},{key:"clearMeasurements",value:function(){this.measurements.forEach((function(e){e.destroy()})),this.measurements.clear(),this.state.measurementsSize=this.measurements.size,this.activeMeasurement=null,this.state.activeMeasurementId=null}},{key:"onSelect",value:function(){if(this.geometryEditor.features.size){this.state.activeMeasurementId=this.geometryEditor.state.selectedFeatureId;var e=this.measurements.get(this.state.activeMeasurementId);this._setTransformOnMove(e)}else this.state.activeMeasurementId=null}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.style=this.featureLayer.style.getOptions(),e.decimalPlaces=this.decimalPlaces,e.allowedMeasurements=this.allowedMeasurements,e}}]),i}(Ys),Af=Pf,xf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,e.allowedMeasurements=e.allowedMeasurements||["distance","cartesianDistance","verticalHeight","obliqueHeight"],n=t.call(this,e),n.state=n.state,n.mapClickListener=null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Af.getDefaultOptions()),{},{allowedMeasurements:["distance","cartesianDistance","verticalHeight","obliqueHeight"]})}},{key:"className",get:function(){return"vcs.vcm.widgets.SingleMeasurement"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.state=this.state,this.state.activeSingleMeasurementType=null}return!0}},{key:"createMeasurement",value:function(e,t){var n=this;this.clearMeasurements(),ye(Object(fe["a"])(i.prototype),"createMeasurement",this).call(this,e,t),this.state.activeSingleMeasurementType=e,this.mapClickListener&&this.framework.unsubscribeByKey(this.mapClickListener),this.mapClickListener=this.framework.subscribeOnce("CLICKED",(function(t){if(n.active){var i=n.framework.getActiveMap()instanceof Fi?t.obliqueParameters.pixel:X.wgs84ToMercator([t.longitude,t.latitude,t.height]);n.createMeasurement(e,i)}}))}},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.mapClickListener&&(this.framework.unsubscribeByKey(this.mapClickListener),this.mapClickListener=null),this.featureLayer.deactivate(),this.clearMeasurements()}}]),i}(Af),Yf=xf,Nf={north:"moveForward",south:"moveBackward",west:"moveLeft",east:"moveRight",increaseFOV:"increaseFOV",decreaseFOV:"decreaseFOV",up:"moveUp",down:"moveDown",tiltUp:"tiltUp",tiltDown:"tiltDown",rotateEast:"rotateEast",rotateWest:"rotateWest"},Ff=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.zoomFactor=Object(u["g"])(e.zoomFactor,r.zoomFactor),n.moveFactor=Object(u["g"])(e.moveFactor,r.moveFactor),n.tiltFactor=Object(u["g"])(e.tiltFactor,r.tiltFactor),n.walkModeMoveFactor=Object(u["g"])(e.walkModeMoveFactor,r.walkModeMoveFactor),n.animationDuration=Object(u["g"])(e.animationDuration,r.animationDuration),n.animation=Object(u["e"])(e.animation,r.animation),n.showZoomButtons=Object(u["e"])(e.showZoomButtons,r.showZoomButtons),n.showTiltButtons=Object(u["e"])(e.showTiltButtons,r.showTiltButtons),n.showCompass=Object(u["e"])(e.showCompass,r.showCompass),n.showHomeButton=Object(u["e"])(e.showHomeButton,r.showHomeButton),n.pedestrianMode=Object(u["e"])(e.pedestrianMode,r.pedestrianMode),n.pedestrianModeReferenceHeight=Object(u["g"])(e.pedestrianModeReferenceHeight,r.pedestrianModeReferenceHeight),n.obliqueMoveImage=Object(u["e"])(e.obliqueMoveImage,r.obliqueMoveImage),n.obliqueMoveImageDirectionDeviation=Object(u["g"])(e.obliqueMoveImageDirectionDeviation,r.obliqueMoveImageDirectionDeviation),n.rotationPerFrame=Object(u["g"])(e.rotationPerFrame,.5),n.timePerRotation=Object(u["g"])(e.timePerRotation,r.timePerRotation),!e.timePerRotation&&e.rotationPerFrame&&(n.logger.deprecate("rotationPerFrame","use timePerRotation instead"),n.timePerRotation=6/n.rotationPerFrame),n.initializedForCesium=!1,n.initializedForOpenlayers=!1,n.initializedForOblique=!1,n.rotationActive=!1,n.tapedTwice=!1,n.navigationMode=Ce.getInstance(),n.navigationMode.setOptions({referenceHeight:n.pedestrianModeReferenceHeight,moveFactor:n.walkModeMoveFactor}),n.mapClickListenerKey=null,n.values={heading:0,walkmode:!1,rotation:!1,pedestrianMode:n.pedestrianMode,referenceHeight:n.pedestrianModeReferenceHeight,active:!1},n.navigationMode.setValues(n.values),n._obliqueMoving=!1,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{zoomFactor:2,moveFactor:1.5,tiltFactor:10,walkModeMoveFactor:1,animationDuration:.5,animation:!0,showZoomButtons:!0,showTiltButtons:!0,showCompass:!0,showHomeButton:!0,pedestrianMode:!0,pedestrianModeReferenceHeight:1.6,obliqueMoveImage:!0,obliqueMoveImageDirectionDeviation:Math.PI/4,timePerRotation:20})}},{key:"className",get:function(){return"vcs.vcm.widgets.NavigationControls"}},{key:"navigationModeFlags",get:function(){return Nf}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;document.addEventListener("keydown",this.keyDownListener.bind(this),!1),document.addEventListener("keyup",this.keyUpListener.bind(this),!1),this.mapChangedHandler(this.framework.getActiveMap()),this.framework.subscribe(O.MAP_ACTIVATED,this.mapChangedHandler.bind(this)),this.initialized=!0}}},{key:"keyDownListener",value:function(e){if(!Object(u["b"])(e))switch(e.keyCode){case 38:this.moveButtonPressed("north");break;case 40:this.moveButtonPressed("south");break;case 37:this.moveButtonPressed("west");break;case 39:this.moveButtonPressed("east");break;case 107:this.zoomButtonPressed("zoomIn");break;case 109:this.zoomButtonPressed("zoomOut");break;case 33:this.tiltButtonPressed("tiltUp");break;case 34:this.tiltButtonPressed("tiltDown");break;case 36:this.rotateButtonPressed("rotateEast");break;case 35:this.rotateButtonPressed("rotateWest");break;case 87:this.moveButtonPressed("north");break;case 83:this.moveButtonPressed("south");break;case 65:this.moveButtonPressed("west");break;case 68:this.moveButtonPressed("east");break;default:break}}},{key:"keyUpListener",value:function(e){if(!Object(u["b"])(e))switch(e.keyCode){case 38:this.moveButtonUp("north");break;case 40:this.moveButtonUp("south");break;case 37:this.moveButtonUp("west");break;case 39:this.moveButtonUp("east");break;case 107:this.fovButtonUp("zoomIn");break;case 109:this.fovButtonUp("zoomOut");break;case 33:this.tiltButtonUp("tiltUp");break;case 34:this.tiltButtonUp("tiltDown");break;case 36:this.rotateButtonUp("rotateEast");break;case 35:this.rotateButtonUp("rotateWest");break;case 87:this.moveButtonUp("north");break;case 83:this.moveButtonUp("south");break;case 65:this.moveButtonUp("west");break;case 68:this.moveButtonUp("east");break;default:break}}},{key:"mapChangedHandler",value:function(e){e.initialized&&(e instanceof Ut?this.activateForCesium():e instanceof Vi?this.activateForOpenlayers():e instanceof Fi&&this.activateForOblique())}},{key:"activateForCesium",value:function(){if(!this.initializedForCesium){var e=this.framework.getActiveMap();this.cesiumViewer=e.getCesiumWidget(),this.cesiumScene=this.cesiumViewer.scene,this.cesiumCamera=this.cesiumScene.camera,this.cesiumPostRenderBind=this.postRenderHandlerCesium.bind(this),this.cesiumScene.postRender.addEventListener(this.cesiumPostRenderBind),this.initializedForCesium=!0}}},{key:"postRenderHandlerCesium",value:function(){var e=Cesium.Math.toDegrees(this.cesiumCamera.heading);(!this.values.heading||this.values.heading<e-.5||this.values.heading>e+.5)&&(this.values.heading=e)}},{key:"activateForOpenlayers",value:function(){this.initializedForOpenlayers||(this.ol3MapObject=this.framework.getActiveMap(),this.ol3Map=this.ol3MapObject.olMap,this.ol3Map.on("postrender",this.postRenderHandlerOpenlayers.bind(this)),this.initializedForOpenlayers=!0)}},{key:"postRenderHandlerOpenlayers",value:function(){var e=this.framework.getActiveMap();if(e){var t=e.getViewPoint(!1);t&&(this.values.heading=t.heading)}}},{key:"activateForOblique",value:function(){this.initializedForOblique||(this.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,this.obliqueImageChange,this),this.initializedForOblique=!0);var e=this.framework.getActiveMap(),t=e.activeLayer;t&&t.currentImage&&this.obliqueImageChange(t)}},{key:"obliqueImageChange",value:function(e,t){var i,n=t||e.currentImage,r=(i={},Object(U["a"])(i,h["a"].NORTH,0),Object(U["a"])(i,h["a"].EAST,90),Object(U["a"])(i,h["a"].SOUTH,180),Object(U["a"])(i,h["a"].WEST,270),i);this.values.heading=n.viewDirectionAngle?90-Cesium.Math.toDegrees(n.viewDirectionAngle):r[n.viewDirection]}},{key:"computeNewGroundPosition",value:function(e,t){var i=t.groundPosition,n=this.calculateBearing(e,t.heading),r=t.distance/this.moveFactor,a=qt([i[0],i[1]],r,n);return a[2]=i[2],a}},{key:"calculateBearing",value:function(e,t){var i;return i="north"===e?t:"east"===e?t+90:"south"===e?t+180:"west"===e?t+270:t,i%=360,i}},{key:"computeNewCameraPosition",value:function(e,t){var i=t.cameraPosition,n=this.calculateBearing(e,t.heading),r=2e3/this.moveFactor,a=qt([i[0],i[1]],r,n);return a[2]=i[2],a}},{key:"moveButtonPressed",value:function(e){var t=this;if(this.navigationMode.navActive)this.navigationMode.flags[Nf[e]]=!0;else{var i=this.framework.getActiveMap();if(this.obliqueMoveImage&&i instanceof Fi){if(this._obliqueMoving||!i.activeLayer)return;var n=i.activeLayer.currentDirection;this._obliqueMoving=!0,i.getViewPoint(null,!0).then((function(n){var r=n.heading,a=t.calculateBearing(e,r);return i.activeLayer.getImageIdInDirection(a,t.obliqueMoveImageDirectionDeviation)})).then((function(e){return e?n.setImageOnMap(e):e})).catch((function(e){t.logger.warning(e.message)})).then((function(){t._obliqueMoving=!1}))}else i.getViewPoint(null,!0).then((function(n){n.groundPosition?(n.groundPosition=t.computeNewGroundPosition(e,n),n.cameraPosition=null):(n.cameraPosition=t.computeNewCameraPosition(e,n),n.groundPosition=null),n.animate=t.animation,n.duration=t.animationDuration,i.gotoViewPoint(n)}))}}},{key:"moveButtonUp",value:function(e){this.navigationMode.navActive&&(this.navigationMode.flags[Nf[e]]=!1)}},{key:"compassPointerClicked",value:function(e){var t=this;this.navigationMode.navActive?this.navigationMode.heading=e:this.framework.getActiveMap().getViewPoint(!0,!0).then((function(i){i.heading=e,i.animate=!0,i.roll=0,i.groundPosition&&(i.cameraPosition=null),t.framework.getActiveMap().gotoViewPoint(i,1,0)}))}},{key:"compassPointerDown",value:function(){var e=this.framework.getActiveMap().getViewPoint();e.animate=!1,e.groundPosition&&(e.cameraPosition=null),this.compassPointerPressedViewpoint=e}},{key:"compassPointerDragged",value:function(e){this.navigationMode.navActive?this.navigationMode.heading=e:this.compassPointerPressedViewpoint&&(this.compassPointerPressedViewpoint.heading=e,this.framework.getActiveMap().gotoViewPoint(this.compassPointerPressedViewpoint,1,0))}},{key:"fovButtonPressed",value:function(e){this.navigationMode.navActive&&(this.navigationMode.flags[Nf[e]]=!0)}},{key:"fovButtonUp",value:function(e){this.navigationMode.navActive&&(this.navigationMode.flags[Nf[e]]=!1)}},{key:"zoomButtonPressed",value:function(e){var t=this;this.navigationMode.navActive||this.framework.getActiveMap().getViewPoint(null,!0).then((function(i){i.distance="zoomIn"===e?i.distance/t.zoomFactor:i.distance*t.zoomFactor,i.animate=t.animation,i.duration=t.animationDuration,i.cameraPosition=null,t.framework.getActiveMap().gotoViewPoint(i)}))}},{key:"tiltButtonPressed",value:function(e){if(this.navigationMode.navActive)this.navigationMode.flags[Nf[e]]=!0;else if(this.framework.getActiveMap()instanceof Ut){var t=this.framework.getActiveMap().getViewPoint(),i=t.pitch,n=i;if(n="tiltUp"===e?i-this.tiltFactor:i+this.tiltFactor,n>-10&&(n=-10),n<-90&&(n=-90),t.pitch=n,t.animate=this.animation,t.duration=this.animationDuration,!t.groundPosition)return;t.cameraPosition=null,this.framework.getActiveMap().gotoViewPoint(t)}}},{key:"tiltButtonUp",value:function(e){this.navigationMode.navActive&&(this.navigationMode.flags[Nf[e]]=!1)}},{key:"rotateButtonPressed",value:function(e){if(this.navigationMode.navActive)this.navigationMode.flags[Nf[e]]=!0;else{var t=this.framework.getActiveMap();if(t instanceof Ut||t instanceof Vi&&!t.fixedNorthOrientation){var i=this.framework.getActiveMap().getViewPoint(),n=i.heading,r=n;if("rotateEast"===e?r+=10:r-=10,i.heading=r,i.animate=this.animation,!i.groundPosition)return;i.cameraPosition=null,this.framework.getActiveMap().gotoViewPoint(i,this.animationDuration,0)}}}},{key:"rotateButtonUp",value:function(e){this.navigationMode.navActive&&(this.navigationMode.flags[Nf[e]]=!1)}},{key:"rotateCenterClicked",value:function(){var e=this.framework.getActiveMap();e instanceof Ut&&(this.rotationActive?this.navigationMode.navActive?(this.navigationMode.flags.rotation=!1,this.rotationActive=!1,this.values.rotation=!1):this.rotateAroundCenterPosition(e,!1):this.navigationMode.navActive?(this.navigationMode.flags.rotation=!0,this.rotationActive=!0,this.values.rotation=!0):this.rotateAroundCenterPosition(e,!0))}},{key:"rotateAroundCenterPosition",value:function(e,t){var i=e.getCesiumWidget(),n=i.scene;if(t!==this.rotationActive)if(t){var r=this.framework.getActiveMap().getViewPoint();r.groundPosition&&(this.rotationActive=!0,this.values.rotation=!0,r.cameraPosition=null,this.cesiumRotateCenterBind=this.rotateCenter.bind(this,r),n.postRender.addEventListener(this.cesiumRotateCenterBind))}else this.cesiumRotateCenterBind&&(n.postRender.removeEventListener(this.cesiumRotateCenterBind),this.cesiumRotateCenterBind=null,this.rotationActive=!1,this.values.rotation=!1)}},{key:"rotateCenter",value:function(e){var t=this.timeLastTick?this.cesiumViewer.clock.currentTime.secondsOfDay-this.timeLastTick.secondsOfDay:1/60;(t<=0||t>1)&&(t=1/60);var i=t/(1/60);this.timeLastTick=this.cesiumViewer.clock.currentTime;var n=360/(60*this.timePerRotation/i);e.heading=e.heading+n,this.framework.getActiveMap().gotoViewPoint(e)}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.zoomFactor=this.zoomFactor,e.moveFactor=this.moveFactor,e.tiltFactor=this.tiltFactor,e.animationDuration=this.animationDuration,e.animation=this.animation,e.showZoomButtons=this.showZoomButtons,e.showTiltButtons=this.showTiltButtons,e.showHomeButton=this.showHomeButton,e.pedestrianMode=this.pedestrianMode,e.pedestrianModeReferenceHeight=this.pedestrianModeReferenceHeight,e.showCompass=this.showCompass,e.rotationPerFrame=this.rotationPerFrame,e.walkModeMoveFactor=this.walkModeMoveFactor,e}},{key:"dispose",value:function(){document.removeEventListener("keyup",this.keyUpListener.bind(this),!1),document.removeEventListener("keydown",this.keyDownListener.bind(this),!1)}},{key:"getValuesObject",value:function(){return this.logger.deprecate("getValuesObject","access the values property."),this.values}},{key:"mapClicked",value:function(e){if(e&&e.longitude&&e.latitude&&e.height){var t=[e.longitude,e.latitude,e.height];t[2]+=Number.parseFloat(this.values.referenceHeight);var i=this.framework.getActiveMap().getViewPoint();i.animate=!0,i.groundPosition=t,i.cameraPosition=null,i.distance=0,i.pitch=0,i.roll=0,this.navigationMode.activateFirstPersonMode(i),this.framework.getMapContainer().style.cursor="auto",this.mapClickListenerKey=null}}},{key:"activateNavigationMode",value:function(e){if(e)if(null==this.mapClickListenerKey){var t=function(e){var t=encodeURIComponent(e).replace(/%20/g," ").replace(/%3D/g,"=").replace(/%3A/g,":").replace(/%2F/g,"/").replace(/%22/g,"'");return"data:image/svg+xml,".concat(t)},i='<svg width="24" height="24" viewBox="0 0 93.646 93.646" xmlns="http://www.w3.org/2000/svg"><path d="M67.971,49.778l-9.378-10.345c-0.584-0.644-1.121-1.971-1.148-2.841L57.1,25.858v-0.311c0-1.654-1.346-3-3-3h-9.18h-3.648\n\t\tc-1.478,0-3.127,1.047-3.756,2.384l-12.358,26.25c-0.342,0.728-0.376,1.541-0.096,2.292c0.28,0.75,0.84,1.342,1.575,1.666\n\t\tl1.821,0.803c0.388,0.171,0.802,0.258,1.231,0.258h0c1.177,0,2.273-0.669,2.794-1.704l5.789-11.517v11.576\n\t\tc-0.024,0.067-0.059,0.128-0.081,0.196l-9.783,30.638c-0.407,1.276-0.283,2.619,0.35,3.781s1.693,1.994,2.987,2.343l0.654,0.177\n\t\tc0.428,0.116,0.872,0.175,1.318,0.175c2.251,0,4.296-1.481,4.974-3.603l9.141-28.628l3.242,7.941\n\t\tc0.791,1.937,1.645,5.329,1.865,7.409l1.551,14.621c0.249,2.341,2.1,4.04,4.402,4.04c0.377,0,0.76-0.046,1.137-0.137l0.659-0.16\n\t\tc2.624-0.635,4.478-3.331,4.133-6.008l-2.297-17.828c-0.292-2.265-1.269-5.812-2.178-7.907l-3.102-7.144\n\t\tc-0.04-0.093-0.097-0.177-0.143-0.267v-4.841l5.59,5.836c0.556,0.581,1.3,0.901,2.094,0.901c0.803,0,1.553-0.326,2.111-0.918\n\t\tl1.034-1.098C69.036,52.899,69.055,50.973,67.971,49.778z"/>\n\t<path d="M48.52,20.005c5.516,0,10.003-4.487,10.003-10.003C58.523,4.487,54.036,0,48.52,0c-5.515,0-10.001,4.487-10.001,10.002\n\t\tC38.518,15.518,43.005,20.005,48.52,20.005z"/></svg>';this.framework.getMapContainer().style.cursor='url("'.concat(t(i),'"), pointer'),this.mapClickListenerKey=this.framework.subscribeOnceExclusive("MAP_CLICKED",this.mapClicked.bind(this),"walkMode",this.activateNavigationMode.bind(this,!0))}else this.framework.unsubscribeByKey(this.mapClickListenerKey),this.mapClickListenerKey=null,this.framework.getMapContainer().style.cursor="auto";else this.navigationMode.activateOverviewMode()}},{key:"setReferenceHeight",value:function(e){this.values.referenceHeight=e}}]),i}(Ys),Rf=Ff,Hf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.initialized=!1,n.mapContainerId=e.containerId||r.containerId,n.imageStyle=new ol.style.Icon({src:e.cameraIcon||r.cameraIcon,anchor:e.anchorPosition||r.anchorPosition}),n.singleVectorObliqueResolutionFactor=Object(u["h"])(e.singleVectorObliqueResolutionFactor,r.singleVectorObliqueResolutionFactor),n.activeOnStartup=Object(u["e"])(e.activeOnStartup,r.activeOnStartup);var a=Object.assign({},r.oblique,e.oblique||{});n.showOnlyActiveObliqueTile=Object(u["e"])(a.showOnlyActiveTile,r.oblique.showOnlyActiveTile);var s=a.unselectedStyle,o=a.selectedStyle;return n.unselectedObliqueTileStyle=new ol.style.Style({fill:s.fill?new ol.style.Fill(s.fill):null,stroke:s.stroke?new ol.style.Stroke(s.stroke):null}),n.selectedObliqueTileStyle=new ol.style.Style({fill:o.fill?new ol.style.Fill(o.fill):null,stroke:o.stroke?new ol.style.Stroke(o.stroke):null}),n.featureSet=!1,n.layerName=e.layerName||null,n.selectInteraction=null,n.layer=null,n.vectorSource=new ol.source.Vector({}),n.overviewMap=null,n.activeListener=null,n.oblique=!1,n.values={active:!1},n.initialized=!1,n._cachedViewPoint=null,n.minimumHeight=Object(u["h"])(e.minimumHeight,r.minimumHeight),n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{containerId:"vcm_overviewmap_container",cameraIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAA8CAYAAADxJz2MAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDphMzhlODgyYy00ZGYzLTZkNGMtYWZhYy1hYTkwOTI3MjRiYjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NEYxRkE1MDlENjRDMTFFNTlGRjhFMzM3RTA3MDJFMDciIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NEYxRkE1MDhENjRDMTFFNTlGRjhFMzM3RTA3MDJFMDciIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OGJiODg5ODItZGM0Zi0xNjQyLWEyZDYtODJkZTcxMGNhNjkwIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YzY5MTdhNjAtZDYzYy0xMWU1LThjNTgtYTMwNjE0MWQwNTkyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Fn8KKQAABwVJREFUeNrsW0toHVUYPufOvb2madNaa2NS3682BTcKiQqx4qO0i7gKpHFhoCBoG8SVC124ExcW02yCiFCQ4iLgIhWJCE2pYI1J1VitNFhTIz5STdI2D2tucsf/N9/YcTKvM+fMbYT54eu9nTvnzMx3/veZSNu2RSbJJZdRkBGYEZgRmBGYSUZgRmBGYEZgJslkTUZBoEjXpxcsxTz9U0OYIfxFsAi2a5DtOjnpxU09RNS9SEPXiXN8kbCWUCWhgZsIf+Am3WYdh0BpkFipeG3v2LhjdM4pgyPmbMI5aT1hHeECIV+BVVXRLJ17kR6LSnqOl8AbCZNsue4BWzAB/1B0TapLpEyJmDTcR9SCL4C8K4Tf+Jh3wK2EecIsoWDIFE1qSxoExvV9JcQLttAxfC7lPSdNgMQlqKpUuJht6MZ15gsao7OgElxw0NhAGMXvzJHtNzGzfBPILBj2dyY00ZT2qURdJmsr4TxcnCNW0CR1IPJ3RGk74YWTPITU0BTTGYLj92pB3E/e38MusAP5zsUQTayELxIKrkRX04SP39sEDfxGdRLWvPsIUyAyl1LkTMPkpAErYNKugyUOgUzlC20mbIfq5lN4gDiBREfTdYjka9cTRlBkJL7AnZjo54C6OY2bNz2n6mKUEDTOEX7Qzaf4wg+AvMkYzYc0nLkp7Y6zUCVY3gxMV5ggkIPITkw6j6aDCZMySYYJTV9CSVtF+Bi+P1TyEb/brlX5itCI77kKpy3SIKEyQlFY+47HIc+PQOnJ+dzH2ZGOI6iMeVIb1crBpCbqdleky+/dRvgyLGhEERj1nse3SCq3olIpKnYyZMqEJFkIJ1m+hfAL4YyCRVlJzJCDSAs6ErMuf5im9kmFVphqX3ARNS4r0/sgU8ZQpshKJCo/fAor5m46mCidTJmxVLBCrv17YbpOV76cxITjCl9omPAgCuxCism0aZ8oPfkem+4JPJP0IU6C1EWTBLJ8Dad7ByqVotDrLqdR74ZdawFFwhgyDG8skB5XYayD4hbeCniGcJkw55MfphkM4vq+oPZUDSznHfhz6dN1klGmbGLn7GaQ+CNuLFfhiJpEg3mhbye87WpRxQ0cxglkeYjwuLja6r4W3ZW448pwOx8STuo+eN4QgSeRG25Hsl1IITdUMeOg30og77SHPD/ti/R/JjXQWYwXQN6kYvsrKtE1USpyFN2CWv6gx7eFER9KoGXQzPmGfiU8BqdsY/4kyAHu716EjfOex89QTdhIeAtNESNi+UQdHbmI6qQZ3/OuPMrvwXIRsGIej1oMlnsJ7xG+03i+FRzlfXKfuBMFqfanhHsI9/s0HUxFXZXx7PfuJnxuImjoNhPiyhHcNKc4F3w0PY2A4pcLLuIe2CreNfBcdhIfmETYH35P2IXccAmLlcRs44zxmrLTr6xBo+B1wrSG2WoFEWW/ALkMP/gEPi2NQBDlD60A4jll6UGLqhBQ50ZJLsQyZVoa6AjnhLyvynsqU3gIGUKIqrYF/WYjaHxEOKrpnuw02lmqfvYN1M0TCZJ31Y4L+716dFdeEjFb8ybSGFOmLH384Rn0D8vi6iZ9TlMDpc8xgVyPF+tVwqWUePv3WS2DjtWvm+HIJfjBXfiuQlTOExjCxhYQdd8UAa9iGPb3tkkCo87hDeo65IeTrgohqZ+zfPwed1g+EMut+TRK1xX1cSV8oFs7eb+1C4FlIqB/aAv1Xb4y/N55wosJC4DUfWBUqSdjnMf+j3f2Wlz+0PLxa+7PMDh+rwaL83LCOjdxZWQp1MEyomOSi6k1F2HCj4rltroISEOEy8zd//cGEvZ71xMOieUXgVQty5mzrKOBJt4yUDGNczC5HWgvOWSUQQhr0w3ooFThmFNTL7mIZeEdwgGUj0nbYXZCLRWWpk/TiWCfEZ4Uy2+9z2G+WhBWPHDgwK6urq5txWJx8/Dw8ATGrANmMReP5a3VV0KsJKhZauSFJ1lhAr1j7kJQYb+1trW19ZG2traNp06dkvv37y/39vbKwcFBMT09faWurq6qvb3d3rNnzxHkeX+CzOfE8qt3sTaBTEvSPza0E46RPqbMOdv6lpaWnYcPH97Q2NgoSqWS6OvrkwMDA3J+fl6SFlZNTU2J5uZmMTMz87SLvIMgz5m/7NGu1LOMfIUWKuxBjhFaScNK1dXVcm5uTpw9e5axYszs7Kyora2VII1fvz1ucIGveSmnI8fIbB9uaGiob2pqWlMoFMTIyMh/COzo6LBZOzs7Ow8NDQ1xo+DZtOvc/5twRD5KBJ2wbXtkdHS03NPT8w/4Ox1boMDyCbor21bLTctVRmItkuGqffv2Lezdu/d5STI+Pj7V3d1NSjnC25GvieUud0ZgiHC93LR7927enBL9/f2seYOEL1bbjf4twAD8sqEzJ5yLRwAAAABJRU5ErkJggg==",anchorPosition:[.5,.5],singleVectorObliqueResolutionFactor:2,activeOnStartup:!1,oblique:{showOnlyActiveTile:!1,unselectedStyle:{fill:{color:"rgba(255, 255, 255, 0.1)"},stroke:{color:"rgb(168, 192, 43)",width:1}},selectedStyle:{fill:{color:"rgba(255, 255, 255, 0.8)"},stroke:{color:"rgb(168, 192, 43)",width:3}}},layerName:void 0,minimumHeight:150})}},{key:"className",get:function(){return"vcs.vcm.widgets.OverviewMap"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e||!this.layerName)return!1;this.layer=this.framework.getLayerByName(this.layerName);try{o(this.layer,[ds,_s,Ls,us])}catch(t){return!1}this.mapActivatedSubscribeKey=this.framework.subscribe(O.MAP_ACTIVATED,this.resetOverviewWidget.bind(this)),this.initialized=!0,this.initializedFinished()}return!0}},{key:"resetOverviewWidget",value:function(){this.values.active&&(this.deactivate(),this.activate())}},{key:"createMap",value:function(){var e=this,t=this.layer.getImplementationObject(Vi.className),i=t.getOLLayer(),n=new ol.layer.Vector({source:this.vectorSource});return this.overviewMap=new ol.Map({target:this.mapContainerId,layers:[i,n],controls:[],interactions:[new ol.interaction.DragPan({kinetic:new ol.Kinetic(-.005,.05,100)})],renderer:"canvas"}),i.setVisible(!0),this.overviewMap.setSize([320,190]),new Promise((function(t){e.overviewMap.once("postrender",t)}))}},{key:"updateSize",value:function(){this.overviewMap&&(this.overviewMap.updateSize(),this.oblique||this.addCameraFeature())}},{key:"activate",value:function(){var e=this;this.values.active=!0;var t=this.overviewMap?Promise.resolve():this.createMap();t.then((function(){ye(Object(fe["a"])(i.prototype),"activate",e).call(e),e.overviewMap.once("postcompose",e.updateSize,e);var t=e.framework.getActiveMap();t instanceof Ut?e.initializeForCesium(t):t instanceof Vi?e.initializeForOpenlayers(t):t instanceof Fi&&e.initializeForOblique(t)}))}},{key:"deactivate",value:function(){this.activeListener&&(this.activeListener(),this.activeListener=null),ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.values.active=!1,this.vectorSource.clear(),this.featureSet=!1}},{key:"initializeForCesium",value:function(e){if(e.initialized){var t=e.getCesiumWidget(),i=t.scene;this.addCameraFeature();var n=this._addNavigationListener(e),r=i.postRender.addEventListener(this.addCameraFeature,this);this.activeListener=function(){r(),ol.Observable.unByKey(n)}}}},{key:"initializeForOpenlayers",value:function(e){var t=e.olMap;this.addCameraFeature();var i=this._addNavigationListener(e),n=t.on("postrender",this.addCameraFeature,this);this.activeListener=function(){ol.Observable.unByKey(n),ol.Observable.unByKey(i)}}},{key:"initializeForOblique",value:function(e){var t=this;this.vectorSource.clear();var i=[];i.push(new ol.interaction.MouseWheelZoom),i.push(new ol.interaction.PinchZoom),i.push(new ol.interaction.DragZoom),this.selectInteraction=new ol.interaction.Select({style:this.selectedObliqueTileStyle}),i.push(this.selectInteraction),i.forEach((function(e){t.overviewMap.addInteraction(e)}));var n=this.overviewMap.on("singleclick",(function(e){t.overviewMap.hasFeatureAtPixel(e.pixel)?t.overviewMap.forEachFeatureAtPixel(e.pixel,(function(i,n){var r=i.getId().toString();return n===t.obliqueCollection.tileFootPrintsLayer?(t.obliqueCollection.loadTile(r).then((function(){t.overviewMap.renderSync(),t.overviewMap.dispatchEvent(e)})),e.stopPropagation()):t.obliqueDirection.setImageOnMap(r),!0})):e.stopPropagation()}));e.activeLayer&&(this.obliqueDirectionChange(e.activeLayer),this.obliqueImageChange(e.activeLayer),this.obliqueCollection=e.activeLayer.obliqueCollection,this.obliqueCollection.isTiled&&(this.obliqueCollection.tileFootPrintsLayer.setStyle(this.unselectedObliqueTileStyle),this.overviewMap.addLayer(this.obliqueCollection.tileFootPrintsLayer)));var r=[];r.push(this.framework.subscribe(O.LAYER_ACTIVATED,this.obliqueLayerActivated,this)),r.push(this.framework.subscribe(O.LAYER_DEACTIVATED,this.obliqueLayerDeactivated,this)),r.push(this.framework.subscribe(O.OBLIQUE_DIRECTION_CHANGED,this.obliqueDirectionChange,this)),r.push(this.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,this.obliqueImageChange,this)),this.activeListener=function(){t.obliqueDirection&&t.overviewMap.removeLayer(t.obliqueDirection.footPrintsLayer),t.obliqueCollection.isTiled&&t.overviewMap.removeLayer(t.obliqueCollection.tileFootPrintsLayer),i.forEach((function(e){t.overviewMap.removeInteraction(e)})),r.forEach((function(e){t.framework.unsubscribeByKey(e)})),ol.Observable.unByKey(n),t.oblique=!1},this.oblique=!0}},{key:"obliqueLayerDeactivated",value:function(e){e instanceof Yi&&(this.selectInteraction.getFeatures().clear(),this.obliqueDirection&&this.overviewMap.removeLayer(this.obliqueDirection.footPrintsLayer),this.obliqueCollection.isTiled&&this.overviewMap.removeLayer(this.obliqueCollection.tileFootPrintsLayer))}},{key:"obliqueLayerActivated",value:function(e){e instanceof Yi&&(this.obliqueDirectionChange(e),this.obliqueImageChange(e),this.obliqueCollection=e.obliqueCollection,this.obliqueCollection.isTiled&&(this.obliqueCollection.tileFootPrintsLayer.setStyle(this.unselectedObliqueTileStyle),this.overviewMap.addLayer(this.obliqueCollection.tileFootPrintsLayer)))}},{key:"obliqueDirectionChange",value:function(e,t){var i=this;if(this.obliqueDirection&&this.overviewMap.removeLayer(this.obliqueDirection.footPrintsLayer),this.obliqueDirection=t||e.currentDirection,this.obliqueDirection){var n=this.obliqueDirection.footPrintsLayer;this.showOnlyActiveObliqueTile?n.setStyle((function(e){var t=i.obliqueDirection.currentImage;return t&&e.getId()===t.name?i.unselectedObliqueTileStyle:null})):n.setStyle(this.unselectedObliqueTileStyle),this.overviewMap.addLayer(n)}}},{key:"obliqueImageChange",value:function(e,t){if(this.obliqueDirection){var i=t||e.currentImage,n=this.selectInteraction.getFeatures();n.clear();var r=this.obliqueDirection.footPrintsLayer.getSource().getFeatureById(i.name);if(r){this.selectInteraction.getFeatures().push(r),this.overviewMap.getView().fit(r.getGeometry().getExtent());var a=this.overviewMap.getView().getResolution();this.overviewMap.getView().setResolution(a*this.singleVectorObliqueResolutionFactor)}}}},{key:"_detectChange",value:function(e,t,i){var n=!0;if(this.featureSet&&this._cachedViewPoint){var r=this._cachedViewPoint.position.some((function(t,i){return e[i]!==t}));n=r||this._cachedViewPoint.heading!==t||this._cachedViewPoint.distance!==i}return n&&(this._cachedViewPoint={position:e,heading:t,distance:i}),n}},{key:"_addNavigationListener",value:function(e){return this.overviewMap.on("singleclick",(function(t){var i=e.getViewPoint(),n=i.groundPosition[2]?i.groundPosition[2]:0;i.groundPosition=[].concat(Object(g["a"])(K(t.coordinate)),[n]),i.cameraPosition=null,e.gotoViewPoint(i)}))}},{key:"addCameraFeature",value:function(){var e=this.framework.getActiveMap().getViewPoint();if(e&&e.isValid()){var t=e.groundPosition,i=e.cameraPosition||t,n=e.heading,r=e.distance;!i[2]||r&&r<4*i[2]||(r=4*i[2]);var a=!this._detectChange(i,n,r);if(!a){var s=Ce.getInstance();if(s.values.walkmode&&(r=s.referenceHeight),r=r>this.minimumHeight?r:this.minimumHeight,null!=n&&null!=r){var o;if(this.featureSet)o=this.vectorSource.getFeatureById("cameraFeature");else{var l=new ol.geom.Point([i[0],i[1]]);o=new ol.Feature({geometry:l}),o.setId("cameraFeature"),o.setStyle(new ol.style.Style({image:this.imageStyle})),this.vectorSource.addFeature(o),this.featureSet=!0}o.getGeometry().setCoordinates(X.wgs84ToMercator(i));var c=e.heading,u=Cesium.Math.toRadians(c);this.imageStyle.setRotation(u),e.heading=0,e.cameraPosition=i,e.groundPosition=null,e.distance=4*r,Vi.prototype.gotoViewPoint.call({olMap:this.overviewMap},e)}}}}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.layerName=this.layerName,e.iconStyleObject={src:this.imageStyle.getSrc(),anchor:this.imageStyle.getAnchor()},e.minimumHeight=this.minimumHeight,e}},{key:"dispose",value:function(){var e=this;this.deactivate(),this.overviewMap&&(this.overviewMap.getLayers().forEach((function(t){e.overviewMap.removeLayer(t)})),this.overviewMap.setTarget(null),this.overviewMap=null),this.framework.unsubscribeByKey(this.mapActivatedSubscribeKey)}}]),i}(Ys),Gf=Hf,zf=i(657),Bf=i.n(zf);function Vf(e,t){return!e.active||e.cesium3DTileset.tilesLoaded?Promise.resolve():new Promise((function(i){var n,r=e.cesium3DTileset.allTilesLoaded.addEventListener((function(){n&&clearTimeout(n),r(),i()}));null!=t&&(n=setTimeout((function(){r(),i()}),t))}))}function Uf(e,t){return e.tilesLoaded?Promise.resolve():new Promise((function(i){var n,r=e.tileLoadProgressEvent.addEventListener((function(e){e<1&&(n&&clearTimeout(n),r(),i())}));null!=t&&(n=setTimeout((function(){r(),i()}),t))}))}function Wf(e){return new Promise((function(t){var i,n=e.getLayers().getArray().filter((function(e){return e instanceof ol.layer.Tile&&e.getVisible()})).map((function(e){return e.getSource()})),r=n.length,a=new Array(3*r),s=-1,o=0,l=null;function c(){o+=1}function u(){s+=1,l&&(clearTimeout(l),l=null),o<=s&&(l=setTimeout((function(){ol.Observable.unByKey(a),t(i)}),500))}e.once("postcompose",(function(e){if(i=e.context.canvas,0===r)setTimeout((function(){t(i)}),500);else{for(var s=0;s<r;s++)a[s]=n[s].on("tileloadstart",c),a[s+1]=n[s].on("tileloadend",u),a[s+2]=n[s].on("tileloaderror",u);u()}})),e.renderSync()}))}var qf=i(681),Jf=i.n(qf),Kf={LANDSCAPE:"landscape",PORTRAIT:"portrait",BOTH:"both"},Zf=k.getLogger("vcs.vcm.widgets.PDFCreator"),Qf=16777216,Xf=4194304;function $f(e,t){var i=e;if(Array.isArray(i)){if(4===i.length)return i;if(2===i.length)return[i[0],i[1],i[0],i[1]];i=i[0]}var n=Object(u["h"])(i,t);return new Array(4).fill(n)}var eg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.libraryPromise=null,n.formatList=e.formatList||r.formatList,n.orientationMode=Object(u["f"])(e.orientationMode,Kf,r.orientationMode);var a=n.orientationMode;return a===Kf.BOTH&&(a=Object(u["f"])(e.defaultOrientation,Kf,r.defaultOrientation)),a===Kf.BOTH&&(a=Kf.PORTRAIT),n.defaultOrientation=a,n.dpiList=e.dpiList||r.dpiList,n.title=e.title||null,n.titleImage=e.titleImage||null,n.copyrightText=e.copyrightText||null,n.showTitle=Object(u["e"])(e.showTitle,r.showTitle),n.showTitleImage=Object(u["e"])(e.showTitleImage,r.showTitleImage),n.showCopyright=Object(u["e"])(e.showCopyright,r.showCopyright),n.showComment=Object(u["e"])(e.showComment,r.showComment),n.showTitleInput=Object(u["e"])(e.showTitleInput,r.showTitleInput),n.showBalloons=Object(u["e"])(e.showBalloons,r.showBalloons),n.showNorthPoint=Object(u["e"])(e.showNorthPoint,r.showNorthPoint),n.showHeaderLine=Object(u["e"])(e.showHeaderLine,r.showHeaderLine),n.showScreenshotDownload=Object(u["e"])(e.showScreenshotDownload,r.showScreenshotDownload),n.coordinateProjection=e.projection?new X(e.projection):n.framework.projection,n.imageMimetype=e.imageMimetype||r.imageMimetype,n.headerText=e.headerText||null,n.subText=e.subText||null,n.aspectRatio={landscape:Object(u["g"])(e.aspectRatioLandscape,r.aspectRatioLandscape),portrait:Object(u["g"])(e.aspectRatioPortrait,r.aspectRatioPortrait)},n.titleImageRatio=Object(u["g"])(e.titleImageRatio,r.titleImageRatio),n.pageMargins=$f(e.pageMargins,r.pageMargins),n.defaultRenderingWidth={portrait:Object(u["h"])(e.renderingWidthPortrait,r.renderingWidthPortrait),landscape:Object(u["h"])(e.renderingWidthLandscape,r.renderingWidthLandscape)},n.warningPixelCount=Object(u["h"])(e.warningPixelCount,n.getPixelCount("A4","landscape",300)),n.headerLineColor=e.headerLineColor||null,n.headerLine={table:{widths:["*"],heights:[.1],body:[[{text:"",fillColor:n.headerLineColor,border:[!1,!1,!1,!1]}]]},layout:"noBorders"},n.footer=e.footer||{},n.header=e.header||{},n.info=e.info||{},n.styles=r.styles,e.styles&&"object"===Object(s["a"])(e.styles)&&Object.assign(n.styles,e.styles),n.northPointImage=e.northPointImage||r.northPointImage,n.loadedTimeout=Object(u["h"])(e.loadedTimeout,r.loadedTimeout),n.floatPrecision=Object(u["h"])(e.floatPrecision,r.floatPrecision),n._cancelled=!1,n._reset=function(){},n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{formatList:["A5","A4","A3","A2"],orientationMode:Kf.BOTH,defaultOrientation:Kf.PORTRAIT,dpiList:[75,150,300,450,600],title:void 0,titleImage:void 0,copyrightText:void 0,showTitle:!0,showTitleImage:!0,showCopyright:!0,showComment:!1,showTitleInput:!1,showBalloons:!0,showNorthPoint:!0,showHeaderLine:!0,showScreenshotDownload:!1,projection:void 0,imageMimetype:"image/png",headerText:void 0,subText:void 0,aspectRatioLandscape:2.22222,aspectRatioPortrait:2.22222,titleImageRatio:.125,pageMargins:40,renderingWidthLandscape:1920,renderingWidthPortrait:1920,warningPixelCount:void 0,headerLineColor:void 0,footer:void 0,header:void 0,info:void 0,styles:{header:{fontSize:9,bold:!0,margin:[0,0,2,0]},subheader:{bold:!0,fontSize:8,margin:[0,10,0,2]},copyright:{fontSize:6,italics:!0,alignment:"right",padding:[10,10,10,10],margin:[0,-7,1.5,0],color:"#000000",background:"#eeeeee"},tableHeader:{bold:!0,fontSize:8,color:"black"},subheaderText:{fontSize:8}},northPointImage:Jf.a,loadedTimeout:3e4,floatPrecision:2})}},{key:"className",get:function(){return"vcs.vcm.widgets.PDFCreator"}}]),Object(m["a"])(i,[{key:"createTemplate",value:function(e,t,n,r,a){if(!Bf.a[e])return Zf.warning("Incorrect format"),{};var o=this.getImagePixel(e,t),l={pageSize:e,pageOrientation:t,content:[],images:{},pageMargins:this.pageMargins,info:this.info},c=this.copyrightText||i.getCopyrightText();if(n.copyright=c,this.headerText){var u,h=i.getJSONFromInput(this.headerText,n);if(Array.isArray(h))(u=l.content).push.apply(u,Object(g["a"])(h));else"object"!==Object(s["a"])(h)&&"string"!==typeof h||l.content.push(h)}else{var d={columns:[]},m=this.title||r;d.columns.push({width:"*",text:this.showTitle?"\n".concat(m):"",style:"header"}),this.showTitleImage&&d.columns.push({width:o[1]*this.titleImageRatio*2+40,image:"titleImage",alignment:"right",margin:[0,0,0,4],fit:[o[1]*this.titleImageRatio*2,o[1]*this.titleImageRatio]}),l.content.push(d)}if(this.showHeaderLine){if(!this.headerLineColor){var f=i.getHeaderBottomColorFromElements();this.headerLine.table.body[0][0].fillColor=f}l.content.push(this.headerLine)}if(l.content.push({image:"screenshot",fit:o}),this.showNorthPoint){var y=o[1]*this.titleImageRatio;l.content.push({image:"northPoint",width:y,absolutePosition:{x:this.pageMargins[0]+o[0]-10-y,y:this.pageMargins[1]+20+y}})}if(this.showCopyright&&c&&l.content.push({text:c,style:"copyright"}),l.content.push("\n"),this.subText){var p,v=this.subText,_=i.getJSONFromInput(v,n);if(Array.isArray(_))(p=l.content).push.apply(p,Object(g["a"])(_));else"object"!==Object(s["a"])(_)&&"string"!==typeof _||l.content.push(_)}return l.images={},this.showTitleImage&&(this.titleImage||a)&&(l.images.titleImage=this.titleImage||a),l.styles=this.styles,l.header=i.getJSONFromInput(this.header,n),l.footer=i.getJSONFromInput(this.footer,n),l}},{key:"collectAdditionalInformation",value:function(e){var t=this,n=G.getInstance().getActiveMap(),r=new Date;if(e.date="".concat(r.getUTCDate(),".").concat(r.getUTCMonth()+1,".").concat(r.getUTCFullYear()),n){n instanceof Fi&&(e.obliqueImage=n.getCurrentImage());var a=n.getViewPoint(!0,!0);return a.then((function(n){var r=$,a=n.clone();return a.groundPosition=a.groundPosition?t.coordinateProjection.transformFrom(r,a.groundPosition):a.groundPosition,a.cameraPosition=a.cameraPosition?t.coordinateProjection.transformFrom(r,a.cameraPosition):a.cameraPosition,e.projection=t.coordinateProjection,e.viewpoint=i.viewpointToFixed(n,t.floatPrecision),e.transformedViewpoint=i.viewpointToFixed(a,t.floatPrecision),e}))}return Promise.resolve(e)}},{key:"getTitleImage",value:function(){if(this.titleImage)return Promise.resolve(this.titleImage);var e=document.getElementsByClassName("logo-box"),t=e.length>0?e[0]:null;return t?(0===t.clientHeight&&(t.style.height="5.5rem"),window.html2canvas(t,{scale:3}).then((function(e){return e.toDataURL()}))):Promise.reject(new Error("Could get Image DOM"))}},{key:"getTitle",value:function(){if(this.title)return Promise.resolve(this.title);var e=document.getElementsByClassName("vcm_copyright_headerTitle"),t=e.length>0?e[0]:null;return t?Promise.resolve(t.textContent):Promise.reject(new Error("Could get Title from DOM"))}},{key:"rotateNorthArrow",value:function(e){var t=this;return this.showNorthPoint?new Promise((function(i,n){var r=t.northPointImage,a=document.createElement("canvas"),s=68,o=68;a.width=s,a.height=o;var l=a.getContext("2d"),c=new Image;c.onload=function(){l.translate(s/2,o/2),l.rotate(-Cesium.Math.toRadians(e)),l.translate(-s/2,-o/2),l.drawImage(c,0,0),i(a.toDataURL())},c.onerror=function(){n(new Error("could not load northArrow"))},c.src=r})):Promise.resolve("")}},{key:"getPixelCount",value:function(e,t,i){var n=this.defaultRenderingWidth[t],r=this.getImageWidth(e,t),a=r/n,s=a*i/72;return n*s*(n/this.aspectRatio[t]*s)}},{key:"getScale",value:function(e,t,i){var n=this.defaultRenderingWidth[t],r=this.getImageWidth(e,t),a=r/n,s=a*i/72,o=n*s*(n/this.aspectRatio[t]*s),l=G.getInstance().isIE11?Xf:Qf;if(o>l){var c=Math.sqrt(l/o);return Math.round(s*c*100)/100}return Math.round(100*s)/100}},{key:"getImageWidth",value:function(e,t){var i=Bf.a[e],n="portrait"===t?i[0]:i[1],r=n-this.pageMargins[0]-this.pageMargins[2];return r}},{key:"getImagePixel",value:function(e,t){var i=this.getImageWidth(e,t);return[i,i/this.aspectRatio[t]]}},{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.initialized=!0,this.initializedFinished()}return!0}},{key:"_cancelCheck",value:function(){if(this._cancelled)throw new Error("cancelled")}},{key:"cancelRunning",value:function(){this._cancelled=!0,this._reset(),this._reset=function(){}}},{key:"createPDF",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i,n,r){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._renderImage(t,i,n);case 2:return a=e.sent,s=a.toDataURL(),e.abrupt("return",this.makePDF(s,t,i,r));case 5:case"end":return e.stop()}}),e,this)})));function t(t,i,n,r){return e.apply(this,arguments)}return t}()},{key:"createImage",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._renderImage(t,i,n);case 2:return r=e.sent,Nm(r,"screenshot.png",this.imageMimetype),e.abrupt("return",!0);case 5:case"end":return e.stop()}}),e,this)})));function t(t,i,n){return e.apply(this,arguments)}return t}()},{key:"_renderImage",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,n,r){var a,s,l,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o(t,String),o(n,["landscape","portrait"]),o(r,Number),this._cancelled=!1,this.libraryPromise||(this.libraryPromise=this.framework.loadLibraries(["lib/vcm_pdf_thirdparty.js"])),e.next=7,this.libraryPromise;case 7:if(this._cancelCheck(),a=document.createElement("canvas"),s=this.defaultRenderingWidth[n],l=this.getScale(t,n,r),c=[s,s/this.aspectRatio[n]],a.width=c[0]*l,a.height=c[1]*l,u=this.framework.getActiveMap(),e.prev=15,!(u instanceof Ut)){e.next=23;break}return this._reset=i.prepareCesiumMap(u,c,l),e.next=20,this.getImageFromCesium(u,a);case 20:a=e.sent,e.next=31;break;case 23:if(!(u instanceof Vi||u instanceof Fi)){e.next=30;break}return this._reset=i.prepareOlMap(u,c,l),e.next=27,this.getImageFromOpenlayers(u,a);case 27:a=e.sent,e.next=31;break;case 30:throw new Error("wrong Map");case 31:return this._cancelCheck(),e.next=34,this.copyBalloon(a,c,l);case 34:a=e.sent,this._cancelCheck();case 36:return e.prev=36,this._reset(),this._reset=function(){},e.finish(36);case 40:return e.abrupt("return",a);case 41:case"end":return e.stop()}}),e,this,[[15,,36,40]])})));function t(t,i,n){return e.apply(this,arguments)}return t}()},{key:"copyBalloon",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i,n){var r,a,s,o,l,c,u,h,d,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=document.getElementById("balloonContainer"),a=Object(Oe["a"])(i,2),s=a[0],o=a[1],!this.showBalloons||!r){e.next=12;break}return e.next=5,window.html2canvas(r,{width:s,height:o,scale:n,backgroundColor:null});case 5:for(l=e.sent,c=t.getContext("2d"),u=c.getImageData(0,0,s*n,o*n),h=l.getContext("2d").getImageData(0,0,s*n,o*n),d=!1,m=0;m<u.data.length;m+=4)0!==h.data[m+3]&&(d=!0,u.data[m]=h.data[m],u.data[m+1]=h.data[m+1],u.data[m+2]=h.data[m+2],u.data[m+3]=h.data[m+3]);d&&c.putImageData(u,0,0);case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this)})));function t(t,i,n){return e.apply(this,arguments)}return t}()},{key:"getImageFromCesium",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i){var n,r,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.getCesiumWidget(),n.render(),r=G.getInstance().getLayers().map((function(e){if(e.active){if(e instanceof Ga)return Vf(e,a.loadedTimeout);if(e instanceof or)return Vf(e.getImplementation(t),a.loadedTimeout)}return!1})).filter((function(e){return e})),r.push(Uf(n.scene.globe,this.loadedTimeout)),e.next=6,Promise.all(r);case 6:return this._cancelCheck(),e.abrupt("return",new Promise((function(e,t){var r=n.scene.postRender.addEventListener((function(){if(r(),a._cancelled)t(new Error("cancelled"));else{var s=i.getContext("2d");s.drawImage(n.scene.canvas,0,0),e(i)}}))})));case 8:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{key:"getImageFromOpenlayers",value:function(e,t){var i=this,n=e.olMap;return Wf(n).then((function(e){i._cancelCheck();var n=t.getContext("2d");return n.drawImage(e,0,0),t}))}},{key:"makePDF",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i,n,r){var a,s,o,l,c,u,h,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=G.getInstance().getActiveMap().getViewPoint(!1,!1),s=a.heading,e.next=4,this.getTitle();case 4:return o=e.sent,e.next=7,this.getTitleImage();case 7:return l=e.sent,e.next=10,this.rotateNorthArrow(s);case 10:return c=e.sent,e.next=13,this.collectAdditionalInformation(r);case 13:return u=e.sent,h=r.title||o,u.title=h,d=this.createTemplate(i,n,u,h,l),d.images.screenshot=t,this.showNorthPoint&&(d.images.northPoint=c),this._cancelCheck(),e.abrupt("return",new Promise((function(e){window.pdfMake.createPdf(d).download("map.pdf",e)})));case 21:case"end":return e.stop()}}),e,this)})));function t(t,i,n,r){return e.apply(this,arguments)}return t}()}],[{key:"removeMapSpecificContent",value:function(e){var t=G.getInstance().getActiveMap();Object(u["a"])(e,(function(e){e&&(e.oblique||e.cesium||e.openlayers)&&(t instanceof Fi&&!e.oblique||t instanceof Ut&&!e.cesium||t instanceof Vi&&!e.openlayers)&&(e.text="")}))}},{key:"getJSONFromInput",value:function(e,t){var n=e,r=G.getInstance().getLocale();null!=n[r]&&(n=n[r]);var a=n;if("string"===typeof a)try{a=JSON.parse(n)}catch(o){Zf.warning(o.message)}null!=a[r]&&(a=a[r]);var s=JSON.stringify(a);s=i.replaceTokensInString(s,t);try{a=JSON.parse(s)}catch(o){Zf.warning(o.message),a=[]}return i.removeMapSpecificContent(a),a}},{key:"replaceTokensInString",value:function(e,t){var i=e,n=i.match(/\$\{(.*?)\}/g);return n&&Array.isArray(n)&&n.forEach((function(e){for(var n=e.substring(2,e.length-1),r=n.split("."),a=t,s=0;s<r.length;s++)a=a&&a[r[s]]?a[r[s]]:"";a="".concat(a).replace(/\n/g,"\\n"),i=i.replace(new RegExp("\\$\\{".concat(n,"\\}"),"g"),a)})),i}},{key:"viewpointToFixed",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i={heading:e.heading.toFixed(t),pitch:e.pitch.toFixed(t),roll:e.roll.toFixed(t)};return null!=e.distance&&(i.distance=e.distance.toFixed(t)),e.cameraPosition&&(i.cameraPosition=e.cameraPosition.map((function(e){return e.toFixed(t)}))),e.groundPosition&&(i.groundPosition=e.groundPosition.map((function(e){return e.toFixed(t)}))),i}},{key:"getHeaderBottomColorFromElements",value:function(){var e=document.getElementsByTagName("header"),t=e.length>0?e[0]:null;if(t){var i=window.getComputedStyle(t);if(i){var n=i.getPropertyValue("border-bottom-color");if(n){var r=He(n);return Be(r)}}}return"#a8c02b"}},{key:"getCopyrightText",value:function(){var e=G.getInstance().getWidgetByType("vcs.vcm.widgets.Copyright"),t="";if(e){var i=e.layerItems,n={};i.forEach((function(e){var t=n[e.provider];if(t){var i=t.years.indexOf(e.year);-1===i&&(t.years.every((function(t){return Number(t)<Number(e.years)}))&&(t.url=e.url),t.years.push(e.year))}else n[e.provider]={years:[e.year],url:e.url}}));var r=!0;return Object.keys(n).forEach((function(e){r?r=!1:t+=" | ",t+="© ",t+=e,t+=" ",t+=n[e].years.join(", ")})),t}return""}},{key:"prepareCesiumMap",value:function(e,t,n){var r=e.getCesiumWidget(),a=r.resolutionScale;return i.prepareMapForRender(e,t),r.resolutionScale=n,function(){r.resolutionScale=a,i.prepareMapForRender(e)}}},{key:"prepareOlMap",value:function(e,t,n){i.prepareMapForRender(e,t);var r=Object(Oe["a"])(t,2),a=r[0],s=r[1],o=e.olMap,l=o.getSize(),c=o.getView().calculateExtent(l),u=[a*n,s*n];return o.setSize(u),o.getView().fit(c,{size:u,constrainResolution:!1}),o.set("vcs_scale",n,!0),function(){i.prepareMapForRender(e),o.setSize(l),o.getView().fit(c,{size:l,constrainResolution:!1}),o.unset("vcs_scale",!0),o.renderSync()}}},{key:"prepareMapForRender",value:function(e,t){var i,n;if(t){var r=Object(Oe["a"])(t,2);i=r[0],n=r[1],i="".concat(i,"px"),n="".concat(n,"px")}else i="auto",n="auto";e.mapElement.style.width=i,e.mapElement.style.height=n,e.disableMovement(!!t)}}]),i}(Ys),tg=eg,ig=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n,r,a){var s;return Object(d["a"])(this,i),s=t.call(this),s.position=e,s.positionDecimalPlaces=r,s.targetTransform="EPSG:3857"!==n.epsg?X.getTransformer(n,ee):null,s._defaultActive=a?re.CLICK|re.MOVE:re.CLICK,s.setActive(),s}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(!e.position.every((function(e){return 0===e}))){var t=e.position;this.targetTransform&&(t=this.targetTransform(e.position,t.slice(),3));var i=3;while(i--)this.position[i]=t[i].toFixed(this.positionDecimalPlaces)}return Promise.resolve(e)}}]),i}(ce),ng=ig,rg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.position={0:null,1:null,2:null},n.template=e.template||null,n.obliqueImage={name:null,direction:null},n.interaction=new ng(n.position,new X(e.projection),Object(u["h"])(e.positionDecimalPlaces,r.positionDecimalPlaces),Object(u["e"])(e.onMove,r.onMove)),n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{template:void 0,projection:void 0,positionDecimalPlaces:2,onMove:!1})}},{key:"className",get:function(){return"vcs.vcm.widgets.PositionDisplay"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){return this.initialized||(this.framework.subscribe(O.OBLIQUE_DIRECTION_CHANGED,this.obliqueImageChanged,this),this.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,this.obliqueImageChanged,this),this.framework.subscribe(O.LAYER_ACTIVATED,this.obliqueImageChanged,this),this.initialized=!0,xn().addPersistentInteraction(this.interaction),this.initializedFinished()),!0}},{key:"obliqueImageChanged",value:function(e){if(e instanceof Yi){var t=e.currentImage;this.obliqueImage.name=t.name,this.obliqueImage.direction=Object(h["b"])(t.viewDirection)}}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.positionDecimalPlaces=this.interaction.positionDecimalPlaces,e.template=this.template,e.projection=this.options.projection,e}}]),i}(Ys),ag=rg,sg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.supportedMaps=["vcs.vcm.maps.Cesium"],n.currentTime=new Date,n.timezone=e.timezone||null,n.activateShadowsOnStartup=Object(u["e"])(e.activateShadowsOnStartup,r.activateShadowsOnStartup),n.values={active:n.active,date:n.currentTime.getTime()},n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{timezone:void 0,activateShadowsOnStartup:!1})}},{key:"className",get:function(){return"vcs.vcm.widgets.Shadow"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.handleMapChangeEvent(this.framework.getActiveMap()),this.activateShadowsOnStartup&&this.toggleShadow(),this.initialized=!0}return!0}},{key:"activate",value:function(){var e=this;this.active||(ye(Object(fe["a"])(i.prototype),"activate",this).call(this),this._widgetActivationListener=this.framework.subscribe(O.WIDGET_ACTIVATED,(function(t){"vcs.vcm.widgets.viewshed.Viewshed"===t.className&&e.deactivate()})),this.map.getScene().shadowMap.enabled=!0,this.setCurrentTimeToMap(),this.values.active=this.active)}},{key:"deactivate",value:function(){this.active&&(this.framework.unsubscribeByKey(this._widgetActivationListener),ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.map.getScene().shadowMap.enabled=!1,this.map.setDay(this.map.defaultJDate),this.values.active=this.active)}},{key:"handleURLParameter",value:function(e){e.shadowTime&&(this.setDate(new Date(e.shadowTime)),this.activate())}},{key:"getLink",value:function(e){this.values.active&&e.addQueryParams({shadowTime:this.currentTime.getTime()})}},{key:"toggleShadow",value:function(){this.active?this.deactivate():this.activate()}},{key:"setMinutesOfDay",value:function(e){o(e,Number),this.currentTime.setHours(Math.floor(e/60)),this.currentTime.setMinutes(e%60),this.setDate(this.currentTime)}},{key:"setDayOfYear",value:function(e){o(e,Number);var t=new Date(this.currentTime.getFullYear(),0,e);this.currentTime.setMonth(t.getMonth()),this.currentTime.setDate(t.getDate()),this.setDate(this.currentTime)}},{key:"setDate",value:function(e){o(e,Date),this.currentTime=e,this.values.date=this.currentTime.getTime(),this.setCurrentTimeToMap()}},{key:"setCurrentTimeToMap",value:function(){var e=Cesium.JulianDate.fromDate(this.currentTime);this.map.setDay(e)}},{key:"handleMapChangeEvent",value:function(e){ye(Object(fe["a"])(i.prototype),"handleMapChangeEvent",this).call(this,e),e instanceof Ut&&(this.map=e)}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.activateShadowsOnStartup=this.activateShadowsOnStartup,e.timezone=this.timezone,e}}]),i}(Ys),og=sg,lg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.cb=e,n._defaultActive=re.CLICKMOVE,n.paused=!1,n.coordinate=null,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){return e.type&re.MOVE?e.position.every((function(e){return 0===e}))||this.cb(e.position):e.type&re.CLICK&&(this.paused?e.feature&&e.feature.id&&"transparentTerrainBox"===e.feature.id._id&&(this.paused=!1,this.setActive(re.CLICKMOVE)):(this.paused=!0,this.setActive(re.CLICK))),Promise.resolve(e)}}]),i}(ce),cg=lg,ug=i(682),hg=i.n(ug),dg=new Cesium.Matrix4,mg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r,a,s=i.getDefaultOptions(),o=e.boxSize||s.boxSize;(n.boxSize=Cesium.Cartesian3.fromArray(o),n.boxSize.z=-Math.abs(n.boxSize.z),n.clippingObject=new hr({layerNames:e.layerNames,terrain:!0}),n.featureLayer=new qa({name:"_transparentTerrain"}),n.position=new Cesium.Cartesian3,n.scene=null,n.supportedMaps=["vcs.vcm.maps.Cesium"],n._removeInteraction=null,n._listener=null,e.color)?r="string"===typeof e.color?Cesium.Color.fromCssColorString(e.color):(a=Cesium.Color).fromBytes.apply(a,Object(g["a"])(e.color)):r=new Cesium.ImageMaterialProperty({image:hg.a,repeat:new Cesium.Cartesian2(Math.ceil(n.boxSize.x/20),Math.ceil(n.boxSize.y/20))});return n.material=r,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{boxSize:[100,100,50],layerNames:void 0,color:void 0})}},{key:"className",get:function(){return"vcs.vcm.widgets.TransparentTerrainMode"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.scene=this.framework.getActiveMap().getScene(),this.framework.addLayer(this.featureLayer),this.initialized=!0}return!0}},{key:"initClippingPlanes",value:function(){var e=this;this.box=new Cesium.Entity({id:"transparentTerrainBox",position:new Cesium.CallbackProperty((function(){return e.position}),!1),box:new Cesium.BoxGraphics({dimensions:this.boxSize,material:this.material})}),this.featureLayer.addEntity(this.box),dg=this.box.computeModelMatrix(Cesium.JulianDate.now()),this._updateClippingPlane()}},{key:"_updateClippingPlane",value:function(){var e=this.boxSize.x/2,t=this.boxSize.y/2,i=Math.abs(this.boxSize.z);this.clippingObject.clippingPlaneCollection=new Cesium.ClippingPlaneCollection({modelMatrix:dg,planes:[new Cesium.ClippingPlane(new Cesium.Cartesian3(1,0,0),-e),new Cesium.ClippingPlane(new Cesium.Cartesian3(-1,0,0),-e),new Cesium.ClippingPlane(new Cesium.Cartesian3(0,1,0),-t),new Cesium.ClippingPlane(new Cesium.Cartesian3(0,-1,0),-t),new Cesium.ClippingPlane(new Cesium.Cartesian3(0,0,-1),-i)],edgeWidth:1,edgeColor:Cesium.Color.WHITE,enabled:!0})}},{key:"activate",value:function(){var e=this;if(!this.active){this.featureLayer.activate(),ye(Object(fe["a"])(i.prototype),"activate",this).call(this);var t=this.scene.camera.positionCartographic.clone();t.height=0,this.position=Cesium.Cartographic.toCartesian(t,this.scene.globe.ellipsoid,this.position),this.initClippingPlanes(),Ya.getInstance().setExclusiveClippingObjects([this.clippingObject],(function(){e.deactivate()}));var n=new cg(this.translatePosition.bind(this));this._removeInteraction=xn().addExclusiveInteraction(n,this.deactivate.bind(this)),this._listener=this.framework.subscribe(O.WIDGET_ACTIVATED,(function(t){"vcs.vcm.widgets.swipeTool.SwipeTool"===t.className&&e.deactivate()})),P.getInstance().activateClickBehavior()}}},{key:"deactivate",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this._removeInteraction&&this._removeInteraction(),this._listener&&(this.framework.unsubscribeByKey(this._listener),this._listener=null),this.featureLayer.deactivate(),this.featureLayer.entities.removeAll(),Ya.getInstance().clearExclusiveClippingObjects(!0))}},{key:"translatePosition",value:function(e){var t=X.mercatorToWgs84(e),i=Object(Oe["a"])(t,3),n=i[0],r=i[1],a=i[2];this.position=Cesium.Cartesian3.fromDegrees(n,r,a+this.boxSize.z/2,Cesium.Ellipsoid.WGS84,this.position),Cesium.Matrix4.setTranslation(dg,this.position,dg),this._updateClippingPlane()}}]),i}(Ys),fg=mg;function gg(){var e=document.createElement("div");return e.className="vcm-swipe-element",e.style.position="absolute",e.style.left="".concat(100*Fa().position,"%"),e.style.top="0px",e.style.height="100%",e.style.zIndex="9999",e}var yg=function(){function e(){Object(d["a"])(this,e),this.element=gg(),this.swipeEventHandler=new Cesium.ScreenSpaceEventHandler(this.element),this.swipeActive=!1,this.active=!1}return Object(m["a"])(e,[{key:"activate",value:function(){var e=this;this.active||(this._addElementToMap(),this.element.style.left="".concat(100*Fa().position,"%"),this.swipeEventHandler.setInputAction((function(){e.swipeActive=!0}),Cesium.ScreenSpaceEventType.LEFT_DOWN),this.swipeEventHandler.setInputAction((function(){e.swipeActive=!1}),Cesium.ScreenSpaceEventType.LEFT_UP),this.swipeEventHandler.setInputAction(this.onSwipingListener.bind(this),Cesium.ScreenSpaceEventType.MOUSE_MOVE),this.active=!0)}},{key:"deactivate",value:function(){this.active&&(this._removeElementFromMap(),this.swipeEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOWN),this.swipeEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_UP),this.swipeEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE),this.active=!1)}},{key:"handleMapChange",value:function(){this._removeElementFromMap(),this.active&&this._addElementToMap()}},{key:"_addElementToMap",value:function(){G.getInstance().getActiveMap().mapElement.appendChild(this.element)}},{key:"_removeElementFromMap",value:function(){this.element.parentElement&&this.element.parentElement.removeChild(this.element)}},{key:"onSwipingListener",value:function(e){if(this.swipeActive){var t=e.endPosition.x,i=(this.element.offsetLeft+t)/this.element.parentElement.offsetWidth;if(i>.01&&i<.99){var n=Fa();n.position=i,this.element.style.left="".concat(100*n.position,"%")}}}}]),e}(),pg=yg,vg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.options=n.options,n.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"],n.activeLayerState={},n._initialLayerState={},n._firstActivation=!0,n._initializedCesium=!1,n.noUi=Object(u["e"])(e.noUi,r.noUi),n.hideSwipeElement=Object(u["e"])(e.hideSwipeElement,r.hideSwipeElement),n.swipeElement=null,n._listeners=[],n._unsupportedLayerToActivate=new Set,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{noUi:!1,hideSwipeElement:!1,layers:void 0,splitPosition:.5})}},{key:"className",get:function(){return"vcs.vcm.widgets.swipeTool.SwipeTool"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var t=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!t)return!1;if(this.options.splitPosition&&(Fa().position=Object(u["g"])(this.options.splitPosition,i.getDefaultOptions().splitPosition)),this.swipeElement=new pg,this.availableLayers=this.framework.getLayers().filter((function(e){return e instanceof Ga||e instanceof ss||e instanceof us})),this.options.layers)if(Array.isArray(this.options.layers)){var n={};this.options.layers.forEach((function(e){var t=e.layerName,i=e.splitDirection;n[t]=i})),this.assignConfig(n)}else this.assignConfig(this.options.layers);this.availableLayers.forEach((function(t){void 0===e.activeLayerState[t.name]&&(e.activeLayerState[t.name]=null)})),this.initialized=!0}return!0}},{key:"handleMapChangeEvent",value:function(e){var t=this;this._unsupportedLayerToActivate.size>0&&this._unsupportedLayerToActivate.forEach((function(i){i.isSupported(e)&&(i.activate(),t._unsupportedLayerToActivate.delete(i))})),ye(Object(fe["a"])(i.prototype),"handleMapChangeEvent",this).call(this,e),this.active&&(this.swipeElement.handleMapChange(),!this._initializedCesium&&e instanceof Ut&&Object.entries(this._initialLayerState).forEach((function(e){var i=Object(Oe["a"])(e,2),n=i[0],r=i[1];if("cesium3DTileset"===r.type){var a=t.framework.getLayerByName(n);a&&(r.active=a.active)}}))),this._initializedCesium||(this._initializedCesium=e instanceof Ut)}},{key:"activate",value:function(){var e=this;this.active||(this.hideSwipeElement||this.swipeElement.activate(),this._setCurrentState(this._initialLayerState),this._initializedCesium||(this._initializedCesium=this.framework.getActiveMap()instanceof Ut),this._firstActivation&&(Object.entries(this._initialLayerState).forEach((function(t){var i=Object(Oe["a"])(t,2),n=i[0],r=i[1];null==e.activeLayerState[n]&&(e.activeLayerState[n]=Object.assign({},r))})),this._firstActivation=!1),this._applyState(this.activeLayerState),this._listeners.push(this.framework.subscribe(O.LAYER_CHANGED,this.handleLayerChanged,this)),this._listeners.push(this.framework.subscribe(O.SPLIT_DIRECTION_CHANGED,this.handleSplitDirectionChanged,this)),this._listeners.push(this.framework.subscribe(O.WIDGET_ACTIVATED,(function(t){"vcs.vcm.widgets.ClippingTool"!==t.className&&"vcs.vcm.widgets.TransparentTerrainMode"!==t.className||e.deactivate()}))),ye(Object(fe["a"])(i.prototype),"activate",this).call(this))}},{key:"handleLayerChanged",value:function(e){null!=this.activeLayerState[e.name]&&(this.activeLayerState[e.name].active=e.active)}},{key:"handleSplitDirectionChanged",value:function(e,t){null!=this.activeLayerState[e.name]&&(this.activeLayerState[e.name].splitDirection=t)}},{key:"deactivate",value:function(){var e=this;this.active&&(ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this._listeners.forEach((function(t){e.framework.unsubscribeByKey(t)})),this._listeners=[],this._applyState(this._initialLayerState),this.swipeElement.deactivate())}},{key:"_applyState",value:function(e){var t=this;this._unsupportedLayerToActivate.clear();var i=this.framework.getActiveMap();Object.entries(e).forEach((function(e){var n=Object(Oe["a"])(e,2),r=n[0],a=n[1],s=t.framework.getLayerByName(r);s&&(s.splitDirection=a.splitDirection,a.active?s.isSupported(i)?s.activate():t._unsupportedLayerToActivate.add(s):s.deactivate())}))}},{key:"_setCurrentState",value:function(e){this.availableLayers.forEach((function(t){e[t.name]={active:t.active||t.loading,splitDirection:t.splitDirection,type:t instanceof Ga?"cesium3DTileset":"imagery"}})),this._unsupportedLayerToActivate.forEach((function(t){e[t.name]={active:!0,splitDirection:t.splitDirection,type:t instanceof Ga?"cesium3DTileset":"imagery"}}))}},{key:"assignConfig",value:function(e){var t=this;o(e,Object),Object.entries(e).forEach((function(e){var i=Object(Oe["a"])(e,2),n=i[0],r=i[1],a=t.availableLayers.find((function(e){return e.name===n}));a&&(t.activeLayerState[n]={active:!0,splitDirection:r,type:a instanceof Ga?"cesium3DTileset":"imagery"})}))}},{key:"handleURLParameter",value:function(e){ye(Object(fe["a"])(i.prototype),"handleURLParameter",this).call(this,e),e.split&&(this.assignConfig(e.split.l),Fa().position=e.split.p,this.hideSwipeElement=e.split.hE,this.activate())}},{key:"getLink",value:function(e){if(this.active){var t={},i={l:t,p:Fa().position,hE:!this.swipeElement.active};Object.entries(this.activeLayerState).forEach((function(e){var i=Object(Oe["a"])(e,2),n=i[0],r=i[1],a=r.active,s=r.splitDirection;a&&(t[n]=s)})),e.addQueryParams({split:JSON.stringify(i)})}}},{key:"dispose",value:function(){var e=this;ye(Object(fe["a"])(i.prototype),"dispose",this).call(this),this._listeners.forEach((function(t){e.framework.unsubscribeByKey(t)})),this._listeners=[],this.swipeElement&&this.swipeElement.deactivate(),this.swipeElement=null,this.availableLayers=[],this.activeLayerState={},this._initialLayerState={},this._firstActivation=!0,this.initialized=!1,this.active=!1}}]),i}(Ys),_g=vg,bg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.supportedMaps=["vcs.vcm.maps.Cesium"],n.flightInstances=n.framework.getFlights(),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.Flight"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.initialized=!0,this.initializedFinished()}return!0}},{key:"addFlight",value:function(e){this.flightInstances.push(e)}},{key:"deleteFlight",value:function(e){var t=this.flightInstances.indexOf(e);this.flightInstances.splice(t,1)}}]),i}(Ys),Lg=bg,wg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.featureTypeSymbol=e.featureTypeSymbol,n.cb=e.cb,n._defaultActive=re.DRAGSTART|re.DRAGEND,n._defaultModificationKey=ne.ALT,n.setActive(!1),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){return e.type&re.DRAGSTART&&e.feature&&e.feature[this.featureTypeSymbol]&cn.VERTEX?this._feature=!0:e.type&re.DRAGEND&&this._feature&&(this._feature=!1,this.cb()),Promise.resolve(e)}}]),i}(ce),Mg=wg,kg=new Cesium.Cartesian3,Og=new Cesium.Cartesian3,Tg=new Cesium.Cartesian3,Sg=new Cesium.Cartographic,Cg=new Cesium.Cartographic,jg=new Cesium.Cartographic,Eg=new Map;function Ig(){return{image:{fill:{color:"rgba(168, 192, 43, 0.8)"},stroke:{color:"rgb(0, 0, 0)",width:1},radius:5},stroke:{color:"rgb(168, 192, 43)",width:3},fill:{color:"rgba(168, 192, 43, 0.8)"},text:{font:"bold 18px Arial, Helvetica, sans-serif",textBaseline:"bottom",offsetY:-15,offsetX:0,fill:{color:"rgb(0, 0, 0)"},stroke:{color:"rgb(255, 255, 255)",width:2}}}}var Dg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.style=new dt(r.style),e.style&&n.style.assign(new dt(e.style)),n.supportedMaps=["vcs.vcm.maps.Cesium"],n.maxNrOfPoints=Object(u["h"])(e.maxNrOfPoints,r.maxNrOfPoints),n.maxCombinedMemoryUsage=Object(u["h"])(e.maxCombinedMemoryUsage,r.maxCombinedMemoryUsage),n._cancelled=!1,n._geometryChangedCB=null;var a=Object(u["g"])(e.defaultResolution,r.defaultResolution);return n.values={profilePoints:[],progress:0,running:!1,includeObjects:!0,resolution:a},n.allowSmallExport=Object(u["e"])(e.allowSmallExport,r.allowSmallExport),n._cachedProfile=null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{style:Ig(),maxNrOfPoints:5e4,maxCombinedMemoryUsage:1024,defaultResolution:2,allowSmallExport:!0})}},{key:"className",get:function(){return"vcs.vcm.widgets.heightProfile.HeightProfile"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.featureLayer=new _n({projection:{epsg:3857},name:"_profile",style:this.style,altitudeMode:"clampToGround",classificationType:"both"}),this.framework.addLayer(this.featureLayer),this.geometryEditor=new sc({allowedGeometries:["LineString"],defaultMode:"edit",dedicatedFeatureStyle:!1}),this.geometryEditor.initialize(),this.geometryEditor.addEditingLayer(this.featureLayer),this.geometryEditor.selectFeatureInteraction.onSelect(this._onSelect.bind(this)),this.geometryEditor.state.onlyAllowTranslation=!0,this.vertexChangedInteraction=new Mg({cb:this.calculateProfile.bind(this),featureTypeSymbol:this.geometryEditor.state.featureTypeSymbol}),this.initialized=!0,this.initializedFinished()}return!0}},{key:"activate",value:function(){var e=this;ye(Object(fe["a"])(i.prototype),"activate",this).call(this),this.geometryEditor.activate(),this._cachedProfile&&this.geometryEditor.setMode(ln.EDIT),this.featureLayer.activate();var t=this.framework.getLayers().filter((function(e){return e.active&&(e instanceof Ga||e instanceof or)}));t.length>0&&t.forEach((function(i){var n;if(i instanceof or){var r=i.getImplementation(e.framework.getActiveMap());n=r.cesium3DTileset}else n=i.cesium3DTileset;Eg.set(n,n.maximumMemoryUsage),n.maximumMemoryUsage=e.maxCombinedMemoryUsage/t.length}))}},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.cancel(),this._geometryChangedCB&&ol.Observable.unByKey(this._geometryChangedCB),this.geometryEditor.state.active&&(this.geometryEditor.interactionChain.removeInteraction(this.vertexChangedInteraction),this.vertexChangedInteraction.setActive(!1),this.geometryEditor.setMode(ln.NONE),this.geometryEditor.deactivate()),this.featureLayer.deactivate(),Eg.forEach((function(e,t){t.maximumMemoryUsage=e}))}},{key:"cancel",value:function(){this._cancelled=!0,this._reset(),this._cachedProfile&&this.feature&&this.feature.getGeometry().setCoordinates(this._cachedProfile)}},{key:"_reset",value:function(){this.values.running=!1,this.values.progress=0,this._cachedProfile||this.featureLayer.removeAllFeatures()}},{key:"_onSelect",value:function(){this.geometryEditor.features.size?(this.geometryEditor.interactionChain.chain.includes(this.vertexChangedInteraction)||this.geometryEditor.interactionChain.addInteraction(this.vertexChangedInteraction),this.values.running?this.geometryEditor.selectFeatureInteraction.clearSelectionSet():this.vertexChangedInteraction.setActive()):(this.geometryEditor.interactionChain.removeInteraction(this.vertexChangedInteraction),this.vertexChangedInteraction.setActive(!1))}},{key:"newProfile",value:function(){this._reset(),this.featureLayer.removeFeaturesById(["_start","_end"]),this.feature=this.geometryEditor.createFeature("LineString","_profileLine"),this.feature.set("olcs_classificationType","both"),this._geometryChangedCB=this.feature.getGeometry().on("change",this.geometryChangedCallback.bind(this)),this.geometryEditor.setModeAndSelectFeature(ln.CREATE,this.feature)}},{key:"geometryChangedCallback",value:function(e){var t=e.target.getCoordinates(),i=t.length;i>2&&(this.geometryEditor.setMode(ln.EDIT),ol.Observable.unByKey(this._geometryChangedCB),this._geometryChangedCB=null,this.calculateProfile())}},{key:"calculateProfile",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(){var t,i,n,r,a,s,o,l,c,u,h,d,m=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this._cancelled=!1,this.geometryEditor.selectFeatureInteraction.clearSelectionSet(),this.values.running=!0,this.values.progress=0,t=this.framework.getActiveMap(),i=t.getScene(),n=this.values.includeObjects?i.sampleHeightMostDetailed.bind(i):Cesium.sampleTerrainMostDetailed.bind(null,i.terrainProvider),r=this.feature.getGeometry().getCoordinates(),a=X.mercatorToWgs84(r[0]),Cesium.Cartographic.fromDegrees(a[0],a[1],null,Sg),s=X.mercatorToWgs84(r[1]),Cesium.Cartographic.fromDegrees(s[0],s[1],null,Cg),o=new Cesium.EllipsoidGeodesic(Sg,Cg),l=o.surfaceDistance,this._addLabels(r,l),c=Math.floor(l/this.values.resolution),c>this.maxNrOfPoints&&(c=this.maxNrOfPoints,this.values.resolution=Number((l/this.maxNrOfPoints).toFixed(1))),u=new Array(c),Cesium.Cartographic.toCartesian(Sg,null,kg),Cesium.Cartographic.toCartesian(Cg,null,Og),h=0;case 20:if(!(h<c)){e.next=32;break}return d=void 0,0===h?d=Sg:(Cesium.Cartesian3.lerp(kg,Og,h*this.values.resolution/l,Tg),d=Cesium.Cartographic.fromCartesian(Tg,null,jg)),e.next=25,n([d]);case 25:if(u[h]=d.height,!this._cancelled){e.next=28;break}return e.abrupt("break",32);case 28:this.values.progress=h/(c-1);case 29:h++,e.next=20;break;case 32:if(!(l/this.values.resolution-c>.01)){e.next=36;break}return e.next=35,n([Cg]);case 35:u.push(Cg.height);case 36:this._cancelled||(this._cachedProfile=this.feature.getGeometry().getCoordinates(),this.values.profilePoints=u.map((function(e,t){return new Cesium.Cartesian2(t*m.values.resolution,e)})),this.values.running=!1,this.values.progress=0);case 37:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_addLabels",value:function(e,t){var i=this,n=function(e,t,n){var r=new ol.Feature({geometry:new ol.geom.Point(e)});r.setId(t),r[_n.alreadyTransformedToMercator]=!0;var a=i.featureLayer.style.style.clone();return a.getText().setText(n),a.setImage(null),r.setStyle(a),r[i.geometryEditor.state.featureTypeSymbol]=cn.UNEDITABLE,r};this.featureLayer.removeFeaturesById(["_start","_end"]),this.featureLayer.addFeatures([n(e[0],"_start","0"),n(e[1],"_end",t.toFixed(1))])}},{key:"isActiveTerrain",value:function(){var e=this.framework.getLayers(),t=e.find((function(e){return e instanceof is&&e.active}));return!!t}}]),i}(Ys),Pg=Dg,Ag=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this),r.clippingObjectEditor=e,r.vertical=n,r._defaultActive=re.CLICK,r._defaultModificationKey=ne.NONE,r.setActive(),r}return Object(m["a"])(i,[{key:"pipe",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.position&&(t.stopPropagation=!0,this.clippingObjectEditor.feature=Ia(X.mercatorToWgs84(t.position),this.vertical)),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),i}(ce),xg=Ag,Yg={};function Ng(e){return Yg[e]}var Fg=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(d["a"])(this,e),this.id=Fn()(),this.clippingObject=new hr(t),this.editor=new tc({}),this.active=!1,this._reverse=Object(u["e"])(t.reverse,!1),this._createVerticalPlanes=Object(u["e"])(t.createVerticalPlanes,!0),this._createTopPlane=Object(u["e"])(t.createTopPlane,!0),this._createBottomPlane=Object(u["e"])(t.createBottomPlane,!0),this._createEndingPlanes=Object(u["e"])(t.createEndingPlanes,!0),this._createClippingFeatureInteraction=null,this._feature=null,this._olListeners=new Array(3),this.initialized=!1,this.modeChange=new Cesium.Event,this._mode=ln.SELECT,Yg[this.id]=this}return Object(m["a"])(e,[{key:"initialize",value:function(){this.initialized||(this.scratchLayer=new _n({projection:ee.getConfigObject(),altitudeMode:"absolute"}),G.getInstance().addLayer(this.scratchLayer),this.editor.initialize(),this.editor.state.altitudeMode=hn.ABSOLUTE,this.editor.addEditingLayer(this.scratchLayer),this.initialized=!0)}},{key:"activate",value:function(){this.editor.state.active||(this.editor.activate(),this._mode&ln.SELECT&&this._feature&&(this.editor.setMode(ln.SELECT),this.editor.selectFeatureInteraction.selectFeature(this._feature))),this.active||(this.scratchLayer.activate(),this._setFeatureListeners(),this._updateClippingPlaneCollection(),this.active=!0)}},{key:"deactivate",value:function(){this.active&&(this.editor.deactivate(),this.scratchLayer.deactivate(),this.active=!1,ol.Observable.unByKey(this._olListeners),this._olListeners=new Array(3),this._postRenderListener&&(this._postRenderListener(),this._postRenderListener=null))}},{key:"setOptions",value:function(e){var t,i=this,n={reverse:[Boolean,void 0],createVerticalPlanes:[Boolean,void 0],createTopPlane:[Boolean,void 0],createBottomPlane:[Boolean,void 0],createEndingPlanes:[Boolean,void 0]};o(e,n);var r=function(n){null!=e[n]&&i["_".concat(n)]!==e[n]&&(i["_".concat(n)]=e[n],t=!0)};Object.keys(n).forEach(r),t&&this._updateClippingPlaneCollection()}},{key:"setMode",value:function(e,t){o(e,[ln.SELECT,ln.CREATE]),l(t,Boolean),this.activate(),this._createClippingFeatureInteraction&&(this.editor.interactionChain.removeInteraction(this._createClippingFeatureInteraction),this._createClippingFeatureInteraction=null),this.editor.setMode(e),e&ln.CREATE&&(this._createClippingFeatureInteraction=new xg(this,t),this.editor.interactionChain.addInteraction(this._createClippingFeatureInteraction,0)),e&this._mode||(this._mode=e,this.modeChange.raiseEvent()),this._mode&ln.SELECT&&this._feature&&this.editor.selectFeatureInteraction.selectFeature(this._feature)}},{key:"_setFeatureListeners",value:function(){var e=this,t=function(){ol.Observable.unByKey(e._olListeners[2]),e.feature.getGeometry()&&(e._olListeners[2]=e.feature.getGeometry().on("change",(function(){e._updateClippingPlaneCollection()})))};ol.Observable.unByKey(this._olListeners),this._olListeners=new Array(3),this.feature&&(this._olListeners[0]=this.feature.on("propertychange",(function(){e._updateClippingPlaneCollection()})),this._olListeners[1]=this.feature.on("change:geometry",(function(){t()})),t())}},{key:"_updateClippingPlaneCollection",value:function(){this.feature&&this.feature.getGeometry()?this.clippingObject.clippingPlaneCollection=ka(this.feature,{reverse:this._reverse,createBottomPlane:this._createBottomPlane,createTopPlane:this._createTopPlane,createVerticalPlanes:this._createVerticalPlanes,createEndingPlanes:this._createEndingPlanes}):this.clippingObject.clippingPlaneCollection=new Cesium.ClippingPlaneCollection}},{key:"destroy",value:function(){ol.Observable.unByKey(this._olListeners),this._olListeners=new Array(3),this._feature=null,this.clippingObject=null,this.editor.destroy(),this.initialized&&this.scratchLayer.dispose(),delete Yg[this.id],this._postRenderListener&&(this._postRenderListener(),this._postRenderListener=null)}},{key:"createVerticalPlanes",get:function(){return this._createVerticalPlanes},set:function(e){o(e,Boolean),this._createVerticalPlanes!==e&&(this._createVerticalPlanes=e,this._updateClippingPlaneCollection())}},{key:"createTopPlane",get:function(){return this._createTopPlane},set:function(e){o(e,Boolean),this._createTopPlane!==e&&(this._createTopPlane=e,this._updateClippingPlaneCollection())}},{key:"createBottomPlane",get:function(){return this._createBottomPlane},set:function(e){o(e,Boolean),this._createBottomPlane!==e&&(this._createBottomPlane=e,this._updateClippingPlaneCollection())}},{key:"createEndingPlanes",get:function(){return this._createEndingPlanes},set:function(e){o(e,Boolean),this._createEndingPlanes!==e&&(this._createEndingPlanes=e,this._updateClippingPlaneCollection())}},{key:"reverse",get:function(){return this._reverse},set:function(e){o(e,Boolean),this._reverse!==e&&(this._reverse=e,this._updateClippingPlaneCollection())}},{key:"feature",get:function(){return this._feature},set:function(e){var t=this;if(l(e,ol.Feature),this._feature=e,this.initialized){var i=this.scratchLayer.getFeatureById("_clippingObject");if(i&&i!==e&&this.scratchLayer.removeAllFeatures(),e&&(e.setId("_clippingObject"),this.scratchLayer.addFeatures([e])),this.active){this.setMode(ln.SELECT),this._setFeatureListeners();var n=xn(),r=n.featureInteraction,a=r.active;r.setActive(!1),this._updateClippingPlaneCollection(),this._postRenderListener&&this._postRenderListener(),this._postRenderListener=G.getInstance().getActiveMap().getScene().postRender.addEventListener((function(){r.setActive(a),t._postRenderListener()}))}}}},{key:"mode",get:function(){return this._mode}}]),e}(),Rg=Fg,Hg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.supportedMaps=["vcs.vcm.maps.Cesium"],n.availableLayerNames=[],n.layerChangedListener=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.ClippingTool"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.clippingEditor=new Rg,this.clippingEditor.initialize(),this.initialized=!0}return!0}},{key:"activate",value:function(){var e=this;this.active||(this.clippingEditor.activate(),this.availableLayerNames.splice(0),this.framework.getLayers().filter((function(e){return e.active&&e instanceof Ga})).forEach((function(t){e.availableLayerNames.push(t.name)})),this.layerChangedListener=this.framework.subscribe(O.LAYER_CHANGED,(function(t){if(t instanceof Ga)if(t.active)e.availableLayerNames.push(t.name);else{var i=e.availableLayerNames.indexOf(t.name);i>-1&&e.availableLayerNames.splice(i,1)}})),this.widgetChangedListener=this.framework.subscribe(O.WIDGET_ACTIVATED,(function(t){"vcs.vcm.widgets.swipeTool.SwipeTool"===t.className&&e.deactivate()})),this._syncLayers(this.availableLayerNames),Ya.getInstance().setExclusiveClippingObjects([this.clippingEditor.clippingObject],this.deactivate.bind(this)),ye(Object(fe["a"])(i.prototype),"activate",this).call(this))}},{key:"deactivate",value:function(){this.active&&(this.framework.unsubscribeByKey(this.layerChangedListener),this.framework.unsubscribeByKey(this.widgetChangedListener),this.clippingEditor.deactivate(),Ya.getInstance().clearExclusiveClippingObjects(!0),ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this))}},{key:"_syncLayers",value:function(e){var t=this.clippingEditor.clippingObject,i=new Set(t.layerNames);e.forEach((function(e){i.has(e)?i.delete(e):t.addLayer(e)})),i.forEach((function(e){t.removeLayer(e)}))}},{key:"handleURLParameter",value:function(e){var t=e.clip;if(t){this.activate();var i=new ol.Feature({olcs_altitudeMode:"absolute"});t.e&&i.set("olcs_extrudedHeight",t.e);var n="number"===typeof t.c[0][0]?new ol.geom.LineString(t.c,"XYZ"):new ol.geom.Polygon(t.c,"XYZ");n[_n.alreadyTransformedToMercator]=!0,i.setGeometry(n),this._syncLayers(t.l),this.clippingEditor.feature=i,this.clippingEditor.setOptions(Da(i,!!t.i)),this.clippingEditor.reverse=!!t.r,this.clippingEditor.clippingObject.terrain=!!t.t,t.a||this.clippingEditor.deactivate()}}},{key:"getLink",value:function(e){if(this.active&&this.clippingEditor.feature){var t="LineString"===this.clippingEditor.feature.getGeometry().getType(),i=t?this.clippingEditor.createEndingPlanes:this.clippingEditor.createVerticalPlanes,n={c:this.clippingEditor.feature.getGeometry().getCoordinates(),i:i?0:1,a:this.clippingEditor.active?1:0,r:this.clippingEditor.reverse?1:0,t:this.clippingEditor.clippingObject.terrain?1:0,l:this.clippingEditor.clippingObject.layerNames},r=this.clippingEditor.feature.get("olcs_extrudedHeight");r&&(n.e=r),e.addQueryParams({clip:n})}}},{key:"dispose",value:function(){this.deactivate(),this.clippingEditor.destroy()}}]),i}(Ys),Gg=Hg,zg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,e.supportedMaps=["vcs.vcm.maps.Oblique"],n=t.call(this,e),n.maps={},n.values={active:n.active,activeDirection:h["a"].NORTH,availableDirections:[]},n._activeLayer=null,n._running=!1,n._directionChangeListener=null,n._layerChangedListener=null,n._postRenderListener=null,n._clone=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.MultiView"}}]),Object(m["a"])(i,[{key:"activate",value:function(){var e=this;if(!this.active){ye(Object(fe["a"])(i.prototype),"activate",this).call(this),Object.values(h["a"]).forEach((function(t){e.maps[t]=new ol.Map({controls:[],interactions:[]})}));var t=this.framework.getActiveMap();t.initializedPromise.then((function(){e._setObliqueLayer(t.activeLayer),e._layerChangedListener=e.framework.subscribe(O.LAYER_ACTIVATED,e._setObliqueLayer.bind(e)),e._directionChangeListener=e.framework.subscribe(O.OBLIQUE_DIRECTION_CHANGED,e._setDirection.bind(e)),e._postRenderListener=t.olMap.on("postrender",e._postRenderHandler.bind(e)),e.values.active=e.active}))}}},{key:"_setObliqueLayer",value:function(e){var t=this;if(e instanceof Yi){if(this._activeLayer){var i=this._activeLayer.obliqueCollection.directions;Object.keys(i).forEach((function(e){e!==t.values.activeDirection.toString()&&i[e].deactivate()}))}this.values.availableDirections=Object.values(e.obliqueCollection.directions).map((function(e){return e.direction})),this._activeLayer=e,this._setDirection(this._activeLayer,this._activeLayer.currentDirection)}}},{key:"_setDirection",value:function(e,t){var i=this,n=e.computeViewpoint();this.values.activeDirection=t.direction;var r=e.obliqueCollection.directions;Object.keys(r).forEach((function(e){e!==i.values.activeDirection.toString()&&(r[e].suppressPublish=!0,r[e].activateWithViewPoint(i.maps[e],n))})),this._clone&&this._clone.deactivate(),this._clone=new Ei({direction:t.direction,projection:t.projection,terrainProvider:t.terrainProvider,images:t.images,layer:t.layer,footPrintFeatures:[],rTreeItems:[]}),this._clone.suppressPublish=!0,Object.defineProperty(this._clone,"currentView",{get:function(){return this._currentView},set:function(e){e?this._originalView&&this._originalView===e||(this._originalView=e,this._currentView=e.clone()):(this._originalView=null,this._currentView=null)}}),this._clone.rTree=t.rTree,this._clone.activateWithViewPoint(this.maps[t.direction],n)}},{key:"_postRenderHandler",value:function(){var e=this;this.active&&!this._running&&(this._running=!0,this._activeLayer.computeViewpoint(!0).then((function(t){if(t){var i=e._activeLayer.obliqueCollection.directions;Object.keys(i).forEach((function(n){n!==e.values.activeDirection.toString()&&i[n].setViewPoint(t,!0)})),e._clone.setViewPoint(t,!0)}e._running=!1})).catch((function(t){e.logger.error(t),e._running=!1})))}},{key:"deactivate",value:function(){var e=this;if(this.active){if(ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this._directionChangeListener&&(this.framework.unsubscribeByKey(this._directionChangeListener),this._directionChangeListener=null),this._layerChangedListener&&(this.framework.unsubscribeByKey(this._layerChangedListener),this._layerChangedListener=null),this._postRenderListener&&(ol.Observable.unByKey(this._postRenderListener),this._postRenderListener=null),this._activeLayer){var t=this._activeLayer.obliqueCollection.directions;Object.keys(t).forEach((function(i){i!==e.values.activeDirection.toString()&&t[i].deactivate()})),this._activeLayer=null}this._clone&&this._clone.deactivate(),Object.keys(this.maps).forEach((function(t){e.maps[t].setTarget(null),delete e.maps[t]})),this.values.active=this.active}}},{key:"dispose",value:function(){ye(Object(fe["a"])(i.prototype),"dispose",this).call(this),this.deactivate()}}]),i}(Ys),Bg=zg,Vg=i(579),Ug=i.n(Vg),Wg=function(){function e(t,i,n){Object(d["a"])(this,e),this.type=i||null,this.id=t||null,this.featureType=n||null,this.attributes=[],this.parts=[],this.featureIds=[]}return Object(m["a"])(e,[{key:"reset",value:function(){var e,t=this.attributes.filter((function(e){return!e.new&&(e.reset(),!0)}));t.length<this.attributes.length&&(this.attributes.splice(0),(e=this.attributes).push.apply(e,Object(g["a"])(t)));this.parts.forEach((function(e){e.reset()}))}},{key:"getChangedAttributes",value:function(){var e;return(e=this.attributes.filter((function(e){return e.changed}))).concat.apply(e,Object(g["a"])(this.parts.map((function(e){return e.getChangedAttributes()}))))}},{key:"clear",value:function(){this.id=null,this.type=null,this.featureType=null,this.attributes.splice(0),this.parts.forEach((function(e){e.clear()})),this.parts.splice(0)}},{key:"updated",value:function(){var e,t=this.attributes.filter((function(e){return!e.deleted&&(e.updated(),!0)}));t.length<this.attributes.length&&(this.attributes.splice(0),(e=this.attributes).push.apply(e,Object(g["a"])(t)));this.parts.forEach((function(e){e.updated()}))}}]),e}(),qg=Wg,Jg={};function Kg(e){return Jg[e]}var Zg=function(){function e(t){Object(d["a"])(this,e),this.id=Ug()(),this.selectedFeatureId=null,this.root=new qg,this.layerNames=t.layerNames||[],Jg[this.id]=this}return Object(m["a"])(e,[{key:"initialize",value:function(){}},{key:"activate",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.active=!0;case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"deactivate",value:function(){this.active=!1}},{key:"setFeature",value:function(e){return this.clear(),this.selectedFeatureId=e,Promise.resolve()}},{key:"update",value:function(){return Promise.resolve()}},{key:"reset",value:function(){}},{key:"clear",value:function(){this.selectedFeatureId=null,this.root.clear()}}]),e}(),Qg=Zg,Xg=function(){function e(t,i,n,r,a){Object(d["a"])(this,e),this.key=t,this.name=r||this.key,this._value=i,this._originalValue=i,this._deleted=!1,this.changed=!1,this.new=!1,this.targetReference=a;var s="number"===typeof i?Yc.DOUBLE:Yc.STRING;this.type=n||s}return Object(m["a"])(e,[{key:"clone",value:function(){return new e(this.key,this._value,this.type,this.name)}},{key:"reset",value:function(){this.value=this._originalValue,this._deleted=!1}},{key:"updated",value:function(){this._originalValue=this._value,this.changed=!1,this._deleted=!1,this.new=!1}},{key:"value",get:function(){return this._value},set:function(e){this.changed=this._originalValue!==e,this._value=e}},{key:"deleted",get:function(){return this._deleted},set:function(e){this.changed=e,this._deleted=e}}]),e}(),$g=Xg;function ey(e){return"BuildingPart"===e.type?'bldg:consistsOfBuildingPart/bldg:BuildingPart[@gml:id="'.concat(e.id,'"]'):"BridgePart"===e.type?'brid:consistsOfBridgePart/brid:BridgePart[@gml:id="'.concat(e.id,'"]'):"TunnelPart"===e.type?'tun:consistsOfTunnelPart/tun:TunnelPart[@gml:id="'.concat(e.id,'"]'):""}var ty=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e.id,e.type,e.featureType),n.parentFeatureType=e.parentFeatureType,n.parents=[],n}return Object(m["a"])(i,[{key:"getChangedAttributes",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"getChangedAttributes",this).call(this).map((function(t){var i=ey(e);return t.targetReference=t.targetReference?"".concat(i,"/").concat(t.targetReference):i,t}))}}]),i}(qg),iy=ty,ny=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e.id,e.type,e.featureType),n.attributes=e.attributes||n.attributes,n.parentFeatureType=e.parentFeatureType,n}return Object(m["a"])(i,[{key:"getChangedAttributes",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"getChangedAttributes",this).call(this).map((function(t){return t.targetReference="".concat(e.parentFeatureType.featurePrefix,":boundedBy/").concat(e.parentFeatureType.featurePrefix,":").concat(e.type,'[@gml:id="').concat(e.id,'"]'),t}))}}]),i}(qg),ry=ny,ay={WFS:"http://www.opengis.net/wfs/2.0",VCS:"http://www.virtualcitysystems.de/wfs/2.0"};function sy(e){var t;return t=window.ActiveXObject?e.xml:(new XMLSerializer).serializeToString(e),t}function oy(e,t){var i=document.createElementNS(ay.WFS,"Property"),n=document.createElementNS(ay.WFS,"ValueReference");n.setAttribute("action","remove");var r,a=t.targetReference?"".concat(t.targetReference,"/").concat(t.key):t.key;n.innerHTML=a.replace(/\/gen:value$/,""),i.appendChild(n),e.firstChild.childNodes.forEach((function(e){"Filter"===e.nodeName&&(r=e)})),e.firstChild.insertBefore(i,r)}function ly(e,t,i){var n=document.createElementNS(ay.WFS,"Native");n.setAttribute("vendorId","VCS"),n.setAttribute("safeToIgnore","false");var r=document.createElementNS(ay.VCS,"vcs:InsertComplexProperty");function a(e){var t=document.createElementNS(ay.VCS,"vcs:Property"),i=document.createElementNS(ay.VCS,"vcs:Value");t.appendChild(i);var n=document.createElementNS(Iu.gen,e.key.match(/^(gen:\w+)/g)[0]);n.setAttribute("name",e.name.replace(/^gen:/,"")),i.appendChild(n);var a=document.createElementNS(Iu.gen,"gen:value");if(a.innerHTML=e.type===Yc.DATE?e.value.toISOString().split("T")[0]:e.value,n.appendChild(a),e.targetReference){var s=document.createElementNS(ay.VCS,"vcs:TargetReference");s.innerHTML=e.targetReference,t.appendChild(s)}r.appendChild(t)}r.setAttribute("typeName","".concat(i.featurePrefix,":").concat(i.featureType)),r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:".concat(i.featurePrefix),i.featureNs),n.appendChild(r),t.forEach(a);var s=null;if(e.firstChild.childNodes.forEach((function(e){"Filter"===e.nodeName&&(s=e)})),!s)throw new Error("could not create filter node");r.appendChild(s.cloneNode(!0)),e.appendChild(n)}function cy(e){var t=document.createElementNS(ay.WFS,"GetFeature");t.setAttribute("service","WFS"),t.setAttribute("version","2.0.0"),t.setAttribute("outputFormat","application/json");var i=document.createElementNS(ay.WFS,"StoredQuery");i.setAttribute("id","urn:ogc:def:query:OGC-WFS::GetFeatureById"),t.appendChild(i);var n=document.createElementNS(ay.WFS,"Parameter");return n.setAttribute("name","id"),n.innerHTML=e,i.appendChild(n),t}var uy=xu.filter((function(e){return"storeyHeightsAboveGround"!==e&&"storeyHeightsBelowGround"!==e})),hy=Ch(Du,uy,[]).concat(jh(Pu,uy,[])).concat(Eh(Au,uy,[])),dy={stringAttribute:new eu([]),doubleAttribute:new tu([]),intAttribute:new iu([]),uriAttribute:new nu([]),dateAttribute:new ru([])},my=new Ct({declarativeStyle:{strokeColor:'color("#000000")',color:{conditions:[["${highlighted}===true",'color("rgba(255, 79, 66, 0.8)")'],["${selected}===true",'color("rgba(57, 170, 76, 0.4)")'],["true",'color("rgba(250, 250, 250, 0.2)")']]}}});function fy(e,t,i){return Object.entries(e).filter((function(e){var t=Object(Oe["a"])(e,1),i=t[0];return"type"!==i&&"id"!==i})).map((function(e){var n=Object(Oe["a"])(e,2),r=n[0],a=n[1],s=t?t.allowedProperties.find((function(e){return e.id===r})):null;if(s)return new $g(s.valueReference,a,s.dataType,"".concat(s.prefix,":").concat(s.id));var o=i?i[r]:null;if(o&&dy[o]){var l=dy[o];return new $g(l.valueReference.replace("token",r),a,l.dataType,"gen:".concat(r))}return new $g(r,a)}))}var gy=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.url=e.wfsServiceUrl,e.wfsToken&&(n.url="".concat(n.url,"?token=").concat(e.wfsToken)),n.featureLayer=new _n({projection:e.wfsProjection,name:n.id,altitudeMode:"absolute",style:my}),n.parts=[],n}return Object(m["a"])(i,[{key:"initialize",value:function(){G.getInstance().addLayer(this.featureLayer)}},{key:"activate",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"activate",this).call(this).then((function(){return e.selectedFeatureId&&Pt().hideObjects([e.selectedFeatureId]),e.featureLayer.activate()}))}},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.selectedFeatureId&&Pt().showObjects([this.selectedFeatureId]),this.featureLayer.deactivate()}},{key:"getFeature",value:function(e){var t=cy(e),i=sy(t);return i=i.replace(/__--__/g,":"),q.a.post(this.url,i).then((function(e){var t=e.data;return t}))}},{key:"_handleSurfaces",value:function(e,t,i,n){var r=this,a=[];return e.geometry&&e.geometry.forEach((function(e){var s;if("Solid"===e.type)s=e.boundaries[0];else{if("MultiSurface"!==e.type)return;s=e.boundaries}var o=s.map((function(e){var i=e.map((function(e){return e.map((function(e){return t[e].slice()}))}));return new ol.Feature({geometry:new ol.geom.Polygon(i,"XYZ")})}));if(r.featureLayer.addFeatures(o),e.semantics){var l=e.semantics.surfaces.map((function(e){var t=hy.find((function(t){return t.featureType===e.type}));return new ry({id:e.id||Ug()(),type:e.type,attributes:fy(e,t,n),parentFeatureType:i,featureType:t})})),c=[];"Solid"===e.type?c=e.semantics.values[0]:"MultiSurface"===e.type&&(c=e.semantics.values),c.forEach((function(e,t){if(null!=e){var i=l[e];i.featureIds.push(o[t].getId()),o[t].set("surfaceId",i.id)}})),a=a.concat(l)}})),a}},{key:"_handlePart",value:function(e,t,i,n,r){var a,s,o=hy.find((function(e){return e.featureType===i.type}));e.id=t,e.type=i.type,e.featureType=o,(a=e.attributes).push.apply(a,Object(g["a"])(fy(i.attributes,o,r))),i.parents&&(e.parents=i.parents);var l,c,u=this._handleSurfaces(i,n,o,r);((s=e.parts).push.apply(s,Object(g["a"])(u)),e!==this.root)&&(l=e.featureIds).push.apply(l,Object(g["a"])((c=[]).concat.apply(c,Object(g["a"])(e.parts.map((function(e){return e.featureIds}))))))}},{key:"setFeature",value:function(e){var t=this;if(this.parts.find((function(t){return t.id===e||t.featureIds.includes(e)})))return Promise.resolve();var n=Pt();return this.featureLayer.removeAllFeatures(),this.selectedFeatureId&&n.hiddenObjects[this.selectedFeatureId]&&n.showObjects([this.selectedFeatureId]),ye(Object(fe["a"])(i.prototype),"setFeature",this).call(this,e).then(Object(f["a"])(regeneratorRuntime.mark((function i(){var r,a,s,o,l,c;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!t.selectedFeatureId){i.next=13;break}return t.root.clear(),i.next=4,t.getFeature(e);case 4:r=i.sent,a=r.CityObjects,s=r.vertices,o=r.CityGMLMetadata,n.hideObjects([e]),l={},Object.entries(a).forEach((function(i){var n=Object(Oe["a"])(i,2),r=n[0],a=n[1],c=o?o.genericAttributeTypes:{};if(r===e)t._handlePart(t.root,e,a,s,c),l[t.root.id]=t.root;else{var u=new iy({parentFeatureType:t.root.featureType});t._handlePart(u,r,a,s,c),l[u.id]=u}})),c=l.length?Object.values(l):[],c.length>1&&c.forEach((function(e){e.parents&&e.parents.length&&e.parents.forEach((function(i){var n,r,a=l[i];(a&&(e.parentFeatureType=a.featureType,a.parts.push(e)),a!==t.root)&&(n=a.featureIds).push.apply(n,Object(g["a"])((r=[]).concat.apply(r,Object(g["a"])(a.parts.map((function(e){return e.featureIds}))))))}))}));case 13:case"end":return i.stop()}}),i)}))))}},{key:"update",value:function(){var e=this,t=this.root.featureType,i=this.root.getChangedAttributes();if(0===i.length)return Promise.resolve();var n=new ol.Feature,r={},a=new Set,s=[],o=[],l=i.filter((function(e){if(e.new&&/gen:/.test(e.key))return s.push(e),!1;if(e.deleted)return o.push(e),!1;var t=e.targetReference?"".concat(e.targetReference,"/").concat(e.key):e.key;r[t]=e.type===Yc.DATE?e.value.toISOString().split("T")[0]:e.value;var i=t.match(/[^\/@]([\w\d])+:/g);return i&&i.forEach((function(e){a.add(e.replace(":",""))})),!0}));n.setProperties(r),n.setId(this.selectedFeatureId);var c=(new ol.format.WFS2).writeTransaction([],[n],[],{featureNS:t.featureNs,featurePrefix:t.featurePrefix,featureType:t.featureType,nativeElements:[]});return o.forEach((function(e){a.add("vcs"),a.add("gen"),a.add("gml"),oy(c,e)})),s.length&&(a.add("vcs"),a.add("gen"),a.add("gml"),ly(c,s,t),l.length||o.length||c.removeChild(c.firstChild)),a.delete(t.featurePrefix),a.forEach((function(e){var t=Iu[e];t&&c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:".concat(e),t)})),q.a.post(this.url,sy(c)).then((function(){e.root.updated()}))}},{key:"reset",value:function(){this.root.reset()}},{key:"clear",value:function(){var e=Pt();this.featureLayer.removeAllFeatures(),this.selectedFeatureId&&e.hiddenObjects[this.selectedFeatureId]&&e.showObjects([this.selectedFeatureId]),ye(Object(fe["a"])(i.prototype),"clear",this).call(this)}}]),i}(Qg),yy=gy,py=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.supportedMaps=["vcs.vcm.maps.Cesium"],n.editor=new yy(e),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.AttributeEditor"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.editor.initialize(),this.initialized=!0,this.initializedFinished()}return!0}}]),i}(Ys),vy=py,_y=i(371),by=new Cesium.Cartesian3,Ly=new Cesium.Matrix3,wy=new Cesium.Quaternion,My=new Cesium.Color,ky=[1,1e5],Oy=function(){function e(t){Object(d["a"])(this,e),this._outlinePrimitives=[],this._planesPrimitives=[],this.show="undefined"===typeof t.show||t.show,this._camera=t.camera,this._color=t.color||Cesium.Color.YELLOW,this.allowPicking="undefined"===typeof t.allowPicking||t.allowPicking,this.id=t.id||{}}return Object(m["a"])(e,[{key:"update",value:function(e){if(this.show){var t,i,n=this._planesPrimitives,r=this._outlinePrimitives;if(0===n.length){var a=this._camera,s=a.frustum,o=s.clone(),l=ky;l[0]=this._camera.frustum.near,l[1]=this._camera.frustum.far;var c=a.positionWC,u=a.directionWC,h=a.upWC,d=a.rightWC;d=Cesium.Cartesian3.negate(d,by);var m=Ly;Cesium.Matrix3.setColumn(m,0,d,m),Cesium.Matrix3.setColumn(m,1,h,m),Cesium.Matrix3.setColumn(m,2,u,m);var f=Cesium.Quaternion.fromRotationMatrix(m,wy);n.length=1,r.length=1,o.near=l[0],o.far=l[1],n[0]=new Cesium.Primitive({allowPicking:this.allowPicking,geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.FrustumGeometry({origin:c,orientation:f,frustum:o,_drawNearPlane:!0}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromAlpha(this._color,.1,My))},id:this.id,pickPrimitive:this}),appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,flat:!0}),asynchronous:!1}),r[0]=new Cesium.Primitive({allowPicking:this.allowPicking,geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.FrustumOutlineGeometry({origin:c,orientation:f,frustum:o,_drawNearPlane:!0}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(this._color)},id:this.id,pickPrimitive:this}),appearance:new Cesium.PerInstanceColorAppearance({translucent:!1,flat:!0}),asynchronous:!1})}for(i=n.length,t=0;t<i;++t)r[t].update(e),n[t].update(e)}}},{key:"destroy",value:function(){for(var e=this._planesPrimitives.length,t=0;t<e;++t)this._outlinePrimitives[t]=this._outlinePrimitives[t]&&this._outlinePrimitives[t].destroy(),this._planesPrimitives[t]=this._planesPrimitives[t]&&this._planesPrimitives[t].destroy();return Cesium.destroyObject(this)}}]),e}();Cesium.VcsCameraPrimitve=Oy;var Ty=Oy,Sy=new Cesium.Color,Cy=new Cesium.Matrix4,jy=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.spot=e.spot,n}return Object(m["a"])(i,[{key:"update",value:function(e){if(this.show)if(this.spot)ye(Object(fe["a"])(i.prototype),"update",this).call(this,e);else{var t=this._planesPrimitives,n=this._outlinePrimitives;0===t.length&&(Cesium.Transforms.eastNorthUpToFixedFrame(this._camera.positionWC,null,Cy),t[0]=new Cesium.Primitive({allowPicking:this.allowPicking,geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.SphereGeometry({radius:2}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromAlpha(this._color,.1,Sy))},modelMatrix:Cy}),appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,flat:!0}),asynchronous:!1}),n[0]=new Cesium.Primitive({allowPicking:this.allowPicking,geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.SphereOutlineGeometry({radius:2}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(this._color)},modelMatrix:Cy}),appearance:new Cesium.PerInstanceColorAppearance({translucent:!1,flat:!0}),asynchronous:!1}));for(var r=t.length,a=0;a<r;++a)n[a].update(e),t[a].update(e)}}}]),i}(Ty),Ey=jy,Iy=new Cesium.Cartesian3,Dy=new Cesium.Cartesian3,Py=function(){function e(t,i){Object(d["a"])(this,e),this.active=!1,this._spot=!1,this._position=null,this._heightOffset=1.8,this._showPrimitive=!0,this._viewshedOptions=i,this._cesiumProperties=t;var n=this._cesiumProperties.getShadowCamera();this._fov=n.frustum.fov,this._distance=n.frustum.far,this._hpr=new Cesium.HeadingPitchRoll(n.heading,n.pitch,n.roll),this._updatePrimitiveBounce=null,this._updateBounce=null}return Object(m["a"])(e,[{key:"lookAt",value:function(e){if(this.position){var t=this._cesiumProperties.getShadowCamera();Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2],null,Dy),Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(Dy,t.position,Dy),Dy),t.setView({orientation:{direction:Dy,up:Cesium.Cartesian3.normalize(t.position,Iy)}}),this._hpr.heading=t.heading,this._hpr.pitch=t.pitch,this._hpr.roll=t.roll,this._updatePrimitive()}}},{key:"getCurrentViewpoint",value:function(){if(this.position){var e=this._cesiumProperties.getShadowCamera();return new ke({cameraPosition:[this.position[0],this.position[1],this.position[2]+this._heightOffset],heading:Cesium.Math.toDegrees(e.heading),pitch:Cesium.Math.toDegrees(e.pitch),roll:Cesium.Math.toDegrees(e.roll)})}return null}},{key:"activate",value:function(){this.active=!0,this._update(),this._updatePrimitive()}},{key:"deactivate",value:function(){this.active=!1,this._updatePrimitive(),this._cesiumProperties.setShadowMap(null)}},{key:"destroy",value:function(){this.deactivate(),this._cesiumProperties.destroy(),this.destroyed=!0}},{key:"_update",value:function(){var e=this;this._updateBounce||(this._updateBounce=window.setTimeout((function(){e.active&&e._position&&e._cesiumProperties.setShadowMap({enabled:!0,isPointLight:!e.spot,softShadows:!0,fromLightSource:!0,cascadesEnabled:!e.spot,pointLightRadius:e.distance,maximumDistance:200,size:2048},e._viewshedOptions),e._updateBounce=null}),60))}},{key:"_updatePrimitive",value:function(){var e=this;if(this.active&&this._showPrimitive&&this._position){if(this._updatePrimitiveBounce)return;this._updatePrimitiveBounce=window.setTimeout((function(){e._cesiumProperties.setPrimitive(e.spot),e._updatePrimitiveBounce=null}),60)}else this._cesiumProperties.removePrimitive(),this._updatePrimitiveBounce&&(window.clearTimeout(this._updatePrimitiveBounce),this._updatePrimitiveBounce=null)}},{key:"spot",get:function(){return this._spot},set:function(e){o(e,Boolean),this._spot!==e&&(this._spot=e,this._spot&&this._position&&this.lookAt([this._position[0]+.001,this._position[1],this._position[2]+this._heightOffset]),this._update(),this._updatePrimitive())}},{key:"position",get:function(){return this._position},set:function(e){this._position=e,this._position&&(Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]+this._heightOffset,null,this._cesiumProperties.getShadowCamera().position),this._cesiumProperties.getShadowMap()||this._update(),this._updatePrimitive())}},{key:"headingPitchRoll",get:function(){return this._hpr},set:function(e){this._hpr=e,this._cesiumProperties.getShadowCamera().setView({orientation:this._hpr}),this._updatePrimitive()}},{key:"distance",get:function(){return this._distance},set:function(e){o(e,Number),this._distance=e,this._cesiumProperties.getShadowCamera().frustum.far=e,this._update(),this.spot&&this._updatePrimitive()}},{key:"fov",get:function(){return this._fov},set:function(e){o(e,Number),this._fov=e,this._cesiumProperties.getShadowCamera().frustum.fov=e,this._update(),this._updatePrimitive()}},{key:"heightOffset",get:function(){return this._heightOffset},set:function(e){o(e,Number),this._heightOffset!==e&&(this._heightOffset=e,this.position=this.position)}},{key:"showPrimitive",get:function(){return this._showPrimitive},set:function(e){o(e,Boolean),this._showPrimitive!==e&&(this._showPrimitive=e,this._updatePrimitive())}}]),e}();function Ay(e){var t,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Cesium.Camera(e);r.frustum.fov=Cesium.Math.PI/3,r.frustum.near=1,r.frustum.aspectRatio=1,r.frustum.far=300;var a={getShadowCamera:function(){return r},getShadowMap:function(){return i},setShadowMap:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?(i=new Cesium.ShadowMap(Object(tn["a"])({context:e.context,lightCamera:r},t)),i.viewshed=n,e.shadowMap=i):i&&(i.destroy(),i=null)},setPrimitive:function(i){this.removePrimitive(),t=new Ey({camera:r,allowPicking:!1,spot:i}),e.primitives.add(t)},removePrimitive:function(){t&&(e.primitives.remove(t),t.destroy(),t=null)},destroy:function(){t&&(e.primitives.remove(t),t.destroy(),t=null),i&&(i.destroy(),i=null)}};return new Py(a,n)}var xy,Yy,Ny=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.supportedMaps=["vcs.vcm.maps.Cesium"],n._viewshedOptions={},e.shadowColor&&(n._viewshedOptions.shadowColor=Cesium.Color.fromCssColorString(e.shadowColor)),e.visibleColor&&(n._viewshedOptions.visibleColor=Cesium.Color.fromCssColorString(e.visibleColor)),n._shadowMapCache=null,n.viewshed=null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{shadowColor:"rgba(51, 51, 51, 0.1)",visibleColor:"rgba(255, 153, 0, 0.5)"})}},{key:"className",get:function(){return"vcs.vcm.widgets.viewshed.Viewshed"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;var t=this.framework.getActiveMap().getScene();this.viewshed=Ay(t,this._viewshedOptions)}return!0}},{key:"activate",value:function(){var e=this;if(!this.active){ye(Object(fe["a"])(i.prototype),"activate",this).call(this),this._widgetActivationListener=this.framework.subscribe(O.WIDGET_ACTIVATED,(function(t){"vcs.vcm.widgets.Shadow"===t.className&&e.deactivate()}));var t=this.framework.getActiveMap().getScene();this._shadowMapCache=t.shadowMap,this.viewshed.activate()}}},{key:"deactivate",value:function(){if(this.active){this.framework.unsubscribeByKey(this._widgetActivationListener),ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.viewshed.deactivate();var e=this.framework.getMapByType("vcs.vcm.maps.Cesium").getScene();e.shadowMap=this._shadowMapCache}}},{key:"getLink",value:function(e){if(this.active&&this.viewshed.position){var t={p:this.viewshed.position,hpr:[this.viewshed.headingPitchRoll.heading,this.viewshed.headingPitchRoll.pitch,this.viewshed.headingPitchRoll.roll],f:this.viewshed.fov,d:this.viewshed.distance,h:this.viewshed.heightOffset,s:this.viewshed.spot?1:0,sP:this.viewshed.showPrimitive?1:0};e.addQueryParams({vs:JSON.stringify(t)})}}},{key:"handleURLParameter",value:function(e){ye(Object(fe["a"])(i.prototype),"handleURLParameter",this).call(this,e);var t=e.vs;t&&(this.viewshed.showPrimitive=1===t.sP,this.viewshed.fov=t.f,this.viewshed.distance=t.d,this.viewshed.heightOffset=t.h,this.viewshed.spot=1===t.s,this.viewshed.position=t.p,this.viewshed.headingPitchRoll=Object(_y["a"])(Cesium.HeadingPitchRoll,Object(g["a"])(t.hpr)),this.activate())}},{key:"dispose",value:function(){ye(Object(fe["a"])(i.prototype),"dispose",this).call(this),this.deactivate(),this.viewshed.destroy(),this._shadowMapCache=null}}]),i}(Ys),Fy=Ny;i(662);function Ry(e,t,i){var n=P.getInstance(),r=e.slLayer;if(r===i.name){var a=e.slId?e.slId.toString():Object(u["c"])(),s=null,o=e.slPos;if(o){var l=o.split(",");s={longitude:parseFloat(l[0]),latitude:parseFloat(l[1]),height:parseFloat(l[2])}}if(i instanceof _n){var c=i.getFeatureById(a);s&&c?(c.set("clickedPosition",s),n.setCurrentItem(a,c,i)):s&&(c=new ol.Feature({}),c.setProperties(e.slAt||{}),c.clickedPosition=s,n.setCurrentItem(a,c,i))}else if(s){var h=e.slAt||{},d={attributes:h,clickedPosition:s};n.setCurrentItem(a,d,i)}else n.setCurrentItem(a,null,i);null!=xy&&t.unsubscribeByKey(xy)}}function Hy(e,t){null!=e.slLayer&&(xy=e.slLayer.startsWith("_searchResultVector")?t.subscribe(O.MAP_ACTIVATED,(function(){var i=t.getLayerByName("_searchResultVector");i&&Ry(e,t,i)})):t.subscribe(O.LAYER_ACTIVATED,Ry.bind(null,e,t)))}function Gy(e,t){var i=a["a"].parse(window.location.href).getQueryParams();if(null!=i.startingmap&&(t.startingmap=i.startingmap),null==i.groundPosition&&null==i.cameraPosition||(t.startViewPoint=ke.parseURLparameter(i)),i.verbose&&(k.enabled=i.verbose),Hy(i,t),null!=i.allowSoftwareRendering){var n=e.maps.find((function(e){return"vcs.vcm.maps.Cesium"===e.type}));n&&(n.allowSoftwareRendering=!0)}if(null!=i.layerToActivate){i.layerToActivate=Array.isArray(i.layerToActivate)?i.layerToActivate:[i.layerToActivate];var r=null;i.layerToActivate.forEach((function(e){var i=t.getLayerByName(e);i&&i instanceof Yi&&!r&&(r=i,i.isDefaultObliqueLayer=!0)})),r&&t.getLayers().forEach((function(e){e instanceof Yi&&e!==r&&(e.isDefaultObliqueLayer=!1)}))}return i}function zy(e,t){var i,n,r;if(null!=e.layerToActivate){var a=e.layerToActivate;i=Array.isArray(a)?a:[a];for(var s=0;s<i.length;s++)n=i[s],r=t.getLayerByName(n),!r||r instanceof Yi||r.activate()}if(null!=e.layerToDeactivate){var o=e.layerToDeactivate;i=Array.isArray(o)?o:[o];for(var l=0;l<i.length;l++)n=i[l],r=t.getLayerByName(n),!r||r instanceof Yi||r.deactivate()}(e["reset-token"]||e["verify-token"])&&cl.getInstance().handleURLParameter(e),Object.values(t.widgets).forEach((function(t){return t.handleURLParameter(e)})),Object.values(t.maps).forEach((function(t){return t.handleURLParameter(e)})),Object.values(t.layers).forEach((function(t){return t.handleURLParameter(e)})),C.getInstance().handleURLParameter(e),Ce.getInstance().handleURLParameter(e)}function By(e,t){function i(e,t){Object.keys(t).forEach((function(n){var r=t[n];"object"!==Object(s["a"])(r)||Array.isArray(r)||"object"!==Object(s["a"])(e[n])?e[n]=r:i(e[n],r)}))}"object"===Object(s["a"])(e)&&("object"===Object(s["a"])(e.ui)&&i(t.config,{ui:e.ui}),Object.keys(e).filter((function(e){return/^ui_/.test(e)})).forEach((function(n){var r={},a=e[n],s=n.split("_");s.reverse().forEach((function(e,t){var i={};i[e]=t?r:a,r=i})),i(t.config,r)})))}O.FRAMEWORK_INITIALIZED="FRAMEWORK_INITIALIZED";var Vy=(Yy={},Object(U["a"])(Yy,Ut.className,Ut),Object(U["a"])(Yy,Vi.className,Vi),Object(U["a"])(Yy,Fi.className,Fi),Yy),Uy=k.getLogger();function Wy(e){return/maps/.test(e)?Vy[e]:/layer/.test(e)?Object.values(n).find((function(t){return t.className===e})):/widgets/.test(e)?Object.values(r).find((function(t){return t.className===e})):null}function qy(e){if(!e.type)return Uy.warning("ObjectCreation failed: could not find type in options ".concat(e)),null;var t=Wy(e.type);if(!t)return Uy.warning("ObjectCreation failed: could not find javascript class of type ".concat(e.type)),null;var i=null;try{i=new t(e)}catch(n){Uy.warning("Error: ".concat(n)),i=null}return i||(Uy.warning("ObjectCreation failed: could not create new Object"),null)}function Jy(e){var t=G.getInstance(),i=qy(e);i&&i instanceof Ht?(i[G.configContentSymbol]=!0,t.addLayer(i)&&Uy.info("Loaded layer of type :".concat(e.type," with name: ").concat(e.name))):Uy.warning("Could not load Layer")}function Ky(e){var t=G.getInstance(),i=qy(e);i&&i instanceof Le?t.addMap(i)&&Uy.info("Loaded map of type :".concat(e.type," with name: ").concat(e.name)):Uy.warning("Could not load map")}function Zy(e){var t=G.getInstance();if(/Oblique\w+Measurement$/.test(e.type)){Uy.warning("Widget of type ".concat(e.type," is deprecated. Use ").concat(Af.className," or ").concat(Yf.className," instead"));var i="vcs.vcm.widgets.ObliqueHeightMeasurement"===e.type?ya.OBLIQUE_HEIGHT:ya.OBLIQUE_DISTANCE,n=t.getWidgetByType(Af.className);if(n||(n=t.getWidgetByType(Yf.className)),n)return void(n.allowedMeasurements.includes(i)||n.allowedMeasurements.push(i));e.type=Yf.className,e.allowedMeasurements=[i]}var r=qy(e);r&&r instanceof Ys?t.addWidget(r)&&(Uy.info("Loaded widget of type :".concat(e.type," with name: ").concat(e.name)),r.initialize()):Uy.warning("Could not load widget")}function Qy(e){if(e.name||e.id){var t;if(e.type===Pe.DECLARATIVE||e.declarativeStyle){if(t=new Ct(e),!t.cesiumStyle.ready)return void Uy.warning("declarative style: ".concat(e.name," has errors in the declarative style section and cannot be used"))}else t=new dt(e);t?(t[G.configContentSymbol]=!0,G.getInstance().addStyle(t),Uy.info("added ".concat(t.className," with name ").concat(t.name))):Uy.warning("could not create style item: ".concat(e.name))}else Uy.warning("styles need a name. please reconfigure the styles section.")}var Xy=["vcs.vcm.widgets.legend.Legend","vcs.vcm.widgets.BalloonInfo","vcs.vcm.widgets.Measurement","vcs.vcm.widgets.SingleMeasurement","vcs.vcm.widgets.Planning"];function $y(e,t){var i=t.selectBehavior||null;P.getInstance(i),i=i||{};var n=i.excludedPickPositionEvents;n&&(n=Array.isArray(n)?n:[n]),i.excludedPickPositionEvents=n?n.map((function(e){var t=Object.keys(re).find((function(t){return t===e}));return t?re[t]:null})).filter((function(e){return e})).reduce((function(e,t){return e|t}),0):0,e.isIE11&&(i.pickTranslucent=i.pickTranslucent||!1,i.excludedPickPositionEvents=i.excludedPickPositionEvents||re.MOVE|re.DRAG),i.excludedPickPositionEvents&&(xn().featureInteraction.excludedPickPositionEvents=i.excludedPickPositionEvents),null!=i.pickTranslucent&&(xn().featureInteraction.pickTranslucent=i.pickTranslucent)}function ep(e){var t=G.getInstance();if(e.logLevel&&(k.enabled=e.logLevel),N.projection=new X(e.projection),t.mapcontainer=document.getElementById(e.mapcontainer),t.mapcontainer){for(var i in t.addElementsToMapContainer(),Array.isArray(e.styles)&&e.styles.forEach(Qy),Array.isArray(e.flights)&&e.flights.forEach((function(e){t.addFlight(new bl(e))})),e.style&&(Uy.deprecate("style","use styles instead."),Array.isArray(e.style)&&e.style.forEach(Qy)),e.layers){var n=e.layers[i];Jy(n)}for(var r in e.viewpoints){var a=e.viewpoints[r];t.addViewPoint(new ke(a))}e.startViewPoint&&(t.startViewPoint=t.getViewPointByName(e.startViewPoint)),t.libraryBasePath=e.libraryBasePath||"",t.baseUrl=e.baseUrl||"",e.availableLocales=e.availableLocales||["de","en"],t.config=e,C.getInstance().initialize(e),t.handleUiPlugins(e.ui),$y(t,e);var s=Gy(e,t);Array.isArray(e.maps)||(Uy.deprecate(".maps Object","Write an array, consistent with the other config keys (layers, widgets etc.)"),e.maps=Object.values(e.maps)),e.maps.forEach((function(e){Ky(e)}));var o=t.getMapByName(t.startingmap);if(!o)for(var l in t.maps)t.maps[l].options.startingmap&&(o=t.maps[l]);var c=Promise.resolve();o&&(c=t.activateMap(o.name,t.startViewPoint));var u=e.widgets?e.widgets.sort((function(e,t){var i=Xy,n=i.indexOf(e.type),r=i.indexOf(t.type);return n=n>-1?n:i.length+1,r=r>-1?r:i.length+1,n-r})):[];u.forEach(Zy),By(s,t),c.then((function(){zy(s,t)}));var h=document.getElementById("vcs_loading");h&&h.parentNode.removeChild(h),xn(),t.publish(O.FRAMEWORK_INITIALIZED),t.setInitialized(!0)}else alert("Could not find Container Element with id ".concat(e.mapcontainer))}function tp(e){var t=G.getInstance();t.getLogger().info("Sending request to load JSON config file [".concat(e,"]")),q.a.get(e).then((function(e){ep(e.data)})).catch((function(e){Uy.log(e)}))}function ip(){An.destroy(),P.dispose(),G.getInstance().dispose()}var np=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.commonLayer=e.commonLayer,n.active=!1,n.initialized=!1,n}return Object(m["a"])(i,[{key:"isActive",value:function(){return this.logger.deprecate("isActive","access the active property instead."),this.active}},{key:"initialize",value:function(){return Promise.reject(new Error("implementation error"))}},{key:"dispose",value:function(){this.initialized=!1}},{key:"show",value:function(){this.active=!0}},{key:"hide",value:function(){this.active=!1}},{key:"isInitialized",value:function(){return this.logger.deprecate("isInitialized","access the initialized property"),this.initialized}},{key:"mapActivated",value:function(e){return Promise.resolve()}},{key:"mapDeactivated",value:function(e){return Promise.resolve()}},{key:"updateStyle",value:function(e){}}]),i}(ve),rp=np,ap=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=e.className?e.className:i.className,n=t.call(this,e),n._removePostRenderHandler=function(){},n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.VectorLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){this.olLayer=new ol.layer.Vector({renderOrder:null,visible:!1,source:this.commonLayer.getSource(),style:this.commonLayer.style.style,name:this.commonLayer.name,zIndex:this.commonLayer.zIndex,olcs_altitudeMode:this.commonLayer.altitudeMode,olcs_storeyHeight:this.commonLayer.storeyHeight,olcs_skirt:this.commonLayer.skirt,olcs_heightAboveGround:this.commonLayer.heightAboveGround,olcs_scaleByDistance:this.commonLayer.scaleByDistance,olcs_zCoordinateEyeOffset:this.commonLayer.zCoordinateEyeOffset,olcs_classificationType:this.commonLayer.classificationType,layerName:this.commonLayer.name});var e=this.commonLayer,t=e.minResolution,i=e.maxResolution;t&&this.olLayer.setMinResolution(t),i&&this.olLayer.setMaxResolution(i),this.initialized=!0}return Promise.resolve()}},{key:"createSynchronization",value:function(e){if(this.commonLayer.visibility&&!this.alreadySynchronized&&e.initialized){var t=e.getSynchronizer(this);this.counterPart=t.createSingleLayerCounterparts(this.olLayer)[0],t.addCesiumObject(this.counterPart),this.alreadySynchronized=!0}}},{key:"mapActivated",value:function(e){return e instanceof Ut&&this.active&&!this.alreadySynchronized&&this.createSynchronization(e),Promise.resolve()}},{key:"mapDeactivated",value:function(e){if(e instanceof Ut&&this.counterPart&&this.commonLayer.isDynamic){var t=e.getSynchronizer(this);t.destroySingleLayerCounterparts(this.counterPart),this.alreadySynchronized=!1}return Promise.resolve()}},{key:"show",value:function(){if(!this.active){ye(Object(fe["a"])(i.prototype),"show",this).call(this);var e=this.framework.getActiveMap();this.createSynchronization(e);var t=this.commonLayer.visibility;this.olLayer.setVisible(t),e.initialized&&(this._removePostRenderHandler(),this._removePostRenderHandler=e.getScene().postRender.addEventListener(this.commonLayer.postRenderStyling.bind(this.commonLayer)))}}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this.olLayer.setVisible(!1),this._removePostRenderHandler(),this.commonLayer.FVlastUpdated=0)}},{key:"updateStyle",value:function(e){if(this.initialized){if(this.olLayer.setStyle(this.commonLayer.style.style),e)return;var t=this.olLayer.getSource().getFeatures();t.forEach((function(e){e.changed()}))}}},{key:"setVisibility",value:function(e){this.initialized&&this.olLayer.setVisible(e)}}]),i}(rp);Le.registerSpecificLayerImpl(Ut.className,_n.className,ap),Le.registerSpecificLayerImpl(Ut.className,Ps.className,ap);var sp=ap,op=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.AsyncVectorImplementation"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){return e.commonLayer.fetchData()}))}}]),i}(sp);Le.registerSpecificLayerImpl(Ut.className,ys.className,op),Le.registerSpecificLayerImpl(Ut.className,rs.className,op);var lp=op,cp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i);var r=e.commonLayer.cesiumTilesetLayerOptions,a={className:i.className,name:e.commonLayer.name};return n=t.call(this,Object.assign({},a,r)),n.commonLayer=e.commonLayer,n._style=n.commonLayer.style,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.CesiumTilesetLayerImpl"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e.cesium3DTileset[Ht.vcsLayerNameSymbol]=e.commonLayer.name,e.cesium3DTileset[ar]=!0}))}},{key:"show",value:function(){this.active||(ye(Object(fe["a"])(i.prototype),"show",this).call(this),this._state=Yt.ACTIVE)}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this._state=Yt.INACTIVE)}},{key:"mapActivated",value:function(e){return Promise.resolve()}},{key:"mapDeactivated",value:function(e){return Promise.resolve()}},{key:"updateStyle",value:function(e){this.setStyle(this.commonLayer.style,e)}},{key:"determineHighlightStyle",value:function(){return this.commonLayer.highlightStyle?this.commonLayer.highlightStyle:P.getInstance()._currentItemHighlightColor}},{key:"objectClickedHandler",value:function(e,t,n){return!!this.commonLayer.allowPicking&&ye(Object(fe["a"])(i.prototype),"objectClickedHandler",this).call(this,e,t,n||this.commonLayer)}},{key:"getGenericFeatureFromClickedObject",value:function(e){var t=ye(Object(fe["a"])(i.prototype),"getGenericFeatureFromClickedObject",this).call(this,e);return t.layerName=this.commonLayer.name,t.layerClass=this.commonLayer.className,t}}]),i}(Ba);Le.registerSpecificLayerImpl(Ut.className,or.className,cp);var up=cp,hp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.commonLayer=n.commonLayer,n.cesiumLayer=null,n}return Object(m["a"])(i,[{key:"updateSplitDirection",value:function(){this.initialized&&(this.cesiumLayer.splitDirection=this.commonLayer.splitDirection)}},{key:"show",value:function(){if(!this.active){var e=this.framework.getActiveMap();if(e&&e instanceof Ut&&e.initialized&&this.cesiumLayer){ye(Object(fe["a"])(i.prototype),"show",this).call(this);var t=e.getScene(),n=t.imageryLayers;if(!n.contains(this.cesiumLayer)){var r=this.commonLayer.index;this.cesiumLayer.VCMLayerIndex=r;for(var a=n.length,s=0;s<n.length;s++){var o=n.get(s),l=o.VCMLayerIndex;if(r<l){a=s;break}}e.getScene().imageryLayers.add(this.cesiumLayer,a)}this.cesiumLayer.show=!0}}}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this.cesiumLayer&&(this.cesiumLayer.show=!1))}},{key:"dispose",value:function(){var e=this.framework.getMapByType("vcs.vcm.maps.Cesium");e&&e instanceof Ut&&e.initialized&&e.getScene().imageryLayers.contains(this.cesiumLayer)&&e.getScene().imageryLayers.remove(this.cesiumLayer,!0),this.cesiumLayer=null,this.initialized=!1,this.active=!1}},{key:"updateOpacity",value:function(){this.initialized&&this.cesiumLayer&&(this.cesiumLayer.alpha=this.commonLayer.opacity)}}]),i}(rp),dp=hp,mp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.OpenStreetMapLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){this.cesiumImageryProvider=new Cesium.OpenStreetMapImageryProvider({maximumLevel:19});var e={alpha:this.commonLayer.opacity,splitDirection:this.commonLayer.splitDirection};this.cesiumLayer=new Cesium.ImageryLayer(this.cesiumImageryProvider,e),this.initialized=!0}return Promise.resolve()}}]),i}(dp);Le.registerSpecificLayerImpl(Ut.className,us.className,mp);var fp=mp,gp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n.currentExtent=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.singleImageLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){return this.initialized||this.updateLayer(),Promise.resolve()}},{key:"mapActivated",value:function(e){var t=this;return ye(Object(fe["a"])(i.prototype),"mapActivated",this).call(this,e).then((function(){t.currentExtent&&!t.currentExtent.every((function(e,i){return t.commonLayer.imageExtent[i]===e}))&&t.updateLayer()}))}},{key:"updateLayer",value:function(){var e=this.active;this.initialized&&this.dispose();var t={url:this.commonLayer.url,credit:this.commonLayer.credit},i=this.commonLayer.imageExtent;i&&(this.currentExtent=i.slice(),t.rectangle=Cesium.Rectangle.fromDegrees(i[0],i[1],i[2],i[3]));var n=new Cesium.SingleTileImageryProvider(t),r={rectangle:t.rectangle,alpha:this.commonLayer.opacity,defaultAlpha:1,splitDirection:this.commonLayer.splitDirection};this.cesiumLayer=new Cesium.ImageryLayer(n,r),this.initialized=!0,e&&this.show()}}]),i}(dp);Le.registerSpecificLayerImpl(Ut.className,ls.className,gp);var yp=gp,pp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.TMSBaseLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e={url:this.commonLayer.url,fileExtension:this.commonLayer.format,maximumLevel:this.commonLayer.maxLevel,minimumLevel:this.commonLayer.minLevel,show:!1};if(this.commonLayer.extent.isValid()){var t=this.commonLayer.extent.getCoordinatesInProjection($);e.rectangle=Cesium.Rectangle.fromDegrees(t[0],t[1],t[2],t[3])}"geographic"===this.commonLayer.tilingSchema&&(e.tilingScheme=new Cesium.GeographicTilingScheme);var i=new Cesium.TileMapServiceImageryProvider(e),n={alpha:this.commonLayer.opacity,splitDirection:this.commonLayer.splitDirection};this.cesiumLayer=new Cesium.ImageryLayer(i,n),this.initialized=!0}return Promise.resolve()}},{key:"setOpacity",value:function(e){this.cesiumLayer.alpha=e}}]),i}(dp);Le.registerSpecificLayerImpl(Ut.className,ds.className,pp);var vp=pp,_p=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.VectorClusterLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e.olLayer&&e.olLayer.set("olcs_zCoordinateEyeOffset",e.commonLayer.zCoordinateEyeOffset)}))}},{key:"createSynchronization",value:function(e){if(!this.alreadySynchronized&&e.initialized){var t=e.clusterSynchronizer,i=t.createSingleLayerCounterparts(this.olLayer)[0];this.clusterDataSource=i.getDataSource(),this.clusterDataSource.clustering.clusterLabels=!1,this.clusterDataSource.clustering.clusterPoints=!1,e.getClusterDatasources().add(this.clusterDataSource);var n=e.clusterConverter;n.setLayerStyle(this.olLayer,this.commonLayer.cesiumStyleFunction.bind(this.commonLayer)),this.alreadySynchronized=!0}}}]),i}(sp);Le.registerSpecificLayerImpl(Ut.className,fs.className,_p);var bp=_p,Lp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.WMSLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){return this.initialized||(this.commonLayer.setCommonSource(),this.updateLayer()),Promise.resolve()}},{key:"show",value:function(){this.active||(ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.commonLayer.featureInfo&&this.commonLayer.activateFeatureInfo(!0))}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this.commonLayer.featureInfo&&this.commonLayer.activateFeatureInfo(!1))}},{key:"updateLayer",value:function(){var e=this.active;this.initialized&&this.dispose();var t=Object(tn["a"])({},this.commonLayer.parameters);this.commonLayer.highResolution&&(t.width=2*this.commonLayer.tileSize[0],t.height=2*this.commonLayer.tileSize[1]);var i={url:this.commonLayer.url,layers:this.commonLayer.layers.join(","),minimumLevel:this.commonLayer.minLevel,maximumLevel:this.commonLayer.maxLevel,show:!1,parameters:t,tileWidth:this.commonLayer.tileSize[0],tileHeight:this.commonLayer.tileSize[1]};if(this.commonLayer.extent&&this.commonLayer.extent.isValid()){var n=this.commonLayer.extent.getCoordinatesInProjection($);n&&(i.rectangle=Cesium.Rectangle.fromDegrees(n[0],n[1],n[2],n[3]))}"mercator"===this.commonLayer.tilingSchema&&(i.tilingScheme=new Cesium.WebMercatorTilingScheme);var r=new Cesium.WebMapServiceImageryProvider(i),a={alpha:this.commonLayer.opacity,splitDirection:this.commonLayer.splitDirection};this.cesiumLayer=new Cesium.ImageryLayer(r,a),this.initialized=!0,e&&this.show()}}]),i}(dp);Le.registerSpecificLayerImpl(Ut.className,_s.className,Lp);var wp=Lp,Mp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.WMTSLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=this.commonLayer.url;e=-1!==e.indexOf("{Layer}")?e.replace("{Layer}",this.commonLayer.layer):e;var t=this.commonLayer.extent.getCoordinatesInProjection($),i={url:e,layer:this.commonLayer.layer,style:this.commonLayer.wmtsStyle,format:this.commonLayer.format,tileMatrixSetID:this.commonLayer.tileMatrixSetID,maximumLevel:this.commonLayer.maxLevel,rectangle:Cesium.Rectangle.fromDegrees(t[0],t[1],t[2],t[3]),tileWidth:this.commonLayer.tileSize[0],tileHeight:this.commonLayer.tileSize[1]},n={};if((this.commonLayer.numberOfLevelZeroTilesX>1||this.commonLayer.numberOfLevelZeroTilesY>1)&&(n.numberOfLevelZeroTilesX=this.commonLayer.numberOfLevelZeroTilesX,n.numberOfLevelZeroTilesY=this.commonLayer.numberOfLevelZeroTilesY),"geographic"===this.commonLayer.tilingSchema?i.tilingScheme=new Cesium.GeographicTilingScheme(n):i.tilingScheme=new Cesium.WebMercatorTilingScheme(n),this.commonLayer.matrixIds)this.commonLayer.matrixIds.length===this.commonLayer.maxLevel+1?i.tileMatrixLabels=this.commonLayer.matrixIds:this.logger.info("matrixIDs must have the same length as maxZoom");else if(""!==this.commonLayer.tileMatrixPrefix){for(var r=[],a=0;a<this.commonLayer.maxLevel+1;a++)r[a]=String(this.commonLayer.tileMatrixPrefix)+String(a);i.tileMatrixLabels=r}var s=new Cesium.WebMapTileServiceImageryProvider(i),o={alpha:this.commonLayer.opacity,splitDirection:this.commonLayer.splitDirection};this.cesiumLayer=new Cesium.ImageryLayer(s,o),this.initialized=!0}return Promise.resolve()}}]),i}(dp);Le.registerSpecificLayerImpl(Ut.className,Ls.className,Mp);var kp=Mp,Op=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Wsv"}}]),i}(sp);Le.registerSpecificLayerImpl(Ut.className,Ts.className,Op);var Tp=Op;function Sp(e,t){for(var i=null,n=!1,r=e.getArray(),a=r.length,s=0;s<a;s++){var o=r[s];if(o===t){n=!0;break}var l=o.VCMLayerIndex;t.VCMLayerIndex<l&&null===i&&(i=s)}n||(null===i&&(i=a),e.insertAt(i,t))}var Cp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.olLayer=null,n}return Object(m["a"])(i,[{key:"initialize",value:function(){return this.initialized||(this.olLayer=this.getOLLayer(),this.initialized=!0),Promise.resolve()}},{key:"show",value:function(){if(!this.active){ye(Object(fe["a"])(i.prototype),"show",this).call(this);var e=this.framework.getActiveMap(),t=e.olMap.getLayers();this.olLayer.VCMLayerIndex=this.commonLayer.index,Sp(t,this.olLayer);var n=null==this.commonLayer.visibility||this.commonLayer.visibility;this.olLayer.setVisible(n)}}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this.olLayer.setVisible(!1))}},{key:"dispose",value:function(){if(this.olLayer){var e=this.framework.getMapByType("vcs.vcm.maps.Openlayers");e.olMap.removeLayer(this.olLayer)}this.olLayer=null,this.initialized=!1,this.active=!1}},{key:"getOLLayer",value:function(){throw new Error}}]),i}(rp),jp=Cp,Ep=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=e.className?e.className:i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n.obliqueSource=new ol.source.Vector({}),n.featureListeners={},n.frameworkListeners=[],n.sourceListener=[],n.currentExtent=null,n.fetchedFeaturesForImageName=null,n._postComposeListener=null,n.FVlastUpdated=0,n.featureVisibility=n.commonLayer.featureVisibility,n.globalHider=n.commonLayer.globalHider,n.visibility=n.commonLayer.visibility,n.synchronizeEvent=new Cesium.Event,n._synchronizing=!1,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.oblique.VectorLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.initializedPromise||(this.obliqueMap=this.framework.getActiveMap(),this.initializedPromise=this.obliqueMap.initializedPromise.then((function(){if(e.obliqueMap.initialized){e.olMap=e.obliqueMap.olMap,e.olLayer=new ol.layer.Vector({renderOrder:null,visible:!1,source:e.obliqueSource,style:e.commonLayer.style.style,name:e.commonLayer.name,zIndex:e.commonLayer.zIndex,layerName:e.commonLayer.name});var t=e.commonLayer,i=t.minResolution,n=t.maxResolution;i&&e.olLayer.setMinResolution(i),n&&e.olLayer.setMaxResolution(n),e.initialized=!0}return Promise.resolve()}))),this.initializedPromise}},{key:"updateStyle",value:function(){this.initialized&&this.olLayer.setStyle(this.commonLayer.style.style)}},{key:"getFeatureById",value:function(e){return this.obliqueSource.getFeatureById("".concat(e,"_OBLIQUE"))}},{key:"show",value:function(){this.initialized&&!this.active&&(ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.olLayer.VCMLayerIndex=this.commonLayer.index,Sp(this.olMap.getLayers(),this.olLayer),this.olLayer.setVisible(this.commonLayer.visibility),null===this._postComposeListener&&(this._postComposeListener=this.olMap.on("postcompose",this.commonLayer.postRenderStyling.bind(this))),this.fetchFeaturesInView())}},{key:"setVisibility",value:function(e){this.initialized&&this.olLayer.setVisible(e),this.visibility=e}},{key:"addFeature",value:function(e){var t=this;if(this.active||(this.fetchedFeaturesForImageName=null),this.active&&this.currentExtent&&this.framework.getActiveMap()instanceof Fi){if(e[_n.doNotTransform]&&!e.getGeometry()[_n.alreadyTransformedToImage])return Promise.resolve();if(!e.getGeometry()[_n.alreadyTransformedToImage]&&!e.getGeometry().intersectsExtent(this.currentExtent))return Promise.resolve();var n="".concat(e.getId(),"_OBLIQUE");if(this.obliqueSource.getFeatureById(n))return Promise.resolve();var r=new ol.Feature({});return r.setId(n),r[_n.originalFeatureSymbol]=e,i.setNewGeometry(e,r),r.setStyle(e.getStyle()),this._setFeatureListeners(e,r),this.updateGeometry(e,r).then((function(){t.obliqueSource.addFeature(r)}))}return Promise.resolve()}},{key:"_setFeatureListeners",value:function(e,t){var n=this;this.featureListeners[t.getId()]=new Array(3),this.featureListeners[t.getId()][0]=e.on("change:geometry",(function(){ol.Observable.unByKey(n.featureListeners[t.getId()][2]),i.setNewGeometry(e,t),n.updateGeometry(e,t),n.featureListeners[t.getId()][2]=e.getGeometry().on("change",n.updateGeometry.bind(n,e,t))})),this.featureListeners[t.getId()][1]=e.on("change",(function(){t.setStyle(e.getStyle())})),this.featureListeners[t.getId()][2]=e.getGeometry().on("change",this.updateGeometry.bind(this,e,t))}},{key:"updateGeometry",value:function(e,t){var i=this,n=e.getGeometry();if(!n[_n.alreadyTransformedToImage]){var r=t.getGeometry();return Li(n,r,this.obliqueMap.activeLayer.currentImage).then((function(){delete r[_n.imageGeometryChanged],i.featureListeners[t.getId()].push(r.once("change",(function(){r[_n.imageGeometryChanged]=!0})))}))}return t.getGeometry().setCoordinates(e.getGeometry().getCoordinates()),t.getGeometry()[_n.imageGeometryChanged]=!0,Promise.resolve()}},{key:"synchronizeGeometriesAndClearSource",value:function(){var e=this;return this._synchronizing=!0,this.synchronizeEvent.raiseEvent(this._synchronizing),Object.keys(this.featureListeners).forEach((function(t){ol.Observable.unByKey(e.featureListeners[t]),delete e.featureListeners[t]})),this.synchronizeGeometries(!1).then((function(){e.obliqueSource.clear(!0),e.fetchedFeaturesForImageName=null,e._synchronizing=!1,e.synchronizeEvent.raiseEvent(e._synchronizing),e.FVlastUpdated=0}))}},{key:"synchronizeGeometries",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=[];return this.obliqueSource.forEachFeature((function(r){var a=r[_n.originalFeatureSymbol];if(!a[_n.doNotTransform]&&r.getGeometry()[_n.imageGeometryChanged]){e.featureListeners[r.getId()]&&(ol.Observable.unByKey(e.featureListeners[r.getId()]),delete e.featureListeners[r.getId()]);var s=r.getGeometry()instanceof ol.geom.Circle,o=Mi(a),l=Mi(r);n.push(wi(l,o,e.obliqueMap.activeLayer.obliqueCollection.getImageByName(e.fetchedFeaturesForImageName)).then((function(){return delete o[_n.alreadyTransformedToImage],delete l[_n.imageGeometryChanged],t&&(s&&i.setNewGeometry(a,r),e._setFeatureListeners(a,r)),Promise.resolve()})))}})),Promise.all(n)}},{key:"fetchFeaturesInView",value:function(){var e=this;return new Promise((function(t){e.active&&e.fetchedFeaturesForImageName!==e.obliqueMap.getCurrentImage().name&&(e.currentExtent=e.obliqueMap.getExtentOfCurrentImage().getCoordinatesInProjection(ee),e.commonLayer.source.forEachFeatureInExtent(e.currentExtent,(function(t){e.addFeature(t)})),e.commonLayer.source.forEachFeature((function(t){t.getGeometry()[_n.alreadyTransformedToImage]&&e.addFeature(t)})),e.fetchedFeaturesForImageName=e.obliqueMap.getCurrentImage().name),t()}))}},{key:"removeFeature",value:function(e){var t=this.obliqueSource.getFeatureById("".concat(e.getId(),"_OBLIQUE"));if(t){var i=t.getId(),n=this.featureListeners[i];n&&(ol.Observable.unByKey(n),delete this.featureListeners[i]),this.obliqueSource.removeFeature(t)}}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this.olMap.removeLayer(this.olLayer),null!=this._postComposeListener&&(ol.Observable.unByKey(this._postComposeListener),this._postComposeListener=null),this.FVlastUpdated=0)}},{key:"dispose",value:function(){if(this.olLayer){var e=this.framework.getMapByType("vcs.vcm.maps.Oblique");e.olMap.removeLayer(this.olLayer)}this.olLayer=null,this.initialized=!1,this.active=!1,ol.Observable.unByKey(this.sourceListener),this.sourceListener=[],this.frameworkListeners.forEach(this.framework.unsubscribeByKey,this.framework),this.frameworkListeners=[],this.obliqueSource.clear(!0)}},{key:"mapActivated",value:function(e){var t=this;return this.sourceListener.push(this.commonLayer.source.on("addfeature",(function(e){t.addFeature(e.feature)}))),this.sourceListener.push(this.commonLayer.source.on("removefeature",(function(e){t.removeFeature(e.feature)}))),this.sourceListener.push(this.commonLayer.source.on("changefeature",(function(e){var i="".concat(e.feature.getId(),"_OBLIQUE");t.featureListeners[i]||t.addFeature(e.feature)}))),this.frameworkListeners.push(this.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,(function(){t.synchronizeGeometriesAndClearSource().then((function(){t.fetchFeaturesInView()}))}))),this.fetchFeaturesInView()}},{key:"mapDeactivated",value:function(e){return ol.Observable.unByKey(this.sourceListener),this.sourceListener=[],this.frameworkListeners.forEach(this.framework.unsubscribeByKey,this.framework),this.frameworkListeners=[],this.synchronizeGeometriesAndClearSource()}},{key:"synchronizing",get:function(){return this._synchronizing}}],[{key:"setNewGeometry",value:function(e,t){var i=e.getGeometry().clone();t.setGeometry(e.getGeometry()[_n.alreadyTransformedToImage]?i:pi(i)),e.getGeometry()[_n.alreadyTransformedToImage]&&t.getGeometry().setProperties(e.getGeometry().getProperties(),!1),e[_n.obliqueGeometry]=t.getGeometry()}}]),i}(rp);Le.registerSpecificLayerImpl(Fi.className,_n.className,Ep),Le.registerSpecificLayerImpl(Fi.className,Ps.className,Ep);var Ip=Ep,Dp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.oblique.AsyncVectorImplementation"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then(this.commonLayer.fetchData.bind(this.commonLayer))}}]),i}(Ip);Le.registerSpecificLayerImpl(Fi.className,ys.className,Dp),Le.registerSpecificLayerImpl(Fi.className,rs.className,Dp),Le.registerSpecificLayerImpl(Fi.className,Ts.className,Dp);var Pp=Dp,Ap=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.clusterSource=new ol.source.Cluster({source:n.obliqueSource}),n}return Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e.clusterSource.setDistance(e.commonLayer.clusterSource.getDistance()),e.olLayer.setSource(e.clusterSource)}))}},{key:"show",value:function(){this.initialized&&!this.active&&(null===this._postComposeListener&&(this._postComposeListener=this.olMap.on("postcompose",this.commonLayer.postRenderStyling.bind(this.commonLayer))),ye(Object(fe["a"])(i.prototype),"show",this).call(this))}},{key:"mapActivated",value:function(e){var t=this,i=function(){t.synchronizeGeometriesAndClearSource().then((function(){t.fetchFeaturesInView()}))};return this.sourceListener.push(this.commonLayer.source.on("change",i)),this.frameworkListeners.push(this.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,i)),this.fetchFeaturesInView()}}]),i}(Ip);Le.registerSpecificLayerImpl(Fi.className,fs.className,Ap);var xp=Ap,Yp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=e.className?e.className:i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n._postComposeListener=null,n.olLayer=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.VectorLayer"}}]),Object(m["a"])(i,[{key:"updateStyle",value:function(){this.initialized&&this.olLayer.setStyle(this.commonLayer.style.style)}},{key:"getOLLayer",value:function(){var e=new ol.layer.Vector({renderOrder:null,visible:!1,source:this.commonLayer.getSource(),style:this.commonLayer.style.style,zIndex:this.commonLayer.zIndex,name:this.commonLayer.name}),t=this.commonLayer.maxResolution,i=this.commonLayer.minResolution;return t&&e.setMinResolution(t),i&&e.setMaxResolution(i),e}},{key:"show",value:function(){if(!this.active){ye(Object(fe["a"])(i.prototype),"show",this).call(this);var e=this.framework.getActiveMap();null===this._postComposeListener&&(this._postComposeListener=e.olMap.on("postcompose",this.commonLayer.postRenderStyling.bind(this.commonLayer)))}}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),null!=this._postComposeListener&&(ol.Observable.unByKey(this._postComposeListener),this._postComposeListener=null),this.commonLayer.FVlastUpdated=0)}},{key:"setVisibility",value:function(e){this.initialized&&this.olLayer.setVisible(e)}}]),i}(jp);Le.registerSpecificLayerImpl(Vi.className,_n.className,Yp),Le.registerSpecificLayerImpl(Vi.className,Ts.className,Yp),Le.registerSpecificLayerImpl(Vi.className,Ps.className,Yp);var Np=Yp,Fp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.commonLayer.fetchData().then((function(){return ye(Object(fe["a"])(i.prototype),"initialize",e).call(e)}))}}]),i}(Np);Le.registerSpecificLayerImpl(Vi.className,ys.className,Fp),Le.registerSpecificLayerImpl(Vi.className,rs.className,Fp),Le.registerSpecificLayerImpl(Vi.className,or.className,Fp);var Rp=Fp,Hp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e.updateSplitDirection()}))}},{key:"updateOpacity",value:function(){this.initialized&&this.olLayer.setOpacity(this.commonLayer.opacity)}},{key:"updateSplitDirection",value:function(){if(this.initialized){var e=this.commonLayer.splitDirection;e===Cesium.ImagerySplitDirection.NONE&&this._splitDirectionListeners?(ol.Observable.unByKey(this._splitDirectionListeners),this._splitDirectionListeners=null):e===Cesium.ImagerySplitDirection.NONE||this._splitDirectionListeners||(this._splitDirectionListeners=[],this._splitDirectionListeners.push(this.olLayer.on("precompose",this._splitPreCompose.bind(this))),this._splitDirectionListeners.push(this.olLayer.on("postcompose",(function(e){e.context.restore()}))))}}},{key:"_splitPreCompose",value:function(e){var t=e.context,i=t.canvas.width*Fa().position;t.save(),t.beginPath();var n=this.commonLayer.splitDirection;n===Cesium.ImagerySplitDirection.LEFT?t.rect(0,0,i,t.canvas.height):t.rect(i,0,t.canvas.width-i,t.canvas.height),t.clip()}}]),i}(jp),Gp=Hp,zp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.OpenStreetMapLayer"}}]),Object(m["a"])(i,[{key:"getOLLayer",value:function(){return new ol.layer.Tile({opacity:this.commonLayer.opacity,source:new ol.source.OSM})}}]),i}(Gp);Le.registerSpecificLayerImpl(Vi.className,us.className,zp);var Bp=zp,Vp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.SingleImageLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){return this.initialized||this.updateLayer(),Promise.resolve()}},{key:"getOLLayer",value:function(){return this.initialized||this.initialize(),this.olLayer}},{key:"updateLayer",value:function(){var e=this.active;this.initialized&&this.dispose();var t={attributions:this.commonLayer.credit,url:this.commonLayer.url,projection:"EPSG:4326",imageExtent:this.commonLayer.imageExtent};a["a"].hasSameOrigin(this.commonLayer.url)||(t.crossOrigin="anonymous"),this.olLayer=new ol.layer.Image({source:new ol.source.ImageStatic(t),opacity:this.commonLayer.opacity}),this.initialized=!0,e&&this.show(),this.updateSplitDirection()}}]),i}(Gp);Le.registerSpecificLayerImpl(Vi.className,ls.className,Vp);var Up=Vp,Wp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.TMSBaseLayer"}}]),Object(m["a"])(i,[{key:"getOLLayer",value:function(){var e=this,t={tileUrlFunction:function(t){var i=e.commonLayer.url.replace(/\/$/,""),n="".concat(i,"/{z}/{x}/{y}.").concat(e.commonLayer.format),r=(1<<t[0])- -t[2];return n.replace("{z}",t[0].toString()).replace("{x}",t[1].toString()).replace("{y}",r.toString())},tileSize:[this.commonLayer.tileWidth,this.commonLayer.tileHeight],minZoom:this.commonLayer.minLevel,maxZoom:this.commonLayer.maxLevel,wrapX:!1};a["a"].hasSameOrigin(this.commonLayer.url)||(t.crossOrigin="anonymous"),"geographic"===this.commonLayer.tilingSchema&&(t.projection="EPSG:4326");var i={source:new ol.source.XYZ(t),opacity:this.commonLayer.opacity};return this.commonLayer.extent.isValid()&&(i.extent=this.commonLayer.extent.getCoordinatesInProjection(ee)),new ol.layer.Tile(i)}}]),i}(Gp);Le.registerSpecificLayerImpl(Vi.className,ds.className,Wp);var qp=Wp,Jp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.VectorClusterLayer"}}]),i}(Np);Le.registerSpecificLayerImpl(Vi.className,fs.className,Jp);var Kp=Jp,Zp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.WMSLayer"}}]),Object(m["a"])(i,[{key:"show",value:function(){this.active||(ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.commonLayer.featureInfo&&this.commonLayer.activateFeatureInfo(!0))}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this.commonLayer.featureInfo&&this.commonLayer.activateFeatureInfo(!1))}},{key:"getOLLayer",value:function(){return this.commonLayer.setCommonSource(),new ol.layer.Tile({renderOrder:null,visible:!1,source:this.commonLayer.wmsSource,opacity:this.commonLayer.opacity})}},{key:"updateLayer",value:function(){return!0}}]),i}(Gp);Le.registerSpecificLayerImpl(Vi.className,_s.className,Zp);var Qp=Zp,Xp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.WMTSLayer"}}]),Object(m["a"])(i,[{key:"getOLLayer",value:function(){var e=ee;"geographic"===this.commonLayer.tilingSchema&&(e=$);var t=e.proj.getExtent(),i=ol.extent.getWidth(t)/this.commonLayer.tileSize[0];this.commonLayer.numberOfLevelZeroTilesX>1&&(i/=this.commonLayer.numberOfLevelZeroTilesX),"geographic"===this.commonLayer.tilingSchema&&(i=ol.extent.getWidth(t)/(2*this.commonLayer.tileSize[0]));for(var n=this.commonLayer.maxLevel+1,r=new Array(n),s=new Array(n),o=0;o<n;++o)r[o]=i/Math.pow(2,o),s[o]=String(this.commonLayer.tileMatrixPrefix)+String(o);this.commonLayer.matrixIds&&(this.commonLayer.matrixIds.length===n?s=this.commonLayer.matrixIds:this.logger.info("matrixIDs must have the same length as maxZoom"));var l=this.commonLayer.extent.getCoordinatesInProjection(e),c={origin:ol.extent.getTopLeft(t),extent:l,resolutions:r,matrixIds:s,minZoom:this.commonLayer.minLevel,tileSize:this.commonLayer.tileSize};if(this.commonLayer.numberOfLevelZeroTilesX>1||this.commonLayer.numberOfLevelZeroTilesY>1){for(var u=[],h=this.commonLayer,d=h.numberOfLevelZeroTilesX,m=h.numberOfLevelZeroTilesY,f=0;f<=n;f++)u.push([d,-m]),d*=2,m*=2;c.sizes=u}var g=new ol.tilegrid.WMTS(c),y=this.commonLayer.url.indexOf("{")>=0?"REST":"KVP",p={tileGrid:g,requestEncoding:y,layer:this.commonLayer.layer,style:this.commonLayer.wmtsStyle,format:this.commonLayer.format,matrixSet:this.commonLayer.tileMatrixSetID,url:this.commonLayer.url};return a["a"].hasSameOrigin(this.commonLayer.url)||(p.crossOrigin="anonymous"),"geographic"===this.commonLayer.tilingSchema&&(p.projection="EPSG:4326"),Object.assign(p,this.commonLayer.olOptions),new ol.layer.Tile({opacity:this.commonLayer.opacity,source:new ol.source.WMTS(p)})}}]),i}(Gp);Le.registerSpecificLayerImpl(Vi.className,Ls.className,Xp);var $p=Xp;function ev(e,t){var i=G.getInstance(),n=i.getActiveMap(),r={};r.lang=i.getLocale(),r.layerToActivate=[],r.layerToDeactivate=[],i.getLayers().filter((function(e){return e[G.configContentSymbol]&&e.isSupported(n)})).forEach((function(e){e.active!==e.activeOnStartup&&(e.active?r.layerToActivate.push(e.name):r.layerToDeactivate.push(e.name))})),r.layerToActivate.length||delete r.layerToActivate,r.layerToDeactivate.length||delete r.layerToDeactivate,delete e.queryParams.epsg,t&&(r.epsg=i.projection.epsg.match(/\d+/)[0]),e.addQueryParams(r);var a=i.getSelectBehavior();return a&&a.getLink(e),Ce.getInstance().getLink(e),n.getLink(e).then((function(){return e.toString()})).catch((function(){return e.toString()}))}function tv(e){var t=G.getInstance(),i=a["a"].parse(window.location.href);if(t.baseUrl){var n=a["a"].parse(t.baseUrl);i.base=n.base,i.path=n.path}for(var r=t.getWidgets(),s=0;s<r.length;s++)r[s].getLink(i);return ev(i,e)}i(652);var iv,nv=k.getLogger("vcs.vcm.util.flight.FlightPlayer"),rv=function(){function e(){var t=this;Object(d["a"])(this,e),this.destinationSpline=null,this.quaternionSpline=null,this.values={playing:!1,paused:!1,multiplier:1,activeInstance:null,repeat:!1,valid:!1},this.clock={startTime:0,endTime:0,currentTime:0,times:[],currentSystemTime:null},this._postRenderHandler=null,this._flightInstanceChangeHandler=null,this.screenSpaceCameraController=null,this.readyPromise=Promise.resolve(),G.getInstance().subscribe("MAP_ACTIVATED",(function(){t.stop()}))}return Object(m["a"])(e,[{key:"setActiveFlightInstance",value:function(e){var t=this;o(e,bl),this.values.playing&&this.stop(),this.values.activeInstance=e;var i=Ce.getInstance();return i.values.walkmode&&i.activateOverviewMode(),this.readyPromise=e.ready.then((function(){t.values.activeInstance===e&&(t._flightInstanceChangeHandler&&(t._flightInstanceChangeHandler(),t._flightInstanceChangeHandler=null),t.changeHandler(),t._flightInstanceChangeHandler=e.changed.addEventListener(t.changeHandler.bind(t)))})),this.readyPromise}},{key:"clearActiveFlight",value:function(){this.values.playing&&this.stop(),this._flightInstanceChangeHandler&&(this._flightInstanceChangeHandler(),this._flightInstanceChangeHandler=null),this.values.activeInstance=null}},{key:"play",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l(t,bl),t||this.values.activeInstance){e.next=5;break}throw i="Player cannot play without activeInstance, provide a flightInstance or call setActiveInstance",nv.error(i),new Error(i);case 5:if(this._postRenderHandler&&(this._postRenderHandler(),this._postRenderHandler=null),!t||this.values.activeInstance===t){e.next=11;break}return e.next=9,this.setActiveFlightInstance(t);case 9:if(this.values.activeInstance===t){e.next=11;break}return e.abrupt("return");case 11:n=G.getInstance().getActiveMap(),n instanceof Ut&&(r=n.getScene(),this.screenSpaceCameraController=r.screenSpaceCameraController,this._postRenderHandler=r.postRender.addEventListener(this._cesiumPostRender.bind(this))),this.clock.currentSystemTime=null,this.values.playing=!0;case 15:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_cesiumPostRender",value:function(e){var t=Date.now()/1e3;this.clock.currentSystemTime||(this.clock.currentSystemTime=t);var i=t-this.clock.currentSystemTime;if(this.clock.currentSystemTime=t,this.values.paused)this.screenSpaceCameraController&&(this.screenSpaceCameraController.enableInputs=!0);else{if(this.clock.currentTime+=i*this.values.multiplier,this.clock.currentTime>this.clock.endTime){if(!this.values.repeat)return void this.stop();this.clock.currentTime-=this.clock.endTime}else if(this.clock.currentTime<this.clock.startTime){if(!this.values.repeat)return void(this.clock.currentTime=this.clock.startTime);this.clock.currentTime=this.clock.endTime+this.clock.currentTime}var n={destination:this.destinationSpline.evaluate(this.clock.currentTime),orientation:Cesium.HeadingPitchRoll.fromQuaternion(this.quaternionSpline.evaluate(this.clock.currentTime))};e.camera.setView(n),this.screenSpaceCameraController&&(this.screenSpaceCameraController.enableInputs=!1)}}},{key:"stop",value:function(){this._postRenderHandler&&(this._postRenderHandler(),this._postRenderHandler=null),this.screenSpaceCameraController&&(this.screenSpaceCameraController.enableInputs=!0),this.values.playing=!1,this.values.paused=!1,this.clock.currentTime=0,this.clock.currentSystemTime=null}},{key:"goToTime",value:function(e){if(this.values.activeInstance&&this.values.activeInstance.isValid()){if(e>this.clock.endTime)nv.warning("time: ".concat(e," out of range"));else if(this.clock.currentTime=e,this.clock.currentSystemTime=null,!this.values.playing||this.values.playing&&this.values.paused){var t=G.getInstance().getActiveMap();if(t instanceof Ut){var i={destination:this.destinationSpline.evaluate(this.clock.currentTime),orientation:Cesium.HeadingPitchRoll.fromQuaternion(this.quaternionSpline.evaluate(this.clock.currentTime))};t.getScene().camera.setView(i)}}}else nv.warning("cannot go to time on missing or invalid flight")}},{key:"forward",value:function(){var e=this.clock.currentTime,t=this.clock.times.find((function(t){return t>e}))||this.clock.times[this.clock.times.length-1];this.goToTime(t)}},{key:"backward",value:function(){var e=this,t=this.clock.currentTime,i=this.clock.times.findIndex((function(e){return e>=t}))-1;this.backedBefore&&(i-=1,clearTimeout(this.backedBeforeTimeout)),i<0&&(i=0);var n=this.clock.times[i];this.goToTime(n),this.backedBefore=!0,this.backedBeforeTimeout=setTimeout((function(){e.backedBefore=!1}),700)}},{key:"changeHandler",value:function(){this.values.activeInstance&&(this.values.valid=this.values.activeInstance.isValid(),this.values.valid&&this._updateSplines())}},{key:"_updateSplines",value:function(){var e=this.values.activeInstance,t=e.loop,i=e.viewpoints,n=t?i.length+1:i.length,r=new Array(n),a=new Array(n),s=new Array(n);i.forEach((function(e,t){if(r[t]=Cesium.Cartesian3.fromDegrees(e.cameraPosition[0],e.cameraPosition[1],e.cameraPosition[2]),a[t]=Cesium.Quaternion.fromHeadingPitchRoll(Cesium.HeadingPitchRoll.fromDegrees(e.heading,e.pitch,e.roll)),t>0){var n=i[t-1];n.duration||(n.duration=Cesium.Cartesian3.distance(r[t-1],r[t])/300||1),s[t]=s[t-1]+n.duration}else s[t]=0})),t&&(r[n-1]=Cesium.Cartesian3.fromDegrees(i[0].cameraPosition[0],i[0].cameraPosition[1],i[0].cameraPosition[2]),a[n-1]=Cesium.Quaternion.fromHeadingPitchRoll(Cesium.HeadingPitchRoll.fromDegrees(i[0].heading,i[0].pitch,i[0].roll)),i[n-2].duration||(i[n-2].duration=Cesium.Cartesian3.distance(r[n-2],r[n-1])/300||1),s[n-1]=s[n-2]+i[n-2].duration),this.destinationSpline=this.values.activeInstance.interpolation===vl.SPLINE?new Cesium.CatmullRomSpline({times:s,points:r}):new Cesium.LinearSpline({times:s,points:r}),this.quaternionSpline=new Cesium.QuaternionSpline({times:s,points:a}),this.clock.endTime=s[n-1],this.clock.times=s,this.values.repeat=t}}]),e}();function av(){return iv||(iv=new rv),iv}var sv,ov=k.getLogger("vcs.vcm.util.flight.FlightVisualizer"),lv=null,cv=new Cesium.Cartographic,uv=function(){function e(){var t=this;Object(d["a"])(this,e),this.extent=ol.extent.createEmpty(),this.flightLayer=new _n({projection:$,name:"_scratchFlightLayer",style:{declarativeStyle:{labelText:"${title}",image:"false",color:'color("#333333")',strokeWidth:"2"}},altitudeMode:"absolute"}),this._primitives=new Cesium.PrimitiveCollection,this.activeInstance=null,this._flightInstanceChangeHandler=null,this._mapActivatedListener=G.getInstance().subscribe("MAP_ACTIVATED",(function(){t.hide()}))}return Object(m["a"])(e,[{key:"_createFeatures",value:function(){var e=this;this.flightLayer.removeAllFeatures();var t=G.getInstance().getMapByType(Ut.className);if(t){var i=t.getScene();this._primitives.removeAll();var n=this.activeInstance.viewpoints.map((function(t,n){var r=new Cesium.Camera(i);return r.frustum.far=200,r.frustum.near=10,r.setView({destination:Cesium.Cartesian3.fromDegrees(t.cameraPosition[0],t.cameraPosition[1],t.cameraPosition[2]),orientation:Cesium.HeadingPitchRoll.fromDegrees(t.heading,t.pitch,t.roll)}),e._primitives.add(new Cesium.VcsCameraPrimitve({camera:r,allowPicking:!1})),new ol.Feature({geometry:new ol.geom.Point(t.cameraPosition,"XYZ"),title:t.name||"".concat(C.getInstance().getSingleMessage("i18n_viewpointeditor_number")," ").concat(n+1),duration:t.duration})}));if(this.activeInstance.isValid()){var r=[],a=av();if(a.values.activeInstance===this.activeInstance){if(this.activeInstance.interpolation===vl.SPLINE){for(var s=function(e){Cesium.Cartographic.fromCartesian(a.destinationSpline.evaluate(e),null,cv),r.push([Cesium.Math.toDegrees(cv.longitude),Cesium.Math.toDegrees(cv.latitude),cv.height])},o=a.clock.endTime,l=o/.2>500?o/500:.2,c=0;c<o;c+=l)s(c);s(o)}else n.forEach((function(e){r.push(e.getGeometry().getCoordinates())})),this.activeInstance.loop&&r.push(r[0]);var u=new ol.Feature({geometry:new ol.geom.LineString(r),title:"Flight Path"});u.setId("flightPathGeom"),n.push(u)}this.flightLayer.addFeatures(n);var h=this.flightLayer.getSource().getExtent();this.extent=K(h,h,2)}}else ov.error("could not find a cesium map!")}},{key:"_makeDirty",value:function(){this.flightLayer.active&&this._createFeatures()}},{key:"visualizeFlight",value:function(e){var t=this;o(e,bl);var i=G.getInstance().getMapByType(Ut.className);if(!i)return ov.error("could not find a cesium map!"),Promise.reject(new Error("could not find cesium map"));var n=av();return n.values.activeInstance!==e&&n.setActiveFlightInstance(e),n.readyPromise.then((function(){if(n.values.activeInstance===e){t._flightInstanceChangeHandler&&(t._flightInstanceChangeHandler(),t._flightInstanceChangeHandler=null),t._flightInstanceChangeHandler=e.changed.addEventListener(t._makeDirty.bind(t)),t.activeInstance=e,t._createFeatures(),t.flightLayer.activate();var r=i.getScene();t._primitives.show=!0,r.primitives.contains(t._primitives)||r.primitives.add(t._primitives)}}))}},{key:"hide",value:function(){this.flightLayer.deactivate(),this._primitives.show=!1}},{key:"dispose",value:function(){G.getInstance().unsubscribeByKey(this._mapActivatedListener),this.flightLayer.dispose(),this._primitives.destroy(),lv=null}},{key:"zoomToExtent",value:function(){if(this.activeInstance&&this.activeInstance.isValid()&&!ol.extent.isEmpty(this.extent)){var e=ke.createViewPointFromExtent(this.extent),t=G.getInstance();t.getActiveMap().gotoViewPoint(e)}}}]),e}();function hv(){return lv||(lv=new uv),lv}var dv=function(){function e(){Object(d["a"])(this,e),this.editor=new vc({featureLayerEditor:{},geometryLayerEditor:{defaultMode:"select",allowedGeometries:["Point"]}}),this.feature=null,this.properties=null,this.planningComment=null,this._modeChangeListener=null,this._new=!1}return Object(m["a"])(e,[{key:"initialize",value:function(){this.editor.initialize()}},{key:"activate",value:function(e){l(e,gl),this.editor.activate(),e&&this.setPlanningComment(e)}},{key:"deactivate",value:function(){this.editor.deactivate(),this.clear()}},{key:"setPlanningComment",value:function(e){o(e,gl),this.planningComment=e;var t=e.getLayer();this.editor.activeLayer=t,this.editor.getFeatureLayerEditor().activeLayer=t,this.editor.getGeometryLayerEditor().activeLayer=t}},{key:"edit",value:function(e){o(e,String),o(this.planningComment,gl);var t=this.planningComment.getLayer().getFeatureById(e);if(!t)throw new Error("cannot find feature with id: ".concat(e));this._setFeature(t),this.planningComment.lookAt(e),this.editor.setMode(ln.SELECT),this.editor.selectFeatureInteraction.selectFeature(t),this._new=!1}},{key:"setCommentType",value:function(e){o(e,Object.values(ml)),o(this.planningComment,gl),o(this.feature,ol.Feature),this.properties.commentType=e,this.feature.set("commentType",this.properties.commentType)}},{key:"create",value:function(e){var t=this,i=this.editor.getGeometryLayerEditor().createFeature("Point");this._setFeature(i),this.planningComment.getLayer().addFeatures([i]),this._modeChangeListener&&this._modeChangeListener(),this.editor.getGeometryLayerEditor().setModeAndSelectFeature(ln.CREATE,i),this._modeChangeListener=this.editor.modeChange.addEventListener((function(){t._modeChangeListener(),t._modeChangeListener=null,e&&e()})),this._new=!0}},{key:"_setFeature",value:function(e){this._clearFeature();var t=this.editor.state.featureTypeSymbol;e[t]=cn.EDITABLE;var i=e.getProperties();delete i.geometry,i.commentType=i.commentType||ml.DEFAULT,this.properties=i,this.feature=e}},{key:"save",value:function(){try{o(this.feature,ol.Feature),o(this.properties,{title:String,description:String,commentType:Object.values(ml)})}catch(e){return Promise.reject(e)}return this.feature.set("title",this.properties.title,!0),this.feature.set("description",this.properties.description,!0),this.feature.set("commentType",this.properties.commentType,!0),this._new?this.planningComment.addComment(this.feature):this.planningComment.editComment(this.feature)}},{key:"reset",value:function(){var e=this;if(this.feature){if(this._new)this.planningComment.getLayer().removeFeaturesById([this.feature.getId()]);else{var t=this.planningComment.comments.find((function(t){return t.id===e.feature.getId()}));this.feature.setProperties(t.properties,!0),this.feature.setGeometry(new ol.geom.Point(X.wgs84ToMercator(t.geometry.coordinates)))}this._clearFeature()}}},{key:"_clearFeature",value:function(){if(this.feature){var e=this.editor.state.featureTypeSymbol;delete this.feature[e]}this.feature=null,this.properties=null,this._new=!1}},{key:"clear",value:function(){this.planningComment=null,this._clearFeature(),this._modeChangeListener&&(this._modeChangeListener(),this._modeChangeListener=null)}},{key:"destroy",value:function(){this.clear(),this.editor.destroy(),sv&&(sv=void 0)}}]),e}();function mv(){return sv||(sv=new dv,sv.initialize()),sv}var fv=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){return Object(d["a"])(this,i),t.call(this,{className:i.className})}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.ErrorItem"}}]),i}(Od),gv=fv,yv=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.viewshed=e,n.finished=new Cesium.Event,n._defaultActive=re.CLICKMOVE,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.position){e.next=14;break}if(!(t.type&re.MOVE)){e.next=5;break}this._position?this.viewshed.spot&&this.viewshed.lookAt(X.mercatorToWgs84(t.position)):this.viewshed.position=X.mercatorToWgs84(t.position),e.next=14;break;case 5:if(this._position){e.next=10;break}if(this.viewshed.position=X.mercatorToWgs84(t.position),!this.viewshed.spot){e.next=10;break}return this._position=!0,e.abrupt("return",t);case 10:this.viewshed.spot&&this.viewshed.lookAt(X.mercatorToWgs84(t.position)),this.setActive(!1),this.finished.raiseEvent(),t.stopPropagation=!0;case 14:return e.abrupt("return",t);case 15:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setActive",value:function(e){ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,e),this.active?(xn().featureInteraction.setActive(re.CLICKMOVE),xn().featureInteraction.pickPosition=re.CLICKMOVE,this._position=!1):xn().featureInteraction.setActive()}}]),i}(ce),pv=yv;ol.geom.Circle.prototype.getCoordinates=function(){return[this.getCenter(),this.getLastCoordinate()]},ol.geom.Circle.prototype.setCoordinates=function(e,t){o(e,[[Number]]),o(e.length,2);var i=t||this.getLayout(),n=/XYM?/.test(i)?si:oi;this.setCenterAndRadius(e[0],n.apply(void 0,Object(g["a"])(e)),t)},ol.geom.Circle.prototype.rotate=function(e,t){},ol.geom.GeometryCollection.prototype.getCoordinates=function(){return this.getGeometries().map((function(e){return e.getCoordinates()}))},ol.geom.GeometryCollection.prototype.setCoordinates=function(e,t){o(e,Array),o(e.length,this.getGeometries().length),this.setGeometries(this.getGeometries().map((function(i,n){return i.setCoordinates(e[n],t),i})))},ol.geom.GeometryCollection.prototype.getLayout=function(){var e=this.getGeometries()[0];return e?e.getLayout():"XYZ"};i(741),i(742),i(743),i(744);var vv={};window["vcs"]=vv,vv.Url=a["a"],vv.check=o,vv.checkMaybe=l,vv.deepForEach=u["a"],vv.eventCannotBeFromMap=u["b"],vv.isEmail=u["d"],vv.oblique={},vv.oblique.viewDirectionNames=h["c"],vv.parseBoolean=u["e"],vv.parseEnumValue=u["f"],vv.parseFloat=u["g"],vv.parseInt=u["h"],vv.vcm={},vv.vcm.ExclusiveManager={},vv.vcm.ExclusiveManager.getInstance=V,vv.vcm.Framework=G,vv.vcm.Framework.dispose=ip,vv.vcm.Framework.getObjectFromOptions=qy,vv.vcm.Framework.init=ep,vv.vcm.Framework.loadConfig=tp,vv.vcm.NavigationMode=Ce,vv.vcm.SelectBehavior=P,vv.vcm.cityGML={},vv.vcm.cityGML.AllFeatureTypes=Du,vv.vcm.cityGML.AllProperties=xu,vv.vcm.cityGML.AllPropertiesDateGeneric=Hu,vv.vcm.cityGML.AllPropertiesDateNonGeneric=Fu,vv.vcm.cityGML.AllPropertiesValueGeneric=Nu,vv.vcm.cityGML.AllPropertiesValueNonGeneric=Yu,vv.vcm.cityGML.AllPropertiesYearNonGeneric=Ru,vv.vcm.cityGML.AllSecondLevelFeatureTypes=Pu,vv.vcm.cityGML.AllSemanticSurfaceFeatureTypes=Au,vv.vcm.cityGML.Namespaces=Iu,vv.vcm.cityGML.TopLevelObjectClassIds=Gu,vv.vcm.cityGML.feature={},vv.vcm.cityGML.feature.createFeatureTypes=Ch,vv.vcm.cityGML.property={},vv.vcm.cityGML.property.DataType=Yc,vv.vcm.cityGML.property.Property={},vv.vcm.cityGML.property.Property.comparisons=Fc,vv.vcm.event={},vv.vcm.event.EventType=O,vv.vcm.i18n=C,vv.vcm.interaction={},vv.vcm.interaction.AbstractInteraction=ce,vv.vcm.interaction.BitCounter=ie,vv.vcm.interaction.EventHandler={},vv.vcm.interaction.EventHandler.getInstance=xn,vv.vcm.interaction.EventType=re,vv.vcm.interaction.InteractionChain=me,vv.vcm.interaction.ModificationKeyType=ne,vv.vcm.interaction.PointerKeyType=ae,vv.vcm.layer={},vv.vcm.layer.AbstractRasterLayer=ss,vv.vcm.layer.CommonLayer=sn,vv.vcm.layer.CommonLayerImpl=rp,vv.vcm.layer.FeatureStore=Ps,vv.vcm.layer.FeatureStore.featureStoreState=Hn,vv.vcm.layer.GeoJSON=rs,vv.vcm.layer.GeoJSON.getEPSGCodeFromGeojson=Jn,vv.vcm.layer.GeoJSON.parseGeoJSON=er,vv.vcm.layer.GeoJSON.updateLegacyFeature=Kn,vv.vcm.layer.GeoJSON.writeGeoJSON=ir,vv.vcm.layer.GlobalHider={},vv.vcm.layer.GlobalHider.getInstance=Pt,vv.vcm.layer.Layer=Ht,vv.vcm.layer.OpenStreetMap=us,vv.vcm.layer.SingleImage=ls,vv.vcm.layer.TMSBase=ds,vv.vcm.layer.TiledLayer=or,vv.vcm.layer.Vector=_n,vv.vcm.layer.VectorCluster=fs,vv.vcm.layer.WFS=ys,vv.vcm.layer.WMTS=Ls,vv.vcm.layer.WSV=Ts,vv.vcm.layer.Wms=_s,vv.vcm.layer.cesium={},vv.vcm.layer.cesium.AbstractCesiumTilesetLayer=Ga,vv.vcm.layer.cesium.AsyncVectorImplementation=lp,vv.vcm.layer.cesium.Buildings=Ua,vv.vcm.layer.cesium.CesiumTilesetLayer=Ba,vv.vcm.layer.cesium.CesiumTilesetLayerImpl=up,vv.vcm.layer.cesium.Czml=Ka,vv.vcm.layer.cesium.Entities=qa,vv.vcm.layer.cesium.Gltf=Qa,vv.vcm.layer.cesium.ImageryLayer=dp,vv.vcm.layer.cesium.OpenStreetMapLayer=fp,vv.vcm.layer.cesium.PointCloud=es,vv.vcm.layer.cesium.SingleImageLayer=yp,vv.vcm.layer.cesium.TMSBaseLayer=vp,vv.vcm.layer.cesium.Terrain=is,vv.vcm.layer.cesium.VectorClusterLayer=bp,vv.vcm.layer.cesium.VectorLayer=sp,vv.vcm.layer.cesium.WMSLayer=wp,vv.vcm.layer.cesium.WMTSLayer=kp,vv.vcm.layer.cesium.Wsv=Tp,vv.vcm.layer.oblique={},vv.vcm.layer.oblique.AsyncVectorImplementation=Pp,vv.vcm.layer.oblique.ObliqueLayer=Yi,vv.vcm.layer.oblique.VectorClusterLayer=xp,vv.vcm.layer.oblique.VectorLayer=Ip,vv.vcm.layer.openlayers={},vv.vcm.layer.openlayers.AsyncVectorImplementation=Rp,vv.vcm.layer.openlayers.Layer=jp,vv.vcm.layer.openlayers.OpenStreetMapLayer=Bp,vv.vcm.layer.openlayers.SingleImageLayer=Up,vv.vcm.layer.openlayers.TMSBaseLayer=qp,vv.vcm.layer.openlayers.VectorClusterLayer=Kp,vv.vcm.layer.openlayers.VectorLayer=Np,vv.vcm.layer.openlayers.WMSLayer=Qp,vv.vcm.layer.openlayers.WMTSLayer=$p,vv.vcm.maps={},vv.vcm.maps.Cesium=Ut,vv.vcm.maps.Oblique=Fi,vv.vcm.maps.Openlayers=Vi,vv.vcm.util={},vv.vcm.util.Balloon=Gr,vv.vcm.util.CreateLink={},vv.vcm.util.CreateLink.getLink=ev,vv.vcm.util.CreateLink.makeLink=tv,vv.vcm.util.Extent=De,vv.vcm.util.IconManager=ks,vv.vcm.util.Logger=k,vv.vcm.util.Login=cl,vv.vcm.util.Projection=X,vv.vcm.util.SplitScreen={},vv.vcm.util.SplitScreen.getInstance=Fa,vv.vcm.util.ViewPoint=ke,vv.vcm.util.attributeEditor={},vv.vcm.util.attributeEditor.AbstractAttributeEditor=Qg,vv.vcm.util.attributeEditor.Attribute=$g,vv.vcm.util.attributeEditor.AttributeEditorFeature=qg,vv.vcm.util.attributeEditor.Part=iy,vv.vcm.util.attributeEditor.Surface=ry,vv.vcm.util.attributeEditor.WfstAttributeEditor=yy,vv.vcm.util.attributeEditor.getAttributeEditorById=Kg,vv.vcm.util.clipping={},vv.vcm.util.clipping.ClippingObject=hr,vv.vcm.util.clipping.ClippingObjectEditor=Rg,vv.vcm.util.clipping.ClippingObjectManager=Ya,vv.vcm.util.clipping.copyClippingPlanesToCollection=Oa,vv.vcm.util.clipping.createClippingFeature=Ia,vv.vcm.util.clipping.createClippingPlaneCollection=ka,vv.vcm.util.clipping.getClippingObjectEditorById=Ng,vv.vcm.util.clipping.getClippingOptions=Da,vv.vcm.util.downloadBlob=xm,vv.vcm.util.downloadCanvas=Nm,vv.vcm.util.downloadText=Ym,vv.vcm.util.downloadURI=Am,vv.vcm.util.editor={},vv.vcm.util.editor.AltitudeModeNames=dn,vv.vcm.util.editor.CircleGeometryEditor=sa,vv.vcm.util.editor.ClassificationType=mn,vv.vcm.util.editor.ClassificationTypeNames=fn,vv.vcm.util.editor.CompositeLayerEditor=vc,vv.vcm.util.editor.FeatureLayerEditor=tc,vv.vcm.util.editor.GeometryLayerEditor=sc,vv.vcm.util.editor.LineGeometryEditor=na,vv.vcm.util.editor.ModeNames=un,vv.vcm.util.editor.MultiGeometryEditor=ma,vv.vcm.util.editor.PointGeometryEditor=Wr,vv.vcm.util.editor.RectangleGeometryEditor=Er,vv.vcm.util.editor.StyleLayerEditor=gc,vv.vcm.util.editor.circleFromCenterRadius=vi,vv.vcm.util.editor.convertGeometryToPolygon=pi,vv.vcm.util.editor.getEditorById=Bo,vv.vcm.util.editor.getFeatureHeights=mi,vv.vcm.util.flight={},vv.vcm.util.flight.FlightInstance=bl,vv.vcm.util.flight.FlightPlayer={},vv.vcm.util.flight.FlightPlayer.getInstance=av,vv.vcm.util.flight.FlightVisualizer={},vv.vcm.util.flight.FlightVisualizer.getInstance=hv,vv.vcm.util.flight.exportFlightAsGeoJson=yl,vv.vcm.util.flight.flightInterpolations=vl,vv.vcm.util.flight.parseFlightOptionsFromGeoJson=pl,vv.vcm.util.mercatorProjection=ee,vv.vcm.util.style={},vv.vcm.util.style.DeclarativeStyleItem=Ct,vv.vcm.util.style.PatternType=Ne,vv.vcm.util.style.StyleItem=xe,vv.vcm.util.style.StyleType=Pe,vv.vcm.util.style.VectorStyleItem=dt,vv.vcm.util.style.VectorStyleItem.defaultVectorStyle=mt,vv.vcm.util.style.VectorStyleItem.fromCesiumColor=ft,vv.vcm.util.style.combineFont=We,vv.vcm.util.style.createPattern=ze,vv.vcm.util.style.getShapeFromOptions=rt,vv.vcm.util.style.getStringColor=Ge,vv.vcm.util.style.hexToOlColor=Fe,vv.vcm.util.style.olColorToHex=Be,vv.vcm.util.style.parseColor=He,vv.vcm.util.style.parseFont=Ue,vv.vcm.util.style.shapeCategory=st,vv.vcm.util.style.validateHexColor=Ve,vv.vcm.util.style.vectorStyleSymbol=ut,vv.vcm.util.wgs84Projection=$,vv.vcm.widgets={},vv.vcm.widgets.AdvancedWalkMode=Yd,vv.vcm.widgets.AttributeEditor=vy,vv.vcm.widgets.BalloonInfo=Fd,vv.vcm.widgets.ClippingTool=Gg,vv.vcm.widgets.Copyright=Hd,vv.vcm.widgets.CreateLink=zd,vv.vcm.widgets.DisplayQuality=mm,vv.vcm.widgets.Drawing=pm,vv.vcm.widgets.Drawing.defaultDrawingStyle=gm,vv.vcm.widgets.FeatureList=af,vv.vcm.widgets.Flight=Lg,vv.vcm.widgets.Locator=hd,vv.vcm.widgets.Locator.LocatorShow=nd,vv.vcm.widgets.Measurement=Af,vv.vcm.widgets.Measurement.defaultMeasurementStyle=Df,vv.vcm.widgets.MultiView=Bg,vv.vcm.widgets.NavigationControls=Rf,vv.vcm.widgets.OverviewMap=Gf,vv.vcm.widgets.PDFCreator=tg,vv.vcm.widgets.PDFCreator.OrientationMode=Kf,vv.vcm.widgets.PositionDisplay=ag,vv.vcm.widgets.Query=Qh,vv.vcm.widgets.Shadow=og,vv.vcm.widgets.SingleMeasurement=Yf,vv.vcm.widgets.TransparentTerrainMode=fg,vv.vcm.widgets.WFSObject=Kh,vv.vcm.widgets.WFSObject.AllLogicalRelations=qh,vv.vcm.widgets.WFSObject.AllLogicalRelationsDoubleValue=Wh,vv.vcm.widgets.WFSObject.AllLogicalRelationsSingleValue=Uh,vv.vcm.widgets.WFSObject.AllSpatialFilters=Jh,vv.vcm.widgets.displayQuality={},vv.vcm.widgets.displayQuality.PostProcessStageType=Bd,vv.vcm.widgets.export={},vv.vcm.widgets.export.AbstractExportDataSource=Im,vv.vcm.widgets.export.AbstractExportResult=Pm,vv.vcm.widgets.export.Export=nf,vv.vcm.widgets.export.FileExportResult=Rm,vv.vcm.widgets.export.GeoJSONExportDataSource=zm,vv.vcm.widgets.export.ObliqueExportDataSource=Km,vv.vcm.widgets.export.ObliqueExportResult=Wm,vv.vcm.widgets.export.downloadObliqueImage=Vm,vv.vcm.widgets.heightProfile={},vv.vcm.widgets.heightProfile.HeightProfile=Pg,vv.vcm.widgets.legend={},vv.vcm.widgets.legend.AbstractGroupItem=zs,vv.vcm.widgets.legend.ClusterItem=Vs,vv.vcm.widgets.legend.FlightInstanceItem=yo,vv.vcm.widgets.legend.GroupItem=to,vv.vcm.widgets.legend.GroupLayerItem=$s,vv.vcm.widgets.legend.LayerItem=Zs,vv.vcm.widgets.legend.Legend=ko,vv.vcm.widgets.legend.PlanningClusterItem=ho,vv.vcm.widgets.legend.PlanningClusterItem.getPlanningClusterItem=mo,vv.vcm.widgets.legend.PlanningInstanceItem=oo,vv.vcm.widgets.legend.PluginItem=no,vv.vcm.widgets.legend.StyledLayerItem=_o,vv.vcm.widgets.legend.TreeItem=Hs,vv.vcm.widgets.legend.ViewpointItem=ao,vv.vcm.widgets.measurement={},vv.vcm.widgets.measurement.MeasurementType=ya,vv.vcm.widgets.planning={},vv.vcm.widgets.planning.Planning=Ec,vv.vcm.widgets.planning.PlanningComment={},vv.vcm.widgets.planning.PlanningComment.commentTypes=ml,vv.vcm.widgets.planning.PlanningCommentEditor={},vv.vcm.widgets.planning.PlanningCommentEditor.getInstance=mv,vv.vcm.widgets.planning.PlanningInstance=El,vv.vcm.widgets.planning.PlanningObject=Co,vv.vcm.widgets.planning.PlanningObject.Status=To,vv.vcm.widgets.planning.PlanningObject.Type=Oo,vv.vcm.widgets.planning.PlanningObjectDrawing=Zo,vv.vcm.widgets.planning.PlanningObjectFeatureStore=il,vv.vcm.widgets.planning.PlanningObjectGltf=Do,vv.vcm.widgets.planning.PlanningObjectImage=Ao,vv.vcm.widgets.planning.PlanningObjectProcessing=$o,vv.vcm.widgets.planning.PlanningObjectTiled=Sl,vv.vcm.widgets.query={},vv.vcm.widgets.query.filter={},vv.vcm.widgets.query.filter.CombinationFilter=xh,vv.vcm.widgets.query.filter.Filter=Dh,vv.vcm.widgets.query.filter.GeometryFilter=Rh,vv.vcm.widgets.query.filter.PropertyFilter=Gh,vv.vcm.widgets.search={},vv.vcm.widgets.search.Elasticsearch=md,vv.vcm.widgets.search.ErrorItem=gv,vv.vcm.widgets.search.FeatureItem=Sd,vv.vcm.widgets.search.LayerItem=jd,vv.vcm.widgets.search.Nominatim=id,vv.vcm.widgets.search.ResultItem=Od,vv.vcm.widgets.search.Search=Dd,vv.vcm.widgets.search.middleware={},vv.vcm.widgets.search.middleware.Near=Ld,vv.vcm.widgets.search.middleware.Tags=vd,vv.vcm.widgets.swipeTool={},vv.vcm.widgets.swipeTool.SwipeTool=_g,vv.vcm.widgets.viewshed={},vv.vcm.widgets.viewshed.Viewshed=Fy,vv.vcm.widgets.viewshed.ViewshedInteraction=pv,vv.vcm.widgets.viewshed.createViewshedInstance=Ay}]);