/************************************************************************************ * Project: virtualcityMAP * Copyright © 2011-2019 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=899)})([function(e,t,i){"use strict";i.d(t,"a",function(){return s});var n=i(89),r=i.n(n);function a(e,t){for(var i=0;i>>0,n=0;n0)for(i=0;i0?"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=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}/,ye=/\d{4}/,ge=/[+-]?\d{6}/,ve=/\d\d?/,pe=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,be=/\d{1,3}/,Le=/\d{1,4}/,Me=/[+-]?\d{1,6}/,ke=/\d+/,we=/[+-]?\d+/,Te=/Z|[+-]\d\d:?\d\d/gi,Se=/Z|[+-]\d\d(?::?\d\d)?/gi,Oe=/[+-]?\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,Ee={};function Ie(e,t,i){Ee[e]=P(t)?t:function(e,n){return e&&i?i:t}}function De(e,t){return m(Ee,e)?Ee[e](t._strict,t._locale):new RegExp(je(e))}function je(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 Ye={};function xe(e,t){var i,n=t;for("string"===typeof e&&(e=[e]),u(t)&&(n=function(e,i){i[t]=S(e)}),i=0;i68?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=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 Mt(e,t,i){var n=7+t-i,r=(7+Lt(e,0,n).getUTCDay()-t)%7;return-r+n-1}function kt(e,t,i,n,r){var a,s,o=(7+i-n)%7,l=Mt(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 wt(e,t,i){var n,r,a=Mt(e.year(),t,i),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?(r=e.year()-1,n=s+Tt(r,t,i)):s>Tt(e.year(),t,i)?(n=s-Tt(e.year(),t,i),r=e.year()+1):(r=e.year(),n=s),{week:n,year:r}}function Tt(e,t,i){var n=Mt(e,t,i),r=Mt(e+1,t,i);return(qe(e)-n+r)/7}function St(e){return wt(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),Ie("w",ve),Ie("ww",ve,me),Ie("W",ve),Ie("WW",ve,me),Ae(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=S(e)});var Ot={dow:0,doy:6};function Ct(){return this._week.dow}function Et(){return this._week.doy}function It(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Dt(e){var t=wt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function jt(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 Yt(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),Ie("d",ve),Ie("e",ve),Ie("E",ve),Ie("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ie("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ie("dddd",function(e,t){return t.weekdaysRegex(e)}),Ae(["dd","ddd","dddd"],function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);null!=r?t.d=r:v(i).invalidWeekday=e}),Ae(["d","e","E"],function(e,t,i,n){t[n]=S(e)});var xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function At(e,t){var i=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Yt(i,this._week.dow):e?i[e.day()]:i}var Ft="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Nt(e){return!0===e?Yt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}var Ht="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Rt(e){return!0===e?Yt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zt(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=y([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 Gt(e,t,i){var n,r,a;if(this._weekdaysParseExact)return zt.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=y([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 Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=jt(e,this.localeData()),this.add(e-t,"d")):t}function Bt(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=y([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),Ie("a",ii),Ie("A",ii),Ie("H",ve),Ie("h",ve),Ie("k",ve),Ie("HH",ve,me),Ie("hh",ve,me),Ie("kk",ve,me),Ie("hmm",pe),Ie("hmmss",_e),Ie("Hmm",pe),Ie("Hmmss",_e),xe(["H","HH"],ze),xe(["k","kk"],function(e,t,i){var n=S(e);t[ze]=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[ze]=S(e),v(i).bigHour=!0}),xe("hmm",function(e,t,i){var n=e.length-2;t[ze]=S(e.substr(0,n)),t[Ge]=S(e.substr(n)),v(i).bigHour=!0}),xe("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[ze]=S(e.substr(0,n)),t[Ge]=S(e.substr(n,2)),t[Ve]=S(e.substr(r)),v(i).bigHour=!0}),xe("Hmm",function(e,t,i){var n=e.length-2;t[ze]=S(e.substr(0,n)),t[Ge]=S(e.substr(n))}),xe("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[ze]=S(e.substr(0,n)),t[Ge]=S(e.substr(n,2)),t[Ve]=S(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:F,longDateFormat:H,invalidDate:z,ordinal:V,dayOfMonthOrdinalParse:B,relativeTime:W,months:st,monthsShort:lt,week:Ot,weekdays:xt,weekdaysMin:Ht,weekdaysShort:Ft,meridiemParse:ri},ci={},ui={};function hi(e){return e?e.toLowerCase().replace("_","-"):e}function di(e){var t,i,n,r,a=0;while(a0){if(n=mi(r.slice(0,t).join("-")),n)return n;if(i&&i.length>=t&&O(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(639)("./"+t),fi(n)}catch(r){}return ci[t]}function fi(e,t){var i;return e&&(i=c(t)?vi(e):yi(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 yi(e,t){if(null!==t){var i,n=li;if(t.abbr=e,null!=ci[e])j("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 A(x(n,t)),ui[e]&&ui[e].forEach(function(e){yi(e.name,e.config)}),fi(e),ci[e]}return delete ci[e],null}function gi(e,t){if(null!=t){var i,n,r=li;n=mi(e),null!=n&&(r=n._config),t=x(r,t),i=new A(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 vi(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 pi(){return I(ci)}function _i(e){var t,i=e._a;return i&&-2===v(e).overflow&&(t=i[He]<0||i[He]>11?He:i[Re]<1||i[Re]>rt(i[Ne],i[He])?Re:i[ze]<0||i[ze]>24||24===i[ze]&&(0!==i[Ge]||0!==i[Ve]||0!==i[Be])?ze:i[Ge]<0||i[Ge]>59?Ge:i[Ve]<0||i[Ve]>59?Ve:i[Be]<0||i[Be]>999?Be:-1,v(e)._overflowDayOfYear&&(tRe)&&(t=Re),v(e)._overflowWeeks&&-1===t&&(t=Ue),v(e)._overflowWeekday&&-1===t&&(t=We),v(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 Mi(e){var t,i,n,r,a,s=[];if(!e._d){for(n=Li(e),e._w&&null==e._a[Re]&&null==e._a[He]&&ki(e),null!=e._dayOfYear&&(a=bi(e._a[Ne],n[Ne]),(e._dayOfYear>qe(a)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),i=Lt(a,0,e._dayOfYear),e._a[He]=i.getUTCMonth(),e._a[Re]=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[ze]&&0===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Be]&&(e._nextDay=!0,e._a[ze]=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[ze]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==r&&(v(e).weekdayMismatch=!0)}}function ki(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[Ne],wt(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=wt(Ji(),a,s);i=bi(t.gg,e._a[Ne],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>Tt(i,a,s)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(o=kt(i,n,r,a,s),e._a[Ne]=o.year,e._dayOfYear=o.dayOfYear)}var wi=/^\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=/^\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)?)?$/,Si=/Z|[+-]\d\d(?::?\d\d)?/,Oi=[["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/]],Ei=/^\/?Date\((\-?\d+)/i;function Ii(e){var t,i,n,r,a,s,o=e._i,l=wi.exec(o)||Ti.exec(o);if(l){for(v(e).iso=!0,t=0,i=Oi.length;t0&&v(e).unusedInput.push(s),o=o.slice(o.indexOf(i)+i.length),c+=i.length),se[a]?(i?v(e).empty=!1:v(e).unusedTokens.push(a),Fe(a,i,e)):e._strict&&!i&&v(e).unusedTokens.push(a);v(e).charsLeftOver=l-c,o.length>0&&v(e).unusedInput.push(o),e._a[ze]<=12&&!0===v(e).bigHour&&e._a[ze]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[ze]=zi(e._locale,e._a[ze],e._meridiem),Mi(e),_i(e)}else Ni(e);else Ii(e)}function zi(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 Gi(e){var t,i,n,r,a;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?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;nthis.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?y(e._a):Ji(e._a);this._isDSTShifted=this.isValid()&&O(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Mn(){return!!this.isValid()&&!this._isUTC}function kn(){return!!this.isValid()&&this._isUTC}function wn(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}r.updateOffset=function(){};var Tn=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Sn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function On(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=Tn.exec(e))?(i="-"===s[1]?-1:1,a={y:0,d:S(s[Re])*i,h:S(s[ze])*i,m:S(s[Ge])*i,s:S(s[Ve])*i,ms:S(ln(1e3*s[Be]))*i}):(s=Sn.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=In(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 En(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 In(e,t){var i;return e.isValid()&&t.isValid()?(t=dn(t,e),e.isBefore(t)?i=En(e,t):(i=En(t,e),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Dn(e,t){return function(i,n){var r,a;return null===n||isNaN(+n)||(j(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=On(i,n),jn(this,r,e),this}}function jn(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))}On.fn=sn.prototype,On.invalid=an;var Pn=Dn(1,"add"),Yn=Dn(-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 An(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 Fn(){return new k(this)}function Nn(e,t){var i=w(e)?e:Ji(e);return!(!this.isValid()||!i.isValid())&&(t=Q(t)||"millisecond","millisecond"===t?this.valueOf()>i.valueOf():i.valueOf()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()&&(w(e)&&e.isValid()||Ji(e).isValid())?On({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()&&(w(e)&&e.isValid()||Ji(e).isValid())?On({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=vi(e),null!=t&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tr=E("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 yr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function gr(){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 vr(){return this.isValid()?this.toISOString():null}function pr(){return p(this)}function _r(){return f({},v(this))}function br(){return v(this).overflow}function Lr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Mr(e,t){oe(0,[e,e.length],0,t)}function kr(e){return Or.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function wr(e){return Or.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Tr(){return Tt(this.year(),1,4)}function Sr(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function Or(e,t,i,n,r){var a;return null==e?wt(this,n,r).year:(a=Tt(e,n,r),t>a&&(t=a),Cr.call(this,e,t,i,n,r))}function Cr(e,t,i,n,r){var a=kt(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 Er(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}),Mr("gggg","weekYear"),Mr("ggggg","weekYear"),Mr("GGGG","isoWeekYear"),Mr("GGGGG","isoWeekYear"),Z("weekYear","gg"),Z("isoWeekYear","GG"),ee("weekYear",1),ee("isoWeekYear",1),Ie("G",we),Ie("g",we),Ie("GG",ve,me),Ie("gg",ve,me),Ie("GGGG",Le,ye),Ie("gggg",Le,ye),Ie("GGGGG",Me,ge),Ie("ggggg",Me,ge),Ae(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=S(e)}),Ae(["gg","GG"],function(e,t,i,n){t[n]=r.parseTwoDigitYear(e)}),oe("Q",0,"Qo","quarter"),Z("quarter","Q"),ee("quarter",7),Ie("Q",de),xe("Q",function(e,t){t[He]=3*(S(e)-1)}),oe("D",["DD",2],"Do","date"),Z("date","D"),ee("date",9),Ie("D",ve),Ie("DD",ve,me),Ie("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),xe(["D","DD"],Re),xe("Do",function(e,t){t[Re]=S(e.match(ve)[0])});var Ir=Xe("Date",!0);function Dr(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),Ie("DDD",be),Ie("DDDD",fe),xe(["DDD","DDDD"],function(e,t,i){i._dayOfYear=S(e)}),oe("m",["mm",2],0,"minute"),Z("minute","m"),ee("minute",14),Ie("m",ve),Ie("mm",ve,me),xe(["m","mm"],Ge);var jr=Xe("Minutes",!1);oe("s",["ss",2],0,"second"),Z("second","s"),ee("second",15),Ie("s",ve),Ie("ss",ve,me),xe(["s","ss"],Ve);var Pr,Yr=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),Ie("S",be,de),Ie("SS",be,me),Ie("SSS",be,fe),Pr="SSSS";Pr.length<=9;Pr+="S")Ie(Pr,ke);function xr(e,t){t[Be]=S(1e3*("0."+e))}for(Pr="S";Pr.length<=9;Pr+="S")xe(Pr,xr);var Ar=Xe("Milliseconds",!1);function Fr(){return this._isUTC?"UTC":""}function Nr(){return this._isUTC?"Coordinated Universal Time":""}oe("z",0,0,"zoneAbbr"),oe("zz",0,0,"zoneName");var Hr=k.prototype;function Rr(e){return Ji(1e3*e)}function zr(){return Ji.apply(null,arguments).parseZone()}function Gr(e){return e}Hr.add=Pn,Hr.calendar=An,Hr.clone=Fn,Hr.diff=Bn,Hr.endOf=hr,Hr.format=Kn,Hr.from=Zn,Hr.fromNow=Qn,Hr.to=Xn,Hr.toNow=$n,Hr.get=tt,Hr.invalidAt=br,Hr.isAfter=Nn,Hr.isBefore=Hn,Hr.isBetween=Rn,Hr.isSame=zn,Hr.isSameOrAfter=Gn,Hr.isSameOrBefore=Vn,Hr.isValid=pr,Hr.lang=tr,Hr.locale=er,Hr.localeData=ir,Hr.max=Zi,Hr.min=Ki,Hr.parsingFlags=_r,Hr.set=it,Hr.startOf=ur,Hr.subtract=Yn,Hr.toArray=yr,Hr.toObject=gr,Hr.toDate=fr,Hr.toISOString=qn,Hr.inspect=Jn,Hr.toJSON=vr,Hr.toString=Wn,Hr.unix=mr,Hr.valueOf=dr,Hr.creationData=Lr,Hr.year=Ze,Hr.isLeapYear=Qe,Hr.weekYear=kr,Hr.isoWeekYear=wr,Hr.quarter=Hr.quarters=Er,Hr.month=mt,Hr.daysInMonth=ft,Hr.week=Hr.weeks=It,Hr.isoWeek=Hr.isoWeeks=Dt,Hr.weeksInYear=Sr,Hr.isoWeeksInYear=Tr,Hr.date=Ir,Hr.day=Hr.days=Vt,Hr.weekday=Bt,Hr.isoWeekday=Ut,Hr.dayOfYear=Dr,Hr.hour=Hr.hours=oi,Hr.minute=Hr.minutes=jr,Hr.second=Hr.seconds=Yr,Hr.millisecond=Hr.milliseconds=Ar,Hr.utcOffset=fn,Hr.utc=gn,Hr.local=vn,Hr.parseZone=pn,Hr.hasAlignedHourOffset=_n,Hr.isDST=bn,Hr.isLocal=Mn,Hr.isUtcOffset=kn,Hr.isUtc=wn,Hr.isUTC=wn,Hr.zoneAbbr=Fr,Hr.zoneName=Nr,Hr.dates=E("dates accessor is deprecated. Use date instead.",Ir),Hr.months=E("months accessor is deprecated. Use month instead",mt),Hr.years=E("years accessor is deprecated. Use year instead",Ze),Hr.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yn),Hr.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ln);var Vr=A.prototype;function Br(e,t,i,n){var r=vi(),a=y().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 Br(e,t,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Br(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=vi(),s=e?a._week.dow:0;if(null!=i)return Br(t,(i+s)%7,n,"day");var o=[];for(r=0;r<7;r++)o[r]=Br(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")}Vr.calendar=N,Vr.longDateFormat=R,Vr.invalidDate=G,Vr.ordinal=U,Vr.preparse=Gr,Vr.postformat=Gr,Vr.relativeTime=q,Vr.pastFuture=J,Vr.set=Y,Vr.months=ot,Vr.monthsShort=ct,Vr.monthsParse=ht,Vr.monthsRegex=pt,Vr.monthsShortRegex=gt,Vr.week=St,Vr.firstDayOfYear=Et,Vr.firstDayOfWeek=Ct,Vr.weekdays=At,Vr.weekdaysMin=Rt,Vr.weekdaysShort=Nt,Vr.weekdaysParse=Gt,Vr.weekdaysRegex=qt,Vr.weekdaysShortRegex=Kt,Vr.weekdaysMinRegex=Qt,Vr.isPM=ni,Vr.meridiem=ai,fi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,i=1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}}),r.lang=E("moment.lang is deprecated. Use moment.locale instead.",fi),r.langData=E("moment.langData is deprecated. Use moment.localeData instead.",vi);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=On(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=T(a/1e3),l.seconds=e%60,t=T(e/60),l.minutes=t%60,i=T(t/60),l.hours=i%24,s+=T(i/24),r=T(aa(s)),o+=r,s-=na(sa(r)),n=T(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*S(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"),ya=ca("w"),ga=ca("M"),va=ca("Q"),pa=ca("y");function _a(){return On(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 Ma=La("milliseconds"),ka=La("seconds"),wa=La("minutes"),Ta=La("hours"),Sa=La("days"),Oa=La("months"),Ca=La("years");function Ea(){return T(this.days()/7)}var Ia=Math.round,Da={ss:44,s:45,m:45,h:22,d:26,M:11};function ja(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}function Pa(e,t,i){var n=On(e).abs(),r=Ia(n.as("s")),a=Ia(n.as("m")),s=Ia(n.as("h")),o=Ia(n.as("d")),l=Ia(n.as("M")),c=Ia(n.as("y")),u=r<=Da.ss&&["s",r]||r0,u[4]=i,ja.apply(null,u)}function Ya(e){return void 0===e?Ia:"function"===typeof e&&(Ia=e,!0)}function xa(e,t){return void 0!==Da[e]&&(void 0===t?Da[e]:(Da[e]=t,"s"===e&&(Da.ss=t-1),!0))}function Aa(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 Fa=Math.abs;function Na(e){return(e>0)-(e<0)||+e}function Ha(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n=Fa(this._milliseconds)/1e3,r=Fa(this._days),a=Fa(this._months);e=T(n/60),t=T(e/60),n%=60,e%=60,i=T(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=Na(this._months)!==Na(d)?"-":"",y=Na(this._days)!==Na(d)?"-":"",g=Na(this._milliseconds)!==Na(d)?"-":"";return m+"P"+(s?f+s+"Y":"")+(o?f+o+"M":"")+(l?y+l+"D":"")+(c||u||h?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(h?g+h+"S":"")}var Ra=sn.prototype;return Ra.isValid=rn,Ra.abs=$r,Ra.add=ta,Ra.subtract=ia,Ra.as=oa,Ra.asMilliseconds=ua,Ra.asSeconds=ha,Ra.asMinutes=da,Ra.asHours=ma,Ra.asDays=fa,Ra.asWeeks=ya,Ra.asMonths=ga,Ra.asQuarters=va,Ra.asYears=pa,Ra.valueOf=la,Ra._bubble=ra,Ra.clone=_a,Ra.get=ba,Ra.milliseconds=Ma,Ra.seconds=ka,Ra.minutes=wa,Ra.hours=Ta,Ra.days=Sa,Ra.weeks=Ea,Ra.months=Oa,Ra.years=Ca,Ra.humanize=Aa,Ra.toISOString=Ha,Ra.toString=Ha,Ra.toJSON=Ha,Ra.locale=er,Ra.localeData=ir,Ra.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ha),Ra.lang=tr,oe("X",0,0,"unix"),oe("x",0,0,"valueOf"),Ie("x",we),Ie("X",Oe),xe("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e,10))}),xe("x",function(e,t,i){i._d=new Date(S(e))}),r.version="2.24.0",a(Ji),r.fn=Hr,r.min=Xi,r.max=$i,r.now=en,r.utc=y,r.unix=Rr,r.months=qr,r.isDate=h,r.locale=fi,r.invalid=_,r.duration=On,r.isMoment=w,r.weekdays=Kr,r.parseZone=zr,r.localeData=vi,r.isDuration=on,r.monthsShort=Jr,r.weekdaysMin=Qr,r.defineLocale=yi,r.updateLocale=gi,r.locales=pi,r.weekdaysShort=Zr,r.normalizeUnits=Q,r.relativeTimeRounding=Ya,r.relativeTimeThreshold=xa,r.calendarFormat=xn,r.prototype=Hr,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(638)(e))},function(e,t,i){for(var n=i(351),r=i(71),a=i(43),s=i(17),o=i(45),l=i(80),c=i(16),u=c("iterator"),h=c("toStringTag"),d=l.Array,m={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=r(m),y=0;y1?arguments[1]:void 0)}}),i(87)(a)},function(e,t,i){"use strict";var n=i(17),r=i(46),a=i(85),s=i(130),o=i(91),l=i(21),c=i(77).f,u=i(106).f,h=i(24).f,d=i(157).trim,m="Number",f=n[m],y=f,g=f.prototype,v=a(i(92)(g))==m,p="trim"in String.prototype,_=function(e){var t=o(e,!1);if("string"==typeof t&&t.length>2){t=p?t.trim():d(t,3);var i,n,r,a=t.charCodeAt(0);if(43===a||45===a){if(i=t.charCodeAt(2),88===i||120===i)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+t}for(var s,l=t.slice(2),c=0,u=l.length;cr)return NaN;return parseInt(l,n)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof f&&(v?l(function(){g.valueOf.call(i)}):a(i)!=m)?s(new y(_(t)),i,f):_(t)};for(var b,L=i(20)?c(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),M=0;L.length>M;M++)r(y,b=L[M])&&!r(f,b)&&h(f,b,u(y,b));f.prototype=g,g.constructor=f,i(43)(n,m,f)}},function(e,t,i){"use strict";var n=i(113),r=i.n(n);function a(e){if(r()(e))return e}var s=i(343),o=i.n(s);function l(e,t){var i=[],n=!0,r=!1,a=void 0;try{for(var s,l=o()(e);!(n=(s=l.next()).done);n=!0)if(i.push(s.value),t&&i.length===t)break}catch(c){r=!0,a=c}finally{try{n||null==l["return"]||l["return"]()}finally{if(r)throw a}}return i}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(e,t){return a(e)||l(e,t)||c()}i.d(t,"a",function(){return u})},function(e,t,i){var n=i(17),r=i(82),a=i(45),s=i(43),o=i(76),l="prototype",c=function(e,t,i){var u,h,d,m,f=e&c.F,y=e&c.G,g=e&c.S,v=e&c.P,p=e&c.B,_=y?n:g?n[t]||(n[t]={}):(n[t]||{})[l],b=y?r:r[t]||(r[t]={}),L=b[l]||(b[l]={});for(u in y&&(i=t),i)h=!f&&_&&void 0!==_[u],d=(h?_:i)[u],m=p&&h?o(d,n):v&&"function"==typeof d?o(Function.call,d):d,_&&s(_,u,d,e&c.U),b[u]!=d&&a(b,u,m),v&&L[u]!=d&&(L[u]=d)};n.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,i){var n=i(120)("wks"),r=i(68),a=i(17).Symbol,s="function"==typeof a,o=e.exports=function(e){return n[e]||(n[e]=s&&a[e]||(s?a:r)("Symbol."+e))};o.store=n},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(154),r=i.n(n),a=i(50),s=i.n(a);function o(e){return o="function"===typeof s.a&&"symbol"===typeof r.a?function(e){return typeof e}:function(e){return e&&"function"===typeof s.a&&e.constructor===s.a&&e!==s.a.prototype?"symbol":typeof e},o(e)}function l(e){return l="function"===typeof s.a&&"symbol"===o(r.a)?function(e){return o(e)}:function(e){return e&&"function"===typeof s.a&&e.constructor===s.a&&e!==s.a.prototype?"symbol":o(e)},l(e)}},function(e,t){var i=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=i)},function(e,t,i){e.exports=!i(21)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,i){"use strict";var n=i(613)(!0);i(147)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,i=this._i;return i>=t.length?{value:void 0,done:!0}:(e=n(t,i),this._i+=e.length,{value:e,done:!1})})},,function(e,t,i){var n=i(42),r=i(173),a=i(91),s=Object.defineProperty;t.f=i(20)?Object.defineProperty:function(e,t,i){if(n(e),t=a(t,!0),n(i),r)try{return s(e,t,i)}catch(o){}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){i(98)("replace",2,function(e,t,i){return[function(n,r){"use strict";var a=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,a,r):i.call(String(a),n,r)},i]})},function(e,t,i){var n=i(15),r=i(202)(!1);n(n.S,"Object",{values:function(e){return r(e)}})},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(7),i(4),i(11),i(12);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(141)("wks"),r=i(110),a=i(36).Symbol,s="function"==typeof a,o=e.exports=function(e){return n[e]||(n[e]=s&&a[e]||(s?a:r)("Symbol."+e))};o.store=n},function(e,t,i){"use strict";var n=i(15),r=i(156)(!0);n(n.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i(87)("includes")},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(112),i(12);var n=i(14),r=(i(4),i(27));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);sa?(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],y=m[1],g=Object(n["a"])(d[1],2),v=g[0],p=g[1],_={x:null,y:null,onLine1:!1,onLine2:!1},b=(p-y)*(u-o)-(v-f)*(h-l);if(0===b)return _;i=l-y,r=o-f;var L=(v-f)*i-(p-y)*r,M=(u-o)*i-(h-l)*r;return i=L/b,r=M/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;d5)){var b=[c[f][0]-c[y][0],c[f][1]-c[y][1]],L=[c[y][0]-c[f][0],c[y][1]-c[f][1]],M=o(v,b);if(null!=M){var k=o(v,L);if(null!=k){var w=a(c[f],c[y]);if(0!==w){var T=a(c[f],[g.x,g.y])/w,S=0;0!==T&&(S=o(L,[g.x-c[f][0],g.y-c[f][1]]),null==S)||m.push({cornerPoint:d,intrX:g.x,intrY:g.y,angle:M<=k?M:k,edgeStart:f,edgeEnd:y,ratioStart2End:S/Math.PI*180>5?-1*T:T})}}}}}}}for(var O=-1,C=-1,E=0;EO&&(O=m[E].angle,C=E);-1!==C&&h.push(m[C])}if(h.length<2)return null;for(var I=[],D=0;D2&&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])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){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t,i){"use strict";i(353);var n=i(42),r=i(148),a=i(20),s="toString",o=/./[s],l=function(e){i(43)(RegExp.prototype,s,e,!0)};i(21)(function(){return"/a/b"!=o.call({source:"a",flags:"b"})})?l(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?r.call(e):void 0)}):o.name!=s&&l(function(){return o.call(this)})},function(e,t,i){"use strict";var n=i(207),r=i(619),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 y(e){return"[object File]"===a.call(e)}function g(e){return"[object Blob]"===a.call(e)}function v(e){return"[object Function]"===a.call(e)}function p(e){return m(e)&&v(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 M(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var i=0,n=e.length;i0&&(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),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;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){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t,i){"use strict";var n=i(15),r=i(191),a="includes";n(n.P+n.F*i(192)(a),"String",{includes:function(e){return!!~r(this,e,a).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},,function(e,t,i){var n=i(121)("wks"),r=i(123),a=i(31).Symbol,s="function"==typeof a,o=e.exports=function(e){return n[e]||(n[e]=s&&a[e]||(s?a:r)("Symbol."+e))};o.store=n},function(e,t,i){"use strict";var n=i(15),r=i(164)(6),a="findIndex",s=!0;a in[]&&Array(1)[a](function(){s=!1}),n(n.P+n.F*s,"Array",{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i(87)(a)},,function(e,t,i){var n=i(35);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,i){var n=i(17),r=i(45),a=i(46),s=i(68)("src"),o="toString",l=Function[o],c=(""+l).split(o);i(82).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,i,o){var l="function"==typeof i;l&&(a(i,"name")||r(i,"name",t)),e[t]!==i&&(l&&(a(i,s)||r(i,s,e[t]?""+e[t]:c.join(String(t)))),e===n?e[t]=i:o?e[t]?e[t]=i:r(e,t,i):(delete e[t],r(e,t,i)))})(Function.prototype,o,function(){return"function"==typeof this&&this[s]||l.call(this)})},function(e,t,i){i(98)("split",2,function(e,t,n){"use strict";var r=i(134),a=n,s=[].push,o="split",l="length",c="lastIndex";if("c"=="abbc"[o](/(b)*/)[1]||4!="test"[o](/(?:)/,-1)[l]||2!="ab"[o](/(?:ab)*/)[l]||4!="."[o](/(.?)(.?)/)[l]||"."[o](/()()/)[l]>1||""[o](/.?/)[l]){var u=void 0===/()??/.exec("")[1];n=function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return a.call(i,e,t);var n,o,h,d,m,f=[],y=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,y+"g");u||(n=new RegExp("^"+p.source+"$(?!\\s)",y));while(o=p.exec(i)){if(h=o.index+o[0][l],h>g&&(f.push(i.slice(g,o.index)),!u&&o[l]>1&&o[0].replace(n,function(){for(m=1;m1&&o.index=v))break;p[c]===o.index&&p[c]++}return g===i[l]?!d&&p.test("")||f.push(""):f.push(i.slice(g)),f[l]>v?f.slice(0,v):f}}else"0"[o](void 0,0)[l]&&(n=function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)});return[function(i,r){var a=e(this),s=void 0==i?void 0:i[t];return void 0!==s?s.call(i,a,r):n.call(String(a),i,r)},n]})},function(e,t,i){var n=i(24),r=i(81);e.exports=i(20)?function(e,t,i){return n.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){var n=i(36),r=i(19),a=i(108),s=i(62),o=i(53),l="prototype",c=function(e,t,i){var u,h,d,m=e&c.F,f=e&c.G,y=e&c.S,g=e&c.P,v=e&c.B,p=e&c.W,_=f?r:r[t]||(r[t]={}),b=_[l],L=f?n:y?n[t]:(n[t]||{})[l];for(u in f&&(i=t),i)h=!m&&L&&void 0!==L[u],h&&o(_,u)||(d=h?L[u]:i[u],_[u]=f&&"function"!=typeof L[u]?i[u]:v&&h?a(d,n):p&&L[u]==d?function(e){var t=function(t,i,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,n)}return e.apply(this,arguments)};return t[l]=e[l],t}(d):g&&"function"==typeof d?a(Function.call,d):d,g&&((_.virtual||(_.virtual={}))[u]=d,e&c.R&&b&&!b[u]&&s(b,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,i){var n=i(51);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,i){var n=i(48),r=i(194),a=i(137),s=Object.defineProperty;t.f=i(56)?Object.defineProperty:function(e,t,i){if(n(e),t=a(t,!0),n(i),r)try{return s(e,t,i)}catch(o){}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){e.exports=i(592)},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){var n=i(189),r=i(57);e.exports=function(e){return n(r(e))}},function(e,t,i){e.exports=!i(86)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},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(84);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,i){var n=i(78),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},function(e,t,i){var n=i(15);n(n.P,"Array",{fill:i(206)}),i(87)("fill")},,function(e,t,i){var n=i(49),r=i(79);e.exports=i(56)?function(e,t,i){return n.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var n=i(586),r=i(136);e.exports=function(e){return n(r(e))}},function(e,t,i){var n=i(15),r=i(17).isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&r(e)}})},,function(e,t,i){"use strict";var n,r=i(701),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,i){i(98)("search",1,function(e,t,i){return[function(i){"use strict";var n=e(this),r=void 0==i?void 0:i[t];return void 0!==r?r.call(i,n):new RegExp(i)[t](String(n))},i]})},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+n).toString(36))}},function(e,t){var i=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=i)},function(e,t,i){e.exports=!i(124)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,i){var n=i(190),r=i(133);e.exports=Object.keys||function(e){return n(e,r)}},function(e,t){e.exports={}},function(e,t,i){var n=i(57);e.exports=function(e){return Object(n(e))}},function(e,t,i){i(203)("asyncIterator")},function(e,t,i){"use strict";var n=i(17),r=i(46),a=i(20),s=i(15),o=i(43),l=i(149).KEY,c=i(21),u=i(120),h=i(95),d=i(68),m=i(16),f=i(204),y=i(203),g=i(614),v=i(201),p=i(42),_=i(35),b=i(55),L=i(91),M=i(81),k=i(92),w=i(615),T=i(106),S=i(24),O=i(71),C=T.f,E=S.f,I=w.f,D=n.Symbol,j=n.JSON,P=j&&j.stringify,Y="prototype",x=m("_hidden"),A=m("toPrimitive"),F={}.propertyIsEnumerable,N=u("symbol-registry"),H=u("symbols"),R=u("op-symbols"),z=Object[Y],G="function"==typeof D,V=n.QObject,B=!V||!V[Y]||!V[Y].findChild,U=a&&c(function(){return 7!=k(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,i){var n=C(z,t);n&&delete z[t],E(e,t,i),n&&e!==z&&E(z,t,n)}:E,W=function(e){var t=H[e]=k(D[Y]);return t._k=e,t},q=G&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},J=function(e,t,i){return e===z&&J(R,t,i),p(e),t=L(t,!0),p(i),r(H,t)?(i.enumerable?(r(e,x)&&e[x][t]&&(e[x][t]=!1),i=k(i,{enumerable:M(0,!1)})):(r(e,x)||E(e,x,M(1,{})),e[x][t]=!0),U(e,t,i)):E(e,t,i)},K=function(e,t){p(e);var i,n=g(t=b(t)),r=0,a=n.length;while(a>r)J(e,i=n[r++],t[i]);return e},Z=function(e,t){return void 0===t?k(e):K(k(e),t)},Q=function(e){var t=F.call(this,e=L(e,!0));return!(this===z&&r(H,e)&&!r(R,e))&&(!(t||!r(this,e)||!r(H,e)||r(this,x)&&this[x][e])||t)},X=function(e,t){if(e=b(e),t=L(t,!0),e!==z||!r(H,t)||r(R,t)){var i=C(e,t);return!i||!r(H,t)||r(e,x)&&e[x][t]||(i.enumerable=!0),i}},$=function(e){var t,i=I(b(e)),n=[],a=0;while(i.length>a)r(H,t=i[a++])||t==x||t==l||n.push(t);return n},ee=function(e){var t,i=e===z,n=I(i?R:b(e)),a=[],s=0;while(n.length>s)!r(H,t=n[s++])||i&&!r(z,t)||a.push(H[t]);return a};G||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(i){this===z&&t.call(R,i),r(this,x)&&r(this[x],e)&&(this[x][e]=!1),U(this,e,M(1,i))};return a&&B&&U(z,e,{configurable:!0,set:t}),W(e)},o(D[Y],"toString",function(){return this._k}),T.f=X,S.f=J,i(77).f=w.f=$,i(107).f=Q,i(167).f=ee,a&&!i(111)&&o(z,"propertyIsEnumerable",Q,!0),f.f=function(e){return W(m(e))}),s(s.G+s.W+s.F*!G,{Symbol:D});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;te.length>ie;)m(te[ie++]);for(var ne=O(m.store),re=0;ne.length>re;)y(ne[re++]);s(s.S+s.F*!G,"Symbol",{for:function(e){return r(N,e+="")?N[e]:N[e]=D(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in N)if(N[t]===e)return t},useSetter:function(){B=!0},useSimple:function(){B=!1}}),s(s.S+s.F*!G,"Object",{create:Z,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:ee}),j&&s(s.S+s.F*(!G||c(function(){var e=D();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){var t,i,n=[e],r=1;while(arguments.length>r)n.push(arguments[r++]);if(i=t=n[1],(_(t)||void 0!==e)&&!q(e))return v(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!q(t))return t}),n[1]=t,P.apply(j,n)}}),D[Y][A]||i(45)(D[Y],A,D[Y].valueOf),h(D,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,i){var n=i(155);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){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(190),r=i(133).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},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,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var i=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=i)},function(e,t,i){var n=i(99),r=i(175);e.exports=i(70)?function(e,t,i){return n.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,i){var n=i(16)("unscopables"),r=Array.prototype;void 0==r[n]&&i(45)(r,n,{}),e.exports=function(e){r[n][e]=!0}},function(e,t,i){i(98)("match",1,function(e,t,i){return[function(i){"use strict";var n=e(this),r=void 0==i?void 0:i[t];return void 0!==r?r.call(i,n):new RegExp(i)[t](String(n))},i]})},function(e,t,i){e.exports=i(608)},,function(e,t,i){var n=i(35);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,i){var n=i(42),r=i(580),a=i(133),s=i(132)("IE_PROTO"),o=function(){},l="prototype",c=function(){var e,t=i(174)("iframe"),n=a.length,r="<",s=">";t.style.display="none",i(581).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+s+"document.F=Object"+r+"/script"+s),e.close(),c=e.F;while(n--)delete c[l][a[n]];return c()};e.exports=Object.create||function(e,t){var i;return null!==e?(o[l]=n(e),i=new o,o[l]=null,i[s]=e):i=c(),void 0===t?i:r(i,t)}},function(e,t,i){"use strict";var n=i(583)(!0);i(193)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,i=this._i;return i>=t.length?{value:void 0,done:!0}:(e=n(t,i),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=!0},function(e,t,i){var n=i(24).f,r=i(46),a=i(16)("toStringTag");e.exports=function(e,t,i){e&&!r(e=i?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t,i){"use strict";var n=i(354),r=i(170),a="Map";e.exports=i(358)(a,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(r(this,a),e);return t&&t.v},set:function(e,t){return n.def(r(this,a),0===e?0:e,t)}},n,!0)},function(e,t,i){var n=i(17),r=i(130),a=i(24).f,s=i(77).f,o=i(134),l=i(148),c=n.RegExp,u=c,h=c.prototype,d=/a/g,m=/a/g,f=new c(d)!==d;if(i(20)&&(!f||i(21)(function(){return m[i(16)("match")]=!1,c(d)!=d||c(m)==m||"/a/i"!=c(d,"i")}))){c=function(e,t){var i=this instanceof c,n=o(e),a=void 0===t;return!i&&n&&e.constructor===c&&a?e:r(f?new u(n&&!a?e.source:e,t):u((n=e instanceof c)?e.source:e,n&&a?l.call(e):t),i?this:h,c)};for(var y=function(e){e in c||a(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},g=s(u),v=0;g.length>v;)y(g[v++]);h.constructor=c,c.prototype=h,i(43)(n,"RegExp",c)}i(169)("RegExp")},function(e,t,i){"use strict";var n=i(45),r=i(43),a=i(21),s=i(57),o=i(16);e.exports=function(e,t,i){var l=o(e),c=i(s,l,""[e]),u=c[0],h=c[1];a(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,u),n(RegExp.prototype,l,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}))}},function(e,t,i){var n=i(58),r=i(549),a=i(550),s=Object.defineProperty;t.f=i(70)?Object.defineProperty:function(e,t,i){if(n(e),t=a(t,!0),n(i),r)try{return s(e,t,i)}catch(o){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t){e.exports={}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var n=i(31),r=i(69),a=i(83),s=i(127),o=i(104),l="prototype",c=function(e,t,i){var u,h,d,m,f=e&c.F,y=e&c.G,g=e&c.S,v=e&c.P,p=e&c.B,_=y?n:g?n[t]||(n[t]={}):(n[t]||{})[l],b=y?r:r[t]||(r[t]={}),L=b[l]||(b[l]={});for(u in y&&(i=t),i)h=!f&&_&&void 0!==_[u],d=(h?_:i)[u],m=p&&h?o(d,n):v&&"function"==typeof d?o(Function.call,d):d,_&&s(_,u,d,e&c.U),b[u]!=d&&a(b,u,m),v&&L[u]!=d&&(L[u]=d)};n.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){var n=i(105);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){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){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){var n=i(107),r=i(81),a=i(55),s=i(91),o=i(46),l=i(173),c=Object.getOwnPropertyDescriptor;t.f=i(20)?c:function(e,t){if(e=a(e),t=s(t,!0),l)try{return c(e,t)}catch(i){}if(o(e,t))return r(!n.f.call(e,t),e[t])}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,i){var n=i(115);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){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){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+n).toString(36))}},function(e,t){e.exports=!1},function(e,t,i){"use strict";var n=i(15),r=i(155),a=i(73),s=i(21),o=[].sort,l=[1,2,3];n(n.P+n.F*(s(function(){l.sort(void 0)})||!s(function(){l.sort(null)})||!i(617)(o)),"Array",{sort:function(e){return void 0===e?o.call(a(this)):o.call(a(this),r(e))}})},function(e,t,i){e.exports=i(599)},function(e,t,i){"use strict";i(12);var n=i(14),r=(i(7),i(1)),a=i(0),s=i(664),o=i.n(s),l=i(647),c=i.n(l),u=i(30),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.currentView=null,this.currentImage=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.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?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){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){var n=i(49).f,r=i(53),a=i(28)("toStringTag");e.exports=function(e,t,i){e&&!r(e=i?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t,i){var n=i(136);e.exports=function(e){return Object(n(e))}},function(e,t,i){i(589);for(var n=i(36),r=i(62),a=i(72),s=i(28)("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l0?n:i)(e)}},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(51);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,i){var n=i(48),r=i(585),a=i(142),s=i(140)("IE_PROTO"),o=function(){},l="prototype",c=function(){var e,t=i(159)("iframe"),n=a.length,r="<",s=">";t.style.display="none",i(346).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+s+"document.F=Object"+r+"/script"+s),e.close(),c=e.F;while(n--)delete c[l][a[n]];return c()};e.exports=Object.create||function(e,t){var i;return null!==e?(o[l]=n(e),i=new o,o[l]=null,i[s]=e):i=c(),void 0===t?i:r(i,t)}},function(e,t,i){var n=i(196),r=i(142);e.exports=Object.keys||function(e){return n(e,r)}},function(e,t,i){var n=i(141)("keys"),r=i(110);e.exports=function(e){return n[e]||(n[e]=r(e))}},function(e,t,i){var n=i(19),r=i(36),a="__core-js_shared__",s=r[a]||(r[a]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:i(94)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,i){t.f=i(28)},function(e,t,i){var n=i(36),r=i(19),a=i(94),s=i(143),o=i(49).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=a?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:s.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,i){var n=i(145),r=i(79),a=i(63),s=i(137),o=i(53),l=i(194),c=Object.getOwnPropertyDescriptor;t.f=i(56)?c:function(e,t){if(e=a(e),t=s(t,!0),l)try{return c(e,t)}catch(i){}if(o(e,t))return r(!n.f.call(e,t),e[t])}},function(e,t,i){"use strict";var n=i(111),r=i(15),a=i(43),s=i(45),o=i(46),l=i(80),c=i(607),u=i(95),h=i(352),d=i(16)("iterator"),m=!([].keys&&"next"in[].keys()),f="@@iterator",y="keys",g="values",v=function(){return this};e.exports=function(e,t,i,p,_,b,L){c(i,t,p);var M,k,w,T=function(e){if(!m&&e in E)return E[e];switch(e){case y:return function(){return new i(this,e)};case g:return function(){return new i(this,e)}}return function(){return new i(this,e)}},S=t+" Iterator",O=_==g,C=!1,E=e.prototype,I=E[d]||E[f]||_&&E[_],D=!m&&I||T(_),j=_?O?T("entries"):D:void 0,P="Array"==t&&E.entries||I;if(P&&(w=h(P.call(new e)),w!==Object.prototype&&w.next&&(u(w,S,!0),n||o(w,d)||s(w,d,v))),O&&I&&I.name!==g&&(C=!0,D=function(){return I.call(this)}),n&&!L||!m&&!C&&E[d]||s(E,d,D),l[t]=D,l[S]=v,_)if(M={values:O?D:T(g),keys:b?D:T(y),entries:j},L)for(k in M)k in E||a(E,k,M[k]);else r(r.P+r.F*(m||C),t,M);return M}},function(e,t,i){"use strict";var n=i(42);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,i){var n=i(68)("meta"),r=i(35),a=i(46),s=i(24).f,o=0,l=Object.isExtensible||function(){return!0},c=!i(21)(function(){return l(Object.preventExtensions({}))}),u=function(e){s(e,n,{value:{i:"O"+ ++o,w:{}}})},h=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,n)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[n].i},d=function(e,t){if(!a(e,n)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[n].w},m=function(e){return c&&f.NEED&&l(e)&&!a(e,n)&&u(e),e},f=e.exports={KEY:n,NEED:!1,fastKey:h,getWeak:d,onFreeze:m}},function(e,t,i){var n=i(43);e.exports=function(e,t,i){for(var r in t)n(e,r,t[r],i);return e}},function(e,t){e.exports=function(e,t,i,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(i+": incorrect invocation!");return e}},function(e,t,i){"use strict";(function(t){var n=i(33),r=i(622),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?e=i(208):"undefined"!==typeof t&&(e=i(208)),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(621))},function(e,t,i){var n=i(15),r=i(202)(!0);n(n.S,"Object",{entries:function(e){return r(e)}})},function(e,t,i){e.exports=i(582)},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){var n=i(55),r=i(59),a=i(131);e.exports=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}}},function(e,t,i){var n=i(15),r=i(57),a=i(21),s=i(158),o="["+s+"]",l="​…",c=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),h=function(e,t,i){var r={},o=a(function(){return!!s[e]()||l[e]()!=l}),c=r[e]=o?t(d):s[e];i&&(r[i]=c),n(n.P+n.F*o,"String",r)},d=h.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};e.exports=h},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,i){var n=i(51),r=i(36).document,a=n(r)&&n(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},function(e,t,i){var n=i(135),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},function(e,t,i){var n=i(53),r=i(117),a=i(140)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,i){var n=i(163),r=i(28)("iterator"),a=i(72);e.exports=i(19).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||a[n(e)]}},function(e,t,i){var n=i(109),r=i(28)("toStringTag"),a="Arguments"==n(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(i){}};e.exports=function(e){var t,i,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=s(t=Object(e),r))?i:a?n(t):"Object"==(o=n(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,i){var n=i(76),r=i(189),a=i(73),s=i(59),o=i(610);e.exports=function(e,t){var i=1==e,l=2==e,c=3==e,u=4==e,h=6==e,d=5==e||h,m=t||o;return function(t,o,f){for(var y,g,v=a(t),p=r(v),_=n(o,f,3),b=s(p.length),L=0,M=i?m(t,b):l?m(t,0):void 0;b>L;L++)if((d||L in p)&&(y=p[L],g=_(y,L,v),e))if(i)M[L]=g;else if(g)switch(e){case 3:return!0;case 5:return y;case 6:return L;case 2:M.push(y)}else if(u)return!1;return h?-1:c||u?u:M}}},function(e,t,i){var n=i(15),r=i(612);n(n.S+n.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(e,t,i){var n=i(15);n(n.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,i){"use strict";var n=i(354),r=i(170),a="Set";e.exports=i(358)(a,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(r(this,a),e=0===e?0:e,e)}},n)},function(e,t,i){"use strict";var n=i(17),r=i(24),a=i(20),s=i(16)("species");e.exports=function(e){var t=n[e];a&&t&&!t[s]&&r.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,i){var n=i(35);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},,,function(e,t,i){e.exports=!i(20)&&!i(21)(function(){return 7!=Object.defineProperty(i(174)("div"),"a",{get:function(){return 7}}).a})},function(e,t,i){var n=i(35),r=i(17).document,a=n(r)&&n(r.createElement);e.exports=function(e){return a?r.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,i){var n=i(101);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},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(557),r=i(181);e.exports=Object.keys||function(e){return n(e,r)}},function(e,t,i){var n=i(180),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){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,i){var n=i(31).document;e.exports=n&&n.documentElement},function(e,t,i){var n=i(177);e.exports=function(e){return Object(n(e))}},function(e,t,i){var n=i(101),r=i(39)("toStringTag"),a="Arguments"==n(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(i){}};e.exports=function(e){var t,i,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=s(t=Object(e),r))?i:a?n(t):"Object"==(o=n(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,i){var n=i(58),r=i(105),a=i(39)("species");e.exports=function(e,t){var i,s=n(e).constructor;return void 0===s||void 0==(i=n(s)[a])?t:r(i)}},function(e,t,i){var n,r,a,s=i(104),o=i(567),l=i(182),c=i(125),u=i(31),h=u.process,d=u.setImmediate,m=u.clearImmediate,f=u.MessageChannel,y=u.Dispatch,g=0,v={},p="onreadystatechange",_=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){_.call(e.data)};d&&m||(d=function(e){var t=[],i=1;while(arguments.length>i)t.push(arguments[i++]);return v[++g]=function(){o("function"==typeof e?e:Function(e),t)},n(g),g},m=function(e){delete v[e]},"process"==i(101)(h)?n=function(e){h.nextTick(s(_,e,1))}:y&&y.now?n=function(e){y.now(s(_,e,1))}:f?(r=new f,a=r.port2,r.port1.onmessage=b,n=s(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):n=p in c("script")?function(e){l.appendChild(c("script"))[p]=function(){l.removeChild(this),_.call(e)}}:function(e){setTimeout(s(_,e,1),0)}),e.exports={set:d,clear:m}},function(e,t,i){"use strict";var n=i(105);function r(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){var n=i(58),r=i(84),a=i(187);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){var n=i(85);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,i){var n=i(46),r=i(55),a=i(156)(!1),s=i(132)("IE_PROTO");e.exports=function(e,t){var i,o=r(e),l=0,c=[];for(i in o)i!=s&&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(134),r=i(57);e.exports=function(e,t,i){if(n(t))throw TypeError("String#"+i+" doesn't accept regex!");return String(r(e))}},function(e,t,i){var n=i(16)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[n]=!1,!"/./"[e](t)}catch(r){}}return!0}},function(e,t,i){"use strict";var n=i(94),r=i(47),a=i(195),s=i(62),o=i(72),l=i(584),c=i(116),u=i(161),h=i(28)("iterator"),d=!([].keys&&"next"in[].keys()),m="@@iterator",f="keys",y="values",g=function(){return this};e.exports=function(e,t,i,v,p,_,b){l(i,t,v);var L,M,k,w=function(e){if(!d&&e in C)return C[e];switch(e){case f:return function(){return new i(this,e)};case y:return function(){return new i(this,e)}}return function(){return new i(this,e)}},T=t+" Iterator",S=p==y,O=!1,C=e.prototype,E=C[h]||C[m]||p&&C[p],I=E||w(p),D=p?S?w("entries"):I:void 0,j="Array"==t&&C.entries||E;if(j&&(k=u(j.call(new e)),k!==Object.prototype&&k.next&&(c(k,T,!0),n||"function"==typeof k[h]||s(k,h,g))),S&&E&&E.name!==y&&(O=!0,I=function(){return E.call(this)}),n&&!b||!d&&!O&&C[h]||s(C,h,I),o[t]=I,o[T]=g,p)if(L={values:S?I:w(y),keys:_?I:w(f),entries:D},b)for(M in L)M in C||a(C,M,L[M]);else r(r.P+r.F*(d||O),t,L);return L}},function(e,t,i){e.exports=!i(56)&&!i(86)(function(){return 7!=Object.defineProperty(i(159)("div"),"a",{get:function(){return 7}}).a})},function(e,t,i){e.exports=i(62)},function(e,t,i){var n=i(53),r=i(63),a=i(587)(!1),s=i(140)("IE_PROTO");e.exports=function(e,t){var i,o=r(e),l=0,c=[];for(i in o)i!=s&&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){t.f=Object.getOwnPropertySymbols},function(e,t,i){var n=i(109);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,i){var n=i(196),r=i(142).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,i){var n=i(85);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,i){var n=i(71),r=i(55),a=i(107).f;e.exports=function(e){return function(t){var i,s=r(t),o=n(s),l=o.length,c=0,u=[];while(l>c)a.call(s,i=o[c++])&&u.push(e?[i,s[i]]:s[i]);return u}}},function(e,t,i){var n=i(17),r=i(82),a=i(111),s=i(204),o=i(24).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=a?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:s.f(e)})}},function(e,t,i){t.f=i(16)},function(e,t,i){var n=i(76),r=i(616),a=i(355),s=i(42),o=i(59),l=i(356),c={},u={};t=e.exports=function(e,t,i,h,d){var m,f,y,g,v=d?function(){return e}:l(e),p=n(i,h,t?2:1),_=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(a(v)){for(m=o(e.length);m>_;_++)if(g=t?p(s(f=e[_])[0],f[1]):p(e[_]),g===c||g===u)return g}else for(y=v.call(e);!(f=y.next()).done;)if(g=r(y,p,f.value,t),g===c||g===u)return g};t.BREAK=c,t.RETURN=u},function(e,t,i){"use strict";var n=i(73),r=i(131),a=i(59);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=20?"ste":"de")},week:{dow:1,doy:4}});return t})},function(e,t,i){(function(e,t){t(i(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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()=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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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?"a":2===t?"a":"e";return e+i},week:{dow:1,doy:4}});return t})},function(e,t,i){(function(e,t){t(i(3))})(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(3))})(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?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}});return n})},function(e,t,i){(function(e,t){t(i(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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?r[i][0]:t?r[i][0]:r[i][1]}return t})},function(e,t,i){(function(e,t){t(i(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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(3))})(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){!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",y={},g={};g[s]=function(){return this};var v=Object.getPrototypeOf,p=v&&v(v(j([])));p&&p!==n&&r.call(p,s)&&(g=p);var _=w.prototype=M.prototype=Object.create(g);k.prototype=_.constructor=w,w.constructor=k,w[l]=k.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(_),e},u.awrap=function(e){return{__await:e}},T(S.prototype),S.prototype[o]=function(){return this},u.AsyncIterator=S,u.async=function(e,t,i,n){var r=new S(b(e,t,i,n));return u.isGeneratorFunction(t)?r:r.next().then(function(e){return e.done?e.value:r.next()})},T(_),_[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=j,D.prototype={constructor:D,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(I),!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=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),y}},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;I(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=i),y}}}function b(e,t,i,n){var r=t&&t.prototype instanceof M?t:M,a=Object.create(r.prototype),s=new D(n||[]);return a._invoke=O(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 M(){}function k(){}function w(){}function T(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function S(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 O(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===y)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===y)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 y;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var r=L(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,y;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,y):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function E(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(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?(this._t=void 0,r(1)):r(0,"keys"==t?i:"values"==t?e[i]:[i,e[i]])},"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},function(e,t,i){var n=i(46),r=i(73),a=i(132)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,i){i(20)&&"g"!=/./g.flags&&i(24).f(RegExp.prototype,"flags",{configurable:!0,get:i(148)})},function(e,t,i){"use strict";var n=i(24).f,r=i(92),a=i(150),s=i(76),o=i(151),l=i(205),c=i(147),u=i(200),h=i(169),d=i(20),m=i(149).fastKey,f=i(170),y=d?"_s":"size",g=function(e,t){var i,n=m(t);if("F"!==n)return e._i[n];for(i=e._f;i;i=i.n)if(i.k==t)return i};e.exports={getConstructor:function(e,t,i,c){var u=e(function(e,n){o(e,u,t,"_i"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[y]=0,void 0!=n&&l(n,i,e[c],e)});return a(u.prototype,{clear:function(){for(var e=f(this,t),i=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];e._f=e._l=void 0,e[y]=0},delete:function(e){var i=f(this,t),n=g(i,e);if(n){var r=n.n,a=n.p;delete i._i[n.i],n.r=!0,a&&(a.n=r),r&&(r.p=a),i._f==n&&(i._f=r),i._l==n&&(i._l=a),i[y]--}return!!n},forEach:function(e){f(this,t);var i,n=s(e,arguments.length>1?arguments[1]:void 0,3);while(i=i?i.n:this._f){n(i.v,i.k,this);while(i&&i.r)i=i.p}},has:function(e){return!!g(f(this,t),e)}}),d&&n(u.prototype,"size",{get:function(){return f(this,t)[y]}}),u},def:function(e,t,i){var n,r,a=g(e,t);return a?a.v=i:(e._l=a={i:r=m(t,!0),k:t,v:i,p:n=e._l,n:void 0,r:!1},e._f||(e._f=a),n&&(n.n=a),e[y]++,"F"!==r&&(e._i[r]=a)),e},getEntry:g,setStrong:function(e,t,i){c(e,t,function(e,i){this._t=f(e,t),this._k=i,this._l=void 0},function(){var e=this,t=e._k,i=e._l;while(i&&i.r)i=i.p;return e._t&&(e._l=i=i?i.n:e._t._f)?u(0,"keys"==t?i.k:"values"==t?i.v:[i.k,i.v]):(e._t=void 0,u(1))},i?"entries":"values",!i,!0),h(t)}}},function(e,t,i){var n=i(80),r=i(16)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||a[r]===e)}},function(e,t,i){var n=i(357),r=i(16)("iterator"),a=i(80);e.exports=i(82).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||a[n(e)]}},function(e,t,i){var n=i(85),r=i(16)("toStringTag"),a="Arguments"==n(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(i){}};e.exports=function(e){var t,i,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=s(t=Object(e),r))?i:a?n(t):"Object"==(o=n(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,i){"use strict";var n=i(17),r=i(15),a=i(43),s=i(150),o=i(149),l=i(205),c=i(151),u=i(35),h=i(21),d=i(359),m=i(95),f=i(130);e.exports=function(e,t,i,y,g,v){var p=n[e],_=p,b=g?"set":"add",L=_&&_.prototype,M={},k=function(e){var t=L[e];a(L,e,"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,i){return t.call(this,0===e?0:e,i),this})};if("function"==typeof _&&(v||L.forEach&&!h(function(){(new _).entries().next()}))){var w=new _,T=w[b](v?{}:-0,1)!=w,S=h(function(){w.has(1)}),O=d(function(e){new _(e)}),C=!v&&h(function(){var e=new _,t=5;while(t--)e[b](t,t);return!e.has(-0)});O||(_=t(function(t,i){c(t,_,e);var n=f(new p,t,_);return void 0!=i&&l(i,g,n[b],n),n}),_.prototype=L,L.constructor=_),(S||C)&&(k("delete"),k("has"),g&&k("get")),(C||T)&&k(b),v&&L.clear&&delete L.clear}else _=y.getConstructor(t,e,g,b),s(_.prototype,i),o.NEED=!0;return m(_,e),M[e]=_,r(r.G+r.W+r.F*(_!=p),M),v||y.setStrong(_,e,g),_}},function(e,t,i){var n=i(16)("iterator"),r=!1;try{var a=[7][n]();a["return"]=function(){r=!0},Array.from(a,function(){throw 2})}catch(s){}e.exports=function(e,t){if(!t&&!r)return!1;var i=!1;try{var a=[7],o=a[n]();o.next=function(){return{done:i=!0}},a[n]=function(){return o},e(a)}catch(s){}return i}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){e.exports=i(680)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(537),r=i.n(n);function a(e,t){return a=r.a||function(e,t){return e.__proto__=t,e},a(e,t)}},function(e,t,i){var n=i(692),r=i(693);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";i(7);var n=i(1),r=i(0),a=i(539),s=i.n(a),o=i(30),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){"use strict";i(7);var n=i(1),r=i(0),a=i(30),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=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?i:"values"==t?e[i]:[i,e[i]])},"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},function(e,t,i){var n=i(39)("unscopables"),r=Array.prototype;void 0==r[n]&&i(83)(r,n,{}),e.exports=function(e){r[n][e]=!0}},function(e,t,i){e.exports=!i(70)&&!i(124)(function(){return 7!=Object.defineProperty(i(125)("div"),"a",{get:function(){return 7}}).a})},function(e,t,i){var n=i(84);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=function(e,t){return{value:t,done:!!e}}},function(e,t,i){"use strict";var n=i(122),r=i(102),a=i(127),s=i(83),o=i(100),l=i(554),c=i(129),u=i(560),h=i(39)("iterator"),d=!([].keys&&"next"in[].keys()),m="@@iterator",f="keys",y="values",g=function(){return this};e.exports=function(e,t,i,v,p,_,b){l(i,t,v);var L,M,k,w=function(e){if(!d&&e in C)return C[e];switch(e){case f:return function(){return new i(this,e)};case y:return function(){return new i(this,e)}}return function(){return new i(this,e)}},T=t+" Iterator",S=p==y,O=!1,C=e.prototype,E=C[h]||C[m]||p&&C[p],I=E||w(p),D=p?S?w("entries"):I:void 0,j="Array"==t&&C.entries||E;if(j&&(k=u(j.call(new e)),k!==Object.prototype&&k.next&&(c(k,T,!0),n||"function"==typeof k[h]||s(k,h,g))),S&&E&&E.name!==y&&(O=!0,I=function(){return E.call(this)}),n&&!b||!d&&!O&&C[h]||s(C,h,I),o[t]=I,o[T]=g,p)if(L={values:S?I:w(y),keys:_?I:w(f),entries:D},b)for(M in L)M in C||a(C,M,L[M]);else r(r.P+r.F*(d||O),t,L);return L}},function(e,t,i){e.exports=i(121)("native-function-to-string",Function.toString)},function(e,t,i){"use strict";var n=i(555),r=i(175),a=i(129),s={};i(83)(s,i(39)("iterator"),function(){return this}),e.exports=function(e,t,i){e.prototype=n(s,{next:r(1,i)}),a(e,t+" Iterator")}},function(e,t,i){var n=i(58),r=i(556),a=i(181),s=i(128)("IE_PROTO"),o=function(){},l="prototype",c=function(){var e,t=i(125)("iframe"),n=a.length,r="<",s=">";t.style.display="none",i(182).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+s+"document.F=Object"+r+"/script"+s),e.close(),c=e.F;while(n--)delete c[l][a[n]];return c()};e.exports=Object.create||function(e,t){var i;return null!==e?(o[l]=n(e),i=new o,o[l]=null,i[s]=e):i=c(),void 0===t?i:r(i,t)}},function(e,t,i){var n=i(99),r=i(58),a=i(178);e.exports=i(70)?Object.defineProperties:function(e,t){r(e);var i,s=a(t),o=s.length,l=0;while(o>l)n.f(e,i=s[l++],t[i]);return e}},function(e,t,i){var n=i(103),r=i(126),a=i(558)(!1),s=i(128)("IE_PROTO");e.exports=function(e,t){var i,o=r(e),l=0,c=[];for(i in o)i!=s&&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(126),r=i(179),a=i(559);e.exports=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}}},function(e,t,i){var n=i(180),r=Math.max,a=Math.min;e.exports=function(e,t){return e=n(e),e<0?r(e+t,0):a(e,t)}},function(e,t,i){var n=i(103),r=i(183),a=i(128)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,i){"use strict";var n,r,a,s,o=i(122),l=i(31),c=i(104),u=i(184),h=i(102),d=i(84),m=i(105),f=i(562),y=i(563),g=i(185),v=i(186).set,p=i(568)(),_=i(187),b=i(569),L=i(570),M=i(188),k="Promise",w=l.TypeError,T=l.process,S=T&&T.versions,O=S&&S.v8||"",C=l[k],E="process"==u(T),I=function(){},D=r=_.f,j=!!function(){try{var e=C.resolve(1),t=(e.constructor={})[i(39)("species")]=function(e){e(I,I)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(I)instanceof t&&0!==O.indexOf("6.6")&&-1===L.indexOf("Chrome/66")}catch(n){}}(),P=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},Y=function(e,t){if(!e._n){e._n=!0;var i=e._c;p(function(){var n=e._v,r=1==e._s,a=0,s=function(t){var i,a,s,o=r?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{o?(r||(2==e._h&&F(e),e._h=1),!0===o?i=n:(u&&u.enter(),i=o(n),u&&(u.exit(),s=!0)),i===t.promise?c(w("Promise-chain cycle")):(a=P(i))?a.call(i,l,c):l(i)):c(n)}catch(h){u&&!s&&u.exit(),c(h)}};while(i.length>a)s(i[a++]);e._c=[],e._n=!1,t&&!e._h&&x(e)})}},x=function(e){v.call(l,function(){var t,i,n,r=e._v,a=A(e);if(a&&(t=b(function(){E?T.emit("unhandledRejection",r,e):(i=l.onunhandledrejection)?i({promise:e,reason:r}):(n=l.console)&&n.error&&n.error("Unhandled promise rejection",r)}),e._h=E||A(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},A=function(e){return 1!==e._h&&0===(e._a||e._c).length},F=function(e){v.call(l,function(){var t;E?T.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},N=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),Y(t,!0))},H=function(e){var t,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw w("Promise can't be resolved itself");(t=P(e))?p(function(){var n={_w:i,_d:!1};try{t.call(e,c(H,n,1),c(N,n,1))}catch(r){N.call(n,r)}}):(i._v=e,i._s=1,Y(i,!1))}catch(n){N.call({_w:i,_d:!1},n)}}};j||(C=function(e){f(this,C,k,"_h"),m(e),n.call(this);try{e(c(H,this,1),c(N,this,1))}catch(t){N.call(this,t)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=i(571)(C.prototype,{then:function(e,t){var i=D(g(this,C));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=E?T.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&Y(this,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n;this.promise=e,this.resolve=c(H,e,1),this.reject=c(N,e,1)},_.f=D=function(e){return e===C||e===s?new a(e):r(e)}),h(h.G+h.W+h.F*!j,{Promise:C}),i(129)(C,k),i(572)(k),s=i(69)[k],h(h.S+h.F*!j,k,{reject:function(e){var t=D(this),i=t.reject;return i(e),t.promise}}),h(h.S+h.F*(o||!j),k,{resolve:function(e){return M(o&&this===s?C:this,e)}}),h(h.S+h.F*!(j&&i(573)(function(e){C.all(e)["catch"](I)})),k,{all:function(e){var t=this,i=D(t),n=i.resolve,r=i.reject,a=b(function(){var i=[],a=0,s=1;y(e,!1,function(e){var o=a++,l=!1;i.push(void 0),s++,t.resolve(e).then(function(e){l||(l=!0,i[o]=e,--s||n(i))},r)}),--s||n(i)});return a.e&&r(a.v),i.promise},race:function(e){var t=this,i=D(t),n=i.reject,r=b(function(){y(e,!1,function(e){t.resolve(e).then(i.resolve,n)})});return r.e&&n(r.v),i.promise}})},function(e,t){e.exports=function(e,t,i,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(i+": incorrect invocation!");return e}},function(e,t,i){var n=i(104),r=i(564),a=i(565),s=i(58),o=i(179),l=i(566),c={},u={};t=e.exports=function(e,t,i,h,d){var m,f,y,g,v=d?function(){return e}:l(e),p=n(i,h,t?2:1),_=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(a(v)){for(m=o(e.length);m>_;_++)if(g=t?p(s(f=e[_])[0],f[1]):p(e[_]),g===c||g===u)return g}else for(y=v.call(e);!(f=y.next()).done;)if(g=r(y,p,f.value,t),g===c||g===u)return g};t.BREAK=c,t.RETURN=u},function(e,t,i){var n=i(58);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(100),r=i(39)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||a[r]===e)}},function(e,t,i){var n=i(184),r=i(39)("iterator"),a=i(100);e.exports=i(69).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||a[n(e)]}},function(e,t){e.exports=function(e,t,i){var n=void 0===i;switch(t.length){case 0:return n?e():e.call(i);case 1:return n?e(t[0]):e.call(i,t[0]);case 2:return n?e(t[0],t[1]):e.call(i,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(i,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(i,t[0],t[1],t[2],t[3])}return e.apply(i,t)}},function(e,t,i){var n=i(31),r=i(186).set,a=n.MutationObserver||n.WebKitMutationObserver,s=n.process,o=n.Promise,l="process"==i(101)(s);e.exports=function(){var e,t,i,c=function(){var n,r;l&&(n=s.domain)&&n.exit();while(e){r=e.fn,e=e.next;try{r()}catch(a){throw e?i():t=void 0,a}}t=void 0,n&&n.enter()};if(l)i=function(){s.nextTick(c)};else if(!a||n.navigator&&n.navigator.standalone)if(o&&o.resolve){var u=o.resolve(void 0);i=function(){u.then(c)}}else i=function(){r.call(n,c)};else{var h=!0,d=document.createTextNode("");new a(c).observe(d,{characterData:!0}),i=function(){d.data=h=!h}}return function(n){var r={fn:n,next:void 0};t&&(t.next=r),e||(e=r,i()),t=r}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},function(e,t,i){var n=i(31),r=n.navigator;e.exports=r&&r.userAgent||""},function(e,t,i){var n=i(127);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(31),r=i(99),a=i(70),s=i(39)("species");e.exports=function(e){var t=n[e];a&&t&&!t[s]&&r.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,i){var n=i(39)("iterator"),r=!1;try{var a=[7][n]();a["return"]=function(){r=!0},Array.from(a,function(){throw 2})}catch(s){}e.exports=function(e,t){if(!t&&!r)return!1;var i=!1;try{var a=[7],o=a[n]();o.next=function(){return{done:i=!0}},a[n]=function(){return o},e(a)}catch(s){}return i}},function(e,t,i){var n=i(102);n(n.S+n.F,"Object",{assign:i(575)})},function(e,t,i){"use strict";var n=i(70),r=i(178),a=i(576),s=i(577),o=i(183),l=i(176),c=Object.assign;e.exports=!c||i(124)(function(){var e={},t={},i=Symbol(),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach(function(e){t[e]=e}),7!=c({},e)[i]||Object.keys(c({},t)).join("")!=n})?function(e,t){var i=o(e),c=arguments.length,u=1,h=a.f,d=s.f;while(c>u){var m,f=l(arguments[u++]),y=h?r(f).concat(h(f)):r(f),g=y.length,v=0;while(g>v)m=y[v++],n&&!d.call(f,m)||(i[m]=f[m])}return i}:c},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,i){"use strict";var n=i(102),r=i(69),a=i(31),s=i(185),o=i(188);n(n.P+n.R,"Promise",{finally:function(e){var t=s(this,r.Promise||a.Promise),i="function"==typeof e;return this.then(i?function(i){return o(t,e()).then(function(){return i})}:e,i?function(i){return o(t,e()).then(function(){throw i})}:e)}})},function(e,t,i){var n=i(35),r=i(42),a=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=i(76)(Function.call,i(106).f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,i){return a(e,i),t?e.__proto__=i:n(e,i),e}}({},!1):void 0),check:a}},function(e,t,i){var n=i(24),r=i(42),a=i(71);e.exports=i(20)?Object.defineProperties:function(e,t){r(e);var i,s=a(t),o=s.length,l=0;while(o>l)n.f(e,i=s[l++],t[i]);return e}},function(e,t,i){var n=i(17).document;e.exports=n&&n.documentElement},function(e,t,i){i(93),i(118),e.exports=i(143).f("iterator")},function(e,t,i){var n=i(135),r=i(136);e.exports=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)}}},function(e,t,i){"use strict";var n=i(138),r=i(79),a=i(116),s={};i(62)(s,i(28)("iterator"),function(){return this}),e.exports=function(e,t,i){e.prototype=n(s,{next:r(1,i)}),a(e,t+" Iterator")}},function(e,t,i){var n=i(49),r=i(48),a=i(139);e.exports=i(56)?Object.defineProperties:function(e,t){r(e);var i,s=a(t),o=s.length,l=0;while(o>l)n.f(e,i=s[l++],t[i]);return e}},function(e,t,i){var n=i(109);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,i){var n=i(63),r=i(160),a=i(588);e.exports=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}}},function(e,t,i){var n=i(135),r=Math.max,a=Math.min;e.exports=function(e,t){return e=n(e),e<0?r(e+t,0):a(e,t)}},function(e,t,i){"use strict";var n=i(590),r=i(591),a=i(72),s=i(63);e.exports=i(193)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,i=this._i++;return!e||i>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?i:"values"==t?e[i]:[i,e[i]])},"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,i){i(593),i(347),i(597),i(598),e.exports=i(19).Symbol},function(e,t,i){"use strict";var n=i(36),r=i(53),a=i(56),s=i(47),o=i(195),l=i(594).KEY,c=i(86),u=i(141),h=i(116),d=i(110),m=i(28),f=i(143),y=i(144),g=i(595),v=i(198),p=i(48),_=i(51),b=i(117),L=i(63),M=i(137),k=i(79),w=i(138),T=i(596),S=i(146),O=i(197),C=i(49),E=i(139),I=S.f,D=C.f,j=T.f,P=n.Symbol,Y=n.JSON,x=Y&&Y.stringify,A="prototype",F=m("_hidden"),N=m("toPrimitive"),H={}.propertyIsEnumerable,R=u("symbol-registry"),z=u("symbols"),G=u("op-symbols"),V=Object[A],B="function"==typeof P&&!!O.f,U=n.QObject,W=!U||!U[A]||!U[A].findChild,q=a&&c(function(){return 7!=w(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,i){var n=I(V,t);n&&delete V[t],D(e,t,i),n&&e!==V&&D(V,t,n)}:D,J=function(e){var t=z[e]=w(P[A]);return t._k=e,t},K=B&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Z=function(e,t,i){return e===V&&Z(G,t,i),p(e),t=M(t,!0),p(i),r(z,t)?(i.enumerable?(r(e,F)&&e[F][t]&&(e[F][t]=!1),i=w(i,{enumerable:k(0,!1)})):(r(e,F)||D(e,F,k(1,{})),e[F][t]=!0),q(e,t,i)):D(e,t,i)},Q=function(e,t){p(e);var i,n=g(t=L(t)),r=0,a=n.length;while(a>r)Z(e,i=n[r++],t[i]);return e},X=function(e,t){return void 0===t?w(e):Q(w(e),t)},$=function(e){var t=H.call(this,e=M(e,!0));return!(this===V&&r(z,e)&&!r(G,e))&&(!(t||!r(this,e)||!r(z,e)||r(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=L(e),t=M(t,!0),e!==V||!r(z,t)||r(G,t)){var i=I(e,t);return!i||!r(z,t)||r(e,F)&&e[F][t]||(i.enumerable=!0),i}},te=function(e){var t,i=j(L(e)),n=[],a=0;while(i.length>a)r(z,t=i[a++])||t==F||t==l||n.push(t);return n},ie=function(e){var t,i=e===V,n=j(i?G:L(e)),a=[],s=0;while(n.length>s)!r(z,t=n[s++])||i&&!r(V,t)||a.push(z[t]);return a};B||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(i){this===V&&t.call(G,i),r(this,F)&&r(this[F],e)&&(this[F][e]=!1),q(this,e,k(1,i))};return a&&W&&q(V,e,{configurable:!0,set:t}),J(e)},o(P[A],"toString",function(){return this._k}),S.f=ee,C.f=Z,i(199).f=T.f=te,i(145).f=$,O.f=ie,a&&!i(94)&&o(V,"propertyIsEnumerable",$,!0),f.f=function(e){return J(m(e))}),s(s.G+s.W+s.F*!B,{Symbol:P});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)m(ne[re++]);for(var ae=E(m.store),se=0;ae.length>se;)y(ae[se++]);s(s.S+s.F*!B,"Symbol",{for:function(e){return r(R,e+="")?R[e]:R[e]=P(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!B,"Object",{create:X,defineProperty:Z,defineProperties:Q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ie});var oe=c(function(){O.f(1)});s(s.S+s.F*oe,"Object",{getOwnPropertySymbols:function(e){return O.f(b(e))}}),Y&&s(s.S+s.F*(!B||c(function(){var e=P();return"[null]"!=x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))})),"JSON",{stringify:function(e){var t,i,n=[e],r=1;while(arguments.length>r)n.push(arguments[r++]);if(i=t=n[1],(_(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!K(t))return t}),n[1]=t,x.apply(Y,n)}}),P[A][N]||i(62)(P[A],N,P[A].valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,i){var n=i(110)("meta"),r=i(51),a=i(53),s=i(49).f,o=0,l=Object.isExtensible||function(){return!0},c=!i(86)(function(){return l(Object.preventExtensions({}))}),u=function(e){s(e,n,{value:{i:"O"+ ++o,w:{}}})},h=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,n)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[n].i},d=function(e,t){if(!a(e,n)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[n].w},m=function(e){return c&&f.NEED&&l(e)&&!a(e,n)&&u(e),e},f=e.exports={KEY:n,NEED:!1,fastKey:h,getWeak:d,onFreeze:m}},function(e,t,i){var n=i(139),r=i(197),a=i(145);e.exports=function(e){var t=n(e),i=r.f;if(i){var s,o=i(e),l=a.f,c=0;while(o.length>c)l.call(e,s=o[c++])&&t.push(s)}return t}},function(e,t,i){var n=i(63),r=i(199).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){i(144)("asyncIterator")},function(e,t,i){i(144)("observable")},function(e,t,i){i(600),e.exports=i(19).Array.isArray},function(e,t,i){var n=i(47);n(n.S,"Array",{isArray:i(198)})},function(e,t,i){i(93),i(602),e.exports=i(19).Array.from},function(e,t,i){"use strict";var n=i(108),r=i(47),a=i(117),s=i(348),o=i(349),l=i(160),c=i(603),u=i(162);r(r.S+r.F*!i(350)(function(e){Array.from(e)}),"Array",{from:function(e){var t,i,r,h,d=a(e),m="function"==typeof this?this:Array,f=arguments.length,y=f>1?arguments[1]:void 0,g=void 0!==y,v=0,p=u(d);if(g&&(y=n(y,f>2?arguments[2]:void 0,2)),void 0==p||m==Array&&o(p))for(t=l(d.length),i=new m(t);t>v;v++)c(i,v,g?y(d[v],v):d[v]);else for(h=p.call(d),i=new m;!(r=h.next()).done;v++)c(i,v,g?s(h,y,[r.value,v],!0):r.value);return i.length=v,i}})},function(e,t,i){"use strict";var n=i(49),r=i(79);e.exports=function(e,t,i){t in e?n.f(e,t,r(0,i)):e[t]=i}},function(e,t,i){i(118),i(93),e.exports=i(605)},function(e,t,i){var n=i(163),r=i(28)("iterator"),a=i(72);e.exports=i(19).isIterable=function(e){var t=Object(e);return void 0!==t[r]||"@@iterator"in t||a.hasOwnProperty(n(t))}},function(e,t,i){var n=i(15),r=i(82),a=i(21);e.exports=function(e,t){var i=(r.Object||{})[e]||Object[e],s={};s[e]=t(i),n(n.S+n.F*a(function(){i(1)}),"Object",s)}},function(e,t,i){"use strict";var n=i(92),r=i(81),a=i(95),s={};i(45)(s,i(16)("iterator"),function(){return this}),e.exports=function(e,t,i){e.prototype=n(s,{next:r(1,i)}),a(e,t+" Iterator")}},function(e,t,i){i(609);var n=i(19).Object;e.exports=function(e,t,i){return n.defineProperty(e,t,i)}},function(e,t,i){var n=i(47);n(n.S+n.F*!i(56),"Object",{defineProperty:i(49).f})},function(e,t,i){var n=i(611);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,i){var n=i(35),r=i(201),a=i(16)("species");e.exports=function(e){var t;return r(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!r(t.prototype)||(t=void 0),n(t)&&(t=t[a],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,i){var n=i(17).parseFloat,r=i(157).trim;e.exports=1/n(i(158)+"-0")!==-1/0?function(e){var t=r(String(e),3),i=n(t);return 0===i&&"-"==t.charAt(0)?-0:i}:n},function(e,t,i){var n=i(78),r=i(57);e.exports=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)}}},function(e,t,i){var n=i(71),r=i(167),a=i(107);e.exports=function(e){var t=n(e),i=r.f;if(i){var s,o=i(e),l=a.f,c=0;while(o.length>c)l.call(e,s=o[c++])&&t.push(s)}return t}},function(e,t,i){var n=i(55),r=i(77).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(42);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){"use strict";var n=i(21);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,i){"use strict";var n=i(33),r=i(207),a=i(620),s=i(152);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(211),l.CancelToken=i(634),l.isCancel=i(210),l.all=function(e){return Promise.all(e)},l.spread=i(635),e.exports=l,e.exports.default=l},function(e,t){ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @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(152),r=i(33),a=i(629),s=i(630);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){var i,n,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(i===setTimeout)return setTimeout(e,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}function l(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(function(){try{i="function"===typeof setTimeout?setTimeout:a}catch(e){i=a}try{n="function"===typeof clearTimeout?clearTimeout:s}catch(e){n=s}})();var c,u=[],h=!1,d=-1;function m(){h&&c&&(h=!1,c.length?u=c.concat(u):d=-1,u.length&&f())}function f(){if(!h){var e=o(m);h=!0;var t=u.length;while(t){c=u,u=[];while(++d1)for(var i=1;i=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(33);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(33);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(33);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(33),r=i(631),a=i(210),s=i(152),o=i(632),l=i(633);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(33);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(211);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){i(118),i(93),e.exports=i(637)},function(e,t,i){var n=i(48),r=i(162);e.exports=i(19).getIterator=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(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":213,"./af.js":213,"./ar":214,"./ar-dz":215,"./ar-dz.js":215,"./ar-kw":216,"./ar-kw.js":216,"./ar-ly":217,"./ar-ly.js":217,"./ar-ma":218,"./ar-ma.js":218,"./ar-sa":219,"./ar-sa.js":219,"./ar-tn":220,"./ar-tn.js":220,"./ar.js":214,"./az":221,"./az.js":221,"./be":222,"./be.js":222,"./bg":223,"./bg.js":223,"./bm":224,"./bm.js":224,"./bn":225,"./bn.js":225,"./bo":226,"./bo.js":226,"./br":227,"./br.js":227,"./bs":228,"./bs.js":228,"./ca":229,"./ca.js":229,"./cs":230,"./cs.js":230,"./cv":231,"./cv.js":231,"./cy":232,"./cy.js":232,"./da":233,"./da.js":233,"./de":234,"./de-at":235,"./de-at.js":235,"./de-ch":236,"./de-ch.js":236,"./de.js":234,"./dv":237,"./dv.js":237,"./el":238,"./el.js":238,"./en-SG":239,"./en-SG.js":239,"./en-au":240,"./en-au.js":240,"./en-ca":241,"./en-ca.js":241,"./en-gb":242,"./en-gb.js":242,"./en-ie":243,"./en-ie.js":243,"./en-il":244,"./en-il.js":244,"./en-nz":245,"./en-nz.js":245,"./eo":246,"./eo.js":246,"./es":247,"./es-do":248,"./es-do.js":248,"./es-us":249,"./es-us.js":249,"./es.js":247,"./et":250,"./et.js":250,"./eu":251,"./eu.js":251,"./fa":252,"./fa.js":252,"./fi":253,"./fi.js":253,"./fo":254,"./fo.js":254,"./fr":255,"./fr-ca":256,"./fr-ca.js":256,"./fr-ch":257,"./fr-ch.js":257,"./fr.js":255,"./fy":258,"./fy.js":258,"./ga":259,"./ga.js":259,"./gd":260,"./gd.js":260,"./gl":261,"./gl.js":261,"./gom-latn":262,"./gom-latn.js":262,"./gu":263,"./gu.js":263,"./he":264,"./he.js":264,"./hi":265,"./hi.js":265,"./hr":266,"./hr.js":266,"./hu":267,"./hu.js":267,"./hy-am":268,"./hy-am.js":268,"./id":269,"./id.js":269,"./is":270,"./is.js":270,"./it":271,"./it-ch":272,"./it-ch.js":272,"./it.js":271,"./ja":273,"./ja.js":273,"./jv":274,"./jv.js":274,"./ka":275,"./ka.js":275,"./kk":276,"./kk.js":276,"./km":277,"./km.js":277,"./kn":278,"./kn.js":278,"./ko":279,"./ko.js":279,"./ku":280,"./ku.js":280,"./ky":281,"./ky.js":281,"./lb":282,"./lb.js":282,"./lo":283,"./lo.js":283,"./lt":284,"./lt.js":284,"./lv":285,"./lv.js":285,"./me":286,"./me.js":286,"./mi":287,"./mi.js":287,"./mk":288,"./mk.js":288,"./ml":289,"./ml.js":289,"./mn":290,"./mn.js":290,"./mr":291,"./mr.js":291,"./ms":292,"./ms-my":293,"./ms-my.js":293,"./ms.js":292,"./mt":294,"./mt.js":294,"./my":295,"./my.js":295,"./nb":296,"./nb.js":296,"./ne":297,"./ne.js":297,"./nl":298,"./nl-be":299,"./nl-be.js":299,"./nl.js":298,"./nn":300,"./nn.js":300,"./pa-in":301,"./pa-in.js":301,"./pl":302,"./pl.js":302,"./pt":303,"./pt-br":304,"./pt-br.js":304,"./pt.js":303,"./ro":305,"./ro.js":305,"./ru":306,"./ru.js":306,"./sd":307,"./sd.js":307,"./se":308,"./se.js":308,"./si":309,"./si.js":309,"./sk":310,"./sk.js":310,"./sl":311,"./sl.js":311,"./sq":312,"./sq.js":312,"./sr":313,"./sr-cyrl":314,"./sr-cyrl.js":314,"./sr.js":313,"./ss":315,"./ss.js":315,"./sv":316,"./sv.js":316,"./sw":317,"./sw.js":317,"./ta":318,"./ta.js":318,"./te":319,"./te.js":319,"./tet":320,"./tet.js":320,"./tg":321,"./tg.js":321,"./th":322,"./th.js":322,"./tl-ph":323,"./tl-ph.js":323,"./tlh":324,"./tlh.js":324,"./tr":325,"./tr.js":325,"./tzl":326,"./tzl.js":326,"./tzm":327,"./tzm-latn":328,"./tzm-latn.js":328,"./tzm.js":327,"./ug-cn":329,"./ug-cn.js":329,"./uk":330,"./uk.js":330,"./ur":331,"./ur.js":331,"./uz":332,"./uz-latn":333,"./uz-latn.js":333,"./uz.js":332,"./vi":334,"./vi.js":334,"./x-pseudo":335,"./x-pseudo.js":335,"./yo":336,"./yo.js":336,"./zh-cn":337,"./zh-cn.js":337,"./zh-hk":338,"./zh-hk.js":338,"./zh-tw":339,"./zh-tw.js":339};function r(e){var t=a(e);return i(t)}function a(e){var t=n[e];if(!(t+1)){var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}return t}r.keys=function(){return Object.keys(n)},r.resolve=a,e.exports=r,r.id=639},function(e,t,i){"use strict";var n=i(115);function r(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){var n=i(15);n(n.P,"String",{repeat:i(642)})},function(e,t,i){"use strict";var n=i(78),r=i(57);e.exports=function(e){var t=String(r(this)),i="",a=n(e);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(i+=t);return i}},function(e,t,i){e.exports=i(678)},function(e,t,i){e.exports=i(687)},function(e,t,i){"use strict";(function(e){i(13),i(88),i(26),i(11),i(7);var n=i(646),r=i(10),a=(i(12),i(22),i(4),i(654),i(1)),s=i(0),o=i(539),l=i.n(o),c=i(9),u=i.n(c),h=i(662),d=i(540),m=i(541),f=i(663),y=i(5),g=i(114),v=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(y["h"])(e.minZoom,0),this.maxZoom=Object(y["h"])(e.maxZoom,0),this.hideLevels=Object(y["h"])(e.hideLevels,0)}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("/"));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);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")}},{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,a){var s=this,o=[t.generalImageInfo.width,t.generalImageInfo.height],c=t.generalImageInfo["tile-resolution"],u=[t.generalImageInfo["tile-width"],t.generalImageInfo["tile-width"]];t.generalImageInfo.width&&t.generalImageInfo.height&&t.generalImageInfo["tile-resolution"]&&this.getImageMeta(i,o,c,u,a);var h=[];t.generalImageInfo.cameraParameter&&Array.isArray(t.generalImageInfo.cameraParameter)&&t.generalImageInfo.cameraParameter.forEach(function(e){h.push(new m["a"](e))});var f=null;if(t.generalImageInfo.crs){var y=l()();e.proj4.defs(y,t.generalImageInfo.crs),f=ol.proj.get(y)}var g=t.images.shift(),v={name:g.indexOf("name"),width:g.indexOf("width"),height:g.indexOf("height"),tileResolution:g.indexOf("tile-resolution"),viewDirection:g.indexOf("view-direction"),viewDirectionAngle:g.indexOf("view-direction-angle"),groundCoordinates:g.indexOf("groundCoordinates"),centerPointOnGround:g.indexOf("centerPointOnGround"),cameraIndex:g.indexOf("camera-index"),projectionCenter:g.indexOf("projection-center"),pToRealworld:g.indexOf("p-to-realworld"),pToImage:g.indexOf("p-to-image")},p={};t.images.forEach(function(e){var t=[];e[v.pToRealworld]&&e[v.pToRealworld].forEach(function(e){t.push.apply(t,Object(r["a"])(e))});var l=e[v.pToRealworld]?Object(n["a"])(Cesium.Matrix3,t):null,m=[];e[v.pToImage]&&(e[v.pToImage].forEach(function(e){m.push.apply(m,Object(r["a"])(e))}),m.push(0,0,0,1));var y=e[v.projectionCenter]?Cesium.Cartesian3.fromArray(e[v.projectionCenter]):null,g=e[v.pToImage]?Object(n["a"])(Cesium.Matrix4,m):null,_=e[v.width]&&e[v.height]?[e[v.width],e[v.height]]:o,b=e[v.tileResolution]?e[v.tileResolution]:c,L=s.getImageMeta(i,_,b,u,a),M={name:e[v.name],viewDirection:e[v.viewDirection],viewDirectionAngle:e[v.viewDirectionAngle],groundCoordinates:e[v.groundCoordinates],centerPointOnGround:e[v.centerPointOnGround],meta:L,camera:h[e[v.cameraIndex]],projectionCenter:y,pToRealworld:l,pToImage:g,projection:s.projection||f,terrainProvider:s.terrainProvider},k=new d["a"](M);p[k.viewDirection]||(p[k.viewDirection]={direction:k.viewDirection,images:{},rTreeItems:[],footPrintFeatures:[],projection:s.projection||f,terrainProvider:s.terrainProvider}),p[k.viewDirection].images[k.name]=k,p[k.viewDirection].rTreeItems.push({minX:k.centerPointOnGround[0],minY:k.centerPointOnGround[1],maxX:k.centerPointOnGround[0],maxY:k.centerPointOnGround[1],name:k.name});var w=new ol.geom.Polygon([k.groundCoordinates.concat([k.groundCoordinates[0]])]);w.transform(s.projection||f,ol.proj.get("EPSG:3857"));var T=new ol.Feature({geometry:w});T.setId(k.name),p[k.viewDirection].footPrintFeatures.push(T)}),Object.keys(p).forEach(function(e){s.directions[e]?s.directions[e].addOptions(p[e]):s.directions[e]=s.createDirection(p[e]),s.extent=ol.extent.extend(s.extent,s.directions[e].footPrintsLayer.getSource().getExtent())})}},{key:"createDirection",value:function(e){return new g["a"](e)}},{key:"getImageByName",value:function(e){for(var t=Object.values(this.directions),i=0;i1?arguments[1]:void 0,t.length)),n=String(e);return o?o.call(t,n,i):t.slice(i,i+n.length)===n}})},function(e,t,i){var n,r=i(17),a=i(45),s=i(68),o=s("typed_array"),l=s("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,h=0,d=9,m="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(hi)t.push(arguments[i++]);return v[++g]=function(){o("function"==typeof e?e:Function(e),t)},n(g),g},m=function(e){delete v[e]},"process"==i(109)(h)?n=function(e){h.nextTick(s(_,e,1))}:y&&y.now?n=function(e){y.now(s(_,e,1))}:f?(r=new f,a=r.port2,r.port1.onmessage=b,n=s(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):n=p in c("script")?function(e){l.appendChild(c("script"))[p]=function(){l.removeChild(this),_.call(e)}}:function(e){setTimeout(s(_,e,1),0)}),e.exports={set:d,clear:m}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},function(e,t,i){var n=i(48),r=i(51),a=i(640);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){e.exports=i(683)},function(e,t,i){"use strict";i(26),i(4),i(22),i(96);var n=i(1),r=i(0),a=i(27),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";var n=i(14),r=i(10),a=i(1),s=i(0),o=i(34),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";e.exports=r,e.exports.default=r;var n=i(694);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=e.minX&&t.maxY>=e.minY}function v(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function p(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(!g(e,t))return i;var r,a,s,o,l=[];while(t){for(r=0,a=t.children.length;r=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=v(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=v([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=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";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 y=r(t);if(o=y.length,o!==r(i).length)return!1;for(s=o;0!==s--;)if(!a.call(i,y[s]))return!1;for(s=o;0!==s--;)if(l=y[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){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(15),r=i(59),a=i(191),s="endsWith",o=""[s];n(n.P+n.F*i(192)(s),"String",{endsWith:function(e){var t=a(this,e,s),i=arguments.length>1?arguments[1]:void 0,n=r(t.length),l=void 0===i?n:Math.min(r(i),n),c=String(e);return o?o.call(t,c,l):t.slice(l-c.length,l)===c}})},function(e,t,i){var n=i(15),r=i(677);n(n.S+n.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(e,t,i){var n=i(17).parseInt,r=i(157).trim,a=i(158),s=/^[-+]?0[xX]/;e.exports=8!==n(a+"08")||22!==n(a+"0x16")?function(e,t){var i=r(String(e),3);return n(i,t>>>0||(s.test(i)?16:10))}:n},function(e,t,i){i(679),e.exports=i(19).Object.getPrototypeOf},function(e,t,i){var n=i(117),r=i(161);i(652)("getPrototypeOf",function(){return function(e){return r(n(e))}})},function(e,t,i){i(681),e.exports=i(19).Object.setPrototypeOf},function(e,t,i){var n=i(47);n(n.S,"Object",{setPrototypeOf:i(682).set})},function(e,t,i){var n=i(51),r=i(48),a=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=i(108)(Function.call,i(146).f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,i){return a(e,i),t?e.__proto__=i:n(e,i),e}}({},!1):void 0),check:a}},function(e,t,i){i(684);var n=i(19).Object;e.exports=function(e,t){return n.create(e,t)}},function(e,t,i){var n=i(47);n(n.S,"Object",{create:i(138)})},function(e,t,i){i(686);var n=i(19).Object;e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)}},function(e,t,i){var n=i(63),r=i(146).f;i(652)("getOwnPropertyDescriptor",function(){return function(e,t){return r(n(e),t)}})},function(e,t,i){i(688),e.exports=i(19).Reflect.get},function(e,t,i){var n=i(146),r=i(161),a=i(53),s=i(47),o=i(51),l=i(48);function c(e,t){var i,s,u=arguments.length<3?e:arguments[2];return l(e)===u?e[t]:(i=n.f(e,t))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:o(s=r(e))?c(s,t,u):void 0}s(s.S,"Reflect",{get:c})},function(e,t,i){i(690),e.exports=i(19).Reflect.construct},function(e,t,i){var n=i(47),r=i(138),a=i(115),s=i(48),o=i(51),l=i(86),c=i(691),u=(i(36).Reflect||{}).construct,h=l(function(){function e(){}return!(u(function(){},[],e)instanceof e)}),d=!l(function(){u(function(){})});n(n.S+n.F*(h||d),"Reflect",{construct:function(e,t){a(e),s(t);var i=arguments.length<3?e:a(arguments[2]);if(d&&!h)return u(e,t,i);if(e==i){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(c.apply(e,n))}var l=i.prototype,m=r(o(l)?l:Object.prototype),f=Function.apply.call(e,m,t);return o(f)?f:m}})},function(e,t,i){"use strict";var n=i(115),r=i(51),a=i(653),s=[].slice,o={},l=function(e,t,i){if(!(t in o)){for(var n=[],r=0;r>>((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";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],y=i,g=n;a(e,i,t),s(e[n],f)>0&&a(e,i,n);while(y0)g--}0===s(e[i],f)?a(e,i,g):(g++,a(e,g,n)),g<=t&&(i=g+1),t<=g&&(n=g-1)}}function a(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function s(e,t){return et?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 et?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=0)break;t[e]=o,e=a}t[e]=r}}},function(e,t,i){i(697)("Uint8",1,function(e){return function(t,i,n){return e(this,t,i,n)}})},function(e,t,i){"use strict";if(i(20)){var n=i(111),r=i(17),a=i(21),s=i(15),o=i(655),l=i(698),c=i(76),u=i(151),h=i(81),d=i(45),m=i(150),f=i(78),y=i(59),g=i(656),v=i(131),p=i(91),_=i(46),b=i(357),L=i(35),M=i(73),k=i(355),w=i(92),T=i(352),S=i(77).f,O=i(356),C=i(68),E=i(16),I=i(164),D=i(156),j=i(699),P=i(351),Y=i(80),x=i(359),A=i(169),F=i(206),N=i(700),H=i(24),R=i(106),z=H.f,G=R.f,V=r.RangeError,B=r.TypeError,U=r.Uint8Array,W="ArrayBuffer",q="Shared"+W,J="BYTES_PER_ELEMENT",K="prototype",Z=Array[K],Q=l.ArrayBuffer,X=l.DataView,$=I(0),ee=I(2),te=I(3),ie=I(4),ne=I(5),re=I(6),ae=D(!0),se=D(!1),oe=P.values,le=P.keys,ce=P.entries,ue=Z.lastIndexOf,he=Z.reduce,de=Z.reduceRight,me=Z.join,fe=Z.sort,ye=Z.slice,ge=Z.toString,ve=Z.toLocaleString,pe=E("iterator"),_e=E("toStringTag"),be=C("typed_constructor"),Le=C("def_constructor"),Me=o.CONSTR,ke=o.TYPED,we=o.VIEW,Te="Wrong length!",Se=I(1,function(e,t){return De(j(e,e[Le]),t)}),Oe=a(function(){return 1===new U(new Uint16Array([1]).buffer)[0]}),Ce=!!U&&!!U[K].set&&a(function(){new U(1).set({})}),Ee=function(e,t){var i=f(e);if(i<0||i%t)throw V("Wrong offset!");return i},Ie=function(e){if(L(e)&&ke in e)return e;throw B(e+" is not a typed array!")},De=function(e,t){if(!(L(e)&&be in e))throw B("It is not a typed array constructor!");return new e(t)},je=function(e,t){return Pe(j(e,e[Le]),t)},Pe=function(e,t){var i=0,n=t.length,r=De(e,n);while(n>i)r[i]=t[i++];return r},Ye=function(e,t,i){z(e,t,{get:function(){return this._d[i]}})},xe=function(e){var t,i,n,r,a,s,o=M(e),l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,d=O(o);if(void 0!=d&&!k(d)){for(s=d.call(o),n=[],t=0;!(a=s.next()).done;t++)n.push(a.value);o=n}for(h&&l>2&&(u=c(u,arguments[2],2)),t=0,i=y(o.length),r=De(this,i);i>t;t++)r[t]=h?u(o[t],t):o[t];return r},Ae=function(){var e=0,t=arguments.length,i=De(this,t);while(t>e)i[e]=arguments[e++];return i},Fe=!!U&&a(function(){ve.call(new U(1))}),Ne=function(){return ve.apply(Fe?ye.call(Ie(this)):Ie(this),arguments)},He={copyWithin:function(e,t){return N.call(Ie(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ie(Ie(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(Ie(this),arguments)},filter:function(e){return je(this,ee(Ie(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ne(Ie(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return re(Ie(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){$(Ie(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return se(Ie(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return ae(Ie(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return me.apply(Ie(this),arguments)},lastIndexOf:function(e){return ue.apply(Ie(this),arguments)},map:function(e){return Se(Ie(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return he.apply(Ie(this),arguments)},reduceRight:function(e){return de.apply(Ie(this),arguments)},reverse:function(){var e,t=this,i=Ie(t).length,n=Math.floor(i/2),r=0;while(r1?arguments[1]:void 0)},sort:function(e){return fe.call(Ie(this),e)},subarray:function(e,t){var i=Ie(this),n=i.length,r=v(e,n);return new(j(i,i[Le]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,y((void 0===t?n:v(t,n))-r))}},Re=function(e,t){return je(this,ye.call(Ie(this),e,t))},ze=function(e){Ie(this);var t=Ee(arguments[1],1),i=this.length,n=M(e),r=y(n.length),a=0;if(r+t>i)throw V(Te);while(a255?255:255&n),r.v[m](i*t+r.o,n,Oe)},E=function(e,t){z(e,t,{get:function(){return O(this,t)},set:function(e){return C(this,t,e)},enumerable:!0})};_?(f=i(function(e,i,n,r){u(e,f,c,"_d");var a,s,o,l,h=0,m=0;if(L(i)){if(!(i instanceof Q||(l=b(i))==W||l==q))return ke in i?Pe(f,i):xe.call(f,i);a=i,m=Ee(n,t);var v=i.byteLength;if(void 0===r){if(v%t)throw V(Te);if(s=v-m,s<0)throw V(Te)}else if(s=y(r)*t,s+m>v)throw V(Te);o=s/t}else o=g(i),s=o*t,a=new Q(s);d(e,"_d",{b:a,o:m,l:s,e:o,v:new X(a)});while(h>1,u=23===t?I(2,-24)-I(2,-77):0,h=0,d=e<0||0===e&&1/e<0?1:0;for(e=E(e),e!=e||e===O?(r=e!=e?1:0,n=l):(n=D(j(e)/P),e*(a=I(2,-n))<1&&(n--,a*=2),e+=n+c>=1?u/a:u*I(2,1-c),e*a>=2&&(n++,a/=2),n+c>=l?(r=0,n=l):n+c>=1?(r=(e*a-1)*I(2,t),n+=c):(r=e*I(2,c-1)*I(2,t),n=0));t>=8;s[h++]=255&r,r/=256,t-=8);for(n=n<0;s[h++]=255&n,n/=256,o-=8);return s[--h]|=128*d,s}function z(e,t,i){var n,r=8*i-t-1,a=(1<>1,o=r-7,l=i-1,c=e[l--],u=127&c;for(c>>=7;o>0;u=256*u+e[l],l--,o-=8);for(n=u&(1<<-o)-1,u>>=-o,o+=t;o>0;n=256*n+e[l],l--,o-=8);if(0===u)u=1-s;else{if(u===a)return n?NaN:c?-O:O;n+=I(2,t),u-=s}return(c?-1:1)*n*I(2,u-t)}function G(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function V(e){return[255&e]}function B(e){return[255&e,e>>8&255]}function U(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function W(e){return R(e,52,8)}function q(e){return R(e,23,4)}function J(e,t,i){y(e[b],t,{get:function(){return this[i]}})}function K(e,t,i,n){var r=+i,a=m(r);if(a+t>e[N])throw S(M);var s=e[F]._b,o=a+e[H],l=s.slice(o,o+t);return n?l:l.reverse()}function Z(e,t,i,n,r,a){var s=+i,o=m(s);if(o+t>e[N])throw S(M);for(var l=e[F]._b,c=o+e[H],u=n(+r),h=0;hee;)(Q=$[ee++])in k||o(k,Q,C[Q]);a||(X.constructor=k)}var te=new w(new k(2)),ie=w[b].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||l(w[b],{setInt8:function(e,t){ie.call(this,e,t<<24>>24)},setUint8:function(e,t){ie.call(this,e,t<<24>>24)}},!0)}else k=function(e){u(this,k,p);var t=m(e);this._b=g.call(new Array(t),0),this[N]=t},w=function(e,t,i){u(this,w,_),u(e,k,_);var n=e[N],r=h(t);if(r<0||r>n)throw S("Wrong offset!");if(i=void 0===i?n-r:d(i),r+i>n)throw S(L);this[F]=e,this[H]=r,this[N]=i},r&&(J(k,x,"_l"),J(w,Y,"_b"),J(w,x,"_l"),J(w,A,"_o")),l(w[b],{getInt8:function(e){return K(this,1,e)[0]<<24>>24},getUint8:function(e){return K(this,1,e)[0]},getInt16:function(e){var t=K(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=K(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return G(K(this,4,e,arguments[1]))},getUint32:function(e){return G(K(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return z(K(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return z(K(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){Z(this,1,e,V,t)},setUint8:function(e,t){Z(this,1,e,V,t)},setInt16:function(e,t){Z(this,2,e,B,t,arguments[2])},setUint16:function(e,t){Z(this,2,e,B,t,arguments[2])},setInt32:function(e,t){Z(this,4,e,U,t,arguments[2])},setUint32:function(e,t){Z(this,4,e,U,t,arguments[2])},setFloat32:function(e,t){Z(this,4,e,q,t,arguments[2])},setFloat64:function(e,t){Z(this,8,e,W,t,arguments[2])}});v(k,p),v(w,_),o(w[b],s.VIEW,!0),t[p]=k,t[_]=w},function(e,t,i){var n=i(42),r=i(155),a=i(16)("species");e.exports=function(e,t){var i,s=n(e).constructor;return void 0===s||void 0==(i=n(s)[a])?t:r(i)}},function(e,t,i){"use strict";var n=i(73),r=i(131),a=i(59);e.exports=[].copyWithin||function(e,t){var i=n(this),s=a(i.length),o=r(e,s),l=r(t,s),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?s:r(c,s))-l,s-o),h=1;l0)l in i?i[o]=i[l]:delete i[o],o+=h,l+=h;return i}},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":">",'"':""","'":"'"}},y={escape:new RegExp("["+d.keys(f.escape).join("")+"]","g")};d.each(["escape"],function(e){d[e]=function(t){return null==t?"":(""+t).replace(y[e],function(t){return f[e][t]})}}),d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,v={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},p=/\\|'|\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||g).source,(i.interpolate||g).source,(i.evaluate||g).source].join("|")+"|$","g"),a=0,s="__p+='";e.replace(r,function(t,i,n,r,o){return s+=e.slice(a,o).replace(p,function(e){return"\\"+v[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){i(703),e.exports=i(19).Reflect.set},function(e,t,i){var n=i(49),r=i(146),a=i(161),s=i(53),o=i(47),l=i(79),c=i(48),u=i(51);function h(e,t,i){var o,d,m=arguments.length<4?e:arguments[3],f=r.f(c(e),t);if(!f){if(u(d=a(e)))return h(d,t,i,m);f=l(0)}if(s(f,"value")){if(!1===f.writable||!u(m))return!1;if(o=r.f(m,t)){if(o.get||o.set||!1===o.writable)return!1;o.value=i,n.f(m,t,o)}else n.f(m,t,l(0,i));return!0}return void 0!==f.set&&(f.set.call(m,i),!0)}o(o.S,"Reflect",{set:h})},function(e,t,i){i(347),i(93),i(118),i(705),i(712),i(713),e.exports=i(19).Promise},function(e,t,i){"use strict";var n,r,a,s,o=i(94),l=i(36),c=i(108),u=i(163),h=i(47),d=i(51),m=i(115),f=i(706),y=i(707),g=i(657),v=i(658).set,p=i(708)(),_=i(640),b=i(659),L=i(709),M=i(660),k="Promise",w=l.TypeError,T=l.process,S=T&&T.versions,O=S&&S.v8||"",C=l[k],E="process"==u(T),I=function(){},D=r=_.f,j=!!function(){try{var e=C.resolve(1),t=(e.constructor={})[i(28)("species")]=function(e){e(I,I)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(I)instanceof t&&0!==O.indexOf("6.6")&&-1===L.indexOf("Chrome/66")}catch(n){}}(),P=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},Y=function(e,t){if(!e._n){e._n=!0;var i=e._c;p(function(){var n=e._v,r=1==e._s,a=0,s=function(t){var i,a,s,o=r?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{o?(r||(2==e._h&&F(e),e._h=1),!0===o?i=n:(u&&u.enter(),i=o(n),u&&(u.exit(),s=!0)),i===t.promise?c(w("Promise-chain cycle")):(a=P(i))?a.call(i,l,c):l(i)):c(n)}catch(h){u&&!s&&u.exit(),c(h)}};while(i.length>a)s(i[a++]);e._c=[],e._n=!1,t&&!e._h&&x(e)})}},x=function(e){v.call(l,function(){var t,i,n,r=e._v,a=A(e);if(a&&(t=b(function(){E?T.emit("unhandledRejection",r,e):(i=l.onunhandledrejection)?i({promise:e,reason:r}):(n=l.console)&&n.error&&n.error("Unhandled promise rejection",r)}),e._h=E||A(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},A=function(e){return 1!==e._h&&0===(e._a||e._c).length},F=function(e){v.call(l,function(){var t;E?T.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},N=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),Y(t,!0))},H=function(e){var t,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw w("Promise can't be resolved itself");(t=P(e))?p(function(){var n={_w:i,_d:!1};try{t.call(e,c(H,n,1),c(N,n,1))}catch(r){N.call(n,r)}}):(i._v=e,i._s=1,Y(i,!1))}catch(n){N.call({_w:i,_d:!1},n)}}};j||(C=function(e){f(this,C,k,"_h"),m(e),n.call(this);try{e(c(H,this,1),c(N,this,1))}catch(t){N.call(this,t)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=i(710)(C.prototype,{then:function(e,t){var i=D(g(this,C));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=E?T.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&Y(this,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n;this.promise=e,this.resolve=c(H,e,1),this.reject=c(N,e,1)},_.f=D=function(e){return e===C||e===s?new a(e):r(e)}),h(h.G+h.W+h.F*!j,{Promise:C}),i(116)(C,k),i(711)(k),s=i(19)[k],h(h.S+h.F*!j,k,{reject:function(e){var t=D(this),i=t.reject;return i(e),t.promise}}),h(h.S+h.F*(o||!j),k,{resolve:function(e){return M(o&&this===s?C:this,e)}}),h(h.S+h.F*!(j&&i(350)(function(e){C.all(e)["catch"](I)})),k,{all:function(e){var t=this,i=D(t),n=i.resolve,r=i.reject,a=b(function(){var i=[],a=0,s=1;y(e,!1,function(e){var o=a++,l=!1;i.push(void 0),s++,t.resolve(e).then(function(e){l||(l=!0,i[o]=e,--s||n(i))},r)}),--s||n(i)});return a.e&&r(a.v),i.promise},race:function(e){var t=this,i=D(t),n=i.reject,r=b(function(){y(e,!1,function(e){t.resolve(e).then(i.resolve,n)})});return r.e&&n(r.v),i.promise}})},function(e,t){e.exports=function(e,t,i,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(i+": incorrect invocation!");return e}},function(e,t,i){var n=i(108),r=i(348),a=i(349),s=i(48),o=i(160),l=i(162),c={},u={};t=e.exports=function(e,t,i,h,d){var m,f,y,g,v=d?function(){return e}:l(e),p=n(i,h,t?2:1),_=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(a(v)){for(m=o(e.length);m>_;_++)if(g=t?p(s(f=e[_])[0],f[1]):p(e[_]),g===c||g===u)return g}else for(y=v.call(e);!(f=y.next()).done;)if(g=r(y,p,f.value,t),g===c||g===u)return g};t.BREAK=c,t.RETURN=u},function(e,t,i){var n=i(36),r=i(658).set,a=n.MutationObserver||n.WebKitMutationObserver,s=n.process,o=n.Promise,l="process"==i(109)(s);e.exports=function(){var e,t,i,c=function(){var n,r;l&&(n=s.domain)&&n.exit();while(e){r=e.fn,e=e.next;try{r()}catch(a){throw e?i():t=void 0,a}}t=void 0,n&&n.enter()};if(l)i=function(){s.nextTick(c)};else if(!a||n.navigator&&n.navigator.standalone)if(o&&o.resolve){var u=o.resolve(void 0);i=function(){u.then(c)}}else i=function(){r.call(n,c)};else{var h=!0,d=document.createTextNode("");new a(c).observe(d,{characterData:!0}),i=function(){d.data=h=!h}}return function(n){var r={fn:n,next:void 0};t&&(t.next=r),e||(e=r,i()),t=r}}},function(e,t,i){var n=i(36),r=n.navigator;e.exports=r&&r.userAgent||""},function(e,t,i){var n=i(62);e.exports=function(e,t,i){for(var r in t)i&&e[r]?e[r]=t[r]:n(e,r,t[r]);return e}},function(e,t,i){"use strict";var n=i(36),r=i(19),a=i(49),s=i(56),o=i(28)("species");e.exports=function(e){var t="function"==typeof r[e]?r[e]:n[e];s&&t&&!t[o]&&a.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,i){"use strict";var n=i(47),r=i(19),a=i(36),s=i(657),o=i(660);n(n.P+n.R,"Promise",{finally:function(e){var t=s(this,r.Promise||a.Promise),i="function"==typeof e;return this.then(i?function(i){return o(t,e()).then(function(){return i})}:e,i?function(i){return o(t,e()).then(function(){throw i})}:e)}})},function(e,t,i){"use strict";var n=i(47),r=i(640),a=i(659);n(n.S,"Promise",{try:function(e){var t=r.f(this),i=a(e);return(i.e?t.reject:t.resolve)(i.v),t.promise}})},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?1:"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){Cesium.Cesium3DTilePointFeature.prototype.getId=function(){return this.getProperty("id")||"".concat(this.content.url).concat(this._batchId)}},function(e,t){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);var n={};i.r(n),i.d(n,"Buildings",function(){return Vn}),i.d(n,"CesiumTilesetLayer",function(){return zn}),i.d(n,"Czml",function(){return qn}),i.d(n,"Gltf",function(){return Kn}),i.d(n,"PointCloud",function(){return Xn}),i.d(n,"Terrain",function(){return zt}),i.d(n,"ObliqueLayer",function(){return Di}),i.d(n,"GeoJSON",function(){return pr}),i.d(n,"SingleImage",function(){return Mr}),i.d(n,"OpenStreetMap",function(){return wr}),i.d(n,"TMSBase",function(){return Sr}),i.d(n,"Vector",function(){return _n}),i.d(n,"TiledLayer",function(){return Er}),i.d(n,"VectorCluster",function(){return Pr}),i.d(n,"WFS",function(){return xr}),i.d(n,"WMS",function(){return Fr}),i.d(n,"WMTS",function(){return Hr}),i.d(n,"Wsv",function(){return Br}),i.d(n,"FeatureStore",function(){return ta});var r={};i.r(r),i.d(r,"Legend",function(){return Fa}),i.d(r,"Planning",function(){return xl}),i.d(r,"Query",function(){return Tu}),i.d(r,"Search",function(){return uh}),i.d(r,"AdvancedWalkMode",function(){return fh}),i.d(r,"BalloonInfo",function(){return gh}),i.d(r,"Copyright",function(){return ph}),i.d(r,"CreateLink",function(){return bh}),i.d(r,"DisplayQuality",function(){return Uh}),i.d(r,"Drawing",function(){return Jh}),i.d(r,"Export",function(){return Zh}),i.d(r,"FeatureList",function(){return Xh}),i.d(r,"Locator",function(){return Vu}),i.d(r,"Measurement",function(){return Dd}),i.d(r,"SingleMeasurement",function(){return Pd}),i.d(r,"NavigationControls",function(){return Ad}),i.d(r,"OverviewMap",function(){return Nd}),i.d(r,"PDFCreator",function(){return rm}),i.d(r,"PositionDisplay",function(){return lm}),i.d(r,"Shadow",function(){return um}),i.d(r,"TransparentTerrainMode",function(){return vm}),i.d(r,"Flight",function(){return _m}),i.d(r,"HeightProfile",function(){return Dm});i(67),i(547),i(561),i(574),i(578);var a=i(34),s=(i(25),i(40),i(64),i(11),i(88),i(32),i(12),i(13),i(4),i(18));function o(e,t,i){var n,r=function(e,t){if(null===t)return null!==e&&"Expected ".concat(c.getErrorValue(e)," to be null");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)||"object"!==Object(s["a"])(e))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;try{i=JSON.stringify(e)}catch(n){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 if("undefined"===typeof r&&void 0!==t[i])a="Missing key ".concat(n).concat(i," in ").concat(c.getErrorValue(e));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(5),h=i(27),d=(i(29),i(37),i(1)),m=i(0);i(26),i(7),i(44),i(22),i(74),i(75);function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return!t||"object"!==Object(s["a"])(t)&&"function"!==typeof t?f(e):t}var g=i(643),v=i.n(g),p=i(537),_=i.n(p);function b(e){return b=_.a?v.a:function(e){return e.__proto__||v()(e)},b(e)}var L=i(661),M=i.n(L),k=i(538);function w(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=M()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(k["a"])(e,t)}var T=i(10),S=(i(168),i(96),{OFF:1,ERROR:2,WARN:4,INFO:8,DEBUG:16}),O={ERROR:0,WARN:0,INFO:0,DEBUG:0};O.ERROR=S.ERROR|S.WARN|S.INFO|S.DEBUG,O.WARN=S.WARN|S.INFO|S.DEBUG,O.INFO=S.INFO|S.DEBUG,O.DEBUG=S.DEBUG;var C,E=S.INFO,I=!1,D={},j=new Map;j.set(S.ERROR,"error"),j.set(S.WARN,"warn"),j.set(S.INFO,"info"),j.set(S.DEBUG,"log");var P=function(){function e(t){Object(d["a"])(this,e),this.className=t,this.deprecations=new Set}return Object(m["a"])(e,null,[{key:"loggers",get:function(){return D}},{key:"enabled",get:function(){return Object.keys(S).find(function(e){return S[e]===E})||"OFF"},set:function(e){if(e){var t="string"===typeof e?e.toUpperCase():"INFO";E=S[t]||S.INFO}else E=S.OFF}},{key:"timestamp",get:function(){return I},set:function(e){I=e}}]),Object(m["a"])(e,[{key:"error",value:function(e){if(o(e,String),E&O.ERROR){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};Object(d["a"])(this,t),i.className=t.className,e=y(this,b(t).call(this,i)),e.proj=null,e.proj4=null,e.epsg=null;var n=i.epsg,r=i.proj4;if("string"===typeof n&&""===n.trim()&&(n=null),n){if("string"===typeof n&&0!==n.indexOf("EPSG:")&&(n="EPSG:".concat(n)),Number.isFinite(n)&&(n="EPSG:".concat(n)),"string"===typeof r&&""===r.trim()&&(r=null),r&&(e.proj4=r,window.proj4.defs(n,r)),i.alias){var a=i.alias;a.forEach(function(e){window.proj4.defs(e,window.proj4.defs(n))},f(e))}e.epsg=n,e.proj=ol.proj.get(n)}return e.proj||(e.framework.getProjection()?e.epsg=e.framework.getProjection().getEPSG():e.epsg="EPSG:4326",e.proj=ol.proj.get(e.epsg)),e}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.util.Projection"}}]),Object(m["a"])(t,[{key:"getProjection",value:function(){return this.proj}},{key:"getEPSG",value:function(){return this.epsg}},{key:"getPROJ4",value:function(){return this.proj4}},{key:"transformTo",value:function(e,i){return t.transform(e,this,i)}},{key:"transformFrom",value:function(e,i){return t.transform(this,e,i)}},{key:"getConfigObject",value:function(){var e={epsg:this.epsg};return this.proj4&&(e.proj4=this.proj4),e}}],[{key:"transform",value:function(e,t,i){var n=ol.proj.getTransform(t.getProjection(),e.getProjection()),r=new Array(2);return n([i[0],i[1]],r,2),i.length>2&&r.push(i[2]),r}},{key:"transformCoordinates",value:function(e,i,n){for(var r=[],a=0;a1&&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:"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;if(null!=i){i=i.split(",");for(var n=0;n=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;i0?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(),ne.getInstance().publish(B.LOCALE_CHANGED,this.currentlocale))}},{key:"getRegisteredLanguages",value:function(){for(var e=[],t=0;t0&&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,ee=0,te=Symbol("VcsConfigStyle"),ie=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 $,this.projection=null,this.logger=Y.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;r0)this.unsubscribeByKey(this.exclusiveListener.listeners.shift())}Q.getInstance().deactivateClickBehavior(),this.exclusiveListener.id=e,this.exclusiveListener.removedCallback=t}},{key:"clearExclusive",value:function(){Q.getInstance().activateClickBehavior(),this.exclusiveListener.id=null,this.exclusiveListener.removedCallback=null}},{key:"unsubscribe",value:function(e,t,i){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-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;n1)&&(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 De||(De=new e),De}},{key:"dispose",value:function(){De=null}}]),e}(),Pe=je,Ye=Y.getLogger("vcs.vcm.util.Extent"),xe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(d["a"])(this,e),this.projection=new R(t),this.extent=t.coordinates||this.projection.getProjection().getExtent()}return Object(m["a"])(e,[{key:"getInputCoordinates",value:function(){return Ye.deprecate("getInputCoordinates","access the .extent property directly"),this.extent}},{key:"getProjection",value:function(){return Ye.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(T["a"])(this.extent))):this.extent.slice();return i}var n=R.getTransformer(e,this.projection),r=t||[];return n(this.extent,r,2),r}},{key:"isValid",value:function(){return!(!this.extent||!Array.isArray(this.extent)||4!==this.extent.length)&&(!!(Number.isFinite(this.extent[0])&&Number.isFinite(this.extent[1])&&Number.isFinite(this.extent[2])&&Number.isFinite(this.extent[3]))&&(this.extent[0]<=this.extent[2]&&this.extent[1]<=this.extent[3]))}},{key:"getConfigObject",value:function(){return Object.assign({coordinates:this.extent.slice()},this.projection.getConfigObject())}},{key:"inputCoordinates",get:function(){return Ye.deprecate("inputCoordinates","use .extent instead"),this.extent},set:function(e){Ye.deprecate("inputCoordinates","use .extent instead"),this.extent=e}}],[{key:"WGS_84_EXTENT",get:function(){return[-180,-90,180,90]}}]),e}(),Ae=xe,Fe={VECTOR:"vector",DECLARATIVE:"declarative",REFERENCE:"reference"},Ne=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||{en:this.name},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:Fe.REFERENCE,name:this.name}}},{key:"_styleChanged",value:function(){this.styleChanged.raiseEvent()}}]),e}(),He=Ne,Re=Y.getLogger("vcs.vcm.util.style.StyleHelpers"),ze={NWSE:1,SWNE:2,DIAGONALCROSS:3,NS:4,WE:5,CROSS:6};function Ge(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 Ve(e){var t=e.toBytes();return t[3]/=255,t}function Be(e){if(Array.isArray(e))return 3===e.length&&e.push(1),e;if("string"===typeof e){if(/^#/.test(e))return Ge(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 Ue(e){return"rgba(".concat(Be(e).join(","),")")}function We(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=Ue(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=Ue(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 qe(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 Je(e){return/^#[0-9a-f]{6}$/.test(e)}function Ke(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 Ze(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 nr?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(Ie["a"])(t,3),l=o[0],c=o[1],u=o[2],h=s.length,d=0;d=0))&&t.supportsLayer(this)}},{key:"isActive",value:function(){return this.active}},{key:"activate",value:function(e){var t=function(){return this.show(),this.active=e,this.framework.publish(B.LAYER_ACTIVATED,this),this.framework.publish(B.LAYER_CHANGED,this),this.globalHider.hideObjects(this.hiddenObjectIds),Promise.resolve()}.bind(this),i=function(){return this.hide(),this.active=e,this.framework.publish(B.LAYER_DEACTIVATED,this),this.framework.publish(B.LAYER_CHANGED,this),this.globalHider.showObjects(this.hiddenObjectIds),Promise.resolve()}.bind(this);if(e!=this.isActive()){if(!e)return this.isInitialized()?i():Promise.reject();if(this.isSupported()){var n=this.initialize();return n?n.then(t,function(){return Promise.reject()}):t()}}return Promise.resolve()}},{key:"dispose",value:function(){}},{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:"isPartOfAGroupLayer",value:function(){return this.groupedWith.length>0}},{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 He)return e;if(e){if(e.type===Fe.DECLARATIVE||e.declarativeStyle)return new Tt(e);if(e.type!==Fe.REFERENCE){var n=new gt(e);return t?t.assign(n):n}var r=this.framework.getStyleByName(e.name);if(r)return r;this.logger.warning("could not find style with name ".concat(e.name))}}return t||St.clone()}},{key:"setStyle",value:function(e,t){if(o(e,[ol.style.Style,He,Function,String]),"string"===typeof e){var i=this.framework.getStyleByName(e);if(!i)return void this.logger.warning("could not find style with name ".concat(e));this.style=i}else e instanceof He?this.style=e:(this.style=new gt({}),this.style.style=e)}},{key:"clearStyle",value:function(){this.setStyle(this.defaultStyle)}}]),t}(A),At=xt,Ft={};function Nt(e){if(!Ft[e.url])return Ft[e.url]=new Cesium.CesiumTerrainProvider(e),Ft[e.url];var t=Ft[e.url];return!t.requestVertexNormals&&e.requestVertexNormals&&(Ft[e.url]=new Cesium.CesiumTerrainProvider(e),t=Ft[e.url]),t}function Ht(e,t,i){var n=i?R.getTransformer(R.createGeographicProjection(),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)})}Dt.CESIUM_TERRAIN=Dt.lastLayerId,Dt.lastLayerId+=1;var Rt=function(e){function t(e){var i;return Object(d["a"])(this,t),e.layertype=Dt.CESIUM_TERRAIN,e.className=t.className,i=y(this,b(t).call(this,e)),i.requestVertexNormals=null==e.requestVertexNormals||e.requestVertexNormals,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Terrain"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){this.initialized||(this.cesiumTerrainProvider=Nt({url:this.url,requestVertexNormals:this.requestVertexNormals}),this.initialized=!0)}},{key:"show",value:function(){var e=this.framework.getActiveMap();if(e&&e.isInitialized()){this.framework.getLayers().filter(function(e){return e instanceof t}).forEach(function(e){e.activate(!1)});var i=e.getScene(),n=i.globe;n.depthTestAgainstTerrain=!0,n.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.active=!1,this.framework.removeLayer(this)}},{key:"getHeightForWGS84Coordinates",value:function(e){return Ht(this.cesiumTerrainProvider,e)}}]),t}(At),zt=Rt,Gt=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.viewer=null,i.debugMode=!1,i.enableLightning=Object(u["e"])(e.enableLightning,!0),i.tileCacheSize=Object(u["h"])(e.tileCacheSize,1),i.eventHandler=null,i.invertClickBehavior=!1,i.defaultJDate=Cesium.JulianDate.fromDate(new Date(2014,6,20,13,0,0,0)),i.supportedlayers=[Dt.CESIUM_BUILDINGSLAYER,Dt.CESIUM_TERRAIN,Dt.CESIUM_POINTCLOUDLAYER,Dt.CESIUM_GLTFLAYER,Dt.CESIUM_ENTITIESLAYER,Dt.CESIUM_CZMLLAYER,Dt.CESIUM_TILESET_LAYER,Dt.TMSBase,Dt.VECTOR,Dt.FEATURESTORE,Dt.CLUSTER,Dt.WMS,Dt.WMTS,Dt.WSV,Dt.GEOJSON,Dt.IMAGE,Dt.OPENSTREETMAP,Dt.TILED_LAYER],i.urlParameter=null,i.webGLaa=Object(u["e"])(e.webGLaa,!1),i.enableTerrainAdjustmentWhenLoading=Object(u["e"])(e.enableTerrainAdjustmentWhenLoading,!0),i.limitCameraHeight=null!=e.limitCameraHeight?Object(u["g"])(e.limitCameraHeight,0):null,i.globeColor=e.globeColor?Cesium.Color.fromCssColorString(e.globeColor):Cesium.Color.fromBytes(63,71,204),i._clusterDataSourceDisplay=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.maps.Cesium"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){var e=this;if(!this.initialized){try{this.viewer=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.viewer.scene.globe.tileCacheSize=this.tileCacheSize,this.viewer.scene.globe.baseColor=this.globeColor,this.dataSourceDisplay=new Cesium.DataSourceDisplay({scene:this.viewer.scene,dataSourceCollection:new Cesium.DataSourceCollection}),this.viewer.scene.frameState.creditDisplay.update=function(){},this.viewer.scene.frameState.creditDisplay.beginFrame=function(){},this.viewer.scene.frameState.creditDisplay.endFrame=function(){};var t=this.viewer.clock;t.shouldAnimate=!0,t.onTick.addEventListener(function(){var i=t.currentTime;e.dataSourceDisplay.update(i)}),this.viewer.scene.shadowMap.maximumDistance=5e3,this.viewer.scene.shadowMap.darkness=.6,this.viewer.scene.globe.depthTestAgainstTerrain=!0,this.viewer.scene.highDynamicRange=!1,this.viewer.scene.globe.enableLighting=this.enableLightning,this.viewer.scene.camera.enableTerrainAdjustmentWhenLoading=this.enableTerrainAdjustmentWhenLoading,this.setDay(this.defaultJDate);var i=document.getElementsByClassName("cesium-widget-credits");if(i)for(var n=0;n0){var i=r.viewer.scene.camera.positionCartographic.height,n=t+c-i;r.viewer.scene.camera.moveBackward(n)}});var b=Cesium.Cartographic.fromDegrees(f[0],f[1]),L=this.viewer.scene.globe.getHeight(b);if(L&&L>0){var M=Cesium.Cartesian3.fromDegrees(f[0],f[1],L);v.destination=M,g.setView(v)}}null===l||void 0===l?l=2e3:l>0&&g.moveBackward(l),o=g.position}var k=this.viewer.scene.camera,w={heading:u,pitch:h,roll:d};o=o||null,e.getAnimate()?k.flyTo({destination:o,orientation:w,duration:a,maximumHeight:s,complete:n}):(k.setView({destination:o,orientation:w}),n&&n()),c=k.positionCartographic.height}}}},{key:"disableMovement",value:function(e){Se(b(t.prototype),"disableMovement",this).call(this,e),e?(this.originalState={enableRotate:this.viewer.scene.screenSpaceCameraController.enableRotate,enableTranslate:this.viewer.scene.screenSpaceCameraController.enableTranslate,enableZoom:this.viewer.scene.screenSpaceCameraController.enableZoom,enableTilt:this.viewer.scene.screenSpaceCameraController.enableTilt,enableLook:this.viewer.scene.screenSpaceCameraController.enableLook},this.viewer.scene.screenSpaceCameraController.enableRotate=!1,this.viewer.scene.screenSpaceCameraController.enableTranslate=!1,this.viewer.scene.screenSpaceCameraController.enableZoom=!1,this.viewer.scene.screenSpaceCameraController.enableTilt=!1,this.viewer.scene.screenSpaceCameraController.enableLook=!1):!e&&this.originalState&&(this.viewer.scene.screenSpaceCameraController.enableRotate=this.originalState.enableRotate,this.viewer.scene.screenSpaceCameraController.enableTranslate=this.originalState.enableTranslate,this.viewer.scene.screenSpaceCameraController.enableZoom=this.originalState.enableZoom,this.viewer.scene.screenSpaceCameraController.enableTilt=this.originalState.enableTilt,this.viewer.scene.screenSpaceCameraController.enableLook=this.originalState.enableLook,this.originalState=null)}},{key:"setDay",value:function(e){this.viewer.clock.currentTime=e,this.viewer.clock.multiplier=1}},{key:"setLightning",value:function(e){this.enableLightning=e,this.viewer.scene.globe.enableLighting=e}},{key:"getCesiumWidget",value:function(){return this.viewer}},{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.viewer.scene,dataSourceCollection:t,visualizersCallback:i}),this.viewer.clock.onTick.addEventListener(function(t){e._clusterDataSourceDisplay.update(t.currentTime)}),t}},{key:"getDataSourceDisplay",value:function(){return this.dataSourceDisplay}},{key:"getScene",value:function(){return this.viewer.scene}},{key:"getViewer",value:function(){return this.viewer}},{key:"pointIsVisible",value:function(e){var t=this.viewer.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="cesium-viewer-cesiumInspectorContainer",this.framework.getMapContainer().appendChild(this.cesiumInspectorContainer),this.cesiumInspector=new Cesium.CesiumInspector(this.cesiumInspectorContainer,this.getScene()))}},{key:"pickPositionSupported",value:function(){return!!this.initialized&&this.viewer.scene.pickPositionSupported}},{key:"isGroundPrimitiveSupported",value:function(){return!!this.initialized&&this.viewer.scene.context.fragmentDepth}}]),t}(Ee),Vt=Gt,Bt=i(30);function Ut(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 Wt(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 qt(e,t){var i=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(i*i+n*n)}var Jt=new ol.Sphere(6378137);function Kt(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 Zt(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 Qt=new Cesium.Cartesian2,Xt=new Cesium.Cartesian2,$t=new Cesium.Cartesian2,ei=new Cesium.Cartesian3,ti=new Cesium.Cartesian3,ii=new Cesium.Cartesian3;function ni(e,t,i){ei=Cesium.Cartesian3.fromElements(t[0]-e[0],t[1]-e[1],t[2]-e[2],ei),ei.equals(Cesium.Cartesian3.ZERO)&&(ei=Cesium.Cartesian3.fromElements(1,1,1,ei)),ei=Cesium.Cartesian3.normalize(ei,ei),ti=Cesium.Cartesian3.fromElements(i[0]-e[0],i[1]-e[1],i[2]-e[2],ti);var n=Cesium.Cartesian3.dot(ei,ti);return ei=Cesium.Cartesian3.multiplyByScalar(ei,n,ei),[ei.x+e[0],ei.y+e[1],ei.z+e[2]]}function ri(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function ai(e,t){return ei=Cesium.Cartesian3.fromElements(e[0],e[1],e[2],ei),ti=Cesium.Cartesian3.fromElements(t[0],t[1],t[2],ti),Cesium.Cartesian3.distance(ei,ti)}function si(e,t,i,n){ei=Cesium.Cartesian3.fromElements(t[0]-e[0],t[1]-e[1],t[2]-e[2],ei),ti=Cesium.Cartesian3.fromElements(i[0]-e[0],i[1]-e[1],i[2]-e[2],ti),ii=Cesium.Cartesian3.fromElements(i[0]-t[0],i[1]-t[1],i[2]-i[2],ii);var r=Cesium.Cartesian3.magnitude(ei);return!(rn?s[o][2]:n,r=s[o][2]n?u+c:n,r=u-c0?(n=f||n,n=r+h>n?r+h:n):(n=r>n?r:n,r=r+hn?r:n,min:r}}function di(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=ui(e,a);r(s),e.setCoordinates(a)}function mi(e){e.unset("olcs_groundLevel",!0);var t=ne.getInstance().getActiveMap();if(t instanceof Vt){var i=e.getGeometry();if(i){var n=i.getCoordinates(),r=ui(i,n);return t.getHeightFromTerrain(r).then(function(){i.setCoordinates(n)})}}return Promise.resolve()}function fi(e){e.set("olcs_altitudeMode","clampToGround")}function yi(e){return e instanceof ol.geom.Circle?ol.geom.Polygon.fromCircle(e):(e instanceof ol.geom.Polygon&&e.unset("_vcsGeomType"),e)}function gi(e,t){var i=Jt.offset(R.mercatorToWgs84(e),t,Math.PI/2),n=R.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 vi(e){for(var t=0,i=0;i=e.length&&(n=0);var r=e[i],a=e[n],s=qt(r,a);s>t&&(t=s)}return t}function pi(e,t){var i=vi(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=i/t.size[0];return{size:a,fovy:o,metersPerUnit:l}}function _i(e,t,i){var n=e instanceof ol.geom.Circle?ol.geom.Polygon.fromCircle(e):e,r=n.getCoordinates(),a=ui(n,r),s=ol.proj.getTransform(ol.proj.get("EPSG:4326"),i.projection),o=a.map(function(e){return R.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 bi(e,t,i){var n=e.getCoordinates(),r=ol.proj.get("EPSG:3857"),a=ui(e,n),s=a.map(function(e){return Object(Bt["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})}var Li=i(645),Mi=i(540),ki=i(541),wi=i(114),Ti=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.layer=e.layer||null,i.suppressPublish=!1,i}return w(t,e),Object(m["a"])(t,[{key:"activateWithViewPoint",value:function(e,t){var i=this;return this.state===wi["a"].STATE.INACTIVE&&(this.state=wi["a"].STATE.LOADING,this.olMap=e,t)?this.setViewPoint(t).then(function(){i.state=wi["a"].STATE.ACTIVE}):Promise.resolve(this.state)}},{key:"setImageOnMap",value:function(e,i){var n=this,r=!this.suppressPublish&&(!this.currentImage||this.currentImage.name!==e);return Se(b(t.prototype),"setImageOnMap",this).call(this,e,i).then(function(){r&&ne.getInstance().publish(B.OBLIQUE_IMAGE_CHANGED,n.layer,n.currentImage)})}},{key:"setViewPoint",value:function(e){var t=this,i=e.getGroundPosition();i||(i=e.getCameraPosition());var n=ol.proj.transform(i,R.createGeographicProjection().getProjection(),this.projection),r=this.getImageNameForCoordinates(n);if(null!=r){var a=i[2]||!this.terrainProvider?Promise.resolve([n]):Object(Bt["c"])(this.terrainProvider,[n],this.projection);return a.then(function(e){var i=Object(Ie["a"])(e,1),n=i[0];return t.setImageOnMap(r,n)}).catch(function(){return t.setImageOnMap(r,n)}).then(function(){var i=e.getDistance();i||(i=e.getCameraPosition()?e.getCameraPosition()[2]:1e3);var n=pi(t.olMap,t.currentImage),r=n.size,a=n.fovy,s=n.metersPerUnit,o=2*i*Math.tan(a/2),l=o/s,c=l/r.height,u=t.currentView.view;u.setResolution(u.constrainResolution(c))})}return Promise.reject(new Error("could not find an image in this direction"))}},{key:"canShowViewpoint",value:function(e){var t=e.getGroundPosition();t||(t=e.getCameraPosition());var i=ol.proj.transform(t,R.createGeographicProjection().getProjection(),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}}]),t}(wi["a"]),Si=Ti,Oi=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.layer=e.layer,i.directions={},i}return w(t,e),Object(m["a"])(t,[{key:"handleMetadataResponse",value:function(e,t){var i=Li["a"].getVersion(e);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")}},{key:"createDirection",value:function(e){return new Si(Object.assign({layer:this.layer},e))}},{key:"handleMetadataResponseV34",value:function(e,i,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(i,a,s,o,n);var l=[],c=e.generalImageInfo.cameraParameter;c&&Object.keys(c).forEach(function(e){var t=new ki["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=t.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(i,d,m,o,n),y=new Mi["a"](Object.assign({terrainProvider:r.terrainProvider,projection:r.projection,meta:f},h));u[y.viewDirection]||(u[y.viewDirection]={direction:y.viewDirection,images:{},rTreeItems:[],footPrintFeatures:[],projection:r.projection,terrainProvider:r.terrainProvider}),u[y.viewDirection].images[y.name]=y,u[y.viewDirection].rTreeItems.push({minX:y.centerPointOnGround[0],minY:y.centerPointOnGround[1],maxX:y.centerPointOnGround[0],maxY:y.centerPointOnGround[1],name:y.name});var g=new ol.geom.Polygon([y.groundCoordinates.concat([y.groundCoordinates[0]])]);g.transform(r.projection,ol.proj.get("EPSG:3857"));var v=new ol.Feature({geometry:g});v.setId(y.name),u[y.viewDirection].footPrintFeatures.push(v)}),Object.keys(u).forEach(function(e){r.directions[e]?r.directions[e].addOptions(u[e]):r.directions[e]=r.createDirection(u[e]),r.extent=ol.extent.extend(r.extent,r.directions[e].footPrintsLayer.getSource().getExtent())}))}}],[{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],g=Cesium.Matrix3.fromRowMajorArray((m=[]).concat.apply(m,Object(T["a"])(y["camera-matrix"]))),v=Cesium.Matrix3.inverse(g,new Cesium.Matrix3),p=Cesium.Matrix3.fromRowMajorArray((f=[]).concat.apply(f,Object(T["a"])(e["rotation-matrix"]))),_=Cesium.Matrix3.transpose(p,new Cesium.Matrix3),b=-1*y["focal-length"];Cesium.Matrix3.multiplyByScalar(v,b,v);var L=Cesium.Matrix3.multiply(_,v,new Cesium.Matrix3),M=Cesium.Matrix4.fromRotationTranslation(g,Cesium.Cartesian3.ZERO,new Cesium.Matrix4),k=Cesium.Cartesian3.fromArray(a),w=Cesium.Matrix4.fromTranslation(Cesium.Cartesian3.multiplyByScalar(k,-1,new Cesium.Cartesian3),new Cesium.Matrix4),S=Cesium.Matrix4.fromRotationTranslation(p,Cesium.Cartesian3.ZERO,new Cesium.Matrix4),O=Cesium.Matrix4.multiply(M,Cesium.Matrix4.multiply(S,w,new Cesium.Matrix4),new Cesium.Matrix4);d.projectionCenter=k,d.camera=u,d.pToRealworld=L,d.pToImage=O}return d}}]),t}(Li["a"]),Ci=Oi;function Ei(e){var t=e.getHeading(),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}Dt.OBLIQUE_OBLIQUELAYER=Dt.lastLayerId,Dt.lastLayerId+=1,B.OBLIQUE_IMAGE_CHANGED="OBLIQUE_IMAGE_CHANGED",B.OBLIQUE_DIRECTION_CHANGED="OBLIQUE_DIRECTION_CHANGED";var Ii=function(e){function t(e){var i;Object(d["a"])(this,t),e.layertype=Dt.OBLIQUE_OBLIQUELAYER,e.className=t.className,i=y(this,b(t).call(this,e));var n=e.terrain?e.terrain.url:e.terrainUrl;return i.terrainProvider=n?Nt({url:n}):null,i.sourceProjection=e.projection?new R(e.projection):new R({epsg:e.epsg,proj4:e.proj4}),i.terrainErrorThreshold=Object(u["g"])(e.terrainErrorThreshold,1),i.terrainErrorCountThreshold=Object(u["h"])(e.terrainErrorCountThreshold,3),i.obliqueCollection=new Ci({terrainProvider:i.terrainProvider,projection:i.sourceProjection.getProjection(),minZoom:e.minZoom,maxZoom:e.maxZoom,hideLevels:e.hideLevels,layer:f(i)}),i.obliqueMap=null,i.currentDirection=null,i.isDefaultObliqueLayer=i.activeOnStartup,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.oblique.ObliqueLayer"}}]),Object(m["a"])(t,[{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.getolMap()),this.obliqueCollection.loadData(this.url).then(function(){e.initialized=!0,e.currentDirection=e.obliqueCollection.directions[h["a"].NORTH]}))}},{key:"activate",value:function(e){if(e&&e!==this.active&&this.isSupported()){var t=this.framework.getActiveMap();return this.olMap=t.olMap,t.setObliqueLayer(this)}return Promise.resolve()}},{key:"show",value:function(e){var t=this;return this.active=!0,this.initialize().then(function(){return e?t.setViewPoint(e):t.currentDirection.activate(t.olMap,[0,0],t.obliqueCollection.options.minZoom)})}},{key:"canShowViewpoint",value:function(e){var t=this;return this.initialize().then(function(){var i=Ei(e);return!!t.obliqueCollection.directions[i]&&t.obliqueCollection.directions[i].canShowViewpoint(e)})}},{key:"hide",value:function(){this.active=!1,this.currentDirection&&this.currentDirection.deactivate()}},{key:"getExtent",value:function(){return this.extent}},{key:"getExtentOfCurrentImage",value:function(){return this.currentImage&&this.currentImage.groundCoordinates?new Ae({coordinates:ol.extent.boundingExtent(this.currentImage.groundCoordinates),epsg:this.sourceProjection.getEPSG()}):(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(Bt["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(R.createGeographicProjection(),n);return this._computeViewpointInternal(r)}},{key:"_computeViewpointInternal",value:function(e){var t,i=(t={},Object(oe["a"])(t,h["a"].NORTH,0),Object(oe["a"])(t,h["a"].EAST,90),Object(oe["a"])(t,h["a"].SOUTH,180),Object(oe["a"])(t,h["a"].WEST,270),t),n=pi(this.olMap,this.currentImage),r=n.size,a=n.fovy,s=n.metersPerUnit,o=this.olMap.getView(),l=o.getResolution(),c=l*r.height,u=c*s,d=Math.abs(u/2/Math.tan(a/2)),m=e[2]||this.currentImage.averageHeight,f=d+m;return new V({cameraPosition:[e[0],e[1],f],groundPosition:e,heading:i[this.currentImage.viewDirection],pitch:0,roll:0,distance:d})}},{key:"setViewPoint",value:function(e){var t=this,i=Ei(e);if(this.currentDirection){if(this.currentDirection.direction===i)return this.currentDirection.state===wi["a"].STATE.ACTIVE?this.currentDirection.setViewPoint(e):this.currentDirection.activateWithViewPoint(this.olMap,e);this.currentDirection.deactivate()}return this.obliqueCollection.directions[i]&&(this.currentDirection=this.obliqueCollection.directions[i]),this.currentDirection.suppressPublish=!0,this.currentDirection.activateWithViewPoint(this.olMap,e).then(function(){t.framework.publish(B.OBLIQUE_DIRECTION_CHANGED,t,t.currentDirection),t.framework.publish(B.OBLIQUE_IMAGE_CHANGED,t,t.currentImage),t.currentDirection.suppressPublish=!1}).catch(function(e){t.logger.error(e.message),t.currentDirection.suppressPublish=!1})}},{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:"currentImage",get:function(){return this.currentDirection?this.currentDirection.currentImage:null}}]),t}(At),Di=Ii;B.OBLIQUE_FALLBACK_ACTIVATED="OBLIQUE_FALLBACK_ACTIVATED";var ji=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.mouseClickEvents=!1,i.activeLayer=null,i.listenerKey=null,i.mapChangeEvent=e.changeOnMoveEnd?"moveend":"postrender",i.switchThreshold=Object(u["g"])(e.switchThreshold,0),i.switchThreshold>1&&(i.switchThreshold=.2),i._switchOnEdge=null==e.switchOnEdge||e.switchOnEdge,i.switchEnabled=!0,i.supportedlayers=[Dt.OBLIQUE_OBLIQUELAYER,Dt.VECTOR,Dt.GEOJSON,Dt.WSV,Dt.CLUSTER],i.interactionsDefaultsObject={altShiftDragRotate:!1,pinchRotate:!1,shiftDragZoom:!1,doubleClickZoom:!1},i._initialViewpoint=null,i.fallbackMap=e.fallbackMap,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.maps.Oblique"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){var e=this;if(!this.initialized){this.olMap||(this.olMap=new ol.Map({layers:[],logo:!1,controls:[],loadTilesWhileInteracting:!0,interactions:this.getMapInteractions(),target:this.mapElement}));var t=Object.values(this.framework.getLayers()).filter(function(e){return e instanceof Di}),i=t.find(function(e){return e.isDefaultObliqueLayer})||t[0];if(!i)return Promise.reject(new Error("Could not find an oblique layer for configured oblique map"));this.setLayerLoading(i,!0);var n=Promise.resolve(!0);if(this.fallbackMap&&this._initialViewpoint){var r=this.framework.getMapByName(this.fallbackMap);r?n=i.canShowViewpoint(this._initialViewpoint):(this.logger.warning("cannot use ".concat(this.fallbackMap," as a fallback, it does not exist")),this.fallbackMap=void 0)}this.inializedPromise=n.then(function(e){return!1===e?e:i.activate(!0)}).then(function(t){return!1!==t&&(e._initialViewpoint=null,e.initialized=!0,e.olMap.on(e.mapChangeEvent,e._postRenderHandler.bind(e))),t})}return this.inializedPromise}},{key:"getOl3Map",value:function(){return 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(B.LAYER_CHANGED,n),t.framework.publish(B.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(B.LAYER_CHANGED,t.activeLayer),t.framework.publish(B.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=this.switchThreshold,a=1-r;if(!i||e[0]/i.size[0]>r&&e[0]/i.size[0]r&&e[1]/i.size[1]m)return null;u(c,o,a);var y=d(i,c);if(y<0||f+y>m)return null;var g=d(s,c)/m;return e[0]=t[0]+g*i[0],e[1]=t[1]+g*i[1],e[2]=t[2]+g*i[2],e}function zi(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 Gi(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 y,g=n.getUint32(r,!0),v=12;while(v=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,y=new DataView(i.binaryData.buffer,i.binaryData.byteOffset+f.byteOffset,f.byteLength),g=new DataView(i.binaryData.buffer,i.binaryData.byteOffset+m.byteOffset,m.byteLength),v=null!=l.positionAccessor.byteOffset?l.positionAccessor.byteOffset:0,p=0,_=l.batchIdAccessor.byteOffset;p=o&&(r=o,n=s)}}return null==n?(console.error("No intersection found!"),null):n}function Ji(e,t,i,n){return Cesium.Resource.fetchArrayBuffer({url:e}).then(function(e){var r=zi(e),a=r.binaryGLTF,s=Gi(a),o=Vi(s.glTF),l=Wi(a,o,s,t),c=Bi(l),u={origin:[i.origin.x,i.origin.y,i.origin.z],direction:[i.direction.x,i.direction.y,i.direction.z]},h=qi(u,c);if(h)return Cesium.Cartesian3.fromElements(h[0],h[1],h[2],n)}).otherwise(function(e){console.error(e)})}var Ki,Zi=i(665),Qi=i.n(Zi),Xi=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.specificImpl={},i.active=i.activeOnStartup,i.options.commonLayer=f(i),i}return w(t,e),Object(m["a"])(t,[{key:"getImplementation",value:function(e){var t=e.id;return this.specificImpl[t]||(this.specificImpl[t]=this.getImplementationObject(e.className)),this.specificImpl[t]}},{key:"getImplementationObject",value:function(e){return Ee.specificLayerImpl[e]&&Ee.specificLayerImpl[e][this.className]?new Ee.specificLayerImpl[e][this.className](this.options):null}},{key:"isCommonLayer",value:function(){return!0}},{key:"initialize",value:function(){this.initialized=!0}},{key:"synchronizeImplementations",value:function(e,t){var i=Promise.resolve();if(e){var n=this.getImplementation(e);n&&(i=i.then(function(){return n.mapDeactivated(e)}))}if(t){var r=this.getImplementation(t);r&&(i=i.then(function(){return r.mapActivated(t)}))}return i}},{key:"activate",value:function(e){var t=this;return new Promise(function(i){var n=t.framework.getActiveMap(),r=t.getImplementation(n);if(r&&t.isSupported(n)){var a=r.initialized;if(e!==r.isActive())if(e){var s=r.initialize();if(s){var o=function(){this.initialize(),r.show(),this.sendLayerEvents(e,a),i()}.bind(t);s.then(o).catch(o)}else t.initialize(),r.show(),t.sendLayerEvents(e,a),i()}else{for(var l in t.specificImpl)t.specificImpl[l]&&t.specificImpl[l].initialized&&t.specificImpl[l].hide();t.sendLayerEvents(e,a),i()}else i()}else if(e)i();else{for(var l in t.specificImpl)t.specificImpl[l]&&t.specificImpl[l].initialized&&t.specificImpl[l].hide();t.sendLayerEvents(e,a),i()}})}},{key:"setStyle",value:function(e,i){Se(b(t.prototype),"setStyle",this).call(this,e,i),Object.values(this.specificImpl).forEach(function(e){e&&e.updateStyle(i)})}},{key:"sendLayerEvents",value:function(e,t){(e!==this.active||!t&&e)&&(this.active=e,e?this.framework.publish(B.LAYER_ACTIVATED,this):this.framework.publish(B.LAYER_DEACTIVATED,this),this.framework.publish(B.LAYER_CHANGED,this))}},{key:"dispose",value:function(){for(var e in this.specificImpl)this.specificImpl[e]&&this.specificImpl[e].dispose();this.initialized=!1,this.active=!1,this.framework.removeLayer(this)}}]),t}(At),$i=Xi,en=he.interactionTypeCounter,tn={NONE:en=he.getNextBit(en),SELECT:en=he.getNextBit(en),TRANSLATE:en=he.getNextBit(en),ROTATE:en=he.getNextBit(en),SCALE:en=he.getNextBit(en),CREATE:en=he.getNextBit(en),EDIT:en=he.getNextBit(en),REMOVEVERTEX:en=he.getNextBit(en),TRANSLATEVERTEX:en=he.getNextBit(en),PAINTBUCKET:en=he.getNextBit(en),PIPETTE:en=he.getNextBit(en),FEATUREMODES:0,GEOMETRYMODES:0,PROPAGATEONSELECT:0};tn.FEATUREMODES=tn.SELECT|tn.TRANSLATE|tn.ROTATE|tn.SCALE|tn.PAINTBUCKET|tn.PIPETTE,tn.GEOMETRYMODES=tn.CREATE|tn.EDIT|tn.REMOVEVERTEX|tn.TRANSLATEVERTEX,tn.PROPAGATEONSELECT=tn.TRANSLATE|tn.PAINTBUCKET|tn.PIPETTE;var nn={EDITING:en=he.getNextBit(en),EDITABLE:en=he.getNextBit(en),VERTEX:en=he.getNextBit(en),HEIGHTVERTEX:en=he.getNextBit(en)},rn={none:tn.NONE,select:tn.SELECT,translate:tn.TRANSLATE,rotate:tn.ROTATE,scale:tn.SCALE,create:tn.CREATE,edit:tn.EDIT,removeVertex:tn.REMOVEVERTEX,translateVertex:tn.TRANSLATEVERTEX,paintBucket:tn.PAINTBUCKET,pipette:tn.PIPETTE,geometryModes:tn.GEOMETRYMODES,featureModes:tn.FEATUREMODES},an={CLAMP:1,ABSOLUTE:2,ZPLANE:4},sn={clampToGround:an.CLAMP,absolute:an.ABSOLUTE,zPlane:an.ZPLANE},on={both:Cesium.ClassificationType.BOTH,terrain:Cesium.ClassificationType.TERRAIN,cesium3DTile:Cesium.ClassificationType.CESIUM_3D_TILE},ln=(Ki={},Object(oe["a"])(Ki,on.both,"both"),Object(oe["a"])(Ki,on.terrain,"terrain"),Object(oe["a"])(Ki,on.cesium3DTile,"cesium3DTile"),Ki);function cn(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 un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e[ne.configContentSymbol]?t.style=e.getReference():e instanceof gt?t.style=cn(e.getOptions(),t.embeddedIcons):e instanceof Tt&&(t.style=e.getOptions()),t}var hn=un;Dt.VECTOR=Dt.lastLayerId++,B.FEATURE_REMOVED="FEATURE_REMOVED";var dn=Symbol("alreadyTransformedToMercator"),mn=Symbol("alreadyTransformedToImage"),fn=Symbol("imageGeometryChanged"),yn=Symbol("obliqueGeometry"),gn=Symbol("doNotTransform"),vn=Symbol("OriginalFeature"),pn=function(e){function t(e){var i;return Object(d["a"])(this,t),e.layertype=e.layertype?e.layertype:Dt.VECTOR,e.className=e.className?e.className:t.className,i=y(this,b(t).call(this,e)),i.source=new ol.source.Vector({}),i.projection=new R(e.projection),i.maxResolution=null!=e.maxResolution?e.maxResolution:null,i.minResolution=null!=e.minResolution?e.minResolution:null,i.dontUseTerrainForOblique=!!e.dontUseTerrainForOblique,i.sourceProjection=i.projection.getProjection(),i._altitudeMode=e.altitudeMode||"relativeToGround",i._skirt=Object(u["g"])(e.skirt,null),i._storeyHeight=Object(u["g"])(e.storeyHeight,null),i._classificationType=e.classificationType,i.balloonHeightOffset=Object(u["h"])(e.balloonHeightOffset,10),i.zIndex=Object(u["h"])(e.zIndex,50),i.zCoordinateEyeOffset=Object(u["h"])(e.zCoordinateEyeOffset,0),i.heightAboveGround=null!=e.heightAboveGround?e.heightAboveGround:null,i.scaleByDistance=e.scaleByDistance||null,i.internalProjection=R.createMercatorProjection(),i.destinationProjection=i.internalProjection.getProjection(),i.highlightStyle=e.highlightStyle?new gt(e.highlightStyle):null,i.featureVisibility=e.featureVisibility||new Ct,i.hasFeatureUUID=!1,i.visibility=!0,i.isDynamic=e.isDynamic,i.FVlastUpdated=0,i._onStyleChangeRemover=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.Vector"}},{key:"alreadyTransformedToMercator",get:function(){return dn}},{key:"alreadyTransformedToImage",get:function(){return mn}},{key:"imageGeometryChanged",get:function(){return fn}},{key:"obliqueGeometry",get:function(){return yn}},{key:"doNotTransform",get:function(){return gn}},{key:"originalFeatureSymbol",get:function(){return vn}}]),Object(m["a"])(t,[{key:"initialize",value:function(){Se(b(t.prototype),"initialize",this).call(this),this._trackStyleChanges()}},{key:"getVcsMeta",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={version:Yt};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&&Qi()(i.getOptions(),this.style.getOptions())||hn(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,i){return Se(b(t.prototype),"getStyleOrDefaultStyle",this).call(this,e,i||vt.clone())}},{key:"setStyle",value:function(e,i){var n=this;Se(b(t.prototype),"setStyle",this).call(this,e,i),this._trackStyleChanges();var r=e instanceof Tt;this.getFeatures().forEach(function(e){e[ft]&&(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[ft].style):e.setStyle(e[ft].style))})}},{key:"_trackStyleChanges",value:function(){var e=this;this._onStyleChangeRemover&&(this._onStyleChangeRemover(),this._onStyleChangeRemover=null);var t=this.style instanceof Tt;this._onStyleChangeRemover=this.style.styleChanged.addEventListener(function(){e.getFeatures().forEach(function(e){!t&&e[ft]||e.changed()})})}},{key:"setHighlightStyle",value:function(e){o(e,[ol.style.Style,gt,Function]),e instanceof gt?this.highlightStyle=e:(this.highlightStyle||(this.highlightStyle=new gt({})),this.highlightStyle.style=e)}},{key:"postRenderStyling",value:function(){if(this.FVlastUpdated1?i-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3?arguments[3]:void 0;return o(e,pe),o(t,Function),o(i,Number),l(n,String),this._exclusiveInteraction&&this._exclusiveInteraction.id!==n&&this._removeExclusive(),e.handleMapChange(ne.getInstance().getActiveMap()),Dn.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=ne.getInstance().subscribeExclusive(B.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){Dn.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=Dn.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,ne.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,pe),o(t,Number),e.handleMapChange(ne.getInstance().getActiveMap()),Dn.addInteraction(e,t),function(){return-1!==Dn.removeInteraction(e)?1:0}}},{key:"handleMapChange",value:function(e){this.listeners.forEach(function(e){e()}),this.listeners.splice(0),e instanceof Hi||e instanceof Pi?this._setupOpenlayersHandlers(e):e instanceof Vt&&this._setupCesiumHandlers(e),Dn.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=me.DRAGEND,n.key=this._dragging.key,n.pointer=this._dragging.pointer,this._startChain(n)):this._lastDown&&(this._lastClick.time&&Date.now()-this._lastClick.timethis.dragDuration&&(n=Object.assign({type:me.DRAGSTART},this._lastDown),this._dragging=n,this._startChain(n,!0)):(n.type=me.MOVE,this._startChain(n,!0))}},{key:"_startChain",value:function(e,t){this._running&&t||(this._running?this._eventQueue.push(e):(this._running=!0,Dn.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":fe.ALL,0:fe.LEFT,1:fe.MIDDLE,2:fe.RIGHT},n=t.originalEvent.shiftKey?de.SHIFT:de.NONE;n=t.originalEvent.ctrlKey?de.CTRL:n,n=t.originalEvent.altKey?de.ALT:n,n!==de.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.getOl3Map(),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(oe["a"])(t,Cesium.KeyboardEventModifier.ALT,de.ALT),Object(oe["a"])(t,Cesium.KeyboardEventModifier.CTRL,de.CTRL),Object(oe["a"])(t,Cesium.KeyboardEventModifier.SHIFT,de.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]||de.NONE,pointer:a,multipleTouch:s}},s=(i={},Object(oe["a"])(i,Cesium.ScreenSpaceEventType.LEFT_DOWN,{handler:this._mouseDown,pointer:fe.LEFT}),Object(oe["a"])(i,Cesium.ScreenSpaceEventType.LEFT_UP,{handler:this._mouseUp,pointer:fe.LEFT}),Object(oe["a"])(i,Cesium.ScreenSpaceEventType.RIGHT_DOWN,{handler:this._mouseDown,pointer:fe.RIGHT}),Object(oe["a"])(i,Cesium.ScreenSpaceEventType.RIGHT_UP,{handler:this._mouseUp,pointer:fe.RIGHT}),Object(oe["a"])(i,Cesium.ScreenSpaceEventType.MIDDLE_DOWN,{handler:this._mouseDown,pointer:fe.MIDDLE}),Object(oe["a"])(i,Cesium.ScreenSpaceEventType.MIDDLE_UP,{handler:this._mouseUp,pointer:fe.MIDDLE}),Object(oe["a"])(i,Cesium.ScreenSpaceEventType.MOUSE_MOVE,{handler:this._mouseMove,pointer:fe.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 En}},{key:"eventEmitter",get:function(){return In}},{key:"interactions",get:function(){return Dn.chain.slice()}}],[{key:"destroy",value:function(){jn&&(jn._removeExclusive(),jn.listeners.forEach(function(e){e()}),jn.removeMapContainerEventListener()),jn=null}}]),e}(),Yn=Pn;function xn(){return null===jn&&(jn=new Pn),jn}function An(e){for(var t=e.getPropertyNames(),i={},n=0;ne[t.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[t.lastUpdated]=Date.now()}}},{key:"determineHighlightStyle",value:function(){return this.highlightStyle?this.highlightStyle:Q.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.active=!1,this.framework.removeLayer(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))}}]),t}(At),Hn=Nn;Dt.CESIUM_TILESET_LAYER=Dt.lastLayerId,Dt.lastLayerId+=1;var Rn=function(e){function t(e){var i;return Object(d["a"])(this,t),e.layertype=e.layertype||Dt.CESIUM_TILESET_LAYER,e.className=e.className||t.className,i=y(this,b(t).call(this,e)),i.pickMode=e.pickMode||"topLevelFeature",i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.CesiumTilesetLayer"}}]),t}(Hn),zn=Rn;Dt.CESIUM_BUILDINGSLAYER=Dt.lastLayerId,Dt.lastLayerId+=1;var Gn=function(e){function t(e){return Object(d["a"])(this,t),e.layertype=Dt.CESIUM_BUILDINGSLAYER,e.className=t.className,y(this,b(t).call(this,e))}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Buildings"}}]),t}(zn),Vn=Gn;Dt.CESIUM_ENTITIESLAYER=Dt.lastLayerId++;var Bn=function(e){function t(e){var i;return Object(d["a"])(this,t),e.layertype=Dt.CESIUM_ENTITIESLAYER,e.className=e.className||t.className,i=y(this,b(t).call(this,e)),i.dataSource=e.dataSource||new Cesium.CustomDataSource(i.name),i.entities=i.dataSource.entities,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Entities"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){var e=this.framework.getActiveMap();e.getDatasources().add(this.dataSource),this.initialized=!0}}},{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.active=!1,this.framework.removeLayer(this)}},{key:"hideObjects",value:function(e){e.forEach(function(e){var t=this.entities.getById(e);t&&(t.show=!1)},this)}},{key:"showObjects",value:function(e){e.forEach(function(e){var t=this.entities.getById(e);t&&(t.show=!0)},this)}},{key:"addEntity",value:function(e,t,i){var n=this.entities.add(e);return n[At.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,a=t.getDataSourceDisplay(),s=t.getScene(),o=s.camera,l=new Cesium.BoundingSphere,c=t.getViewPoint(),u=c.getHeading(),h=c.getPitch(),d=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(u),Cesium.Math.toRadians(h<-45?h:-45),void 0),m=0,f=a.defaultDataSource;if(f.isLoading)r=f.loadingEvent.addEventListener(function(){n=s.postRender.addEventListener(y),r()});else n=s.postRender.addEventListener(y)}else this.logger.warning("could not find entity on this layer");function y(){var e=a.getBoundingSphere(i,!0,l);if(e!==Cesium.BoundingSphereState.PENDING){if(e===Cesium.BoundingSphereState.FAILED)return m++,void(m>3&&n());o.flyToBoundingSphere(l,{duration:1,offset:d}),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.id,r=e.id;return r.clickedPosition=e.clickedPosition,this.raiseFeatureEvent(t,n,r,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}}}]),t}(At),Un=Bn;Dt.CESIUM_CZMLLAYER=Dt.lastLayerId++;var Wn=function(e){function t(e){var i;return Object(d["a"])(this,t),e.layertype=Dt.CESIUM_CZMLLAYER,e.className=t.className,e.dataSource=new Cesium.CzmlDataSource,i=y(this,b(t).call(this,e)),i._loadedResolve=function(){},i._loadedReject=function(){},i.loaded=new Promise(function(e,t){i._loadedResolve=e,i._loadedReject=t}),i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Czml"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){Se(b(t.prototype),"initialize",this).call(this);var e=this.dataSource.load(this.url);return e.then(this._handleLoaded.bind(this),this._loadedReject),this.initialized=!0,e}}},{key:"_handleLoaded",value:function(){var e=this;this.entities.values.forEach(function(t){t[At.vcsLayerNameSymbol]=e.name,t.allowPicking=e.allowPicking}),this._loadedResolve()}}]),t}(Un),qn=Wn;Dt.CESIUM_GLTFLAYER=Dt.lastLayerId++;var Jn=function(e){function t(e){var i;return Object(d["a"])(this,t),e.layertype=Dt.CESIUM_GLTFLAYER,e.className=t.className,i=y(this,b(t).call(this,e)),i.modelConfigs=e.models||[],i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Gltf"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){this.initialized||(Se(b(t.prototype),"initialize",this).call(this),this.modelConfigs.forEach(this.addObject,this))}},{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)}}]),t}(Un),Kn=Jn;Dt.CESIUM_POINTCLOUDLAYER=Dt.lastLayerId,Dt.lastLayerId+=1;var Zn=new Tt({}),Qn=function(e){function t(e){var i;return Object(d["a"])(this,t),e.layertype=Dt.CESIUM_POINTCLOUDLAYER,e.className=t.className,i=y(this,b(t).call(this,e)),i.defaultPointSize=null!=e.pointSize?e.pointSize:null,i._pointSize=i.defaultPointSize,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.PointCloud"}}]),Object(m["a"])(t,[{key:"getStyleOrDefaultStyle",value:function(e,i){return Se(b(t.prototype),"getStyleOrDefaultStyle",this).call(this,e,i||Zn)}},{key:"initialize",value:function(){Se(b(t.prototype),"initialize",this).call(this),this._assignPointSize()}},{key:"clearStyle",value:function(){Se(b(t.prototype),"clearStyle",this).call(this),this.pointSize=this.defaultPointSize}},{key:"setStyle",value:function(e,i){e instanceof gt?this.logger.warning("trying to apply vector style to point cloud layer."):Se(b(t.prototype),"setStyle",this).call(this,e,i)}},{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})))}},{key:"pointSize",set:function(e){l(e,[Number,String]),this._pointSize=e,this._assignPointSize()},get:function(){return this._pointSize}}]),t}(Hn),Xn=Qn,$n=Symbol("vcsFeatureType"),er={DYNAMIC:"dynamic",STATIC:"static",EDITED:"edited"},tr=new ol.format.GeoJSON,ir="EPSG:3857",nr=new ol.Sphere(6378137),rr=Y.getLogger("vcs.vcm.layer.GeoJSONHelper");function ar(e){var t=Object(Ie["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 sr(e){var t=Object(Ie["a"])(e[e.length-1],2),i=t[0],n=t[1];e[0][0]===i&&e[0][1]===n&&e.pop()}function or(e){if(e instanceof ol.geom.Polygon){var t=e.getCoordinates();t.forEach(function(e){sr(e)}),e.setCoordinates(t)}else if(e instanceof ol.geom.MultiPolygon){var i=e.getCoordinates();i.forEach(function(e){e.forEach(function(e){sr(e)})}),e.setCoordinates(i)}}function lr(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 cr(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=hi(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 ur(e,t){var i=tr.readGeometry(e,t.formatOptions);return"EPSG:3857"===String(t.formatOptions.featureProjection)&&(i[_n.alreadyTransformedToMercator]=!0),or(i),new ol.Feature({geometry:i})}function hr(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 dr(e,t){var i=!!e.color&&Be(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||Be("#3399CC"),width:n}}}return"LineString"===t?{stroke:{color:i||Be("#3399CC"),width:n}}:"Point"===t?{image:{fill:{color:[255,255,255,.4]},radius:r,stroke:{color:i||Be("#3399CC"),width:1}}}:void 0}function mr(e,t){if(!e.geometry)return null;var i=e.geometry.olcs_radius,n=tr.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=gi(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=dr(s,n.getType())),or(n);var o,l=new ol.Feature(Object.assign({},s,{geometry:n}));(e.id&&l.setId(e.id),e.state&&(l[$n]=e.state),e.vcsMeta.style&&!t.dontReadStyle)&&(e.vcsMeta.style=hr(e.vcsMeta.style,t),t.defaultStyle?(o=t.defaultStyle.clone().assign(new gt(e.vcsMeta.style)),null!=o.label&&n.set("_vcsGeomType","Label")):o=new gt(e.vcsMeta.style),l[ft]=o,l.setStyle(o.style));return cr(l),l}function fr(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof e?JSON.parse(e):e,r=lr(n),a=r?{epsg:r}:i.dataProjection,s={formatOptions:{dataProjection:a?a.epsg:R.createGeographicProjection().epsg,featureProjection:i.targetProjection?i.targetProjection.epsg:R.createMercatorProjection().epsg},dontReadStyle:i.dontReadStyle,readLegacyStyleOptions:i.readLegacyStyleOptions,defaultStyle:i.defaultStyle};if(i.dynamicStyle&&!s.defaultStyle&&(s.defaultStyle=vt),"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===Fe.REFERENCE?(t=ne.getInstance().getStyleByName(n.vcsMeta.style.name),t?t instanceof gt&&(s.defaultStyle=t):rr.warning("could not load referenced style ".concat(n.vcsMeta.style.name))):n.vcsMeta.style.type===Fe.DECLARATIVE?t=new Tt(n.vcsMeta.style):(n.vcsMeta.style=hr(n.vcsMeta.style,s),s.defaultStyle=s.defaultStyle.clone().assign(new gt(n.vcsMeta.style)),t=s.defaultStyle)),{features:n.features.map(function(e){return mr(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=mr(n,s);return{features:o?[o]:[],vcsMeta:n.vcsMeta?n.vcsMeta:void 0}}return null!=n.type?{features:[ur(n,s)]}:{features:[]}}function yr(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=nr.haversineDistance(R.mercatorToWgs84(s[0],!0),R.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){ar(e)}),r.setCoordinates(o)}else if(r instanceof ol.geom.MultiPolygon){var l=r.getCoordinates();l.forEach(function(e){e.forEach(function(e){ar(e)})}),r.setCoordinates(l)}return n.geometry=tr.writeGeometryObject(r,{featureProjection:ir,rightHanded:!0}),a&&(n.geometry.olcs_radius=a),n.vcsMeta={},t.writeStyle&&e[ft]&&(n.vcsMeta.style=cn(e[ft].getOptionsForFeature(e),i)),n}function gr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.vcsMeta||{};i.version=Yt;var n=e.features.map(function(e){return yr(e,t,i.embeddedIcons)}),r={type:"FeatureCollection",features:n,vcsMeta:i};return t.writeStyle&&e.style&&(rr.deprecate("data.style","use layer.getVcsMeta and pass that in instead"),hn(e.style,r.vcsMeta)),t.asObject?r:JSON.stringify(r,null,t.prettyPrint?2:null)}Dt.GEOJSON=Dt.lastLayerId++;var vr=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,e.projection||(e.projection=R.createGeographicProjection().getConfigObject()),i=y(this,b(t).call(this,e)),i.url=e.url||null,i.altitudeMode=e.altitudeMode||"none",i._dataFetchedPromise=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.GeoJSON"}}]),Object(m["a"])(t,[{key:"fetchData",value:function(){var e=this;return this._dataFetchedPromise?this._dataFetchedPromise:null!=this.url?(this.framework.getActiveMap().setLayerLoading(this,!0),this._dataFetchedPromise=ce.a.get(this.url).then(function(t){var i=t.data;e.dataFetchedHandler(i)}).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=fr(e,{dataProjection:this.projection,dynamicStyle:!0});this.addFeatures(t.features),t.style&&this.setStyle(t.style)}}]),t}(_n),pr=vr,_r=function(e){function t(e){var i;Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.url=e.url||"";var n=null!=e.minLevel?e.minLevel:e.minZoom,r=null!=e.maxLevel?e.maxLevel:e.maxZoom;return i.minLevel=Object(u["h"])(n,0),i.maxLevel=Object(u["h"])(r,18),i.tilingSchema=e.tilingSchema,null==n&&e.extent&&i.calculateMinLevel(),i.opacity=Object(u["g"])(e.opacity,1),i.opacity=i.opacity<0?0:i.opacity,i.opacity=i.opacity>1?1:i.opacity,"string"!==typeof i.url&&i.framework.subscribe("LOCALE_CHANGED",i.handleLocaleChange,f(i)),i}return w(t,e),Object(m["a"])(t,[{key:"handleLocaleChange",value:function(){var e=this.isActive(),t=function(){Object.values(this.specificImpl).forEach(function(e){e.initialized=!1}),e&&this.activate(!0)}.bind(this);e?this.activate(!1).then(t):t()}},{key:"getUrl",value:function(){if("string"===typeof this.url)return this.url;var e=this.framework.getLocale();return this.url[e]?this.url[e]:Object.values(this.url)[0]}},{key:"getTilingScheme",value:function(){var e={};return this.numberOfLevelZeroTilesX&&this.numberOfLevelZeroTilesY&&(e.numberOfLevelZeroTilesX=this.numberOfLevelZeroTilesX,e.numberOfLevelZeroTilesY=this.numberOfLevelZeroTilesY),"mercator"===this.tilingSchema?new Cesium.WebMercatorTilingScheme(e):new Cesium.GeographicTilingScheme(e)}},{key:"_getExtentPoints",value:function(){var e=this.extent.getCoordinatesInProjection(R.createGeographicProjection()),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(){if(this.extent.isValid()){var e=this.getTilingScheme(),t=this._getExtentPoints();while(this.minLevel1||n[1]>1){this.minLevel=this.minLevel-1;break}this.minLevel=this.minLevel+1}}}},{key:"setOpacity",value:function(e){this.opacity=e,Object.values(this.specificImpl).forEach(function(e){e.updateOpacity()})}}]),t}($i),br=_r;Dt.IMAGE=Dt.lastLayerId,Dt.lastLayerId+=1;var Lr=function(e){function t(e){var i;return Object(d["a"])(this,t),e.layertype=Dt.IMAGE,e.className=t.className,i=y(this,b(t).call(this,e)),i.imageExtent=e.imageExtent,i.credit=e.credit,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.SingleImage"}}]),Object(m["a"])(t,[{key:"setExtent",value:function(e){this.imageExtent=e;var t=this.getImplementation(this.framework.getActiveMap());t&&t.updateLayer()}}]),t}(br),Mr=Lr;Dt.OPENSTREETMAP=Dt.lastLayerId++;var kr=function(e){function t(e){return Object(d["a"])(this,t),e.layertype=Dt.OPENSTREETMAP,e.className=t.className,y(this,b(t).call(this,e))}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.OpenStreetMap"}}]),t}($i),wr=kr;Dt.TMSBase=Dt.lastLayerId++;var Tr=function(e){function t(e){var i;return Object(d["a"])(this,t),e.layertype=Dt.TMSBase,e.className=t.className,e.tilingSchema=e.tilingSchema||"mercator",i=y(this,b(t).call(this,e)),i.format=e.format||"jpeg",i.tileWidth=Object(u["h"])(e.tileWidth,256),i.tileHeight=Object(u["h"])(e.tileHeight,256),i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.TMSBase"}}]),t}(br),Sr=Tr;Dt.TILED_LAYER=Dt.lastLayerId,Dt.lastLayerId+=1;var Or=Symbol("isTiledFeature"),Cr=function(e){function t(e){var i;return Object(d["a"])(this,t),e.layertype=e.layertype?e.layertype:Dt.TILED_LAYER,e.className=e.className?e.className:t.className,i=y(this,b(t).call(this,e)),i.featureVisibility=e.featureVisibility||new Ct,i.highlightStyle=null,e.highlightStyle&&(i.highlightStyle=e.highlightStyle instanceof gt?e.highlightStyle:new gt(e.highlightStyle)),i.cesiumTilesetLayerOptions=Object.assign({},e.cesiumTilesetLayerOptions,{featureVisibility:i.featureVisibility,highlightStyle:i.highlightStyle,genericFeatureProperties:i._genericFeatureProperties}),i.openlayersTiledLayerOptions=Object.assign({},e.openlayersTiledLayerOptions,{featureVisibility:i.featureVisibility,highlightStyle:i.highlightStyle,genericFeatureProperties:i._genericFeatureProperties}),i._dataFetched=!1,i.source=new ol.source.Vector({}),i.projection=R.createMercatorProjection(),i.sourceProjection=i.projection.getProjection(),i.internalProjection=R.createMercatorProjection(),i.zIndex=50,i.editing=null,i.addedEditingSymbol=!1,i.FVlastUpdated=0,i._dataFetchedPromise=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.TiledLayer"}}]),Object(m["a"])(t,[{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=this.framework.getActiveMap(),i="vcs.vcm.maps.Cesium"===e.className?!!this.cesiumTilesetLayerOptions.url:!!this.openlayersTiledLayerOptions.url;i&&Se(b(t.prototype),"initialize",this).call(this)}},{key:"activate",value:function(e){var i=this.framework.getActiveMap(),n="vcs.vcm.maps.Cesium"===i.className?!!this.cesiumTilesetLayerOptions.url:!!this.openlayersTiledLayerOptions.url;return n?Se(b(t.prototype),"activate",this).call(this,e):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?this._dataFetchedPromise:(null!=this.openlayersTiledLayerOptions.url?(this.framework.getActiveMap().setLayerLoading(this,!0),this._dataFetchedPromise=ce.a.get(this.openlayersTiledLayerOptions.url).then(function(t){var i=t.data,n=fr({features:i.features,type:"FeatureCollection"},{defaultStyle:e.defaultStyle instanceof gt?e.defaultStyle:vt}),r=n.features;r.forEach(function(e){e[Or]=!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:"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}}]),t}($i),Er=Cr,Ir=i(66),Dr=i.n(Ir);Dt.CLUSTER=Dt.lastLayerId,Dt.lastLayerId+=1;var jr=function(e){function t(e){var i;Object(d["a"])(this,t),e.layertype=Dt.CLUSTER,e.className=t.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),i=y(this,b(t).call(this,e)),i.clusterSource=new ol.source.Cluster({source:i.source,distance:Object(u["h"])(e.clusterDistance,40)}),i.clusterLayers=e.clusterLayers||[],i.activeClusterLayers=[],i.activeClusterLayersLastUpdated={},i.lastClickedFeatures=[];var n=e.defaultFeatureTemplate||"<%=title%>";Array.isArray(n)&&(n=n.join(" ")),i.defaultFeatureTemplate=Dr()(n),i.showInContent=!!e.showInContent;var r=e.style||{};return i.icon=r.icon||"images/clusterIcon.svg",i.selectedIcon=r.selectedIcon||"images/clusterSelectedIcon.svg",i.iconWidth=Object(u["h"])(r.iconWidth,40),i.iconHeight=Object(u["h"])(r.iconHeight,44),i.iconScaleFactor=Object(u["h"])(r.iconScaleFactor,.05),i.fontSize=Object(u["h"])(r.fontSize,16),i.textOffset=Object(u["h"])(r.textOffset,-4),i.breaks=r.breaks||[2,3,4,5,10,15,20,25],i.zeroScaleOffset=Object(u["h"])(r.zeroScaleOffset,3),i._icons=new Array(i.breaks.length),i._selectedIcons=new Array(i.breaks.length),i._images=new Array(i.breaks.length),i._inactive2dClustering=!0,i._resultLayer=new _n({name:"_clusterResultLayer".concat(i.name),altitudeMode:i.altitudeMode,activeOnStartup:!0,zCoordinateEyeOffset:i.zCoordinateEyeOffset-20,zIndex:1e3,projection:R.createMercatorProjection().getConfigObject(),allowPicking:!1}),i._resultFeature=null,i._initialActivation=!1,i.framework.subscribe(B.LAYER_ACTIVATED,i._handleActivation.bind(f(i))),i.framework.subscribe(B.LAYER_DEACTIVATED,i._handleDeactivation.bind(f(i))),i.framework.subscribe(B.SELECTED_ITEM_CHANGED,i._handleSelectedItemChanged.bind(f(i))),i.mapNames=[],i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.VectorCluster"}}]),Object(m["a"])(t,[{key:"activate",value:function(e){var i=this;if(this.isSupported()){if(!e)return this.logger.warning("trying to deactivate cluster layer!"),Promise.reject(new Error("cannot deactivate cluster layer"));"vcs.vcm.maps.Openlayers"!==this.framework.getActiveMap().className?(this._inactive2dClustering=!0,this.clusterSource.setPause(!0)):(this._inactive2dClustering=!1,this.clusterSource.setPause(!1)),this.clusterLayers=this._validateLayers(this.clusterLayers);var n=Se(b(t.prototype),"activate",this).call(this,!0);return this._initialActivation?n:n.then(function(){return i.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(){i.setStyle(i._styleFunction.bind(i)),i._resultLayer.setStyle(i._getSelectedStyle()),i.framework.addLayer(i._resultLayer),i._initialActivation=!0})}return Promise.resolve()}},{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=Dr()(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')+'').concat(r,""),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?nthis.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"));return o?s.getId()&&Q.getInstance().getCurrentItem().id===s.getId()?o.highlightStyle?o.highlightStyle.style:null:o.style.style: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?rthis.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?rthis.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,"
");var a={id:r.id,template:r.template,_layerName:r._layerName};n.lastClickedFeatures.push(a)}),this.raiseFeatureEvent(B.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]=1){var a="wmsFeatureInfo",s=r[0];s.setGeometry(new ol.geom.Point([e.longitude,e.latitude])),t.framework.publish(B.FEATURE_CLICKED,a,s,t)}})}},{key:"getTilingOptions",value:function(){for(var e="geographic"===this.tilingSchema?R.createGeographicProjection():R.createMercatorProjection(),t=e.getProjection().getExtent(),i=ol.extent.getWidth(t),n="geographic"===this.tilingSchema?i/512:i/256,r=this.maxLevel+1,a=[],s=0;s39?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 Rr||(Rr=new t),Rr}}]),t}(A),Gr=zr;Dt.WSV=Dt.lastLayerId,Dt.lastLayerId+=1;var Vr=function(e){function t(e){var i;return Object(d["a"])(this,t),e.projection={},e.projection.epsg="EPSG:4326",e.projection.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=t.className,e.layertype=Dt.WSV,i=y(this,b(t).call(this,e)),i.dedicatedIcon=e.dedicatedIcon||!1,i.iconColor=e.iconColor||!1,i.useSquareShapeAsOuter=!!e.useSquareShape,i.iconManagerInUse=!(!i.dedicatedIcon&&!i.iconColor),i.baseUrl=e.baseurl||"/wsv-live",i.name=e.name,i.logo="adf33bbe08057b9251536c73ff627f512955ffc7.png",i.scaleUnselected=i.iconManagerInUse?.8:.5,i.scaleSelected=i.iconManagerInUse?0:1,e.style&&(e.style.scaleUnselected&&(i.scaleUnselected=e.style.scaleUnselected),e.style.scaleSelected&&(i.scaleSelected=e.style.scaleSelected)),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"}),i.wsvProjection=new R(e.wsvProjection),i.noFilterValue=e.noFilterValue?e.noFilterValue:"Keine Angabe",i.filter=e.filter?e.filter:null,i.framework.subscribe(B.LOCALE_CHANGED,i.handleLocaleChanged,f(i)),i.filterAttribute=e.filterAttribute?e.filterAttribute:"tags",i.filterAttributeName=e.filterAttributeName?e.filterAttributeName:null,i.loadedLibraries=i.framework.loadLibraries(["./lib/thirdparty/canvg-1.4/rgbcolor.js","./lib/thirdparty/canvg-1.4/StackBlur.js","./lib/thirdparty/canvg-1.4/canvg.js"]),i._dataFetchedPromise=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.Wsv"}}]),Object(m["a"])(t,[{key:"activate",value:function(e){var i=this;return e?this.loadedLibraries.then(this.fetchData.bind(this)).then(function(){return Se(b(t.prototype),"activate",i).call(i,e)}):Se(b(t.prototype),"activate",this).call(this,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=ce.a.get(t).then(function(t){var i=t.data;return e.dataFetchedHandler(i)}).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.activate(!1),this.removeAllFeatures(),this._dataFetchedPromise=null,e&&this.activate(!0)}}},{key:"getFilter",value:function(){if(this.filter)return this.filter;for(var e=this.source.getFeatures(),t={},i=0;i-1){r=!0;break}}}else{o=e.indexOf(n[a]);if(o>-1){r=!0;break}}else if("string"===typeof n){o=e.indexOf(n);if(o>-1){r=!0;break}}else if("object"===Object(s["a"])(n)&&this.filterAttributeName){o=e.indexOf(n[this.filterAttributeName]);if(o>-1){r=!0;break}}}else{o=e.indexOf(this.noFilterValue);o>-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 t=this._createLocation(e);t&&n.push(t)},t),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()}}},{key:"_createStyle",value:function(){var e,t=this;return this.iconManagerInUse?(e=this.dedicatedIcon?Gr.getInstance().getStyleForDedicatedIcon(this.name,this.dedicatedIcon):Gr.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="&",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.getProjection()),!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}}]),t}(_n),Br=Vr,Ur=i(89),Wr=i.n(Ur),qr=i(648),Jr=i.n(qr);function Kr(e,t,i,n){return Kr="undefined"!==typeof Reflect&&Jr.a?Jr.a:function(e,t,i,n){var r,a=Te(e,t);if(a){if(r=Me()(a,t),r.set)return r.set.call(n,i),!0;if(!r.writable)return!1}if(r=Me()(n,t),r){if(!r.writable)return!1;r.value=i,Wr()(n,t,r)}else Object(oe["a"])(n,t,i);return!0},Kr(e,t,i,n)}function Zr(e,t,i,n,r){var a=Kr(e,t,i,n||e);if(!a&&r)throw new Error("failed to set property");return i}var Qr=Y.getLogger("vcs.vcm.layer.FeatureStoreChanges"),Xr=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(T["a"])(this._addedFeatures),edit:Object(T["a"])(this._editedFeatures),remove:Object(T["a"])(this._removedFeatures)}}},{key:"commitChanges",value:function(e){var t=this,i=[];this._addedFeatures.forEach(function(e){var t=yr(e,{writeStyle:!0});i.push({action:"add",feature:t,original:e,success:function(t){e.setId(t),e[$n]=er.DYNAMIC}})}),this._editedFeatures.forEach(function(e){var t=yr(e,{writeStyle:!0});t._id=e.getId(),t.geomety="test",i.push({action:"edit",original:e,feature:t,success:function(){e[$n]===er.STATIC&&(e[$n]=er.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=ce.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 Qr.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(),Qr.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){Qr.error(t),e._resetValues()})}},{key:"_resetFeature",value:function(e){var t=this,i=[e.getId()];return e[$n]?e[$n]===er.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=fr(e),r=n.features;t.layer.removeFeaturesById(i),t.layer.addFeatures(r)}).catch(function(e){Qr.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[$n]?t[$n]===er.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[$n]&&(this._convertedFeatures.delete(t),this._editedFeatures.add(t),this.values.changed=!0)}},{key:"_featureRemoved",value:function(e){var t=e.feature;t[$n]?(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}(),$r=Xr;Dt.FEATURESTORE=Dt.lastLayerId,Dt.lastLayerId+=1;var ea=function(e){function t(e){var i;Object(d["a"])(this,t);var n=Object.assign({altitudeMode:"clampToGround",layerType:Dt.FEATURESTORE,className:t.className,projection:R.createMercatorProjection().getConfigObject()},e);if(i=y(this,b(t).call(this,n)),i.extent.projection=R.createMercatorProjection(),i.layerId=e.id,i.staticRepresentation=e.staticRepresentation||{},i.hiddenStaticFeatureIds=new Set(e.hiddenStaticFeatureIds||[]),i.changeTracker=new $r(f(i)),i.vcsMeta=e.vcsMeta||{},i.setVcsMeta(i.vcsMeta),i.injectedFetchDynamicFeatureFunc=e.injectedFetchDynamicFeatureFunc,i._staticFeaturesLayer=new Er({cesiumTilesetLayerOptions:{url:i.staticRepresentation.threeDim,screenSpaceError:i.vcsMeta.screenSpaceError?i.vcsMeta.screenSpaceError:4},openlayersTiledLayerOptions:i.staticRepresentation.twoDim?{url:i.staticRepresentation.twoDim}:void 0,name:i.name,style:i.style,genericFeatureProperties:i._genericFeatureProperties}),i._staticFeaturesExtent=null,i._setEditing=null,e.features){var r={type:"FeatureCollection",features:e.features,vcsMeta:e.vcsMeta},a=fr(r,{targetProjection:R.createMercatorProjection(),dynamicStyle:!0}),s=a.style,o=a.features;s&&(i.defaultStyle=s,i._staticFeaturesLayer.defaultStyle=s,i.setStyle(s)),i.addFeatures(o)}return i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.FeatureStore"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){this.initialized||(Se(b(t.prototype),"initialize",this).call(this),this._staticFeaturesLayer.initialize(),this._hideDynamicFeatures())}},{key:"getVcsMeta",value:function(e){var i=Se(b(t.prototype),"getVcsMeta",this).call(this,e);return i}},{key:"synchronizeImplementations",value:function(e,i){var n=this;return Se(b(t.prototype),"synchronizeImplementations",this).call(this,e,i).then(function(){return n._staticFeaturesLayer.synchronizeImplementations(e,i)})}},{key:"_hideDynamicFeatures",value:function(){var e=[];this.hiddenStaticFeatureIds.forEach(function(t){e.push(t)}),this._staticFeaturesLayer.hideObjects(e)}},{key:"activate",value:function(e){var i=this;return Se(b(t.prototype),"activate",this).call(this,e).then(function(){return i._staticFeaturesLayer.activate(e)}).then(function(){i._setEditing&&i.setEditing(i._setEditing.symbol,i._setEditing.featureType)}).catch(function(e){i.logger.error(e)})}},{key:"setStyle",value:function(e,i){var n=this.changeTracker.active;n&&this.changeTracker.pauseTracking("changefeature"),Se(b(t.prototype),"setStyle",this).call(this,e,i),this._staticFeaturesLayer.setStyle(e,i),n&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"getExtent",value:function(){var e=this.source.getExtent();if(this._staticFeaturesExtent)e=ol.extent.extend(e,this._staticFeaturesExtent);else if(this._staticFeaturesLayer.active){var t=this.framework.getActiveMap();if("vcs.vcm.maps.Cesium"===t.className){var i=this._staticFeaturesLayer.getImplementation(t),n=i.cesium3DTileset.root.boundingVolume.rectangle,r=Cesium.Rectangle.southwest(n),a=Cesium.Rectangle.northeast(n),s=R.wgs84ToMercator([Cesium.Math.toDegrees(r.longitude),Cesium.Math.toDegrees(r.latitude)]),o=R.wgs84ToMercator([Cesium.Math.toDegrees(a.longitude),Cesium.Math.toDegrees(a.latitude)]);this._staticFeaturesExtent=[s[0],s[1],o[0],o[1]],e=ol.extent.extend(e,this._staticFeaturesExtent)}}return this.extent.extent=e,this.extent}},{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){Se(b(t.prototype),"hideObjects",this).call(this,e),this._staticFeaturesLayer.hideObjects(e)}},{key:"showObjects",value:function(e){var i=this;Se(b(t.prototype),"showObjects",this).call(this,e);var n=e.filter(function(e){return!i.hiddenStaticFeatureIds.has(e)});this._staticFeaturesLayer.showObjects(n)}},{key:"clearHiddenObjects",value:function(){Se(b(t.prototype),"clearHiddenObjects",this).call(this),this._staticFeaturesLayer.clearHiddenObjects(),this._hideDynamicFeatures()}},{key:"highlight",value:function(e){Se(b(t.prototype),"highlight",this).call(this,e),this._staticFeaturesLayer.highlight(e)}},{key:"unHighlight",value:function(e){Se(b(t.prototype),"unHighlight",this).call(this,e),this._staticFeaturesLayer.unHighlight(e)}},{key:"clearHighlighting",value:function(){Se(b(t.prototype),"clearHighlighting",this).call(this),this._staticFeaturesLayer.clearHighlighting()}},{key:"objectClickedHandler",value:function(e,i,n){return e[Or]?this._staticFeaturesLayer.objectClickedHandler(e,i,n||this):e instanceof ol.Feature&&Se(b(t.prototype),"objectClickedHandler",this).call(this,e,i,n||this)}},{key:"getGenericFeatureFromClickedObject",value:function(e){if(e instanceof ol.Feature)return Se(b(t.prototype),"getGenericFeatureFromClickedObject",this).call(this,e);var i=this._staticFeaturesLayer.getGenericFeatureFromClickedObject(e);return i.layerName=this.name,i.layerClass=this.className,i}},{key:"determineHighlightStyle",value:function(e,i){var n=this.getFeatureById(e);return n||i instanceof ol.Feature?Se(b(t.prototype),"determineHighlightStyle",this).call(this,e,i):this._staticFeaturesLayer.determineHighlightStyle(e,i)}},{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=fr(i,{targetProjection:R.createMercatorProjection(),defaultStyle:t.defaultStyle instanceof gt?t.defaultStyle:vt}),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[$n]=er.STATIC,this.changeTracker.removeFeature(t)}},{key:"dispose",value:function(){this.removeAllFeatures(),this._staticFeaturesLayer.dispose(),this.changeTracker.dispose(),Se(b(t.prototype),"dispose",this).call(this)}},{key:"altitudeMode",get:function(){return this._altitudeMode},set:function(e){var i=this.changeTracker.active;i&&this.changeTracker.pauseTracking("changefeature"),Zr(b(t.prototype),"altitudeMode",e,this,!0),i&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"skirt",get:function(){return this._skirt},set:function(e){var i=this.changeTracker.active;i&&this.changeTracker.pauseTracking("changefeature"),Zr(b(t.prototype),"skirt",e,this,!0),i&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"storeyHeight",get:function(){return this._storeyHeight},set:function(e){var i=this.changeTracker.active;i&&this.changeTracker.pauseTracking("changefeature"),Zr(b(t.prototype),"storeyHeight",e,this,!0),i&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"classificationType",get:function(){return this._classificationType},set:function(e){var i=this.changeTracker.active;i&&this.changeTracker.pauseTracking("changefeature"),Zr(b(t.prototype),"classificationType",e,this,!0),i&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"screenSpaceErrorMobile",get:function(){return this._staticFeaturesLayer.screenSpaceErrorMobile}},{key:"screenSpaceError",get:function(){return this._staticFeaturesLayer.screenSpaceError}}]),t}(_n),ta=ea;B.WIDGET_ACTIVATED="WIDGET_ACTIVATED",B.WIDGET_DEACTIVATED="WIDGET_DEACTIVATED",B.WIDGET_STATE_CHANGED="WIDGET_STATE_CHANGED";var ia,na=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.title=e.title?e.title:null,i.supportedMaps=e.supportedMaps?e.supportedMaps:["ALL"],i.initializeKey=null,i.initialized=!1,i.active=!1,i}return w(t,e),Object(m["a"])(t,[{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(B.MAP_ACTIVATED,this.handleMapChangeEvent.bind(this)),!0):(this.initializeKey||(this.initializeKey=this.framework.subscribe(B.MAP_ACTIVATED,this.initialize.bind(this))),!1)}}},{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(B.WIDGET_ACTIVATED,this))}},{key:"deactivate",value:function(){this.active&&(this.active=!1,this.framework.publish(B.WIDGET_DEACTIVATED,this))}},{key:"handleURLParameter",value:function(e){}},{key:"getLink",value:function(e){}},{key:"isSupported",value:function(e){o(e,[Ee,String]);var t=e instanceof Ee?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(B.WIDGET_STATE_CHANGED,this):(this.framework.publish(B.WIDGET_STATE_CHANGED,this),this.deactivate())}},{key:"isInitialized",value:function(){return this.initialized}}]),t}(A),ra=na,aa=Y.getLogger("vcs.vcm.widgets.legend.TreeItem"),sa=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)}return Object(m["a"])(e,[{key:"initialize",value:function(e){return this.initialized||(this.level=e),!0}},{key:"isInitialized",value:function(){return aa.deprecate("isInitialized","access the property .initialized directly."),this.initialized}},{key:"activate",value:function(e,t){}},{key:"mapChanged",value:function(e){}},{key:"layerChanged",value:function(e){}},{key:"getViewPoint",value:function(){return aa.deprecate("getViewPoint","use goToViewpoint instead or access the .viewpointName property."),this.viewpointName?ne.getInstance().getViewPointByName(this.viewpointName):null}},{key:"gotoViewpoint",value:function(){if(this.viewpointName){var e=ne.getInstance(),t=e.getViewPointByName(this.viewpointName);t&&e.getActiveMap().gotoViewPoint(t)}}}]),e}(),oa=sa,la=function(e){function t(e){var i;if(Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.factory=e.factory,i.startopen=Object(u["e"])(e.startOpen,!1),i.clickable=Object(u["e"])(e.clickable,!0),i.open=i.startopen,i.children=[],i.state="inactive",Array.isArray(e.children)){for(var n=e.children,r=0;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?"active"===e||"inactive"===e?e!==t.state&&(e="loading"===t.state?t.state:"indeterminate"):"indeterminate"===e&&"loading"===t.state&&(e=t.state):e=t.state)};this.children.forEach(t),this.state=e}}},{key:"activate",value:function(e,t){this.children.forEach(function(t){t.activate(e,!0)},this),this.setState(),e&&!t&&this.gotoViewpoint()}},{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()}}]),t}(oa),ca=la,ua=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.startopen=!0,i.clickable=!1,i.open=!0,i.breakAfter=!!e.breakAfter,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.ClusterItem"}}]),t}(ca),ha=ua,da=Y.getLogger("vcs.vcm.widgets.legend.LayerItem"),ma=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.layerName=e.layerName?e.layerName:"",i.availableStyles=e.availableStyles||[],e.styles&&(da.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"])()),ne.getInstance().addStyle(new Tt(e)),i.availableStyles.push(e.name)})),i.state="inactive",i.activeStyleName=null,i.hasFeatureListView=!1,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.LayerItem"}}]),Object(m["a"])(t,[{key:"initialize",value:function(e){if(!this.initialized){if(!Se(b(t.prototype),"initialize",this).call(this,e))return!1;var i=ne.getInstance().getLayerByName(this.layerName);if(!i)return da.warning("Could not find Layer with name ".concat(this.layerName," Legend LayerItem for layer is not shown")),this.visible=!1,!1;this.activeStyleName=i.style?i.style.name:null}return!0}},{key:"layerChanged",value:function(e){e.name===this.layerName&&this.setState()}},{key:"mapChanged",value:function(e){var t=ne.getInstance().getLayerByName(this.layerName);t&&(this.visible=t.isSupported(e),this.setState())}},{key:"setState",value:function(){if(this.visible){var e=ne.getInstance().getLayerByName(this.layerName);e&&(e.active?this.state="active":this.state="inactive")}}},{key:"activate",value:function(e,t){var i=this;if("loading"!==this.state){var n=ne.getInstance().getLayerByName(this.layerName);n&&n.isSupported()&&n.active!==e&&(e&&(this.state="loading"),n.activate(e).then(function(){i.setState(),e&&!t&&i.gotoViewpoint()}).catch(function(){i.visible=!1}))}}},{key:"isIconManagerInUse",value:function(){var e=ne.getInstance().getLayerByName(this.layerName);return!!e&&e.iconManagerInUse}}]),t}(oa),fa=ma,ya=Y.getLogger("vcs.vcm.widgets.legend.GroupLayerItem"),ga=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.layerNames=e.layerNames||e.layerName||[],e.layerName&&ya.deprecate("option.layerName","Use option.layerNames instead"),i.state="inactive",i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.GroupLayerItem"}}]),Object(m["a"])(t,[{key:"initialize",value:function(e){if(!this.initialized){Se(b(t.prototype),"initialize",this).call(this,e);var i=ne.getInstance(),n=[],r=this.layerNames.every(function(e){var t=i.getLayerByName(e);return t?(n.push(t),!0):(ya.warning("Could not find Layer with name ".concat(e," Legend GroupLayerItem is not shown")),!1)});if(!r)return!1;this.visible=n.some(function(e){return e.isSupported()}),this.state=n.every(function(e){return e.active||e.activeOnStartup})?"active":"inactive"}return!0}},{key:"activate",value:function(e,t){var i=this;if(this.setState(),"active"!==this.state&&e||!e){var n=ne.getInstance();this.state=e?"loading":"inactive";var r=this.layerNames.map(function(e){return n.getLayerByName(e)}).map(function(t){return t.activate(e)});e&&!t&&this.gotoViewpoint(),Promise.all(r).then(function(){i.state="indeterminate",i.setState()})}}},{key:"setState",value:function(){var e=ne.getInstance(),t=this.layerNames.map(function(t){return e.getLayerByName(t)}).filter(function(e){return e.isSupported()}).map(function(e){return e.active});("loading"!==this.state||t.every(function(e){return e}))&&(t.every(function(e){return e})?this.state="active":t.some(function(e){return e})?this.state="indeterminate":this.state="inactive")}},{key:"mapChanged",value:function(e){var t=ne.getInstance();this.visible=this.layerNames.map(function(e){return t.getLayerByName(e)}).some(function(t){return t.isSupported(e)}),this.visible&&"active"===this.state&&this.activate(!0)}},{key:"layerChanged",value:function(e){if(this.visible&&this.layerNames.includes(e.name)){if("active"===this.state||"loading"===this.state)return void this.setState();var t=ne.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()}}}]),t}(oa),va=ga,pa=function(e){function t(e){return Object(d["a"])(this,t),e.className=t.className,y(this,b(t).call(this,e))}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.GroupItem"}}]),t}(ca),_a=pa,ba=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.name=e.name,i.plugin=e.plugin,i.config=e.config||{},i.visible=!0,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.PluginItem"}}]),t}(oa),La=ba,Ma=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.layerNames=e.layerNames||[],i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.ViewpointItem"}}]),Object(m["a"])(t,[{key:"initialize",value:function(e){if(!this.initialized){if(!Se(b(t.prototype),"initialize",this).call(this,e))return!1;this.viewpointName&&(this.visible=!!ne.getInstance().getViewPointByName(this.viewpointName))}return!0}},{key:"activate",value:function(e,t){t||e&&(this.gotoViewpoint(),this.layerNames.forEach(function(e){var t=ne.getInstance().getLayerByName(e);t&&t.activate(!0)}))}}]),t}(oa),ka=Ma,wa=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.planningInstance=e.planningInstance,i.titleObject=i.planningInstance.name,i.visible=!0,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.PlanningInstanceItem"}}]),t}(oa),Ta=wa,Sa=Y.getLogger("vcs.vcm.widgets.legend.PlanningClusterItem"),Oa=function(e){function t(e){var i;return Object(d["a"])(this,t),ia?(Sa.warning("trying to instanciate PlanningClusterItem more then once!"),y(i,ia)):(i=y(this,b(t).call(this,e)),ia=f(i),i)}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.PlanningClusterItem"}}]),Object(m["a"])(t,[{key:"destroy",value:function(){ia=void 0}}]),t}(ha),Ca=Oa;function Ea(){return ia}var Ia,Da=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.flightInstance=e.flightName?ne.getInstance().getFlightByName(e.flightName):e.flightInstance,i.titleObject=e.title||i.flightInstance.name,i.allowPlayer=Object(u["e"])(e.allowPlayer,!1),i.visible=!0,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.FlightInstanceItem"}}]),Object(m["a"])(t,[{key:"mapChanged",value:function(e){this.visible=e instanceof Vt}}]),t}(oa),ja=Da;B.LEGEND_INITIALIZED="LEGEND_INITIALIZED";var Pa=(Ia={},Object(oe["a"])(Ia,ha.className,ha),Object(oe["a"])(Ia,fa.className,fa),Object(oe["a"])(Ia,va.className,va),Object(oe["a"])(Ia,_a.className,_a),Object(oe["a"])(Ia,La.className,La),Object(oe["a"])(Ia,Ta.className,Ta),Object(oe["a"])(Ia,ka.className,ka),Object(oe["a"])(Ia,ja.className,ja),Object(oe["a"])(Ia,Ca.className,Ca),Ia),Ya=Y.getLogger("vcs.vcm.widgets.legend.Legend");function xa(e){if(!e.type)return Ya.warning("Need a type to instanciate a Legend Entry"),null;var t=Pa[e.type];return t?(e.factory=xa,new t(e)):(Ya.warning("could not find constructor for ".concat(e.type)),null)}var Aa=function(e){function t(e){var i;Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.cluster=[],i.level=-1;var n=[];if(Array.isArray(e.children))for(var r=e.children,a=0;a0){var l=new ha({children:n,factory:xa});i.cluster.push(l)}i.layerTitles={};var c=function e(t){t.children?t.children.forEach(e,this):t.layerName&&(this.layerTitles[t.layerName]=t.titleObject)};return i.cluster.forEach(c,f(i)),i.zoomToFirstLayer=!!e.zoomToFirstLayer,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.Legend"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){var e=Se(b(t.prototype),"initialize",this).call(this);if(!e)return;this.cluster.forEach(function(e){e.initialize(this.level)},this);var i=this.framework.getActiveMap();this.cluster.forEach(function(e){e.mapChanged(i)},this),this.initialized=!0,this.framework.publish(B.LEGEND_INITIALIZED,this),this.framework.subscribe(B.MAP_ACTIVATED,this.mapChanged.bind(this)),this.framework.subscribe(B.LAYER_CHANGED,this.layerChanged.bind(this)),this.framework.subscribe(B.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 fa||n instanceof va)&&(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(){for(var e=this.framework.getLayers(),t=0;t-1}},{key:"save",value:function(){var e=this.serviceUrl.clone().extendPath("edit-object");return ce.a.post(e.toString(),this.getDefinition()).then(function(){ne.getInstance().publish(B.PLANNING_OBJECT_SAVED)})}},{key:"delete",value:function(){var e=this.serviceUrl.clone().extendPath("delete-object");return ce.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}(),za=Ra,Ga=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.planningInstanceGltfLayerName=e.planningInstanceGltfLayerName,i.latitude=e.modelMeta.latitude,i.longitude=e.modelMeta.longitude,i.height=null!=e.modelMeta.height?e.modelMeta.height:0,i.heading=e.modelMeta.heading,i.heading=i.heading>180?i.heading-360:i.heading,i.pitch=e.modelMeta.pitch,i.roll=e.modelMeta.roll,i.scale=e.modelMeta.scale,i.positionFields=["longitude","latitude","height","heading","pitch","roll","scale"],i.supportedMaps=["vcs.vcm.maps.Cesium"],i.entityId=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectGltf"}}]),Object(m["a"])(t,[{key:"handleMapChange",value:function(e){if(Se(b(t.prototype),"handleMapChange",this).call(this,e),this.supported&&!this.entityId){var i=this.getModelLayer();this.entityId=i.addObject(this.getConfigObject())}}},{key:"getModelLayer",value:function(){var e=ne.getInstance().getLayerByName(this.planningInstanceGltfLayerName);return e}},{key:"getDefinition",value:function(){var e=this,i=Se(b(t.prototype),"getDefinition",this).call(this),n={};return this.positionFields.forEach(function(t){n[t]=e[t]}),i.modelMeta=n,i}},{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(){Se(b(t.prototype),"hide",this).call(this),this.entityId&&this.getModelLayer().hideObjects([this.entityId])}},{key:"show",value:function(){Se(b(t.prototype),"show",this).call(this),this.entityId&&this.getModelLayer().showObjects([this.entityId])}},{key:"setObjectOntoTerrain",value:function(){var e=this,t=ne.getInstance().getLayers(),i=t.find(function(e){return e instanceof zt&&e.isActive()});return Ht(i.cesiumTerrainProvider,[[this.longitude,this.latitude]]).then(function(t){e.height=t[0][2]})}},{key:"isPlaced",value:function(){var e=this,t=[];return this.positionFields.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=Se(b(t.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}}]),t}(za),Va=Ga,Ba=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.extent=[-.5,-.5,.5,.5],e.imageMeta.extent&&i._setExtent(e.imageMeta.extent),i.opacity=e.imageMeta.opacity,i.credit=e.imageMeta.credit,i.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"],i.editorId=e.editorId,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectImage"}}]),Object(m["a"])(t,[{key:"load",value:function(){if(!this.getImageLayer()){var e=new Mr({name:this._id,url:this.url,imageExtent:this.extent,opacity:this.opacity,credit:this.credit});ne.getInstance().addLayer(e)}this.visible&&this.getImageLayer().activate(!0)}},{key:"unload",value:function(){var e=this.getImageLayer();e&&e.activate(!1)}},{key:"isPlaced",value:function(){return!this.extent.every(function(e){return.5===Math.abs(e)})}},{key:"getImageLayer",value:function(){var e=ne.getInstance().getLayerByName(this._id);return e}},{key:"getDefinition",value:function(){var e=Se(b(t.prototype),"getDefinition",this).call(this);return e.imageMeta={extent:this.extent,opacity:this.opacity,credit:this.credit},e}},{key:"zoomTo",value:function(){if(this.isPlaced()){var e=ne.getInstance().getActiveMap(),t=V.createViewPointFromExtent(this.extent);t.setHeading(0),t.setPitch(-90),t.setRoll(0),e.gotoViewPoint(t)}}},{key:"show",value:function(){Se(b(t.prototype),"show",this).call(this);var e=this.getImageLayer();e&&e.activate(!0)}},{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,R);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(Ae.WGS_84_EXTENT,e);i=n?"EPSG:4326":i}var r=new Ae({coordinates:e,epsg:i});return r.isValid()&&r.getCoordinatesInProjection(R.createGeographicProjection(),this.extent),r}},{key:"destroy",value:function(){var e=this.getImageLayer();e&&e.dispose()}},{key:"getConfigObject",value:function(){var e=Se(b(t.prototype),"getConfigObject",this).call(this);return e.extent=this.extent,e.credit=this.credit,e.opacity=this.opacity,e}}]),t}(za),Ua=Ba,Wa=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this)),i._onSelect=[],i._onCesiumSelect=[],i.featureMap=new Map,i.cesiumFeatureMap=new Map,i.state=e,i._defaultActive=me.CLICK,i._defaultModificationKey=de.NONE,i.modificationKey=i._defaultModificationKey,i.maintainSelection=!1,i.setActive(!1),i}return w(t,e),Object(m["a"])(t,[{key:"pipe",value:function(e){return e.feature&&e.feature[this.state.featureTypeSymbol]&nn.EDITABLE&&!(e.feature[this.state.featureTypeSymbol]&nn.EDITING)?(e.key&de.NONE?this.selectFeature(e.feature):e.key&de.CTRL&&this.selectionSetClick(e.feature),e.stopPropagation=!(this.state.mode&tn.PROPAGATEONSELECT)):e.key&de.NONE&&(!e.feature||!e.feature[this.state.featureTypeSymbol]&&this.state.mode&(tn.EDIT|tn.SELECT))&&this.state.selectedFeatures>0&&this.clearSelectionSet(),Promise.resolve(e)}},{key:"setActive",value:function(e){Se(b(t.prototype),"setActive",this).call(this,e),this.maintainSelection=!1}},{key:"hasMultiSelect",value:function(){this._defaultModificationKey&de.CTRL||(this._defaultModificationKey|=de.CTRL,this.setModification())}},{key:"selectFeature",value:function(e){this.state.mode&tn.TRANSLATE&&this.featureMap.has(e.getId())||(this.clearSelectionSet(!0),e[Or]?(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[At.vcsLayerNameSymbol];var t=e.getProperty("olcs_classificationType");t&&on[t]?this.state.classificationType=on[t]:this.state.classificationType=this.state.defaultClassificationType;var i=e.getProperty("olcs_altitudeMode");if(i&&sn[i]){var n=sn[i];this.state.altitudeMode&an.ZPLANE&&n&an.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[Or],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;e0});e.forEach(function(e){mi(e).then(function(){e.set("olcs_altitudeMode","absolute")})})};if("vcs.vcm.maps.Cesium"===ne.getInstance().getActiveMap().className)r();else var a=ne.getInstance().subscribe("MAP_ACTIVATED",function(e){"vcs.vcm.maps.Cesium"===e.className&&(r(),ne.getInstance().unsubscribeByKey(a))})}},{key:"_writeToGeoJSON",value:function(){var e=this.getDrawingLayer(),t={asObject:!0,writeStyle:!0,embedIcons:!0};return gr({features:e.getFeatures(),vcsMeta:e.getVcsMeta(t)},t)}},{key:"getDrawingLayer",value:function(){return ne.getInstance().getLayerByName(this._id)}},{key:"zoomTo",value:function(){var e=this.getDrawingLayer();if(e.getFeatures().length>0){var t=e.source.getExtent(),i=R.getTransformer(R.createGeographicProjection(),R.createMercatorProjection());i(t,t,2);var n=V.createViewPointFromExtent(t);ne.getInstance().getActiveMap().gotoViewPoint(n)}}},{key:"greyOut",value:function(){var e=this.getDrawingLayer();this.loaded&&e.active&&!this.greyed&&(_s[this._id]=e.getStyle(),e.setStyle(ps),this.greyed=!0)}},{key:"unGrey",value:function(){this.greyed&&_s[this._id]&&(this.getDrawingLayer().setStyle(_s[this._id]),this.greyed=!1)}},{key:"show",value:function(){Se(b(t.prototype),"show",this).call(this),this.getDrawingLayer().activate(!0)}},{key:"setDrawing",value:function(e){var t=fs(this.editorId);e?t.addEditingLayer(this.getDrawingLayer()):t.removeEditingLayer(this.getDrawingLayer())}},{key:"getDefinition",value:function(){var e=Se(b(t.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()}}]),t}(za),Ls=bs,Ms=Y.getLogger("vcs.vcm.widgets.planning.PlanningObjectProcessing"),ks=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.description=e.stdoutMsgs&&Array.isArray(e.stdoutMsgs)?e.stdoutMsgs.join("\n"):"",i._pollingInterval=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectProcessing"}}]),Object(m["a"])(t,[{key:"load",value:function(){this._observeStatus()}},{key:"unload",value:function(){clearInterval(this._pollingInterval),this._pollingInterval=null}},{key:"observeStatus",value:function(){Ms.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);ce.a.post(t.toString()).then(function(t){if(e.status=t.data,e.status===Ha.FAILED||e.status===Ha.READY){var i=ne.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=ne.getInstance().getWidgetByType("vcs.vcm.widgets.Planning").planningInstances.find(function(t){return t._id===e.planningInstanceId});i.updatePlanningObjects()}else Ms.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}}]),t}(za),ws=ks,Ts=Y.getLogger("vcs.vcm.widgets.planning.PlanningObjectFeatureStore"),Ss=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.loaded=null,i.featureStoreUrl=i.serviceUrl.clone(),i.featureStoreUrl.extendPath("feature-store"),i.featureStoreUrl.addQueryParams({planningId:i.planningInstanceId,planningObjectId:i._id}),i.layerId=e.layerId,i.editorId=e.editorId,i.trackerValues={},i.terrainUrl=e.terrainUrl,i._balloonTemplate=e.balloonTemplate||"",i._pollingInterval=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectFeatureStore"}}]),Object(m["a"])(t,[{key:"getLayer",value:function(){return ne.getInstance().getLayerByName(this.layerId)}},{key:"load",value:function(){var e=this;if(this.status===Ha.READY){if(!this.loaded){var t=this.featureStoreUrl.clone();t.extendPath("get-layer"),this.loaded=ce.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=ne.getInstance();i.genericFeatureProperties={planningName:e.name,planningDescription:e.description};var o=new ta(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){Ts.log(e)})}this.loaded.then(function(){e.visible&&e.getLayer().activate(!0)})}else this._observeStatus()}},{key:"unload",value:function(){var e=this.getLayer();e&&e.activate(!1),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()),ce.a.post(t.toString()).then(function(e){var t=e.data;return t})}},{key:"show",value:function(){this.getLayer()?(Se(b(t.prototype),"show",this).call(this),this.getLayer().activate(!0)):Ts.warning("FeatureStoreLayer for PlanningObjectFeatureStore does not exists, check code")}},{key:"setEditing",value:function(e){var t=fs(this.editorId),i=this.getLayer();this._removeModeChangeListener&&(this._removeModeChangeListener(),this._removeModeChangeListener=null),e?(this._removeModeChangeListener=t.modeChange.addEventListener(function(e){e&tn.NONE?i.changeTracker.pauseTracking("changefeature"):i.changeTracker.track()}),i.changeTracker.track(),this.trackerValues=i.changeTracker.values,t.addEditingLayer(i),fs(this.editorId).state.dedicatedFeatureStyle=!1):(i.changeTracker.unTrack(),t.removeEditingLayer(i),fs(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"),ce.a.post(n.toString(),e).then(function(){t.status=Ha.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 ce.a.post(t.toString(),i).then(function(){e.status=Ha.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);ce.a.post(t.toString()).then(function(t){if(e.status=t.data,e.status===Ha.FAILED)Ts.warning("conversion failed"),clearInterval(e._pollingInterval),e._pollingInterval=null;else if(e.status===Ha.READY){ne.getInstance().removeLayerByName(e.layerId);var i=ne.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){Ts.error(e)})},2e4)}},{key:"getDefinition",value:function(){var e=Se(b(t.prototype),"getDefinition",this).call(this);return e.balloonTemplate=this._balloonTemplate&&""!==this._balloonTemplate?this._balloonTemplate:void 0,e}},{key:"save",value:function(){var e=this,i=this.getLayer(),n=fs(this.editorId);n.state.active&&n.setMode(tn.NONE);var r=this.featureStoreUrl.clone();return r.extendPath("bulk"),i.changeTracker.commitChanges(r.toString()).then(function(){return e.saveVcsMeta()}).then(function(){return Se(b(t.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"),ce.a.post(t.toString(),e)}},{key:"reset",value:function(){var e=this.getLayer(),t=fs(this.editorId);return t.setMode(tn.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.getExtent();if(t.isValid()){var i=t.getCoordinatesInProjection(R.createGeographicProjection()),n=V.createViewPointFromExtent(i);n.distance=n.distance<4e3?n.distance:4e3,ne.getInstance().getActiveMap().gotoViewPoint(n)}}},{key:"balloonTemplate",get:function(){return this._balloonTemplate},set:function(e){this._balloonTemplate=e;var t=ne.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})}}]),t}(za),Os=Ss,Cs=i(3),Es=i.n(Cs),Is="
\n

<%= obj.title %>

\n
\n <%= obj.description %>\n
\n \n <% if (obj.edited) {%>\n <%= obj.edited %>\n <% }%>\n <%= obj.author %> <%= obj.date %>\n \n
\n
\n \n
\n
\n
\n
\n",Ds=null,js=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.6}),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 ce.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 ce.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 ce.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 ce.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 ce.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),ce.a.post("".concat(this.serviceUrl,"/user/verify-email"),{token:e})}},{key:"requestResetPassword",value:function(e){return o(e,String),ce.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 ce.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=ce.a.post(i.extendPath("group","get-shareable").toString(),{projectId:this.projectId}),r=this.url.clone(),a=ce.a.post(r.extendPath("user","get").toString(),{userId:this.currentUser.id}),s=this.url.clone(),o=ce.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 ce.a.post(t.extendPath("user","search").toString(),{text:e,projectId:this.projectId})}}],[{key:"getInstance",value:function(){return Ds||(Ds=new e),Ds}},{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,y,g,v,p,_=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 M=0;M>5]|=(e.charCodeAt(r/t)&n)<<24-r%32;return i}function f(e){for(var t="",i=0;i127&&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 y(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),y(d(m(e),e.length*t))}}]),e}(),Ps=js,Ys=Y.getLogger("vcs.vcm.widgets.planning.PlanningComment");function xs(e){var t,i,n=e.properties;n.editedBy&&n.editedOn?(t=n.editedBy,i=n.editedOn,n.edited=q.getInstance().getSingleMessage("i18n_planning_comment_edited")):(t=n.createdBy,i=n.createdOn);var r=Ps.getInstance().getUserById(t);n.author=r&&r.profile?r.profile.name:"anonymous",n.date=Es()(i).format("LLL")}function As(e){var t=gr({features:[e]},{asObject:!0}),i=t.features[0];return i.id=e.getId(),delete i.properties.selected,i}var Fs={DEFAULT:"default",INFO:"info",SUCCESS:"success",WARNING:"warning"},Ns=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=ne.getInstance(),s=a.getWidgetByType("vcs.vcm.widgets.BalloonInfo");s&&s.addTypeForLayer("".concat(this.planningId,"_comments"),Is),a.subscribe("LOCALE_CHANGED",this.localeChanged.bind(this)),this.localeChanged(a.getLocale())}return Object(m["a"])(e,[{key:"getLayer",value:function(){var e=ne.getInstance(),t=e.getLayerByName("".concat(this.planningId,"_comments"));return t||(t=new _n({altitudeMode:"absolute",name:"".concat(this.planningId,"_comments"),allowPicking:!0,projection:R.createMercatorProjection().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"),ce.a.get(i.toString()).then(function(i){var n,r=i.data;(n=e.comments).push.apply(n,Object(T["a"])(r.features)),e.comments.forEach(xs);var a=fr(r),s=a.features;t.addFeatures(s),e.dataLoaded=!0,e._readyResolve()}).catch(function(t){Ys.error(t.message),e.dataLoaded=!0,e._readyResolve()})}this.ready.then(function(){e.getLayer().activate(!0)})}},{key:"localeChanged",value:function(e){if(Es.a.locale(e),this.dataLoaded){var t=this.getLayer();this.comments.forEach(function(e){xs(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().activate(!1)}},{key:"lookAt",value:function(e){var t=ne.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.setCameraPosition(null),a.setGroundPosition(R.mercatorToWgs84(n.getGeometry().getCoordinates())),a.setAnimate(!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=As(e),n=this.url.clone();return n.extendPath("add"),ce.a.post(n.toString(),i).then(function(i){var n=i.data;xs(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=As(e),n=this.url.clone();return n.extendPath("edit"),ce.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),xs(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=As(e),n=this.url.clone();return n.extendPath("delete"),ce.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=ne.getInstance().getLayerByName("".concat(this.planningId,"_comments"));e&&e.dispose()}}]),e}(),Hs=Ns;function Rs(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=F(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 gr(n,t)}function zs(e){var t=fr(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 Gs={SPLINE:"spline",LINEAR:"linear"},Vs=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||Gs.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=ce.a.get(this.url).then(function(t){var i=t.data,n=zs(i);e.assign(n)}):this._readyPromise=Promise.resolve()),this._readyPromise}}]),e}(),Bs=Vs;B.PLANNING_INSTANCE_LOADED="PLANNING_INSTANCE_LOADED",B.PLANNING_INSTANCE_UNLOADED="PLANNING_INSTANCE_UNLOADED";var Us=Y.getLogger("vcs.vcm.widgets.planning.PlanningInstance"),Ws=It(),qs=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=zs(e);i.flights.push(new Bs(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 Kn({allowPicking:!0,name:"_".concat(this._id,"_model")});ne.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 Hs(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=ne.getInstance(),i=t.getLayerByName(this.layerName),n=t.getActiveMap();"vcs.vcm.maps.Cesium"===n.className&&(i.initialized||i.initialize(),i.activate(!0)),Ws.hideObjects(this.hiddenObjects),this.planningObjects.forEach(function(e){e.handleMapChange(n),e.load()}),e||this.gotoViewpoint(),this.comments.load(),this.loaded=!0,t.publish(B.PLANNING_INSTANCE_LOADED,this)}},{key:"unLoad",value:function(){var e=ne.getInstance(),t=e.getLayerByName(this.layerName);t.activate(!1),Ws.showObjects(this.hiddenObjects),this.planningObjects.forEach(function(e){e.unload()}),this.comments.unLoad(),this.loaded=!1,e.publish(B.PLANNING_INSTANCE_UNLOADED,this)}},{key:"handleMapChange",value:function(e){if(this.loaded){var t=ne.getInstance().getLayerByName(this.layerName);"vcs.vcm.maps.Cesium"===e.className?(t.initialized||t.initialize(),t.activate(!0)):t.isActive()&&t.activate(!1),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 Os(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId,terrainUrl:this.terrainUrl},e)):new ws(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 Va(Object.assign({planningInstanceId:this._id,planningInstanceGltfLayerName:this.layerName,serviceUrl:this.url},e)),this.planningObjects.push(t)):"drawing"===e.type?(t=new Ls(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId},e)),this.loaded&&!t.loaded&&t.load(),this.planningObjects.push(t)):"featureStore"===e.type?(t=new Os(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 Ua(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId},e)),this.loaded&&t.load(),this.planningObjects.push(t)),t.initialize(),t}},{key:"updatePlanningObject",value:function(e){var t=this,i=this.url.clone();return ce.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 ce.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,za),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 ce.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 ce.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 Rs(e,{asObject:!0})}),hiddenObjects:this.hiddenObjects},t=this.url.clone();return ce.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)&&(Ws.hideObjects([e]),this.hiddenObjects.push(e),!0)}},{key:"removeHiddenObject",value:function(e){if(o(e,[String,Number]),this.hiddenObjects.includes(e)){Ws.showObjects([e]);var t=this.hiddenObjects.indexOf(e);return this.hiddenObjects.splice(t,1),!0}return!1}},{key:"destroy",value:function(){for(var e=0;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),e.append("converterOptions",JSON.stringify(n));var a=this.url.clone().extendPath("upload");return a.addQueryParams({planning_id:this._id}),ce.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}),ce.a.post(t.toString()).then(function(t){var i=t.data;return e.addPlanningObject(i)})}},{key:"uploadNewDrawing",value:function(){var e=this;Us.deprecate("uploadNewDrawing","Drawings are deprecated on the virtualcityPLANNER, use createFeatureStoreObject instead");var t={type:"FeatureCollection",features:[]},i=this.url.clone().extendPath("add-drawing");return ce.a.post(i.toString(),{planningId:this._id,geoJSON:t}).then(function(t){var i=t.data,n=null;return i.planningObjects.forEach(function(t){var i=e.planningObjects.find(function(e){return e._id===t._id});i||(n=e.addPlanningObject(t))}),n})}}]),e}(),Js=qs,Ks=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,{zPlane:!0})),i.editor=e,i._lastPosition=null,i._firstPosition=null,i._translationOptions={},i._defaultActive=me.DRAGEVENTS,i._defaultModificationKey=de.ALT,i.setActive(),i}return w(t,e),Object(m["a"])(t,[{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&(me.CLICK|me.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?lo.BOTH:lo.GEOMETRY,this.editor.translate(this.editor.state.transformGeometryOnMove?i:this._translationOptions.dxTotal,this.editor.state.transformGeometryOnMove?n:this._translationOptions.dyTotal,this._translationOptions),this.editor.selectFeatureInteraction.setActive(!0),this._lastPosition=null,this._firstPosition=null):e.type&(me.DRAG|me.MOVE)?(this.editor.translate(i,n,this._translationOptions),this._lastPosition=t):this._lastPosition=null}else e.type&(me.DRAGSTART|me.CLICK)&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&nn.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.editor.selectFeatureInteraction.setActive(!1),this._translationOptions={toTransform:this.editor.state.transformGeometryOnMove?lo.BOTH:lo.VERTEX,isMoving:!0});return Promise.resolve(e)}}]),t}(Xa),Zs=Ks,Qs=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,{zPlane:!0})),i.editor=e,i._defaultActive=me.DRAGEVENTS,i._defaultModificationKey=de.SHIFT|de.ALT,i._lastPosition=null,i._firstPosition=null,i.setActive(),i._scaleOptions={},i}return w(t,e),Object(m["a"])(t,[{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&(me.CLICK|me.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?lo.BOTH:lo.GEOMETRY,this.editor.scale(this.editor.state.transformGeometryOnMove?i:this._scaleOptions.dxTotal,this.editor.state.transformGeometryOnMove?n:this._scaleOptions.dyTotal,this._scaleOptions),this.editor.selectFeatureInteraction.setActive(!0),this._lastPosition=null,this._firstPosition=null):(this._lastPosition=t,this.editor.scale(i,n,this._scaleOptions))}else if(e.type&(me.DRAGSTART|me.CLICK)&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&nn.VERTEX){var r=e.feature.getGeometry().getCoordinates()[2]?e.feature.getGeometry().getCoordinates():e.positionOrPixel;this.editor.selectFeatureInteraction.setActive(!1),this._scaleOptions={maintainAspectRatio:!!(e.key&de.SHIFT),vertex:e.feature,toTransform:this.editor.state.transformGeometryOnMove?lo.BOTH:lo.VERTEX,isMoving:!0},this._lastPosition=r,this._firstPosition=r,this.scene&&this.createPlane(this._lastPosition)}return Promise.resolve(e)}}]),t}(Xa),Xs=Qs;function $s(e,t,i){var n=e.x*t.y-e.y*t.x;return n>0?i:-1*i}var eo=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,{zPlane:!0})),i.editor=e,i._defaultActive=me.DRAGEVENTS,i._defaultModificationKey=de.CTRL,i._lastPosition=new Cesium.Cartesian2,i._firstPosition=new Cesium.Cartesian2,i._newPosition=new Cesium.Cartesian2,i._scratchCenter=new Cesium.Cartesian2,i._rotationOptions={},i._rotating=!1,i.setActive(),i}return w(t,e),Object(m["a"])(t,[{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&(me.DRAGEND|me.CLICK)?(this._rotationOptions.angleTotal=$s(this._firstPosition,this._newPosition,Cesium.Cartesian2.angleBetween(this._firstPosition,this._newPosition)),this._rotationOptions.isMoving=!1,this._rotationOptions.toTransform=this.editor.state.transformGeometryOnMove?lo.BOTH:lo.GEOMETRY,t=this.editor.state.transformGeometryOnMove?$s(this._lastPosition,this._newPosition,Cesium.Cartesian2.angleBetween(this._lastPosition,this._newPosition)):this._rotationOptions.angleTotal,this.editor.selectFeatureInteraction.setActive(!0),this._rotating=!1):t=$s(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&(me.DRAGSTART|me.CLICK)&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&nn.VERTEX){var n=e.feature.getGeometry().getCoordinates()[2]?e.feature.getGeometry().getCoordinates():e.positionOrPixel;this.scene&&this.createPlane(n),this.editor.selectFeatureInteraction.setActive(!1),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?lo.BOTH:lo.VERTEX,isMoving:!0},this._rotating=!0}return Promise.resolve(e)}}]),t}(Xa),to=eo,io=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,{zPlane:!1})),i.editor=e,i._defaultActive=me.DRAGEVENTS,i._defaultModificationKey=de.ALT|de.SHIFT,i._lastHeight=null,i._firstHeight=null,i._isExtrusion=!1,i._heightOptions={},i.setActive(),i}return w(t,e),Object(m["a"])(t,[{key:"pipe",value:function(e){if(this.scene)if(null!==this._lastHeight){var t,i=this.getPosition(e);e.type&(me.CLICK|me.DRAGEND)?(this._heightOptions.heightTotal=i[2]-this._firstHeight,this._heightOptions.isMoving=!1,this.editor.state.transformGeometryOnMove?t=i[2]-this._lastHeight:(this._heightOptions.toTransform=lo.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&(me.DRAGSTART|me.CLICK)&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&nn.HEIGHTVERTEX){var n=e.feature.getGeometry().getCoordinates();this._lastHeight=n[2]||e.positionOrPixel[2],this._firstHeight=this._lastHeight,this._isExtrusion=!!(e.key&de.SHIFT),this._heightOptions={toTransform:this.editor.state.transformGeometryOnMove?lo.BOTH:lo.VERTEX,isMoving:!0},this.createPlane(n)}return Promise.resolve(e)}}]),t}(Xa),no=io,ro=i(666),ao=i.n(ro),so=i(667),oo=i.n(so),lo={VERTEX:1,GEOMETRY:2,BOTH:0};lo.BOTH=lo.VERTEX|lo.GEOMETRY;var co=Symbol("isTransformation"),uo=Symbol("isEmpty"),ho=Y.getLogger("vcs.vcm.util.editor.FeatureLayerEditor"),mo=new ol.style.Icon({src:ao.a,anchor:[.5,.8],scale:.6}),fo=new ol.style.Style({image:mo}),yo={olcs_altitudeMode:"altitudeMode",olcs_skirt:"skirt",olcs_storeyHeight:"storeyHeight"},go=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(d["a"])(this,t),e=y(this,b(t).call(this,i)),e.translateInteraction=new Zs(f(e)),e.interactionChain.addInteraction(e.translateInteraction),e.scaleTransformation=new Xs(f(e)),e.interactionChain.addInteraction(e.scaleTransformation),e.rotationTransformation=new to(f(e)),e.interactionChain.addInteraction(e.rotationTransformation),e.heightTransformation=new no(f(e)),e.interactionChain.addInteraction(e.heightTransformation),e.selectFeatureInteraction.hasMultiSelect(),e.mouseOverInteraction.hasMultiSelect=!0,(null==i.allowSelectMode||i.allowSelectMode)&&e.state.allowedModes.push(Object.keys(rn).find(function(e){return rn[e]===tn.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[co]=!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:oo.a,scale:.45})}),e}return w(t,e),Object(m["a"])(t,[{key:"className",get:function(){return"vcs.vcm.util.editor.FeatureLayerEditor"}}]),Object(m["a"])(t,[{key:"onSelect",value:function(){this.state.mode&tn.FEATUREMODES&&this.state.active?this.recalculateExtent():this._clearGeometriesFromLayer()}},{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=hi(a,e.activeLayer.storeyHeight);i=l.max>i?l.max:i,n=l.min=0;a--)this.vertices[a].getGeometry().translate(e,t);r&lo.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&an.CLAMP&&(this.state.altitudeMode=an.ABSOLUTE);var r=i&&i.toTransform?i.toTransform:lo.BOTH,a=!1;if(r&lo.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"));di(i.getGeometry(),e,o?s+e:t,o)}),di(this.geometry,e,t)),r&lo.VERTEX){var s=this.vertices.length;while(s--)this.vertices[s].set("olcs_altitudeMode","absolute",!0),di(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&an.CLAMP&&(this.state.altitudeMode=an.ABSOLUTE);var a=r.toTransform||lo.BOTH,s=[];if(a&lo.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=mi(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&lo.VERTEX){var o=this.vertices.length;while(o--)this.vertices[o].set("olcs_altitudeMode","absolute",!0),di(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(mi(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&&yo[e]&&(this.activeLayer[yo[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&&yo[e]&&(this.activeLayer[yo[e]]=void 0),!t&&this.features.size&&this.recalculateExtent()}},{key:"scale",value:function(e,t,i){var n=this,r=i||{},a=r.toTransform||lo.BOTH,s=r.vertex||this.vertices[2],o=s[rs],l=s.getGeometry(),c=ol.extent.getSize(this.extent),u=t;if(r.maintainAspectRatio){var h=c[1]/c[0];u=e*h,u=1===o||3===o?-u:u}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&lo.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&lo.GEOMETRY){for(var f=this.vertices[m.across].getGeometry().getCoordinates(),y=l.getCoordinates(),g=f[1]-y[1]>0===m.flipY,v=f[0]-y[0]>0===m.flipX,p=[],_=0;_<4;_++)p[_]=this.vertices[_].getGeometry().getCoordinates();var b=ol.extent.boundingExtent(p),L=ol.extent.getSize(b),M=L[0]/c[0],k=L[1]/c[1];this.flippedY!==g&&(this.flippedY=g,k*=-1),this.flippedX!==v&&(this.flippedX=v,M*=-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(M,k,f)}),this.extent=b,this.feature.getGeometry().scale(M,k,f)}}},{key:"rotate",value:function(e,t){var i=this,n=t||{},r=n.toTransform||lo.BOTH,a=ol.extent.getCenter(this.extent);if(r&lo.VERTEX)for(var s=this.vertices.length-1;s>=0;s--)this.vertices[s].getGeometry().rotate(e,a);r&lo.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&tn.FEATUREMODES){var e=this._createExtent();if(this._clearGeometriesFromLayer(),e[uo])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){e instanceof Vt?fo.setImage(mo):fo.setImage(null),5===this.vertices.length&&this.vertices[4].changed(),Se(b(t.prototype),"handleMapChange",this).call(this,e)}}]),t}(vs),vo=go,po=new ol.style.Style({}),_o=function(e){function t(e,i,n){var r;return Object(d["a"])(this,t),r=y(this,b(t).call(this,{zPlane:!0})),r.editor=e,r.finished=!0,r.onFinish=i,r._lastVertex=null,r.maxVertices=n,r._lastPosition=null,r._defaultActive=me.CLICKMOVE,r.setActive(!1),r}return w(t,e),Object(m["a"])(t,[{key:"pipe",value:function(e){return this.finished?Promise.resolve(e):(e.type&me.MOVE?(t=this.getPosition(e),this.editor.vertices.length0?(i=this.editor.reverse?this.editor.vertices[0]:this.editor.vertices.slice(-1)[0],i=i.getGeometry().getCoordinates()):i=[0,0,0],this._lastVertex=this.editor.reverse?this.editor.unshiftVertex(i):this.editor.pushVertex(i),this._lastVertex.setStyle(No)):this.finished=!0;Se(b(t.prototype),"setActive",this).call(this,e)}}]),t}(pe),Ro=Ho,zo=function(e){function t(e,i){var n;return Object(d["a"])(this,t),n=y(this,b(t).call(this)),n.editor=e,n.callback=i,n.timeOut=null,n.clickDuration=xn().clickDuration,n._defaultActive=me.CLICK|me.DBLCLICK,n.setActive(),n}return w(t,e),Object(m["a"])(t,[{key:"pipe",value:function(e){if(!this.editor.state.onlyAllowTranslation){if(e.type&me.DBLCLICK)return this.editor.reverse=!1,clearTimeout(this.timeOut),Promise.resolve(e);if(e.feature&&e.feature[this.editor.state.featureTypeSymbol]&nn.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)}}]),t}(pe),Go=zo,Vo=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this)),i.editor=e,i._defaultActive=me.CLICK,i.setActive(),i}return w(t,e),Object(m["a"])(t,[{key:"pipe",value:function(e){return!this.editor.state.onlyAllowTranslation&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&nn.EDITING&&this.editor.insertVertex(e.positionOrPixel),Promise.resolve(e)}}]),t}(pe),Bo=Vo,Uo=Y.getLogger("vcs.vcm.util.editor.LineGeometryEditor"),Wo=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i._create=new Ro(f(i),i._validateOnFinish.bind(f(i))),i.interactionChain.addInteraction(i._create),i.geometry=i.geometry,i.reverse=!1,i._lastVertex=new Go(f(i),function(){i.getRootEditor().setMode(tn.CREATE)}),i.interactionChain.addInteraction(i._lastVertex),i._insertVertex=new Bo(f(i)),i.interactionChain.addInteraction(i._insertVertex),i._removeVertex=new Co(f(i)),i.interactionChain.addInteraction(i._removeVertex),i}return w(t,e),Object(m["a"])(t,[{key:"_createVertices",value:function(){for(var e=this.geometry.getCoordinates(),t=0;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(Se(b(t.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){Uo.debug("LineGeometryEditor ".concat(e," ").concat(Object.keys(tn).find(function(t){return tn[t]===e}))),Se(b(t.prototype),"setMode",this).call(this,e),this.feature.set("olcs_allowPicking",!!(e&tn.EDIT)),this.state.mode&tn.EDIT?(this._lastVertex.setActive(),this._insertVertex.setActive(),this._removeVertex.setActive()):this.state.mode&tn.REMOVEVERTEX&&(this._removeVertex.setActive(!0),this._removeVertex.setModification(de.NONE))}},{key:"validate",value:function(){var e=1;return this.creationActive&&(e+=1),"LinearRing"===this.geometry.getType()&&(e+=1),this.geometry.getCoordinates().length>e}}]),t}(os),qo=Wo,Jo=new ol.Sphere(6378137),Ko=function(e){function t(e){var i;Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i._create=new bo(f(i),i._validateOnFinish.bind(f(i)),2),i.interactionChain.addInteraction(i._create),i.geometry=i.geometry,i.radius=null;var n=i.feature.get("olcs.circle_type");return n&&"sphere"===n||(i._translateVertex.forceZPlane=!0),i.setAltitudeModeToAbsoluteOnClassification=!1,i}return w(t,e),Object(m["a"])(t,[{key:"initialize",value:function(){var e=this.geometry.getCenter();e[2]=e[2]||0;var i=this.geometry.getRadius();this.geometry.setCenterAndRadius(e,i,"XYZ"),Se(b(t.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,i,n,r,a){if(0===r[rs])Se(b(t.prototype),"translateVertex",this).call(this,e,i,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=ai,Se(b(t.prototype),"translateVertex",this).call(this,e,i,n,r,!0)):(s=ri,r.getGeometry().translate(e,i)),!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=Jo.offset(R.mercatorToWgs84(t),e,Math.PI/2);i[2]=t[2],this.geometry.setCoordinates([t,R.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])}}]),t}(os),Zo=Ko,Qo=function(e){function t(e,i,n,r){var a;return Object(d["a"])(this,t),a=y(this,b(t).call(this)),a.geometry=e,a.cb=i,a.isEditingGeometry=n,a.featureTypeSymbol=r,a._defaultActive=me.CLICK,a.setActive(),a}return w(t,e),Object(m["a"])(t,[{key:"pipe",value:function(e){if(e.feature&&e.feature[this.featureTypeSymbol]&nn.EDITING&&this.geometry[this.isEditingGeometry]){var t=Kt(this.geometry);if(0===t.length)return this.cb(0),Promise.resolve(e);for(var i=1/0,n=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return Object(d["a"])(this,t),e=y(this,b(t).call(this,i)),e.state.allowedGeometries=i.allowedGeometries||["Point","LineString","Polygon","BBox","Circle","Rectangle","Label"],e.lastFeatureType=null,(null==i.allowEditMode||i.allowEditMode)&&e.state.allowedModes.push(Object.keys(rn).find(function(e){return rn[e]===tn.EDIT})),e.geometryEditor=null,e.defaultMode=rn[i.defaultMode]||tn.CREATE,e.scratchLayer.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ll.a,scale:.45})})),e.state.dedicatedFeatureStyle=i.dedicatedFeatureStyle,e}return w(t,e),Object(m["a"])(t,[{key:"className",get:function(){return"vcs.vcm.util.editor.GeometryLayerEditor"}}]),Object(m["a"])(t,[{key:"deactivate",value:function(){Se(b(t.prototype),"deactivate",this).call(this),this.isOblique&&(ne.getInstance().getActiveMap().switchEnabled=!0)}},{key:"beforeSetMode",value:function(e){Se(b(t.prototype),"beforeSetMode",this).call(this,e),e&tn.GEOMETRYMODES||this.clearGeometryEditor()}},{key:"setMode",value:function(e){if(cl.debug("GeometryLayerEditor ".concat(e," ").concat(Object.keys(tn).find(function(t){return tn[t]===e}))),Se(b(t.prototype),"setMode",this).call(this,e),this.isOblique&&(ne.getInstance().getActiveMap().switchEnabled=!(e&tn.GEOMETRYMODES)||0===this.features.size),e&tn.GEOMETRYMODES)if(this.geometryEditor)this.geometryEditor.validate()?(this.geometryEditor.setMode(e),this.geometryEditor.interactionChain.setActive(!0)):this.clearGeometryEditor();else if(this.features.size){var i=this.features.values().next().value;if(this.features.size>1)return void this.selectFeatureInteraction.selectFeature(i);this.editingFeature=i,this.editingFeature[this.state.featureTypeSymbol]|=nn.EDITING,this.geometryEditor=al({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 i=this;return e&this.state.altitudeMode?Promise.resolve():Se(b(t.prototype),"setAltitudeMode",this).call(this,e).then(function(){i.geometryEditor&&i.geometryEditor.setAltitudeMode(e)})}},{key:"createFeature",value:function(e,t,i){o(e,Object.keys(rl)),l(t,[String,Number]);var n=i||rl[e](),r=new ol.Feature({geometry:n});if(r[this.state.featureTypeSymbol]=nn.EDITABLE,this.state.altitudeMode!==this.state.defaultAltitudeMode){var a=this.state.altitudeMode!==an.CLAMP&&ne.getInstance().getActiveMap()instanceof Vt?"absolute":"clampToGround";r.set("olcs_altitudeMode",a)}else this.state.defaultAltitudeMode!==an.ABSOLUTE||ne.getInstance().getActiveMap()instanceof Vt||r.set("olcs_altitudeMode","clampToGround");if(this.state.classificationType!==this.state.defaultClassificationType&&r.set("olcs_classificationType",ln[this.state.classificationType]),t&&r.setId(t),this.lastFeatureType=e,this.state.layerName){var s=ne.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 gt?s.defaultStyle:vt;r[ft]=c.clone(new gt({name:r.getId().toString()})),r.setStyle(r[ft].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]^=nn.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&tn.GEOMETRYMODES&&this.features.size>1&&this.parent?(e=tn.SELECT,this.getRootEditor().setMode(e)):e&tn.CREATE&&0===this.features.size?this._onCreationFinish():e&tn.GEOMETRYMODES&&this.getRootEditor().setMode(e)}}},{key:"_onCreationFinish",value:function(){if(this.state.mode===tn.CREATE&&this.defaultMode===tn.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=yi(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){Se(b(t.prototype),"handleMapChange",this).call(this,e)}}]),t}(vs),hl=ul,dl=window.localStorage,ml=Y.getLogger("vcs.vcm.util.storage");function fl(){if(!dl)return!1;try{var e="__storage_test__";return dl.setItem(e,e),dl.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!==dl.length}}var yl=function(){function e(t){Object(d["a"])(this,e),this.namespace=t}return Object(m["a"])(e,[{key:"setItem",value:function(e,t){fl()?dl.setItem("".concat(this.namespace,".").concat(e),t):ml.warning("storage unavailable or full")}},{key:"getItem",value:function(e){return dl?dl.getItem("".concat(this.namespace,".").concat(e)):null}},{key:"removeItem",value:function(e){dl&&dl.removeItem("".concat(this.namespace,".").concat(e))}}]),e}(),gl=yl,vl=Y.getLogger("vcs.vcm.util.editor.StyleLayerEditor"),pl=new gl("StyleLayerEditor"),_l=function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(d["a"])(this,t),e=y(this,b(t).call(this,i)),e.icons=i.icons||[],e.customIcons=[],e.allowCustomIcons=i.allowCustomIcons||!1,e.storeCustomIcons=i.storeCustomIcons||!1,e.currentStyleOptions={text:null,fill:null,stroke:null,image:null},e.currentStyleItem=vt.clone(),!i.noDefaultIcons){var n=ne.getInstance().libraryBasePath;e._fetchIcons("".concat(n,"images/editor/defaultIconsCategory.json"))}return i.iconLibraries&&i.iconLibraries.forEach(e._fetchIcons.bind(f(e))),e.allowCustomIcons&&e.storeCustomIcons&&fl()&&e._fetchCustomIcons(),e._syncOptions(vt.getOptions()),e}return w(t,e),Object(m["a"])(t,[{key:"className",get:function(){return"vcs.vcm.util.editor.StyleLayerEditor"}}]),Object(m["a"])(t,[{key:"_fetchIcons",value:function(e){var t=this;return ce.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)}):vl.error("could not load icon library, content of ".concat(e," is not a JSONArray"))})}},{key:"_fetchCustomIcons",value:function(){var e=this,t=pl.getItem("customIconIndex");t&&JSON.parse(t).forEach(function(t){var i=pl.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&&fl()){var r=JSON.parse(pl.getItem("customIconIndex")||"[]"),s=Object(u["c"])();r.push(s),pl.setItem("customIconIndex",JSON.stringify(r)),pl.setItem("".concat(s),e)}n()},a.onerror=r,a.readAsDataURL(e)}):(vl.warning("custom icons are not supported at this time"),Promise.resolve())}},{key:"deleteCustomIcon",value:function(e){if(this.storeCustomIcons){var t=JSON.parse(pl.getItem("customIconIndex")||"[]"),i=t.filter(function(t){var i=pl.getItem(t);return i!==e||(pl.removeItem(t),!1)});pl.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){Se(b(t.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 Tt&&(this.state.isDeclarativeStyle=!0,e=null),!this.state.isDeclarativeStyle&&this.features.size){var t=this.features.get(this.state.selectedFeatureId);e=t[ft]||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=Ke(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 gt({id:i.getId()}));e||(e=n),i[ft]=n,i.setStyle(i[ft].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=Ze(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?lt(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[ft]||e[ft].name!==t.currentStyleItem.name){var i=e[ft];i?t.currentStyleItem.clone(i):e[ft]=t.currentStyleItem.clone(new gt({id:e.getId()})),e.setStyle(e[ft].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[ft]||(n[ft]=i.activeLayer.style.clone(new gt({id:n.getId()})),n.setStyle(n[ft].style)),n[ft].name!==i.currentStyleItem.name&&("fill"===e?(n[ft].fillColor=i.currentStyleItem.fillColor.slice(),n[ft].pattern=i.currentStyleItem.pattern?Object.assign({},i.currentStyleItem.pattern):void 0):n[ft][e]=i.currentStyleItem[e].clone()),t||n.changed()})}}]),t}(vs),bl=_l,Ll=Y.getLogger("vcs.vcm.util.editor.CompositeLayerEditor"),Ml=function(e){function t(e){var i;if(Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.children=[],e.featureLayerEditor&&i.children.push(new vo(Object.assign(e.featureLayerEditor,{parent:f(i)}))),e.geometryLayerEditor){var n=Object.assign(e.geometryLayerEditor,{parent:f(i)});n.dedicatedFeatureStyle=!(null!=n.dedicatedFeatureStyle||!e.styleLayerEditor),i.children.push(new hl(n))}return e.styleLayerEditor&&i.children.push(new bl(Object.assign(e.styleLayerEditor,{parent:f(i)}))),i}return w(t,e),Object(m["a"])(t,[{key:"className",get:function(){return"vcs.vcm.util.editor.CompositeLayerEditor"}}]),Object(m["a"])(t,[{key:"getFeatureLayerEditor",value:function(){return this.children.find(function(e){return e instanceof vo})}},{key:"getGeometryLayerEditor",value:function(){return this.children.find(function(e){return e instanceof hl})}},{key:"getStyleLayerEditor",value:function(){return this.children.find(function(e){return e instanceof bl})}},{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()}),Se(b(t.prototype),"activate",this).call(this)}},{key:"deactivate",value:function(){Se(b(t.prototype),"deactivate",this).call(this),this.children.forEach(function(e){e.deactivate()})}},{key:"beforeSetMode",value:function(e){Se(b(t.prototype),"beforeSetMode",this).call(this),this.children.forEach(function(t){t.beforeSetMode(e)})}},{key:"setMode",value:function(e){Ll.debug("CompositeLayerEditor ".concat(e," ").concat(Object.keys(tn).find(function(t){return tn[t]===e}))),Se(b(t.prototype),"setMode",this).call(this,e),this.children.forEach(function(t){t.setMode(e)})}},{key:"setAltitudeMode",value:function(e){var i=this,n=Promise.resolve();return this.children.forEach(function(t){n=n.then(function(){return t.setAltitudeMode(e)})}),n.then(function(){return Se(b(t.prototype),"setAltitudeMode",i).call(i,e)})}},{key:"addEditingLayer",value:function(e){Se(b(t.prototype),"addEditingLayer",this).call(this,e),this.children.forEach(function(t){t.addEditingLayer(e)})}},{key:"destroy",value:function(){Se(b(t.prototype),"destroy",this).call(this),this.children.forEach(function(e){e.destroy()})}}]),t}(vs),kl=Ml,wl="
\n

<%= obj.planningName %>

\n
\n <%= obj.planningDescription %>\n
\n
\n \n
\n
\n
\n
\n",Tl="
\n
\n

Available Attributes

\n <% for (var key in obj) { %>\n <% if (obj[key] instanceof Object){%>\n <% for (var key2 in obj[key]) { %>\n

<%=key%>.<%=key2%> : <%=obj[key][key2]%>

\n <% } %>\n <% } else{ %>\n

<%=key%> : <%=obj[key]%>

\n <% } %>\n <% } %>\n
\n
\n \n
\n
\n
\n
\n",Sl=[{title:{de:"Leerer Balloon",en:"Empty Balloon"},template:""},{title:{de:"Ebenen Name & Beschreibung",en:"Layer Name & Description"},template:wl.trim()},{title:{de:"Alle Attribute",en:"All Properties"},template:Tl.trim()}],Ol=Sl;B.PLANNINGINSTANCES_CHANGED="PLANNINGINSTANCES_CHANGED";var Cl,El,Il,Dl,jl,Pl,Yl=function(e){function t(e){var i,n;(Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.serviceUrl=e.serviceUrl||"https://planning.virtualcityplanner.de",i.scenarioId=e.scenarioId,i.projectId=e.projectId,i.useLocalCRS=Object(u["e"])(e.useLocalCRS,!1),i.showInLegend=Object(u["e"])(e.showInLegend,!0),i.legendTitle=e.legendTitle||{en:"Plannings",de:"Planungen",pl:"Planowanie"},i.loginManager=Ps.getInstance(),i.url=a["a"].parse(i.serviceUrl),i.url.extendPath("planning"),i.loginManager.registerWidget({onLogin:[i.fetchUserPlannings.bind(f(i)),i.fetchUserCreate.bind(f(i))],onLogout:[i.fetchUserPlannings.bind(f(i))],beforeLogout:[i.clear.bind(f(i)),i.setUserMayCreate.bind(f(i),{data:!1})],serviceUrl:i.serviceUrl,projectId:i.projectId,scenarioId:i.scenarioId}).then(function(){i.url=i.loginManager.url.clone(),i.url.extendPath("planning"),i.url.queryParams=i.loginManager.url.queryParams}).catch(function(e){i.logger.warning(e.message),i.logger.warning("could not initialize planning, missing login url")}),i.planningInstances=[],i.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"],i._linkedPlannings=[],i.activePlanningInstance=null,i.userMayCreate={permission:!1},i.fetching=null,i.legendCluster=new ha({title:i.legendTitle}),i.commentIcons=i._setupCommentStyle(e.commentIcons),i.terrainUrl=e.terrainUrl||null,i.useDefaultTerrain=Object(u["e"])(e.useDefaultTerrain,!0),i.allowBalloonEditor=Object(u["e"])(e.allowBalloonEditor,!1),i.predefinedBalloons=Ol,Array.isArray(e.predefinedBalloons))&&(n=i.predefinedBalloons).push.apply(n,Object(T["a"])(e.predefinedBalloons));return i.showStyleSelector=Object(u["e"])(e.showStyleSelector,!1),i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.Planning"}}]),Object(m["a"])(t,[{key:"_setupCommentStyle",value:function(e){var t;if(this.framework.getStyleByName("planningCommentStyle"))return{};var i=this.framework.libraryBasePath,n=e||(t={},Object(oe["a"])(t,Fs.DEFAULT,"".concat(i,"images/editor/icon-bubble.png")),Object(oe["a"])(t,Fs.WARNING,"".concat(i,"images/editor/icon-bubble-red.png")),Object(oe["a"])(t,Fs.INFO,"".concat(i,"images/editor/icon-bubble-blue.png")),Object(oe["a"])(t,Fs.SUCCESS,"".concat(i,"images/editor/icon-bubble-green.png")),t),r={pointSize:{conditions:[["${selected}===true","1.5"],["true","1"]]}};if("string"===typeof n)r.image='"'.concat(n,'"');else{var a=Object.values(Fs),s=[];Object.entries(n).forEach(function(e){var t=Object(Ie["a"])(e,2),i=t[0],n=t[1];a.includes(i)&&i!==Fs.DEFAULT&&s.push(['${commentType} === "'.concat(i,'"'),'"'.concat(n,'"')])}),n[Fs.DEFAULT]=n[Fs.DEFAULT]||"".concat(i,"images/editor/icon-bubble.png"),s.push(["true",'"'.concat(n[Fs.DEFAULT],'"')]),r.image={conditions:s},a.forEach(function(e){n[e]||(n[e]=n[Fs.DEFAULT])})}var o=new Tt({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=Se(b(t.prototype),"initialize",this).call(this);if(!e)return!1;if(this.layerEditor=new kl({geometryLayerEditor:{},featureLayerEditor:{},styleLayerEditor:{allowCustomIcons:!0}}),this.layerEditor.initialize(),this.commentsLayerEditor=new kl({geometryLayerEditor:{allowedGeometries:["Point"],defaultMode:"edit"},styleLayerEditor:{}}),this.useDefaultTerrain&&!this.terrainUrl){var i=this.framework.getLayers().find(function(e){return e.activeOnStartup&&e instanceof zt});this.terrainUrl=i?i.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=Ea(),!this.legendCluster)){this.legendCluster=new ha({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){Se(b(t.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();ce.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=ce.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(B.PLANNINGINSTANCES_CHANGED,t.planningInstances)})}},{key:"setActivePlanning",value:function(e){if(o(e,Js),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 Js(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 Ta({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 ce.a.post(a.extendPath("add").toString(),r).then(function(e){var t=e.data,i=n.createPlanningInstance(t);return n.framework.publish(B.PLANNINGINSTANCES_CHANGED,n.planningInstances),i}).catch(function(e){n.logger.warning(e.response.data)})}},{key:"deletePlanning",value:function(e){var t=this;o(e,Js);var i=this.url.clone();return ce.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 Ta&&t.planningInstance._id===e._id});return t.legendCluster.children.splice(n,1),e.destroy(),t.framework.publish(B.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)})}}]),t}(ra),xl=Yl,Al=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}(),Fl={EQUAL_TO:new Al("EQUAL_TO"," = ",ol.format.filter.EqualTo),NOT_EQUAL_TO:new Al("NOT_EQUAL_TO"," != ",ol.format.filter.NotEqualTo),LESS_THAN:new Al("LESS_THAN"," < ",ol.format.filter.LessThan),GREATER_THAN:new Al("GREATER_THAN"," > ",ol.format.filter.GreaterThan),LESS_THAN_OR_EQUAL_TO:new Al("LESS_THAN_OR_EQUAL_TO"," <= ",ol.format.filter.LessThanOrEqualTo),GREATER_THAN_OR_EQUAL_TO:new Al("GREATER_THAN_OR_EQUAL_TO"," >= ",ol.format.filter.GreaterThanOrEqualTo),LIKE:new Al("LIKE","like",ol.format.filter.IsLike),BETWEEN:new Al("BETWEEN","between",ol.format.filter.IsBetween),BBOX:new Al("BBOX","bbox",ol.format.filter.Bbox),INTERSECTS:new Al("INTERSECTS","intersects",ol.format.filter.Intersects),DWITHIN:new Al("DWITHIN","distance within",ol.format.filter.DWithin),WITHIN:new Al("WITHIN","within",ol.format.filter.Within),AND:new Al("AND","and",ol.format.filter.and),OR:new Al("OR","or",ol.format.filter.or)},Nl=Al,Hl={GEOMETRY:0,ATTRIBUTE:1,GENERICATTRIBUTE:2,GENERICDATEATTRIBUTE:3,DATEATTRIBUTE:4,DATEYEARATTRIBUTE:5,FILTER:6},Rl=function(){function e(t,i,n,r,a,s){Object(d["a"])(this,e),this.id=t,this.type=n,this.allowedComparisons=[],this.prefix=s,this.valueReference=r||"".concat(s,":").concat(this.id);for(var o=0;o0){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.getProjection().getProjection(),ol.proj.get("EPSG:4326"));e=ol.extent.applyTransform(e,t);var i=V.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.getProjection().getProjection(),ol.proj.get("EPSG:4326"));t=ol.extent.applyTransform(t,i);var n=V.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=Se(b(t.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}}]),t}(ra),Tu=wu,Su=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.middleware=e.middleware||[],i}return w(t,e),Object(m["a"])(t,[{key:"initialize",value:function(){}},{key:"search",value:function(e,t,i){}}]),t}(A),Ou=Su,Cu=Y.getLogger("vcs.vcm.widgets.search.Nominatim"),Eu=function(e){function t(e){var i;Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e));var n=e.url||"https://nominatim.openstreetmap.org/search";return i.url=a["a"].parse(n),i.city=e.city||null,i.state=e.state||null,i.countrycode=e.countrycode||"de",i.extent=e.extent?new Ae(e.extent):null,i.limit=e.limit||20,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.Nominatim"}}]),Object(m["a"])(t,[{key:"search",value:function(e,i,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(R.createGeographicProjection()).join(","),a.bounded=1),r.addQueryParams(a),ce.a.get(r.toString()).then(function(e){var i=t.handleSearchResults(e);n(i)}).catch(function(){Cu.error("got an error from the server"),n([])})}},{key:"getConfigObject",value:function(){var e=Se(b(t.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})}}]),t}(Ou),Iu=Eu,Du=(i(340),i(649)),ju=i.n(Du);function Pu(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):ju.a.resolve(l).then(n,r)}function Yu(e){return function(){var t=this,i=arguments;return new ju.a(function(n,r){var a=e.apply(t,i);function s(e){Pu(a,n,r,s,o,"next",e)}function o(e){Pu(a,n,r,s,o,"throw",e)}s(void 0)})}}var xu,Au,Fu,Nu,Hu,Ru,zu=new gt({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}}),Gu=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.vectorLayer=new _n({name:"_locatorVector",altitudeMode:"clampToGround",classificationType:e.classificationType||"both",allowPicking:!1,heightAboveGround:2,projection:{epsg:"EPSG:4326"},style:e.style?zu.assign(new gt(e.style)):zu}),i.tracker=null,i.flatError=0,i.zoomDistance=e.zoomDistance?e.zoomDistance:1e3,i.locatorExtrusion=!1!==e.extrusion&&Object(u["h"])(e.extrusion,80),i.values={locatorVisibility:!1},i._pickingTerrain=!1,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.Locator"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var i=Se(b(t.prototype),"initialize",this).call(this);if(!i)return!1;var n=t.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=R.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(!0):this.vectorLayer.activate(!1)}},{key:"goToLocator",value:function(e,t){var i=this.framework.getActiveMap().getViewPoint();i.setAnimate(!0),i.setCameraPosition(null),i.setGroundPosition([t.coords.longitude,t.coords.latitude]),null!=e&&i.setDistance(e),this.framework.getActiveMap().gotoViewPoint(i,1,0)}},{key:"trackLocator",value:function(){var e=Yu(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;r0){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=Yu(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&&Vu.testForApi(),!n&&!r){e.next=14;break}return e.prev=4,e.next=7,Vu.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}}]),t}(Ou),Uu=Bu,Wu=function(e){function t(e){return Object(d["a"])(this,t),e.url&&(e.url=null),y(this,b(t).call(this,e))}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.VirtualcityLocationService"}}]),t}(Iu),qu=Wu,Ju=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}(),Ku=Ju,Zu=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.className=t.className,i.tags=[],i.activeTags=[],i.doHandle=!0,i.tagOrder=e.tagOrder?e.tagOrder:[],i.combineTagsWithOr=!!e.combineTagsWithOr,i.isActive=!1,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.middleware.Tags"}}]),Object(m["a"])(t,[{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){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()-20)&&r.setPitch(-20),r.setGroundPosition(s),r.setDistance(2e3),r.setCameraPosition(null),n.gotoViewPoint(r),this.isActive=!0}},{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 this.searchDistance}},{key:"showLayer",value:function(){var e=ne.getInstance().getLayerByName(this.layerName);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(!0))}},{key:"hideLayer",value:function(){if(this.layerName){var e=ne.getInstance().getLayerByName(this.layerName);e.activate(!1)}}},{key:"clear",value:function(){this.hideLayer(),this.isActive=!1,this.title=null}}]),t}(Ku),$u=Xu,eh="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",th=eh,ih=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:"isInitialized",value:function(){return this.initialized}},{key:"handleClickEvent",value:function(e){}},{key:"destroy",value:function(){this.initialized=!1}},{key:"getClassName",value:function(){return this.className}}]),e}(),nh=ih,rh=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.pointWGS84=e.pointWGS84||null,i.geometry=e.geometry||null,i.balloonContent=e.balloonContent||null,i.result=e.result||{},i.layerName=e.layerName,i.icon=e.icon||th,i.clearLayerOnClick=null==e.clearLayerOnClick||e.clearLayerOnClick,i._featureId=null,i.zoomDistance="number"===typeof e.zoomDistance?e.zoomDistance:2e3,i.initialize(),i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.FeatureItem"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){var e=ne.getInstance();if(Se(b(t.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 i=(new ol.format.GeoJSON).readFeature(this.geometry);if(!i)return!1;this.pointWGS84=ol.extent.getCenter(i.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=ne.getInstance(),t=e.getActiveMap(),i=t.getViewPoint();i.setAnimate(!0);var n=i.getGroundPosition(),r=this.pointWGS84.slice();n&&n[2]&&(r[2]=n[2]),i.setGroundPosition(r),i.setDistance(this.zoomDistance),i.setCameraPosition(null);var a=i.getPitch();(!a||a>-20)&&i.setPitch(-20);var s=e.getLayerByName(this.layerName),o=this.getFeature();this.clearLayerOnClick&&s.removeAllFeatures(),s.addFeatures([o]),s.activate(!0),t.gotoViewPoint(i);var l=Q.getInstance();l.getCurrentItem()&&l.getCurrentItem().id===o.getId()||l.setCurrentItem(o.getId(),o,s)}}},{key:"getFeature",value:function(){if(this.initialized){var e,t=ne.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:"getCoords",value:function(){return this.pointWGS84}},{key:"destroy",value:function(){if(Se(b(t.prototype),"destroy",this).call(this),null!=this._featureId){var e=ne.getInstance(),i=e.getLayerByName(this.layerName);i.removeFeaturesById([this._featureId])}this._featureId=null}}]),t}(nh),ah=rh,sh=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.slug=e.slug,i.initialize(),i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.LayerItem"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(Se(b(t.prototype),"initialize",this).call(this),!this.initialized){if(!this.slug)return console.log("Could not find layer for LayerItem"),!1;var e=ne.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 ne.getInstance().getLayerByName(this.slug).isActive()}},{key:"handleClickEvent",value:function(e){if(this.initialized){var t=ne.getInstance().getLayerByName(this.slug);if(t){var i=t.isActive();t.activate(!i).then(e)}}}}]),t}(nh),oh=sh,lh=(xu={},Object(oe["a"])(xu,Iu.className,Iu),Object(oe["a"])(xu,Uu.className,Uu),Object(oe["a"])(xu,qu.className,qu),xu),ch=function(e){function t(e){var i;Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.autocomplete=!!e.autocomplete,i.autocompleteRequest=e.autocompleteRequest?e.autocompleteRequest:null,i.fullAddressRequest=e.fullAddressRequest?e.fullAddressRequest:null,i.extendedSearches=e.extendedSearches?e.extendedSearches:[],i.middleware=[],i.extendedSearches.forEach(function(t){var i;"string"===typeof t?"searchTags"===t?this.middleware.push(new Qu(e)):"searchNear"===t&&this.middleware.push(new $u(e)):("vcs.vcm.widgets.search.middleware.Near"===t.type?i=new $u(t):"vcs.vcm.widgets.search.middleware.Tags"===t.type&&(i=new Qu(t)),i&&i instanceof Ku&&this.middleware.push(i))},f(i)),i.searchImplementations=[];var n=e.searchImplementations?e.searchImplementations:[];if(n)for(var r=0;r",balloonContent:["
","

<%= obj.fulladdress %>

","
"]},point:{pointType:!0,geomProperty:"point",title:"<%= obj.display_name %>",description:"<%= obj.licence %>",balloonContent:["

<%= obj.display_name %>

","
","

<%= obj.licence %>

","
"]},geojson:{zoomTo:!0,pointType:!1,geomProperty:"geojson",pointProperty:"point",title:"<%= obj.display_name %>",description:"<%= obj.licence %>",balloonContent:["

<%= obj.display_name %>

","
","

<%= obj.licence %>

","
"]}},Object.values(i.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]=Dr()(n)}})}),i.resultIcon=e.resultIcon||th,i.currentResults=[],i.justSearched=!1,i.resultLayer=new _n({projection:{epsg:4326},name:"_searchResultVector",zCoordinateEyeOffset:-100,heightAboveGround:10,altitudeMode:"clampToGround"}),i.showAllResults=!!e.showAllResults,i.showSearchResultToolbar=!!e.showSearchResultToolbar,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.Search"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){var e=Se(b(t.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.resultLayer.setStyle(new ol.style.Style({image:new ol.style.Icon({src:this.resultIcon,scale:.5}),fill:new ol.style.Fill({color:"rgba(168,192,43,0.6)"}),stroke:new ol.style.Stroke({color:"#a8c02b",width:1.25})})),this.resultLayer.setHighlightStyle(new ol.style.Style({image:new ol.style.Icon({src:this.resultIcon,scale:.8}),fill:new ol.style.Fill({color:"rgba(168, 192, 43, 1)"}),stroke:new ol.style.Stroke({color:"#a8c02b",width:2})})),this.initialized=!0;var i=this.framework.getWidgetByType("vcs.vcm.widgets.BalloonInfo");i&&!i.hasTypeForLayerName("_searchResultVector")&&i.addTypeForLayer("_searchResultVector",["
"," <%= balloonContent %>","
"," ","
","
","
","
"],"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-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.isInitialized()&&(this.currentResults.push(e),this.showAllResults&&e instanceof ah))&&e.getFeature()},this).filter(function(e){return e});this.showAllResults&&(this.resultLayer.addFeatures(n),this.resultLayer.activate(!0)),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 ah({geometry:a,result:e,balloonContent:r.balloonContent(e),title:r.title(e),pointWGS84:s,description:r.description(e),layerName:"_searchResultVector",clearLayerOnClick:!this.showAllResults,icon:this.resultIcon,zoomDistance:r.zoomTo})}else"layer"===e.type&&(n=new oh({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.activate(!1)}},{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=Dr()(JSON.stringify(n.query));this.runningRequest&&this.runningRequest.cancel();var l=q.getInstance().getLocaleAwareString(n.endPoint);return this.runningRequest=ce.a.CancelToken.source(),new Promise(function(n,r){ce.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:"getResultLayer",value:function(){return this.resultLayer}},{key:"getConfigObject",value:function(){var e=Se(b(t.prototype),"getConfigObject",this).call(this);return e.autocomplete=this.autocomplete,e.autocompleteRequest=this.autocompleteRequest,e.resultIcon=this.resultIcon!==th?this.resultIcon:null,e.searchImplementations=[],e.extendedSearches=this.extendedSearches,e.showSearchResultToolbar=this.showSearchResultToolbar,e.searchImplementations.push(new Iu({}).getConfigObject()),e}}]),t}(ra),uh=ch,hh=function(e){function t(e,i){var n;return Object(d["a"])(this,t),n=y(this,b(t).call(this)),n.cb=i,n.scratchLayer=e,n._defaultActive=me.CLICK,n.coordinates=[],n.setActive(),n}return w(t,e),Object(m["a"])(t,[{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)}}]),t}(pe),dh=hh,mh=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.navigationControls=null,i.color=e.color||"#A8C02B",i.featureLayer=new _n({projection:{epsg:3857},name:"_advancedWalkMode",altitudeMode:"none"}),i.supportedMaps=["vcs.vcm.maps.Cesium"],i._removeInteraction=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.AdvancedWalkMode"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){var e=Se(b(t.prototype),"initialize",this).call(this);if(!e)return!1;this.initialized=!0,this.initializedFinished();var i=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:i,stroke:n,radius:5}),fill:i,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))&&Se(b(t.prototype),"isSupported",this).call(this,e)}},{key:"activate",value:function(){this.featureLayer.activate(!0),this.navigationControls.navigationMode.values.walkmode&&this.navigationControls.navigationMode.activateOverviewMode(),this.active&&this.deactivate();var e=new dh(this.featureLayer,this.calculateViewPoint.bind(this));this._removeInteraction=xn().addExclusiveInteraction(e,this.deactivate.bind(this)),Se(b(t.prototype),"activate",this).call(this)}},{key:"deactivate",value:function(){this._removeInteraction&&this._removeInteraction(),this.featureLayer.getSource().clear(),this.featureLayer.activate(!1),Se(b(t.prototype),"deactivate",this).call(this)}},{key:"calculateViewPoint",value:function(e){var t,i,n,r,a=e.map(function(e){return R.mercatorToWgs84(e)}),s=Object(Ie["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]),Au=(t=Cesium.Cartesian3).fromDegrees.apply(t,Object(T["a"])(o).concat([Cesium.Ellipsoid.WGS84,Au])),Fu=(i=Cesium.Cartesian3).fromDegrees.apply(i,Object(T["a"])(l).concat([Cesium.Ellipsoid.WGS84,Fu])),Nu=(n=Cesium.Cartesian3).fromDegrees.apply(n,Object(T["a"])(c).concat([Cesium.Ellipsoid.WGS84,Nu])),Fu=Cesium.Cartesian3.subtract(Fu,Au,new Cesium.Cartesian3),Nu=Cesium.Cartesian3.subtract(Nu,Au,new Cesium.Cartesian3),Cesium.Cartesian3.normalize(Fu,Fu),Cesium.Cartesian3.normalize(Nu,Nu),r=o[2]>l[2]?Cesium.Math.toDegrees(Math.acos(Cesium.Cartesian3.dot(Fu,Nu)))-90:Cesium.Math.toDegrees(Math.acos(Cesium.Cartesian3.dot(Fu,Nu)));var u={groundPosition:o,distance:0,animate:!0,heading:Wt(o,l),pitch:r},h=new V(u);this.navigationControls.navigationMode.activateFirstPersonMode(h,null,null,null,!0),setTimeout(this.deactivate.bind(this),1e3)}}]),t}(ra),fh=mh,yh=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),e.balloonTypes||(e.balloonTypes=[{template:["
","

<%= obj.title %>

","
"," <%= obj.description %>","
","
"," ","
","
","
","
"],minTop:"balloonHeight + 70",minLeft:"70",layerTypes:["vcs.vcm.layer.Vector"],layerNames:[]}]),i.balloonTypes=[],i.layerNamesToBalloonTypes={},i.layerTypesToBalloonTypes={},e.balloonTypes.forEach(function(e,t){var i=e.template;"string"!==typeof e.template&&(i=e.template.join("\n")),this.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){this.layerTypesToBalloonTypes[e]=t},this),e.layerNames&&e.layerNames.forEach(function(e){this.layerNamesToBalloonTypes[e]=t},this)},f(i)),i.balloon=null,i.excludedLayerNames=e.excludedLayerNames||[],i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.BalloonInfo"}}]),Object(m["a"])(t,[{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=Dr()(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 Do(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.balloon}},{key:"getConfigObject",value:function(){var e=Se(b(t.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}}]),t}(ra),gh=yh,vh=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.data={},i.headerLogoBox=e.headerLogoBox||null,Array.isArray(i.headerLogoBox)&&(i.headerLogoBox=i.headerLogoBox.join("\n")),i.headerTitle=e.headerTitle||null,Array.isArray(i.headerTitle)&&(i.headerTitle=i.headerTitle.join("\n")),i.footerLogoBox=e.footerLogoBox||null,Array.isArray(i.footerLogoBox)&&(i.footerLogoBox=i.footerLogoBox.join("\n")),i.showOverflow=!!e.showOverflow,i.layerItems=[],i.uiOptions={headerLogoBox:i.headerLogoBox,headerTitle:i.headerTitle,footerLogoBox:i.footerLogoBox},i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.Copyright"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){var e=Se(b(t.prototype),"initialize",this).call(this);if(!e)return;this.updateLayers(),this.framework.subscribe(B.MAP_ACTIVATED,this.updateLayers.bind(this)),this.framework.subscribe(B.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.isActive()){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.isActive()){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})}}]),t}(ra),ph=vh,_h=function(e){function t(e){return Object(d["a"])(this,t),e.className=t.className,y(this,b(t).call(this,e))}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.CreateLink"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){var e=Se(b(t.prototype),"initialize",this).call(this);if(!e)return;this.initializedFinished()}}}]),t}(ra),bh=_h,Lh={AMBIENT_OCCLUSION:"ambientOcclusion",BLOOM:"bloom",BLACK_AND_WHITE:"blackAndWhite",BLUR:"blur",BRIGHTNESS:"brightness",DEPTH_OF_FIELD:"depthOfField",EDGE_DETECTION:"edgeDetection",LENS_FLARE:"lensFlare",NIGHT_VISION:"nightVision",SILHOUTTE:"silhouette"},Mh=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}(),kh=Mh,wh=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(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"}})),i.uniforms.lengthCap=3,i.update(),i}return w(t,e),Object(m["a"])(t,null,[{key:"type",get:function(){return Lh.AMBIENT_OCCLUSION}}]),Object(m["a"])(t,null,[{key:"isSupported",value:function(e){return Cesium.PostProcessStageLibrary.isAmbientOcclusionSupported(e)}}]),t}(kh),Th=wh,Sh=function(e){function t(e){return Object(d["a"])(this,t),y(this,b(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 w(t,e),Object(m["a"])(t,null,[{key:"type",get:function(){return Lh.BLOOM}}]),t}(kh),Oh=Sh,Ch=function(e){function t(e){return Object(d["a"])(this,t),y(this,b(t).call(this,e,{gradations:{type:"number",step:1}}))}return w(t,e),Object(m["a"])(t,null,[{key:"type",get:function(){return Lh.BLACK_AND_WHITE}}]),Object(m["a"])(t,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createBlackAndWhiteStage()}}]),t}(kh),Eh=Ch,Ih=function(e){function t(e){return Object(d["a"])(this,t),y(this,b(t).call(this,e,{delta:{type:"number"},sigma:{type:"number"},stepSize:{type:"number"}}))}return w(t,e),Object(m["a"])(t,null,[{key:"type",get:function(){return Lh.BLUR}}]),Object(m["a"])(t,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createBlurStage()}}]),t}(kh),Dh=Ih,jh=function(e){function t(e){return Object(d["a"])(this,t),y(this,b(t).call(this,e,{brightness:{type:"number"}}))}return w(t,e),Object(m["a"])(t,null,[{key:"type",get:function(){return Lh.BRIGHTNESS}}]),Object(m["a"])(t,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createBrightnessStage()}}]),t}(kh),Ph=jh,Yh=function(e){function t(e){return Object(d["a"])(this,t),y(this,b(t).call(this,e,{focalDistance:{type:"number",step:1},delta:{type:"number"},sigma:{type:"number"},stepSize:{type:"number"}}))}return w(t,e),Object(m["a"])(t,null,[{key:"type",get:function(){return Lh.DEPTH_OF_FIELD}}]),Object(m["a"])(t,null,[{key:"isSupported",value:function(e){return Cesium.PostProcessStageLibrary.isDepthOfFieldSupported(e)}},{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createDepthOfFieldStage()}}]),t}(kh),xh=Yh,Ah=function(e){function t(e){return Object(d["a"])(this,t),y(this,b(t).call(this,e,{intensity:{type:"number"},distortion:{type:"number",step:1},ghostDispersal:{type:"number"},haloWidth:{type:"number"},earthRadius:{type:"number",step:1e3}}))}return w(t,e),Object(m["a"])(t,null,[{key:"type",get:function(){return Lh.LENS_FLARE}}]),Object(m["a"])(t,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createLensFlarStage()}}]),t}(kh),Fh=Ah,Nh=function(e){function t(e){return Object(d["a"])(this,t),y(this,b(t).call(this,e,{}))}return w(t,e),Object(m["a"])(t,null,[{key:"type",get:function(){return Lh.NIGHT_VISION}}]),Object(m["a"])(t,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createNightVisionStage()}}]),t}(kh),Hh=Nh,Rh=function(e){function t(e){return Object(d["a"])(this,t),y(this,b(t).call(this,e,{color:{type:"color"},length:{type:"number"}}))}return w(t,e),Object(m["a"])(t,null,[{key:"type",get:function(){return Lh.SILHOUTTE}}]),Object(m["a"])(t,null,[{key:"isSupported",value:function(e){return Cesium.PostProcessStageLibrary.isSilhouetteSupported(e)}},{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createSilhouetteStage()}}]),t}(kh),zh=Rh,Gh=(Hu={},Object(oe["a"])(Hu,Th.type,Th),Object(oe["a"])(Hu,Oh.type,Oh),Object(oe["a"])(Hu,Eh.type,Eh),Object(oe["a"])(Hu,Dh.type,Dh),Object(oe["a"])(Hu,Ph.type,Ph),Object(oe["a"])(Hu,xh.type,xh),Object(oe["a"])(Hu,Fh.type,Fh),Object(oe["a"])(Hu,Hh.type,Hh),Object(oe["a"])(Hu,zh.type,zh),Hu),Vh=Y.getLogger("vcs.vcm.widets.DisplayQuality"),Bh=function(e){function t(e){var i;Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.defaultQualityLevel=e.defaultQualityLevel||"medium",i.defaultMobileQualityLevel=e.defaultMobileQualityLevel||"low",i.viewModel=null;var n={},r=e.low||{};n.low=t.createViewModel({sse:4,fxaa:!1,fog:{enabled:!0,density:9e-4,screenSpaceErrorFactor:6},resolutionScale:.9,layerSSEFactor:2},r);var a=e.medium||{};n.medium=t.createViewModel({sse:2.333,fxaa:!1,fog:{enabled:!0,density:5e-4,screenSpaceErrorFactor:4},resolutionScale:1,layerSSEFactor:1.1},a);var s=e.high||{};n.high=t.createViewModel({sse:4/3,fxaa:!0,fog:{enabled:!1,density:0,screenSpaceErrorFactor:0},resolutionScale:1,layerSSEFactor:.5},s),i.viewModelSettings=n,i.showAdvancedSettings=e.showAdvancedSettings||!1,i.sseLayerTypes=["vcs.vcm.layer.cesium.AbstractCesiumTilesetLayer","vcs.vcm.layer.TiledLayer","vcs.vcm.layer.FeatureStore"],i.supportedMaps=["vcs.vcm.maps.Cesium"],i.cesiumMap=null,i.layers=[],i.activePreset={preset:null},i.postProcessStages={};var o=e.allowedPostRenderStages||[Th.type,Oh.type,Eh.type,Dh.type,Ph.type,xh.type,Hh.type,zh.type];return o.forEach(function(e){i.postProcessStages[e]=null}),i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.DisplayQuality"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var i=Se(b(t.prototype),"initialize",this).call(this);if(!i)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){Gh[t]&&Gh[t].isSupported(e.cesiumMap.getScene())?r[t]&&(e.postProcessStages[t]=new Gh[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(B.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]&&Vh.warning("trying to add existing stage");var t=Gh[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 Vh.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 Hn||e instanceof Er||e instanceof ta}).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.isInitialized()&&this.viewModel){var t=this.cesiumMap.getViewer();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.isActive()){var i=this.layers.find(function(t){return t.layerName===e});i&&t.setMaximumScreenSpaceError(i.sse)}}},{key:"getConfigObject",value:function(){var e=Se(b(t.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||[Th.type,Oh.type,Eh.type,Dh.type,Ph.type,xh.type,Hh.type,zh.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)}}}]),t}(ra),Uh=Bh,Wh=new gt({image:{fill:{color:[255,255,255,.4]},stroke:{color:[0,0,0,1],width:1},radius:5},stroke:{color:"#3399CC",width:2},fill:{color:[255,255,255,.4]},text:{font:"bold 18px sans-serif",textBaseline:"bottom",offsetY:-15,offsetX:0,stroke:{color:"#FFFAF0",width:2}}}),qh=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers","vcs.vcm.maps.Oblique"],i.allowedGeometries=e.allowedGeometries||["Point","LineString","Polygon","BBox","Circle","Rectangle","Label"],i.allowEditMode=Object(u["e"])(e.allowEditMode,!0),i.allowSelectMode=Object(u["e"])(e.allowSelectMode,!0),i.defaultMode=null!=rn[e.defaultMode]?e.defaultMode:"create",i.editorOptions={hideAltitudeMode:Object(u["e"])(e.hideAltitudeMode,!1),simpleStyleUi:Object(u["e"])(e.simpleStyleUi,!1),hideExport:Object(u["e"])(e.hideExport,!1),hideHelp:Object(u["e"])(e.hideHelp,!1),showFeatureEditorUiInEditMode:!i.allowSelectMode&&i.allowEditMode},("select"===i.defaultMode&&!i.allowSelectMode||"edit"===i.defaultMode&&!i.allowEditMode)&&(i.defaultMode="create"),i.editingLayer=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.Drawing"}}]),Object(m["a"])(t,[{key:"activate",value:function(){Se(b(t.prototype),"activate",this).call(this)}},{key:"deactivate",value:function(){Se(b(t.prototype),"deactivate",this).call(this),this.layerEditor.deactivate()}},{key:"initialize",value:function(){if(!this.initialized){var e=Se(b(t.prototype),"initialize",this).call(this);if(!e)return!1;this.initialized=!0;var i=Wh.clone();this.options.style&&i.assign(new gt(this.options.style)),this.editingLayer=new _n({altitudeMode:"clampToGround",projection:R.createMercatorProjection(),style:i,isDynamic:!0}),this.framework.addLayer(this.editingLayer),this.editingLayer.activate(!0),this.layerEditor=new kl({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=Wh.clone();return this.options.style&&e.assign(new gt(this.options.style)),{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:e.getOptions()}}}]),t}(ra),Jh=qh,Kh=function(e){function t(e){var i;Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.showFreeFormCrsInput=Object(u["e"])(e.showFreeFormCrsInput,!1),i.dataProjection=e.dataProjection?new R(e.dataProjection):i.framework.projection;var n=i.dataProjection?i.dataProjection.epsg:"";i.coordinateSystem=e.coordinateSystem||n,i.heightMode=e.heightMode||"absolute",i.formatOptions=e.formats||["2D Shape","3D Shape - PolygonZ","3D Shape - Multipatch","CityGML","KMZ","DXF","DWG","3DS","ESRI FGDB","SketchUp","OBJ","3DPDF","VRML","FMEAR"],i.formatsWithTextures=["CityGML","3DS","SketchUp","OBJ","3DPDF","VRML","FMEAR"],i.lodOptions=e.lod||["LoD1","LoD2","LoD3","LoD4","haLoD"],i.citygmlclassesOptions=e.citygmlclasses||["26","7","16","5","21","85","64","45","43","46","8","9","4"],i.appearanceThemesOptions=e.appearanceThemes||["rgbTexture"],i.maxArea=Object(u["h"])(e.maxarea,2e6),i.useTokenSecurity=null==e.useTokenSecurity||e.useTokenSecurity,i.serverUrl=e.serverUrl||"http://fmeserver/fmedatadownload/Repository/workbench.fmw",i.securityToken=e.securityToken&&""!==e.securityToken?e.securityToken:null,i.tokenUrl=e.tokenUrl||"http://fmeserver/fmetoken/service/generate.json",i.token=null,i.fmeuser=e.fmeuser?e.fmeuser:"publicuser",i.fmepassword=e.fmepassword?e.fmepassword:"publicuser";var r=vt.clone();return e.style&&r.assign(new gt(e.style)),i._layerOptions={projection:R.createMercatorProjection(),name:"_exportLayer",classificationType:e.classificationType||"both",altitudeMode:"clampToGround",style:r},i.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"],i.singleFeatureId=Object(u["c"])(),i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.Export"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var i=Se(b(t.prototype),"initialize",this).call(this);if(!i)return!1;this.geometryLayer=new _n(this._layerOptions),this.framework.addLayer(this.geometryLayer),this.layerEditor=new hl({allowedGeometries:["Polygon","BBox"],defaultMode:"edit"}),this.layerEditor.initialize(),this.layerEditor.addEditingLayer(this.geometryLayer),this.fmeAuthenticate().then(function(t){var i=t.data;if(i)try{e.token=i.serviceResponse.token}catch(n){return Promise.reject(n)}return e.initialized=!0,e.initializedFinished(),Promise.resolve()}).catch(function(t){e.logger.warning("Could not authentificate FME : ".concat(t))})}return!0}},{key:"fmeAuthenticate",value:function(){if(this.useTokenSecurity&&null==this.securityToken){this.logger.deprecate("user/password","Use a security token. Future versions of the vcMAP may no longer support this.");var e="".concat(this.tokenUrl,"?user=").concat(this.fmeuser,"&password=").concat(this.fmepassword,"&expiration=1&timeunit=day");return ce.a.get(e)}return null!=this.securityToken?(this.token=this.securityToken,Promise.resolve()):Promise.reject(new Error("Missing security token"))}},{key:"prepareRequestAndSend",value:function(e,t,i){if(this.useTokenSecurity&&!this.token&&!i)throw new Error("i18n_export_authentification_error");if(!e.cityGmlClasses||0===e.cityGmlClasses.length)throw new Error("i18n_export_themclass_error");var n={COORD_SYS:e.crs||(Array.isArray(this.coordinateSystem)?this.coordinateSystem[0]:this.coordinateSystem),HEIGHT_MODE:this.heightMode,TOKEN:i||this.token,OPT_SERVICEMODE:"async"};if(n.EXPORT_FORMAT=e.format,n.THEM_CLASS=e.cityGmlClasses.map(function(e){return e.value}),n.TEXTURE=e.texture?"Yes":"No",n.APP_THEME=e.appearance||"none",n.LOD_SELECTION=e.level,e.useFeatureGeometry){n.SELECTION="Polygon";var r=this.geometryLayer.getFeatureById(this.singleFeatureId);if(!r)throw new Error("i18n_export_geometry_error");var a=r.getGeometry();if(!a||"Polygon"!==a.getType())throw new Error("i18n_export_geometry_error");if(null!=this.maxArea){var s=a.getArea();if(s>this.maxArea)throw new Error("i18n_export_maxArea_error")}a=a.clone(),a.transform(R.createMercatorProjection().proj,this.dataProjection.proj);var o=a.getCoordinates()[0];n.POLYGON=o.map(function(e){var t=Object(Ie["a"])(e,2),i=t[0],n=t[1];return"".concat(i,",").concat(n)}).join(";")}else{var l=this.framework.getSelectBehavior();if(l.getSizeOfSelectionSet()<=0)throw new Error("i18n_export_feature_error");n.SELECTION="Einzelobjekte",n.GMLID=l.getSelectionSet()}if(!Object(u["d"])(e.email))throw new Error("i18n_export_email_error");n.OPT_REQUESTEREMAIL=e.email;var c=Object.keys(n).map(function(e){return"".concat(e,"=").concat(encodeURIComponent(n[e]))}).join("&"),h=t||this.serverUrl;return ce.a.post(h,c,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}})}},{key:"getFormatOptions",value:function(){return this.logger.deprecate("getFormatOptions","use .formatOptions instead"),this.formatOptions}},{key:"getLodOptions",value:function(){return this.logger.deprecate("getFormatOptions","use .lodOptions instead"),this.lodOptions}},{key:"getCitygmlClassOptions",value:function(){var e={26:"Building",7:"SolitaryVegetationObjects",5:"GenericCityObject",21:"CityFurniture",16:"ReliefFeature",85:"Tunnel",64:"Bridge",45:"Road",43:"Track",46:"Square",8:"Plant Cover",9:"WaterBody",4:"LandUse"},t={85:!0,64:!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]}})}},{key:"getTexturedFormats",value:function(){return this.logger.deprecate("getFormatOptions","use .formatsWithTextures instead"),this.formatsWithTextures}},{key:"getAppearanceThemes",value:function(){return this.logger.deprecate("getFormatOptions","use .appearanceThemesOptions instead"),this.appearanceThemesOptions}},{key:"deactivate",value:function(){this.active&&(Se(b(t.prototype),"deactivate",this).call(this),this.framework.getSelectBehavior().deactivateClickBehavior())}},{key:"getConfigObject",value:function(){var e=Se(b(t.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.useTokenSecurity=this.useTokenSecurity,e.serverUrl=this.serverUrl,e.tokenUrl=this.tokenUrl,e.fmeuser=this.fmeuser,e.fmepassword=this.fmepassword,e.serverUrl=this.serverUrl,e}}]),t}(ra),Zh=Kh,Qh=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.layers=new Set,i._setLayers(e.layerTypes,e.layers,e.excludedLayers),i.headerTemplate=e.headerTemplate?i._makeHeaderTemplate(e.headerTemplate):null,i.itemTemplate=e.itemTemplate||null,i.itemTemplate||(i.itemTemplate=["
","<%= data.feature.properties.name %>","<% if(data.feature.properties.website){ %>","
<%= data.feature.properties.website %>","<% } %>","
","
","
","<%= data.feature.properties.street %>
<%= data.feature.properties.zip %> <%= data.feature.properties.city %>
","
"]),Array.isArray(i.itemTemplate)&&(i.itemTemplate=i.itemTemplate.join("")),i.layerTemplateMap={},Array.isArray(e.layerTemplates)&&e.layerTemplates.forEach(i._setLayerTemplates,f(i)),i.queryProperties=e.queryProperties||["name"],i.values={currentHeader:i.headerTemplate,query:!0},i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.FeatureList"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){var e=Se(b(t.prototype),"initialize",this).call(this);if(!e)return;var i=function e(t){t.children?t.children.forEach(e,this):this.layers.has(t.layerName)&&(t.hasFeatureListView=!0)},n=this.framework.getWidgetsByType(Fa.className)[0];n&&n.cluster.forEach(i,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:Dr()(n.item)({data:{featureCount:t+1,feature:e}}),id:e.id,query:e.query}})}}]),t}(ra),Xh=Qh,$h={DISTANCE:"distance",AREA:"area",VERTICAL_HEIGHT:"verticalHeight",OBLIQUE_HEIGHT:"obliqueHeight",OBLIQUE_DISTANCE:"obliqueDistance",POINT:"point",CARTESIAN_DISTANCE:"cartesianDistance",CARTESIAN_AREA:"cartesianArea"},ed=function(){function e(t){Object(d["a"])(this,e),this.parent=t.parent,this.decimalPlaces=this.parent.decimalPlaces,this.map=ne.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 $h.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[ft]=this.parent.featureLayer.style.clone(),this.feature.setStyle(this.feature[ft].style)),this.map instanceof Pi?(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=tn.CREATE;e.startPosition&&"Point"===e.geometryType&&(this.feature.getGeometry().changed(),i=tn.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=rl.Point(),t=new ol.Feature({geometry:e});return this.map instanceof Pi&&(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}(),td=ed,id=new ol.Sphere(6378137),nd=function(e){function t(e){var i;return Object(d["a"])(this,t),e.type=e.type||t.measurementType,i=y(this,b(t).call(this,e)),i.segmentDistance=[],i.values.distance="0",i.values.estimate=!1,i.label=i.addLabel(),i._createFeature({geometryType:"LineString",startPosition:e.startPosition}),i}return w(t,e),Object(m["a"])(t,null,[{key:"measurementType",get:function(){return $h.DISTANCE}}]),Object(m["a"])(t,[{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 Pi){r=new Array(n);var s=i.map(function(e,i){return Object(Bt["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;o2){this.values.isValid=this.values.isValid||n>3;for(var a=0;a2&&(this.values.isValid=!0),this.values.isValid){if(this.parent.geometryEditor.state.mode===tn.CREATE&&this.parent.geometryEditor.setMode(tn.EDIT),i.length<2)return void this.parent.removeMeasurement(this);var n=i[0][2]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;R.mercatorToWgs84(t[0],!0),_d=Cesium.Cartesian3.fromDegrees(t[0][0],t[0][1],t[0][2],void 0,_d);for(var r=1;r3||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;co?i[c][2]:o,R.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;de+.5)&&(this.values.heading=e)}},{key:"activateForOpenlayers",value:function(){this.initializedForOpenlayers||(this.ol3MapObject=this.framework.getActiveMap(),this.ol3Map=this.ol3MapObject.getOl3Map(),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.getHeading())}}},{key:"activateForOblique",value:function(){this.initializedForOblique||(this.framework.subscribe(B.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(oe["a"])(i,h["a"].NORTH,0),Object(oe["a"])(i,h["a"].EAST,90),Object(oe["a"])(i,h["a"].SOUTH,180),Object(oe["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.getGroundPosition(),n=this.calculateBearing(e,t.getHeading()),r=t.getDistance()/this.moveFactor,a=Ut([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.getCameraPosition(),n=this.calculateBearing(e,t.getHeading()),r=2e3/this.moveFactor,a=Ut([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.setFlag(this._navigationModeFlags[e],!0);else{var i=this.framework.getActiveMap();if(this.obliqueMoveImage&&i instanceof Pi){if(this._obliqueMoving||!i.activeLayer)return;var n=i.activeLayer.currentDirection;this._obliqueMoving=!0,i.getViewPoint(null,!0).then(function(i){var r=i.getHeading(),a=t.calculateBearing(e,r);return n.getImageIdInDirection(2*Math.PI-(a*Math.PI/180-Math.PI/2),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.getGroundPosition()?(n.setGroundPosition(t.computeNewGroundPosition(e,n)),n.setCameraPosition(null)):(n.setCameraPosition(t.computeNewCameraPosition(e,n)),n.setGroundPosition(null)),n.setAnimate(t.animation),i.gotoViewPoint(n,t.animationDuration,0)})}}},{key:"moveButtonUp",value:function(e){this.navigationMode.navActive&&this.navigationMode.setFlag(this._navigationModeFlags[e],!1)}},{key:"compassPointerClicked",value:function(e){var t=this;this.navigationMode.navActive?this.navigationMode.setHeading(e):this.framework.getActiveMap().getViewPoint(!0,!0).then(function(i){i.setHeading(e),i.setAnimate(!0),i.setRoll(0),i.getGroundPosition()&&i.setCameraPosition(null),t.framework.getActiveMap().gotoViewPoint(i,1,0)})}},{key:"compassPointerDown",value:function(){var e=this.framework.getActiveMap().getViewPoint();e.setAnimate(!1),e.getGroundPosition()&&e.setCameraPosition(null),this.compassPointerPressedViewpoint=e}},{key:"compassPointerDragged",value:function(e){this.navigationMode.navActive?this.navigationMode.setHeading(e):this.compassPointerPressedViewpoint&&(this.compassPointerPressedViewpoint.setHeading(e),this.framework.getActiveMap().gotoViewPoint(this.compassPointerPressedViewpoint,1,0))}},{key:"fovButtonPressed",value:function(e){this.navigationMode.navActive&&this.navigationMode.setFlag(this._navigationModeFlags[e],!0)}},{key:"fovButtonUp",value:function(e){this.navigationMode.navActive&&this.navigationMode.setFlag(this._navigationModeFlags[e],!1)}},{key:"zoomButtonPressed",value:function(e){var t=this;this.navigationMode.navActive||this.framework.getActiveMap().getViewPoint(null,!0).then(function(i){"zoomIn"===e?i.setDistance(i.getDistance()/t.zoomFactor):i.setDistance(i.getDistance()*t.zoomFactor),i.setAnimate(t.animation),i.setCameraPosition(null),t.framework.getActiveMap().gotoViewPoint(i,t.animationDuration,0)})}},{key:"tiltButtonPressed",value:function(e){if(this.navigationMode.navActive)this.navigationMode.setFlag(this._navigationModeFlags[e],!0);else if(this.framework.getActiveMap()instanceof Vt){var t=this.framework.getActiveMap().getViewPoint(),i=t.getPitch(),n=i;if(n="tiltUp"===e?i-this.tiltFactor:i+this.tiltFactor,n>-10&&(n=-10),n<-90&&(n=-90),t.setPitch(n),t.setAnimate(this.animation),!t.getGroundPosition())return;t.setCameraPosition(null),this.framework.getActiveMap().gotoViewPoint(t,this.animationDuration,0)}}},{key:"tiltButtonUp",value:function(e){this.navigationMode.navActive&&this.navigationMode.setFlag(this._navigationModeFlags[e],!1)}},{key:"rotateButtonPressed",value:function(e){if(this.navigationMode.navActive)this.navigationMode.setFlag(this._navigationModeFlags[e],!0);else{var t=this.framework.getActiveMap();if(t instanceof Vt||t instanceof Hi&&!t.fixedNorthOrientation){var i=this.framework.getActiveMap().getViewPoint(),n=i.getHeading(),r=n;if("rotateEast"===e?r+=10:r-=10,i.setHeading(r),i.setAnimate(this.animation),!i.getGroundPosition())return;i.setCameraPosition(null),this.framework.getActiveMap().gotoViewPoint(i,this.animationDuration,0)}}}},{key:"rotateButtonUp",value:function(e){this.navigationMode.navActive&&this.navigationMode.setFlag(this._navigationModeFlags[e],!1)}},{key:"rotateCenterClicked",value:function(){var e=this.framework.getActiveMap();e instanceof Vt&&(this.rotationActive?this.navigationMode.navActive?(this.navigationMode.setFlag("rotation",!1),this.rotationActive=!1,this.values.rotation=!1):this.rotateAroundCenterPosition(e,!1):this.navigationMode.navActive?(this.navigationMode.setFlag("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.getGroundPosition()&&(this.rotationActive=!0,this.values.rotation=!0,r.setCameraPosition(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.setHeading(e.getHeading()+n),this.framework.getActiveMap().gotoViewPoint(e,this.animationDuration,0)}},{key:"getConfigObject",value:function(){var e=Se(b(t.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.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.setAnimate(!0),i.setGroundPosition(t),i.setCameraPosition(null),i.setDistance(0),i.setPitch(0),i.setRoll(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='\n\t';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}}]),t}(ra),Ad=xd,Fd=function(e){function t(e){var i;Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.initialized=!1,i.mapContainerId=e.containerId||"vcm_overviewmap_container";var n=e.cameraIcon;n&&""!==n||(n="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=="),i.imageStyle=new ol.style.Icon({src:n,anchor:e.anchorPosition||[.5,.5]}),i.singleVectorObliqueResolutionFactor=Object(u["h"])(e.singleVectorObliqueResolutionFactor,2),i.activeOnStartup=e.activeOnStartup||!1,i.showOnlyActiveObliqueTile=!1;var r={fill:{color:"rgba(255,255,255,0.1)"},stroke:{color:"#a8c02b",width:1}},a={fill:{color:"rgba(255,255,255,0.8)"},stroke:{color:"#a8c02b",width:3}};return null!=e.oblique&&(i.showOnlyActiveObliqueTile=e.oblique.showOnlyActiveTile||!1,r=e.oblique.unselectedStyle||r,a=e.oblique.selectedStyle||a),i.unselectedObliqueTileStyle=new ol.style.Style({fill:r.fill?new ol.style.Fill(r.fill):null,stroke:r.stroke?new ol.style.Stroke(r.stroke):null}),i.selectedObliqueTileStyle=new ol.style.Style({fill:a.fill?new ol.style.Fill(a.fill):null,stroke:a.stroke?new ol.style.Stroke(a.stroke):null}),i.featureSet=!1,i.layerName=e.layerName||null,i.selectInteraction=null,i.layer=null,i.vectorSource=new ol.source.Vector({}),i.overviewMap=null,i.activeListener=null,i.oblique=!1,i.values={active:!1},i.initialized=!1,i._cachedViewPoint=null,i.minimumHeight=Object(u["h"])(e.minimumHeight,150),i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.OverviewMap"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){var e=Se(b(t.prototype),"initialize",this).call(this);if(!e||!this.layerName)return!1;this.layer=this.framework.getLayerByName(this.layerName);try{o(this.layer,[Sr,Fr,Hr,wr])}catch(i){return!1}this.mapActivatedSubscribeKey=this.framework.subscribe(B.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(Hi.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:[],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 i=this.overviewMap?Promise.resolve():this.createMap();i.then(function(){Se(b(t.prototype),"activate",e).call(e),e.overviewMap.once("postcompose",e.updateSize,e);var i=e.framework.getActiveMap();i instanceof Vt?e.initializeForCesium(i):i instanceof Hi?e.initializeForOpenlayers(i):i instanceof Pi&&e.initializeForOblique(i)})}},{key:"deactivate",value:function(){this.activeListener&&(this.activeListener(),this.activeListener=null),Se(b(t.prototype),"deactivate",this).call(this),this.values.active=!1,this.vectorSource.clear(),this.featureSet=!1}},{key:"initializeForCesium",value:function(e){if(e.isInitialized()){var t=e.getCesiumWidget(),i=t.scene;this.addCameraFeature(),this.activeListener=i.postRender.addEventListener(this.addCameraFeature,this)}}},{key:"initializeForOpenlayers",value:function(e){var t=e.getOl3Map();this.addCameraFeature();var i=t.on("postrender",this.addCameraFeature,this);this.activeListener=function(){ol.Observable.unByKey(i)}}},{key:"initializeForOblique",value:function(e){var t=this;this.vectorSource.clear();var i=[];i.push(new ol.interaction.DragPan),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){if(t.overviewMap.hasFeatureAtPixel(e.pixel)){var i=0;t.overviewMap.forEachFeatureAtPixel(e.pixel,function(e){if(!(i>=1)){var n=e.getId();t.obliqueDirection.setImageOnMap(n),i+=1}})}else e.stopPropagation()});e.activeLayer&&(this.obliqueDirectionChange(e.activeLayer),this.obliqueImageChange(e.activeLayer));var r=[];r.push(this.framework.subscribe(B.LAYER_ACTIVATED,this.obliqueLayerActivated,this)),r.push(this.framework.subscribe(B.LAYER_DEACTIVATED,this.obliqueLayerDeactivated,this)),r.push(this.framework.subscribe(B.OBLIQUE_DIRECTION_CHANGED,this.obliqueDirectionChange,this)),r.push(this.framework.subscribe(B.OBLIQUE_IMAGE_CHANGED,this.obliqueImageChange,this)),this.activeListener=function(){t.obliqueDirection&&t.overviewMap.removeLayer(t.obliqueDirection.footPrintsLayer),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 Di&&(this.selectInteraction.getFeatures().clear(),this.obliqueDirection&&this.overviewMap.removeLayer(this.obliqueDirection.footPrintsLayer))}},{key:"obliqueLayerActivated",value:function(e){e instanceof Di&&(this.obliqueDirectionChange(e),this.obliqueImageChange(e))}},{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:"addCameraFeature",value:function(){var e=this.framework.getActiveMap().getViewPoint();if(e&&e.isValid()){var t=e.getGroundPosition(),i=e.getCameraPosition()||t,n=e.getHeading(),r=e.getDistance();!i[2]||r&&r<4*i[2]||(r=4*i[2]);var a=!this._detectChange(i,n,r);if(!a){var s=Pe.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(R.wgs84ToMercator(i));var c=e.getHeading(),u=Cesium.Math.toRadians(c);this.imageStyle.setRotation(u),e.setHeading(0),e.setCameraPosition(i),e.setGroundPosition(null),e.setDistance(4*r),Hi.prototype.gotoViewPoint.call({ol3map:this.overviewMap},e)}}}}},{key:"getConfigObject",value:function(){var e=Se(b(t.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(){this.deactivate(),this.framework.unsubscribeByKey(this.mapActivatedSubscribeKey)}}]),t}(ra),Nd=Fd,Hd=i(650),Rd=i.n(Hd);function zd(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 Gd(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 Vd(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;s0?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=ne.getInstance().isIE11?$d:Xd;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=Rd.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=Se(b(t.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=Yu(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=Yu(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,Kd(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=Yu(regeneratorRuntime.mark(function e(i,n,r){var a,s,l,c,u;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return o(i,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(i,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 Vt)){e.next=23;break}return this._reset=t.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 Hi||u instanceof Pi)){e.next=30;break}return this._reset=t.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 i(t,i,n){return e.apply(this,arguments)}return i}()},{key:"copyBalloon",value:function(){var e=Yu(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(Ie["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;m1&&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=Be(n);return qe(r)}}}return"#a8c02b"}},{key:"getCopyrightText",value:function(){var e=ne.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)0&&this.cesium3DTilesetCollection.forEach(function(e){e.clippingPlanes=t.createClippingPlane(i,n,r)})}},{key:"activate",value:function(){this.featureLayer.activate(!0),this.active&&this.deactivate(),Se(b(t.prototype),"activate",this).call(this),this.framework.getLayers().filter(function(e){return e.isActive()&&e instanceof Hn}).forEach(this.setTilesets.bind(this));var e=this.scene.camera.positionCartographic.clone();e.height=0,this.position=Cesium.Cartographic.toCartesian(e,this.scene.globe.ellipsoid,this.position),this.initClippingPlanes();var i=new dm(this.translatePosition.bind(this));this._removeInteraction=xn().addExclusiveInteraction(i,this.deactivate.bind(this)),this.subscribeKey=this.framework.subscribe(B.LAYER_ACTIVATED,this.setTilesets.bind(this)),Q.getInstance().activateClickBehavior()}},{key:"deactivate",value:function(){this.active&&(Se(b(t.prototype),"deactivate",this).call(this),this._removeInteraction&&this._removeInteraction(),this.featureLayer.activate(!1),this.destroyClippingPlanes(),this.framework.unsubscribeByKey(this.subscribeKey),this.subscribeKey=null)}},{key:"setTilesets",value:function(e){if(this.layerNames.includes(e.name)&&e instanceof Hn&&!this.cesium3DTilesetCollection.has(e.name)&&e.cesium3DTileset){this.cesium3DTilesetCollection.set(e.name,e.cesium3DTileset);var i=this.boxSize.x/2,n=this.boxSize.y/2,r=Math.abs(this.boxSize.z);e.cesium3DTileset.clippingPlanes=t.createClippingPlane(i,n,r)}}},{key:"destroyClippingPlanes",value:function(){this.featureLayer.getEntities().removeAll(),this.scene.globe.clippingPlanes&&(this.scene.globe.clippingPlanes.removeAll(),this.scene.globe.clippingPlanes.enabled=!1,this.scene.globe.clippingPlanes=null),this.cesium3DTilesetCollection.size>0&&this.cesium3DTilesetCollection.forEach(function(e){e.clippingPlanes&&(e.clippingPlanes.removeAll(),e.clippingPlanes.enabled=!1,e.clippingPlanes=null)})}},{key:"translatePosition",value:function(e){var t=R.mercatorToWgs84(e),i=Object(Ie["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),this.scene.globe.clippingPlanes.modelMatrix=Cesium.Matrix4.setTranslation(ym,this.position,ym),this.cesium3DTilesetCollection.size>0&&this.cesium3DTilesetCollection.forEach(function(e){e.clippingPlanes.modelMatrix=Cesium.Matrix4.multiply(Cesium.Matrix4.inverse(e._initialClippingPlanesOriginMatrix,e.clippingPlanes.modelMatrix),ym,e.clippingPlanes.modelMatrix)})}}],[{key:"createClippingPlane",value:function(e,t,i){return new Cesium.ClippingPlaneCollection({modelMatrix:ym,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})}}]),t}(ra),vm=gm,pm=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),i.supportedMaps=["vcs.vcm.maps.Cesium"],i.flightInstances=i.framework.getFlights(),i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.Flight"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){var e=Se(b(t.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)}}]),t}(ra),_m=pm,bm=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this)),i.featureTypeSymbol=e.featureTypeSymbol,i.cb=e.cb,i._defaultActive=me.DRAGSTART|me.DRAGEND,i._defaultModificationKey=de.ALT,i.setActive(!1),i}return w(t,e),Object(m["a"])(t,[{key:"pipe",value:function(e){return e.type&me.DRAGSTART&&e.feature&&e.feature[this.featureTypeSymbol]&nn.VERTEX?this._feature=!0:e.type&me.DRAGEND&&this._feature&&(this._feature=!1,this.cb()),Promise.resolve(e)}}]),t}(pe),Lm=bm,Mm=new Cesium.Cartesian3,km=new Cesium.Cartesian3,wm=new Cesium.Cartesian3,Tm=new Cesium.Cartographic,Sm=new Cesium.Cartographic,Om=new Cesium.Cartographic,Cm=new Map,Em=new gt({image:{fill:{color:[168,192,43,.8]},stroke:{color:[0,0,0,1],width:1},radius:5},stroke:{color:[168,192,43,1],width:3},fill:{color:[168,192,43,.8]},text:{font:"bold 18px sans-serif",textBaseline:"bottom",offsetY:-15,offsetX:0,stroke:{color:"#FFFAF0",width:2}}}),Im=function(e){function t(e){var i;Object(d["a"])(this,t),e.className=t.className,i=y(this,b(t).call(this,e)),e.style&&Em.assign(new gt(e.style)),i.supportedMaps=["vcs.vcm.maps.Cesium"],i.maxNrOfPoints=Object(u["h"])(e.maxNrOfPoints,5e4),i.maxCombinedMemoryUsage=Object(u["h"])(e.maxCombinedMemoryUsage,1024),i._cancelled=!1,i._geometryChangedCB=null;var n=Object(u["g"])(e.defaultResolution,2);return i.values={profilePoints:[],progress:0,running:!1,includeObjects:!0,resolution:n},i.allowSmallExport=Object(u["e"])(e.allowSmallExport,!0),i._cachedProfile=null,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.widgets.heightProfile.HeightProfile"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){if(!this.initialized){var e=Se(b(t.prototype),"initialize",this).call(this);if(!e)return!1;this.featureLayer=new _n({projection:{epsg:3857},name:"_profile",style:Em,altitudeMode:"clampToGround",classificationType:"both"}),this.framework.addLayer(this.featureLayer),this.geometryEditor=new hl({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 Lm({cb:this.calculateProfile.bind(this),featureTypeSymbol:this.geometryEditor.state.featureTypeSymbol}),this.initialized=!0,this.initializedFinished()}return!0}},{key:"activate",value:function(){var e=this;Se(b(t.prototype),"activate",this).call(this),this.geometryEditor.activate(),this._cachedProfile&&this.geometryEditor.setMode(tn.EDIT),this.featureLayer.activate(!0);var i=this.framework.getLayers().filter(function(e){return e.active&&(e instanceof Hn||e instanceof Er)});i.length>0&&i.forEach(function(t){var n;if(t instanceof Er){var r=t.getImplementation(e.framework.getActiveMap());n=r.cesium3DTileset}else n=t.cesium3DTileset;Cm.set(n,n.maximumMemoryUsage),n.maximumMemoryUsage=e.maxCombinedMemoryUsage/i.length})}},{key:"deactivate",value:function(){Se(b(t.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(tn.NONE),this.geometryEditor.deactivate()),this.featureLayer.activate(!1),Cm.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.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(tn.CREATE,this.feature)}},{key:"geometryChangedCallback",value:function(e){var t=e.target.getCoordinates(),i=t.length;i>2&&(this.geometryEditor.setMode(tn.EDIT),ol.Observable.unByKey(this._geometryChangedCB),this._geometryChangedCB=null,this.calculateProfile())}},{key:"calculateProfile",value:function(){var e=Yu(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=R.mercatorToWgs84(r[0],r[0]),Cesium.Cartographic.fromDegrees(a[0],a[1],null,Tm),s=R.mercatorToWgs84(r[1],r[1]),Cesium.Cartographic.fromDegrees(s[0],s[1],null,Sm),o=new Cesium.EllipsoidGeodesic(Tm,Sm),l=o.surfaceDistance,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(Tm,null,Mm),Cesium.Cartographic.toCartesian(Sm,null,km),h=0;case 19:if(!(h.01)){e.next=35;break}return e.next=34,n([Sm]);case 34:u.push(Sm.height);case 35: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 36:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"isActiveTerrain",value:function(){var e=this.framework.getLayers(),t=e.find(function(e){return e instanceof zt&&e.active});return!!t}}]),t}(ra),Dm=Im;i(654);function jm(e,t,i){var n=Q.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!=tm&&t.unsubscribeByKey(tm)}}function Pm(e,t){null!=e.slLayer&&(tm=e.slLayer.startsWith("_searchResultVector")?t.subscribe(B.MAP_ACTIVATED,function(){var i=t.getLayerByName("_searchResultVector");i&&jm(e,t,i)}):t.subscribe(B.LAYER_ACTIVATED,jm.bind(null,e,t)))}function Ym(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=V.parseURLparameter(i)),i.verbose&&(Y.enabled=i.verbose),Pm(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 Di&&!r&&(r=i,i.isDefaultObliqueLayer=!0)}),r&&t.getLayers().forEach(function(e){e instanceof Di&&e!==r&&(e.isDefaultObliqueLayer=!1)})}return i}function xm(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-1?n:i.length+1,r=r>-1?r:i.length+1,n-r}):[];c.forEach(Vm),xm(s,t),Am(s,t);var u=document.getElementById("vcs_loading");u&&u.parentNode.removeChild(u),xn(),t.publish(B.FRAMEWORK_INITIALIZED),t.setInitialized(!0)}else alert("Could not find Container Element with id ".concat(e.mapcontainer))}function Jm(e){var t=ne.getInstance();t.getLogger().info("Sending request to load JSON config file [".concat(e,"]")),ce.a.get(e).then(function(e){qm(e.data)}).catch(function(e){Nm.log(e)})}function Km(){Yn.destroy(),Q.dispose(),ne.getInstance().dispose()}var Zm=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.commonLayer=e.commonLayer,i.active=!1,i.initialized=!1,i}return w(t,e),Object(m["a"])(t,[{key:"isActive",value:function(){return this.active}},{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.initialized}},{key:"mapActivated",value:function(e){return Promise.resolve()}},{key:"mapDeactivated",value:function(e){return Promise.resolve()}},{key:"updateStyle",value:function(e){}}]),t}(A),Qm=Zm,Xm=function(e){function t(e){var i;return Object(d["a"])(this,t),e.className=e.className?e.className:t.className,i=y(this,b(t).call(this,e)),i.clickListenerActivated=!1,i._removePostRenderHandler=function(){},i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.VectorLayer"}}]),Object(m["a"])(t,[{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.getZIndex(),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.getMinResolution(),t=this.commonLayer.getMaxResolution();e&&this.olLayer.setMinResolution(e),t&&this.olLayer.setMaxResolution(t),this.initialized=!0}return Promise.resolve()}},{key:"createSynchronization",value:function(e){if(this.commonLayer.visibility&&!this.alreadySynchronized&&e.isInitialized()){e.ol3map;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 Vt&&this.active&&!this.alreadySynchronized&&this.createSynchronization(e),Promise.resolve()}},{key:"mapDeactivated",value:function(e){if(e instanceof Vt&&this.counterPart&&this.commonLayer.isDynamic){var t=e.getSynchronizer(this);t.destroySingleLayerCounterparts(this.counterPart),this.alreadySynchronized=!1}return Promise.resolve()}},{key:"show",value:function(){Se(b(t.prototype),"show",this).call(this);var e=this.framework.getActiveMap();this.createSynchronization(e);var i=this.commonLayer.visibility;this.olLayer.setVisible(i),e.initialized&&(this._removePostRenderHandler(),this._removePostRenderHandler=e.getScene().postRender.addEventListener(this.commonLayer.postRenderStyling.bind(this.commonLayer)))}},{key:"hide",value:function(){Se(b(t.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)}}]),t}(Qm);Ee.registerSpecificLayerImpl(Vt.className,_n.className,Xm),Ee.registerSpecificLayerImpl(Vt.className,ta.className,Xm);var $m=Xm,ef=function(e){function t(e){return Object(d["a"])(this,t),e.className=t.className,y(this,b(t).call(this,e))}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.AsyncVectorImplementation"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){return Se(b(t.prototype),"initialize",this).call(this).then(this.commonLayer.fetchData.bind(this.commonLayer))}}]),t}($m);Ee.registerSpecificLayerImpl(Vt.className,xr.className,ef),Ee.registerSpecificLayerImpl(Vt.className,pr.className,ef);var tf=ef,nf=function(e){function t(e){var i;Object(d["a"])(this,t);var n=e.commonLayer.cesiumTilesetLayerOptions,r={className:t.className,name:e.commonLayer.name};return i=y(this,b(t).call(this,Object.assign({},r,n))),i.commonLayer=e.commonLayer,i.style=i.commonLayer.style,i}return w(t,e),Object(m["a"])(t,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.CesiumTilesetLayerImpl"}}]),Object(m["a"])(t,[{key:"initialize",value:function(){Se(b(t.prototype),"initialize",this).call(this),this.cesium3DTileset[At.vcsLayerNameSymbol]=this.commonLayer.name,this.cesium3DTileset[Or]=!0}},{key:"show",value:function(){Se(b(t.prototype),"show",this).call(this),this.active=!0}},{key:"hide",value:function(){Se(b(t.prototype),"hide",this).call(this),this.active=!1}},{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:Q.getInstance()._currentItemHighlightColor}},{key:"objectClickedHandler",value:function(e,i,n){return!!this.commonLayer.allowPicking&&Se(b(t.prototype),"objectClickedHandler",this).call(this,e,i,n||this.commonLayer)}},{key:"getGenericFeatureFromClickedObject",value:function(e){var i=Se(b(t.prototype),"getGenericFeatureFromClickedObject",this).call(this,e);return i.layerName=this.commonLayer.name,i.layerClass=this.commonLayer.className,i}}]),t}(zn);Ee.registerSpecificLayerImpl(Vt.className,Er.className,nf);var rf=nf,af=function(e){function t(e){var i;return Object(d["a"])(this,t),i=y(this,b(t).call(this,e)),i.cesiumLayer=null,i}return w(t,e),Object(m["a"])(t,[{key:"show",value:function(){var e=this.framework.getActiveMap();if(e&&e instanceof Vt&&e.isInitialized()&&this.cesiumLayer){Se(b(t.prototype),"show",this).call(this);var i=e.getScene().imageryLayers;if(!i.contains(this.cesiumLayer)){var n=this.commonLayer.index;this.cesiumLayer.VCMLayerIndex=n;for(var r=i.length,a=0;ao)&&n1||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;ao||r1&&(i/=this.commonLayer.numberOfLevelZeroTilesX),"geographic"===this.commonLayer.tilingSchema&&(i=ol.extent.getWidth(t)/512);for(var n=this.commonLayer.maxLevel+1,r=new Array(n),s=new Array(n),o=0;o1||this.commonLayer.numberOfLevelZeroTilesY>1){for(var u=[],h=this.commonLayer.numberOfLevelZeroTilesX,d=this.commonLayer.numberOfLevelZeroTilesY,m=0;m<=n;m++)u.push([h,-d]),h*=2,d*=2;c.sizes=u}var f=new ol.tilegrid.WMTS(c),y=this.commonLayer.getUrl().indexOf("{")>=0?"REST":"KVP",g={tileGrid:f,requestEncoding:y,layer:this.commonLayer.layer,style:this.commonLayer.style,format:this.commonLayer.format,matrixSet:this.commonLayer.tileMatrixSetID,url:this.commonLayer.getUrl()};for(var v in a["a"].hasSameOrigin(this.commonLayer.getUrl())||(g.crossOrigin="anonymous"),"geographic"===this.commonLayer.tilingSchema&&(g.projection="EPSG:4326"),this.commonLayer.olOptions)g[v]=this.commonLayer.olOptions[v];return new ol.layer.Tile({opacity:this.commonLayer.opacity,source:new ol.source.WMTS(g)})}},{key:"updateOpacity",value:function(){this.initialized&&this.olLayer.setOpacity(this.commonLayer.opacity)}}]),t}(Cf);Ee.registerSpecificLayerImpl(Hi.className,Hr.className,Vf);var Bf=Vf;function Uf(e,t){var i=ne.getInstance(),n=i.getActiveMap(),r={};r.startingmap=n.name,r.lang=i.getLocale(),r.layerToActivate=[],r.layerToDeactivate=[],i.getLayers().filter(function(e){return e[ne.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.getProjection().epsg.match(/\d+/)[0]),e.addQueryParams(r);var a=i.getSelectBehavior();return a&&a.getLink(e),Pe.getInstance().getLink(e),n.getViewPoint(!0,!0).then(function(t){return t.getLink(e),e.toString()}).catch(function(){return e.toString()})}function Wf(e){var t=ne.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;sthis.clock.endTime){if(!this.values.repeat)return void this.stop();this.clock.currentTime=this.clock.currentTime-this.clock.endTime}else if(this.clock.currentTimethis.clock.endTime)Jf.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=ne.getInstance().getActiveMap();if(t instanceof Vt){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 Jf.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===Gs.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 Zf(){return qf||(qf=new Kf),qf}var Qf=Y.getLogger("vcs.vcm.util.flight.FlightVisualizer"),Xf=null,$f=new Cesium.Cartographic,ey=function(){function e(){var t=this;Object(d["a"])(this,e),this.extent=ol.extent.createEmpty(),this.flightLayer=new _n({projection:R.createGeographicProjection(),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=ne.getInstance().subscribe("MAP_ACTIVATED",function(){t.hide()})}return Object(m["a"])(e,[{key:"_createFeatures",value:function(){var e=this;this.flightLayer.removeAllFeatures();var t=ne.getInstance().getMapByType(Vt.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(q.getInstance().getSingleMessage("i18n_viewpointeditor_number")," ").concat(n+1),duration:t.duration})});if(this.activeInstance.isValid()){var r=[],a=Zf();if(a.values.activeInstance===this.activeInstance){if(this.activeInstance.interpolation===Gs.SPLINE){for(var s=function(e){Cesium.Cartographic.fromCartesian(a.destinationSpline.evaluate(e),null,$f),r.push([Cesium.Math.toDegrees($f.longitude),Cesium.Math.toDegrees($f.latitude),$f.height])},o=a.clock.endTime,l=o/.2>500?o/500:.2,c=0;c