From c72783c65bb7216970b28f7ef109c72ef1c23efe Mon Sep 17 00:00:00 2001 From: xlcrr Date: Sat, 14 Aug 2021 20:59:18 +0100 Subject: [PATCH 1/8] public profile, user_settings --- app/Http/Controllers/HomeController.php | 7 +- .../User/Settings/PublicProfileController.php | 43 + app/Listeners/AddTags/UpdateUser.php | 3 +- app/Models/User/User.php | 11 +- app/Models/User/UserSettings.php | 32 +- ...9_13_114634_create_user_settings_table.php | 45 - ...8_14_171118_create_user_settings_table.php | 43 + public/css/openlittermap.css | 8 + public/js/app.js | 204727 ++++++++++++++- public/mix-manifest.json | 4 +- .../PublicProfile/SocialMediaIntegration.vue | 172 + resources/js/langs/de/settings/common.json | 3 +- resources/js/langs/en/settings/common.json | 3 +- resources/js/langs/es/settings/common.json | 3 +- resources/js/langs/nl/settings/common.json | 5 +- resources/js/langs/pl/settings/common.json | 3 +- resources/js/routes.js | 24 +- resources/js/store/modules/user/actions.js | 36 +- resources/js/store/modules/user/init.js | 1 + resources/js/store/modules/user/mutations.js | 16 + resources/js/views/RootContainer.vue | 17 +- resources/js/views/Settings.vue | 23 +- .../views/{settings => Settings}/Account.vue | 0 .../views/{settings => Settings}/Details.vue | 0 .../views/{settings => Settings}/Emails.vue | 0 .../{settings => Settings}/GlobalFlag.vue | 0 .../{settings => Settings}/Littercoin.vue | 0 .../views/{settings => Settings}/Password.vue | 0 .../views/{settings => Settings}/Payments.vue | 0 .../views/{settings => Settings}/Presence.vue | 0 .../views/{settings => Settings}/Privacy.vue | 0 resources/js/views/Settings/PublicProfile.vue | 152 + routes/web.php | 16 +- 33 files changed, 205286 insertions(+), 111 deletions(-) create mode 100644 app/Http/Controllers/User/Settings/PublicProfileController.php delete mode 100644 database/migrations/2020_09_13_114634_create_user_settings_table.php create mode 100644 database/migrations/2021_08_14_171118_create_user_settings_table.php create mode 100644 resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue rename resources/js/views/{settings => Settings}/Account.vue (100%) rename resources/js/views/{settings => Settings}/Details.vue (100%) rename resources/js/views/{settings => Settings}/Emails.vue (100%) rename resources/js/views/{settings => Settings}/GlobalFlag.vue (100%) rename resources/js/views/{settings => Settings}/Littercoin.vue (100%) rename resources/js/views/{settings => Settings}/Password.vue (100%) rename resources/js/views/{settings => Settings}/Payments.vue (100%) rename resources/js/views/{settings => Settings}/Presence.vue (100%) rename resources/js/views/{settings => Settings}/Privacy.vue (100%) create mode 100644 resources/js/views/Settings/PublicProfile.vue diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 7e059374c..2c5121da2 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -2,7 +2,6 @@ namespace App\Http\Controllers; -// use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class HomeController extends Controller @@ -18,15 +17,19 @@ public function index () $auth = Auth::check(); $user = null; + if ($auth) { $user = Auth::user(); + + // Load this data $user->roles; + $user->settings; } // We set this to true when user verifies their email $verified = false; - // or when a user unsubscribes from emails + // We set this to true when a user unsubscribes from communication $unsub = false; return view('root', compact('auth', 'user', 'verified', 'unsub')); diff --git a/app/Http/Controllers/User/Settings/PublicProfileController.php b/app/Http/Controllers/User/Settings/PublicProfileController.php new file mode 100644 index 000000000..ebbf5d33b --- /dev/null +++ b/app/Http/Controllers/User/Settings/PublicProfileController.php @@ -0,0 +1,43 @@ + $user->id]); + + $settings->show_public_profile = ! $settings->show_public_profile; + $settings->save(); + + return [ + 'success' => true, + 'settings' => $settings + ]; + } + catch (\Exception $e) + { + \Log::info(['PublicProfileController@toggle', $e->getMessage()]); + + return ['success' => false]; + } + } +} diff --git a/app/Listeners/AddTags/UpdateUser.php b/app/Listeners/AddTags/UpdateUser.php index c8156495c..2039d3b8d 100644 --- a/app/Listeners/AddTags/UpdateUser.php +++ b/app/Listeners/AddTags/UpdateUser.php @@ -27,7 +27,8 @@ public function handle (TagsVerifiedByAdmin $event) if ($user->count_correctly_verified >= 100) { - $user->littercoin_allowance += 1; + // $user->littercoin_allowance += 1; + $user->littercoin_owed += 1; $user->count_correctly_verified = 0; event (new LittercoinMined($user->id, '100-images-verified')); diff --git a/app/Models/User/User.php b/app/Models/User/User.php index 763e216ca..9fdda01c1 100644 --- a/app/Models/User/User.php +++ b/app/Models/User/User.php @@ -87,7 +87,8 @@ public static function boot () 'previous_tags', 'remaining_teams', 'photos_per_month', - 'bbox_verification_count' + 'bbox_verification_count', + 'show_public_profile' ]; /** @@ -199,6 +200,14 @@ public function setPasswordAttribute ($password) $this->attributes['password'] = bcrypt($password); } + /** + * The users settings if they exist + */ + public function settings () + { + return $this->belongsTo('App\Models\User\UserSettings'); + } + /** * Has Many Through relationships */ diff --git a/app/Models/User/UserSettings.php b/app/Models/User/UserSettings.php index c3d91af60..8f9618f71 100644 --- a/app/Models/User/UserSettings.php +++ b/app/Models/User/UserSettings.php @@ -8,16 +8,26 @@ class UserSettings extends Model { protected $fillable = [ 'user_id', - 'picked_up', - 'global_flag', - 'previous_tags', - 'litter_picked_up', - 'show_name_maps', - 'show_username_maps', - 'show_name_leaderboard', - 'show_username_leaderboard', - 'show_name_createdby', - 'show_username_createdby', - 'email_sub' + + 'show_public_profile', + 'public_profile_download_my_data', + 'public_profile_show_map', + 'twitter', + 'instagram', + 'link_username' + +// We need to move these columns here from users table +// Some of the column names could be improved +// 'picked_up', +// 'global_flag', +// 'previous_tags', +// 'litter_picked_up', +// 'show_name_maps', +// 'show_username_maps', +// 'show_name_leaderboard', +// 'show_username_leaderboard', +// 'show_name_createdby', +// 'show_username_createdby', +// 'email_sub' ]; } diff --git a/database/migrations/2020_09_13_114634_create_user_settings_table.php b/database/migrations/2020_09_13_114634_create_user_settings_table.php deleted file mode 100644 index 8b6a197a2..000000000 --- a/database/migrations/2020_09_13_114634_create_user_settings_table.php +++ /dev/null @@ -1,45 +0,0 @@ -id(); - // $table->integer('user_id'); - // $table->foreign('user_id')->references('id')->on('users'); - - // $table->boolean('picked_up')->default(0); - // $table->string('global_flag')->nullable(); - // $table->boolean('previous_tags')->default(0); - - // $table->boolean('litter_picked_up')->default(0); - // $table->boolean('show_name_maps')->default(0); - // $table->boolean('show_username_maps')->default(0); - // $table->boolean('show_name_leaderboard')->default(0); - // $table->boolean('show_username_leaderboard')->default(0); - // $table->boolean('show_name_createdby')->default(0); - // $table->boolean('show_username_createdby')->default(0); - // $table->timestamps(); - // }); - // } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('user_settings'); - } -} diff --git a/database/migrations/2021_08_14_171118_create_user_settings_table.php b/database/migrations/2021_08_14_171118_create_user_settings_table.php new file mode 100644 index 000000000..9c4f7b484 --- /dev/null +++ b/database/migrations/2021_08_14_171118_create_user_settings_table.php @@ -0,0 +1,43 @@ +id(); + $table->unsignedInteger('user_id'); + $table->foreign('user_id')->references('id')->on('users'); + + $table->boolean('show_public_profile')->default(false); + $table->boolean('public_profile_download_my_data')->default(false); + $table->boolean('public_profile_show_map')->default(false); + + $table->string('twitter')->nullable()->default(null); + $table->string('instagram')->nullable()->default(null); + + $table->string('link_username')->nullable()->default(null); + + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('user_settings'); + } +} diff --git a/public/css/openlittermap.css b/public/css/openlittermap.css index c09213f1f..1e6c6d628 100644 --- a/public/css/openlittermap.css +++ b/public/css/openlittermap.css @@ -283,6 +283,14 @@ html { color: #363636 !important; } +.w-3 { + width: 3em; +} + +.w-15 { + width: 15em; +} + .w10 { width: 10em; } diff --git a/public/js/app.js b/public/js/app.js index 6c16461d5..f9ec7a4b6 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,2 +1,204725 @@ -/*! For license information please see app.js.LICENSE.txt */ -!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)}({"+0tX":function(t){t.exports=JSON.parse('{"olm-teams":"OpenLitterMap Teams","dashboard":"Dashboard","join-a-team":"Sluit je aan bij een Team","create-a-team":"Maak een Team aan","your-teams":"Jouw Teams","leaderboard":"Team Scoreboard","settings":"Instellingen","teams-dashboard":"Teams Dashboard","photos-uploaded":"Foto\'s ge-upload","litter-tagged":"Afval voorzien van kenmerken","members-uploaded":"Teamleden hebben geupload","all-teams":"Alle Teams","times":{"today":"Vandaag","week":"Deze week","month":"Deze maand","year":"Dit jaar","all":"Alle tijden","created_at":"Geupload op","datetime":"Genomen op"}}')},"+4ci":function(t){t.exports=JSON.parse('{"admin":"Admin","admin-verify-photos":"ADMIN - Verify Photos","admin-horizon":"ADMIN - Horizon","admin-verify-boxes":"ADMIN - Verify Boxes","about":"Acerca","global-map":"Mapa Global","world-cup":"Copa Mundial","upload":"Subir","more":"Más","tag-litter":"Etiquetar Basura","profile":"Perfil","settings":"Ajustes","bounding-boxes":"Bounding Boxes","logout":"Cerrar Sesión","login":"Iniciar Sesión","signup":"Registrarse","teams":"Equipos"}')},"+7PB":function(t){t.exports=JSON.parse('{"plastic-pollution-out-of-control":"Plastic pollution is out of control","help-us":"Help us create the world\'s most advanced open database on litter, brands & plastic pollution","why-collect-data":"Why should we collect data","visibility":"Visibility","our-maps-reveal-litter-normality":"For many people, litter has become normal and invisible. Maps are powerful because they communicate what we cannot usually see","science":"Problem solving","our-data-open-source":"Our data is open and accessible. Everyone has equal, open and unlimited rights to download all of our data and use it for any purpose","community":"Community","must-work-together":"We need your help to create a paradigm shift in how we understand and respond to pollution","how-does-it-work":"How does it work","take-a-photo":"Take a photo","device-captures-info":"Your device can capture valuable information about the location, time, object, material and brand.","tag-the-litter":"Tag the litter","tag-litter-you-see":"Just tag what litter you see in the photo. You can tag if the litter has been picked up or if it\'s still there. You can upload your photos anytime","share-results":"Share your results","share":"Share the maps or download our data. Let\'s show everyone how badly polluted the world really is","verified":"Your email has been confirmed! You can now log in.","close":"Close"}')},"+7ij":function(t){t.exports=JSON.parse('{"finance":"Financier de ontwikkeling van OpenLitterMap","help":"We hebben jouw hulp nodig.","support":"Steun Open Data over Plastic Pollution","help-costs":"Help ons onze kosten te dekken","help-hire":"Huur ontwikkelaars, ontwerpers en afgestudeerden in","help-produce":"Maak videos","help-write":"Schrijf documenten","help-outreach":"Conferenties & outreach","help-incentivize":"Stimulier data verzamelen door Littercoin","more-soon":"Meer spannende updates volgen snel","click-to-support":"Klik hier om te helpen"}')},"+LEQ":function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i);function o(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var a={name:"Privacy",data:function(){return{btn:"button is-medium is-info",processing:!1}},computed:{button:function(){return this.processing?this.btn+" is-loading":this.btn},createdby_name:{get:function(){return this.user.show_name_createdby},set:function(t){this.$store.commit("privacy",{column:"show_name_createdby",v:t})}},createdby_username:{get:function(){return this.user.show_username_createdby},set:function(t){this.$store.commit("privacy",{column:"show_username_createdby",v:t})}},leaderboard_name:{get:function(){return this.user.show_name},set:function(t){this.$store.commit("privacy",{column:"show_name",v:t})}},leaderboard_username:{get:function(){return this.user.show_username},set:function(t){this.$store.commit("privacy",{column:"show_username",v:t})}},maps_name:{get:function(){return this.user.show_name_maps},set:function(t){this.$store.commit("privacy",{column:"show_name_maps",v:t})}},maps_username:{get:function(){return this.user.show_username_maps},set:function(t){this.$store.commit("privacy",{column:"show_username_maps",v:t})}},user:function(){return this.$store.state.user.user}},methods:{submit:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.processing=!0,t.next=3,e.$store.dispatch("SAVE_PRIVACY_SETTINGS");case 3:e.processing=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,l,"next",t)}function l(t){o(a,i,r,s,l,"throw",t)}s(void 0)}))})()}}},s=n("KHd+"),l=Object(s.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[n("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.privacy.change-privacy")))]),t._v(" "),n("hr"),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column one-third is-offset-1"},[n("div",{staticClass:"field"},[n("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.privacy.maps"))+":")]),t._v(" "),n("label",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.maps_name,expression:"maps_name"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.maps_name)?t._i(t.maps_name,null)>-1:t.maps_name},on:{change:function(e){var n=t.maps_name,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.maps_name=n.concat([null])):o>-1&&(t.maps_name=n.slice(0,o).concat(n.slice(o+1)))}else t.maps_name=r}}}),t._v("\n\t\t\t\t \t"+t._s(t.$t("settings.privacy.credit-name"))+"\n\t\t\t\t ")]),t._v(" "),n("br"),t._v(" "),n("label",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.maps_username,expression:"maps_username"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.maps_username)?t._i(t.maps_username,null)>-1:t.maps_username},on:{change:function(e){var n=t.maps_username,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.maps_username=n.concat([null])):o>-1&&(t.maps_username=n.slice(0,o).concat(n.slice(o+1)))}else t.maps_username=r}}}),t._v("\n\t\t\t\t \t"+t._s(t.$t("settings.privacy.credit-username"))+"\n\t\t\t\t ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("h1",{directives:[{name:"show",rawName:"v-show",value:t.maps_name,expression:"maps_name"}],staticClass:"title is-6",staticStyle:{"margin-bottom":"5px"}},[n("strong",{staticStyle:{color:"green"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("settings.privacy.name-imgs-yes"))+".\n\t\t\t\t\t\t")])]),t._v(" "),n("h1",{directives:[{name:"show",rawName:"v-show",value:t.maps_username,expression:"maps_username"}],staticClass:"title is-6"},[n("strong",{staticStyle:{color:"green"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("settings.privacy.username-imgs-yes"))+".\n\t\t\t\t\t\t")])]),t._v(" "),n("br",{directives:[{name:"show",rawName:"v-show",value:t.maps_name||t.maps_username,expression:"maps_name || maps_username"}]}),t._v(" "),n("h1",{directives:[{name:"show",rawName:"v-show",value:!t.maps_name&&!t.maps_username,expression:"! maps_name && ! maps_username"}],staticClass:"title is-6"},[n("strong",{staticStyle:{color:"red"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("settings.privacy.name-username-map-no"))+".\n\t\t\t\t\t\t")])]),t._v(" "),n("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.privacy.leaderboards"))+":")]),t._v(" "),n("label",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.leaderboard_name,expression:"leaderboard_name"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.leaderboard_name)?t._i(t.leaderboard_name,null)>-1:t.leaderboard_name},on:{change:function(e){var n=t.leaderboard_name,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.leaderboard_name=n.concat([null])):o>-1&&(t.leaderboard_name=n.slice(0,o).concat(n.slice(o+1)))}else t.leaderboard_name=r}}}),t._v("\n\t\t\t\t "+t._s(t.$t("settings.privacy.credit-my-name"))+"\n\t\t\t\t ")]),t._v(" "),n("br"),t._v(" "),n("label",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.leaderboard_username,expression:"leaderboard_username"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.leaderboard_username)?t._i(t.leaderboard_username,null)>-1:t.leaderboard_username},on:{change:function(e){var n=t.leaderboard_username,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.leaderboard_username=n.concat([null])):o>-1&&(t.leaderboard_username=n.slice(0,o).concat(n.slice(o+1)))}else t.leaderboard_username=r}}}),t._v("\n\t\t\t\t \t"+t._s(t.$t("settings.privacy.credit-my-username"))+"\n\t\t\t\t ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("h1",{directives:[{name:"show",rawName:"v-show",value:t.leaderboard_name,expression:"leaderboard_name"}],staticClass:"title is-6",staticStyle:{"margin-bottom":"5px"}},[n("strong",{staticStyle:{color:"green"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("settings.privacy.name-leaderboards-yes"))+".\n\t\t\t\t\t\t")])]),t._v(" "),n("h1",{directives:[{name:"show",rawName:"v-show",value:t.leaderboard_username,expression:"leaderboard_username"}],staticClass:"title is-6"},[n("strong",{staticStyle:{color:"green"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("settings.privacy.username-leaderboards-yes"))+".\n\t\t\t\t\t\t")])]),t._v(" "),n("br",{directives:[{name:"show",rawName:"v-show",value:t.leaderboard_name||t.leaderboard_username,expression:"leaderboard_name || leaderboard_username"}]}),t._v(" "),n("h1",{directives:[{name:"show",rawName:"v-show",value:!t.leaderboard_name&&!t.leaderboard_username,expression:"! leaderboard_name && ! leaderboard_username"}],staticClass:"title is-6"},[n("strong",{staticStyle:{color:"red"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("settings.privacy.name-username-leaderboards-no"))+".\n\t\t\t\t\t\t")])]),t._v(" "),n("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.privacy.created-by"))+":")]),t._v(" "),n("label",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.createdby_name,expression:"createdby_name"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.createdby_name)?t._i(t.createdby_name,null)>-1:t.createdby_name},on:{change:function(e){var n=t.createdby_name,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.createdby_name=n.concat([null])):o>-1&&(t.createdby_name=n.slice(0,o).concat(n.slice(o+1)))}else t.createdby_name=r}}}),t._v("\n\t\t\t\t \t"+t._s(t.$t("settings.privacy.name-locations-yes"))+"\n\t\t\t\t ")]),t._v(" "),n("br"),t._v(" "),n("label",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.createdby_username,expression:"createdby_username"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.createdby_username)?t._i(t.createdby_username,null)>-1:t.createdby_username},on:{change:function(e){var n=t.createdby_username,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.createdby_username=n.concat([null])):o>-1&&(t.createdby_username=n.slice(0,o).concat(n.slice(o+1)))}else t.createdby_username=r}}}),t._v("\n\t\t\t\t \t"+t._s(t.$t("settings.privacy.username-locations-yes"))+"\n\t\t\t\t ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("h1",{directives:[{name:"show",rawName:"v-show",value:t.createdby_name,expression:"createdby_name"}],staticClass:"title is-6",staticStyle:{"margin-bottom":"5px"}},[n("strong",{staticStyle:{color:"green"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("settings.privacy.name-username-locations-yes"))+"\n\t\t\t\t\t\t")])]),t._v(" "),n("h1",{directives:[{name:"show",rawName:"v-show",value:t.createdby_username,expression:"createdby_username"}],staticClass:"title is-6",staticStyle:{"margin-bottom":"5px"}},[n("strong",{staticStyle:{color:"green"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("settings.privacy.name-username-locations-yes"))+".\n\t\t\t\t\t\t")])]),t._v(" "),n("br",{directives:[{name:"show",rawName:"v-show",value:t.createdby_name||t.createdby_username,expression:"createdby_name || createdby_username"}]}),t._v(" "),n("h1",{directives:[{name:"show",rawName:"v-show",value:!t.createdby_name&&!t.createdby_username,expression:"! createdby_name && ! createdby_username"}],staticClass:"title is-6"},[n("strong",{staticStyle:{color:"red"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("settings.privacy.name-username-locations-yes"))+".\n\t\t\t\t\t\t")])])]),t._v(" "),n("br"),t._v(" "),n("button",{class:t.button,attrs:{disabled:t.processing},on:{click:t.submit}},[t._v(t._s(t.$t("settings.privacy.update")))])])])])}),[],!1,null,null,null);e.default=l.exports},"+Vbd":function(t,e,n){"use strict";n.r(e);var i,r,o,a,s,l,u,c,d,h,f,p,m,g,v,y=n("o0o1"),_=n.n(y),b=n("kGIl"),w=n.n(b),x=(n("5A0h"),n("4R65")),k=n.n(x),C=n("Kuz/"),L=n("wd/R"),S=n.n(L),M=n("gaDp"),T=n("ZoWG");n("YFMt");function E(t){return t>60?"#800026":t>20?"#BD0026":t>10?"#E31A1C":t>4?"#FD8D3C":t>2?"#FED976":"#FFEDA0"}function O(t){return{weight:2,opacity:1,color:"white",dashArray:"3",fillOpacity:.7,fillColor:E(t.properties.total)}}function P(t,e){e.on({mouseover:D,mouseout:A,click:I})}function D(t){var e=t.target;e.setStyle({weight:5,color:"#666",dashArray:"",fillOpacity:.7}),k.a.Browser.ie||k.a.Browser.opera||k.a.Browser.edge||e.bringToFront(),r.update(e.feature.properties)}function A(t){o.resetStyle(t.target),r.update()}function I(t){}var N={name:"CityMap",mounted:function(){i=k.a.map(this.$refs.map,{center:this.$store.state.citymap.center,zoom:this.$store.state.citymap.zoom,scrollWheelZoom:!1,smoothWheelZoom:!0,smoothSensitivity:1});var t=(new Date).getFullYear();if(k.a.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'Map data © OpenStreetMap & Contributors',maxZoom:20,minZoom:1}).addTo(i),i.attributionControl.addAttribution("Litter data © OpenLitterMap & Contributors "+t),this.geojson){o=k.a.geoJson(this.aggregate,{style:O,onEachFeature:P,filter:function(t,e){if(t.properties.values.length>0){for(var n=0,i=0;i0}}).addTo(i),(r=k.a.control()).onAdd=function(t){return this._div=k.a.DomUtil.create("div","info"),this.update(),this._div};var e=this.$t("locations.cityVueMap.meter-hex-grids"),n=this.$t("locations.cityVueMap.hover-to-count"),a=this.$t("locations.cityVueMap.pieces-of-litter"),s=this.$t("locations.cityVueMap.hover-polygons-to-count"),l=this.hex;r.update=function(t){this._div.innerHTML="

"+l+" ".concat(e,"

")+(t?"".concat(n,"
")+t.total+" ".concat(a):"".concat(s,"."))},r.addTo(i);var u=k.a.control({position:"bottomleft"});u.onAdd=function(t){for(var e,n,i=k.a.DomUtil.create("div","info legend"),r=[1,3,6,10,20],o=[],a=0;a '+e+(n?"–"+n:"+"));return i.innerHTML=o.join("
"),i},u.addTo(i)}this.addDataToLayerGroups()},computed:{aggregate:function(){var t=C.bbox(this.geojson),e=C.hexGrid(t,this.hex,"meters");return e=JSON.parse(JSON.stringify(e)),C.collect(e,this.geojson,"total_litter","values")},center:function(){return this.$store.state.citymap.center},geojson:function(){return this.$store.state.citymap.data},hex:function(){return this.$store.state.citymap.hex},zoom:function(){return this.$store.state.citymap.zoom}},methods:{addDataToLayerGroups:function(){var t=this;a=new k.a.LayerGroup,s=new k.a.LayerGroup,l=new k.a.LayerGroup,u=new k.a.LayerGroup,c=(new k.a.LayerGroup).addTo(i),d=new k.a.LayerGroup,h=new k.a.LayerGroup,f=new k.a.LayerGroup,p=new k.a.LayerGroup,m=new k.a.LayerGroup,g=new k.a.LayerGroup,v=new k.a.LayerGroup;var e={smoking:a,food:s,coffee:l,alcohol:u,softdrinks:c,sanitary:d,other:h,coastal:f,brands:p,dogshit:m,industrial:v,dumping:g};this.geojson.features.map((function(n){var i="",r="";n.properties.hasOwnProperty("name")&&i&&(i=n.properties.name),n.properties.hasOwnProperty("username")&&r&&(r=" @"+n.properties.username),""===i&&""===r&&(i="Anonymous"),M.a.map((function(o){if(n.properties[o]){var a="";T.a[o].map((function(s){n.properties[o][s]&&(a+=t.$t("litter."+[o]+"."+[s])+": "+n.properties[o][s]+"
",k.a.marker([n.properties.lat,n.properties.lon]).addTo(e[o]).bindPopup(a+'

'+t.$t("locations.cityVueMap.taken-on")+" "+S()(n.properties.datetime).format("LLL")+" "+t.$t("locations.cityVueMap.with-a")+" "+n.properties.model+"

"+t.$t("locations.cityVueMap.by")+": "+i+r+"

"))}))}}))}));var n={Alcohol:u,Brands:p,Coastal:f,Coffee:l,Dumping:g,Food:s,Industrial:v,Other:h,PetSurprise:m,Sanitary:d,Smoking:a,SoftDrinks:c};k.a.control.layers(null,n).addTo(i)}}},R=(n("tB/O"),n("KHd+")),j=Object(R.a)(N,(function(){var t=this.$createElement;return(this._self._c||t)("div",{ref:"map",attrs:{id:"hexmap"}})}),[],!1,null,"6a8ffb7c",null).exports;function z(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var Y={name:"CityMapContainer",components:{Loading:w.a,CityMap:j},data:function(){return{loading:!0}},created:function(){var t,e=this;return(t=_.a.mark((function t(){var n,i,r,o;return _.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,n=window.location.href.split("/"),i=null,r=null,o=null,11===n.length&&(i=n[8],r=n[9],o=n[10]),t.next=8,e.$store.dispatch("GET_CITY_DATA",{city:n[6],min:i,max:r,hex:o});case 8:e.loading=!1;case 9:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){z(o,i,r,a,s,"next",t)}function s(t){z(o,i,r,a,s,"throw",t)}a(void 0)}))})()}},F=(n("56GE"),Object(R.a)(Y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cmc"},[t.loading?n("loading",{attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(e){t.loading=e}}}):n("CityMap")],1)}),[],!1,null,"5b5ada14",null));e.default=F.exports},"+pLR":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,'.marker-cluster-small {\r\n\tbackground-color: rgba(181, 226, 140, 0.6);\r\n\t}\r\n.marker-cluster-small div {\r\n\tbackground-color: rgba(110, 204, 57, 0.6);\r\n\t}\r\n\r\n.marker-cluster-medium {\r\n\tbackground-color: rgba(241, 211, 87, 0.6);\r\n\t}\r\n.marker-cluster-medium div {\r\n\tbackground-color: rgba(240, 194, 12, 0.6);\r\n\t}\r\n\r\n.marker-cluster-large {\r\n\tbackground-color: rgba(253, 156, 115, 0.6);\r\n\t}\r\n.marker-cluster-large div {\r\n\tbackground-color: rgba(241, 128, 23, 0.6);\r\n\t}\r\n\r\n\t/* IE 6-8 fallback colors */\r\n.leaflet-oldie .marker-cluster-small {\r\n\tbackground-color: rgb(181, 226, 140);\r\n\t}\r\n.leaflet-oldie .marker-cluster-small div {\r\n\tbackground-color: rgb(110, 204, 57);\r\n\t}\r\n\r\n.leaflet-oldie .marker-cluster-medium {\r\n\tbackground-color: rgb(241, 211, 87);\r\n\t}\r\n.leaflet-oldie .marker-cluster-medium div {\r\n\tbackground-color: rgb(240, 194, 12);\r\n\t}\r\n\r\n.leaflet-oldie .marker-cluster-large {\r\n\tbackground-color: rgb(253, 156, 115);\r\n\t}\r\n.leaflet-oldie .marker-cluster-large div {\r\n\tbackground-color: rgb(241, 128, 23);\r\n}\r\n\r\n.marker-cluster {\r\n\tbackground-clip: padding-box;\r\n\tborder-radius: 20px;\r\n\t}\r\n.marker-cluster div {\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tmargin-left: 5px;\r\n\tmargin-top: 5px;\r\n\r\n\ttext-align: center;\r\n\tborder-radius: 15px;\r\n\tfont: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;\r\n\t}\r\n.marker-cluster span {\r\n\tline-height: 30px;\r\n\t}',""])},"+s0g":function(t,e,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},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:i,longMonthsParse:i,shortMonthsParse:i,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"//9w":function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},"/HxI":function(t){t.exports=JSON.parse('{"ready-to-join":"Gotowy do przyłączenia się do rewolucji geoprzestrzennej?","join-subtitle":"Jeśli podoba Ci się nasza praca, OpenLitterMap przyda się twoja pomoc.","free-plan":"Darmowy","free-plan-feature1":"Prześlij 1000 obrazów dziennie.","free-plan-feature2":"Odblokuj odznaki + nagrody.","free-plan-feature3":"Zdobywaj Littercoin.","free-plan-feature4":"Rywalizuj w wielu różnych rankingach.","free-plan-join":"Wchodze w to","startup-plan":"STARTUP","startup-plan-donation":"5 € miesięcznie","startup-plan-feature1":"Sfinansuj rozwój OpenLitterMap.","startup-plan-feature2":"Pomóż nam pokryć nasze koszty.","startup-plan-feature3":"Usiądź wygodnie i ciesz się aktualizacjami.","startup-plan-join":"Wspieram to!","basic-plan":"BASIC","basic-plan-donation":"9,99 € miesięcznie","basic-plan-feature1":"Sfinansuj rozwój OpenLitterMap.","basic-plan-feature2":"Pomóż nam pokryć nasze koszty.","basic-plan-feature3":"Usiądź wygodnie i ciesz się aktualizacjami.","basic-plan-join":"Wspieram to!","advanced-plan":"ADVANCED","advanced-plan-donation":"€20 miesięcznie","advanced-plan-feature1":"Sfinansuj rozwój OpenLitterMap.","advanced-plan-feature2":"Pomóż nam pokryć nasze koszty.","advanced-plan-feature3":"Usiądź wygodnie i ciesz się aktualizacjami.","advanced-plan-join":"Wspieram to!","pro-plan":"PRO","pro-plan-donation":"€30 miesięcznie","pro-plan-feature1":"Sfinansuj rozwój OpenLitterMap.","pro-plan-feature2":"Pomóż nam pokryć nasze koszty.","pro-plan-feature3":"Usiądź wygodnie i ciesz się aktualizacjami.","pro-plan-join":"Wspieram to!"}')},"/X5v":function(t,e,n){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},"/yRl":function(t,e,n){"use strict";var i={name:"Presence",computed:{remaining:function(){return this.$store.state.litter.presence},remainingText:function(){return this.$store.state.litter.presence?this.$t("litter.presence.picked-up-text"):this.$t("litter.presence.still-there-text")},toggle_class:function(){return this.remaining?"button is-danger":"button is-success"}},methods:{toggle:function(){this.$store.commit("togglePresence")}}},r=n("KHd+"),o=Object(r.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"expand-mobile"},[n("strong",{style:{color:t.remaining?"green":"red"}},[t._t("default",[t._v(t._s(t.remainingText))])],2),t._v(" "),n("br"),t._v(" "),n("button",{class:t.toggle_class,on:{click:t.toggle}},[t.remaining?t._t("default",[t._v(t._s(t.$t("litter.presence.still-there")))]):t._t("default",[t._v(t._s(t.$t("litter.presence.picked-up")))])],2)])}),[],!1,null,null,null);e.a=o.exports},0:function(t,e,n){n("bUC5"),t.exports=n("pyCd")},"09JO":function(t){t.exports=JSON.parse('{"plastic-pollution-out-of-control":"La contaminación por plásticos está fuera de control","help-us":"Ayúdanos a crear la base de datos abiertos sobre basura, marcas y contaminación por plásticos más avanzada del mundo","why-collect-data":"¿Por qué deberíamos recolectar estos datos","visibility":"Visibilidad","our-maps-reveal-litter-normality":"Para muchas personas, la basura se ha convertido en algo normal e invisible. Los mapas son poderosos instrumentos porque comunican lo que normalmente no podemos ver","science":"Resolución de problemas","our-data-open-source":"Nuestros datos son abiertos y accesibles. Todo el mundo tiene el mismo derecho, abierto e ilimitado para descargar todos nuestros datos y utilizarlos para cualquier fin","community":"Comunidad","must-work-together":"Necesitamos tu ayuda para crear un cambio de paradigma en la forma de entender y responder a la contaminación","how-does-it-work":"¿Cómo funciona","take-a-photo":"Haz una foto","device-captures-info":"Tu dispositivo móvil puede capturar información valiosa sobre la localización, la hora, el objeto, el material y la marca.","tag-the-litter":"Etiqueta la basura","tag-litter-you-see":"Sólo etiqueta la basura que ves en la foto. Puedes marcar si se ha recogido la basura o si todavía sigue ahí. ¡Puedes subir tus fotos en cualquier momento","share-results":"Comparte tus resultados","share":"Comparte los mapas o descarga nuestros datos. ¡Demostremos a todos cuán contaminado está realmente el mundo","verified":"¡Tu correo electrónico ha sido confirmado! Ahora ya puedes iniciar sesión","close":"Cerrar"}')},"0Ajk":function(t){t.exports=JSON.parse('{"de":{"name":"Alemania","lang":"Aleman"},"en":{"name":"UK","lang":"English"},"es":{"name":"España","lang":"Español"},"fr":{"name":"Francia","lang":"Francés"},"ie":{"name":"Irlanda","lang":"Irlandés"},"it":{"name":"Italia","lang":"Italiano"},"ms":{"name":"Malasia","lang":"Malayo"},"nl":{"name":"Holanda","lang":"Nederlands"},"tk":{"name":"Turquía","lang":"Turco"},"uk":{"name":"UK","lang":"English"},"pl":{"name":"Poland","lang":"Polski"}}')},"0NR4":function(t){t.exports=JSON.parse('{"ready-to-join":"¿Listo para unirte a la revolución geoespacial?","join-subtitle":"Si te gusta nuestro trabajo, OpenLitterMap puede hacer mucho con tu ayuda.","free-plan":"GRATIS","free-plan-feature1":"Sube 1000 imágenes por día.","free-plan-feature2":"Desbloquea Insignias + Recompensas.","free-plan-feature3":"Gana Littercoin.","free-plan-feature4":"Compite en varias tablas de clasificación diferentes","free-plan-join":"¡Estoy dentro!","startup-plan":"STARTUP","startup-plan-donation":"€5 por mes","startup-plan-feature1":"Financia el desarrollo de OpenLitterMap.","startup-plan-feature2":"Ayúdanos a cubrir nuestros costes","startup-plan-feature3":"Siéntate y disfruta de las actualizaciones.","startup-plan-join":"¡Quiero ayudar!","basic-plan":"BÁSICO","basic-plan-donation":"€9.99 por mes","basic-plan-feature1":"Financia el desarrollo de OpenLitterMap.","basic-plan-feature2":"Ayúdanos a cubrir nuestros costes","basic-plan-feature3":"Siéntate y disfruta de las actualizaciones.","basic-plan-join":"¡Quiero ayudar!","advanced-plan":"AVANZADO","advanced-plan-donation":"€20 por mes","advanced-plan-feature1":"Financia el desarrollo de OpenLitterMap.","advanced-plan-feature2":"Ayúdanos a cubrir nuestros costes","advanced-plan-feature3":"Siéntate y disfruta de las actualizaciones.","advanced-plan-join":"¡Quiero ayudar!","pro-plan":"PRO","pro-plan-donation":"€30 por mes","pro-plan-feature1":"Financia el desarrollo de OpenLitterMap.","pro-plan-feature2":"Ayúdanos a cubrir nuestros costes","pro-plan-feature3":"Siéntate y disfruta de las actualizaciones.","pro-plan-join":"¡Esto es asunto serio!"}')},"0TQV":function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("kGIl"),a=n.n(o),s=(n("5A0h"),{name:"BrandsBox",computed:{brands:{get:function(){return this.$store.state.bbox.brands},set:function(t){this.$store.commit("setBrandsBox",t)}},selectedBrandIndex:function(){return this.$store.state.bbox.selectedBrandIndex}},methods:{brandClass:function(t){return this.selectedBrandIndex===t?"is-brand-card selected":"is-brand-card"},isSelected:function(t){return this.selectedBrandIndex===t?" - selected":""},select:function(t){this.$store.commit("selectBrandBoxIndex",t)}}}),l=(n("LB33"),n("KHd+")),u=Object(l.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fit-content",on:{click:function(t){t.stopPropagation()}}},[n("p",{directives:[{name:"show",rawName:"v-show",value:t.brands.length>0,expression:"brands.length > 0"}]},[t._v("Select a brand to add to a box")]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:null!==t.selectedBrandIndex,expression:"selectedBrandIndex !== null"}],staticClass:"mb1"},[t._v("When a box is selected, click a box to add the brand")]),t._v(" "),t._l(t.brands,(function(e,i){return n("div",{key:e+i,class:t.brandClass(i),on:{mousedown:function(e){return t.select(i)}}},[t._v(t._s(e)+" "+t._s(t.isSelected(i)))])}))],2)}),[],!1,null,"6090c5f2",null).exports,c={name:"Boxes",components:{BrandsBox:u},computed:{boxes:function(){return this.$store.state.bbox.boxes},boxHidden:function(){return this.$store.state.bbox.boxes.find((function(t){return t.hidden}))},manyBoxes:function(){return this.$store.state.bbox.boxes.length>1}},methods:{activateAndCheckBox:function(t){this.$store.commit("activateBox",t),null!==this.$store.state.bbox.selectedBrandIndex&&this.$store.commit("addSelectedBrandToBox",t)},boxClass:function(t){return t?"is-box is-active":"is-box"},duplicate:function(t){this.$store.commit("duplicateBox",t)},getCategories:function(t){var e=[];return Object.entries(t).map((function(t){Object.keys(t[1]).length>0&&e.push({category:t[0],tags:t[1]})})),e},getCategory:function(t){return this.$i18n.t("litter.categories."+t)},getTags:function(t,e){return this.$i18n.t("litter."+t+"."+e)+": 1"},hideInactive:function(){this.$store.commit("toggleHiddenBoxes")},removeTag:function(t,e){this.$store.commit("removeBboxTag",{category:t,tag_key:e})},rotate:function(t){this.$store.commit("rotateBox",t)},showAll:function(){this.$store.commit("showAllBoxes")},toggleLabel:function(t){this.$store.commit("toggleBoxLabel",t)}}},d=(n("nvJ6"),Object(l.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"column is-one-third pl3 pt7"},[n("BrandsBox"),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.manyBoxes,expression:"manyBoxes"}],staticClass:"button is-small is-primary mb1",on:{click:function(e){return e.stopPropagation(),t.hideInactive(e)}}},[t._v("Hide boxes")]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.boxHidden,expression:"boxHidden"}],staticClass:"button is-small is-info mb1",on:{click:t.showAll}},[t._v("Show boxes")]),t._v(" "),t._l(t.boxes,(function(e,i){return n("div",{key:e.id,class:t.boxClass(e.active),on:{click:function(n){return n.stopPropagation(),t.activateAndCheckBox(e.id)}}},[n("p",{staticClass:"ma"},[t._v("Box: "),n("span",{staticClass:"is-bold"},[t._v(t._s(e.id))])]),t._v(" "),n("button",{staticClass:"button is-small duplicate-box",attrs:{disabled:""},on:{click:function(n){return t.duplicate(e.id)}}},[t._v("Todo - Duplicate Box")]),t._v(" "),n("button",{staticClass:"button is-small toggle-box",on:{click:function(n){return t.toggleLabel(e.id)}}},[t._v("Toggle Label")]),t._v(" "),n("button",{staticClass:"button is-small is-dark rotate-box",on:{click:function(n){return t.rotate(e.id)}}},[t._v("Rotate")]),t._v(" "),n("p",[t._v("Left: "+t._s(e.left))]),t._v(" "),n("p",[t._v("Top: "+t._s(e.top))]),t._v(" "),n("p",[t._v("Width: "+t._s(e.width))]),t._v(" "),n("p",{staticClass:"mb1"},[t._v("Height: "+t._s(e.height))]),t._v(" "),n("div",{staticClass:"container"},[n("div",{staticClass:"box-categories"},[n("span",{staticClass:"box-category"},[t._v(t._s(t.getCategory(e.category)))]),t._v(" "),n("span",{staticClass:"tag is-medium is-info box-label",domProps:{innerHTML:t._s(t.getTags(e.category,e.tag))},on:{click:function(n){return t.removeTag(e.category,e.tag)}}}),t._v(" "),e.brand?n("div",[n("p",{staticClass:"box-category"},[t._v("Brand")]),t._v(" "),n("span",{staticClass:"tag is-medium is-info box-label w100",domProps:{innerHTML:t._s(t.getTags("brands",e.brand))},on:{click:function(n){return t.removeTag("brands",e.brand)}}})]):t._e()])])])}))],2)}),[],!1,null,"4bd574db",null).exports),h=n("vne5"),f=n("n2md"),p=n("O1jo"),m=n.n(p),g=n("5n2/"),v=n.n(g);function y(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function _(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){y(o,i,r,a,s,"next",t)}function s(t){y(o,i,r,a,s,"throw",t)}a(void 0)}))}}var b={name:"BoundingBox",components:{Loading:a.a,Tags:h.a,AddTags:f.a,Boxes:d,VueDragResize:m.a,BrandsBox:u},directives:{ClickOutside:v.a},created:function(){var t=this;return _(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.innerWidth<1e3&&(t.isMobile=!0,t.stickSize=30),window.location.href.includes("verify")?(t.isVerifying=!0,t.$store.dispatch("GET_NEXT_BOXES_TO_VERIFY")):t.$store.dispatch("GET_NEXT_BBOX");case 2:case"end":return e.stop()}}),e)})))()},data:function(){return{stickSize:6,skip_processing:!1,update_processing:!1,wrong_tags_processing:!1,isMobile:!1,isVerifying:!1}},mounted:function(){var t=this;document.addEventListener("keydown",(function(e){var n=e.key;"ArrowUp"===n?(e.preventDefault(),t.$store.commit("moveBoxUp")):"ArrowRight"===n?(e.preventDefault(),t.$store.commit("moveBoxRight")):"ArrowDown"===n?(e.preventDefault(),t.$store.commit("moveBoxDown")):"ArrowLeft"===n&&(e.preventDefault(),t.$store.commit("moveBoxLeft"))}))},computed:{boxes:function(){return this.$store.state.bbox.boxes},disabled:function(){return this.skip_processing||this.update_processing||this.wrong_tags_processing},getTitle:function(){return this.isVerifying?"Verify boxes for image # ".concat(this.imageId):"Add bounding box to image # ".concat(this.imageId)},image:function(){return"backgroundImage: url("+this.$store.state.admin.filename+")"},imageId:function(){return this.$store.state.admin.id},isAdmin:function(){return this.$store.state.user.admin||this.$store.state.user.helper},littercoinEarned:function(){return this.$store.state.user.user.littercoin_owed+this.$store.state.user.user.littercoin_allowance},littercoinProgress:function(){return this.$store.state.user.user.bbox_verification_count+"%"},loading:function(){return this.$store.state.admin.loading},skipButton:function(){var t="button is-medium is-warning mt1 ";return this.skip_processing?t+" is-loading":t},totalBoxCount:function(){return this.$store.state.bbox.totalBoxCount},usersBoxCount:function(){return this.$store.state.bbox.usersBoxCount},updateButton:function(){var t="button is-medium is-primary mt1 ";return this.update_processing?t+"is-loading":t},wrongTagsButton:function(){var t="button is-medium is-primary mt1 ";return this.wrong_tags_processing?t+"is-loading":t}},methods:{activated:function(t){this.$store.commit("activateBox",t)},boxText:function(t,e,n,i){return e?this.$t("litter.".concat(n,".").concat(i)):t},deactivate:function(){this.$store.commit("deactivateBoxes")},dragging:function(t){this.$store.commit("updateBoxPosition",t)},resize:function(t){this.stickSize=1,this.$store.commit("updateBoxPosition",t)},resizestop:function(){this.stickSize=this.isMobile?30:6},skip:function(){var t=this;return _(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.skip_processing=!0,e.next=3,t.$store.dispatch("BBOX_SKIP_IMAGE",t.isVerifying);case 3:t.skip_processing=!1;case 4:case"end":return e.stop()}}),e)})))()},update:function(){var t=this;return _(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.update_processing=!0,e.next=3,t.$store.dispatch("BBOX_UPDATE_TAGS");case 3:t.update_processing=!1;case 4:case"end":return e.stop()}}),e)})))()},wrongTags:function(){this.wrong_tags_processing=!0,this.$store.dispatch("BBOX_WRONG_TAGS"),this.wrong_tags_processing=!1}}},w=(n("WA2R"),Object(l.a)(b,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"relative h100",on:{click:t.deactivate}},[t.loading?n("loading",{attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(e){t.loading=e}}}):n("div",{staticClass:"columns mt1"},[n("Boxes"),t._v(" "),n("div",{staticClass:"column is-one-third"},[n("h1",{staticClass:"title is-2 has-text-centered"},[t._v(t._s(t.getTitle))]),t._v(" "),n("div",{staticClass:"display-inline-grid",on:{click:function(t){t.stopPropagation()}}},[n("div",{ref:"img",style:t.image,attrs:{id:"image-wrapper"}},t._l(t.boxes,(function(e){return n("VueDragResize",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"! box.hidden"}],key:e.id,attrs:{w:e.width,h:e.height,x:e.left,y:e.top,isActive:e.active,minw:5,minh:5,stickSize:t.stickSize,parentLimitation:!0,z:e.id},on:{clicked:function(n){return t.activated(e.id)},dragging:t.dragging,resizing:t.resize,resizestop:t.resizestop}},[n("p",{staticClass:"box-tag"},[t._v(t._s(t.boxText(e.id,e.showLabel,e.category,e.tag)))])])})),1),t._v(" "),n("add-tags",{directives:[{name:"show",rawName:"v-show",value:t.isAdmin,expression:"isAdmin"}],attrs:{id:t.imageId,annotations:!0,isVerifying:t.isVerifying}})],1)]),t._v(" "),n("div",{staticClass:"column is-2 is-offset-1 has-text-centered"},[n("Tags",{attrs:{admin:t.isAdmin}}),t._v(" "),t.isAdmin?n("button",{class:t.updateButton,attrs:{disabled:t.disabled},on:{click:t.update}},[t._v("Update Tags")]):n("button",{class:t.wrongTagsButton,attrs:{disabled:t.disabled},on:{click:t.wrongTags}},[t._v("Wrong Tags")]),t._v(" "),n("button",{class:t.skipButton,attrs:{disabled:t.disabled},on:{click:t.skip}},[t._v("Cannot use this image")])],1)],1),t._v(" "),n("div",{staticClass:"littercoin-pos"},[n("p",[t._v("Your boxes: "+t._s(this.usersBoxCount))]),t._v(" "),n("p",[t._v("Total Boxes: "+t._s(this.totalBoxCount))]),t._v(" "),n("p",[t._v("Littercoin earned: "+t._s(this.littercoinEarned))]),t._v(" "),n("p",[t._v("Next Littercoin: "+t._s(this.littercoinProgress))])])],1)}),[],!1,null,null,null));e.default=w.exports},"0mo+":function(t,e,n){!function(t){"use strict";var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,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:"[བདུན་ཕྲག་རྗེས་མ], 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(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(t,e){return 12===t&&(t=0),"མཚན་མོ"===e&&t>=4||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,n){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n("wd/R"))},"0tRk":function(t,e,n){!function(t){"use strict";t.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º"})}(n("wd/R"))},"11sb":function(t,e,n){"use strict";var i=n("5H76");n.n(i).a},"15/P":function(t){t.exports=JSON.parse('{"login-btn":"Inloggen","signup-text":"Aanmelden","forgot-password":"Wachtwoord vergeten?"}')},"152u":function(t,e,n){var i=n("tITq");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"15wQ":function(t){t.exports=JSON.parse('{"address":"Address","add-tag":"Add Tag","coordinates":"Coordinates","device":"Device","next":"Next Image","no-tags":"You don\'t have anything to tag at the moment.","picked-up-title":"Picked Up?","please-upload":"Upload more photos","previous":"Previous Image","removed":"The litter has been removed","still-there":"The litter is still there","taken":"Taken","to-tag":"Images left to tag","total-uploaded":"Total images uploaded","uploaded":"Uploaded","confirm-delete":"Do you want to delete this image? This cannot be undone.","recently-tags":"Recently used tags: ","clear-tags":"Clear recent tags?","clear-tags-btn":"Clear recent tags"}')},"1C48":function(t,e,n){var i=n("822n");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"1C7U":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.captcha {\n display: flex;\n justify-content: center;\n}\n.call-container {\n padding-top: 5em;\n margin-bottom: 2em;\n margin-left: auto;\n margin-right: auto;\n max-width: 50em;\n}\n.field {\n padding-top: 0.5em;\n}\n.input-group {\n\t\tpadding-bottom: 1em;\n}\n.is-danger {\n\t\tcolor: red;\n}\n.signup-container {\n margin: auto;\n width: 35em;\n}\n\n /* Small screens */\n@media only screen and (max-width: 600px)\n {\n.call-container {\n padding: 2em 1em;\n margin-bottom: 0 !important;\n}\n.signup-container {\n width: 20em;\n}\n}\n\n",""])},"1Fcm":function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("kGIl"),a=n.n(o),s=(n("5A0h"),n("n2md")),l=n("vne5"),u=n("wd/R"),c=n.n(u);function d(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function h(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){d(o,i,r,a,s,"next",t)}function s(t){d(o,i,r,a,s,"throw",t)}a(void 0)}))}}var f={name:"VerifyPhotos",components:{Loading:a.a,AddTags:s.a,Tags:l.a},created:function(){var t=this;return h(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$store.dispatch("GET_NEXT_ADMIN_PHOTO");case 3:t.loading=!1;case 4:case"end":return e.stop()}}),e)})))()},data:function(){return{loading:!0,processing:!1,btn:"button is-large is-success",deleteButton:"button is-large is-danger mb1",deleteVerify:"button is-large is-warning mb1",verifyClass:"button is-large is-success mb1"}},computed:{checkUpdateTagsDisabled:function(){return!(!this.processing&&!1!==this.$store.state.litter.hasAddedNewTag)},delete_button:function(){return this.processing?this.deleteButton+" is-loading":this.deleteButton},delete_verify_button:function(){return this.processing?this.deleteVerify+" is-loading":this.deleteVerify},photo:function(){return this.$store.state.admin.photo},photosNotProcessed:function(){return this.$store.state.admin.not_processed},photosAwaitingVerification:function(){return this.$store.state.admin.awaiting_verification},update_new_tags_button:function(){return this.processing?this.verifyClass+" is-loading":this.verifyClass},uploadedTime:function(){return c()(this.photo.created_at).format("LLL")},verify_correct_button:function(){return this.processing?this.btn+" is-loading":this.btn}},methods:{adminDelete:function(t){var e=this;return h(r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.processing=!0,t.next=3,e.$store.dispatch("ADMIN_DELETE_IMAGE");case 3:e.processing=!1;case 4:case"end":return t.stop()}}),t)})))()},clearTags:function(){this.$store.commit("setAllTagsToZero",this.photo.id)},clearRecentTags:function(){this.$store.commit("initRecentTags",{}),this.$localStorage.remove("recentTags")},incorrect:function(){var t=this;return h(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.processing=!0,e.next=3,t.$store.dispatch("ADMIN_RESET_TAGS");case 3:t.processing=!1;case 4:case"end":return e.stop()}}),e)})))()},verifyCorrect:function(){var t=this;return h(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.processing=!0,e.next=3,t.$store.dispatch("ADMIN_VERIFY_CORRECT");case 3:t.processing=!1;case 4:case"end":return e.stop()}}),e)})))()},verifyDelete:function(){var t=this;return h(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.processing=!0,e.next=3,t.$store.dispatch("ADMIN_VERIFY_DELETE");case 3:t.processing=!1;case 4:case"end":return e.stop()}}),e)})))()},updateNewTags:function(){var t=this;return h(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.processing=!0,e.next=3,t.$store.dispatch("ADMIN_UPDATE_WITH_NEW_TAGS");case 3:t.processing=!1;case 4:case"end":return e.stop()}}),e)})))()}}},p=(n("pkeX"),n("KHd+")),m=Object(p.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container mt3"},[t.loading?n("loading",{attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(e){t.loading=e}}}):n("div",[0===this.photosAwaitingVerification&&0===this.photosNotProcessed?n("div",[n("p",{staticClass:"title is-3"},[t._v("All done.")])]):n("div",[n("h1",{staticClass:"title is-2 has-text-centered",staticStyle:{"margin-bottom":"1em"}},[t._v("\n\t\t\t\t\t#"+t._s(this.photo.id)+" Uploaded "+t._s(this.uploadedTime)+"\n\t\t\t\t")]),t._v(" "),n("p",{staticClass:"subtitle is-5 has-text-centered",staticStyle:{"margin-bottom":"4em"}},[t._v("\n\t\t\t \t\t"+t._s(this.photo.display_name)+"\n\t\t\t \t")]),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column has-text-centered"},[n("p",{staticClass:"subtitle is-5"},[t._v("Uploaded, not tagged: "+t._s(this.photosNotProcessed))]),t._v(" "),n("p",{staticClass:"subtitle is-5"},[t._v("Tagged, awaiting verification: "+t._s(this.photosAwaitingVerification))]),t._v(" "),n("div",{staticStyle:{"padding-top":"20%"}},[n("p",[t._v("Accept data, verify, but delete the image.")]),t._v(" "),n("button",{class:t.delete_verify_button,attrs:{disabled:t.processing},on:{click:t.verifyDelete}},[t._v("\n\t\t\t\t\t \tVerify & Delete\n\t\t\t\t\t ")]),t._v(" "),n("p",[t._v("Delete the image.")]),t._v(" "),n("button",{class:t.delete_button,attrs:{disabled:t.processing},on:{click:t.adminDelete}},[t._v("\n\t\t\t\t\t \tDELETE\n\t\t\t\t\t ")]),t._v(" "),n("br"),t._v(" "),n("button",{on:{click:t.clearRecentTags}},[t._v("Clear recent tags")])])]),t._v(" "),n("div",{staticClass:"column is-half",staticStyle:{"text-align":"center"}},[n("img",{attrs:{src:this.photo.filename,width:"300",height:"250"}})]),t._v(" "),n("div",{staticClass:"column has-text-centered",staticStyle:{position:"relative"}},[n("Tags",{attrs:{"photo-id":t.photo.id,admin:!0}}),t._v(" "),n("div",{staticStyle:{"padding-top":"3em"}},[n("button",{staticClass:"button is-medium is-dark",on:{click:t.clearTags}},[t._v("Clear user input")]),t._v(" "),n("p",[t._v("To undo this, just refresh the page")])])],1)]),t._v(" "),n("div",{staticClass:"has-text-centered mb1"},[n("button",{class:t.verify_correct_button,attrs:{disabled:t.processing},on:{click:t.verifyCorrect}},[t._v("VERIFY CORRECT")]),t._v(" "),n("button",{staticClass:"button is-large is-danger",attrs:{disabled:t.processing},on:{click:t.incorrect}},[t._v("FALSE")])]),t._v(" "),n("add-tags",{attrs:{admin:!0,id:t.photo.id}}),t._v(" "),n("div",{staticStyle:{"padding-top":"1em","text-align":"center"}},[n("p",{staticClass:"strong"},[t._v("Update the image and save the new data")]),t._v(" "),n("button",{class:t.update_new_tags_button,attrs:{disabled:t.checkUpdateTagsDisabled},on:{click:t.updateNewTags}},[t._v("\n\t\t\t\t\t\tUpdate with new tags\n\t\t\t\t\t")])])],1)])],1)}),[],!1,null,"97781a06",null);e.default=m.exports},"1FiT":function(t){t.exports=JSON.parse('{"privacy-title":"Controla tu privacidad","privacy-text":"Controla tu privacidad para cada equipo al que te hayas unido.","maps":{"team-map":"Mapa del equipo","name-will-appear":"Tu nombre aparecerá en los mapas","username-will-appear":"Tu nombre de usuario aparecerá en los mapas","will-not-appear":"Tu nombre y nombre de usuario aparecerán en los mapas"},"leaderboards":{"team-leaderboard":"Tabla de clasificación del equipo","name-will-appear":"Tu nombre aparecerá en las tablas de clasificación","username-will-appear":"Tu nombre de usuario aparecerá en las tablas de clasificación","will-not-appear":"Tu nombre y nombre de usuario aparecerán en las tablas de clasificación"},"submit-one-team":"Guardar para este equipo","apply-all-teams":"Aplicar a todos los equipos"}')},"1Hnl":function(t,e,n){var i=n("NOax");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"1O6V":function(t){t.exports=JSON.parse('{"email-you":"Want us to email you occasionally with good news","subscribe":"Subscribe","subscribed-success-msg":"You have been subscribed to the good news! You can unsubscribe at any time","need-your-help":"We need your help to create the world\'s most advanced and accessible database on pollution","read":"READ","blog":"Blog","research-paper":"Research Paper","watch":"WATCH","help":"HELP","join-the-team":"Join the Team","join-slack":"Join Slack","create-account":"Create Account","fb-group":"Facebook Group","single-donation":"Single Donation","crowdfunding":"Crowdfunding","olm-is-flagship":"OpenLitterMap is a flagship product of GeoTech Innovations Ltd., a startup in Ireland pioneering essential citizen science services #650323","enter-email":"Enter your email address","references":"References","credits":"Credits"}')},"1SYZ":function(t){t.exports=JSON.parse('{"olm-teams":"Equipos de OpenLitterMap","dashboard":"Dashboard","join-a-team":"Únete a un equipo","create-a-team":"Crea un equipo","your-teams":"Tus equipos","leaderboard":"Tabla de clasificación","settings":"Ajustes","teams-dashboard":"Dashboard de equipos ","photos-uploaded":"Fotos subidas","litter-tagged":"Basura etiquetada","members-uploaded":"Miembros del equipo con fotos subidas","all-teams":"Todos los equipos","times":{"today":"Hoy","week":"Esta semana","month":"Este mes","year":"Este año","all":"Todos los años","created_at":"Subida el","datetime":"Tomada el"}}')},"1Ttm":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.profile-percent[data-v-79f52017] {\n font-size: 3em;\n font-weight: 600;\n margin-right: 0.5em;\n}\n.profile-stat-card[data-v-79f52017] {\n flex: 1;\n display: flex;\n text-align: center;\n}\n.profile-stat-card img[data-v-79f52017] {\n height: 3em;\n margin: auto 1em auto 0;\n}\n.profile-stat[data-v-79f52017] {\n font-size: 1.5em;\n font-weight: 600;\n}\n.profile-text[data-v-79f52017] {\n color: #1DD3B0 !important;\n}\n\n",""])},"1VgY":function(t,e,n){"use strict";var i=n("1C48");n.n(i).a},"1WXE":function(t,e,n){"use strict";var i=n("L5yb");n.n(i).a},"1k10":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".grid-container[data-v-65329fa1] {\n display: grid;\n grid-template-columns: 1fr 1fr 1fr 1fr;\n grid-column-gap: 1em;\n grid-row-gap: 1em;\n padding-bottom: 2em;\n}\n@media screen and (max-width: 1000px) {\n.grid-container[data-v-65329fa1] {\n grid-template-columns: 1fr 1fr;\n grid-row-gap: 2em !important;\n}\n}\n@media screen and (max-width: 600px) {\n.grid-container[data-v-65329fa1] {\n grid-template-columns: 1fr;\n grid-row-gap: 2em !important;\n}\n}",""])},"1lel":function(t){t.exports=JSON.parse('{"littercoin-header":"Littercoin (LTRX)","back-later":"Esto volverá más tarde","claim-tokens":"Si quieres simplemente reclamar tus tokens y acceder a tu monedero desde otro lugar, introduce el ID de tu monedero y se te enviarán tus ganancias."}')},"1ppg":function(t,e,n){!function(t){"use strict";t.defineLocale("fil",{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(t){return t},week:{dow:1,doy:4}})}(n("wd/R"))},"1rPI":function(t){t.exports=JSON.parse('{"olm-teams":"OpenLitterMap Teams","dashboard":"Dashboard","join-a-team":"Join a Team","create-a-team":"Create a Team","your-teams":"Yours Teams","leaderboard":"Leaderboard","settings":"Settings","teams-dashboard":"Teams Dashboard","photos-uploaded":"Photos uploaded","litter-tagged":"Litter tagged","members-uploaded":"Team members uploaded","all-teams":"All Teams","times":{"today":"Today","week":"This week","month":"This month","year":"This year","all":"All time","created_at":"Uploaded at","datetime":"Taken at"}}')},"1rYy":function(t,e,n){!function(t){"use strict";t.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(t){return/^(ցերեկվա|երեկոյան)$/.test(t)},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}})}(n("wd/R"))},"1rbm":function(t){t.exports=JSON.parse('{"maps1":"We are creating Open Data on Plastic Pollution","maps2":"Anyone can download the data and use it.","maps3":"See Global Map","global-leaderboard":"Global Leaderboard","position":"Position","name":"Name","xp":"XP","previous-target":"Previous Target","next-target":"Next Target","litter":"Litter","total-verified-litter":"Total Litter","total-verified-photos":"Total Photos","total-littercoin-issued":"Total Littercoin","number-of-contributors":"Number of Contributors","avg-img-per-person":"Average Image per Person","avg-litter-per-person":"Average Litter per Person","leaderboard":"Leaderboard","time-series":"Time-series","options":"Options","most-data":"Most Open Data","most-data-person":"Most Open Data Per Person","download-open-verified-data":"Free and Open Verified Citizen Science Data on Plastic Pollution.","stop-plastic-ocean":"Let\'s stop plastic going into the ocean.","enter-email-sent-data":"Please enter an email address to which the data will be sent:"}')},"1xZ4":function(t,e,n){!function(t){"use strict";t.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(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})}(n("wd/R"))},"22Q+":function(t,e,n){"use strict";var i=n("2AZE");n.n(i).a},"2AZE":function(t,e,n){var i=n("3jFI");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"2MTh":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".img[data-v-128f88b2] {\n max-height: 30em;\n}\n.tag-container[data-v-128f88b2] {\n padding: 0 3em;\n}\n.image-wrapper[data-v-128f88b2] {\n text-align: center;\n}\n.image-wrapper .image-content[data-v-128f88b2] {\n position: relative;\n display: inline-block;\n}\n.image-wrapper .image-content .delete-img[data-v-128f88b2] {\n position: absolute;\n top: -19px;\n right: -17px;\n font-size: 40px;\n}\n.taken[data-v-128f88b2] {\n color: #fff;\n font-weight: 600;\n font-size: 2.5rem;\n line-height: 1.25;\n margin-bottom: 1em;\n text-align: center;\n}\n@media screen and (max-width: 768px) {\n.img[data-v-128f88b2] {\n max-height: 15em;\n}\n.tag-container[data-v-128f88b2] {\n padding: 0 1em;\n}\n.taken[data-v-128f88b2] {\n display: none;\n}\n}",""])},"2SVd":function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},"2Uk4":function(t){t.exports=JSON.parse('{"card-number":"Card Number","card-holder":"Card Holder\'s Name","exp":"Expiration Date","cvv":"CVV","placeholders":{"card-number":"Your 16 digit card number","card-holder":"Card holder\'s name","exp-month":"Month","exp-year":"Year","cvv":"***"}}')},"2fjn":function(t,e,n){!function(t){"use strict";t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(n("wd/R"))},"2ykv":function(t,e,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},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:i,longMonthsParse:i,shortMonthsParse:i,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"30qX":function(t){t.exports=JSON.parse('{"do-you-pickup":"zdbierasz śmieci, czy je tam zostawiasz?","save-def-settings":"Tutaj możesz zapisać swoje domyślne ustawienie.","change-value-of-litter":"Możesz także zmienić wartość każdego odpadu podczas ich oznaczania.","status":"Aktualny status","toggle-presence":"Przełącz obecność","pickup?":"zbierz?"}')},"3E1r":function(t,e,n){!function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.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(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?t>=10?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n("wd/R"))},"3UD+":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);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}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"3jFI":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".list-enter-active, .list-leave-active {\n transition: all 1s;\n}\n.list-enter, .list-leave-to {\n transform: translateX(30px);\n}\n.list-item {\n display: grid;\n}\n.list-move {\n transition: all 1s ease-in-out;\n}\n.new-user-text-narrow {\n display: none;\n}\n.sidebar-menu {\n position: absolute;\n top: 0;\n width: 20%;\n margin-left: 80%;\n display: table-row;\n height: 100%;\n overflow-y: scroll;\n padding-top: 30px;\n z-index: 999;\n pointer-events: none;\n}\n@media (max-width: 910px) {\n.sidebar-menu {\n width: 25%;\n margin-left: 75%;\n}\n}\n@media (max-width: 730px) {\n.sidebar-menu {\n width: 30%;\n margin-left: 70%;\n}\n}\n@media (max-width: 620px) {\n.sidebar-menu {\n width: 35%;\n margin-left: 65%;\n}\n}\n@media (max-width: 530px) {\n.sidebar-menu {\n width: 35%;\n margin-left: 65%;\n}\n.city-name {\n display: none;\n}\n}\n@media (max-width: 500px) {\n.sidebar-menu {\n width: 45%;\n margin-left: 55%;\n}\n.city-name {\n display: none;\n}\n}\n.sidebar-title {\n padding: 20px;\n text-align: center;\n font-size: 24px;\n font-weight: 700;\n}\n.event {\n border-radius: 6px;\n width: 80%;\n margin-left: 10%;\n margin-bottom: 10px;\n display: grid;\n grid-template-columns: 1fr 3fr;\n}\n.event-title {\n padding: 10px;\n}\n.grid-img {\n margin: auto;\n font-size: 22px;\n text-align: center;\n}\n.grid-main {\n margin-top: auto;\n margin-bottom: auto;\n padding: 10px;\n}\n.ltr-icon {\n max-width: 55%;\n padding-top: 0.5em;\n}\n.ltr-strong {\n font-weight: 600;\n}",""])},"3jk2":function(t,e,n){"use strict";var i=n("ZzwE");n.n(i).a},"4CRn":function(t){t.exports=JSON.parse('{"categories":{"alcohol":"Alcohol","art":"Kunst","brands":"Merken","coastal":"Kust","coffee":"Koffie","dumping":"Lozingen","food":"Voedsel","industrial":"Industrieel","sanitary":"Hygiëne","softdrinks":"Frisdrank","smoking":"Rookwaar","other":"Overig","dogshit":"Huisdieren"},"smoking":{"butts":"Sigaretten/Peuken","lighters":"Aanstekers","cigaretteBox":"Sigarettenpakje","tobaccoPouch":"Tabakszak","skins":"Vloeipapier","smoking_plastic":"Sigarettenpakplastic","filters":"Filters","filterbox":"Filterverpakking","vape_pen":"Vape pen","vape_oil":"Vape olie","smokingOther":"Rookwaar-Overig"},"alcohol":{"beerBottle":"Bier Flessen","spiritBottle":"Sterke Drank Flessen","wineBottle":"Wijn Flessen","beerCan":"Bier Blikken","brokenGlass":"Gebroken Glas","bottleTops":"Bierfles Doppen","paperCardAlcoholPackaging":"Papieren Verpakking","plasticAlcoholPackaging":"Plastic Verpakking","pint":"Bierglas","six_pack_rings":"Six-pack keelclips","alcohol_plastic_cups":"Plastic Bekers","alcoholOther":"Alcohol-Overig"},"art":{"item":"Item"},"coffee":{"coffeeCups":"Koffie Bekers","coffeeLids":"Koffie Deksels","coffeeOther":"Koffie-Overig"},"food":{"sweetWrappers":"Snoep Papiertjes","paperFoodPackaging":"Papier/Karton Verpakking","plasticFoodPackaging":"Plastic Verpakking","plasticCutlery":"Plastic Bestek","crisp_small":"Chips Verpakking (klein)","crisp_large":"Chips Verpakking (groot)","styrofoam_plate":"Piepschuim bord","napkins":"Servetten","sauce_packet":"Saus Bakjes","glass_jar":"Glazen Pot","glass_jar_lid":"Glazen Pot Deksel","aluminium_foil":"Aluminium folie","pizza_box":"Pizza Doos","foodOther":"Voedsel-Overig"},"softdrinks":{"waterBottle":"Plastic Water Fles","fizzyDrinkBottle":"Plastic Frisdrank Fles","tinCan":"Blikje","bottleLid":"Fles Dop","bottleLabel":"Fles Label","sportsDrink":"Sportdrank Fles","straws":"Rietjes","plastic_cups":"Plastic Bekers","plastic_cup_tops":"Plastic Beker Deksel","milk_bottle":"Melk Fles","milk_carton":"Melk Karton","paper_cups":"Papieren Beker","juice_cartons":"Sap Karton","juice_bottles":"Sap Fles","juice_packet":"Juice Packet","ice_tea_bottles":"IJsthee Fles","ice_tea_can":"IJsthee Blikje","energy_can":"Energie Blikje","pullring":"Blik Lipje","strawpacket":"Rietjes Verpakking","styro_cup":"Piepschuim Beker","broken_glass":"Gebroken Glas","softDrinkOther":"Frisdrank-Overig"},"sanitary":{"gloves":"Handschoenen","facemask":"Mondkapje","condoms":"Condoom","nappies":"Luier","menstral":"Maandverband","deodorant":"Deodorant","ear_swabs":"Wattenstaaf","tooth_pick":"Tandenstoker","tooth_brush":"Tandenborstel","wetwipes":"Natte Doekjes","hand_sanitiser":"Hand Reiniger","sanitaryOther":"Hygiëne-Overig"},"dumping":{"small":"Klein","medium":"Middel","large":"Groot"},"industrial":{"oil":"Olie","industrial_plastic":"Plastic","chemical":"Chemicaliën","bricks":"Stenen","tape":"Plakband","industrial_other":"Industrieel-Overig"},"coastal":{"microplastics":"Microplastic","mediumplastics":"Middelplastics","macroplastics":"Grootplastics","rope_small":"Klein touw","rope_medium":"Middel touw","rope_large":"Groot touw","fishing_gear_nets":"Vistuig/net","ghost_nets":"Ghost nets","buoys":"Boei","degraded_plasticbottle":"Gedegradeerde Plastic Fles","degraded_plasticbag":"Gedegradeerde Plastic Tas","degraded_straws":"Gedegradeerde Rietjes","degraded_lighters":"Gedegradeerde Aanstekers","balloons":"Ballonnen","lego":"Lego","shotgun_cartridges":"Geweer Patronen","styro_small":"Piepschuim klein","styro_medium":"Piepschuim middel","styro_large":"Piepschuim groot","coastal_other":"Kust-Overig"},"brands":{"adidas":"Adidas","aldi":"Aldi","amazon":"Amazon","apple":"Apple","applegreen":"Applegreen","asahi":"Asahi","avoca":"Avoca","ballygowan":"Ballygowan","bewleys":"Bewleys","brambles":"Brambles","budweiser":"Budweiser","bulmers":"Bulmers","burgerking":"Burgerking","butlers":"Butlers","cadburys":"Cadburys","cafenero":"Cafenero","camel":"Camel","carlsberg":"Carlsberg","centra":"Centra","circlek":"Circlek","coke":"Coca-Cola","coles":"Coles","colgate":"Colgate","corona":"Corona","costa":"Costa","doritos":"Doritos","drpepper":"DrPepper","dunnes":"Dunnes","duracell":"Duracell","durex":"Durex","esquires":"Esquires","evian":"Evian","fosters":"Fosters","frank_and_honest":"Frank-and-Honest","fritolay":"Frito-Lay","gatorade":"Gatorade","gillette":"Gillette","guinness":"Guinness","haribo":"Haribo","heineken":"Heineken","insomnia":"Insomnia","kellogs":"Kellogs","kfc":"KFC","lego":"Lego","lidl":"Lidl","lindenvillage":"Lindenvillage","lolly_and_cookes":"Lolly-and-cookes","loreal":"Loreal","lucozade":"Lucozade","marlboro":"Marlboro","mars":"Mars","mcdonalds":"McDonalds","nero":"Nero","nescafe":"Nescafe","nestle":"Nestle","nike":"Nike","obriens":"O-Briens","pepsi":"Pepsi","powerade":"Powerade","redbull":"Redbull","ribena":"Ribena","sainsburys":"Sainsburys","samsung":"Samsung","spar":"Spar","starbucks":"Starbucks","stella":"Stella","subway":"Subway","supermacs":"Supermacs","supervalu":"Supervalu","tayto":"Tayto","tesco":"Tesco","thins":"Thins","volvic":"Volvic","waitrose":"Waitrose","walkers":"Walkers","wilde_and_greene":"Wilde-and-Greene","woolworths":"Woolworths","wrigleys":"Wrigleys"},"trashdog":{"trashdog":"Hond bij Afval","littercat":"Kat bij Afval","duck":"Eend bij Afval"},"other":{"dogshit":"Hondendrol","pooinbag":"Hondendrol in zakje","automobile":"Auto","clothing":"Kleding","traffic_cone":"Verkeerspilon","life_buoy":"Levensboei","plastic":"Onbekend Plastic","dump":"Illegale Dumping","metal":"Metalen Object","plastic_bags":"Plastic Tas","election_posters":"Verkiezingsposter","forsale_posters":"Tekoop Poster","books":"Boeken","magazine":"Tijdschrift","paper":"Krant","stationary":"Briefpapier","washing_up":"Afwasmiddel Fles","hair_tie":"Haar Elastiek","ear_plugs":"Oordopjes (muziek)","batteries":"Batterijen","elec_small":"Elektrisch klein","elec_large":"Elektrisch groot","random_litter":"Willekeurig afval","balloons":"Ballonnen","bags_litter":"Vuilniszakken met afval","overflowing_bins":"Uitpuilende vuilnisbakken","tyre":"Band","cable_tie":"plastic binder (tie rip)","other":"Overig-Overig"},"presence":{"picked-up":"Ik heb het opgeruimd!","still-there":"Het ligt er nog.","picked-up-text":"Het is opgeruimd.","still-there-text":"Het afval is er nog!"},"no-tags":"Geen kenmerken","not-verified":"In afwachting van verificatie","dogshit":{"poo":"Hondendrol!","poo_in_bag":"Hondendrol in zakje!"}}')},"4Cft":function(t,e,n){var i=n("wa5x");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"4LkY":function(t,e,n){var i=n("CFP8");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"4MV3":function(t,e,n){!function(t){"use strict";var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};t.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(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n("wd/R"))},"4Plr":function(t){t.exports=JSON.parse('{"olm-teams":"OpenLitterMap Teams","dashboard":"Panel nawigacyjny","join-a-team":"Dołącz do drużyny","create-a-team":"Stwórz drużyne","your-teams":"Twoje drużyny","leaderboard":"Tablica wyników","settings":"Ustawienia","teams-dashboard":"Panel zespołów","photos-uploaded":"Zdjęcia przesłane","litter-tagged":"Otagowane odpady","members-uploaded":"Członkowie drużyny przesłali","all-teams":"Wszystkie drużyny","times":{"today":"Dzisiaj","week":"W tym tygodniu","month":"Ten miesiąc","year":"Ten rok","all":"Cały okres","created_at":"Przesłane w","datetime":"Zrobiono o godzinie"}}')},"4R65":function(t,e,n){!function(t){"use strict";function e(t){var e,n,i,r;for(n=1,i=arguments.length;n0?Math.floor(t):Math.ceil(t)};function A(t,e,n){return t instanceof P?t:g(t)?new P(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new P(t.x,t.y):new P(t,e,n)}function I(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>=e.x&&i.x<=n.x,a=r.y>=e.y&&i.y<=n.y;return o&&a},overlaps:function(t){t=N(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>e.x&&i.xe.y&&i.y=i.lat&&n.lat<=r.lat&&e.lng>=i.lng&&n.lng<=r.lng},intersects:function(t){t=j(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&i.lat<=n.lat,a=r.lng>=e.lng&&i.lng<=n.lng;return o&&a},overlaps:function(t){t=j(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&i.late.lng&&i.lng1,Lt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Mt=!(!document.createElementNS||!q("svg").createSVGRect),Tt=!Mt&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function Et(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ot={ie:J,ielt9:K,edge:Q,webkit:tt,android:et,android23:nt,androidStock:rt,opera:ot,chrome:at,gecko:st,safari:lt,phantom:ut,opera12:ct,win:dt,ie3d:ht,webkit3d:ft,gecko3d:pt,any3d:mt,mobile:gt,mobileWebkit:vt,mobileWebkit3d:yt,msPointer:_t,pointer:bt,touch:wt,mobileOpera:xt,mobileGecko:kt,retina:Ct,passiveEvents:Lt,canvas:St,svg:Mt,vml:Tt},Pt=_t?"MSPointerDown":"pointerdown",Dt=_t?"MSPointerMove":"pointermove",At=_t?"MSPointerUp":"pointerup",It=_t?"MSPointerCancel":"pointercancel",Nt={},Rt=!1;function jt(t,e,n,r){return"touchstart"===e?function(t,e,n){var r=i((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ie(t),Bt(t,e)}));t["_leaflet_touchstart"+n]=r,t.addEventListener(Pt,r,!1),Rt||(document.addEventListener(Pt,zt,!0),document.addEventListener(Dt,Yt,!0),document.addEventListener(At,Ft,!0),document.addEventListener(It,Ft,!0),Rt=!0)}(t,n,r):"touchmove"===e?function(t,e,n){var i=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Bt(t,e)};t["_leaflet_touchmove"+n]=i,t.addEventListener(Dt,i,!1)}(t,n,r):"touchend"===e&&function(t,e,n){var i=function(t){Bt(t,e)};t["_leaflet_touchend"+n]=i,t.addEventListener(At,i,!1),t.addEventListener(It,i,!1)}(t,n,r),this}function zt(t){Nt[t.pointerId]=t}function Yt(t){Nt[t.pointerId]&&(Nt[t.pointerId]=t)}function Ft(t){delete Nt[t.pointerId]}function Bt(t,e){for(var n in t.touches=[],Nt)t.touches.push(Nt[n]);t.changedTouches=[t],e(t)}var $t,Ht,Ut,Vt,Wt,Gt=_t?"MSPointerDown":bt?"pointerdown":"touchstart",qt=_t?"MSPointerUp":bt?"pointerup":"touchend",Zt="_leaflet_",Xt=he(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Jt=he(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Kt="webkitTransition"===Jt||"OTransition"===Jt?Jt+"End":"transitionend";function Qt(t){return"string"==typeof t?document.getElementById(t):t}function te(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function ee(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function ne(t){var e=t.parentNode;e&&e.removeChild(t)}function ie(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function re(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function oe(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ae(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=ce(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function se(t,e){if(void 0!==t.classList)for(var n=d(e),i=0,r=n.length;i1)return;var e=Date.now(),n=e-(i||e);r=t.touches?t.touches[0]:t,o=n>0&&n<=250,i=e}function s(t){if(o&&!r.cancelBubble){if(bt){if("mouse"===t.pointerType)return;var n,a,s={};for(a in r)n=r[a],s[a]=n&&n.bind?n.bind(r):n;r=s}r.type="dblclick",r.button=0,e(r),i=null}}t[Zt+Gt+n]=a,t[Zt+qt+n]=s,t[Zt+"dblclick"+n]=e,t.addEventListener(Gt,a,!!Lt&&{passive:!1}),t.addEventListener(qt,s,!!Lt&&{passive:!1}),t.addEventListener("dblclick",e,!1)}(t,a,r):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Te[e]||e,a,!!Lt&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,$e(t,e)&&s(e)},t.addEventListener(Te[e],a,!1)):t.addEventListener(e,s,!1):"attachEvent"in t&&t.attachEvent("on"+e,a),t[Le]=t[Le]||{},t[Le][r]=a}function Oe(t,e,n,i){var r=e+o(n)+(i?"_"+o(i):""),a=t[Le]&&t[Le][r];if(!a)return this;bt&&0===e.indexOf("touch")?function(t,e,n){var i=t["_leaflet_"+e+n];"touchstart"===e?t.removeEventListener(Pt,i,!1):"touchmove"===e?t.removeEventListener(Dt,i,!1):"touchend"===e&&(t.removeEventListener(At,i,!1),t.removeEventListener(It,i,!1))}(t,e,r):wt&&"dblclick"===e&&!Me()?function(t,e){var n=t[Zt+Gt+e],i=t[Zt+qt+e],r=t[Zt+"dblclick"+e];t.removeEventListener(Gt,n,!!Lt&&{passive:!1}),t.removeEventListener(qt,i,!!Lt&&{passive:!1}),t.removeEventListener("dblclick",r,!1)}(t,r):"removeEventListener"in t?t.removeEventListener(Te[e]||e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a),t[Le][r]=null}function Pe(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Be(t),this}function De(t){return Ee(t,"wheel",Pe),this}function Ae(t){return Ce(t,"mousedown touchstart dblclick",Pe),Ee(t,"click",Fe),this}function Ie(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ne(t){return Ie(t),Pe(t),this}function Re(t,e){if(!e)return new P(t.clientX,t.clientY);var n=xe(e),i=n.boundingClientRect;return new P((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var je=dt&&at?2*window.devicePixelRatio:st?window.devicePixelRatio:1;function ze(t){return Q?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/je:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Ye={};function Fe(t){Ye[t.type]=!0}function Be(t){var e=Ye[t.type];return Ye[t.type]=!1,e}function $e(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var He={on:Ce,off:Se,stopPropagation:Pe,disableScrollPropagation:De,disableClickPropagation:Ae,preventDefault:Ie,stop:Ne,getMousePosition:Re,getWheelDelta:ze,fakeStop:Fe,skipped:Be,isExternalTarget:$e,addListener:Ce,removeListener:Se},Ue=O.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=me(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,j(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=A((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=A(e.paddingBottomRight||e.padding||[0,0]),r=this.getCenter(),o=this.project(r),a=this.project(t),s=this.getPixelBounds(),l=s.getSize().divideBy(2),u=N([s.min.add(n),s.max.subtract(i)]);if(!u.contains(a)){this._enforcingBounds=!0;var c=o.subtract(a),d=A(a.x+c.x,a.y+c.y);(a.xu.max.x)&&(d.x=o.x-c.x,c.x>0?d.x+=l.x-n.x:d.x-=l.x-i.x),(a.yu.max.y)&&(d.y=o.y-c.y,c.y>0?d.y+=l.y-n.y:d.y-=l.y-i.y),this.panTo(this.unproject(d),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),o=n.divideBy(2).round(),a=r.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,r,t):navigator.geolocation.getCurrentPosition(n,r,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=new z(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var r=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(r,i.maxZoom):r)}var o={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ne(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(S(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ne(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=ee("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=j(t),n=A(n||[0,0]);var i=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),u=N(this.project(s,i),this.project(a,i)).getSize(),c=mt?this.options.zoomSnap:1,d=l.x/u.x,h=l.y/u.y,f=e?Math.max(d,h):Math.min(d,h);return i=this.getScaleZoom(f,i),c&&(i=Math.round(i/(c/100))*(c/100),i=e?Math.ceil(i/c)*c:Math.floor(i/c)*c),Math.max(r,Math.min(o,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new P(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new I(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(Y(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(A(t),e)},layerPointToLatLng:function(t){var e=A(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(Y(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Y(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(Y(t),Y(e))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(t)))},mouseEventToContainerPoint:function(t){return Re(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=Qt(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Ce(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&mt,se(t,"leaflet-container"+(wt?" leaflet-touch":"")+(Ct?" leaflet-retina":"")+(K?" leaflet-oldie":"")+(lt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=te(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),pe(this._mapPane,new P(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(se(t.markerPane,"leaflet-zoom-hide"),se(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){pe(this._mapPane,new P(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,!1)._move(t,e)._moveEnd(i),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return S(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){pe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[o(this._container)]=this;var e=t?Se:Ce;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),mt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){S(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],r="mouseout"===e||"mouseover"===e,a=t.target||t.srcElement,s=!1;a;){if((n=this._targets[o(a)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(r&&!$e(a,t))break;if(i.push(n),r)break}if(a===this._container)break;a=a.parentNode}return i.length||s||r||!$e(a,t)||(i=[this]),i},_handleDOMEvent:function(t){if(this._loaded&&!Be(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||_e(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){if("click"===t.type){var r=e({},t);r.type="preclick",this._fireDOMEvent(r,r.type,i)}if(!t._stopped&&(i=(i||[]).concat(this._findEventTargets(t,n))).length){var o=i[0];"contextmenu"===n&&o.listens(n,!0)&&Ie(t);var a={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var s=o.getLatLng&&(!o._radius||o._radius<=10);a.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?o.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var l=0;l0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=mt?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){le(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=ee("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=Xt,n=this._proxy.style[e];fe(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ne(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();fe(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(r)||(C((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,se(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&le(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),C((function(){this._moveEnd(!0)}),this))}}),We=T.extend({options:{position:"topright"},initialize:function(t){h(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return se(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ne(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ge=function(t){return new We(t)};Ve.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=ee("div",e+"control-container",this._container);function i(i,r){var o=e+i+" "+e+r;t[i+r]=ee("div",o,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ne(this._controlCorners[t]);ne(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var qe=We.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(o(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+o(this),i),this._layerControlInputs.push(e),e.layerId=o(t.layer),Ce(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var a=document.createElement("div");return n.appendChild(a),a.appendChild(e),a.appendChild(r),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],r=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||r.push(e);for(o=0;o=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ie.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Ze=We.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=ee("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,r){var o=ee("a",n,i);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Ae(o),Ce(o,"click",Ne),Ce(o,"click",r,this),Ce(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";le(this._zoomInButton,e),le(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&se(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&se(this._zoomInButton,e)}});Ve.mergeOptions({zoomControl:!0}),Ve.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Ze,this.addControl(this.zoomControl))}));var Xe=We.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=ee("div","leaflet-control-scale"),n=this.options;return this._addScales(n,"leaflet-control-scale-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=ee("div",e,n)),t.imperial&&(this._iScale=ee("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,r=3.2808399*t;r>5280?(e=r/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(r),this._updateScale(this._iScale,i+" ft",i/r))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Je=We.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){h(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=ee("div","leaflet-control-attribution"),Ae(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});Ve.mergeOptions({attributionControl:!0}),Ve.addInitHook((function(){this.options.attributionControl&&(new Je).addTo(this)})),We.Layers=qe,We.Zoom=Ze,We.Scale=Xe,We.Attribution=Je,Ge.layers=function(t,e,n){return new qe(t,e,n)},Ge.zoom=function(t){return new Ze(t)},Ge.scale=function(t){return new Xe(t)},Ge.attribution=function(t){return new Je(t)};var Ke=T.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ke.addTo=function(t,e){return t.addHandler(e,this),this};var Qe,tn={Events:E},en=wt?"touchstart mousedown":"mousedown",nn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},rn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},on=O.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){h(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Ce(this._dragStartTarget,en,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(on._dragging===this&&this.finishDrag(),Se(this._dragStartTarget,en,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!ae(this._element,"leaflet-zoom-anim")&&!(on._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(on._dragging=this,this._preventOutline&&_e(this._element),ve(),$t(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,n=we(this._element);this._startPoint=new P(e.clientX,e.clientY),this._parentScale=xe(n),Ce(document,rn[t.type],this._onMove,this),Ce(document,nn[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new P(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)u&&(a=s,u=l);u>i&&(n[a]=1,t(e,n,i,r,a),t(e,n,i,a,o))}(t,i,e,0,n-1);var r,o=[];for(r=0;re&&(n.push(t[i]),r=i);var a,s,l,u;return re.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function dn(t,e,n,i){var r,o=e.x,a=e.y,s=n.x-o,l=n.y-a,u=s*s+l*l;return u>0&&((r=((t.x-o)*s+(t.y-a)*l)/u)>1?(o=n.x,a=n.y):r>0&&(o+=s*r,a+=l*r)),s=t.x-o,l=t.y-a,i?s*s+l*l:new P(o,a)}function hn(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function fn(t){return hn(t)}var pn={simplify:an,pointToSegmentDistance:sn,closestPointOnSegment:function(t,e,n){return dn(t,e,n)},clipSegment:ln,_getEdgeIntersection:un,_getBitCode:cn,_sqClosestPointOnSegment:dn,isFlat:hn,_flat:fn};function mn(t,e,n){var i,r,o,a,s,l,u,c,d,h=[1,4,2,8];for(r=0,u=t.length;r1e-7;l++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),s+=u=Math.PI/2-2*Math.atan(a*e)-s;return new z(s*n,t.x*n/i)}},_n={LonLat:vn,Mercator:yn,SphericalMercator:H},bn=e({},$,{code:"EPSG:3395",projection:yn,transformation:function(){var t=.5/(Math.PI*yn.R);return V(t,.5,-t,.5)}()}),wn=e({},$,{code:"EPSG:4326",projection:vn,transformation:V(1/180,1,-1/180,.5)}),xn=e({},B,{projection:vn,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});B.Earth=$,B.EPSG3395=bn,B.EPSG3857=W,B.EPSG900913=G,B.EPSG4326=wn,B.Simple=xn;var kn=O.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[o(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[o(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ve.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=o(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=o(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&o(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?g(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()e)return a=(i-e)/n,this._map.layerPointToLatLng([o.x-a*(o.x-r.x),o.y-a*(o.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=Y(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new R,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return hn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=hn(t),i=0,r=t.length;i=2&&e[0]instanceof z&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){An.prototype._setLatLngs.call(this,t),hn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return hn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new P(e,e);if(t=new I(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,r=0,o=this._rings.length;rt.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(u=!u);return u||An.prototype._containsPoint.call(this,t,!0)}}),Nn=Ln.extend({initialize:function(t,e){h(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,r=g(t)?t:t.features;if(r){for(e=0,n=r.length;e0?r:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted;for(var a=0;ar?(e.height=r+"px",se(t,"leaflet-popup-scrolled")):le(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();pe(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(te(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,r=new P(this._containerLeft,-n-this._containerBottom);r._add(me(this._container));var o=t.layerPointToContainerPoint(r),a=A(this.options.autoPanPadding),s=A(this.options.autoPanPaddingTopLeft||a),l=A(this.options.autoPanPaddingBottomRight||a),u=t.getSize(),c=0,d=0;o.x+i+l.x>u.x&&(c=o.x+i-u.x+l.x),o.x-c-s.x<0&&(c=o.x-s.x),o.y+n+l.y>u.y&&(d=o.y+n-u.y+l.y),o.y-d-s.y<0&&(d=o.y-s.y),(c||d)&&t.fire("autopanstart").panBy([c,d])}},_onCloseButtonClick:function(t){this._close(),Ne(t)},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ve.mergeOptions({closePopupOnClick:!0}),Ve.include({openPopup:function(t,e,n){return t instanceof Jn||(t=new Jn(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),kn.include({bindPopup:function(t,e){return t instanceof Jn?(h(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new Jn(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Ne(t),e instanceof On?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Kn=Xn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Xn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Xn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Xn.prototype.getEvents.call(this);return wt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ee("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,r=this._container,o=i.latLngToContainerPoint(i.getCenter()),a=i.layerPointToContainerPoint(t),s=this.options.direction,l=r.offsetWidth,u=r.offsetHeight,c=A(this.options.offset),d=this._getAnchor();"top"===s?(e=l/2,n=u):"bottom"===s?(e=l/2,n=0):"center"===s?(e=l/2,n=u/2):"right"===s?(e=0,n=u/2):"left"===s?(e=l,n=u/2):a.xthis.options.maxZoom||ni&&this._retainParent(r,o,a,i))},_retainChildren:function(t,e,n,i){for(var r=2*t;r<2*t+2;r++)for(var o=2*e;o<2*e+2;o++){var a=new P(r,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&r1)this._setView(t,n);else{for(var d=r.min.y;d<=r.max.y;d++)for(var h=r.min.x;h<=r.max.x;h++){var f=new P(h,d);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:a.push(f)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;hn.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return j(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),r=i.add(n);return[e.unproject(i,t.z),e.unproject(r,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new R(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new P(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ne(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){se(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,K&&this.options.opacity<1&&de(t,this.options.opacity),et&&!nt&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),r=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&C(i(this._tileReady,this,t,null,o)),pe(o,n),this._tiles[r]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var r=this._tileCoordsToKey(t);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(de(n.el,0),S(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(se(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),K||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new P(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new I(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),ei=ti.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=h(this,e)).detectRetina&&Ct&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),et||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Ce(n,"load",i(this._tileOnLoad,this,e,n)),Ce(n,"error",i(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:Ct?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=i),n["-y"]=i}return m(this._url,e(n,this.options))},_tileOnLoad:function(t,e){K?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,e.complete||(e.src=y,ne(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return rt||e.el.setAttribute("src",y),ti.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==y))return ti.prototype._tileReady.call(this,t,e,n)}});function ni(t,e){return new ei(t,e)}var ii=ei.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var i=e({},this.defaultWmsParams);for(var r in n)r in this.options||(i[r]=n[r]);var o=(n=h(this,n)).detectRetina&&Ct?2:1,a=this.getTileSize();i.width=a.x*o,i.height=a.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ei.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=N(n.project(e[0]),n.project(e[1])),r=i.min,o=i.max,a=(this._wmsVersion>=1.3&&this._crs===wn?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),s=ei.prototype.getTileUrl.call(this,t);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});ei.WMS=ii,ni.wms=function(t,e){return new ii(t,e)};var ri=kn.extend({options:{padding:.1,tolerance:0},initialize:function(t){h(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&se(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=me(this._container),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),a=this._map.project(t,e).subtract(o),s=r.multiplyBy(-n).add(i).add(r).subtract(a);mt?fe(this._container,s,n):pe(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new I(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),oi=ri.extend({getEvents:function(){var t=ri.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ri.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Ce(t,"mousemove",this._onMouseMove,this),Ce(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ce(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){S(this._redrawRequest),delete this._ctx,ne(this._container),Se(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ri.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=Ct?2:1;pe(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Ct&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ri.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[o(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[o(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),r=[];for(n=0;n')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),li={_initContainer:function(){this._container=ee("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ri.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=si("shape");se(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=si("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ne(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,r=t._container;r.stroked=!!i.stroke,r.filled=!!i.fill,i.stroke?(e||(e=t._stroke=si("stroke")),r.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=g(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(r.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=si("fill")),r.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(r.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){re(t._container)},_bringToBack:function(t){oe(t._container)}},ui=Tt?si:q,ci=ri.extend({getEvents:function(){var t=ri.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=ui("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ui("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ne(this._container),Se(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){ri.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),pe(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=ui("path");t.options.className&&se(e,t.options.className),t.options.interactive&&se(e,"leaflet-interactive"),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ne(t._path),t.removeInteractiveTarget(t._path),delete this._layers[o(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Z(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){re(t._path)},_bringToBack:function(t){oe(t._path)}});function di(t){return Mt||Tt?new ci(t):null}Tt&&ci.include(li),Ve.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&ai(t)||di(t)}});var hi=In.extend({initialize:function(t,e){In.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=j(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});ci.create=ui,ci.pointsToPath=Z,Nn.geometryToLayer=Rn,Nn.coordsToLatLng=zn,Nn.coordsToLatLngs=Yn,Nn.latLngToCoords=Fn,Nn.latLngsToCoords=Bn,Nn.getFeature=$n,Nn.asFeature=Hn,Ve.mergeOptions({boxZoom:!0});var fi=Ke.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Ce(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Se(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ne(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),$t(),ve(),this._startPoint=this._map.mouseEventToContainerPoint(t),Ce(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ee("div","leaflet-zoom-box",this._container),se(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new I(this._point,this._startPoint),n=e.getSize();pe(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ne(this._box),le(this._container,"leaflet-crosshair")),Ht(),ye(),Se(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ve.addInitHook("addHandler","boxZoom",fi),Ve.mergeOptions({doubleClickZoom:!0});var pi=Ke.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,r=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});Ve.addInitHook("addHandler","doubleClickZoom",pi),Ve.mergeOptions({dragging:!0,inertia:!nt,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var mi=Ke.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new on(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}se(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){le(this._map._container,"leaflet-grab"),le(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=j(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,r=(i-e+n)%t+e-n,o=(i+e+n)%t-e-n,a=Math.abs(r+n)0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});Ve.addInitHook("addHandler","scrollWheelZoom",vi),Ve.mergeOptions({tap:!0,tapTolerance:15});var yi=Ke.extend({addHooks:function(){Ce(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Se(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ie(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new P(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&se(n,"leaflet-active"),this._holdTimeout=setTimeout(i((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Ce(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Se(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&le(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new P(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});!wt||bt&&!lt||Ve.addInitHook("addHandler","tap",yi),Ve.mergeOptions({touchZoom:wt&&!nt,bounceAtZoomLimits:!0});var _i=Ke.extend({addHooks:function(){se(this._map._container,"leaflet-touch-zoom"),Ce(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){le(this._map._container,"leaflet-touch-zoom"),Se(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Ce(document,"touchmove",this._onTouchMove,this),Ce(document,"touchend",this._onTouchEnd,this),Ie(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(r)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),S(this._animRequest);var s=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=C(s,this,!0),Ie(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,S(this._animRequest),Se(document,"touchmove",this._onTouchMove,this),Se(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ve.addInitHook("addHandler","touchZoom",_i),Ve.BoxZoom=fi,Ve.DoubleClickZoom=pi,Ve.Drag=mi,Ve.Keyboard=gi,Ve.ScrollWheelZoom=vi,Ve.Tap=yi,Ve.TouchZoom=_i,t.version="1.7.1",t.Control=We,t.control=Ge,t.Browser=Ot,t.Evented=O,t.Mixin=tn,t.Util=M,t.Class=T,t.Handler=Ke,t.extend=e,t.bind=i,t.stamp=o,t.setOptions=h,t.DomEvent=He,t.DomUtil=ke,t.PosAnimation=Ue,t.Draggable=on,t.LineUtil=pn,t.PolyUtil=gn,t.Point=P,t.point=A,t.Bounds=I,t.bounds=N,t.Transformation=U,t.transformation=V,t.Projection=_n,t.LatLng=z,t.latLng=Y,t.LatLngBounds=R,t.latLngBounds=j,t.CRS=B,t.GeoJSON=Nn,t.geoJSON=Vn,t.geoJson=Wn,t.Layer=kn,t.LayerGroup=Cn,t.layerGroup=function(t,e){return new Cn(t,e)},t.FeatureGroup=Ln,t.featureGroup=function(t,e){return new Ln(t,e)},t.ImageOverlay=Gn,t.imageOverlay=function(t,e,n){return new Gn(t,e,n)},t.VideoOverlay=qn,t.videoOverlay=function(t,e,n){return new qn(t,e,n)},t.SVGOverlay=Zn,t.svgOverlay=function(t,e,n){return new Zn(t,e,n)},t.DivOverlay=Xn,t.Popup=Jn,t.popup=function(t,e){return new Jn(t,e)},t.Tooltip=Kn,t.tooltip=function(t,e){return new Kn(t,e)},t.Icon=Sn,t.icon=function(t){return new Sn(t)},t.DivIcon=Qn,t.divIcon=function(t){return new Qn(t)},t.Marker=En,t.marker=function(t,e){return new En(t,e)},t.TileLayer=ei,t.tileLayer=ni,t.GridLayer=ti,t.gridLayer=function(t){return new ti(t)},t.SVG=ci,t.svg=di,t.Renderer=ri,t.Canvas=oi,t.canvas=ai,t.Path=On,t.CircleMarker=Pn,t.circleMarker=function(t,e){return new Pn(t,e)},t.Circle=Dn,t.circle=function(t,e,n){return new Dn(t,e,n)},t.Polyline=An,t.polyline=function(t,e){return new An(t,e)},t.Polygon=In,t.polygon=function(t,e){return new In(t,e)},t.Rectangle=hi,t.rectangle=function(t,e){return new hi(t,e)},t.Map=Ve,t.map=function(t,e){return new Ve(t,e)};var bi=window.L;t.noConflict=function(){return window.L=bi,this},window.L=t}(e)},"4SqR":function(t,e,n){"use strict";var i=n("TzP/");n.n(i).a},"4dOw":function(t,e,n){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},"4loq":function(t){t.exports=JSON.parse('{"do-you-pickup":"Do you pick up the litter or leave it there?","save-def-settings":"You can save your default setting here.","change-value-of-litter":"You can also change the value of each litter item as you are tagging them.","status":"Current Status","toggle-presence":"Toggle Presence","pickup?":"Pick up?"}')},"5/+K":function(t,e,n){var i=n("nyqT");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"55Cu":function(t,e,n){var i=n("V3s9");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"56Dk":function(t){t.exports=JSON.parse('{"delete-account":"Eliminar mi cuenta","delete-account?":"¿Quieres elimar tu cuenta?","enter-password":"Introduce tu contraseña"}')},"56GE":function(t,e,n){"use strict";var i=n("QbqM");n.n(i).a},"5A0h":function(t,e,n){var i=n("WJbV");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"5H76":function(t,e,n){var i=n("1Ttm");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"5QBx":function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i);function o(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,l,"next",t)}function l(t){o(a,i,r,s,l,"throw",t)}s(void 0)}))}}var s={name:"Account",created:function(){var t=this;return a(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("GET_PLANS");case 2:case"end":return e.stop()}}),e)})))()},data:function(){return{btn:"button is-danger",processing:!1,password:""}},computed:{button:function(){return this.processing?this.btn+" is-loading":this.btn},errors:function(){return this.$store.state.user.errors},plans:function(){return this.$store.state.createaccount.plans}},methods:{clearError:function(t){this.errors[t]&&this.$store.commit("deleteUserError",t)},getFirstError:function(t){return this.errors[t][0]},errorExists:function(t){return this.errors.hasOwnProperty(t)},submit:function(){var t=this;return a(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.processing=!0,e.next=3,t.$store.dispatch("DELETE_ACCOUNT",t.password);case 3:t.processing=!1,t.password="";case 5:case"end":return e.stop()}}),e)})))()}}},l=n("KHd+"),u=Object(l.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[n("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.account.delete-account")))]),t._v(" "),n("hr"),t._v(" "),n("p",[t._v(t._s(t.$t("settings.account.delete-account")))]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-one-third is-offset-1"},[n("div",{staticClass:"row"},[n("form",{attrs:{method:"POST"},on:{submit:function(e){return e.preventDefault(),t.submit(e)},keydown:function(e){return t.clearError(e.target.name)}}},[n("label",{attrs:{for:"password"}},[t._v(t._s(t.$t("settings.account.delete-account?")))]),t._v(" "),t.errorExists("password")?n("span",{staticClass:"is-danger",domProps:{textContent:t._s(t.getFirstError("password"))}}):t._e(),t._v(" "),n("div",{staticClass:"field"},[n("div",{staticClass:"control"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"input",attrs:{type:"password",name:"password",id:"password",placeholder:"******",required:""},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})])]),t._v(" "),n("button",{class:t.button},[t._v(t._s(t.$t("settings.account.enter-password")))])])])])])])}),[],!1,null,null,null);e.default=u.exports},"5S+d":function(t){t.exports=JSON.parse('{"taken-on":"Taken on","with-a":"With a","by":"By","meter-hex-grids":"meter hex grids","hover-to-count":"Hover over to count","pieces-of-litter":"pieces of litter","hover-polygons-to-count":"Hover over polygons to count"}')},"5fw7":function(t,e,n){(e=t.exports=n("I1BE")(!1)).i(n("mtZm"),""),e.i(n("+pLR"),""),e.push([t.i,".btn-map-fullscreen {\n position: absolute;\n top: 1em;\n right: 1em;\n z-index: 1234;\n}\n\n/* remove padding on mobile */\n.profile-map-container {\n height: 100%;\n position: relative;\n}\n.leaflet-popup-content {\n width: 180px !important;\n}\n.lealet-popup {\n left: -106px !important;\n}\n.img-tag {\n margin-bottom: 5px;\n color: black !important;\n}",""])},"5n2/":function(t,e){function n(t){return"function"==typeof t.value}function i(t){return void 0!==t.componentInstance&&t.componentInstance.$isServer}t.exports={bind:function(t,e,r){if(!n(e))return;function o(e){if(r.context){var n=e.path||e.composedPath&&e.composedPath();n&&n.length>0&&n.unshift(e.target),t.contains(e.target)||function(t,e){if(!t||!e)return!1;for(var n=0,i=e.length;n=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<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}})}(n("wd/R"))},"61Kv":function(t){t.exports=JSON.parse('{"change-details":"Verander Persoonlijke Details","your-name":"Jouw Naam","unique-id":"Uniek Kenmerk","email":"Email","update-details":"Details Bijwerken"}')},"6B0Y":function(t,e,n){!function(t){"use strict";var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};t.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(t){return"ល្ងាច"===t},meridiem:function(t,e,n){return t<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(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(n("wd/R"))},"6mC8":function(t){t.exports=JSON.parse('{"change-details":"Change Personal Details","your-name":"Your name","unique-id":"Unique Identifier","email":"Email","update-details":"Update Details"}')},"6tWx":function(t,e,n){(function(e){t.exports=function(){"use strict";var t=function(){this._properties={},this._namespace="",this._isSupported=!0},n={namespace:{}};n.namespace.get=function(){return this._namespace},n.namespace.set=function(t){this._namespace=t?t+".":""},t.prototype._getLsKey=function(t){return""+this._namespace+t},t.prototype._lsSet=function(t,e,n){var i=this._getLsKey(t),r=n&&[Array,Object].includes(n)?JSON.stringify(e):e;window.localStorage.setItem(i,r)},t.prototype._lsGet=function(t){var e=this._getLsKey(t);return window.localStorage[e]},t.prototype.get=function(t,e,n){if(void 0===e&&(e=null),void 0===n&&(n=String),!this._isSupported)return null;if(this._lsGet(t)){var i=n;for(var r in this._properties)if(r===t){i=this._properties[r].type;break}return this._process(i,this._lsGet(t))}return null!==e?e:null},t.prototype.set=function(t,e){if(!this._isSupported)return null;for(var n in this._properties){var i=this._properties[n].type;if(n===t)return this._lsSet(t,e,i),e}return this._lsSet(t,e),e},t.prototype.remove=function(t){return this._isSupported?window.localStorage.removeItem(t):null},t.prototype.addProperty=function(t,e,n){void 0===n&&(n=void 0),e=e||String,this._properties[t]={type:e},this._lsGet(t)||null===n||this._lsSet(t,n,e)},t.prototype._process=function(t,e){switch(t){case Boolean:return"true"===e;case Number:return parseFloat(e);case Array:try{var n=JSON.parse(e);return Array.isArray(n)?n:[]}catch(t){return[]}case Object:try{return JSON.parse(e)}catch(t){return{}}default:return e}},Object.defineProperties(t.prototype,n);var i=new t;return{install:function(t,n){if(void 0===n&&(n={}),void 0===e||!(e.server||e.SERVER_BUILD||e.env&&"server"===e.env.VUE_ENV)){var r=!0;try{var o="__vue-localstorage-test__";window.localStorage.setItem(o,o),window.localStorage.removeItem(o)}catch(t){r=!1,i._isSupported=!1}var a=n.name||"localStorage",s=n.bind;n.namespace&&(i.namespace=n.namespace),t.mixin({beforeCreate:function(){var e=this;r&&this.$options[a]&&Object.keys(this.$options[a]).forEach((function(n){var r=e.$options[a][n],o=[r.type,r.default],l=o[0],u=o[1];if(i.addProperty(n,l,u),Object.getOwnPropertyDescriptor(i,n))t.config.silent;else{var c={get:function(){return t.localStorage.get(n,u)},set:function(e){return t.localStorage.set(n,e)},configurable:!0};Object.defineProperty(i,n,c),t.util.defineReactive(i,n,u)}(s||r.bind)&&!1!==r.bind&&(e.$options.computed=e.$options.computed||{},e.$options.computed[n]||(e.$options.computed[n]={get:function(){return t.localStorage[n]},set:function(e){t.localStorage[n]=e}}))}))}}),t[a]=i,t.prototype["$"+a]=i}}}}()}).call(this,n("8oxB"))},"6xtA":function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("ksP6"),a=n.n(o),s=n("XuX8"),l=n.n(s);function u(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var c={name:"Upload",components:{vueDropzone:a.a},data:function(){return{options:{url:"/submit",thumbnailWidth:150,maxFilesize:20,headers:{"X-CSRF-TOKEN":window.axios.defaults.headers.common["X-CSRF-TOKEN"]},includeStyling:!0,duplicateCheck:!0,paramName:"file"},showTagLitterButton:!0}},created:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Object.keys(0===e.$store.state.user.user.length)){t.next=3;break}return t.next=3,e.$store.dispatch("GET_CURRENT_USER");case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){u(o,i,r,a,s,"next",t)}function s(t){u(o,i,r,a,s,"throw",t)}a(void 0)}))})()},methods:{failed:function(t,e){var n=document.querySelectorAll(".dz-error-message span");n[n.length-1].textContent=e.message;var i=this.$t("notifications.error"),r=e.message;l.a.$vToastify.error({title:i,body:r,position:"top-right",type:"error"})},uploadStarted:function(t){this.showTagLitterButton=!1},uploadCompleted:function(t){this.showTagLitterButton=!0},tag:function(){this.$router.push({path:"/tag"})}}},d=(n("V6Zk"),n("KHd+")),h=Object(d.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"section hero fullheight is-warning is-bold upload-section"},[n("div",{staticClass:"container ma has-text-centered",staticStyle:{"flex-grow":"0",width:"100%"}},[n("h1",{staticClass:"title is-1 drop-title"},[t._v("\n "+t._s(t.$t("upload.click-to-upload"))+"\n ")]),t._v(" "),n("vue-dropzone",{attrs:{id:"customdropzone",options:t.options,"use-custom-slot":!0},on:{"vdropzone-error":t.failed,"vdropzone-files-added":t.uploadStarted,"vdropzone-file-added":t.uploadStarted,"vdropzone-complete-multiple":t.uploadCompleted,"vdropzone-complete":t.uploadCompleted}},[n("i",{staticClass:"fa fa-image upload-icon",attrs:{"aria-hidden":"true"}})]),t._v(" "),n("h2",{staticClass:"title is-2"},[t._v("\n "+t._s(t.$t("upload.thank-you"))+"\n ")]),t._v(" "),n("h3",{staticClass:"title is-3 mb2r"},[t._v("\n "+t._s(t.$t("upload.need-tag-litter"))+"\n ")]),t._v(" "),t.showTagLitterButton?n("button",{staticClass:"button is-medium is-info hov",on:{click:t.tag}},[t._v("\n "+t._s(t.$t("upload.tag-litter"))),n("i",{staticClass:"fa fa-arrow-right",attrs:{"aria-hidden":"true"}})]):t._e()],1)])}),[],!1,null,"10353884",null);e.default=h.exports},"6zfT":function(t,e,n){"use strict";n.r(e);var i,r,o,a,s=n("o0o1"),l=n.n(s),u=n("kGIl"),c=n.n(u),d=(n("5A0h"),n("Vjiq"),n("eC5B"),{name:"live-events",channel:"main",echo:{ImageUploaded:function(t,e){document.title="OpenLitterMap ("+(e.events.length+1)+")",e.events.unshift({type:"image",city:t.city,state:t.state,country:t.country,imageName:t.imageName,teamName:t.teamName,countryCode:t.countryCode})},NewCountryAdded:function(t,e){document.title="OpenLitterMap ("+(e.events.length+1)+")",e.events.unshift({type:"country",country:t.country,countryId:t.countryId})},NewStateAdded:function(t,e){document.title="OpenLitterMap ("+(e.events.length+1)+")",e.events.unshift({type:"state",state:t.state,stateId:t.stateId})},NewCityAdded:function(t,e){document.title="OpenLitterMap ("+(e.events.length+1)+")",e.events.unshift({type:"city",city:t.city,cityId:t.cityId})},UserSignedUp:function(t,e){document.title="OpenLitterMap ("+(e.events.length+1)+")",e.events.unshift({type:"new-user",now:t.now})},TeamCreated:function(t,e){document.title="OpenLitterMap ("+(e.events.length+1)+")",e.events.unshift({type:"team-created",name:t.name})},".App\\Events\\Littercoin\\LittercoinMined":function(t,e){document.title="OpenLitterMap ("+(e.events.length+1)+")",e.events.unshift({type:"littercoin-mined",reason:t.reason,userId:t.userId})}},data:function(){return{dir:"/assets/icons/flags/",events:[]}},methods:{countryFlag:function(t){return t?(t=t.toLowerCase(),this.dir+t+".png"):""},getKey:function(t){return"image"===t.type?t.type+t.imageName:"country"===t.type?t.type+t.countryId:"state"===t.type?t.type+t.stateId:"city"===t.type?t.type+t.cityId:"new-user"===t.type?t.type+t.now:"team-created"===t.type?t.type+t.name:"littercoin-mined"===t.type?t.type+t.userId+t.now:this.events.length},getLittercoinReason:function(t){return"verified-box"===t?"100 OpenLitterAI boxes verified":"100-images-verified"===t?"100 images verified":void 0}}}),h=(n("22Q+"),n("KHd+")),f=Object(h.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-menu"},[n("transition-group",{attrs:{name:"list"}},t._l(t.events,(function(e){return n("span",{key:t.getKey(e),staticClass:"list-item"},["image"===e.type?n("div",{staticClass:"event",staticStyle:{"background-color":"#88d267"}},[n("aside",{staticClass:"grid-img"},[e.countryCode?n("img",{attrs:{src:t.countryFlag(e.countryCode),width:"35"}}):n("i",{staticClass:"fa fa-image"})]),t._v(" "),n("div",{staticClass:"grid-main"},[n("strong",[t._v("New image")]),t._v(" "),n("br"),t._v(" "),n("i",{staticClass:"event-subtitle city-name"},[t._v(t._s(e.city)+", "+t._s(e.state))]),t._v(" "),n("p",{staticClass:"event-subtitle"},[t._v(t._s(e.country))]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:e.teamName,expression:"event.teamName"}]},[t._v("By Team: "),n("strong",[t._v(t._s(e.teamName))])])])]):"country"===e.type?n("div",{staticClass:"event",staticStyle:{"background-color":"#4bb0e0"}},[n("aside",{staticClass:"grid-img"},[n("i",{staticClass:"fa fa-flag"})]),t._v(" "),n("div",{staticClass:"grid-main"},[n("strong",[t._v("New Country")]),t._v(" "),n("p",[t._v("Say hello to "),n("i",[t._v(t._s(e.country))])])])]):"state"===e.type?n("div",{staticClass:"event",staticStyle:{"background-color":"#4bb0e0"}},[n("aside",{staticClass:"grid-img"},[n("i",{staticClass:"fa fa-flag"})]),t._v(" "),n("div",{staticClass:"grid-main"},[n("strong",[t._v("New State")]),t._v(" "),n("p",[t._v("Say hello to "),n("i",[t._v(t._s(e.state))])])])]):"city"===e.type?n("div",{staticClass:"event",staticStyle:{"background-color":"#4bb0e0"}},[n("aside",{staticClass:"grid-img"},[n("i",{staticClass:"fa fa-flag"})]),t._v(" "),n("div",{staticClass:"grid-main"},[n("strong",[t._v("New City")]),t._v(" "),n("p",[t._v("Say hello to "),n("i",[t._v(t._s(e.city))])])])]):"new-user"===e.type?n("div",{staticClass:"event",staticStyle:{"background-color":"#f1c40f"}},[n("aside",{staticClass:"grid-img"},[n("i",{staticClass:"fa fa-user"})]),t._v(" "),n("div",{staticClass:"grid-main"},[n("p",{staticClass:"new-user-text-wide"},[t._v("A new user has signed up!")])])]):"team-created"===e.type?n("div",{staticClass:"event",staticStyle:{"background-color":"#e256fff0"}},[n("aside",{staticClass:"grid-img"},[n("i",{staticClass:"fa fa-users"})]),t._v(" "),n("div",{staticClass:"grid-main"},[n("p",[t._v("A new Team has been created!")]),t._v(" "),n("i",[t._v("Say hello to "),n("strong",[t._v(t._s(e.name))]),t._v("!")])])]):"littercoin-mined"===e.type?n("div",{staticClass:"event",staticStyle:{"background-color":"#e256fff0"}},[n("aside",{staticClass:"grid-img"},[n("img",{staticClass:"ltr-icon",attrs:{src:"/assets/icons/mining.png"}})]),t._v(" "),n("div",{staticClass:"grid-main"},[n("p",[t._v("A Littercoin has been mined!")]),t._v(" "),n("i",[t._v("Reason: "),n("span",{staticClass:"ltr-strong"},[t._v(t._s(t.getLittercoinReason(e.reason)))])])])]):n("div")])})),0)],1)}),[],!1,null,null,null).exports,p=n("YFMt"),m=n("4R65"),g=n.n(m),v=n("wd/R"),y=n.n(v),_=(n("tmUW"),n("ltXA")),b=n("UZfx"),w=n.n(b);function x(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function k(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){x(o,i,r,a,s,"next",t)}function s(t){x(o,i,r,a,s,"throw",t)}a(void 0)}))}}var C,L,S=p.e,M=!1,T=!1,E=g.a.icon({iconUrl:"./images/vendor/leaflet/dist/dot.png",iconSize:[10,10]}),O=g.a.icon({iconUrl:"./images/vendor/leaflet/dist/grey-dot.jpg",iconSize:[13,10]});function P(t,e){var n=[e.lng,e.lat];return 2===t.properties.verified?g.a.marker(n,{icon:E}):g.a.marker(n,{icon:O})}function D(t,e){if(!t.properties.cluster)return 2===t.properties.verified?g.a.marker(e,{icon:E}):g.a.marker(e,{icon:O});var n=t.properties.point_count,i=n'+t.properties.point_count_abbreviated+"",className:"marker-cluster-"+i,iconSize:g.a.point(40,40)});return g.a.marker(e,{icon:r})}function A(){M&&(i.removeControl(C),M=!1),T||((L=g.a.control.layers(null,null).addTo(i)).addOverlay(r,"Global"),L.addOverlay(o,"Litter Art"),T=!0)}function I(){if(T&&(i.removeControl(L),T=!1),!M){var t={Alcohol:new g.a.LayerGroup,Brands:new g.a.LayerGroup,Coastal:new g.a.LayerGroup,Coffee:new g.a.LayerGroup,Dumping:new g.a.LayerGroup,Food:new g.a.LayerGroup,Industrial:new g.a.LayerGroup,Other:new g.a.LayerGroup,PetSurprise:new g.a.LayerGroup,Sanitary:new g.a.LayerGroup,Smoking:new g.a.LayerGroup,SoftDrinks:new g.a.LayerGroup};C=g.a.control.layers(null,t).addTo(i),M=!0}}function N(t,e){t.properties.cluster&&e.on("click",(function(t){var e=i.getZoom()+p.f>p.c?p.c:i.getZoom()+p.f;i.flyTo(t.latlng,e,{animate:!0,duration:2})}))}function R(t,e){e.on("click",(function(e){i.flyTo(t.geometry.coordinates,14,{animate:!0,duration:10});var n=t.properties.name||t.properties.username?"By ".concat(t.properties.name?t.properties.name:""," ").concat(t.properties.username?"@"+t.properties.username:""):"",r=t.properties.team?"\nTeam ".concat(t.properties.team):"";g.a.popup().setLatLng(t.geometry.coordinates).setContent('

Taken on '+y()(t.properties.datetime).format("LLL")+"

"+n+r+"
").openOn(i)}))}function j(){return z.apply(this,arguments)}function z(){return(z=k(l.a.mark((function t(){var e,n,o,s;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.getBounds(),n={left:e.getWest(),bottom:e.getSouth(),right:e.getEast(),top:e.getNorth()},2!==(o=Math.round(i.getZoom()))||o!==S){t.next=5;break}return t.abrupt("return");case 5:if(3!==o||o!==S){t.next=7;break}return t.abrupt("return");case 7:if(4!==o||o!==S){t.next=9;break}return t.abrupt("return");case 9:if(5!==o||o!==S){t.next=11;break}return t.abrupt("return");case 11:if(a&&(r.clearLayers(),a.remove()),!(o

'+a+"

Taken on "+y()(o.properties.datetime).format("LLL")+"

"+l+u+"
").openOn(i)}}})})).catch((function(t){}));case 22:S=o;case 23:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Y(){var t=[];return C._layerControlInputs.forEach((function(e,n){if(e.checked){var i="petsurprise"===C._layers[n].name.toLowerCase()?"dogshit":C._layers[n].name.toLowerCase();t.push(i)}})),t.length>0?t:null}var F={name:"Supercluster",components:{LiveEvents:f},mounted:function(){(i=g.a.map("super",{center:[0,0],zoom:p.e,scrollWheelZoom:!1,smoothWheelZoom:!0,smoothSensitivity:1})).scrollWheelZoom=!0;var t=(new Date).getFullYear();g.a.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'Map data © OpenStreetMap & Contributors',maxZoom:p.c,minZoom:p.e}).addTo(i),i.attributionControl.addAttribution("Litter data © OpenLitterMap & Contributors "+t+" Clustering @ MapBox"),(r=g.a.geoJSON(null,{pointToLayer:D,onEachFeature:N}).addTo(i)).addData(this.$store.state.globalmap.geojson.features),(o=g.a.geoJSON(null,{pointToLayer:P,onEachFeature:R})).addData(this.$store.state.globalmap.artData.features),i.on("moveend",(function(){j()})),A(),i.on("overlayadd",j),i.on("overlayremove",j)}},B=(n("uszs"),Object(h.a)(F,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"h100"},[e("div",{ref:"super",attrs:{id:"super"}}),this._v(" "),e("LiveEvents")],1)}),[],!1,null,null,null).exports);function $(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function H(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){$(o,i,r,a,s,"next",t)}function s(t){$(o,i,r,a,s,"throw",t)}a(void 0)}))}}var U={name:"GlobalMapContainer",components:{Loading:c.a,Supercluster:B},data:function(){return{mapHeight:window.outerHeight-72}},created:function(){var t=this;return H(l.a.mark((function e(){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isMobile&&t.addEventListenerIfMobile(),e.next=3,t.$store.dispatch("GET_CLUSTERS",2);case 3:return e.next=5,t.$store.dispatch("GET_ART_DATA");case 5:t.$store.commit("globalLoading",!1);case 6:case"end":return e.stop()}}),e)})))()},destroyed:function(){var t=this;return H(l.a.mark((function e(){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.removeEventListener("resize",t.resizeHandler);case 1:case"end":return e.stop()}}),e)})))()},computed:{loading:function(){return this.$store.state.globalmap.loading},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},methods:{addEventListenerIfMobile:function(){this.mapHeight=window.innerHeight-72+"px",window.addEventListener("resize",this.resizeHandler)},resizeHandler:function(){this.mapHeight=window.innerHeight-72+"px"}}},V=(n("3jk2"),Object(h.a)(U,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"global-map-container",style:{height:t.mapHeight}},[t.loading?n("loading",{attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(e){t.loading=e}}}):n("supercluster")],1)}),[],!1,null,"26f69278",null));e.default=V.exports},"73T2":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n\n.vue-simple-suggest > ul {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.vue-simple-suggest.designed {\n position: relative;\n}\n\n.vue-simple-suggest.designed, .vue-simple-suggest.designed * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.vue-simple-suggest.designed .input-wrapper input {\n display: block;\n width: 100%;\n padding: 10px;\n border: 1px solid #cde;\n border-radius: 3px;\n color: black;\n background: white;\n outline:none;\n -webkit-transition: all .1s;\n transition: all .1s;\n -webkit-transition-delay: .05s;\n transition-delay: .05s\n}\n\n.vue-simple-suggest.designed.focus .input-wrapper input {\n border: 1px solid #aaa;\n}\n\n.vue-simple-suggest.designed .suggestions {\n position: absolute;\n left: 0;\n right: 0;\n top: 100%;\n top: calc(100% + 5px);\n border-radius: 3px;\n border: 1px solid #aaa;\n background-color: #fff;\n opacity: 1;\n z-index: 1000;\n}\n\n.vue-simple-suggest.designed .suggestions .suggest-item {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.vue-simple-suggest.designed .suggestions .suggest-item,\n.vue-simple-suggest.designed .suggestions .misc-item {\n padding: 5px 10px;\n}\n\n.vue-simple-suggest.designed .suggestions .suggest-item.hover {\n background-color: #2874D5 !important;\n color: #fff !important;\n}\n\n.vue-simple-suggest.designed .suggestions .suggest-item.selected {\n background-color: #2832D5;\n color: #fff;\n}\n",""])},"78c4":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".drop-title[data-v-10353884] {\n margin-bottom: 1.5em;\n text-align: center;\n}\n.upload-section[data-v-10353884] {\n padding: 5rem;\n}\n.upload-section .fa-arrow-right[data-v-10353884] {\n margin-left: 10px;\n}\n#customdropzone[data-v-10353884] {\n border: 2px #80d8f2 dashed;\n border-radius: 10px;\n margin-bottom: 3rem;\n}\n@media (min-width: 992px) {\n#customdropzone[data-v-10353884] {\n margin-left: 4rem;\n margin-right: 4rem;\n}\n}\n@media (max-width: 575.98px) {\n.drop-title[data-v-10353884] {\n font-size: 2.5rem;\n}\n.upload-section[data-v-10353884] {\n padding: 2rem;\n}\n}\n.upload-icon[data-v-10353884] {\n font-size: 60px;\n}\n.upload-icon[data-v-10353884]:hover {\n transform: translate(0px, -5px);\n transition-duration: 0.3s;\n}",""])},"7BjC":function(t,e,n){!function(t){"use strict";function e(t,e,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}t.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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"7C5Q":function(t,e,n){!function(t){"use strict";t.defineLocale("en-in",{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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:6}})}(n("wd/R"))},"7QOT":function(t){t.exports=JSON.parse('{"taken-on":"Genomen op","with-a":"Met een","by":"Door","meter-hex-grids":"meter hex rooster","hover-to-count":"Ga er met de muis overheen om te tellen","pieces-of-litter":"aantal items","hover-polygons-to-count":"Ga met de muis over de polygons om te tellen"}')},"7VP3":function(t){t.exports=JSON.parse('{"login-btn":"Iniciar sesión","signup-text":"Regístrate","forgot-password":"¿Olvidaste tu contraseña?"}')},"7aV9":function(t,e,n){!function(t){"use strict";t.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(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,n){return t>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n("wd/R"))},"7dii":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,'.vfc-popover-container:focus {\n outline: none;\n}\n.vfc-single-input, .vfc-multiple-input input {\n font-size: inherit;\n -webkit-transition: width 200ms;\n transition: width 200ms;\n padding: 7px;\n width: 143px;\n color: #aaaaaa;\n border: 1px solid #efefef;\n text-align: center;\n outline: none;\n}\n.vfc-single-input {\n border-radius: 10px;\n}\n.vfc-multiple-input input:first-child {\n border-radius: 10px 0 0 10px;\n}\n.vfc-multiple-input input:last-child {\n border-radius: 0 10px 10px 0;\n}\n.vfc-tags-input {\n display: -moz-flex;\n display: -ms-flex;\n display: -o-flex;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.vfc-tags-input input {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n background: transparent;\n border: none;\n}\n.vfc-tags-input input[type=text] {\n color: #495057;\n}\n.vfc-tags-input input:focus {\n outline: none;\n}\n.vfc-tags-input span {\n margin-right: 0.3em;\n margin-bottom: 0.3em;\n padding-right: 0.75em;\n padding-left: 0.6em;\n border-radius: 10em;\n}\n.vfc-tags-input-wrapper-default {\n width: 295px;\n padding: 0.5em 0.25em;\n min-height: 15px;\n background: #ffffff;\n border: 1px solid #dbdbdb;\n border-radius: 10px;\n}\n.vfc-tags-input-badge {\n width: 85px;\n background-color: #f0f1f2;\n position: relative;\n display: inline-block;\n padding: 0.25em 0.4em;\n font-size: 75%;\n font-weight: 700;\n line-height: 1;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: 0.25em;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.vfc-tags-input-remove {\n cursor: pointer;\n position: absolute;\n display: inline-block;\n right: 0.3em;\n top: 0.3em;\n padding: 0.5em;\n overflow: hidden;\n}\n.vfc-tags-input-remove::before, .vfc-tags-input-remove::after {\n content: "";\n position: absolute;\n width: 75%;\n left: 0.15em;\n background: #ff8498;\n height: 2px;\n margin-top: -1px;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n.vfc-tags-input-remove::after {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n}\n.vfc-dark.vfc-multiple-input input {\n border-color: #28456c;\n background-color: #1a202c;\n}\n.vfc-dark .vfc-single-input {\n border-color: #28456c;\n background-color: #1a202c;\n}\n.vfc-dark.vfc-tags-input-root .vfc-tags-input-wrapper-default {\n background-color: #1a202c;\n border-color: #28456c;\n}\n.vfc-dark.vfc-tags-input-root .vfc-tags-input-wrapper-default.vfc-tags-input .vfc-tags-input-badge {\n background-color: #ffffff;\n}\n.vfc-main-container {\n position: relative;\n border-radius: 0.28571429rem;\n -webkit-box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.25);\n box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.25);\n font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", serif;\n background-color: #ffffff;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.vfc-main-container.vfc-modal {\n position: absolute;\n width: inherit;\n z-index: 1000;\n}\n.vfc-main-container > * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.vfc-main-container.vfc-dark {\n background-color: #1a202c;\n}\n.vfc-main-container.vfc-dark .vfc-navigation-buttons div .vfc-arrow-right,\n.vfc-main-container.vfc-dark .vfc-navigation-buttons div .vfc-arrow-left,\n.vfc-main-container.vfc-dark .vfc-separately-navigation-buttons div .vfc-arrow-right,\n.vfc-main-container.vfc-dark .vfc-separately-navigation-buttons div .vfc-arrow-left {\n border-color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-navigation-buttons div .vfc-arrow-left:active,\n.vfc-main-container.vfc-dark .vfc-navigation-buttons div .vfc-arrow-right:active,\n.vfc-main-container.vfc-dark .vfc-separately-navigation-buttons div .vfc-arrow-left:active,\n.vfc-main-container.vfc-dark .vfc-separately-navigation-buttons div .vfc-arrow-right:active {\n border-color: #d9d9d9;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar .vfc-months-container .vfc-content {\n background-color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar .vfc-months-container .vfc-content .vfc-navigation-buttons div .vfc-arrow-left,\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar .vfc-months-container .vfc-content .vfc-navigation-buttons div .vfc-arrow-right {\n border-color: #000000;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar .vfc-months-container .vfc-content .vfc-navigation-buttons .vfc-top-date {\n color: #000000;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar .vfc-months-container .vfc-content .vfc-navigation-buttons .vfc-top-date .vfc-popover-caret {\n background-color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar .vfc-months-container .vfc-content .vfc-navigation-buttons .vfc-top-date.vfc-underline {\n -webkit-text-decoration: underline dotted #66b3cc;\n text-decoration: underline dotted #66b3cc;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar .vfc-months-container .vfc-content .vfc-months div.vfc-item {\n color: #000000;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar .vfc-months-container .vfc-content .vfc-months div.vfc-item:hover {\n background-color: rgba(113, 113, 113, 0.3);\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar .vfc-months-container .vfc-content .vfc-months div.vfc-item.vfc-selected {\n background-color: #4299e1;\n color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-top-date span {\n color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-top-date span.vfc-underline {\n -webkit-text-decoration: underline #4299e1;\n text-decoration: underline #4299e1;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-top-date span.vfc-underline.vfc-underline-active {\n -webkit-text-decoration-color: #ffffff;\n text-decoration-color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-dayNames span {\n color: #bfbfbf;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week .vfc-week-number {\n border-color: #38b2ac;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day .vfc-base-start,\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day .vfc-base-end {\n background-color: #28456c;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day {\n color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-today {\n background-color: #38b2ac;\n color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-marked {\n background-color: #4299e1;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-marked.vfc-borderd, .vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-marked.vfc-start-marked, .vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-marked.vfc-end-marked {\n color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-marked:not(.vfc-start-marked):not(.vfc-end-marked):before {\n background-color: #28456c;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-marked:after {\n color: #000000;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-marked.vfc-hide {\n color: #bfbfbf;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-hide {\n color: #464646;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-disabled {\n color: rgba(133, 133, 133, 0.2);\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day:after {\n color: #000000;\n}\n.vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-hover:hover, .vfc-main-container.vfc-dark .vfc-calendars .vfc-calendar div.vfc-content .vfc-week div.vfc-day span.vfc-span-day.vfc-hovered {\n z-index: 1;\n background-color: #4682b4;\n}\n.vfc-main-container.vfc-dark .vfc-time-picker-container .vfc-time-picker__list .vfc-time-picker__item {\n color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-time-picker-container .vfc-time-picker__list .vfc-time-picker__item--selected {\n color: #4299e1;\n}\n.vfc-main-container.vfc-dark .vfc-time-picker-container .vfc-time-picker__list::-webkit-scrollbar-track {\n background: #28456c;\n}\n.vfc-main-container.vfc-dark .vfc-time-picker-container .vfc-time-picker__list::-webkit-scrollbar-thumb {\n background: #4299e1;\n}\n.vfc-main-container.vfc-dark .vfc-time-picker-container .vfc-close:before,\n.vfc-main-container.vfc-dark .vfc-time-picker-container .vfc-close:after {\n background-color: #ffffff;\n}\n.vfc-main-container.vfc-dark .vfc-time-picker-container .vfc-modal-time-mechanic .vfc-modal-time-line {\n background-color: #4299e1;\n color: #ffffff;\n}\n.vfc-time-picker::after {\n content: "";\n display: table;\n clear: both;\n}\n.vfc-time-picker-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.vfc-time-picker__list {\n float: left;\n width: 50%;\n height: 200px;\n overflow-y: scroll;\n}\n.vfc-time-picker__list::-webkit-scrollbar {\n width: 3px;\n}\n.vfc-time-picker__list::-webkit-scrollbar-track {\n background: #efefef;\n}\n.vfc-time-picker__list::-webkit-scrollbar-thumb {\n background: #cccccc;\n}\n.vfc-time-picker__with-suffix .vfc-time-picker__list {\n width: 33.333333%;\n}\n.vfc-time-picker__item {\n padding: 10px 0;\n font-size: 20px;\n text-align: center;\n cursor: pointer;\n -webkit-transition: font-size 0.3s;\n transition: font-size 0.3s;\n}\n.vfc-time-picker__item:hover {\n font-size: 32px;\n}\n.vfc-time-picker__item--selected {\n color: #66b3cc;\n font-size: 32px;\n}\n.vfc-time-picker__item--disabled {\n opacity: 0.4;\n cursor: default;\n font-size: 20px !important;\n}\n.vfc-close {\n position: absolute;\n right: 12px;\n top: 16px;\n width: 32px;\n height: 32px;\n opacity: 0.3;\n z-index: 100;\n}\n.vfc-close:hover {\n opacity: 1;\n}\n.vfc-close::before, .vfc-close::after {\n position: absolute;\n left: 15px;\n content: " ";\n height: 26px;\n width: 2px;\n background-color: #ffffff;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n.vfc-close::after {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n}\n.vfc-modal-time-mechanic {\n position: relative;\n margin: 0 auto;\n width: 100%;\n}\n.vfc-modal-time-line {\n width: 100%;\n background-color: #66b3cc;\n text-align: left;\n color: #ffffff;\n font-size: 16px;\n padding-top: 15px;\n padding-bottom: 15px;\n border-radius: 0.28571429rem 0.28571429rem 0 0;\n}\n.vfc-modal-time-line span {\n margin-left: 15px;\n}\n.vfc-modal-time-line span span.vfc-active {\n text-decoration: underline;\n}\n.vfc-modal-append {\n color: #7d7d7d;\n font-weight: normal;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.vfc-modal-midle {\n display: inline-block;\n}\n.vfc-modal-midle-dig {\n display: inline-block;\n text-align: center;\n}\n.vfc-modal-digits {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-size: 50px;\n}\n.vfc-modal-digits select {\n margin: 5px 0;\n width: 100%;\n text-align: center;\n -moz-text-align-last: center;\n text-align-last: center;\n}\n.vfc-arrow {\n opacity: 0.3;\n -webkit-transition: 0.2s;\n transition: 0.2s;\n}\n.vfc-arrow:hover {\n opacity: 1;\n}\n.vfc-arrow-up {\n width: 0;\n height: 0;\n border-left: 20px solid transparent;\n border-right: 20px solid transparent;\n border-bottom: 20px solid #333333;\n}\n.vfc-arrow-down {\n width: 0;\n height: 0;\n border-left: 20px solid transparent;\n border-right: 20px solid transparent;\n border-top: 20px solid #333333;\n}\n.vfc-separately-navigation-buttons {\n margin-bottom: -80px;\n}\n.vfc-navigation-buttons {\n width: 100%;\n position: absolute;\n}\n.vfc-navigation-buttons, .vfc-separately-navigation-buttons {\n -webkit-box-flex: 0;\n -ms-flex: 0 1 15%;\n flex: 0 1 15%;\n margin-top: -10px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.vfc-navigation-buttons.vfc-left, .vfc-separately-navigation-buttons.vfc-left {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n.vfc-navigation-buttons.vfc-right, .vfc-separately-navigation-buttons.vfc-right {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.vfc-navigation-buttons.vfc-space-between, .vfc-separately-navigation-buttons.vfc-space-between {\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.vfc-navigation-buttons div, .vfc-separately-navigation-buttons div {\n z-index: 200;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n color: #000000;\n font-size: 18px;\n margin: 20px 10px;\n}\n.vfc-navigation-buttons div.vfc-cursor-pointer, .vfc-separately-navigation-buttons div.vfc-cursor-pointer {\n cursor: pointer;\n}\n.vfc-navigation-buttons div .vfc-arrow-left, .vfc-separately-navigation-buttons div .vfc-arrow-left {\n width: 12px;\n height: 12px;\n border-top: 2px solid;\n border-left: 2px solid;\n border-color: #0a0c19;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n}\n.vfc-navigation-buttons div .vfc-arrow-left:active,\n.vfc-navigation-buttons div .vfc-arrow-right:active, .vfc-separately-navigation-buttons div .vfc-arrow-left:active,\n.vfc-separately-navigation-buttons div .vfc-arrow-right:active {\n border-color: #ddd;\n}\n.vfc-navigation-buttons div .vfc-arrow-left.vfc-disabled,\n.vfc-navigation-buttons div .vfc-arrow-right.vfc-disabled, .vfc-separately-navigation-buttons div .vfc-arrow-left.vfc-disabled,\n.vfc-separately-navigation-buttons div .vfc-arrow-right.vfc-disabled {\n border-color: #dddddd;\n}\n.vfc-navigation-buttons div .vfc-arrow-right, .vfc-separately-navigation-buttons div .vfc-arrow-right {\n width: 12px;\n height: 12px;\n border-top: 2px solid;\n border-right: 2px solid;\n border-color: #0a0c19;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n.vfc-calendar {\n position: relative;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-flow: column nowrap;\n flex-flow: column nowrap;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n}\n.vfc-calendar .vfc-content {\n margin-bottom: 20px;\n}\n.vfc-calendars {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 75%;\n flex: 1 1 75%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.vfc-calendars-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.vfc-calendar-fade-enter-active, .vfc-calendar-fade-leave-active, .vfc-calendar-slide-down-enter-active, .vfc-calendar-slide-down-leave-active, .vfc-calendar-slide-left-enter-active, .vfc-calendar-slide-left-leave-active, .vfc-calendar-slide-right-enter-active, .vfc-calendar-slide-right-leave-active, .vfc-calendar-slide-up-enter-active, .vfc-calendar-slide-up-leave-active {\n -webkit-transition: all 0.25s ease-in-out;\n transition: all 0.25s ease-in-out;\n}\n.vfc-calendar-fade-leave-active, .vfc-calendar-none-leave-active, .vfc-calendar-slide-down-leave-active, .vfc-calendar-slide-left-leave-active, .vfc-calendar-slide-right-leave-active, .vfc-calendar-slide-up-leave-active {\n position: absolute;\n}\n.vfc-calendar-none-enter-active, .vfc-calendar-none-leave-active {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n}\n.vfc-calendar-slide-left-enter, .vfc-calendar-slide-right-leave-to {\n opacity: 0;\n -webkit-transform: translateX(25px);\n transform: translateX(25px);\n}\n.vfc-calendar-slide-left-leave-to, .vfc-calendar-slide-right-enter {\n opacity: 0;\n -webkit-transform: translateX(-25px);\n transform: translateX(-25px);\n}\n.vfc-calendar-slide-down-leave-to, .vfc-calendar-slide-up-enter {\n opacity: 0;\n -webkit-transform: translateY(20px);\n transform: translateY(20px);\n}\n.vfc-calendar-slide-down-enter, .vfc-calendar-slide-up-leave-to {\n opacity: 0;\n -webkit-transform: translateY(-20px);\n transform: translateY(-20px);\n}\n.vfc-months {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 75%;\n flex: 1 1 75%;\n padding: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.vfc-months .vfc-item {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n -ms-flex-preferred-size: 30%;\n flex-basis: 30%;\n margin: 3px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n text-align: center;\n outline-style: none;\n border-radius: 5px;\n}\n.vfc-months .vfc-item:hover {\n background-color: rgba(113, 113, 113, 0.3);\n -webkit-transition: background-color 0.2s ease-in-out;\n transition: background-color 0.2s ease-in-out;\n cursor: pointer;\n}\n.vfc-months .vfc-item.vfc-selected {\n background-color: #4299e1;\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.vfc-months-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n margin-left: -20px;\n}\n.vfc-months-container.vfc-left {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n margin-left: 0;\n}\n.vfc-months-container.vfc-left .vfc-content .vfc-navigation-buttons .vfc-top-date .vfc-popover-caret {\n left: 45px;\n}\n.vfc-months-container.vfc-left {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n margin-left: 0;\n}\n.vfc-months-container.vfc-left .vfc-content .vfc-navigation-buttons .vfc-top-date .vfc-popover-caret {\n left: 45px;\n}\n.vfc-months-container.vfc-center {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.vfc-months-container.vfc-right {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.vfc-months-container.vfc-right .vfc-content .vfc-navigation-buttons .vfc-top-date .vfc-popover-caret {\n left: calc(100% - 90px);\n}\n.vfc-months-container .vfc-content {\n width: 45%;\n min-width: 133px;\n position: absolute;\n z-index: 1000;\n background-color: #2d3748;\n border: 1px solid;\n border-radius: 5px;\n top: 55px;\n color: #ffffff;\n padding: 5px 0;\n}\n.vfc-months-container .vfc-content .vfc-navigation-buttons {\n position: unset;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.vfc-months-container .vfc-content .vfc-navigation-buttons div {\n margin: 10px 10px;\n}\n.vfc-months-container .vfc-content .vfc-navigation-buttons div:hover {\n cursor: pointer;\n}\n.vfc-months-container .vfc-content .vfc-navigation-buttons div:hover .vfc-arrow-left,\n.vfc-months-container .vfc-content .vfc-navigation-buttons div:hover .vfc-arrow-right {\n border-color: #4299e1;\n}\n.vfc-months-container .vfc-content .vfc-navigation-buttons div .vfc-arrow-left,\n.vfc-months-container .vfc-content .vfc-navigation-buttons div .vfc-arrow-right {\n border-color: #ffffff;\n width: 8px;\n height: 8px;\n}\n.vfc-months-container .vfc-content .vfc-navigation-buttons .vfc-top-date {\n font-size: 18px;\n font-weight: bold;\n margin: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.vfc-months-container .vfc-content .vfc-navigation-buttons .vfc-top-date-has-delta:hover {\n cursor: pointer;\n}\n.vfc-months-container .vfc-content .vfc-navigation-buttons .vfc-top-date .vfc-popover-caret {\n content: "";\n position: absolute;\n display: block;\n width: 12px;\n height: 12px;\n border-top: inherit;\n border-left: inherit;\n background: inherit;\n z-index: -1;\n background-color: #2d3748;\n -webkit-transform: translateY(-40%) rotate(45deg);\n transform: translateY(-40%) rotate(45deg);\n top: 0;\n left: 50%;\n}\n.vfc-months-container .vfc-content .vfc-navigation-buttons .vfc-top-date.vfc-underline {\n cursor: pointer;\n -webkit-text-decoration: underline dotted #66b3cc;\n text-decoration: underline dotted #66b3cc;\n}\n.vfc-months-container .vfc-content .vfc-months {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 75%;\n flex: 1 1 75%;\n padding: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.vfc-months-container .vfc-content .vfc-months div.vfc-item {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n -ms-flex-preferred-size: 30%;\n flex-basis: 30%;\n margin: 3px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n text-align: center;\n outline-style: none;\n border-radius: 5px;\n}\n.vfc-months-container .vfc-content .vfc-months div.vfc-item:hover {\n background-color: rgba(113, 113, 113, 0.3);\n -webkit-transition: background-color 0.2s ease-in-out;\n transition: background-color 0.2s ease-in-out;\n cursor: pointer;\n}\n.vfc-months-container .vfc-content .vfc-months div.vfc-item.vfc-selected {\n background-color: #4299e1;\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.vfc-content {\n margin: 0 20px;\n z-index: 100;\n}\n.vfc-top-date {\n margin: 25px;\n font-size: 18px;\n font-weight: normal;\n}\n.vfc-top-date.vfc-left {\n text-align: left;\n}\n.vfc-top-date.vfc-right {\n text-align: right;\n}\n.vfc-top-date.vfc-center {\n text-align: center;\n}\n.vfc-top-date span {\n cursor: default;\n text-decoration: unset;\n margin: 0 2px;\n color: #000000;\n}\n.vfc-top-date span.vfc-cursor-pointer {\n cursor: pointer;\n}\n.vfc-top-date span.vfc-underline {\n cursor: pointer;\n -webkit-text-decoration: underline #66b3cc;\n text-decoration: underline #66b3cc;\n}\n.vfc-top-date span.vfc-underline.vfc-underline-active {\n -webkit-text-decoration-color: #000000;\n text-decoration-color: #000000;\n}\n.vfc-dayNames, .vfc-week {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.vfc-dayNames {\n -webkit-box-flex: 30px;\n -ms-flex: 30px 0 0px;\n flex: 30px 0 0;\n margin-bottom: 10px;\n}\n.vfc-dayNames span {\n width: 100%;\n margin-right: 5px;\n color: #333333;\n text-align: center;\n}\n.vfc-dayNames span:last-child {\n margin-right: 0;\n}\n.vfc-week-number {\n border-right: 1px solid #ff8498;\n}\n.vfc-week .vfc-day {\n position: relative;\n width: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n margin-top: 3px;\n /* Weekends */\n}\n.vfc-week .vfc-day .vfc-base-start,\n.vfc-week .vfc-day .vfc-base-end {\n position: absolute;\n background: #8fd8ec;\n width: 50% !important;\n border-radius: 0 !important;\n border-right-width: 0 !important;\n height: 100%;\n}\n.vfc-week .vfc-day .vfc-base-start {\n right: 0;\n}\n.vfc-week .vfc-day .vfc-base-end {\n left: 0;\n}\n.vfc-week .vfc-day span.vfc-span-day {\n display: inline-block;\n text-align: center;\n width: 30px;\n line-height: 30px;\n border-radius: 50%;\n margin: 0 auto;\n vertical-align: middle;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-today {\n background-color: #ff8498;\n color: #ffffff;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-cursor-not-allowed {\n cursor: not-allowed;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-marked {\n margin: auto;\n background-color: #66b3cc;\n border-radius: 50%;\n opacity: 1;\n z-index: 1;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-marked.vfc-borderd, .vfc-week .vfc-day span.vfc-span-day.vfc-marked.vfc-start-marked, .vfc-week .vfc-day span.vfc-span-day.vfc-marked.vfc-end-marked {\n color: #ffffff;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-marked.vfc-borderd:before, .vfc-week .vfc-day span.vfc-span-day.vfc-marked.vfc-start-marked:before, .vfc-week .vfc-day span.vfc-span-day.vfc-marked.vfc-end-marked:before {\n background: transparent;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-marked:before {\n top: 0;\n left: 0;\n content: "";\n position: absolute;\n background-color: #8fd8ec;\n width: 100%;\n height: 100%;\n z-index: -1;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-marked:after {\n color: #000000;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-marked.vfc-hide {\n color: #d9d9d9;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-hide {\n color: #bfbfbf;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-disabled {\n margin: auto;\n color: rgba(0, 0, 0, 0.2);\n border-radius: 50%;\n opacity: 1;\n z-index: 2;\n}\n.vfc-week .vfc-day span.vfc-span-day:after {\n z-index: 2;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n content: attr(data-date);\n color: #000000;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.vfc-week .vfc-day span.vfc-span-day.vfc-hover:hover, .vfc-week .vfc-day span.vfc-span-day.vfc-hovered {\n background-color: #dadada;\n z-index: 100;\n}\n.vfc-week .vfc-day:last-child {\n color: #000000;\n}\n.rangeCleaner {\n padding: 5px 0 10px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.rangeCleaner span {\n color: white;\n border-radius: 5px;\n border: none;\n padding: 5px;\n}\n.rangeCleaner span.active {\n background-color: #66b3cc;\n}\n.rangeCleaner span.active:hover {\n background-color: #4f8a9e;\n cursor: pointer;\n}\n.rangeCleaner span.disabled {\n background-color: #949494;\n}',""])},"7kWm":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n#image-wrapper {\n height: 500px;\n width: 500px;\n background-repeat: no-repeat;\n position: relative;\n background-size: 500px 500px;\n margin: 0 auto 1em auto;\n}\n.vdr {\n border: 1px solid red;\n}\n.vdr.active:before {\n outline: 0;\n}\n.box-tag {\n background-color: red;\n position: absolute;\n top: -1.5em;\n right: 0;\n padding: 0 5px;\n margin-right: -3px;\n}\n.display-inline-grid {\n display: inline-grid;\n}\n.filler {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n.littercoin-pos {\n position: fixed;\n background: white;\n bottom: 0;\n left: 1em;\n margin-bottom: 1em;\n}\n\n",""])},"8/+R":function(t,e,n){!function(t){"use strict";var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};t.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(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n("wd/R"))},"822n":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.ctc[data-v-3a1dae60] {\n margin-top: 1em;\n margin-left: 5em;\n}\n@media screen and (max-width: 768px)\n{\n.ctc[data-v-3a1dae60] {\n margin-top: 0;\n margin-left: 0;\n}\n}\n",""])},"8ClP":function(t){t.exports=JSON.parse('{"email-you":"Chcesz, abyśmy od czasu do czasu wysyłali Ci e-maile z dobrymi wiadomościami","subscribe":"Subskrybuj","subscribed-success-msg":"Zasubskrybowano do dobrych wieści! W każdej chwili możesz zrezygnować z subskrypcji","need-your-help":"Potrzebujemy Twojej pomocy, aby stworzyć najbardziej zaawansowaną i dostępną na świecie bazę danych o zanieczyszczeniach","read":"Czytaj","blog":"Blog","research-paper":"Artykuł badawczy","watch":"Oglądaj","help":"Pomoc","join-the-team":"Dołącz do drużyny","join-slack":"dołącz do Slack","create-account":"Załóż konto","fb-group":"Grupa Facebook","single-donation":"Pojedyncza dotacja","crowdfunding":"Crowdfunding","olm-is-flagship":"OpenLitterMap to flagowy produkt GeoTech Innovations Ltd., startupu z Irlandii, który jest pionierem w zakresie podstawowych usług naukowych dla obywateli # 650323","enter-email":"Wpisz swój adres e-mail","references":"Referencje","credits":"Zasługi"}')},"8mBD":function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},"8oxB":function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,u=[],c=!1,d=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&f())}function f(){if(!c){var t=s(h);c=!0;for(var e=u.length;e;){for(l=u,u=[];++d1)for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:document.body,r=arguments[1];if(l&&!i()){r=n.i(a.a)(!0,{},s,r);var o=e,u=void 0;r.wrap&&((u=document.createElement("div")).style["overflow-y"]="auto",u.style.background=r.background,u.style.width="100%",u.style.height="100%",o.parentNode.insertBefore(u,o),u.appendChild(o),r.exitOnClickWrapper&&u.addEventListener("click",(function(t){t.target===this&&n.i(a.d)()}))),o.classList.add(r.fullscreenClass),n.i(a.f)(t),n.i(a.g)(r.wrap?u:o)}}function o(){l&&i()&&n.i(a.d)()}var a=n(0),s={wrap:!0,exitOnClickWrapper:!0,background:"#333",callback:function(){},fullscreenClass:"fullscreen"},l=n.i(a.b)();e.a={getState:i,support:l,toggle:function(t,e,n){l&&(void 0===n?i()?o():r(t,e):n?r(t,e):o())},enter:r,exit:o}},function(t,e,n){var i=n(5)(n(4),n(6),null,null);t.exports=i.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n.n(i),o=n(1),a=n(0);e.default={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.name||"fullscreen";t.component(i,n.i(a.a)(r.a,{name:i})),t.prototype["$"+i]=o.a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.default={props:{exitOnClickWrapper:{type:Boolean,default:!0},background:{type:String,default:"#333"},fullscreenClass:{type:String,default:"fullscreen"},fullscreen:{type:Boolean,default:!1}},data:function(){return{supportFullScreen:!1,isFullscreen:!1}},computed:{wrapperStyle:function(){return{background:this.background,"overflow-y":"auto",width:"100%",height:"100%"}}},methods:{toggle:function(t){void 0===t?n.i(i.c)()?this.exit():this.enter():t?this.enter():this.exit()},enter:function(){this.supportFullScreen&&(n.i(i.f)(this.fullScreenCallback),n.i(i.g)(this.$el))},exit:function(){this.supportFullScreen&&this.getState()&&n.i(i.d)()},getState:function(){return n.i(i.c)()},shadeClick:function(t){t.target===this.$el&&this.exitOnClickWrapper&&this.exit()},fullScreenCallback:function(){this.isFullscreen=n.i(i.c)(),this.isFullscreen||n.i(i.e)(this.fullScreenCallback),this.$emit("change",this.isFullscreen),this.$emit("update:fullscreen",this.isFullscreen)}},watch:{fullscreen:function(t){t!==n.i(i.c)()&&(t?this.enter():this.exit())}},created:function(){this.supportFullScreen=n.i(i.b)()}}},function(t,e){t.exports=function(t,e,n,i){var r,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),i){var l=Object.create(s.computed||null);Object.keys(i).forEach((function(t){var e=i[t];l[t]=function(){return e}})),s.computed=l}return{esModule:r,exports:o,options:s}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.isFullscreen?[t.fullscreenClass]:[],style:t.isFullscreen?[t.wrapperStyle]:[],on:{click:function(e){t.shadeClick(e)}}},[t._t("default")],2)},staticRenderFns:[]}}])},A85c:function(t){t.exports=JSON.parse('{"maps1":"Wij creëren Open Data over Plastic Vervuiling","maps2":"Iedereen kan de data downloaden en gebruiken.","maps3":"Bekijk de landkaart","global-leaderboard":"Wereldwijde scorebord","position":"Positie","name":"Naam","xp":"XP","previous-target":"Vorig doel","next-target":"Volgende doel","litter":"Litter","total-verified-litter":"Totaal Aantal Gecontroleerde Items","total-verified-photos":"Totaal Aantal Gecontroleerde Foto\'s","total-littercoin-issued":"Totaal Aantal Uitgedeelde Littercoins","number-of-contributors":"Aantal Bijdragers","avg-img-per-person":"Gemiddeld Aantal Foto\'s per Persoon","avg-litter-per-person":"Gemiddeld Aantal Items per Persoon","maps16":"Gemaakt door","leaderboard":"Scorebord","time-series":"Tijdreeks","options":"Options","most-data":"Most Open Data","most-data-person":"Most Open Data Per Person","download-open-verified-data":"Free and Open Verified Citizen Science Data on Plastic Pollution.","stop-plastic-ocean":"Let\'s stop plastic going into the ocean.","enter-email-sent-data":"Please enter an email address to which the data will be sent:"}')},AElL:function(t){t.exports=JSON.parse('{"welcome":"Witamy w swoim nowym profilu","out-of":"Z {total} użytkowników","rank":"Jesteś na {rank} miejscu","have-uploaded":"Przesłałeś","photos":"photos","tags":"tagi","all-photos":"wszystkie zdjęcia","all-tags":"wszystkie tagi","your-level":"Twój poziom","reached-level":"Osiągnąłeś poziom","have-xp":"i nasz","need-xp":"potrzebujesz","to-reach-level":"aby zdobyć następny poziom.","total-categories":"Wszystkie kategorie","calendar-load-data":"Załaduj dane","download-data":"Pobierz moje dane","email-send-msg":"Na adres, którego używasz do logowania, zostanie wysłana wiadomość e-mail.","timeseries-verified-photos":"Zweryfikowane zdjęcia","manage-my-photos":"Przeglądaj swoje zdjęcia, zaznacz wiele, usuń je lub dodaj tagi!","view-my-photos":"Wyświetl moje zdjęcia","my-photos":"Moje zdjęcia","add-tags":"Dodaj tagi"}')},AFg3:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i);function o(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var a={name:"Footer",data:function(){return{email:"",socials:[{icon:"facebook2.png",url:"https://facebook.com/openlittermap"},{icon:"ig2.png",url:"https://instagram.com/openlittermap"},{icon:"twitter2.png",url:"https://twitter.com/openlittermap"},{icon:"reddit.png",url:"https://reddit.com/r/openlittermap"},{icon:"tumblr.png",url:"https://tumblr.com/openlittermap"}]}},computed:{errors:function(){return this.$store.state.subscriber.errors},hasErrors:function(){return Object.keys(this.errors).length>0},subscribed:function(){return this.$store.state.subscriber.just_subscribed}},methods:{clearErrors:function(){this.$store.commit("clearSubscriberErrors")},getError:function(t){return this.errors[t][0]},icon:function(t){return"/assets/icons/"+t},open:function(t){window.open(t,"_blank")},subscribe:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("SUBSCRIBE",e.email);case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,l,"next",t)}function l(t){o(a,i,r,s,l,"throw",t)}s(void 0)}))})()}}},s=(n("qL8O"),n("KHd+")),l={name:"Welcome",components:{Footer:Object(s.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{staticClass:"foot"},[n("div",{staticClass:"container"},[n("div",{staticClass:"inner-footer-container has-text-centered"},[n("p",{staticClass:"top-footer-title"},[t._v(t._s(t.$t("home.footer.email-you"))+"?")]),t._v(" "),t.hasErrors?n("div",{staticClass:"notification is-danger mb1em"},t._l(Object.keys(this.errors),(function(e){return n("div",{key:e},[n("p",[t._v(t._s(t.getError(e)))])])})),0):t._e(),t._v(" "),n("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.subscribe(e)}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"input f-input",attrs:{placeholder:t.$t("home.footer.enter-email"),required:"",type:"email"},domProps:{value:t.email},on:{input:[function(e){e.target.composing||(t.email=e.target.value)},t.clearErrors]}}),t._v(" "),n("br"),t._v(" "),n("button",{staticClass:"button is-medium is-primary hov mb2"},[t._v(t._s(t.$t("home.footer.subscribe")))]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.subscribed,expression:"subscribed"}],staticClass:"footer-success"},[t._v("\n "+t._s(t.$t("home.footer.subscribed-success-msg"))+".\n ")])])]),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-half foot-container-left"},[n("p",{staticClass:"olm-title"},[t._v("#OpenLitterMap")]),t._v(" "),n("p",{staticClass:"footer-text mb1"},[t._v(t._s(t.$t("home.footer.need-your-help"))+".")]),t._v(" "),t._l(t.socials,(function(e){return n("img",{staticClass:"footer-icon",attrs:{src:t.icon(e.icon)},on:{click:function(n){return t.open(e.url)}}})})),t._v(" "),n("br")],2),t._v(" "),n("div",{staticClass:"column is-2"},[n("p",{staticClass:"olm-subtitle"},[t._v(t._s(t.$t("home.footer.read")))]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://medium.com/@littercoin")}}},[t._v(t._s(t.$t("home.footer.blog")))]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://opengeospatialdata.springeropen.com/articles/10.1186/s40965-018-0050-y")}}},[t._v(t._s(t.$t("home.footer.research-paper")))]),t._v(" "),n("router-link",{staticClass:"footer-link",attrs:{tag:"p",to:"/references"}},[t._v(t._s(t.$t("home.footer.references")))]),t._v(" "),n("router-link",{staticClass:"footer-link",attrs:{tag:"p",to:"/credits"}},[t._v(t._s(t.$t("home.footer.credits")))])],1),t._v(" "),n("div",{staticClass:"column is-2"},[n("p",{staticClass:"olm-subtitle"},[t._v(t._s(t.$t("home.footer.watch")))]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://www.youtube.com/watch?v=my7Cx-kZhT4")}}},[t._v("TEDx 2017")]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://www.youtube.com/watch?v=E_qhEhHwUGM")}}},[t._v("State of the Map 2019")]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://www.youtube.com/watch?v=T8rGf1ScR1I")}}},[t._v("Datapub 2020")]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://www.youtube.com/watch?v=5HuaQNeHuZ8")}}},[t._v("ESA PhiWeek 2020")]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://www.youtube.com/watch?v=QhLsA0WIfTA")}}},[t._v("Geneva Form, UN 2020")])]),t._v(" "),n("div",{staticClass:"column is-2"},[n("p",{staticClass:"olm-subtitle"},[t._v(t._s(t.$t("home.footer.help")))]),t._v(" "),n("p",{staticClass:"footer-link"},[t._v(t._s(t.$t("home.footer.create-account")))]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://angel.co/openlittermap/jobs")}}},[t._v(t._s(t.$t("home.footer.join-the-team")))]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://join.slack.com/t/openlittermap/shared_invite/zt-fdctasud-mu~OBQKReRdC9Ai9KgGROw")}}},[t._v(t._s(t.$t("home.footer.join-slack")))]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://github.com/openlittermap")}}},[t._v("GitHub")]),t._v(" "),n("p",{staticClass:"footer-link",on:{click:function(e){return t.open("https://www.facebook.com/pg/openlittermap/groups/")}}},[t._v(t._s(t.$t("home.footer.fb-group")))]),t._v(" "),n("router-link",{staticClass:"footer-link",attrs:{to:"/donate"}},[t._v(t._s(t.$t("home.footer.single-donation")))]),t._v(" "),n("router-link",{staticClass:"footer-link",attrs:{to:"/signup"}},[t._v(t._s(t.$t("home.footer.crowdfunding")))])],1)])]),t._v(" "),n("div",{staticClass:"footer-bottom"},[n("p",{staticClass:"footer-text"},[t._v(t._s(t.$t("home.footer.olm-is-flagship")))])])])}),[],!1,null,"0425df6c",null).exports},computed:{modal:function(){return this.$store.state.modal.show}},methods:{android:function(){window.open("https://play.google.com/store/apps/details?id=com.geotech.openlittermap","_blank")},ios:function(){window.open("https://apps.apple.com/us/app/openlittermap/id1475982147","_blank")}}},u=(n("ykbU"),Object(s.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"container home-container"},[n("div",{staticClass:"columns c-1"},[n("div",{staticClass:"column is-half"},[n("h1",{staticClass:"main-title"},[t._v("\n "+t._s(t.$t("home.welcome.plastic-pollution-out-of-control"))+".\n ")]),t._v(" "),n("h2",{staticClass:"subtitle is-3 home-img-padding"},[t._v("\n "+t._s(t.$t("home.welcome.help-us"))+".\n ")]),t._v(" "),n("div",{staticClass:"flex"},[n("img",{staticClass:"app-icon",staticStyle:{"margin-right":"1em"},attrs:{src:"/assets/icons/ios.png"},on:{click:t.ios}}),t._v(" "),n("img",{staticClass:"app-icon",attrs:{src:"/assets/icons/android.png"},on:{click:t.android}})])]),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"why-container"},[n("h1",{staticClass:"main-title"},[t._v(t._s(t.$t("home.welcome.why-collect-data"))+"?")]),t._v(" "),n("div",{staticClass:"columns welcome-mb"},[t._m(1),t._v(" "),n("div",{staticClass:"column ma"},[n("h2",{staticClass:"main-subtitle"},[t._v("1. "+t._s(t.$t("home.welcome.visibility")))]),t._v(" "),n("h3",{staticClass:"welcome-subtitle mb1em"},[t._v(t._s(t.$t("home.welcome.our-maps-reveal-litter-normality"))+".")])])]),t._v(" "),n("div",{staticClass:"columns welcome-mb"},[t._m(2),t._v(" "),n("div",{staticClass:"column ma"},[n("h2",{staticClass:"main-subtitle"},[t._v("2. "+t._s(t.$t("home.welcome.science")))]),t._v(" "),n("h3",{staticClass:"welcome-subtitle mb1em"},[t._v(t._s(t.$t("home.welcome.our-data-open-source"))+".")])])]),t._v(" "),n("div",{staticClass:"columns welcome-mb"},[t._m(3),t._v(" "),n("div",{staticClass:"column ma"},[n("h2",{staticClass:"main-subtitle"},[t._v("3. "+t._s(t.$t("home.welcome.community")))]),t._v(" "),n("h3",{staticClass:"welcome-subtitle"},[t._v(t._s(t.$t("home.welcome.must-work-together"))+".")])])])]),t._v(" "),n("div",[n("h1",{staticClass:"main-title"},[t._v(t._s(t.$t("home.welcome.how-does-it-work"))+"?")]),t._v(" "),n("div",{staticClass:"columns welcome-mb"},[t._m(4),t._v(" "),n("div",{staticClass:"column ma"},[n("h2",{staticClass:"main-subtitle"},[t._v("1. "+t._s(t.$t("home.welcome.take-a-photo")))]),t._v(" "),n("h3",{staticClass:"welcome-subtitle mb1em"},[t._v(t._s(t.$t("home.welcome.device-captures-info")))])])]),t._v(" "),n("div",{staticClass:"columns welcome-mb"},[t._m(5),t._v(" "),n("div",{staticClass:"column ma"},[n("h2",{staticClass:"main-subtitle"},[t._v("2. "+t._s(t.$t("home.welcome.tag-the-litter")))]),t._v(" "),n("h3",{staticClass:"welcome-subtitle mb1em"},[t._v(t._s(t.$t("home.welcome.tag-litter-you-see"))+"!")])])]),t._v(" "),n("div",{staticClass:"columns welcome-mb"},[t._m(6),t._v(" "),n("div",{staticClass:"column ma"},[n("h2",{staticClass:"main-subtitle"},[t._v("3. "+t._s(t.$t("home.welcome.share-results")))]),t._v(" "),n("h3",{staticClass:"welcome-subtitle"},[t._v(t._s(t.$t("home.welcome.share"))+"!")])])])])]),t._v(" "),n("Footer")],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"column is-half"},[e("img",{attrs:{src:"/assets/plastic_bottles.jpg"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"column is-one-quarter icon-center"},[e("img",{staticClass:"about-icon",attrs:{src:"/assets/icons/home/world.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"column is-one-quarter icon-center"},[e("img",{staticClass:"about-icon",attrs:{src:"/assets/icons/home/microscope.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"column is-one-quarter icon-center"},[e("img",{staticClass:"about-icon",attrs:{src:"/assets/icons/home/tree.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"column is-one-quarter icon-center"},[e("img",{staticClass:"about-icon",attrs:{src:"/assets/icons/home/camera.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"column is-one-quarter icon-center"},[e("img",{staticClass:"about-icon",attrs:{src:"/assets/icons/home/phone.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"column is-one-quarter icon-center"},[e("img",{staticClass:"about-icon",attrs:{src:"/assets/icons/twitter2.png"}})])}],!1,null,"16293954",null));e.default=u.exports},AQ68:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},AYZs:function(t){t.exports=JSON.parse('{"card-number":"Numer karty","card-holder":"Imię i nazwisko posiadacza karty","exp":"Termin ważności","cvv":"CVV","placeholders":{"card-number":"Twój 16-cyfrowy numer karty","card-holder":"Imię i nazwisko posiadacza karty","exp-month":"Miesiąc","exp-year":"Rok","cvv":"***"}}')},AsT3:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.is-purp[data-v-41670ab3] {\n color: #8e7fd6;\n}\n.is-white[data-v-41670ab3] {\n color: white !important;\n}\n.is-secondary[data-v-41670ab3] {\n color: #1DD3B0;\n}\n",""])},AvvY:function(t,e,n){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,n){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}})}(n("wd/R"))},"B/ql":function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("kGIl"),a=n.n(o);n("5A0h");function s(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function l(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){s(o,i,r,a,l,"next",t)}function l(t){s(o,i,r,a,l,"throw",t)}a(void 0)}))}}var u={name:"Payments",components:{Loading:a.a},created:function(){var t=this;return l(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.loading=!0,0!==t.$store.state.plans.plans.length){e.next=4;break}return e.next=4,t.$store.dispatch("GET_PLANS");case 4:if(!t.$store.state.user.user.stripe_id){e.next=7;break}return e.next=7,t.$store.dispatch("GET_USERS_SUBSCRIPTIONS");case 7:t.loading=!1;case 8:case"end":return e.stop()}}),e)})))()},data:function(){return{loading:!0,plan:"Startup"}},computed:{check_for_stripe_id:function(){return this.$store.state.user.user.stripe_id},current_plan:function(){var t=this;return this.plans.find((function(e){return e.name===t.subscription.name}))},plans:function(){return this.$store.state.plans.plans},subscription:function(){return this.$store.state.subscriber.subscription}},methods:{cancel_active_subscription:function(){var t=this;return l(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("DELETE_ACTIVE_SUBSCRIPTION");case 2:case"end":return e.stop()}}),e)})))()},resubscribe:function(){var t=this;return l(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("RESUBSCRIBE",t.plan);case 2:case"end":return e.stop()}}),e)})))()},subscribe:function(){}}},c=n("KHd+"),d=Object(c.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[n("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.payments.finance")))]),t._v(" "),n("hr"),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"columns"},[t.loading?n("loading",{attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(e){t.loading=e}}}):n("div",{staticClass:"column one-third is-offset-1"},[t.check_for_stripe_id?n("div",["active"===t.subscription.stripe_status?n("div",[n("p",[t._v("You are currently subscribed to the "),n("strong",{staticClass:"green"},[t._v(t._s(t.subscription.name))]),t._v(" plan")]),t._v(" "),n("p",{staticClass:"mb1"},[t._v("Helping us with "),n("strong",{staticClass:"green"},[t._v("€"+t._s(t.current_plan.price/100))]),t._v(" per month")]),t._v(" "),n("p",[t._v("Thank you for helping the development of OpenLitterMap!")]),t._v(" "),n("p",{staticClass:"mb1"},[t._v("You can change or cancel your subscription at any time.")]),t._v(" "),n("button",{staticClass:"button is-medium is-danger",on:{click:t.cancel_active_subscription}},[t._v("Cancel Subscription")])]):n("div",[n("p",{staticClass:"mb1"},[t._v("You have unsubscribed from "),n("strong",{staticClass:"green"},[t._v(t._s(t.subscription.name))])]),t._v(" "),n("p",{staticClass:"mb1"},[t._v("Thank you for supporting the development of OpenLitterMap")]),t._v(" "),n("p",[t._v("Please contact us if you would like to resubscribe, or else create a new account. Thanks!")])])]):n("div",[n("p",[t._v(t._s(t.$t("settings.payments.help")))]),t._v(" "),n("ul",[n("li",[t._v("- "+t._s(t.$t("settings.payments.support")))]),t._v(" "),n("li",[t._v("- "+t._s(t.$t("settings.payments.help-costs")))]),t._v(" "),n("li",[t._v("- "+t._s(t.$t("settings.payments.help-hire")))]),t._v(" "),n("li",[t._v("- "+t._s(t.$t("settings.payments.help-produce")))]),t._v(" "),n("li",[t._v("- "+t._s(t.$t("settings.payments.help-write")))]),t._v(" "),n("li",[t._v("- "+t._s(t.$t("settings.payments.help-outreach")))]),t._v(" "),n("li",[t._v("- "+t._s(t.$t("settings.payments.help-incentivize")))]),t._v(" "),n("li",[t._v("- "+t._s(t.$t("settings.payments.more-soon")))])]),t._v(" "),n("button",{staticClass:"button is-medium is-primary",on:{click:t.subscribe}},[t._v(t._s(t.$t("settings.payments.click-to-support")))])])])],1)])}),[],!1,null,null,null);e.default=d.exports},B55N:function(t,e,n){!function(t){"use strict";t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(t,e){return"元"===e[1]?1:parseInt(e[1]||t,10)},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:"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(t){return"午後"===t},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()!==t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"y":return 1===t?"元年":t+"年";case"d":case"D":case"DDD":return t+"日";default:return t}},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年"}})}(n("wd/R"))},B8Gz:function(t){t.exports=JSON.parse('{"privacy-title":"Control your Privacy","privacy-text":"Control your privacy for every team you have joined.","maps":{"team-map":"Team Map","name-will-appear":"Your name will appear on the maps","username-will-appear":"Your username will appear on the maps","will-not-appear":"Your name and username will not appear on the maps"},"leaderboards":{"team-leaderboard":"Team Leaderboard","name-will-appear":"Your name will appear on the leaderboards","username-will-appear":"Your username will appear on the leaderboards","will-not-appear":"Your name and username will not appear on the leaderboards"},"submit-one-team":"Save for this Team","apply-all-teams":"Apply for all Teams"}')},BDmR:function(t){t.exports=JSON.parse('{"finance":"Finance the development of OpenLitterMap","help":"We need your help.","support":"Support Open Data on Plastic Pollution","help-costs":"Help cover our costs","help-hire":"Hire developers, designers & graduates","help-produce":"Produce videos","help-write":"Write papers","help-outreach":"Conferences & outreach","help-incentivize":"Incentivize data collection with Littercoin","more-soon":"More exciting updates coming soon","click-to-support":"Click here to support"}')},BE1l:function(t){t.exports=JSON.parse('{"toggle-email":"Włącz/wyłącz subskrypcję e-mail","we-send-updates":"Od czasu do czasu wysyłamy e-maile z aktualizacjami i dobrymi wieściami","subscribe":"Tutaj możesz zasubskrybować lub zrezygnować z otrzymywania naszych e-maili","current-status":"Aktualny Status","change-status":"Zmień Status"}')},BGUB:function(t){t.exports=JSON.parse('{"olm-dependent-on-donations":"OpenLitterMap is op dit moment volledig afhankelijk van giften.","its-important":"Het is belangrijk"}')},BVg3:function(t,e,n){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function n(t,n,i,r){var o=t+" ";switch(i){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return e(t)?o+(n||r?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return e(t)?o+(n||r?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return e(t)?o+(n||r?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return e(t)?n?o+"dagar":o+(r?"daga":"dögum"):n?o+"dagur":o+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return e(t)?n?o+"mánuðir":o+(r?"mánuði":"mánuðum"):n?o+"mánuður":o+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return e(t)?o+(n||r?"ár":"árum"):o+(n||r?"ár":"ári")}}t.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:n,ss:n,m:n,mm:n,h:"klukkustund",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}})}(n("wd/R"))},Bj9c:function(t){t.exports=JSON.parse('{"de":{"name":"Niemcy","lang":"Niemiecki"},"en":{"name":"Wielka Brytania","lang":"English"},"es":{"name":"Hiszpania","lang":"Español"},"fr":{"name":"Francja","lang":"Francuski"},"ie":{"name":"Irlandia","lang":"Irlandzki"},"it":{"name":"Włochy","lang":"Włoski"},"ms":{"name":"Malezja","lang":"Malay"},"nl":{"name":"Holandia","lang":"Nederlands"},"tk":{"name":"Turcja","lang":"Turecki"},"uk":{"name":"UK","lang":"English"},"pl":{"name":"Polska","lang":"Polski"}}')},"Bpk+":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.green[data-v-a04a649c] {\n color: green !important;\n}\n.panel-block[data-v-a04a649c] {\n color: black;\n background-color: white;\n}\n/* .location-container {\n padding-top: 3em;\n padding-bottom: 5em;\n } */\n.location-title[data-v-a04a649c]:hover {\n color: green !important;\n border-bottom: 1px solid green;\n}\n.total-photos-percentage[data-v-a04a649c] {\n color: green;\n font-weight: 700;\n}\n.img-flag[data-v-a04a649c] {\n padding-right: 1.5em;\n border-radius: 1px;\n flex: 0.1;\n}\n\n",""])},"BqL+":function(t){t.exports=JSON.parse('{"click-to-upload":"Kliknij lub upuść swoje zdjęcia aby przesłać","thank-you":"Dziękuję!","need-tag-litter":"Następnie musisz oznaczyć śmieci","tag-litter":"Oznacz śmieci"}')},ByF4:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},"C3+9":function(t,e,n){var i=n("1k10");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},CASQ:function(t,e,n){var i=n("ODgP");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},CFP8:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.leader-flag[data-v-74b6a90b] {\n\t\theight: 1em !important;\n\t\tposition: absolute;\n\t\tleft: 50%;\n\t\ttop: 30%;\n}\n@media screen and (max-width: 678px)\n {\ntd[data-v-74b6a90b] {\n padding: 0.5em;\n}\n}\n",""])},CFQK:function(t,e,n){(e=t.exports=n("I1BE")(!1)).i(n("aLw4"),""),e.push([t.i,"\n.global-map-container[data-v-26f69278] {\n height: calc(100% - 72px);\n margin: 0;\n position: relative;\n z-index: 1;\n}\n",""])},CJub:function(t,e,n){var i=n("CqVK");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},CO0D:function(t){t.exports=JSON.parse('{"address":"Dirección","add-tag":"Añadir etiqueta","coordinates":"Coordenadas","device":"Dispositivo","next":"Imagen siguiente","no-tags":"No tienes nada que etiquetar en este momento.","picked-up-title":"¿Basura recogida?","please-upload":"Subir más fotos","previous":"Imagen anterior","removed":"La basura ha sido retirada","still-there":"La basura sigue ahí","taken":"Tomada","to-tag":"Imágenes restantes por etiquetar","total-uploaded":"Total de imágenes subidas","uploaded":"Subida","confirm-delete":"¿Quieres eliminar esta imagen? Esto no se puede deshacer.","recently-tags":"Etiquetas usadas recientemente: ","clear-tags":"¿Borrar etiquetas recientes?","clear-tags-btn":"Borrar etiquetas recientes"}')},CgaS:function(t,e,n){"use strict";var i=n("xTJ+"),r=n("MLWZ"),o=n("9rSQ"),a=n("UnBK"),s=n("SntB");function l(t){this.defaults=t,this.interceptors={request:new o,response:new o}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=s(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,i){return this.request(s(i||{},{method:t,url:e,data:n}))}})),t.exports=l},CjzT:function(t,e,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^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;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},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:i,longMonthsParse:i,shortMonthsParse:i,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}})}(n("wd/R"))},CoRJ:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},CqVK:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".footerCon[data-v-f57c853e] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n margin: 0 20px 20px;\n}",""])},"D+42":function(t,e,n){(e=t.exports=n("I1BE")(!1)).i(n("mtZm"),""),e.i(n("+pLR"),""),e.push([t.i,"/* remove padding on mobile */\n.team-map-container {\n height: 500px;\n margin: 0;\n position: relative;\n padding-top: 1em;\n}\n.leaflet-popup-content {\n width: 180px !important;\n}\n.lealet-popup {\n left: -106px !important;\n}\n@media (max-width: 575.98px) {\n.team-map-container {\n margin-left: -3em;\n margin-right: -3em;\n}\n.temp-info {\n text-align: center;\n margin-top: 1em;\n}\n}",""])},"D/JM":function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},DArN:function(t,e,n){var i=n("MBEJ");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},DIPp:function(t){t.exports=JSON.parse('{"title":"Ben je er klaar voor?","subtitle":"Meld je nu aan om een afval expert te worden en help ons de plastic vervuiling te bestreiden.","crowdfunding-message":"Overweeg alsjeblieft om ons werk te steunen middels Crowdfunding. Je kunt OpenLitterMap al helpen voor slechts 6 cent per dag met een maandelijkse deelname om te helpen dit belangrijke platform te laten groeien.","form-create-account":"Maak je account","form-field-name":"Naam","form-field-unique-id":"Uniek Kenmerk","form-field-email":"E-Mail Adres","form-field-password":"Wachtwoord. Moet minimaal een hoofdletter, een kleine letter en een getal bevatten.","form-field-pass-confirm":"Bevestig Wachtwoord","form-account-conditions":"Ik heb de Gebruiksvoorwaarden en Privacybeleid gelezen en ben daarmee akkoord","form-btn":"Aanmelden","create-account-note":"Opmerking: Als je geen bevestigingsmail in je in-box krijgt, controleer dan de spam-box."}')},"DKr+":function(t,e,n){!function(t){"use strict";function e(t,e,n,i){var r={s:["thoddea sekondamni","thodde sekond"],ss:[t+" sekondamni",t+" sekond"],m:["eka mintan","ek minut"],mm:[t+" mintamni",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voramni",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disamni",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineamni",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsamni",t+" vorsam"]};return i?r[n][0]:r[n][1]}t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_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 Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokallim"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"rati":t<12?"sokallim":t<16?"donparam":t<20?"sanje":"rati"}})}(n("wd/R"))},DfZB:function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},Dkky:function(t,e,n){!function(t){"use strict";t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},Dmvi:function(t,e,n){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:4}})}(n("wd/R"))},DoHr:function(t,e,n){!function(t){"use strict";var e={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ı"};t.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("_"),meridiem:function(t,e,n){return t<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(t){return"ös"===t||"ÖS"===t},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(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},DxQv:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},Dzi0:function(t,e,n){!function(t){"use strict";t.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(t){return t},week:{dow:1,doy:4}})}(n("wd/R"))},"E+4Y":function(t){t.exports=JSON.parse('{"privacy-title":"Kontroluj swoją prywatność","privacy-text":"Kontroluj swoją prywatność każdej drużyny, do której dołączyłeś.","maps":{"team-map":"Mapa drużyny","name-will-appear":"Twoje imię pojawi się na mapach","username-will-appear":"Twoja nazwa użytkownika pojawi się na mapach","will-not-appear":"Twoje imię oraz nazwa użytkownika nie pojawią się na mapach"},"leaderboards":{"team-leaderboard":"Ranking drużyny","name-will-appear":"Twoje imię i nazwisko pojawi się w rankingach","username-will-appear":"Twoja nazwa użytkownika pojawi się w rankingach","will-not-appear":"Twoje imię oraz nazwa użytkownika nie pojawią się w rankingach"},"submit-one-team":"Zapisz dla tego zespołu","apply-all-teams":"Zapisz dla wszystkich zespołów"}')},"E+lV":function(t,e,n){!function(t){"use strict";var e={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,i){var r=e.words[i];return 1===i.length?n?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}};t.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(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"дан",dd:e.translate,M:"месец",MM:e.translate,y:"годину",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},E6oU:function(t){t.exports=JSON.parse('{"title":"¿Estas lista?","subtitle":"Regístrate para convertirte en un \'mapper\' de basura experto y ayúdanos a vencer la contaminación por plásticos.","crowdfunding-message":"Por favor, considera apoyar nuestro trabajo mediante el crowdfunding de OpenLitterMap con tan sólo 6 céntimos al día con una suscripción mensual para ayudar a crecer y desarrollar esta importante plataforma.","form-create-account":"Crea tu cuenta","form-field-name":"Nombre","form-field-unique-id":"Identificador único","form-field-email":"Dirección de correo electrónico","form-field-password":"Contraseña. Debe contener mayúsculas, minúsculas y un número.","form-field-pass-confirm":"Confirmar contraseña","form-account-conditions":"He leído y acepto los Términos y Condiciones de Uso y la Política de privacidad","form-btn":"Registrarme","create-account-note":"Nota: Si no recibes el correo electrónico de verificación en tu bandeja de entrada, comprueba en la carpeta de correo no deseado."}')},EDOO:function(t){t.exports=JSON.parse('{"enter-team-identifier":"Enter an identifier to join a team.","team-identifier":"Join team by identifier","enter-id-to-join-placeholder":"Enter ID to join a team","join-team":"Join Team"}')},EHpN:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".vfc-day[data-v-03906378] {\n position: relative;\n}\n.vfc-day .times[data-v-03906378] {\n position: absolute;\n top: -5px;\n background-color: red;\n color: white;\n border-radius: 50%;\n width: 15px;\n z-index: 20;\n height: 15px;\n line-height: 15px;\n}\n.vfc-day .times[data-v-03906378]:hover {\n cursor: pointer;\n background-color: #c70000;\n}\n.vfc-day .number[data-v-03906378] {\n position: absolute;\n top: -5px;\n right: calc(50% + 7px);\n background-color: green;\n color: white;\n font-size: 10px;\n border-radius: 50%;\n width: 15px;\n z-index: 30;\n height: 15px;\n line-height: 15px;\n}\n.vfc-day .number[data-v-03906378]:hover {\n background-color: #005e00;\n}\n.vfc-day .toolTip[data-v-03906378] {\n position: absolute;\n top: -20px;\n left: 0;\n padding: 5px;\n max-width: 108px;\n word-wrap: break-word;\n border-radius: 5px;\n z-index: 200;\n background-color: #005e00;\n}",""])},EHzo:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("wd/R"),a=n.n(o),s=n("kGIl"),l=n.n(s),u=(n("5A0h"),n("n2md")),c=n("/yRl"),d=n("vne5"),h=n("Whpc");function f(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var p={name:"Tag",components:{Loading:l.a,AddTags:u.a,Presence:c.a,Tags:d.a,ProfileDelete:h.a},mounted:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.$store.dispatch("GET_CURRENT_USER");case 3:return t.next=5,e.$store.dispatch("GET_PHOTOS_FOR_TAGGING");case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){f(o,i,r,a,s,"next",t)}function s(t){f(o,i,r,a,s,"throw",t)}a(void 0)}))})()},data:function(){return{loading:!0}},computed:{current_page:function(){return this.$store.state.photos.paginate.current_page},hasRecentTags:function(){return Object.keys(this.$store.state.litter.recentTags).length>0},photos:function(){var t,e,n;return null===(t=this.$store.state)||void 0===t||null===(e=t.photos)||void 0===e||null===(n=e.paginate)||void 0===n?void 0:n.data},previous_page:function(){var t;return null===(t=this.$store.state.photos.paginate)||void 0===t?void 0:t.prev_page_url},remaining:function(){return this.$store.state.photos.remaining},show_current_page:function(){return this.$store.state.photos.paginate.current_page>1},show_next_page:function(){return this.$store.state.photos.paginate.next_page_url},user:function(){return this.$store.state.user.user}},methods:{clearRecentTags:function(){this.$store.commit("initRecentTags",{}),this.$localStorage.remove("recentTags")},getDate:function(t){return a()(t).format("LLL")},goToPage:function(t){this.$store.dispatch("SELECT_IMAGE",t)},nextImage:function(){this.$store.dispatch("NEXT_IMAGE")},previousImage:function(){this.$store.dispatch("PREVIOUS_IMAGE")}}},m=(n("pISp"),n("KHd+")),g=Object(m.a)(p,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"hero fullheight is-primary is-bold tag-container"},[t.loading?n("loading",{attrs:{"is-full-page":!0},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}}):n("div",{staticClass:"pt2"},[0===t.photos.length?n("div",{staticClass:"hero-body"},[n("div",{staticClass:"container has-text-centered"},[n("h3",{staticClass:"subtitle is-1"},[t._v("\n "+t._s(t.$t("tags.no-tags"))+"\n ")]),t._v(" "),n("router-link",{attrs:{to:"/submit"}},[n("h3",{staticClass:"subtitle button is-medium is-info hov"},[t._v("\n "+t._s(t.$t("tags.please-upload"))+"\n ")])])],1)]):n("div",t._l(t.photos,(function(e){return n("div",{key:e.id,staticClass:"mb2"},[n("h2",{staticClass:"taken"},[n("strong",{staticStyle:{color:"#fff"}},[t._v("#"+t._s(e.id))]),t._v(" "),t._v("\n "+t._s(t.$t("tags.taken"))+": "+t._s(t.getDate(e.datetime))+"\n ")]),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column",attrs:{id:"image-metadata"}},[n("div",{staticClass:"box"},[n("p",[n("strong",[t._v(t._s(t.$t("tags.coordinates"))+": ")]),t._v(t._s(e.lat)+", "+t._s(e.lon))]),t._v(" "),n("br"),t._v(" "),n("p",[n("strong",[t._v(t._s(t.$t("tags.address"))+": ")]),t._v(t._s(e.display_name))]),t._v(" "),n("br"),t._v(" "),n("div",[n("strong",[t._v(t._s(t.$t("tags.picked-up-title")))]),t._v(" "),n("presence")],1),t._v(" "),n("br"),t._v(" "),n("p",[n("strong",[t._v(t._s(t.$t("tags.device"))+": ")]),t._v(t._s(e.model))]),t._v(" "),n("br"),t._v(" "),n("profile-delete",{attrs:{photoid:e.id}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.hasRecentTags,expression:"hasRecentTags"}]},[n("br"),t._v(" "),n("p",{staticClass:"strong"},[t._v(t._s(t.$t("tags.clear-tags")))]),t._v(" "),n("button",{on:{click:t.clearRecentTags}},[t._v(t._s(t.$t("tags.clear-tags-btn")))])])],1)]),t._v(" "),n("div",{staticClass:"column is-6 image-wrapper"},[n("div",{staticClass:"image-content"},[n("img",{staticClass:"img",attrs:{src:e.filename}})]),t._v(" "),n("div",{staticClass:"column is-10 is-offset-1 mt-4"},[n("add-tags",{attrs:{id:e.id}})],1)]),t._v(" "),n("div",{staticClass:"column is-3",attrs:{id:"image-counts"}},[n("div",{staticClass:"box"},[n("li",{staticClass:"list-group-item"},[t._v("\n "+t._s(t.$t("tags.to-tag"))+": "+t._s(t.remaining)+"\n ")]),t._v(" "),n("li",{staticClass:"list-group-item"},[t._v("\n "+t._s(t.$t("tags.total-uploaded"))+": "+t._s(t.user.total_images)+"\n ")])]),t._v(" "),n("Tags",{attrs:{"photo-id":e.id}})],1)]),t._v(" "),n("div",{staticClass:"column",staticStyle:{"text-align":"center"}},[n("div",{staticClass:"has-text-centered mt3em"},[n("a",{directives:[{name:"show",rawName:"v-show",value:t.previous_page,expression:"previous_page"}],staticClass:"pagination-previous has-background-link has-text-white",on:{click:t.previousImage}},[t._v(t._s(t.$t("tags.previous")))]),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:t.remaining>t.current_page,expression:"remaining > current_page"}],staticClass:"pagination-next has-background-link has-text-white",on:{click:t.nextImage}},[t._v(t._s(t.$t("tags.next")))])])]),t._v(" "),n("div",{staticClass:"column"},[n("nav",{staticClass:"pagination is-centered",attrs:{role:"navigation","aria-label":"pagination"}},[n("ul",{staticClass:"pagination-list"},t._l(t.remaining,(function(e){return n("li",{key:e},[n("a",{class:e===t.current_page?"pagination-link is-current":"pagination-link",attrs:{"aria-label":"page"+t.current_page,"aria-current":t.current_page},on:{click:function(n){return t.goToPage(e)}}},[t._v(t._s(e))])])})),0)])])])})),0)])],1)}),[],!1,null,"128f88b2",null);e.default=g.exports},"EL+l":function(t,e,n){var i=n("bvo4");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},EOgW:function(t,e,n){!function(t){"use strict";t.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(t){return"หลังเที่ยง"===t},meridiem:function(t,e,n){return t<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 ปี"}})}(n("wd/R"))},Eep3:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".hide-br[data-v-3a284a4c] {\n display: none;\n}\n@media (max-width: 500px) {\n.hide-br[data-v-3a284a4c] {\n display: block;\n}\n.v-select[data-v-3a284a4c] {\n margin-top: 10px;\n}\n}\n@media (min-width: 768px) {\n.show-mobile[data-v-3a284a4c] {\n display: none !important;\n}\n}\n.custom-buttons[data-v-3a284a4c] {\n display: flex;\n padding: 20px;\n}\n.recent-tags[data-v-3a284a4c] {\n display: flex;\n max-width: 50em;\n margin: auto;\n flex-wrap: wrap;\n overflow: auto;\n justify-content: center;\n}\n.litter-tag[data-v-3a284a4c] {\n cursor: pointer;\n padding: 5px;\n border-radius: 5px;\n background-color: #3298dc;\n margin: 5px;\n}\n.list-enter-active[data-v-3a284a4c], .list-leave-active[data-v-3a284a4c] {\n transition: all 1s;\n}\n.list-enter[data-v-3a284a4c], .list-leave-to[data-v-3a284a4c] {\n opacity: 0;\n transform: translateX(30px);\n}",""])},F90D:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,'.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;padding:0;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent!important;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:"";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:.3125em;border-bottom-left-radius:.3125em}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::-moz-placeholder, .swal2-input::-moz-placeholder, .swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder, .swal2-input:-ms-input-placeholder, .swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder, .swal2-input::-ms-input-placeholder, .swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}',""])},Fjwm:function(t,e){t.exports="/images/vendor/leaflet/dist/layers.png?a6137456ed160d7606981aa57c559898"},Fnuy:function(t,e,n){!function(t){"use strict";t.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_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] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})}(n("wd/R"))},G0Uy:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},G57Y:function(t,e,n){var i=n("lL9X");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},G6KL:function(t){t.exports=JSON.parse('{"general":"Generalne","password":"Hasło","details":"Dane osobowe","account":"Moje konto","payments":"Moje płatności","privacy":"Prywatności","littercoin":"Littercoin (LTRX)","presence":"Obecność","emails":"E-maile","show-flag":"Pokaż flage","teams":"Drużyny"}')},GBDE:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".profile-container {\n min-height: calc(100vh - 82px);\n background-color: #341f97;\n display: grid;\n grid-template-columns: 1fr 2fr 1fr;\n grid-template-rows: 0.5fr 1fr 1fr;\n -moz-column-gap: 1em;\n column-gap: 1em;\n row-gap: 1em;\n padding: 3em;\n}\n.profile-card {\n background-color: #292f45;\n border-radius: 6px;\n box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);\n color: #4a4a4a;\n display: block;\n padding: 1.25rem;\n}\n.profile-card p {\n color: white;\n}",""])},GGJd:function(t){t.exports=JSON.parse('{"general":"General","password":"Password","details":"Personal Details","account":"My Account","payments":"My Payments","privacy":"Privacy","littercoin":"Littercoin (LTRX)","presence":"Presence","emails":"Emails","show-flag":"Show Flag","teams":"Teams"}')},GK9Q:function(t,e,n){"use strict";n.r(e);var i={name:"Terms"},r=n("KHd+"),o=Object(r.a)(i,(function(){var t=this.$createElement;this._self._c;return this._m(0)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[n("h1",[t._v("PLEASE READ CAREFULLY BEFORE USING OPEN LITTER MAP")]),t._v(" "),n("p",[n("i",[t._v("\n Last updated: 17"),n("sup",[t._v("th")]),t._v("\n Feb 2018\n ")])]),t._v(" "),n("br"),t._v('\n\n This END USER LICENCE AGREEMENT (the “EULA” or the "Licence") is a legal agreement between you (the "Licensee" or "you") and Seán Lynch trading as OpenLitterMap.com (“OpenLitterMap”, the “Licensor”, “our” or "we") for your licensed use of and access to www.OpenLitterMap.com (the “Website”), the internet based user interface (the “Web Application”) and the multi-platform smartphone and tablet software application (the “Mobile Application”) which will launch soon (together the Website, the Web Application and the Mobile Application are hereafter described as the “Platform”) and your access to the data-logging process which provides a means for Citzien Scientists (you) to contribute and attribute geotagged images of litter (eg. "cigarette butts", "plastic bottles", etc.) through our content-sharing platform (the "Services") in accordance with the terms of this Agreement.\n '),n("br"),t._v("\n The Terms of Service (hereforth referred to as the “Terms”) govern access and use of the OpenLitterMap website. These Terms are a legal agreement between you and us. By using these Services you are agreeing to these Terms.\n "),n("br"),t._v("\n OpenLitterMap data is "),n("a",{attrs:{href:"https://opendatacommons.org/licenses/odbl/"}},[t._v("Open Data, licensed by the Open Database Licence")]),t._v(" (ODBl - https://opendatacommons.org/licenses/odbl/). Any rights in individual contents of the database are licenced under the Database Contents License: http://opendatacommons.org/licenses/dbcl/1.0/\n "),n("br"),t._v('\n This means that anyone is free to copy, distribute, share and use our data, as long as you credit OpenLitterMap and its contributors with "© OpenLitterMap & Contributors".\n\n '),n("br"),t._v(" "),n("br"),t._v(" "),n("b",[t._v("DISCLAIMER: OpenLitterMap is not intended for use by individuals in an emergency situation nor is it currently being used to notify law enforcement or public bodies of the existence of real time litter issues. It is currently being used for geostatistical and awareness-raising purposes only. If you wish to report a specific issue of concern regarding the collection and removal of litter, please contact your local authority. We are not yet in contact with Local Authorities and we cannot guarantee that our 3rd party communication with them will enable their response to be as effective as contact from a concerned member of the public. However, with your ongoing participation we hope to achieve this to solve problems such as the millions of tonnes of plastic entering the ocean of our only habitable planet.")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("p",[t._v("PLEASE BE CAREFUL AND REMAIN VIGILANT WHEN DEALING WITH LITTER, PARTICULARLY DRUG-RELATED LITTER (EG. NEEDLES & INJECTING EQUIPMENT), AS IT POSES A SIGNIFICANT THREAT TO YOUR PERSONAL HEALTH AND WELL-BEING. YOU ARE ENTIRELY RESPONISBLE FOR YOURSELF WHEN YOU ARE DEALING WITH LITTER IN ANY WAY INCLUDING LOOKING FOR, PHOTOGRAPHING, COLLECTING DATA ON, REMOVING, ATTEMPTING TO REMOVE AND/OR ANY OTHER MEANS OF COMING INTO CONTACT WITH LITTER AND/OR DRUG-RELATED LITTER. UNDER NO CIRCUMSTANCES CAN WE BE HELD ACCOUNTABLE FOR PERSONAL INJURUES OR ANY OTHER CLAIMS RESULTING FROM ANY CONTENT PUBLISHED TO OR COMING FROM THIS WEBSITE INCLUDING PERSONAL INJURIES FROM NEEDLES, NEEDLE-STICKS OR ANY OTHER FORM OF DRUG PARAPHANALIA OR HARM THAT MAY BE CAUSED FROM ACCIDENTS, DISCOVERY OF, MISHANDLING OF AND THE USE OR IMPROPER USE OF DRUG PARAPHANALIA OR DRUG-RELATED LITTER."),n("b",[t._v(" YOU UNRESERVEDLY AGREE TO REMOVE OUR LIABILITY FROM ANY DAMAGES THAT MAY OCCUR FROM USE OR ACCESS OF THESE SERVICES OR FROM INFORMATION SHARED BY A 3RD PARTY.")])]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("BY REGISTERING FOR, UPLOADING TO AND/OR DOWNLOADING DATA AND INFORMATION FROM THE PLATFORM AND YOUR SUBSEQUENT CONTINUED USE OF THE PLATFORM AND THE SERVICES, YOU CONSENT TO BE BOUND BY THIS LICENCE. BY TICKING THE BOX ON REGISTRATION, AND AT ANY OTHER TIME ON LOGGING IN TO THE PLATFORM AND THROUGH YOUR CONTINUED USE OF THE SERVICES AND THE PLATFORM, YOU AGREE TO BE BOUND TO THE TERMS OF THIS LICENCE. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, THEN DO NOT REGISTER FOR THE PLATFORM, OR USE ANY OF THE SERVICES. BY TICKING THE BOX YOU CONFIRM THAT YOU HAVE READ, YOU DO ACCEPT AND UNDERSTAND THE TERMS OF THIS LICENCE AGREEMENT; THAT YOU ALSO CONSENT TO USE ELECTRONIC SIGNATURES AND ACKNOWLEDGE YOUR TICKING OF BOX TO BE AN ELECTRONIC SIGNATURE SUFFICIENT TO BIND YOU TO THE TERMS OF THIS LICENCE AGREEMENT.")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 1. GRANT AND SCOPE OF LICENCE")]),t._v(" "),n("div",{staticClass:"container"},[n("p",[t._v("1.1\tGeneral: ")]),t._v(" "),n("div",{staticClass:"container"},[t._v("\n OpenLitterMap provides you with access to the services through its platform. All verified litter data (120+ items, lat, lon, timestamp and OpenStreetMap address at each location) is Free and Open to download by Country, State or City and can be used for your own research, educational or commercial purposes, available through the Open Database Licence (ODbl - https://opendatacommons.org/licenses/odbl/). Link "),n("a",{attrs:{href:"https://opendatacommons.org/licenses/odbl/"}},[t._v("here")]),t._v(".\n ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("p",[t._v("1.2\tDefinitions:")]),t._v(" "),n("div",{staticClass:"container"},[t._v("\n 1.2.1\tContent: the Services and the Platform provides information including images, time and location data of litter that is supplied by our community of contributors, which is designed to raise awareness of litter and to provide hyper-geostatistical information to public bodies, various stakeholders and other interested parties to assist and inform the decisions made in relation littering to challenge the destructive plastic pollution paradigm; and\n "),n("br"),t._v(" "),n("br"),t._v("1.2.2\tUser Generated Content: the information, images or content provided by an End User posted to the Platform.\n ")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("1.3 Licence:")]),t._v(" "),n("div",{staticClass:"container"},[t._v("\n OpenLitterMap hereby grants to you a limited, personal or commercial, non- exclusive, non-transferable, temporary, revocable, non-assignable, non-sub-licensable licence and right to access the Platform and the Services though a generally available web browser in consideration of your strict and continued compliance with the following conditions:\n "),n("br"),t._v(" "),n("br"),t._v("1.3.1\tyour agreement, as evidenced by your acceptance of this EULA and your continued use of the Platform and the Services, to abide by the terms of this Licence;\n "),n("br"),t._v(" "),n("br"),t._v("1.3.2\tyour continuing compliance with the terms of this EULA and the Privacy Policy posted on the Website (which is hereby incorporated by this reference); and\n "),n("br"),t._v(" "),n("br"),t._v("1.3.3\tnot to use scraping, spidering, crawling or other technology or software of a malicious nature to access or make available to third parties information or data secured by the Platform, whether such data or information relates to OpenLitterMap , the Platform, the Services or Content without the express written consent of OpenLitterMap.\n ")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("1.4\tUse: Any use of the Platform, its software and/or Services or any part thereof in a manner contrary to the scope and purpose of this Licence is strictly prohibited and a violation of this Agreement, terminable in accordance with Section 12. OpenLitterMap is not intended for emergency use and users should apply extreme caution to their personal safety when using the Platform and engaging with or photographing litter, particularly needles, needle-sticks, syringes or any other form of drug-related litter. This Platform and the Content should only be used as an educational, statistics gathering tool and for aiding decision support. It is not intended to override or replace the obligation and necessity for reporting of litter to the appropriate authority in the geographical area in which the litter is identified. This Platform and the Content is currently only available directly as a web app from www.OpenLitterMap.com. Sourcing this Platform from another source without the consent of OpenLitterMap is not permitted and a direct breach of the terms of this Agreement.")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("1.5\tIntellectual Property:")]),t._v(" "),n("div",{staticClass:"container"},[n("br"),t._v("1.5.1\t“Intellectual Property Right(s)” includes any patent, trade or other mark, registered design, topography right, copyright, database right or any other right in the nature of any of the foregoing (or application, or right to apply for, any of the foregoing), and trade or business name, invention, discovery, improvement, design, technique, confidential process or information or know how, in each case subsisting anywhere in the world and whether registered, unregistered, or unregisterable, and any licence or right of user of any of the foregoing, and the full right to all legal protection relating to the same;\n "),n("br"),t._v(" "),n("br"),t._v("1.5.2\tSeán Lynch reserves all Intellectual Property Rights in and to the Platform, the Content and the Services and any such Intellectual Property Right shall at all times be and for all purposes remain vested in OpenLitterMap and/or its licensors, including all copies made of the Website and the Web with Section 10.\n ")]),t._v(" "),n("br"),t._v("1.6\tReciprocal Licence: End Users grant to OpenLitterMap and its licensors an irrevocable, royalty free and non-exclusive licence to use, copy, modify, adapt, translate and distribute anonymised or personally or organisationally attributed geostatistical or operational information relating to the uses made of the Application by End Users, or about the Device and related software, hardware and peripherals, information relating to their Device and the Platform and content on the Device (“Metadata”) to provide services and to develop and improve the Platform. Metadata expressly does not include personal data the use, control and processing of which is governed by our Privacy Policy."),n("p")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 2. ACCESS TO THE SERVICES")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("2.1.\tYour Account: OpenLitterMap is offering access to and use of the Platform and the Services solely for use by the person or entity in whose name an account is registered and not for the use or benefit of any third party. OpenLitterMap may change, suspend or discontinue any part of the Platform, the Content and/or the Services at any time, including the availability of any feature, database, or content.\n "),n("br"),t._v(" "),n("br"),t._v("2.2 Account Limitation: The Licensor may also impose limits on certain features of the Platform and the Services or restrict your access to parts or all of the Services without notice or liability. For as long as the Licensor continues to offer the Platform and the Services, we shall provide and seek to update, improve and expand. Therefore, OpenLitterMap reserves the right, at its discretion, to modify this EULA at any time by posting a notice on the Platform, or by sending you a notice via e-mail, and you consent to the receipt of such notice. You shall be responsible for reviewing and becoming familiar with any such modifications. Your use of the Platform and the Services following such notification constitutes your acceptance of the terms and conditions of this EULA as modified. Any new features that materially augment or enhance the Platform and/or the Services currently available, including the release of new tools and resources, shall be subject to this Agreement (as updated). You can review the most current version of the EULA at any time at: www.OpenLitterMap.com/terms.\n "),n("br"),t._v(" "),n("br"),t._v("2.3\tAccount Availability: The Licensor will use reasonable efforts to ensure that the Platform and the Services are available twenty-four hours a day, seven days a week. However, access to the Platform and Services shall be as they may exist and be available on any given day and the Licensor has no other obligation, except as expressly stated in this EULA. There will be occasions when the Platform and the Services will be unavailable or interrupted for maintenance, upgrades and emergency repairs or due to failure of telecommunications links and equipment. Every reasonable step will be taken by OpenLitterMap to minimize such disruption where it is within OpenLitterMap's reasonable control. YOU AGREE THAT OpenLitterMap WILL NOT BE LIABLE IN ANY EVENT TO YOU OR ANY OTHER PARTY FOR ANY SUSPENSION, MODIFICATION, DISCONTINUANCE OR LACK OF AVAILABILITY OF THE PLATFORM, SERVICES OR OTHER CONTENT. The Licensor retains the right to create limits on use and storage with respect to the Platform and the Services determined at its sole discretion at any time with or without notice.\n "),n("br"),t._v(" "),n("br"),t._v("2.4\tEligibility: To be eligible to use the Platform and the Services, you must meet the following criteria and represent and warrant that you:\n ")]),n("div",{staticClass:"container"},[n("br"),t._v("2.4.1\tare not currently restricted from use of the Platform and the Services, or not otherwise prohibited from having an account with OpenLitterMap;\n "),n("br"),t._v(" "),n("br"),t._v("2.4.2\twill only maintain one End User Account at any given time (unless explicitly consented to by OpenLitterMap );\n "),n("br"),n("br"),n("br"),t._v("2.4.3\twill not violate any rights of OpenLitterMap, including Intellectual Property Rights such as copyright, patent, design or trademark rights;\n "),n("br"),n("br"),t._v("2.4.4\tagree to provide at your cost all equipment, software, and internet access necessary to use the Platform and the Services;\n "),n("br"),t._v("2.4.5\tunderstand and agree that use of the Platform and the Services may entail the applicability of certain incidental usage charges (“Incidental Charges”) during the installation and use of the Service. These Incidental Charges may, among others, be levied by your mobile network operator or your internet service provider. You are advised to consult your mobile data or internet data plan to identify the Incidental Charges which may be incurred prior to the installation and operation of these Services; and\n "),n("br"),t._v("2.4.6\tyou are responsible for your own personal safety if you come into contact with people engaged in illegal behaviour and you are wholly and completely independently responsible for your own personal belongings. You are responsible for any personal decisions made arising from our services including personal injury or injuries from gathering data on litter paricularly drug-related litter or for visiting areas known to be frequented by people who choose to consume illicit substances or engage in anti-social behaviour particularly in areas where hazardous injecting equipment lays idle and exposed.\n ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v("2.5\tSuitability: You certify to OpenLitterMap that you are legally permitted to use the Platform and the Services, and take full responsibility for the selection and use of the Platform and the Services.\n "),n("br"),t._v(" "),n("br"),t._v("2.6\tProhibition by law: This Agreement is void where prohibited by law, and the right to use the Platform and Services are revoked in such jurisdictions. OpenLitterMap makes no claim that the Services may be lawfully used or that User Generated Content may be uploaded or downloaded in any jurisdiction save the jurisdiction specified by this EULA. Access to the Content made available via the Platform may not be legally permitted by certain persons or in certain countries. If you use the Services or the Platform from outside Ireland, you do so at your own risk and you are responsible for compliance with the laws of that jurisdiction. Furthermore, if you believe that you are entitled or obligated to act contrary to this Agreement under any mandatory law, you agree to provide us with a detailed and substantiated explanation of your reasons in writing at least 30 days before you act contrary to this Agreement, to allow us to assess whether we may, at our sole discretion, provide an alternative remedy for the situation, though we are under no obligation to do so.\n "),n("br"),t._v(" "),n("br"),t._v("2.7.\tPrivacy:\t Please note that privacy is very important to us. You should not enter and should also protect sensitive personal information such as your phone number, street address, or other information that is confidential in nature, by avoiding inputting them in fields that would present in a public manner or as identifying information. Please see our Privacy Policy which governs the manner in which your personal information is used and displayed by OpenLitterMap. By using this Platform and availing of the Services, you understand and agree that we are a content-sharing platform providing you with a means to view, locate and upload geo-tagged photos and other materials that are intended to be made public. This means that any geo-tagged photo you share, once properly attributed with the contents exhibited and once passes our verification system, will have a visible spatial (eg. centimeter accurate GPS location) and temporal (eg. a specific point in time to the second, minute, hour, day, month, year) stamp that will identify the contributors location at a specific location in time. You confirm that we may access this location identification mechanism and we may share this with information third parties and users of this Platform. Any registered User may view or potentially re-use your content that you provide to the Service. By default, the images you post will remain anonymous, however if you wish, you have the option to attribute either your full name or the unique username /organisation you are legally entitled to represent on all or none of the images you submit through your account. This can be changed in the settings section at openlittermap.com/settings/privacy.\n "),n("p"),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 3. REGISTRATION")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("3.1\tRegistration Process:\n ")]),n("div",{staticClass:"container"},[n("br"),t._v("3.1.1\tInformation: If you choose to create an End-User Account, you agree to provide only accurate and complete registration information and you will keep that information up-to-date if it changes. We will retain this information in accordance with the terms of our Privacy Policy.\n "),n("br"),t._v(" "),n("br"),t._v("3.1.2\tRegistering: When you register, you will be required to generate a unique log-in credential (a password) which relates to your own personal email address. Your password will be subject to certain limitations as regards availability, at the sole discretion of OpenLitterMap and must contain a minimum of 6 characters including one uppercase, one lowercase, one numeric digit and one special character. We reserve the right to the forfeiture of your password at any time. The combination of your email address and password permits us to verify you as the permitted and authorised user of the particular End-User Account, as well as providing access to the secure parts of the Platform and the Services such as uploading, attributing, verifying and downloading data. Access to the secure aspects of the Platform and the Services is not permitted for any other person or entity using your email and password and you are responsible for preventing such unauthorized use. Upon successful completion of the registration process, you will be afforded access to your End-User Account. You will be required to validate your End User Account through a validation process by email which will grant you authorized access to the Service.\n ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v("3.2\tAccess Denial: Individuals whose access to the Platform or use of the Services has previously been terminated by OpenLitterMap may not register for another account, nor may you designate another individual to use an account on your behalf. OpenLitterMap expressly reserves the right not to grant access to anyone they may choose, to the Services, the Platform or to create an End-User Account for any reason.\n "),n("br"),t._v(" "),n("br"),t._v("3.3\tAuthentication: The Website and Application rely on email addresses and passwords to know whether the person accessing the Platform and utilising the Services are authorized to do so. If someone accesses the Platform and or the Services using an email address and/or password that you have provided us with, we will rely on that email address and password and will assume that access has been made by you. You are recommended to change your password regularly to prevent unauthorised use. You are solely responsible for any and all access to the Platform, your End-User Account and/or use of the Services by persons using your email address and password. Please notify us immediately if you believe or become aware that your End-User Account is being used without your authorization.\n "),n("br"),t._v(" "),n("br"),t._v("3.4:\tAccess Indemnity: You indemnify us and hold us harmless for all damages and losses related to your failure to comply with the provisions of this Section 3, including, without limitation, your failure to secure your End-User Account from third party access.\n "),n("p"),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 4. AGE AND RESPONSIBILITY")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("4.1\tAge: Any individual making use of the Platform or the Services must be over 18 years of age to register or utilise them.\n "),n("br"),t._v(" "),n("br"),t._v("4.2\tResponsibility:\n ")]),n("div",{staticClass:"container"},[n("br"),t._v("4.2.1\tBy using and registering for the Platform and the Services, you understand that you are financially responsible for the applicable costs (if any) of using the services as detailed in this Agreement.\n "),n("br"),t._v(" "),n("br"),t._v("4.2.2\tYou agree to notify us immediately of any unauthorised use of your log-on information or any other breach of security.\n "),n("br"),t._v(" "),n("br"),t._v("4.2.3\tThis Platform shall currently only be used as a tool to raise public awareness and to aid and inform decision making to curb the destructive plastic pollution paradigm. It is not intended to be used in an emergency nor is it intended to override the roles of law enforcement or public administration. It is the obligation of the End User to confirm the information provided by way of the Content through independent sources. This Platform must not be considered complete or comprehensive due to possible errors in the database, limitations on volunteer contributions and the associated Content. Use of the Platform is solely at the End User’s risk.\n ")]),t._v(" "),n("p"),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 5. USER UNDERTAKINGS")]),t._v(" "),n("p",[t._v("5.1\tUndertaking: Except as expressly set out in this Licence or as permitted by any local law, you undertake not to:\n ")]),n("div",{staticClass:"container"},[n("br"),t._v("5.1.1.\tuse the Services for any unlawful or illegal purpose;\n "),n("br"),t._v("5.1.2.\tact dishonestly or fraudulently by engaging in objectionable conduct, or by posting inappropriate, inaccurate, or objectionable content to or through the Platform;\n "),n("br"),t._v("5.1.3\tpublish inaccurate information in the designated fields on registration for the service (e.g. do not include a link or an email address in your name field)\n "),n("br"),t._v("5.1.4.\tmake any translation, adaptation, arrangement or any other alteration of the permanent aspects of the Platform or any of the software contained in either or both;\n "),n("br"),t._v("5.1.5.\tmake any form of distribution to the public of the content of the Platform, the software, in whole or in part, or of copies thereof;\n "),n("br"),t._v("5.1.6.\tmake any form of distribution to the public of the Content or any other content on the Platform save as in accordance with the terms of this EULA;\n "),n("br"),t._v("5.1.7.\tremove or alter any copyright, meta-tags or other proprietary notice from the Platform, the Software and/or the Content;\n "),n("br"),t._v("5.1.8\tdisseminate, sell, give away, hire, lease, offer or expose for sale or distribute the content of the Platform, the Content or another associated data, information, product or content wholly or partially derived from any of the foregoing;\n "),n("br"),t._v("5.1.9.\tcreate an End-User Account for anyone other than a natural person;\n "),n("br"),t._v("5.1.10.\tharass, abuse or harm another person, including sending unwelcomed communications to others using the Services;\n "),n("br"),t._v("5.1.11.\tuse or attempt to use another End Users account without authorization from OpenLitterMap or that End User or create a false identity on the Website and/or the Application;\n "),n("br"),t._v("5.1.12.\tUpload, post, email, transmit or otherwise make available or initiate any content that:\n a)\tfalsely states, impersonates or otherwise misrepresents your identity to OpenLitterMap , including but not limited to the use of a pseudonym;\n b)\tis unlawful, libellous, abusive, obscene, discriminatory or otherwise objectionable;\n c)\tadds to a content field such content that is not intended for such field (i.e. submitting a telephone number in the “Name” or any other field, or including telephone numbers, email addresses, street addresses or any personally identifiable information for which there is not a field provided by OpenLitterMap );\n d)\tincludes information that you do not have the right to disclose or make available under any law or under contractual or fiduciary relationships.\n e)\tinfringes upon patents, trademarks, trade secrets, copyrights or other proprietary rights; and/or\n f)\tincludes any unsolicited or unauthorised communication, advertising, promotional materials, “junk mail,” “spam,” “chain letters,” “pyramid schemes,” or any other form of solicitation. This prohibition includes but is not limited to (i) using OpenLitterMap to send messages to people who have not expressly consented to the receipt of such contact through the privacy controls on the system; (ii) sending messages to distribution lists, newsgroup aliases, or group aliases.\n "),n("br"),t._v("5.1.13.\timply or state, directly or indirectly, that you are affiliated with or endorsed by OpenLitterMap unless you have entered into a written agreement with OpenLitterMap;\n "),n("br"),t._v("5.1.14.\treverse engineer, decompile, disassemble, decipher or otherwise attempt to derive the source code for any underlying intellectual property used in the Platform or to provide the Services, or any part thereof;\n "),n("br"),t._v("5.1.15.\tuse manual or automated software, devices, scripts robots, other means or processes to access, “scrape,” “crawl” or “spider” any web pages or other services contained in the Platform;\n "),n("br"),t._v("5.1.16.\tinfringe or use the OpenLitterMap brand, logos and/or trademarks, including, without limitation, using the word “OpenLitterMap” in any business name, email, or URL or including OpenLitterMap’s trademarks and logos except as expressly permitted by Seán Lynch post April 2017;\n "),n("br"),t._v("5.1.17\tuse bots or other automated methods to access the Platform, add or download contacts, send or redirect messages, or perform other activities through the Platform, unless explicitly permitted by OpenLitterMap ;\n "),n("br"),t._v("5.1.18.\tEngage in “framing,” “mirroring,” or otherwise simulating the appearance or function of the Platform;\n "),n("br"),t._v("5.1.19.\tAttempt to or actually access the Platform by any means other than through the interfaces provided by OpenLitterMap. This prohibition includes accessing or attempting to access OpenLitterMap using any third-party service, including software-as-a-service platforms that aggregate access to multiple services, including OpenLitterMap and proxy services;\n "),n("br"),t._v("5.1.20.\tDeep-link to the Platform for any purpose, (i.e. including a link to OpenLitterMap other than the home page) unless expressly authorized in writing by OpenLitterMap or for the purpose of authorised promotion;\n "),n("br"),t._v("5.1.21. Engage in any action that directly or indirectly interferes with the proper working of or places an unreasonable load on OpenLitterMap infrastructure, including, but not limited to, sending unsolicited communications to other Users or OpenLitterMap personnel, attempting to gain unauthorised access to OpenLitterMap , or transmitting or activating computer viruses through or on the Platform.\n ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v("5.2.\tCompliance Indemnity: You hereby agree to indemnify and hold OpenLitterMap and its licensors harmless from and against any liabilities, damages, judgments, costs and expenses (including reasonable legal fees and indirect and consequential loss) (“Losses”) arising out of your registration for or use of the Website, any downloading, installation and use of the Application software, or use of the Services in a manner inconsistent with this EULA.\n "),n("br"),t._v(" "),n("br"),t._v("5.3\tWarranty: You represent and warrant that you have the legal right and capacity to enter into this EULA in your jurisdiction.\n "),n("p"),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 6. OpenLitterMap 'UNDERTAKINGS'")]),t._v(" "),n("p",[t._v("6.1\tOpenLitterMap Indemnity: We shall indemnify you against any claim that your use of or access to the Platform or Services infringes the copyright of any third party provided:\n ")]),n("div",{staticClass:"container"},[n("br"),t._v("6.1.1\tsuch claim relates to the technology and software underlying the Platform and or the Services;\n "),n("br"),t._v("6.1.2\twe are immediately notified of any such claim;\n "),n("br"),t._v("6.1.3\tyou do not make any admission of liability;\n "),n("br"),t._v("6.1.4\twe are given immediate and complete control of such claim, including the right to conduct the defence of any claim and to make any settlements as appropriate; and\n "),n("br"),t._v("6.1.5\tthe claim does not arise on foot of any of the circumstances set out in Section 5 above.\n ")]),t._v(" "),n("br"),t._v("6.2\tRemedies: We shall have the right at our discretion, to replace, modify or change the software incorporated in the Services to make any such software non-infringing. The maximum aggregate liability of OpenLitterMap shall be equal to that which is set out in section 9 of this Agreement. This states the entire liability of OpenLitterMap to you in respect of the infringement of the Intellectual Property Rights of any third parties.\n "),n("br"),t._v(" "),n("br"),t._v("6.3.\tDisclosure of End User Information:\n "),n("div",{staticClass:"container"},[n("br"),t._v("6.3.1.\tYou acknowledge, consent and agree that we may access, preserve, and disclose your registration and any other information you provide to us, if required to do so by law or we, in good faith believe that such access, preservation or disclosure is reasonably necessary in our opinion to:\n (a)\tcomply with legal process, including, but not limited to, civil and criminal subpoenas, court orders or other compulsory disclosures;\n (b)\tenforce this Agreement;\n (c)\trespond to claims of a violation of the rights of third parties, whether or not the third party is a User, individual, or government agency;\n (d)\trespond to customer service inquiries; or\n (e)\tprotect the rights, property, or personal safety of OpenLitterMap developers/employees, our users or the public.\n "),n("br"),t._v("6.3.2.\tDisclosures of user information to third parties other than those required to provide customer support, to administer this EULA, or to comply with legal requirements are addressed in the Privacy Policy.\n ")]),t._v(" "),n("p"),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 7. THIRD PARTY SITES")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("7.1\tLinks: OpenLitterMap if it includes links to third party web sites in its Content (“Third Party Site(s)”) is not responsible for and does not endorse any features, content, advertising, products or other materials on or available from Third Party Sites or applications. If you decide to access Third Party Sites, you do so at your own risk and agree that your use of any Third Party Sites is on an “as-is” basis without any warranty, and your use of any Third Party Site is subject to the terms and conditions contained therein.")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 8. WARRANTY & DISCLAIMER ")]),t._v(" "),n("br"),n("p",[t._v("8.1\tANY INFORMATION OR CONTENT CONTAINED IN THE PLATFORM OR PROVIDED VIA THE SERVICES IS PROVIDED “AS IS” OR “AS AVAILABLE”. WHILE OpenLitterMap STRIVES TO PROVIDE YOU WITH USEFUL AND ACCURATE EVIDENCE BASED INFORMATION, OpenLitterMap DOES NOT WARRANT, AND EXPRESSLY DISCLAIMS, THAT THE INFORMATION CONTAINED IN CONTENT PROVIDED BY THIS PLATFORM IS UP-TO- DATE AND COMPLETE.\n "),n("br"),t._v(" "),n("br"),t._v("8.2\tAN END USER OF THE PLATFORM IS RESPONSIBLE FOR ANY AND ALL DAMAGES ARISING FROM PERSONAL CONTACT WITH LITTER INCLUDING NEEDLES, NEEDLE-STICKS OR ANY FORM OF DRUG-RELATED LITTER THAT MAY ARISE AS A CONSEQUENCE OF THEIR SEARCH FOR OR COLLECTION OF LITTER INCLUDING HANDLING OR MISHANDLING LITTER THAT MAY CAUSE HARM TO THE END USER’S PERSONAL HEALTH AND WELL-BEING. THE END USER HEREBY FULLY ACKNOWLEDGES THAT THEY ARE RESPONSIBLE FOR THEIR OWN ACTIONS AND THAT UNDER NO CIRCUMSTANCES CAN THE LICENSOR BE HELD RESPONSIBLE FOR SUCH ACTIONS. BY VOLUNTEERING TO SUBMIT AND CATEGORIZE GEOTAGGED PHOTOS OF LITTER WE STRIVE TO REDUCE THE HARMS CAUSED BY LITTER TO SOCIETY.\n "),n("br"),t._v(" "),n("br"),t._v("8.3\tTO THE FULLEST EXTENT PERMISSIBLE UNDER APPLICABLE LAW, WE DISCLAIM ANY AND ALL IMPLIED WARRANTIES AND REPRESENTATIONS, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, ACCURACY OF DATA, AND NONINFRINGEMENT. IF YOU ARE DISSATISFIED WITH THE PLATFORM, THE SERVICES, OR DO NOT AGREE WITH THE TERMS OF THIS EULA, YOU MAY CLOSE YOUR OpenLitterMap ACCOUNT AND TERMINATE THIS EULA IN ACCORDANCE WITH SECTION 12 (“TERMINATION”) AND SUCH TERMINATION SHALL BE YOUR SOLE AND EXCLUSIVE REMEDY. THIS PLATFORM AND THE CONTENT PROVIDED BY IT, MUST NOT BE CONSIDERED COMPLETE OR COMPREHENSIVE DUE TO POSSIBLE ERRORS IN THE DATABASE AND OUR INTERNAL TECHNICAL METHODS.\n "),n("br"),t._v(" "),n("br"),t._v("8.4\tOpenLitterMap IS NOT RESPONSIBLE AND MAKES NO REPRESENTATIONS OR WARRANTIES FOR THE DELIVERY OF ANY MESSAGES OR COMMUNICATION (SUCH AS EMAILS, FORUM POSTINGS OR TRANSMISSION OF ANY OTHER USER GENERATED CONTENT) UPLOADED TO THE PLATFORM. THE TRANSMISSION OF ANY SUCH MESSAGES, IMAGES OR COMMUNICATION SHALL BE ENTIRELY THE RESPONSIBILITY OF THE MOBILE NETWORK OPERATOR OR BROADBAND INTERNET PROVIDER. IN ADDITION, WE NEITHER WARRANT NOR REPRESENT THAT YOUR PERSONAL USE OF THE SERVICE WILL NOT INFRINGE THE RIGHTS OF THIRD PARTIES. ANY MATERIAL, SERVICE, OR TECHNOLOGY DESCRIBED OR USED ON THE PLATFORM MAY BE SUBJECT TO INTELLECTUAL PROPERTY RIGHTS OWNED BY THIRD PARTIES WHO HAVE LICENSED SUCH MATERIAL, SERVICE, OR TECHNOLOGY TO US.\n "),n("br"),t._v(" "),n("br"),t._v("8.5\tOpenLitterMap DOES NOT HAVE ANY OBLIGATION TO VERIFY THE IDENTITY OF THE PERSONS SUBSCRIBING FOR ITS SERVICES, NOR DOES IT HAVE ANY OBLIGATION TO MONITOR THE USE OF ITS SERVICES BY OTHER USERS; THEREFORE, OpenLitterMap DISCLAIMS ALL LIABILITY FOR IDENTITY THEFT OR ANY OTHER MISUSE OF YOUR IDENTITY OR INFORMATION.\n "),n("br"),t._v(" "),n("br"),t._v("8.6\tOpenLitterMap DOES NOT GUARANTEE THAT THE SERVICES IT PROVIDES WILL FUNCTION WITHOUT INTERRUPTION OR ERRORS IN OPERATION. IN PARTICULAR, THE OPERATION OF THE SERVICES MAY BE INTERRUPTED DUE TO MAINTENANCE, UPDATES, OR SYSTEM OR NETWORK FAILURES. OpenLitterMap DISCLAIMS ALL LIABILITY FOR DAMAGES CAUSED BY ANY SUCH INTERRUPTION OR ERRORS IN FUNCTIONALITY. FURTHERMORE, OpenLitterMap DISCLAIMS ALL LIABILITY FOR ANY MALFUNCTIONING, IMPOSSIBILITY OF ACCESS, OR POOR USE CONDITIONS OF THE PLATFORM DUE TO INAPPROPRIATE EQUIPMENT, DISTURBANCES RELATED TO INTERNET SERVICE PROVIDERS, TO THE SATURATION OF THE INTERNET NETWORK, AND FOR ANY OTHER REASON.\n")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 9: LIMITATION OF LIABILITY.")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("9.1\tPrecedence: This Section prevails over all other provisions of this EULA and sets out the entire liability of OpenLitterMap in respect of:\n ")]),n("div",{staticClass:"container"},[n("br"),t._v("9.1.1\tthe performance, non-performance, purported performance or delay in performance by OpenLitterMap of its obligations under this EULA; and\n "),n("br"),t._v("9.1.2\totherwise in relation to this Agreement or the entering into or performance of this EULA.\n ")]),t._v(" "),n("br"),t._v("9.2\tLosses not excluded: Nothing in this EULA shall exclude or limit OpenLitterMap liability specifically;\n "),n("div",{staticClass:"container"},[n("br"),t._v("9.2.1\tunder the tort of deceit;\n "),n("br"),t._v("9.2.2\tfor death or personal injury caused by any breach of duty;\n "),n("br"),t._v("9.2.3\tany breach of an obligation implied by the Sale of Goods Act 1893 and/or the Sale of Goods, Supply of Services Act 1980 (if any); or\n "),n("br"),t._v("9.2.4\tany other liability to the extent that under applicable law it cannot be excluded or limited.\n ")]),t._v(" "),n("br"),t._v("9.3\tLosses specifically excluded: OpenLitterMap disclaims all responsibility in respect of and for the personal safety of volunteers collecting and collating Content for upload on the Platform. End Users hereby hold the Licensor harmless from any damages, liabilities, Losses or any claims resulting from personal contact with litter such as needles, needle-sticks or any form of litter that may occur as a result of an End User’s search for or collection of litter including handling or mishandling or litter that may result in causing harm to the personal health and well-being of the End User or any other third party. Please be careful.\n "),n("br"),t._v(" "),n("br"),t._v("9.4\tNo Implied Terms: The terms of this EULA are in lieu of all other conditions, warranties and other terms concerning the supply or purported supply of, or failure to supply or delay in supplying, any services (except for those arising under the Sale of Goods Act 1893 and/or the Sale of Goods, Supply of Services Act 1980 (if any) which might but for this Clause have effect between OpenLitterMap and you or would otherwise be implied or incorporated into this EULA or any collateral contract, whether by statue, common law, or otherwise (including the implied conditions, warranties or other terms as to satisfactory quality, fitness for purpose or as to the use of reasonable skill and care), all of which are hereby excluded.\n "),n("br"),t._v(" "),n("br"),t._v("9.5\tNon-Contractual Liability: Subject to 9.2 and 9.3, OpenLitterMap does not accept, and excludes all liability for breach of any obligation or duty to take reasonable care or exercise reasonable skill other than any such obligation or duty arising under this EULA.\n "),n("br"),t._v(" "),n("br"),t._v("9.6\tIndirect Loss: Subject to 9.2, OpenLitterMap shall not be liable in contract, tort or otherwise howsoever for any of the following losses or damage, (whether or not such damage was foreseen, foreseeable, known or otherwise):\n "),n("div",{staticClass:"container"},[n("br"),t._v("9.6.1\trevenue, actual or anticipated profits, contracts, use of money, anticipated savings, business, opportunity, goodwill, reputation, changes in the value of assets, damage or corruption of data ; or\n "),n("br"),t._v("9.6.2\tany indirect or consequential loss howsoever caused (including, for the avoidance of doubt, whether such loss or damage is of a type specified in 9.6.1).\n "),n("br"),t._v("9.6.3 any other entities that claim a right to the same name.\n ")]),t._v(" "),n("br"),t._v("9.7\tBreach of Warranty: For the avoidance of doubt, OpenLitterMap shall have no liability to remedy a breach of warranty where such breach arises as a result of any of the following circumstances:\n "),n("div",{staticClass:"container"},[n("br"),t._v("9.7.1.\tany use of the Services by you other than in accordance with the terms of this Agreement or use of the Services for a purpose for which they were not designed;\n "),n("br"),t._v("9.7.2.\tany temporary or permanent reproduction by any means and in any form, in whole or in part, of the Platform;\n "),n("br"),t._v("9.7.3.\tany reverse assembly, reverse compilation, reverse engineering or adaptation of the whole or part of the Platform;\n "),n("br"),t._v("9.7.4.\tany alteration, modification, adjustment, translation, adaptation or enhancement made by you to the Website or the Application or any combination, connection, operation or use of the Platform with any other equipment, software or documentation;\n "),n("br"),t._v("9.7.5\tany dissemination, sale, hire, lease offer or exposure for sale or distribution of the Platform;\n "),n("br"),t._v("9.7.6\tany item of third party hardware or software, even if forming part of the software or if the Licensor has recommended such third party hardware or software;\n "),n("br"),t._v("9.7.7\tany breach by you of your obligations under this Agreement or of the Licensor’s Intellectual Property Rights; or\n "),n("br"),t._v("9.7.8\tany act, omission, negligence, fraud or default of or by you.\n ")]),t._v(" "),n("p"),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 10. INTELLECTUAL PROPERTY RIGHTS ")]),t._v(" "),n("p",[t._v("10.1\tVesting: You acknowledge that all Intellectual Property Rights, title and interest in the Platform and the Services contained therein, throughout the world belong to Seán Lynch, that rights in the these are licensed (not sold) to you, and that you have no rights in, or to, the Platform and the Services other than the right to use them in accordance with the terms of this EULA.\n "),n("br"),t._v("10.2\tContributions: Currently OpenLitterMap only accepts feedback to seanlynch@umail.ucc.ie. Please note that as OpenLitterMap develops we welcome your information, ideas, suggestions or other materials which you may supply. Any ideas, suggestions, documents, improvements, comments, proposals or feedback in relation to the operation of the Platform and or the Services (“Feedback”) in whatever manner or form facilitated by the Platform; any such communication with OpenLitterMap whether verbally, via postings on blogs, forums, questionnaires, email and the like (“Communication”), you acknowledge and agree that such Feedback and or Communication (together “Contributions”):\n ")]),n("div",{staticClass:"container"},[n("br"),t._v("10.2.1.\tdo not contain confidential or proprietary information;\n "),n("br"),t._v("10.2.2.\tdo not create any express or implied obligation of confidentiality in respect of OpenLitterMap;\n "),n("br"),t._v("10.2.3.\tOpenLitterMap is free to use or disclose (or choose not to use or disclose) such Contributions for any purpose, in any way, in any media worldwide;\n "),n("br"),t._v("10.2.4.\tdoes not preclude OpenLitterMap from having something similar to the Contributions already under consideration or in development;\n "),n("br"),t._v("10.2.5.\tthat you irrevocably waive and assign all right, title and interest in and to the Contributions to OpenLitterMap;\n "),n("br"),t._v("10.2.6.\tdoes not entitle you to any compensation, royalty or reimbursement of any kind from OpenLitterMap under any circumstances; and\n "),n("br"),t._v("10.2.7\tyou further agree to provide OpenLitterMap with such assistance as may be required in documenting, perfecting and maintaining OpenLitterMap’s rights in and to any such Contributions.\n ")]),t._v(" "),n("p"),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 11. INTEGRITY OF DATA")]),t._v(" "),n("p",[t._v("11.1\tNot Bespoke: You acknowledge that the Platform, the Services and the software have not been developed to meet your individual requirements and that it is therefore your responsibility to ensure that the facilities and functions of the Platform and the Services as described on the Website, meet your requirements.\n "),n("br"),t._v("11.2\tMinor Errors: You acknowledge that the Platform and the Services may not be free of bugs or errors and you agree that the existence of any errors shall not constitute a breach of this Licence.\n "),n("br"),t._v("11.3\tInsurance: You agree that you are the best judge of the value and importance of the data held on your End-User Account and that you will be solely responsible for taking out any insurance policy or other financial cover for loss or damage which may arise from loss of data for any reason.\n ")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 12. TERMINATION")]),t._v(" "),n("p",[t._v("12.1\tDuration: This Licence is effective either until deactivated by you by emailing us at seanlynch@umail.ucc.ie\n "),n("br"),t._v("12.2\tImmediate Termination: OpenLitterMap may terminate this Licence immediately if:\n "),n("br"),t._v("12.2.1\tyou commit a material or persistent breach of this Licence which you fail to remedy (if remediable) within 14 days after the service on you of notice requiring you to do so;\n "),n("br"),t._v("12.2.2\ta petition for a bankruptcy order to be made against you has been presented to the court;\n "),n("br"),t._v("12.2.3.\tif OpenLitterMap believes, at its sole discretion, that you are not adhering to the terms and conditions of this EULA or the Privacy Policy; or\n "),n("br"),t._v("12.2.4\tfor just cause at the sole discretion of OpenLitterMap to include, but not limited to the abuse of any fair usage policy or for the breach of any matter outlined under Section 5.1 above.\n "),n("br"),t._v("12.4\tUpon termination for any reason:\n "),n("br"),t._v("12.4.1\tall rights granted to you under this Licence shall cease;\n "),n("br"),t._v("12.4.2\tyou must cease all activities authorised by this Licence;\n "),n("br"),t._v("12.4.3\tyou must immediately pay to the Licensor any sums due to the Licensor under this Licence if applicable; and\n "),n("br"),t._v("12.4.4\tAll data stored and retained in the System will be deleted within a reasonable period.\n ")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 13. DATA PROTECTION")]),t._v(" "),n("p",[t._v("OpenLitterMap shall comply with the Data Protection requirements set out in our Privacy Policy.")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 14. NOTICES")]),t._v(" "),n("p",[t._v("14.1\tService messages: For the purposes of service messages and notices about the Services to you, OpenLitterMap may place a banner notice across the Platform to alert you to certain changes such as modifications to this EULA. Alternatively, notice may consist of an email from OpenLitterMap to an email address associated with your account or via a digital distribution platform for mobile applications, applicable to your particular device should we choose to facilitate this in the future.\n "),n("br"),t._v("14.2:\tGeneral Communication: You also agree that OpenLitterMap may communicate with you through your account or through other means including email about your account or services associated with OpenLitterMap. To unsubscribe from any communication we circulate to you, please click on the unsubscribe mechanism at the bottom of the communication. You acknowledge and agree that we shall have no liability associated with or arising from your failure to do so, to maintain accurate contact or other information, including, but not limited to, your failure to receive critical information about the Platform and Services.\n "),n("br"),t._v("14.3\tContacting OpenLitterMap : You may contact OpenLitterMap directly by email at seanlynch@umail.ucc.ie\n ")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 15. AMENDMENTS TO THE LICENCE")]),t._v(" "),n("p",[t._v("15.1\tAmendments: OpenLitterMap reserves the right, at our sole discretion, to amend, add or delete any of the terms and conditions of this Licence. OpenLitterMap will post notifications of any such changes to this Licence on the Website or in the Application, will provide a link to the revised version of this Licence, and may provide such other notice as the Licensor may elect in its sole discretion. If any future changes to this Licence are unacceptable to you or cause you to no longer be in compliance with this Licence, you may terminate this Licence in accordance with the terms herein.\n "),n("br"),t._v("15.2\tEvidence of Acceptance: Your installation, download and/or use of any updated or modified Software (if any) and/or your continued use of the Website, the Application or the Services following notice of changes to this Licence as described above means you accept any and all such changes. OpenLitterMap may change, modify, suspend, or discontinue any aspect of the Website, the Application and/or the Services at any time.\n "),n("br"),t._v("15.3\tLimits: OpenLitterMap may also impose limits on certain features without notice or liability. You disclaim any right, title or interest, monetary or otherwise, in any feature or content contained in the Platform and/or the Services.\n ")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 16. WAIVER")]),t._v(" "),n("p",[t._v("16.1\tStrict Performance: If OpenLitterMap fails, at any time during the term of this Licence, to insist on strict performance of any of your obligations under this Licence, or if OpenLitterMap fails to exercise any of the rights or remedies to which it is entitled under this Licence, this shall not constitute a waiver of such rights or remedies and shall not relieve you from compliance with such obligations.")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 17. CONFIDENTIAL INFORMATION")]),t._v(" "),n("p",[t._v("17.1\tNon-Confidential Relationship: You acknowledge and agree that your relationship with OpenLitterMap is not a confidential, fiduciary, or other type of special relationship, and that your decision to submit any User Generated Content does not place OpenLitterMap in a position that is any different from the position held by members of the general public, including with regard to your User Generated Content. None of your User Generated Content will be subject to any obligation of confidence on the part of OpenLitterMap, and OpenLitterMap will not be liable for any use or disclosure of any Content you provide, subject at all times to the terms of the Privacy Policy.")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 18. SEVERABILITY")]),t._v(" "),n("p",[t._v("If any of the terms of this Licence are determined by any competent authority to be invalid, unlawful or unenforceable to any extent, such term, condition or provision will to that extent be severed from the remaining terms, conditions and provisions which will continue to be valid to the fullest extent permitted by law.")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 19. ENTIRE AGREEMENT")]),t._v(" "),n("p",[t._v("This EULA and any document expressly referred to in it represents the entire agreement between you and Seán Lynch trading as OpenLitterMap, in relation to the license hereunder and supersedes any prior agreement, representation, understanding or arrangement between us, whether oral or in writing. Both Parties hereunder acknowledge that, in entering into this EULA, neither Party has relied on any representation, undertaking or promise given by the other or implied from anything said or written in negotiations between us before entering into this Licence except as expressly stated in this Licence. ")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 20. LAW AND JURISDICTION")]),t._v(" "),n("p",[t._v("20.1\tJurisdiction: This EULA is governed by Irish law. Any dispute arising from, or related to, any term of this EULA shall be subject to the exclusive jurisdiction of the Irish courts.\n "),n("br"),t._v("20.2\tLanguage: Any dispute arising from, or related to, any term of this EULA arising between the Parties, shall be resolved or determined based on the English language version alone. These terms were originally written in English. In the event that these terms are translated into any other language, the translation shall be for review purposes only and have no legal effect.\n ")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("SECTION 21. Relationship")]),t._v(" "),n("p",[t._v("Nothing in this Agreement shall create, evidence or imply any agency, partnership or joint venture between you and OpenLitterMap. Neither you nor OpenLitterMap shall act or describe itself as the agent of the other; nor shall either party represent that it has any authority to make commitments on behalf of the other.")])])}],!1,null,"2eec2650",null);e.default=o.exports},GKyZ:function(t){t.exports=JSON.parse('{"general":"Algemeen","password":"Wachtwoord","details":"Persoonlijke Details","account":"Mijn Account","payments":"Mijn Betalingen","privacy":"Privacy","littercoin":"Littercoin (LTRX)","presence":"Aanwezigheid","emails":"Emails","show-flag":"Toon vlag","teams":"Teams"}')},GvbF:function(t){t.exports=JSON.parse('{"card-number":"Kaart nummer","card-holder":"Naam van kaart eigenaar","exp":"Verval datum","cvv":"CVV","placeholders":{"card-number":"Je 16 cijferig kaart nummer","card-holder":"Naam van de kaart eigenaar","exp-month":"Maand","exp-year":"Jaar","cvv":"***"}}')},H8ED:function(t,e,n){!function(t){"use strict";function e(t,e,n){var i,r;return"m"===n?e?"хвіліна":"хвіліну":"h"===n?e?"гадзіна":"гадзіну":t+" "+(i=+t,r={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:e?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2])}t.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:e,mm:e,h:e,hh:e,d:"дзень",dd:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}})}(n("wd/R"))},H8ri:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return u}));var i=n("MO+k"),r=n.n(i);function o(t,e){return{render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:t,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:function(){return[]}}},data:function(){return{_chart:null,_plugins:this.plugins}},methods:{addPlugin:function(t){this.$data._plugins.push(t)},generateLegend:function(){if(this.$data._chart)return this.$data._chart.generateLegend()},renderChart:function(t,n){this.$data._chart&&this.$data._chart.destroy(),this.$data._chart=new r.a(this.$refs.canvas.getContext("2d"),{type:e,data:t,options:n,plugins:this.$data._plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}}var a=o("bar-chart","bar"),s=(o("horizontalbar-chart","horizontalBar"),o("doughnut-chart","doughnut")),l=o("line-chart","line"),u=(o("pie-chart","pie"),o("polar-chart","polarArea"),o("radar-chart","radar"));o("bubble-chart","bubble"),o("scatter-chart","scatter")},HOht:function(t){t.exports=JSON.parse('{"cancel":"Cancel","submit":"Submit","download":"Download","delete":"Delete","delete-image":"Delete the image?","confirm-delete":"Confirm Delete","loading":"Loading...","created_at":"Uploaded at","created":"Created","created-by":"Created by","datetime":"Taken at","day-names":["Mo","Tu","We","Th","Fr","Sa","Su"],"month-names":["January","February","March","April","May","June","July","August","September","October","November","December"],"short-month-names":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"next":"Next","previous":"Previous","next-page":"Next page","add-tags":"Add Tags","add-many-tags":"Add Many Tags","select-all":"Select all","de-select-all":"De-select all","choose-dates":"Choose Dates","not-verified":"Not Verified","verified":"Verified","search-by-id":"Search by ID","active":"Active","inactive":"Inactive","your-email":"you@email.com"}')},HP3h:function(t,e,n){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},i={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(t){return function(e,r,o,a){var s=n(e),l=i[t][n(e)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,e)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-ly",{months:o,monthsShort:o,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(t){return"م"===t},meridiem:function(t,e,n){return t<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(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("wd/R"))},HSsa:function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function p(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var x=/-(\w)/g,k=w((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),C=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),L=/\B([A-Z])/g,S=w((function(t){return t.replace(L,"-$1").toLowerCase()})),M=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function T(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function E(t,e){for(var n in e)t[n]=e[n];return t}function O(t){for(var e={},n=0;n0,K=Z&&Z.indexOf("edge/")>0,Q=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===q),tt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(W)try{var it={};Object.defineProperty(it,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,it)}catch(i){}var rt=function(){return void 0===H&&(H=!W&&!G&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),H},ot=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var st,lt="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);st="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=P,ct=0,dt=function(){this.id=ct++,this.subs=[]};dt.prototype.addSub=function(t){this.subs.push(t)},dt.prototype.removeSub=function(t){y(this.subs,t)},dt.prototype.depend=function(){dt.target&&dt.target.addDep(this)},dt.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(o&&!b(r,"default"))a=!1;else if(""===a||a===S(t)){var l=Bt(String,r.type);(l<0||s0&&(ce((l=t(l,(n||"")+"_"+i))[0])&&ce(c)&&(d[u]=yt(c.text+l[0].text),l.shift()),d.push.apply(d,l)):s(l)?ce(c)?d[u]=yt(c.text+l):""!==l&&d.push(yt(l)):ce(l)&&ce(c)?d[u]=yt(c.text+l.text):(a(e._isVList)&&o(l.tag)&&r(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+i+"__"),d.push(l)));return d}(t):void 0}function ce(t){return o(t)&&o(t.text)&&!1===t.isComment}function de(t,e){if(t){for(var n=Object.create(null),i=lt?Reflect.ownKeys(t):Object.keys(t),r=0;r0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==i&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var l in r={},t)t[l]&&"$"!==l[0]&&(r[l]=me(e,l,t[l]))}else r={};for(var u in e)u in r||(r[u]=ge(e,u));return t&&Object.isExtensible(t)&&(t._normalized=r),$(r,"$stable",a),$(r,"$key",s),$(r,"$hasNormal",o),r}function me(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function ge(t,e){return function(){return t[e]}}function ve(t,e){var n,i,r,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,r=t.length;idocument.createEvent("Event").timeStamp&&(ln=function(){return un.now()})}function cn(){var t,e;for(sn=ln(),on=!0,tn.sort((function(t,e){return t.id-e.id})),an=0;anan&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(cn))}}(this)},hn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){$t(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},hn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},hn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var fn={enumerable:!0,configurable:!0,get:P,set:P};function pn(t,e,n){fn.get=function(){return this[e][n]},fn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,fn)}var mn={lazy:!0};function gn(t,e,n){var i=!rt();"function"==typeof n?(fn.get=i?vn(e):yn(n),fn.set=P):(fn.get=n.get?i&&!1!==n.cache?vn(e):yn(n.get):P,fn.set=n.set||P),Object.defineProperty(t,e,fn)}function vn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),dt.target&&e.depend(),e.value}}function yn(t){return function(){return t.call(this,this)}}function _n(t,e,n,i){return c(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,i)}var bn=0;function wn(t){var e=t.options;if(t.super){var n=wn(t.super);if(n!==t.superOptions){t.superOptions=n;var i=function(t){var e,n=t.options,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=n[r]);return e}(t);i&&E(t.extendOptions,i),(e=t.options=Rt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function xn(t){this._init(t)}function kn(t){return t&&(t.Ctor.options.name||t.tag)}function Cn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,"[object RegExp]"===u.call(n)&&t.test(e));var n}function Ln(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var a=n[o];if(a){var s=kn(a.componentOptions);s&&!e(s)&&Sn(n,o,i,r)}}}function Sn(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=bn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Rt(wn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&qe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=he(e._renderChildren,r),t.$scopedSlots=i,t._c=function(e,n,i,r){return Ye(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return Ye(t,e,n,i,r,!0)};var o=n&&n.data;Mt(t,"$attrs",o&&o.attrs||i,null,!0),Mt(t,"$listeners",e._parentListeners||i,null,!0)}(e),Qe(e,"beforeCreate"),function(t){var e=de(t.$options.inject,t);e&&(Ct(!1),Object.keys(e).forEach((function(n){Mt(t,n,e[n])})),Ct(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[];t.$parent&&Ct(!1);var o=function(o){r.push(o);var a=zt(o,e,n,t);Mt(i,o,a),o in t||pn(t,"_props",o)};for(var a in e)o(a);Ct(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?P:M(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;c(e=t._data="function"==typeof e?function(t,e){ft();try{return t.call(e,e)}catch(t){return $t(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});for(var n,i=Object.keys(e),r=t.$options.props,o=(t.$options.methods,i.length);o--;){var a=i[o];r&&b(r,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&pn(t,"_data",a))}St(e,!0)}(t):St(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),i=rt();for(var r in e){var o=e[r],a="function"==typeof o?o:o.get;i||(n[r]=new hn(t,a||P,P,mn)),r in t||gn(t,r,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r1?T(e):e;for(var n=T(arguments,1),i='event handler for "'+t+'"',r=0,o=e.length;rparseInt(this.max)&&Sn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return F}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:E,mergeOptions:Rt,defineReactive:Mt},t.set=Tt,t.delete=Et,t.nextTick=ee,t.observable=function(t){return St(t),t},t.options=Object.create(null),z.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,E(t.options.components,Tn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Rt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=t.name||n.options.name,a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Rt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)pn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)gn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,z.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=E({},a.options),r[i]=a,a}}(t),function(t){z.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(xn),Object.defineProperty(xn.prototype,"$isServer",{get:rt}),Object.defineProperty(xn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xn,"FunctionalRenderContext",{value:De}),xn.version="2.6.11";var En=m("style,class"),On=m("input,textarea,option,select,progress"),Pn=function(t,e,n){return"value"===n&&On(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Dn=m("contenteditable,draggable,spellcheck"),An=m("events,caret,typing,plaintext-only"),In=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Nn="http://www.w3.org/1999/xlink",Rn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},jn=function(t){return Rn(t)?t.slice(6,t.length):""},zn=function(t){return null==t||!1===t};function Yn(t,e){return{staticClass:Fn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Fn(t,e){return t?e?t+" "+e:t:e||""}function Bn(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i-1?hi(t,e,n):In(e)?zn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Dn(e)?t.setAttribute(e,function(t,e){return zn(e)||"false"===e?"false":"contenteditable"===t&&An(e)?e:"true"}(e,n)):Rn(e)?zn(n)?t.removeAttributeNS(Nn,jn(e)):t.setAttributeNS(Nn,e,n):hi(t,e,n)}function hi(t,e,n){if(zn(n))t.removeAttribute(e);else{if(X&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var fi={create:ci,update:ci};function pi(t,e){var n=e.elm,i=e.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=function(t){for(var e=t.data,n=t,i=t;o(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=Yn(i.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Yn(e,n.data));return function(t,e){return o(t)||o(e)?Fn(t,Bn(e)):""}(e.staticClass,e.class)}(e),l=n._transitionClasses;o(l)&&(s=Fn(s,Bn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var mi,gi,vi,yi,_i,bi,wi={create:pi,update:pi},xi=/[\w).+\-_$\]]/;function ki(t){var e,n,i,r,o,a=!1,s=!1,l=!1,u=!1,c=0,d=0,h=0,f=0;for(i=0;i=0&&" "===(m=t.charAt(p));p--);m&&xi.test(m)||(u=!0)}}else void 0===r?(f=i+1,r=t.slice(0,i).trim()):g();function g(){(o||(o=[])).push(t.slice(f,i).trim()),f=i+1}if(void 0===r?r=t.slice(0,i).trim():0!==f&&g(),o)for(i=0;i-1?{exp:t.slice(0,yi),key:'"'+t.slice(yi+1)+'"'}:{exp:t,key:null};for(gi=t,yi=_i=bi=0;!Fi();)Bi(vi=Yi())?Hi(vi):91===vi&&$i(vi);return{exp:t.slice(0,_i),key:t.slice(_i+1,bi)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Yi(){return gi.charCodeAt(++yi)}function Fi(){return yi>=mi}function Bi(t){return 34===t||39===t}function $i(t){var e=1;for(_i=yi;!Fi();)if(Bi(t=Yi()))Hi(t);else if(91===t&&e++,93===t&&e--,0===e){bi=yi;break}}function Hi(t){for(var e=t;!Fi()&&(t=Yi())!==e;);}var Ui,Vi="__r";function Wi(t,e,n){var i=Ui;return function r(){null!==e.apply(null,arguments)&&Zi(t,r,n,i)}}var Gi=Gt&&!(tt&&Number(tt[1])<=53);function qi(t,e,n,i){if(Gi){var r=sn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Ui.addEventListener(t,e,nt?{capture:n,passive:i}:n)}function Zi(t,e,n,i){(i||Ui).removeEventListener(t,e._wrapper||e,n)}function Xi(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Ui=e.elm,function(t){if(o(t.__r)){var e=X?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ae(n,i,qi,Zi,Wi,e.context),Ui=void 0}}var Ji,Ki={create:Xi,update:Xi};function Qi(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in o(l.__ob__)&&(l=e.data.domProps=E({},l)),s)n in l||(a[n]="");for(n in l){if(i=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=i;var u=r(i)?"":String(i);tr(a,u)&&(a.value=u)}else if("innerHTML"===n&&Un(a.tagName)&&r(a.innerHTML)){(Ji=Ji||document.createElement("div")).innerHTML=""+i+"";for(var c=Ji.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(i!==s[n])try{a[n]=i}catch(t){}}}}function tr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,i=t._vModifiers;if(o(i)){if(i.number)return p(n)!==p(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var er={create:Qi,update:Qi},nr=w((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}));function ir(t){var e=rr(t.style);return t.staticStyle?E(t.staticStyle,e):e}function rr(t){return Array.isArray(t)?O(t):"string"==typeof t?nr(t):t}var or,ar=/^--/,sr=/\s*!important$/,lr=function(t,e,n){if(ar.test(e))t.style.setProperty(e,n);else if(sr.test(n))t.style.setProperty(S(e),n.replace(sr,""),"important");else{var i=cr(e);if(Array.isArray(n))for(var r=0,o=n.length;r-1?e.split(fr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function mr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(fr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function gr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&E(e,vr(t.name||"v")),E(e,t),e}return"string"==typeof t?vr(t):void 0}}var vr=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),yr=W&&!J,_r="transition",br="animation",wr="transition",xr="transitionend",kr="animation",Cr="animationend";yr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(wr="WebkitTransition",xr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(kr="WebkitAnimation",Cr="webkitAnimationEnd"));var Lr=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Sr(t){Lr((function(){Lr(t)}))}function Mr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),pr(t,e))}function Tr(t,e){t._transitionClasses&&y(t._transitionClasses,e),mr(t,e)}function Er(t,e,n){var i=Pr(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===_r?xr:Cr,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l0&&(n=_r,c=a,d=o.length):e===br?u>0&&(n=br,c=u,d=l.length):d=(n=(c=Math.max(a,u))>0?a>u?_r:br:null)?n===_r?o.length:l.length:0,{type:n,timeout:c,propCount:d,hasTransform:n===_r&&Or.test(i[wr+"Property"])}}function Dr(t,e){for(;t.length1}function zr(t,e){!0!==e.data.show&&Ir(e)}var Yr=function(t){var e,n,i={},l=t.modules,u=t.nodeOps;for(e=0;ep?_(t,r(n[v+1])?null:n[v+1].elm,n,f,v,i):f>v&&w(e,h,p)}(h,m,v,n,c):o(v)?(o(t.text)&&u.setTextContent(h,""),_(h,null,v,0,v.length-1,n)):o(m)?w(m,0,m.length-1):o(t.text)&&u.setTextContent(h,""):t.text!==e.text&&u.setTextContent(h,e.text),o(p)&&o(f=p.hook)&&o(f=f.postpatch)&&f(t,e)}}}function L(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i-1,a.selected!==o&&(a.selected=o);else if(I(Ur(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function Hr(t,e){return e.every((function(e){return!I(e,t)}))}function Ur(t){return"_value"in t?t._value:t.value}function Vr(t){t.target.composing=!0}function Wr(t){t.target.composing&&(t.target.composing=!1,Gr(t.target,"input"))}function Gr(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function qr(t){return!t.componentInstance||t.data&&t.data.transition?t:qr(t.componentInstance._vnode)}var Zr={model:Fr,show:{bind:function(t,e,n){var i=e.value,r=(n=qr(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,Ir(n,(function(){t.style.display=o}))):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value;!i!=!e.oldValue&&((n=qr(n)).data&&n.data.transition?(n.data.show=!0,i?Ir(n,(function(){t.style.display=t.__vOriginalDisplay})):Nr(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}}},Xr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Jr(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Jr(Ue(e.children)):t}function Kr(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var o in r)e[k(o)]=r[o];return e}function Qr(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var to=function(t){return t.tag||He(t)},eo=function(t){return"show"===t.name},no={name:"transition",props:Xr,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(to)).length){var i=this.mode,r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var o=Jr(r);if(!o)return r;if(this._leaving)return Qr(t,r);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=Kr(this),u=this._vnode,c=Jr(u);if(o.data.directives&&o.data.directives.some(eo)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!He(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=E({},l);if("out-in"===i)return this._leaving=!0,se(d,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Qr(t,r);if("in-out"===i){if(He(o))return u;var h,f=function(){h()};se(l,"afterEnter",f),se(l,"enterCancelled",f),se(d,"delayLeave",(function(t){h=t}))}}return r}}},io=E({tag:String,moveClass:String},Xr);function ro(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function oo(t){t.data.newPos=t.elm.getBoundingClientRect()}function ao(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}delete io.mode;var so={Transition:no,TransitionGroup:{props:io,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=Xe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=Kr(this),s=0;s-1?Gn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Gn[t]=/HTMLUnknownElement/.test(e.toString())},E(xn.options.directives,Zr),E(xn.options.components,so),xn.prototype.__patch__=W?Yr:P,xn.prototype.$mount=function(t,e){return function(t,e,n){var i;return t.$el=e,t.$options.render||(t.$options.render=vt),Qe(t,"beforeMount"),i=function(){t._update(t._render(),n)},new hn(t,i,P,{before:function(){t._isMounted&&!t._isDestroyed&&Qe(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Qe(t,"mounted")),t}(this,t=t&&W?Zn(t):void 0,e)},W&&setTimeout((function(){F.devtools&&ot&&ot.emit("init",xn)}),0);var lo,uo=/\{\{((?:.|\r?\n)+?)\}\}/g,co=/[-.*+?^${}()|[\]\/\\]/g,ho=w((function(t){var e=t[0].replace(co,"\\$&"),n=t[1].replace(co,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),fo={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Ii(t,"class");n&&(t.staticClass=JSON.stringify(n));var i=Ai(t,"class",!1);i&&(t.classBinding=i)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},po={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Ii(t,"style");n&&(t.staticStyle=JSON.stringify(nr(n)));var i=Ai(t,"style",!1);i&&(t.styleBinding=i)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},mo=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),go=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),vo=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),yo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_o=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bo="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+B.source+"]*",wo="((?:"+bo+"\\:)?"+bo+")",xo=new RegExp("^<"+wo),ko=/^\s*(\/?)>/,Co=new RegExp("^<\\/"+wo+"[^>]*>"),Lo=/^]+>/i,So=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Po=/&(?:lt|gt|quot|amp|#39);/g,Do=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ao=m("pre,textarea",!0),Io=function(t,e){return t&&Ao(t)&&"\n"===e[0]};function No(t,e){var n=e?Do:Po;return t.replace(n,(function(t){return Oo[t]}))}var Ro,jo,zo,Yo,Fo,Bo,$o,Ho,Uo=/^@|^v-on:/,Vo=/^v-|^@|^:|^#/,Wo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Go=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,qo=/^\(|\)$/g,Zo=/^\[.*\]$/,Xo=/:(.*)$/,Jo=/^:|^\.|^v-bind:/,Ko=/\.[^.\]]+(?=[^\]]*$)/g,Qo=/^v-slot(:|$)|^#/,ta=/[\r\n]/,ea=/\s+/g,na=w((function(t){return(lo=lo||document.createElement("div")).innerHTML=t,lo.textContent})),ia="_empty_";function ra(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ca(e),rawAttrsMap:{},parent:n,children:[]}}function oa(t,e){var n,i;(i=Ai(n=t,"key"))&&(n.key=i),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Ai(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=Ii(t,"scope"),t.slotScope=e||Ii(t,"slot-scope")):(e=Ii(t,"slot-scope"))&&(t.slotScope=e);var n=Ai(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Ti(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var i=Ni(t,Qo);if(i){var r=la(i),o=r.name,a=r.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=i.value||ia}}else{var s=Ni(t,Qo);if(s){var l=t.scopedSlots||(t.scopedSlots={}),u=la(s),c=u.name,d=u.dynamic,h=l[c]=ra("template",[],t);h.slotTarget=c,h.slotTargetDynamic=d,h.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=h,!0})),h.slotScope=s.value||ia,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Ai(t,"name"))}(t),function(t){var e;(e=Ai(t,"is"))&&(t.component=e),null!=Ii(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var r=0;r-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Di(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+zi(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+zi(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+zi(e,"$$c")+"}",null,!0)}(t,i,r);else if("input"===o&&"radio"===a)!function(t,e,n){var i=n&&n.number,r=Ai(t,"value")||"null";Mi(t,"checked","_q("+e+","+(r=i?"_n("+r+")":r)+")"),Di(t,"change",zi(e,r),null,!0)}(t,i,r);else if("input"===o||"textarea"===o)!function(t,e,n){var i=t.attrsMap.type,r=n||{},o=r.lazy,a=r.number,s=r.trim,l=!o&&"range"!==i,u=o?"change":"range"===i?Vi:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),a&&(c="_n("+c+")");var d=zi(e,c);l&&(d="if($event.target.composing)return;"+d),Mi(t,"value","("+e+")"),Di(t,u,d,null,!0),(s||a)&&Di(t,"blur","$forceUpdate()")}(t,i,r);else if(!F.isReservedTag(o))return ji(t,i,r),!1;return!0},text:function(t,e){e.value&&Mi(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Mi(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:mo,mustUseProp:Pn,canBeLeftOpenTag:go,isReservedTag:Vn,getTagNamespace:Wn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(ga)},ya=w((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var _a=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ba=/\([^)]*?\);*$/,wa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,xa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ka={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ca=function(t){return"if("+t+")return null;"},La={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ca("$event.target !== $event.currentTarget"),ctrl:Ca("!$event.ctrlKey"),shift:Ca("!$event.shiftKey"),alt:Ca("!$event.altKey"),meta:Ca("!$event.metaKey"),left:Ca("'button' in $event && $event.button !== 0"),middle:Ca("'button' in $event && $event.button !== 1"),right:Ca("'button' in $event && $event.button !== 2")};function Sa(t,e){var n=e?"nativeOn:":"on:",i="",r="";for(var o in t){var a=Ma(t[o]);t[o]&&t[o].dynamic?r+=o+","+a+",":i+='"'+o+'":'+a+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function Ma(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Ma(t)})).join(",")+"]";var e=wa.test(t.value),n=_a.test(t.value),i=wa.test(t.value.replace(ba,""));if(t.modifiers){var r="",o="",a=[];for(var s in t.modifiers)if(La[s])o+=La[s],xa[s]&&a.push(s);else if("exact"===s){var l=t.modifiers;o+=Ca(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else a.push(s);return a.length&&(r+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Ta).join("&&")+")return null;"}(a)),o&&(r+=o),"function($event){"+r+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":i?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(i?"return "+t.value:t.value)+"}"}function Ta(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=xa[t],i=ka[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}var Ea={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:P},Oa=function(t){this.options=t,this.warn=t.warn||Li,this.transforms=Si(t.modules,"transformCode"),this.dataGenFns=Si(t.modules,"genData"),this.directives=E(E({},Ea),t.directives);var e=t.isReservedTag||D;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Pa(t,e){var n=new Oa(e);return{render:"with(this){return "+(t?Da(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Da(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Aa(t,e);if(t.once&&!t.onceProcessed)return Ia(t,e);if(t.for&&!t.forProcessed)return Ra(t,e);if(t.if&&!t.ifProcessed)return Na(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',i=Fa(t,e),r="_t("+n+(i?","+i:""),o=t.attrs||t.dynamicAttrs?Ha((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:k(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];return!o&&!a||i||(r+=",null"),o&&(r+=","+o),a&&(r+=(o?"":",null")+","+a),r+")"}(t,e);var n;if(t.component)n=function(t,e,n){var i=e.inlineTemplate?null:Fa(e,n,!0);return"_c("+t+","+ja(e,n)+(i?","+i:"")+")"}(t.component,t,e);else{var i;(!t.plain||t.pre&&e.maybeComponent(t))&&(i=ja(t,e));var r=t.inlineTemplate?null:Fa(t,e,!0);n="_c('"+t.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var o=0;o>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var n=t.children[0];if(n&&1===n.type){var i=Pa(n,e.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+Ha(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function za(t){return 1===t.type&&("slot"===t.tag||t.children.some(za))}function Ya(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Na(t,e,Ya,"null");if(t.for&&!t.forProcessed)return Ra(t,e,Ya);var i=t.slotScope===ia?"":String(t.slotScope),r="function("+i+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Fa(t,e)||"undefined")+":undefined":Fa(t,e)||"undefined":Da(t,e))+"}",o=i?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+r+o+"}"}function Fa(t,e,n,i,r){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return""+(i||Da)(a,e)+s}var l=n?function(t,e){for(var n=0,i=0;i]*>)","i")),h=t.replace(d,(function(t,n,i){return u=i.length,To(c)||"noscript"===c||(n=n.replace(//g,"$1").replace(//g,"$1")),Io(c,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));l+=t.length-h.length,t=h,S(c,l-u,l)}else{var f=t.indexOf("<");if(0===f){if(So.test(t)){var p=t.indexOf("--\x3e");if(p>=0){e.shouldKeepComment&&e.comment(t.substring(4,p),l,l+p+3),k(p+3);continue}}if(Mo.test(t)){var m=t.indexOf("]>");if(m>=0){k(m+2);continue}}var g=t.match(Lo);if(g){k(g[0].length);continue}var v=t.match(Co);if(v){var y=l;k(v[0].length),S(v[1],y,l);continue}var _=C();if(_){L(_),Io(_.tagName,t)&&k(1);continue}}var b=void 0,w=void 0,x=void 0;if(f>=0){for(w=t.slice(f);!(Co.test(w)||xo.test(w)||So.test(w)||Mo.test(w)||(x=w.indexOf("<",1))<0);)f+=x,w=t.slice(f);b=t.substring(0,f)}f<0&&(b=t),b&&k(b.length),e.chars&&b&&e.chars(b,l-b.length,l)}if(t===n){e.chars&&e.chars(t);break}}function k(e){l+=e,t=t.substring(e)}function C(){var e=t.match(xo);if(e){var n,i,r={tagName:e[1],attrs:[],start:l};for(k(e[0].length);!(n=t.match(ko))&&(i=t.match(_o)||t.match(yo));)i.start=l,k(i[0].length),i.end=l,r.attrs.push(i);if(n)return r.unarySlash=n[1],k(n[0].length),r.end=l,r}}function L(t){var n=t.tagName,l=t.unarySlash;o&&("p"===i&&vo(n)&&S(i),s(n)&&i===n&&S(n));for(var u=a(n)||!!l,c=t.attrs.length,d=new Array(c),h=0;h=0&&r[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=r.length-1;u>=a;u--)e.end&&e.end(r[u].tag,n,o);r.length=a,i=a&&r[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}S()}(t,{warn:Ro,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,a,c,d){var h=i&&i.ns||Ho(t);X&&"svg"===h&&(o=function(t){for(var e=[],n=0;nl&&(s.push(o=t.slice(l,r)),a.push(JSON.stringify(o)));var u=ki(i[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),l=r+i[0].length}return l':'
',qa.innerHTML.indexOf(" ")>0}var Ka=!!W&&Ja(!1),Qa=!!W&&Ja(!0),ts=w((function(t){var e=Zn(t);return e&&e.innerHTML})),es=xn.prototype.$mount;xn.prototype.$mount=function(t,e){if((t=t&&Zn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=ts(i));else{if(!i.nodeType)return this;i=i.innerHTML}else t&&(i=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(i){var r=Xa(i,{outputSourceRange:!1,shouldDecodeNewlines:Ka,shouldDecodeNewlinesForHref:Qa,delimiters:n.delimiters,comments:n.comments},this),o=r.render,a=r.staticRenderFns;n.render=o,n.staticRenderFns=a}}return es.call(this,t,e)},xn.compile=Xa,t.exports=xn}).call(this,n("yLpj"),n("URgk").setImmediate)},IlGX:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n@media only screen and (max-width: 900px) {\n.container[data-v-3c63ab1d] {\n display: flex;\n overflow-x: auto;\n}\n.admin-item[data-v-3c63ab1d] {\n padding: 10px;\n}\n}\n.category[data-v-3c63ab1d] {\n font-size: 1.25em;\n display: flex;\n justify-content: center;\n margin-bottom: 0.5em;\n}\n.litter-tag[data-v-3c63ab1d] {\n cursor: pointer;\n margin-bottom: 10px;\n width: 100%;\n}\n\n",""])},"Ivi+":function(t,e,n){!function(t){"use strict";t.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(t,e){switch(e){case"d":case"D":case"DDD":return t+"일";case"M":return t+"월";case"w":case"W":return t+"주";default:return t}},meridiemParse:/오전|오후/,isPM:function(t){return"오후"===t},meridiem:function(t,e,n){return t<12?"오전":"오후"}})}(n("wd/R"))},"JCF/":function(t,e,n){!function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];t.defineLocale("ku",{months:i,monthsShort:i,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(t){return/ئێواره‌/.test(t)},meridiem:function(t,e,n){return t<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(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("wd/R"))},JEQr:function(t,e,n){"use strict";(function(e){var i=n("xTJ+"),r=n("yK9s"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(s=n("tQ2B")),s),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){l.headers[t]=i.merge(o)})),t.exports=l}).call(this,n("8oxB"))},JN9a:function(t,e,n){var i=n("vaEP");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},JVSJ:function(t,e,n){!function(t){"use strict";function e(t,e,n){var i=t+" ";switch(n){case"ss":return i+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return i+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return i+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return i+=1===t?"dan":"dana";case"MM":return i+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return i+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},JWC4:function(t,e,n){var i=n("kg4N");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},JXP8:function(t,e,n){!function(t){"use strict";var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,n=this._zoom;if(t.__parent)for(;e.__parent._zoom>=n;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):t.getLatLng?this._map?t.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t}),this):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t}),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var n,i=this._featureGroup,r=this._nonPointGroup,o=this.options.chunkedLoading,a=this.options.chunkInterval,s=this.options.chunkProgress,l=t.length,u=0,c=!0;if(this._map){var d=(new Date).getTime(),h=L.bind((function(){for(var f=(new Date).getTime();ua);u++)if((n=t[u])instanceof L.LayerGroup)c&&(t=t.slice(),c=!1),this._extractNonGroupLayers(n,t),l=t.length;else if(n.getLatLng){if(!this.hasLayer(n)&&(this._addLayer(n,this._maxZoom),e||this.fire("layeradd",{layer:n}),n.__parent&&2===n.__parent.getChildCount())){var p=n.__parent.getAllChildMarkers(),m=p[0]===n?p[1]:p[0];i.removeLayer(m)}}else r.addLayer(n),e||this.fire("layeradd",{layer:n});s&&s(u,l,(new Date).getTime()-d),u===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(h,this.options.chunkDelay)}),this);h()}else for(var f=this._needsClustering;u=0;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var n,i,r,o=this._needsClustering.slice(),a=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),i=o.length-1;i>=0;i--){for(n=!0,r=a.length-1;r>=0;r--)if(a[r].layer===o[i]){n=!1;break}n&&t.call(e,o[i])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(n){L.stamp(n)===t&&(e=n)})),e},hasLayer:function(t){if(!t)return!1;var e,n=this._needsClustering;for(e=n.length-1;e>=0;e--)if(n[e]===t)return!0;for(e=(n=this._needsRemoving).length-1;e>=0;e--)if(n[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){"function"!=typeof e&&(e=function(){});var n=function(){!t._icon&&!t.__parent._icon||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,this),t._icon?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom=0;n--)if(t[n]===e)return t.splice(n,1),!0},_removeFromGridUnclustered:function(t,e){for(var n=this._map,i=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());e>=r&&i[e].removeObject(t,n.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,n){t._latlng=e,this.removeLayer(t),t._latlng=n,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,n){var i=this._gridClusters,r=this._gridUnclustered,o=this._featureGroup,a=this._map,s=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var l,u=t.__parent,c=u._markers;for(this._arraySplice(c,t);u&&(u._childCount--,u._boundsNeedUpdate=!0,!(u._zoom"+e+"
",className:"marker-cluster"+n,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,n=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick;(e||i)&&this.on("clusterclick",this._zoomOrSpiderfy,this),n&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){for(var e=t.layer,n=e;1===n._childClusters.length;)n=n._childClusters[0];n._zoom===this._maxZoom&&n._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),t.layer.getChildCount()>2&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,i=this._map;(t||n)&&this.off("clusterclick",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),i.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),n=this.options.maxClusterRadius,i=n;"function"!=typeof n&&(i=function(){return n}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var r=t;r>=e;r--)this._gridClusters[r]=new L.DistanceGrid(i(r)),this._gridUnclustered[r]=new L.DistanceGrid(i(r));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var n,i,r=this._gridClusters,o=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);e>=a;e--){n=this._map.project(t.getLatLng(),e);var s=r[e].getNearObject(n);if(s)return s._addChild(t),void(t.__parent=s);if(s=o[e].getNearObject(n)){var l=s.__parent;l&&this._removeLayer(s,!1);var u=new this._markerCluster(this,e,s,t);r[e].addObject(u,this._map.project(u._cLatLng,e)),s.__parent=u,t.__parent=u;var c=u;for(i=e-1;i>l._zoom;i--)c=new this._markerCluster(this,i,c),r[i].addObject(c,this._map.project(s.getLatLng(),i));return l._addChild(c),void this._removeFromGridUnclustered(s,e)}o[e].addObject(t,n)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;tt?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var n=e.getAllChildMarkers();this._featureGroup.removeLayer(n[0]),this._featureGroup.removeLayer(n[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var n,i=t.getLayers(),r=0;for(e=e||[];r=0;n--)a=l[n],i.contains(a._latlng)||r.removeLayer(a)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(i,e),r.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(i,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(i,t,o,(function(t){r.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var n=this,i=this._featureGroup;i.addLayer(t),e!==t&&(e._childCount>2?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){i.removeLayer(t),t.clusterShow(),n._animationEnd()}))):(this._forceLayout(),n._animationStart(),n._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,n){var i=this._getExpandedVisibleBounds(),r=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(i,r,e+1,n);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(i,n),this._enqueue((function(){if(1===t._childCount){var a=t._markers[0];this._ignoreMove=!0,a.setLatLng(a.getLatLng()),this._ignoreMove=!1,a.clusterShow&&a.clusterShow()}else t._recursively(i,n,r,(function(t){t._recursivelyRemoveChildrenFromMap(i,r,e+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var n=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,n,i){L.Marker.prototype.initialize.call(this,n?n._cLatLng||n.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,n&&this._addChild(n),i&&this._addChild(i)},getAllChildMarkers:function(t,e){t=t||[];for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n].getAllChildMarkers(t);for(var i=this._markers.length-1;i>=0;i--)e&&this._markers[i].__dragStart||t.push(this._markers[i]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,n=this._childClusters.slice(),i=this._group._map,r=i.getBoundsZoom(this._bounds),o=this._zoom+1,a=i.getZoom();n.length>0&&r>o;){o++;var s=[];for(e=0;eo?this._group._map.setView(this._latlng,o):r<=a?this._group._map.setView(this._latlng,a+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,n,i,r=this._markers,o=this._childClusters,a=0,s=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t=0;n--)(i=r[n])._icon&&(i._setPos(e),i.clusterHide())}),(function(t){var n,i,r=t._childClusters;for(n=r.length-1;n>=0;n--)(i=r[n])._icon&&(i._setPos(e),i.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,n,i){this._recursively(t,i,e,(function(r){r._recursivelyAnimateChildrenIn(t,r._group._map.latLngToLayerPoint(r.getLatLng()).round(),n),r._isSingleParent()&&n-1===i?(r.clusterShow(),r._recursivelyRemoveChildrenFromMap(t,e,n)):r.clusterHide(),r._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,n){this._recursively(n,this._group._map.getMinZoom()-1,e,(function(i){if(e!==i._zoom)for(var r=i._markers.length-1;r>=0;r--){var o=i._markers[r];n.contains(o._latlng)&&(t&&(o._backupLatlng=o.getLatLng(),o.setLatLng(t),o.clusterHide&&o.clusterHide()),i._group._featureGroup.addLayer(o))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var n=this._markers[e];n._backupLatlng&&(n.setLatLng(n._backupLatlng),delete n._backupLatlng)}if(t-1===this._zoom)for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i]._restorePosition();else for(var r=this._childClusters.length-1;r>=0;r--)this._childClusters[r]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,n,i){var r,o;this._recursively(t,e-1,n-1,(function(t){for(o=t._markers.length-1;o>=0;o--)r=t._markers[o],i&&i.contains(r._latlng)||(t._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())}),(function(t){for(o=t._childClusters.length-1;o>=0;o--)r=t._childClusters[o],i&&i.contains(r._latlng)||(t._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())}))},_recursively:function(t,e,n,i,r){var o,a,s=this._childClusters,l=this._zoom;if(e<=l&&(i&&i(this),r&&l===n&&r(this)),l=0;o--)(a=s[o])._boundsNeedUpdate&&a._recalculateBounds(),t.intersects(a._bounds)&&a._recursively(t,e,n,i,r)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var n=this._getCoord(e.x),i=this._getCoord(e.y),r=this._grid,o=r[i]=r[i]||{},a=o[n]=o[n]||[],s=L.Util.stamp(t);this._objectPoint[s]=e,a.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var n,i,r=this._getCoord(e.x),o=this._getCoord(e.y),a=this._grid,s=a[o]=a[o]||{},l=s[r]=s[r]||[];for(delete this._objectPoint[L.Util.stamp(t)],n=0,i=l.length;n=0;n--)i=e[n],(r=this.getDistant(i,t))>0&&(s.push(i),r>o&&(o=r,a=i));return{maxPoint:a,newPoints:s}},buildConvexHull:function(t,e){var n=[],i=this.findMostDistantPointFromBaseLine(t,e);return i.maxPoint?n=(n=n.concat(this.buildConvexHull([t[0],i.maxPoint],i.newPoints))).concat(this.buildConvexHull([i.maxPoint,t[1]],i.newPoints)):[t[0]]},getConvexHull:function(t){var e,n=!1,i=!1,r=!1,o=!1,a=null,s=null,l=null,u=null,c=null,d=null;for(e=t.length-1;e>=0;e--){var h=t[e];(!1===n||h.lat>n)&&(a=h,n=h.lat),(!1===i||h.latr)&&(l=h,r=h.lng),(!1===o||h.lng=0;e--)t=n[e].getLatLng(),i.push(t);return L.QuickHull.getConvexHull(i)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),n=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,e.length>=this._circleSpiralSwitchover?t=this._generatePointsSpiral(e.length,n):(n.y+=10,t=this._generatePointsCircle(e.length,n)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var n,i,r=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,o=this._2PI/t,a=[];for(r=Math.max(r,35),a.length=t,n=0;n=0;n--)n=0;e--)t=o[e],r.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(i.removeLayer(t._spiderLeg),delete t._spiderLeg);n.fire("unspiderfied",{cluster:this,markers:o}),n._ignoreMove=!1,n._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var n,i,r,o,a=this._group,s=a._map,l=a._featureGroup,u=this._group.options.spiderLegPolylineOptions;for(a._ignoreMove=!0,n=0;n=0;n--)s=c.layerPointToLatLng(e[n]),(i=t[n])._preSpiderfyLatlng=i._latlng,i.setLatLng(s),i.clusterShow&&i.clusterShow(),p&&((o=(r=i._spiderLeg)._path).style.strokeDashoffset=0,r.setStyle({opacity:g}));this.setOpacity(.3),u._ignoreMove=!1,setTimeout((function(){u._animationEnd(),u.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var e,n,i,r,o,a,s=this,l=this._group,u=l._map,c=l._featureGroup,d=t?u._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):u.latLngToLayerPoint(this._latlng),h=this.getAllChildMarkers(null,!0),f=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),n=h.length-1;n>=0;n--)(e=h[n])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,a=!0,e._setPos&&(e._setPos(d),a=!1),e.clusterHide&&(e.clusterHide(),a=!1),a&&c.removeLayer(e),f&&(o=(r=(i=e._spiderLeg)._path).getTotalLength()+.1,r.style.strokeDashoffset=o,i.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(n=h.length-1;n>=0;n--)(e=h[n])._spiderLeg&&t++;for(n=h.length-1;n>=0;n--)(e=h[n])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),t>1&&c.removeLayer(e),u.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:s,markers:h})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,n;for(e in t)for(n=t[e].__parent;n;)n._iconNeedsUpdate=!0,n=n.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,n;for(e in t)n=t[e],this.hasLayer(n)&&n.setIcon(this._overrideMarkerIcon(n))}}),L.Marker.include({refreshIconOptions:function(t,e){var n=this.options.icon;return L.setOptions(n,t),this.setIcon(n),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=n}(e)},JpmB:function(t,e,n){"use strict";var i=n("4R65"),r=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},o={name:"LMap",mixins:[{props:{options:{type:Object,default:function(){return{}}}}}],props:{center:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},bounds:{type:[Array,Object],custom:!0,default:null},maxBounds:{type:[Array,Object],default:null},zoom:{type:Number,custom:!0,default:0},minZoom:{type:Number,default:null},maxZoom:{type:Number,default:null},paddingBottomRight:{type:Array,custom:!0,default:null},paddingTopLeft:{type:Array,custom:!0,default:null},padding:{type:Array,custom:!0,default:null},worldCopyJump:{type:Boolean,default:!1},crs:{type:Object,custom:!0,default:function(){return i.CRS.EPSG3857}},maxBoundsViscosity:{type:Number,default:null},inertia:{type:Boolean,default:null},inertiaDeceleration:{type:Number,default:null},inertiaMaxSpeed:{type:Number,default:null},easeLinearity:{type:Number,default:null},zoomAnimation:{type:Boolean,default:null},zoomAnimationThreshold:{type:Number,default:null},fadeAnimation:{type:Boolean,default:null},markerZoomAnimation:{type:Boolean,default:null},noBlockingAnimations:{type:Boolean,default:!1}},data:function(){return{ready:!1,lastSetCenter:null,lastSetBounds:null,lastSetZoom:null,layerControl:void 0,layersToAdd:[],layersInControl:[]}},computed:{fitBoundsOptions:function(){var t={animate:!this.noBlockingAnimations&&null};return this.padding?t.padding=this.padding:(this.paddingBottomRight&&(t.paddingBottomRight=this.paddingBottomRight),this.paddingTopLeft&&(t.paddingTopLeft=this.paddingTopLeft)),t}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()},mounted:function(){var t,e,n,o=this,a=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=r(n);t=r(t);var o=e.$options.props;for(var a in t){var s=o[a]?o[a].default:Symbol("unique");i[a]&&s!==t[a]?i[a]=t[a]:i[a]||(i[a]=t[a])}return i}({minZoom:this.minZoom,maxZoom:this.maxZoom,maxBounds:this.maxBounds,maxBoundsViscosity:this.maxBoundsViscosity,worldCopyJump:this.worldCopyJump,crs:this.crs,center:this.center,zoom:this.zoom,inertia:this.inertia,inertiaDeceleration:this.inertiaDeceleration,inertiaMaxSpeed:this.inertiaMaxSpeed,easeLinearity:this.easeLinearity,zoomAnimation:this.zoomAnimation,zoomAnimationThreshold:this.zoomAnimationThreshold,fadeAnimation:this.fadeAnimation,markerZoomAnimation:this.markerZoomAnimation},this);this.mapObject=Object(i.map)(this.$el,a),this.setBounds(this.bounds),this.mapObject.on("moveend",(t=this.moveEndHandler,e=100,function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];var o=this;n&&clearTimeout(n),n=setTimeout((function(){t.apply(o,i),n=null}),e)})),this.mapObject.on("overlayadd",this.overlayAddHandler),this.mapObject.on("overlayremove",this.overlayRemoveHandler),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.ready=!0,this.$emit("leaflet:load"),this.$nextTick((function(){o.$emit("ready",o.mapObject)}))},methods:{registerLayerControl:function(t){var e=this;this.layerControl=t,this.mapObject.addControl(t.mapObject),this.layersToAdd.forEach((function(t){e.layerControl.addLayer(t)})),this.layersToAdd=[]},addLayer:function(t,e){void 0!==t.layerType&&(void 0===this.layerControl?this.layersToAdd.push(t):this.layersInControl.find((function(e){return e.mapObject._leaflet_id===t.mapObject._leaflet_id}))||(this.layerControl.addLayer(t),this.layersInControl.push(t)));e||!1===t.visible||this.mapObject.addLayer(t.mapObject)},hideLayer:function(t){this.mapObject.removeLayer(t.mapObject)},removeLayer:function(t,e){void 0!==t.layerType&&(void 0===this.layerControl?this.layersToAdd=this.layersToAdd.filter((function(e){return e.name!==t.name})):(this.layerControl.removeLayer(t),this.layersInControl=this.layersInControl.filter((function(e){return e.mapObject._leaflet_id!==t.mapObject._leaflet_id})))),e||this.mapObject.removeLayer(t.mapObject)},setZoom:function(t,e){this.mapObject.setZoom(t,{animate:!this.noBlockingAnimations&&null})},setCenter:function(t,e){if(null!=t){var n=Object(i.latLng)(t),r=this.lastSetCenter||this.mapObject.getCenter();r.lat===n.lat&&r.lng===n.lng||(this.lastSetCenter=n,this.mapObject.panTo(n,{animate:!this.noBlockingAnimations&&null}))}},setBounds:function(t,e){if(t){var n=Object(i.latLngBounds)(t);if(n.isValid())!(this.lastSetBounds||this.mapObject.getBounds()).equals(n,0)&&(this.lastSetBounds=n,this.mapObject.fitBounds(n,this.fitBoundsOptions))}},setPaddingBottomRight:function(t,e){this.paddingBottomRight=t},setPaddingTopLeft:function(t,e){this.paddingTopLeft=t},setPadding:function(t,e){this.padding=t},setCrs:function(t,e){},fitBounds:function(t){this.mapObject.fitBounds(t,{animate:!this.noBlockingAnimations&&null})},moveEndHandler:function(){this.$emit("update:zoom",this.mapObject.getZoom());var t=this.mapObject.getCenter();this.$emit("update:center",t);var e=this.mapObject.getBounds();this.$emit("update:bounds",e)},overlayAddHandler:function(t){var e=this.layersInControl.find((function(e){return e.name===t.name}));e&&e.updateVisibleProp(!0)},overlayRemoveHandler:function(t){var e=this.layersInControl.find((function(e){return e.name===t.name}));e&&e.updateVisibleProp(!1)}}};var a,s="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var l={};var u=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"vue2leaflet-map"},[this.ready?this._t("default"):this._e()],2)},staticRenderFns:[]},(function(t){t&&t("data-v-49b28618_0",{source:".vue2leaflet-map{height:100%;width:100%}",map:void 0,media:void 0})}),o,void 0,!1,void 0,!1,(function(t){return function(t,e){return function(t,e){var n=s?e.media||"default":t,i=l[n]||(l[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);var r=e.source;if(e.map&&(r+="\n/*# sourceURL="+e.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===a&&(a=document.head||document.getElementsByTagName("head")[0]),a.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(r),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{var o=i.ids.size-1,u=document.createTextNode(r),c=i.element.childNodes;c[o]&&i.element.removeChild(c[o]),c.length?i.element.insertBefore(u,c[o]):i.element.appendChild(u)}}}(t,e)}}),void 0,void 0);e.a=u},Jqpr:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,'.cc-wrapper[data-v-a433f3dc] {\n display: flex;\n padding: 50px 15px;\n}\n@media screen and (max-width: 700px), (max-height: 500px) {\n.cc-wrapper[data-v-a433f3dc] {\n flex-wrap: wrap;\n flex-direction: column;\n}\n}\n.border-danger[data-v-a433f3dc] {\n border-color: red !important;\n}\n.label-danger[data-v-a433f3dc] {\n color: red !important;\n}\n.error-message[data-v-a433f3dc] {\n text-align: left;\n color: red;\n font-size: 14px;\n margin-top: 4px;\n}\n.error-month[data-v-a433f3dc] {\n position: absolute;\n bottom: -2em;\n left: 1em;\n}\n.error-year[data-v-a433f3dc] {\n position: absolute;\n bottom: -2em;\n left: 11em;\n}\n.error-cvc[data-v-a433f3dc] {\n position: absolute;\n bottom: -2em;\n left: 1em;\n}\n.card-form[data-v-a433f3dc] {\n max-width: 570px;\n margin: auto;\n width: 100%;\n}\n@media screen and (max-width: 576px) {\n.card-form[data-v-a433f3dc] {\n margin: 0 auto;\n}\n}\n.card-form__inner[data-v-a433f3dc] {\n background: #fff;\n box-shadow: 0 30px 60px 0 rgba(90, 116, 148, 0.4);\n border-radius: 10px;\n padding: 35px;\n padding-top: 180px;\n}\n@media screen and (max-width: 480px) {\n.card-form__inner[data-v-a433f3dc] {\n padding: 25px;\n padding-top: 165px;\n}\n}\n@media screen and (max-width: 360px) {\n.card-form__inner[data-v-a433f3dc] {\n padding: 15px;\n padding-top: 165px;\n}\n}\n.card-form__row[data-v-a433f3dc] {\n display: flex;\n align-items: flex-start;\n}\n@media screen and (max-width: 480px) {\n.card-form__row[data-v-a433f3dc] {\n flex-wrap: wrap;\n}\n}\n.card-form__col[data-v-a433f3dc] {\n flex: auto;\n margin-right: 35px;\n}\n.card-form__col[data-v-a433f3dc]:last-child {\n margin-right: 0;\n}\n@media screen and (max-width: 480px) {\n.card-form__col[data-v-a433f3dc] {\n margin-right: 0;\n flex: unset;\n width: 100%;\n margin-bottom: 20px;\n}\n.card-form__col[data-v-a433f3dc]:last-child {\n margin-bottom: 0;\n}\n}\n.card-form__col.-cvv[data-v-a433f3dc] {\n max-width: 150px;\n position: relative;\n}\n@media screen and (max-width: 480px) {\n.card-form__col.-cvv[data-v-a433f3dc] {\n max-width: initial;\n}\n}\n.card-form__group[data-v-a433f3dc] {\n display: flex;\n align-items: flex-start;\n flex-wrap: wrap;\n position: relative;\n}\n.card-form__group .card-input__input[data-v-a433f3dc] {\n flex: 1;\n margin-right: 15px;\n}\n.card-form__group .card-input__input[data-v-a433f3dc]:last-child {\n margin-right: 0;\n}\n.card-form__button[data-v-a433f3dc] {\n width: 100%;\n height: 55px;\n background: #7957d5;\n border: none;\n border-radius: 5px;\n font-size: 22px;\n font-weight: 500;\n font-family: "Source Sans Pro", sans-serif;\n /*box-shadow: 3px 10px 20px 0px rgba(35, 100, 210, 0.3);*/\n color: #fff;\n margin-top: 20px;\n cursor: pointer;\n}\n@media screen and (max-width: 480px) {\n.card-form__button[data-v-a433f3dc] {\n margin-top: 10px;\n}\n}\n.card-input[data-v-a433f3dc] {\n margin-bottom: 20px;\n}\n.card-input__label[data-v-a433f3dc] {\n font-size: 14px;\n margin-bottom: 5px;\n font-weight: 500;\n color: #1a3b5d;\n width: 100%;\n display: block;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.card-input__input[data-v-a433f3dc] {\n width: 100%;\n height: 50px;\n border-radius: 5px;\n /*box-shadow: none;*/\n border: 1px solid #ced6e0;\n transition: all 0.3s ease-in-out;\n font-size: 18px;\n padding: 5px 15px;\n background: none;\n color: #1a3b5d;\n font-family: "Source Sans Pro", sans-serif;\n}\n.card-input__input[data-v-a433f3dc]:hover, .card-input__input[data-v-a433f3dc]:focus {\n border-color: #3d9cff;\n}\n.card-input__input[data-v-a433f3dc]:focus {\n box-shadow: 0px 10px 20px -13px rgba(32, 56, 117, 0.35);\n}\n.card-input__input.-select[data-v-a433f3dc] {\n -webkit-appearance: none;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAeCAYAAABuUU38AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAUxJREFUeNrM1sEJwkAQBdCsngXPHsQO9O5FS7AAMVYgdqAd2IGCDWgFnryLFQiCZ8EGnJUNimiyM/tnk4HNEAg/8y6ZmMRVqz9eUJvRaSbvutCZ347bXVJy/ZnvTmdJ862Me+hAbZCTs6GHpyUi1tTSvPnqTpoWZPUa7W7ncT3vK4h4zVejy8QzM3WhVUO8ykI6jOxoGA4ig3BLHcNFSCGqGAkig2yqgpEiMsjSfY9LxYQg7L6r0X6wS29YJiYQYecemY+wHrXD1+bklGhpAhBDeu/JfIVGxaAQ9sb8CI+CQSJ+QmJg0Ii/EE2MBiIXooHRQhRCkBhNhBcEhLkwf05ZCG8ICCOpk0MULmvDSY2M8UawIRExLIQIEgHDRoghihgRIgiigBEjgiFATBACAgFgghEwSAAGgoBCBBgYAg5hYKAIFYgHBo6w9RRgAFfy160QuV8NAAAAAElFTkSuQmCC");\n background-size: 12px;\n background-position: 90% center;\n background-repeat: no-repeat;\n padding-right: 30px;\n}\n.github-btn[data-v-a433f3dc] {\n position: absolute;\n right: 40px;\n bottom: 50px;\n text-decoration: none;\n padding: 15px 25px;\n border-radius: 4px;\n box-shadow: 0px 4px 30px -6px rgba(36, 52, 70, 0.65);\n background: #24292e;\n color: #fff;\n font-weight: bold;\n letter-spacing: 1px;\n font-size: 16px;\n text-align: center;\n transition: all 0.3s ease-in-out;\n}\n@media screen and (min-width: 500px) {\n.github-btn[data-v-a433f3dc]:hover {\n transform: scale(1.1);\n box-shadow: 0px 17px 20px -6px rgba(36, 52, 70, 0.36);\n}\n}\n@media screen and (max-width: 700px) {\n.github-btn[data-v-a433f3dc] {\n position: relative;\n bottom: auto;\n right: auto;\n margin-top: 20px;\n}\n.github-btn[data-v-a433f3dc]:active {\n transform: scale(1.1);\n box-shadow: 0px 17px 20px -6px rgba(36, 52, 70, 0.36);\n}\n}\n\n/* Extra small devices (phones, 600px and down) */\n@media only screen and (max-width: 600px) {\n.margin-mobile[data-v-a433f3dc] {\n margin-top: 1em;\n}\n}',""])},JumI:function(t){t.exports=JSON.parse('{"finance":"Financiar el desarrollo de OpenLitterMap","help":"Necesitamos tu ayuda.","support":"Apoyar los Datos Abiertos sobre la contaminación por plásticos","help-costs":"Ayudar a cubrir nuestros gastos","help-hire":"Contratar desarrolladores, diseñadores y graduados","help-produce":"Producir videos","help-write":"Escribir artículos científicos","help-outreach":"Conferencias y divulgación","help-incentivize":"Incentivar la recogida de datos con Littercoin","more-soon":"Pronto habrá más actualizaciones interesantes","click-to-support":"Haz clic aquí para apoyar"}')},JvlW:function(t,e,n){!function(t){"use strict";var e={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 n(t,e,n,i){return e?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(t){return t%10==0||t>10&&t<20}function r(t){return e[t].split("_")}function o(t,e,o,a){var s=t+" ";return 1===t?s+n(0,e,o[0],a):e?s+(i(t)?r(o)[1]:r(o)[0]):a?s+r(o)[1]:s+(i(t)?r(o)[1]:r(o)[2])}t.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:function(t,e,n,i){return e?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(n("wd/R"))},"K/tc":function(t,e,n){!function(t){"use strict";t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},K2z1:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("wd/R"),a=n.n(o),s={name:"ProfileWelcome",computed:{name:function(){return this.user.user.name},totalUsers:function(){return this.user.totalUsers},usersPosition:function(){return a.a.localeData().ordinal(this.user.position)},user:function(){return this.$store.state.user}}},l=n("KHd+"),u=Object(l.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"profile-card"},[n("p",{staticClass:"mb1"},[t._v(t._s(t.$t("profile.dashboard.welcome"))+", "+t._s(t.name))]),t._v(" "),n("p",{staticClass:"mb1"},[t._v(t._s(t.$t("profile.dashboard.out-of",{total:t.totalUsers})))]),t._v(" "),n("p",[t._v(t._s(t.$t("profile.dashboard.rank",{rank:t.usersPosition})))])])}),[],!1,null,"4a21534c",null).exports,c={name:"ProfileStats",computed:{photoPercent:function(){return this.user.photoPercent},tagPercent:function(){return this.user.tagPercent},userTagsCount:function(){return this.user.user.total_tags},userPhotoCount:function(){return this.user.user.total_images},user:function(){return this.$store.state.user}}},d=(n("11sb"),Object(l.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"profile-card"},[n("p",{staticClass:"mb1"},[t._v(t._s(t.$t("profile.dashboard.have-uploaded")))]),t._v(" "),n("div",{staticClass:"flex"},[n("div",{staticClass:"profile-stat-card"},[n("img",{attrs:{src:"/assets/icons/home/camera.png"}}),t._v(" "),n("div",[n("p",{staticClass:"profile-stat"},[t._v(t._s(t.userPhotoCount))]),t._v(" "),n("p",{staticClass:"profile-text"},[t._v(t._s(t.$t("profile.dashboard.photos")))])])]),t._v(" "),n("div",{staticClass:"profile-stat-card"},[n("img",{attrs:{src:"/assets/icons/home/phone.png"}}),t._v(" "),n("div",[n("p",{staticClass:"profile-stat"},[t._v(t._s(t.userTagsCount))]),t._v(" "),n("p",{staticClass:"profile-text"},[t._v(t._s(t.$t("profile.dashboard.tags")))])])]),t._v(" "),n("div",{staticClass:"profile-stat-card"},[n("p",{staticClass:"profile-percent"},[t._v("%")]),t._v(" "),n("div",[n("p",{staticClass:"profile-stat"},[t._v(t._s(t.photoPercent))]),t._v(" "),n("p",{staticClass:"profile-text"},[t._v(t._s(t.$t("profile.dashboard.all-photos")))])])]),t._v(" "),n("div",{staticClass:"profile-stat-card"},[n("p",{staticClass:"profile-percent"},[t._v("%")]),t._v(" "),n("div",[n("p",{staticClass:"profile-stat"},[t._v(t._s(t.tagPercent))]),t._v(" "),n("p",{staticClass:"profile-text"},[t._v(t._s(t.$t("profile.dashboard.all-tags")))])])])])])}),[],!1,null,"79f52017",null).exports),h={name:"ProfileNextTarget",computed:{currentLevel:function(){return this.user.level},currentXp:function(){return this.user.xp},neededXp:function(){return this.$store.state.user.requiredXp},user:function(){return this.$store.state.user.user}}},f=(n("OBbp"),Object(l.a)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"profile-card"},[n("p",{staticClass:"mb1"},[t._v(t._s(t.$t("profile.dashboard.your-level")))]),t._v(" "),n("p",{staticClass:"is-secondary"},[t._v(t._s(t.$t("profile.dashboard.reached-level"))+" "),n("strong",{staticClass:"is-white"},[t._v(t._s(t.currentLevel))])]),t._v(" "),n("p",{staticClass:"is-secondary mb1"},[t._v(t._s(t.$t("profile.dashboard.have-xp"))+" "),n("strong",{staticClass:"is-white"},[t._v(t._s(t.currentXp)+" xp")])]),t._v(" "),n("p",{staticClass:"is-secondary mb2"},[t._v(t._s(t.$t("profile.dashboard.need-xp"))+" "),n("strong",{staticClass:"is-white"},[t._v(t._s(t.neededXp)+" xp")]),t._v(" "+t._s(t.$t("profile.dashboard.to-reach-level")))])])}),[],!1,null,"41670ab3",null).exports),p=n("H8ri"),m=n("gaDp"),g={extends:p.d,name:"Radar",props:["categories"],mounted:function(){var t=this,e=[];m.a.filter((function(t){return"art"!==t&&"dogshit"!==t})).map((function(n){e.push(t.$t("litter.categories."+n))})),this.renderChart({labels:e,datasets:[{label:this.$t("profile.dashboard.total-categories"),backgroundColor:"#1DD3B0",data:this.categories,fill:!0,borderColor:"#1DD3B0",maxBarThickness:"10"}]},{responsive:!0,maintainAspectRatio:!1,legend:{labels:{fontColor:"#1DD3B0"}},scale:{pointLabels:{fontColor:"white"}},tooltips:{callbacks:{title:function(t,e){return e.labels[t[0].index]}}}})}},v={name:"ProfileCategories",components:{Radar:Object(l.a)(g,void 0,void 0,!1,null,null,null).exports},computed:{categories:function(){return[this.user.total_categories.alcohol,this.user.total_brands_redis,this.user.total_categories.coastal,this.user.total_categories.coffee,this.user.total_categories.dumping,this.user.total_categories.food,this.user.total_categories.industrial,this.user.total_categories.other,this.user.total_categories.sanitary,this.user.total_categories.softdrinks,this.user.total_categories.smoking]},user:function(){return this.$store.state.user.user}}},y=Object(l.a)(v,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"profile-card"},[e("Radar",{key:this.user.total_tags,attrs:{categories:this.categories}})],1)}),[],!1,null,"91f75dbc",null).exports,_=n("JpmB"),b=n("pArE"),w=n("Tith"),x=n("9g/y"),k=n("yp/A"),C=n.n(k),S=n("ltXA");function M(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var T={name:"ProfileMap",components:{LMap:_.a,LTileLayer:b.a,LMarker:w.a,LPopup:x.a,"v-marker-cluster":C.a},created:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.attribution+=(new Date).getFullYear();case 1:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){M(o,i,r,a,s,"next",t)}function s(t){M(o,i,r,a,s,"throw",t)}a(void 0)}))})()},data:function(){return{zoom:2,center:L.latLng(0,0),url:"https://{s}.tile.osm.org/{z}/{x}/{y}.png",attribution:'Map Data © OpenStreetMap contributors, Litter data © OpenLitterMap & Contributors ',loading:!0,fullscreen:!1}},computed:{geojson:function(){return this.$store.state.user.geojson.features}},methods:{content:function(t,e,n){if(e){var i=e.split(",");i.pop();var r="";return i.forEach((function(t){var e=t.split(" ");r+=S.a.t("litter."+e[0])+": "+e[1]+"
"})),'

'+r+'

Taken on '+a()(n).format("LLL")+"

"}},fullscreenChange:function(t){this.fullscreen=t},toggle:function(){this.$refs.fullscreen.toggle()}}},E=(n("jRYP"),Object(l.a)(T,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"profile-card",staticStyle:{padding:"0 !important"}},[n("fullscreen",{ref:"fullscreen",staticClass:"profile-map-container",on:{change:t.fullscreenChange}},[n("button",{staticClass:"btn-map-fullscreen",on:{click:t.toggle}},[n("i",{staticClass:"fa fa-expand"})]),t._v(" "),n("l-map",{attrs:{zoom:t.zoom,center:t.center,minZoom:1}},[n("l-tile-layer",{attrs:{url:t.url,attribution:t.attribution}}),t._v(" "),t.geojson.length>0?n("v-marker-cluster",t._l(t.geojson,(function(e){return n("l-marker",{key:e.properties.id,attrs:{"lat-lng":e.properties.latlng}},[n("l-popup",{attrs:{content:t.content(e.properties.img,e.properties.text,e.properties.datetime)}})],1)})),1):t._e()],1)],1)],1)}),[],!1,null,null,null).exports);function O(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var P={name:"ProfileCalendar",components:{FunctionalCalendar:n("R5vI").a},data:function(){return{btn:"button long-purp",calendarData:{},period:"created_at",periods:["created_at","datetime"]}},computed:{button:function(){return this.processing?this.btn+" is-loading":this.btn},disabled:function(){return!!this.processing||(!this.calendarData.hasOwnProperty("dateRange")||!this.calendarData.dateRange.hasOwnProperty("start")&&!this.calendarData.dateRange.hasOwnProperty("end"))}},methods:{changePeriod:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.disabled){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.$store.dispatch("GET_USERS_PROFILE_MAP_DATA",{period:e.period,start:e.calendarData.dateRange.start,end:e.calendarData.dateRange.end});case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){O(o,i,r,a,s,"next",t)}function s(t){O(o,i,r,a,s,"throw",t)}a(void 0)}))})()},getPeriod:function(t){return t||(t=this.period),this.$t("teams.dashboard.times."+t)}}},D=(n("xvX3"),Object(l.a)(P,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"profile-card"},[n("FunctionalCalendar",{attrs:{"day-names":t.$t("common.day-names"),"month-names":t.$t("common.month-names"),"short-month-names":t.$t("common.short-month-names"),sundayStart:!1,"date-format":"yyyy-mm-dd","is-date-range":!0,"is-date-picker":!1,"change-month-function":!0,"change-year-function":!0},model:{value:t.calendarData,callback:function(e){t.calendarData=e},expression:"calendarData"}}),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.period,expression:"period"}],staticClass:"input mt1 mb1",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.period=e.target.multiple?n:n[0]}}},t._l(t.periods,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(t.getPeriod(e)))])})),0),t._v(" "),n("button",{class:t.button,attrs:{disabled:t.disabled},on:{click:t.changePeriod}},[t._v(t._s(t.$t("profile.dashboard.calendar-load-data")))])],1)}),[],!1,null,"709d4682",null).exports);function A(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var I={name:"ProfileDownload",data:function(){return{btn:"button is-medium is-purp",processing:!1}},computed:{button:function(){return this.processing?this.btn+" is-loading":this.btn}},methods:{download:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.processing=!0,t.next=3,e.$store.dispatch("DOWNLOAD_MY_DATA");case 3:e.processing=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){A(o,i,r,a,s,"next",t)}function s(t){A(o,i,r,a,s,"throw",t)}a(void 0)}))})()}}},N=(n("Zqlq"),Object(l.a)(I,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"profile-card"},[n("p",{staticClass:"profile-dl-title"},[t._v(t._s(t.$t("profile.dashboard.download-data")))]),t._v(" "),n("p",{staticClass:"profile-dl-subtitle"},[t._v(t._s(t.$t("profile.dashboard.email-send-msg")))]),t._v(" "),n("button",{class:t.button,attrs:{disabled:t.processing},on:{click:t.download}},[t._v(t._s(t.$t("common.download")))])])}),[],!1,null,"2d0b0290",null).exports),R={extends:p.c,name:"TimeSeriesLine",props:["ppm"],data:function(){return{months:this.$t("common.short-month-names")}},mounted:function(){var t=JSON.parse(this.ppm),e=[],n=[];for(var i in t)e.push(this.months[parseInt(i.substring(0,2))-1]+i.substring(2,5)),n.push(t[i]);this.renderChart({labels:e,datasets:[{label:this.$t("profile.dashboard.timeseries-verified-photos"),backgroundColor:"#1DD3B0",data:n,fill:!1,borderColor:"#1DD3B0",maxBarThickness:"50"}]},{responsive:!0,maintainAspectRatio:!1,legend:{labels:{fontColor:"#1DD3B0"}},scales:{xAxes:[{gridLines:{color:"rgba(255,255,255,0.5)",display:!0,drawBorder:!0,drawOnChartArea:!1},ticks:{fontColor:"#1DD3B0"}}],yAxes:[{gridLines:{color:"rgba(255,255,255,0.5)",display:!0,drawBorder:!0,drawOnChartArea:!1},ticks:{fontColor:"#1DD3B0"}}]}})}},j={name:"ProfileTimeSeries",components:{TimeSeriesLine:Object(l.a)(R,void 0,void 0,!1,null,null,null).exports},computed:{ppm:function(){return this.$store.state.user.user.photos_per_month}}};function z(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var Y={name:"ProfilePhotos",methods:{load:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$store.commit("resetPhotoState"),t.next=3,e.$store.dispatch("LOAD_MY_PHOTOS");case 3:e.$store.commit("showModal",{type:"MyPhotos",title:e.$t("profile.dashboard.my-photos")});case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){z(o,i,r,a,s,"next",t)}function s(t){z(o,i,r,a,s,"throw",t)}a(void 0)}))})()}}};function F(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var B={name:"Profile",components:{ProfileWelcome:u,ProfileTimeSeries:Object(l.a)(j,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"profile-card"},[e("TimeSeriesLine",{attrs:{ppm:this.ppm}})],1)}),[],!1,null,"f09fa5e0",null).exports,ProfileStats:d,ProfileNextTarget:f,ProfileCategories:y,ProfileMap:E,ProfileCalendar:D,ProfileDownload:N,ProfilePhotos:Object(l.a)(Y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"profile-card"},[n("p",{staticClass:"mb1"},[t._v(t._s(t.$t("profile.dashboard.manage-my-photos")))]),t._v(" "),n("button",{staticClass:"button is-medium is-primary",on:{click:t.load}},[t._v(t._s(t.$t("profile.dashboard.view-my-photos")))])])}),[],!1,null,"10a8d132",null).exports},mounted:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("GET_CURRENT_USER");case 2:return t.next=4,e.$store.dispatch("GET_USERS_PROFILE_DATA");case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){F(o,i,r,a,s,"next",t)}function s(t){F(o,i,r,a,s,"throw",t)}a(void 0)}))})()}},$=(n("ilIf"),Object(l.a)(B,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"profile-container"},[n("ProfileWelcome"),t._v(" "),n("ProfileStats"),t._v(" "),n("ProfileNextTarget"),t._v(" "),n("ProfileCategories"),t._v(" "),n("ProfileMap"),t._v(" "),n("ProfileCalendar"),t._v(" "),n("ProfileDownload"),t._v(" "),n("ProfileTimeSeries"),t._v(" "),n("ProfilePhotos")],1)}),[],!1,null,null,null));e.default=$.exports},"KHd+":function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return i}))},KNCH:function(t){t.exports=JSON.parse('{"plastic-pollution-out-of-control":"Plastic vervuiling is op hol geslagen","help-us":"Help ons om de meest geavanceerde database te maken met data over afval, merken en plastic vervuiling","why-collect-data":"Waarom zouden we data moeten verzamelen","visibility":"Zichtbaarheid","our-maps-reveal-litter-normality":"Onze plattegronden laten zien wat inmiddels normaal en onzichtbaar is geworden. Dit is van belang om het afval weer letterlijk op de kaart te zetten","science":"Onderzoek","our-data-open-source":"Onze data is open en toegankelijk. Iedereen kan deze data downloaden en gebruiken, ongeacht het doel","community":"Gemeenschap","must-work-together":"Alleen door samen te werken kunnen we een enorme verschuiving maken in de manier waarop we naar vervuiling kijken en hoe we erop moeten reageren","how-does-it-work":"Hoe gaat dat in z\'n werk","take-a-photo":"Neem een foto","device-captures-info":"Jouw toestel is in staat om veel waardevolle data vast te leggen, zoals de locatie, de datum en tijd, het object, het materiaal en het merk.","tag-the-litter":"Geef het afval een label","tag-litter-you-see":"Geef aan wat voor afval je op de foto ziet. Je kan aangeven of het afval daadwerkelijk is opgeruimd, of dat het er nog ligt","share-results":"Deel je resultaten","share":"Deel de plattegronden en download onze data. Laat iedereen zien hoe het gesteld is met de vervuiling op de wereld","verified":"Jouw email is bevestigd! Je kunt nu inloggen.","close":"Sluiten"}')},KSF8:function(t,e,n){!function(t){"use strict";t.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:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".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(t){return/^ch$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"sa":"SA":n?"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 trước 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(t){return t},week:{dow:1,doy:4}})}(n("wd/R"))},KSRL:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".vfc-time-picker-container[data-v-56eeb0da] {\n min-width: 250px;\n}\n.vfc-time-picker-container .vfc-modal-time-line > span > span[data-v-56eeb0da]:not(:nth-child(2)):not(.vfc-active):hover {\n cursor: pointer;\n}\n.vfc-time-picker-container .titles[data-v-56eeb0da] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n padding: 10px 0;\n}\n.vfc-time-picker-container .titles > div[data-v-56eeb0da] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n text-align: center;\n color: #66b3cc;\n word-break: break-all;\n font-size: 25px;\n}\n.vfc-time-picker-container .vfc-time-picker[data-v-56eeb0da] {\n padding-bottom: 20px;\n}",""])},KTUv:function(t,e,n){"use strict";var i=n("w/Vo");n.n(i).a},KTz0:function(t,e,n){!function(t){"use strict";var e={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(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,i){var r=e.words[i];return 1===i.length?n?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}};t.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(){return["[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"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},Kb5C:function(t){t.exports=JSON.parse('{"click-to-upload":"Klik om te uploaden of drop hier je foto\'s","thank-you":"Dank je!","need-tag-litter":"Volgende stap: het afval identificeren/taggen","tag-litter":"Tag het afval"}')},KuTZ:function(t,e,n){"use strict";var i=n("152u");n.n(i).a},"Kuz/":function(t,e,n){(function(n){var r,o,a,s;function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}s=function(){return function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){var n=e[a][1][t];return r(n||t)}),u,u.exports,t,e,n,i)}return n[a].exports}for(var o=!1,a=0;a=l&&u===s.length-1);u++){if(l>=e){var c=e-l;if(c){var d=o(s[u],s[u-1])-180;return a(s[u],c,d,n)}return r(s[u])}l+=i(s[u],s[u+1],n)}return r(s[s.length-1])}},{"@turf/bearing":3,"@turf/destination":5,"@turf/distance":8,"@turf/helpers":11}],3:[function(t,e,n){var i=t("@turf/invariant").getCoord;function r(t,e,n){if(!0===n)return function(t,e){var n=r(e,t);return n=(n+180)%360}(t,e);var o=Math.PI/180,a=180/Math.PI,s=i(t),l=i(e),u=o*s[0],c=o*l[0],d=o*s[1],h=o*l[1],f=Math.sin(c-u)*Math.cos(h),p=Math.cos(d)*Math.sin(h)-Math.sin(d)*Math.cos(h)*Math.cos(c-u);return a*Math.atan2(f,p)}e.exports=r},{"@turf/invariant":4}],4:[function(t,e,n){function i(t){if(!t)throw new Error("No obj passed");var e;if(t.length?e=t:t.coordinates?e=t.coordinates:t.geometry&&t.geometry.coordinates&&(e=t.geometry.coordinates),e)return function t(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(e[0].length)return t(e[0]);throw new Error("coordinates must only contain numbers")}(e),e;throw new Error("No valid coordinates")}e.exports.geojsonType=function(t,e,n){if(!e||!n)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.type)},e.exports.collectionOf=function(t,e,n){if(!t)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!t||"FeatureCollection"!==t.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var i=0;i1&&"number"==typeof e[0]&&"number"==typeof e[1])return e;throw new Error("Coordinate is not a valid Point")},e.exports.getCoords=i},{}],5:[function(t,e,n){var i=t("@turf/invariant").getCoord,r=t("@turf/helpers"),o=r.point,a=r.distanceToRadians;e.exports=function(t,e,n,r){var s=Math.PI/180,l=180/Math.PI,u=i(t),c=s*u[0],d=s*u[1],h=s*n,f=a(e,r),p=Math.asin(Math.sin(d)*Math.cos(f)+Math.cos(d)*Math.sin(f)*Math.cos(h)),m=c+Math.atan2(Math.sin(h)*Math.sin(f)*Math.cos(d),Math.cos(f)-Math.sin(d)*Math.sin(p));return o([l*m,l*p])}},{"@turf/helpers":6,"@turf/invariant":7}],6:[function(t,e,n){function i(t,e){if(!t)throw new Error("No geometry passed");return{type:"Feature",properties:e||{},geometry:t}}e.exports.feature=i,e.exports.point=function(t,e){if(!t)throw new Error("No coordinates passed");if(void 0===t.length)throw new Error("Coordinates must be an array");if(t.length<2)throw new Error("Coordinates must be at least 2 numbers long");if("number"!=typeof t[0]||"number"!=typeof t[1])throw new Error("Coordinates must numbers");return i({type:"Point",coordinates:t},e)},e.exports.polygon=function(t,e){if(!t)throw new Error("No coordinates passed");for(var n=0;n0){e+=Math.abs(o(t[0]));for(var n=1;n2){for(l=0;lt[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]t&&(e.push(i),n=r)}return e},i.prototype.vector=function(t){var e=this.pos(t+10),n=this.pos(t-10);return{angle:180*Math.atan2(e.y-n.y,e.x-n.x)/3.14,speed:Math.sqrt((n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y)+(n.z-e.z)*(n.z-e.z))}},i.prototype.pos=function(t){var e=t-this.delay;e<0&&(e=0),e>this.duration&&(e=this.duration-1);var n=e/this.duration;if(n>=1)return this.points[this.length-1];var i=Math.floor((this.points.length-1)*n);return function(t,e,n,i,r){var o=function(t){var e=t*t;return[e*t,3*e*(1-t),3*t*(1-t)*(1-t),(1-t)*(1-t)*(1-t)]}(t);return{x:r.x*o[0]+i.x*o[1]+n.x*o[2]+e.x*o[3],y:r.y*o[0]+i.y*o[1]+n.y*o[2]+e.y*o[3],z:r.z*o[0]+i.z*o[1]+n.z*o[2]+e.z*o[3]}}((this.length-1)*n-i,this.points[i],this.controls[i][1],this.controls[i+1][0],this.points[i+1])},e.exports=i},{}],25:[function(t,e,n){var i=t("@turf/helpers"),r=i.featureCollection,o=t("jsts"),a=t("@mapbox/geojson-normalize");e.exports=function(t,e,n){var s=i.distanceToDegrees(e,n),l=a(t),u=a(r(l.features.map((function(t){return function(t,e){var n=(new o.io.GeoJSONReader).read(t.geometry).buffer(e),i=new o.io.GeoJSONWriter;return{type:"Feature",geometry:n=i.write(n),properties:{}}}(t,s)}))));return u.features.length>1?u:1===u.features.length?u.features[0]:void 0}},{"@mapbox/geojson-normalize":26,"@turf/helpers":27,jsts:28}],26:[function(t,e,n){e.exports=function(t){if(!t||!t.type)return null;var e=i[t.type];return e?"geometry"===e?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]}:"feature"===e?{type:"FeatureCollection",features:[t]}:"featurecollection"===e?t:void 0:null};var i={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"}},{}],27:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],28:[function(t,e,n){!function(t,i){"object"==l(n)&&void 0!==e?i(n):i(t.jsts=t.jsts||{})}(this,(function(t){"use strict";function e(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function n(){}function i(){}function r(){}function o(){}function a(){}function s(){}function l(){}function u(t){this.name="RuntimeException",this.message=t,this.stack=(new Error).stack,Error.call(this,t)}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function d(){if(0===arguments.length)u.call(this);else if(1===arguments.length){var t=arguments[0];u.call(this,t)}}function h(){}function f(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)f.call(this,0,0);else if(1===arguments.length){var t=arguments[0];f.call(this,t.x,t.y,t.z)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];f.call(this,e,n,f.NULL_ORDINATE)}else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this.x=i,this.y=r,this.z=o}}function p(){if(this.dimensionsToTest=2,0===arguments.length)p.call(this,2);else if(1===arguments.length){var t=arguments[0];if(2!==t&&3!==t)throw new i("only 2 or 3 dimensions may be specified");this.dimensionsToTest=t}}function m(){}function g(){}function v(t){this.message=t||""}function y(){}function _(t){this.message=t||""}function b(t){this.message=t||""}function w(){this.array_=[],arguments[0]instanceof g&&this.addAll(arguments[0])}function x(){if(w.apply(this),0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.ensureCapacity(e.length),this.add(e,n)}}function k(){if(this.minx=null,this.maxx=null,this.miny=null,this.maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof f){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof k){var e=arguments[0];this.init(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.init(n.x,i.x,n.y,i.y)}else if(4===arguments.length){var r=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];this.init(r,o,a,s)}}function C(){}function L(){C.call(this,"Projective point not representable on the Cartesian plane.")}function S(){}function M(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1}function T(){}function E(t){this.str=t}function O(t){this.value=t}function P(){}function D(){if(this.hi=0,this.lo=0,0===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];this.init(t)}else if(arguments[0]instanceof D){var e=arguments[0];this.init(e)}else if("string"==typeof arguments[0]){var n=arguments[0];D.call(this,D.parse(n))}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this.init(i,r)}}function A(){}function I(){}function N(){}function R(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var t=arguments[0];this.x=t.x,this.y=t.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],n=arguments[1];this.x=e,this.y=n,this.w=1}else if(arguments[0]instanceof R&&arguments[1]instanceof R){var i=arguments[0],r=arguments[1];this.x=i.y*r.w-r.y*i.w,this.y=r.x*i.w-i.x*r.w,this.w=i.x*r.y-r.x*i.y}else if(arguments[0]instanceof f&&arguments[1]instanceof f){var o=arguments[0],a=arguments[1];this.x=o.y-a.y,this.y=a.x-o.x,this.w=o.x*a.y-a.x*o.y}}else if(3===arguments.length){var s=arguments[0],l=arguments[1],u=arguments[2];this.x=s,this.y=l,this.w=u}else if(4===arguments.length){var c=arguments[0],d=arguments[1],h=arguments[2],p=arguments[3],m=c.y-d.y,g=d.x-c.x,v=c.x*d.y-d.x*c.y,y=h.y-p.y,_=p.x-h.x,b=h.x*p.y-p.x*h.y;this.x=g*b-_*v,this.y=y*v-m*b,this.w=m*_-y*g}}function j(){}function z(){}function Y(){this.envelope=null,this.factory=null,this.SRID=null,this.userData=null;var t=arguments[0];this.factory=t,this.SRID=t.getSRID()}function F(){}function B(){}function $(){}function H(){}function U(){}function V(){}function W(){}function G(){}function q(){}function Z(){}function X(){}function J(){}function K(){this.array_=[],arguments[0]instanceof g&&this.addAll(arguments[0])}function Q(t){return null==t?Bo:t.color}function tt(t){return null==t?null:t.parent}function et(t,e){null!==t&&(t.color=e)}function nt(t){return null==t?null:t.left}function it(t){return null==t?null:t.right}function rt(){this.root_=null,this.size_=0}function ot(){}function at(){}function st(){this.array_=[],arguments[0]instanceof g&&this.addAll(arguments[0])}function lt(){}function ut(){}function ct(){}function dt(){}function ht(){this.geometries=null;var t=arguments[0],e=arguments[1];if(Y.call(this,e),null===t&&(t=[]),Y.hasNullElements(t))throw new i("geometries must not contain null elements");this.geometries=t}function ft(){var t=arguments[0],e=arguments[1];ht.call(this,t,e)}function pt(){if(this.geom=null,this.geomFact=null,this.bnRule=null,this.endpointMap=null,1===arguments.length){var t=arguments[0];pt.call(this,t,B.MOD2_BOUNDARY_RULE)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.geom=e,this.geomFact=e.getFactory(),this.bnRule=n}}function mt(){this.count=null}function gt(){}function vt(){}function yt(){}function _t(){}function bt(){}function wt(){}function xt(){}function kt(){this.points=null;var t=arguments[0],e=arguments[1];Y.call(this,e),this.init(t)}function Ct(){}function Lt(){this.coordinates=null;var t=arguments[0],e=arguments[1];Y.call(this,e),this.init(t)}function St(){}function Mt(){this.shell=null,this.holes=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(Y.call(this,n),null===t&&(t=this.getFactory().createLinearRing()),null===e&&(e=[]),Y.hasNullElements(e))throw new i("holes must not contain null elements");if(t.isEmpty()&&Y.hasNonEmptyElements(e))throw new i("shell is empty but holes are not");this.shell=t,this.holes=e}function Tt(){var t=arguments[0],e=arguments[1];ht.call(this,t,e)}function Et(){if(arguments[0]instanceof f&&arguments[1]instanceof Wt){var t=arguments[0],e=arguments[1];Et.call(this,e.getCoordinateSequenceFactory().create(t),e)}else if(M(arguments[0],I)&&arguments[1]instanceof Wt){var n=arguments[0],i=arguments[1];kt.call(this,n,i),this.validateConstruction()}}function Ot(){var t=arguments[0],e=arguments[1];ht.call(this,t,e)}function Pt(){if(this.factory=null,this.isUserDataCopied=!1,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.factory=t}}function Dt(){}function At(){}function It(){}function Nt(){}function Rt(){if(this.dimension=3,this.coordinates=null,1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];Rt.call(this,t,3)}else if(Number.isInteger(arguments[0])){var e=arguments[0];this.coordinates=new Array(e).fill(null);for(var n=0;n-1}function Bt(t,e,n){var i=[0],r=!1;return t.push(i),{next:function(){var o,a=i[0];return!r&&a1,"Node capacity must be greater than 1"),this.nodeCapacity=t}}function Ee(){}function Oe(){if(0===arguments.length)Oe.call(this,Oe.DEFAULT_NODE_CAPACITY);else if(1===arguments.length){var t=arguments[0];Te.call(this,t)}}function Pe(){var t=arguments[0];Se.call(this,t)}function De(){}function Ae(){this.segString=null,this.coord=null,this.segmentIndex=null,this.segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this.segString=t,this.coord=new f(e),this.segmentIndex=n,this.segmentOctant=i,this._isInterior=!e.equals2D(t.getCoordinate(n))}function Ie(){this.nodeMap=new rt,this.edge=null;var t=arguments[0];this.edge=t}function Ne(){this.nodeList=null,this.edge=null,this.nodeIt=null,this.currNode=null,this.nextNode=null,this.currSegIndex=0;var t=arguments[0];this.nodeList=t,this.edge=t.getEdge(),this.nodeIt=t.iterator(),this.readNextNode()}function Re(){}function je(){this.nodeList=new Ie(this),this.pts=null,this.data=null;var t=arguments[0],e=arguments[1];this.pts=t,this.data=e}function ze(){this.tempEnv1=new k,this.tempEnv2=new k,this.overlapSeg1=new te,this.overlapSeg2=new te}function Ye(){this.pts=null,this.start=null,this.end=null,this.env=null,this.context=null,this.id=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this.pts=t,this.start=e,this.end=n,this.context=i}function Fe(){}function Be(){}function $e(){}function He(){if(this.segInt=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setSegmentIntersector(t)}}function Ue(){if(this.monoChains=new w,this.index=new Oe,this.idCounter=0,this.nodedSegStrings=null,this.nOverlaps=0,0===arguments.length);else if(1===arguments.length){var t=arguments[0];He.call(this,t)}}function Ve(){ze.apply(this),this.si=null;var t=arguments[0];this.si=t}function We(){if(this.pt=null,1===arguments.length){var t=arguments[0];u.call(this,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];u.call(this,We.msgWithCoord(e,n)),this.name="TopologyException",this.pt=new f(n)}}function Ge(){}function qe(){this.findAllIntersections=!1,this.isCheckEndSegmentsOnly=!1,this.li=null,this.interiorIntersection=null,this.intSegments=null,this.intersections=new w,this.intersectionCount=0,this.keepIntersections=!0;var t=arguments[0];this.li=t,this.interiorIntersection=null}function Ze(){this.li=new Xt,this.segStrings=null,this.findAllIntersections=!1,this.segInt=null,this._isValid=!0;var t=arguments[0];this.segStrings=t}function Xe(){this.nv=null;var t=arguments[0];this.nv=new Ze(Xe.toSegmentStrings(t))}function Je(){this.mapOp=null;var t=arguments[0];this.mapOp=t}function Ke(){}function Qe(){if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];this.init(t.length)}else if(Number.isInteger(arguments[0])){var e=arguments[0];this.init(1),this.location[Ke.ON]=e}else if(arguments[0]instanceof Qe){var n=arguments[0];if(this.init(n.location.length),null!==n)for(var i=0;i=0?this.setComputationPrecision(i.getPrecisionModel()):this.setComputationPrecision(r.getPrecisionModel()),this.arg=new Array(2).fill(null),this.arg[0]=new Bn(0,i,o),this.arg[1]=new Bn(1,r,o)}}function Hn(){this.pts=null,this._orientation=null;var t=arguments[0];this.pts=t,this._orientation=Hn.orientation(t)}function Un(){this.edges=new w,this.ocaMap=new rt}function Vn(){this.ptLocator=new ve,this.geomFact=null,this.resultGeom=null,this.graph=null,this.edgeList=new Un,this.resultPolyList=new w,this.resultLineList=new w,this.resultPointList=new w;var t=arguments[0],e=arguments[1];$n.call(this,t,e),this.graph=new dn(new _n),this.geomFact=t.getFactory()}function Wn(){this.geom=new Array(2).fill(null),this.snapTolerance=null,this.cbr=null;var t=arguments[0],e=arguments[1];this.geom[0]=t,this.geom[1]=e,this.computeSnapTolerance()}function Gn(){this.geom=new Array(2).fill(null);var t=arguments[0],e=arguments[1];this.geom[0]=t,this.geom[1]=e}function qn(){this.factory=null,this.interiorPoint=null,this.maxWidth=0;var t=arguments[0];this.factory=t.getFactory(),this.add(t)}function Zn(){this.poly=null,this.centreY=null,this.hiY=r.MAX_VALUE,this.loY=-r.MAX_VALUE;var t=arguments[0];this.poly=t,this.hiY=t.getEnvelopeInternal().getMaxY(),this.loY=t.getEnvelopeInternal().getMinY(),this.centreY=qn.avg(this.loY,this.hiY)}function Xn(){this.centroid=null,this.minDistance=r.MAX_VALUE,this.interiorPoint=null;var t=arguments[0];this.centroid=t.getCentroid().getCoordinate(),this.addInterior(t),null===this.interiorPoint&&this.addEndpoints(t)}function Jn(){this.centroid=null,this.minDistance=r.MAX_VALUE,this.interiorPoint=null;var t=arguments[0];this.centroid=t.getCentroid().getCoordinate(),this.add(t)}function Kn(){this.tempEnv1=new k,this.selectedSegment=new te}function Qn(){this.items=new w,this.subnode=[null,null]}function ti(){if(this.min=null,this.max=null,0===arguments.length)this.min=0,this.max=0;else if(1===arguments.length){var t=arguments[0];this.init(t.min,t.max)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.init(e,n)}}function ei(){}function ni(){this.pt=0,this.level=0,this.interval=null;var t=arguments[0];this.computeKey(t)}function ii(){Qn.apply(this),this.interval=null,this.centre=null,this.level=null;var t=arguments[0],e=arguments[1];this.interval=t,this.level=e,this.centre=(t.getMin()+t.getMax())/2}function ri(){}function oi(){Qn.apply(this)}function ai(){this.root=null,this.minExtent=1,this.root=new oi}function si(){}function li(){this.ring=null,this.tree=null,this.crossings=0,this.interval=new ti;var t=arguments[0];this.ring=t,this.buildIndex()}function ui(){Kn.apply(this),this.mcp=null,this.p=null;var t=arguments[0],e=arguments[1];this.mcp=t,this.p=e}function ci(){}function di(){this.p0=null,this.p1=null,this.p2=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.p0=t,this.p1=e,this.p2=n}function hi(){this.input=null,this.extremalPts=null,this.centre=null,this.radius=0;var t=arguments[0];this.input=t}function fi(){if(this.inputGeom=null,this.isConvex=null,this.convexHullPts=null,this.minBaseSeg=new te,this.minWidthPt=null,this.minPtIndex=null,this.minWidth=0,1===arguments.length){var t=arguments[0];fi.call(this,t,!1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.inputGeom=e,this.isConvex=n}}function pi(){this.inputGeom=null,this.distanceTolerance=null;var t=arguments[0];this.inputGeom=t}function mi(){le.apply(this),this.distanceTolerance=null;var t=arguments[0];this.distanceTolerance=t}function gi(){this._orig=null,this._sym=null,this._next=null;var t=arguments[0];this._orig=t}function vi(){this._isMarked=!1;var t=arguments[0];gi.call(this,t)}function yi(){this.vertexMap=new Ht}function _i(){this._isStart=!1;var t=arguments[0];vi.call(this,t)}function bi(){yi.apply(this)}function wi(){this.result=null,this.factory=null,this.graph=null,this.lines=new w,this.nodeEdgeStack=new re,this.ringStartEdge=null,this.graph=new bi}function xi(){this.items=new w,this.subnode=new Array(4).fill(null)}function ki(){this.pt=new f,this.level=0,this.env=null;var t=arguments[0];this.computeKey(t)}function Ci(){xi.apply(this),this.env=null,this.centrex=null,this.centrey=null,this.level=null;var t=arguments[0],e=arguments[1];this.env=t,this.level=e,this.centrex=(t.getMinX()+t.getMaxX())/2,this.centrey=(t.getMinY()+t.getMaxY())/2}function Li(){xi.apply(this)}function Si(){this.root=null,this.minExtent=1,this.root=new Li}function Mi(t){this.geometryFactory=t||new Wt}function Ti(t){this.geometryFactory=t||new Wt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new Mi(this.geometryFactory)}function Ei(){this.parser=new Mi(this.geometryFactory)}function Oi(t){this.geometryFactory=t||new Wt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new Gt(this.geometryFactory)}function Pi(t){return[t.x,t.y]}function Di(t,e){this.geometryFactory=t||new Wt,this.ol=e||"undefined"!=typeof ol&&ol}function Ai(){if(this.noder=null,this.scaleFactor=null,this.offsetX=null,this.offsetY=null,this.isScaled=!1,2===arguments.length){var t=arguments[0],e=arguments[1];Ai.call(this,t,e,0,0)}else if(4===arguments.length){var n=arguments[0],i=arguments[1];this.noder=n,this.scaleFactor=i,this.isScaled=!this.isIntegerPrecision()}}function Ii(){if(this.inputGeom=null,this.isClosedEndpointsInInterior=!0,this.nonSimpleLocation=null,1===arguments.length){var t=arguments[0];this.inputGeom=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.inputGeom=e,this.isClosedEndpointsInInterior=!n.isInBoundary(2)}}function Ni(){this.pt=null,this.isClosed=null,this.degree=null;var t=arguments[0];this.pt=t,this.isClosed=!1,this.degree=0}function Ri(){if(this.quadrantSegments=Ri.DEFAULT_QUADRANT_SEGMENTS,this.endCapStyle=Ri.CAP_ROUND,this.joinStyle=Ri.JOIN_ROUND,this.mitreLimit=Ri.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this.simplifyFactor=Ri.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setQuadrantSegments(t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.setQuadrantSegments(e),this.setEndCapStyle(n)}else if(4===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2],a=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(r),this.setJoinStyle(o),this.setMitreLimit(a)}}function ji(){this.minIndex=-1,this.minCoord=null,this.minDe=null,this.orientedDe=null}function zi(){this.array_=[]}function Yi(){this.finder=null,this.dirEdgeList=new w,this.nodes=new w,this.rightMostCoord=null,this.env=null,this.finder=new ji}function Fi(){this.inputLine=null,this.distanceTol=null,this.isDeleted=null,this.angleOrientation=Qt.COUNTERCLOCKWISE;var t=arguments[0];this.inputLine=t}function Bi(){this.ptList=null,this.precisionModel=null,this.minimimVertexDistance=0,this.ptList=new w}function $i(){this.maxCurveSegmentError=0,this.filletAngleQuantum=null,this.closingSegLengthFactor=1,this.segList=null,this.distance=0,this.precisionModel=null,this.bufParams=null,this.li=null,this.s0=null,this.s1=null,this.s2=null,this.seg0=new te,this.seg1=new te,this.offset0=new te,this.offset1=new te,this.side=0,this._hasNarrowConcaveAngle=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this.precisionModel=t,this.bufParams=e,this.li=new Xt,this.filletAngleQuantum=Math.PI/2/e.getQuadrantSegments(),e.getQuadrantSegments()>=8&&e.getJoinStyle()===Ri.JOIN_ROUND&&(this.closingSegLengthFactor=$i.MAX_CLOSING_SEG_LEN_FACTOR),this.init(n)}function Hi(){this.distance=0,this.precisionModel=null,this.bufParams=null;var t=arguments[0],e=arguments[1];this.precisionModel=t,this.bufParams=e}function Ui(){this.subgraphs=null,this.seg=new te,this.cga=new Qt;var t=arguments[0];this.subgraphs=t}function Vi(){this.upwardSeg=null,this.leftDepth=null;var t=arguments[0],e=arguments[1];this.upwardSeg=new te(t),this.leftDepth=e}function Wi(){this.inputGeom=null,this.distance=null,this.curveBuilder=null,this.curveList=new w;var t=arguments[0],e=arguments[1],n=arguments[2];this.inputGeom=t,this.distance=e,this.curveBuilder=n}function Gi(){this._hasIntersection=!1,this.hasProper=!1,this.hasProperInterior=!1,this.hasInterior=!1,this.properIntersectionPoint=null,this.li=null,this.isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var t=arguments[0];this.li=t}function qi(){this.bufParams=null,this.workingPrecisionModel=null,this.workingNoder=null,this.geomFact=null,this.graph=null,this.edgeList=new Un;var t=arguments[0];this.bufParams=t}function Zi(){this.li=new Xt,this.segStrings=null;var t=arguments[0];this.segStrings=t}function Xi(){this.li=null,this.pt=null,this.originalPt=null,this.ptScaled=null,this.p0Scaled=null,this.p1Scaled=null,this.scaleFactor=null,this.minx=null,this.maxx=null,this.miny=null,this.maxy=null,this.corner=new Array(4).fill(null),this.safeEnv=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(this.originalPt=t,this.pt=t,this.scaleFactor=e,this.li=n,e<=0)throw new i("Scale factor must be non-zero");1!==e&&(this.pt=new f(this.scale(t.x),this.scale(t.y)),this.p0Scaled=new f,this.p1Scaled=new f),this.initCorners(this.pt)}function Ji(){this.index=null;var t=arguments[0];this.index=t}function Ki(){Kn.apply(this),this.hotPixel=null,this.parentEdge=null,this.hotPixelVertexIndex=null,this._isNodeAdded=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this.hotPixel=t,this.parentEdge=e,this.hotPixelVertexIndex=n}function Qi(){this.li=null,this.interiorIntersections=null;var t=arguments[0];this.li=t,this.interiorIntersections=new w}function tr(){this.pm=null,this.li=null,this.scaleFactor=null,this.noder=null,this.pointSnapper=null,this.nodedSegStrings=null;var t=arguments[0];this.pm=t,this.li=new Xt,this.li.setPrecisionModel(t),this.scaleFactor=t.getScale()}function er(){if(this.argGeom=null,this.distance=null,this.bufParams=new Ri,this.resultGeometry=null,this.saveException=null,1===arguments.length){var t=arguments[0];this.argGeom=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.argGeom=e,this.bufParams=n}}function nr(){this.comps=null;var t=arguments[0];this.comps=t}function ir(){if(this.component=null,this.segIndex=null,this.pt=null,2===arguments.length){var t=arguments[0],e=arguments[1];ir.call(this,t,ir.INSIDE_AREA,e)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this.component=n,this.segIndex=i,this.pt=r}}function rr(){this.pts=null;var t=arguments[0];this.pts=t}function or(){this.locations=null;var t=arguments[0];this.locations=t}function ar(){if(this.geom=null,this.terminateDistance=0,this.ptLocator=new ve,this.minDistanceLocation=null,this.minDistance=r.MAX_VALUE,2===arguments.length){var t=arguments[0],e=arguments[1];ar.call(this,t,e,0)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],o=arguments[2];this.geom=new Array(2).fill(null),this.geom[0]=n,this.geom[1]=i,this.terminateDistance=o}}function sr(){this.factory=null,this.directedEdges=new w,this.coordinates=null;var t=arguments[0];this.factory=t}function lr(){this._isMarked=!1,this._isVisited=!1,this.data=null}function ur(){lr.apply(this),this.parentEdge=null,this.from=null,this.to=null,this.p0=null,this.p1=null,this.sym=null,this.edgeDirection=null,this.quadrant=null,this.angle=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this.from=t,this.to=e,this.edgeDirection=i,this.p0=t.getCoordinate(),this.p1=n;var r=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y;this.quadrant=Fe.quadrant(r,o),this.angle=Math.atan2(o,r)}function cr(){var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];ur.call(this,t,e,n,i)}function dr(){if(lr.apply(this),this.dirEdge=null,0===arguments.length);else if(2===arguments.length){var t=arguments[0],e=arguments[1];this.setDirectedEdges(t,e)}}function hr(){this.outEdges=new w,this.sorted=!1}function fr(){if(lr.apply(this),this.pt=null,this.deStar=null,1===arguments.length){var t=arguments[0];fr.call(this,t,new hr)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.pt=e,this.deStar=n}}function pr(){dr.apply(this),this.line=null;var t=arguments[0];this.line=t}function mr(){this.nodeMap=new rt}function gr(){this.edges=new K,this.dirEdges=new K,this.nodeMap=new mr}function vr(){gr.apply(this)}function yr(){this.graph=new vr,this.mergedLineStrings=null,this.factory=null,this.edgeStrings=null}function _r(){this.edgeRing=null,this.next=null,this.label=-1;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];ur.call(this,t,e,n,i)}function br(){dr.apply(this),this.line=null;var t=arguments[0];this.line=t}function wr(){this.geometryFactory=new Wt,this.geomGraph=null,this.disconnectedRingcoord=null;var t=arguments[0];this.geomGraph=t}function xr(){}function kr(){if(this.edgeEnds=new w,1===arguments.length){var t=arguments[0];kr.call(this,null,t)}else if(2===arguments.length){var e=arguments[1];ln.call(this,e.getEdge(),e.getCoordinate(),e.getDirectedCoordinate(),new tn(e.getLabel())),this.insert(e)}}function Cr(){vn.apply(this)}function Lr(){var t=arguments[0],e=arguments[1];an.call(this,t,e)}function Sr(){cn.apply(this)}function Mr(){this.nodes=new sn(new Sr)}function Tr(){this.li=new Xt,this.geomGraph=null,this.nodeGraph=new Mr,this.invalidPoint=null;var t=arguments[0];this.geomGraph=t}function Er(){this.graph=null,this.rings=new w,this.totalEnv=new k,this.index=null,this.nestedPt=null;var t=arguments[0];this.graph=t}function Or(){if(this.errorType=null,this.pt=null,1===arguments.length){var t=arguments[0];Or.call(this,t,null)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.errorType=e,null!==n&&(this.pt=n.copy())}}function Pr(){this.parentGeometry=null,this.isSelfTouchingRingFormingHoleValid=!1,this.validErr=null;var t=arguments[0];this.parentGeometry=t}function Dr(){this.factory=null,this.deList=new w,this.lowestEdge=null,this.ring=null,this.ringPts=null,this.holes=null,this.shell=null,this._isHole=null,this._isProcessed=!1,this._isIncludedSet=!1,this._isIncluded=!1;var t=arguments[0];this.factory=t}function Ar(){}function Ir(){gr.apply(this),this.factory=null;var t=arguments[0];this.factory=t}function Nr(){if(this.lineStringAdder=new Rr(this),this.graph=null,this.dangles=new w,this.cutEdges=new w,this.invalidRingLines=new w,this.holeList=null,this.shellList=null,this.polyList=null,this.isCheckingRingsValid=!0,this.extractOnlyPolygonal=null,this.geomFactory=null,0===arguments.length)Nr.call(this,!1);else if(1===arguments.length){var t=arguments[0];this.extractOnlyPolygonal=t}}function Rr(){this.p=null;var t=arguments[0];this.p=t}function jr(){this.li=new Xt,this.ptLocator=new ve,this.arg=null,this.nodes=new sn(new Sr),this.im=null,this.isolatedEdges=new w,this.invalidPoint=null;var t=arguments[0];this.arg=t}function zr(){this.rectEnv=null;var t=arguments[0];this.rectEnv=t.getEnvelopeInternal()}function Yr(){this.li=new Xt,this.rectEnv=null,this.diagUp0=null,this.diagUp1=null,this.diagDown0=null,this.diagDown1=null;var t=arguments[0];this.rectEnv=t,this.diagUp0=new f(t.getMinX(),t.getMinY()),this.diagUp1=new f(t.getMaxX(),t.getMaxY()),this.diagDown0=new f(t.getMinX(),t.getMaxY()),this.diagDown1=new f(t.getMaxX(),t.getMinY())}function Fr(){this._isDone=!1}function Br(){this.rectangle=null,this.rectEnv=null;var t=arguments[0];this.rectangle=t,this.rectEnv=t.getEnvelopeInternal()}function $r(){Fr.apply(this),this.rectEnv=null,this._intersects=!1;var t=arguments[0];this.rectEnv=t}function Hr(){Fr.apply(this),this.rectSeq=null,this.rectEnv=null,this._containsPoint=!1;var t=arguments[0];this.rectSeq=t.getExteriorRing().getCoordinateSequence(),this.rectEnv=t.getEnvelopeInternal()}function Ur(){Fr.apply(this),this.rectEnv=null,this.rectIntersector=null,this.hasIntersection=!1,this.p0=new f,this.p1=new f;var t=arguments[0];this.rectEnv=t.getEnvelopeInternal(),this.rectIntersector=new Yr(this.rectEnv)}function Vr(){if(this._relate=null,2===arguments.length){var t=arguments[0],e=arguments[1];$n.call(this,t,e),this._relate=new jr(this.arg)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];$n.call(this,n,i,r),this._relate=new jr(this.arg)}}function Wr(){this.geomFactory=null,this.skipEmpty=!1,this.inputGeoms=null;var t=arguments[0];this.geomFactory=Wr.extractFactory(t),this.inputGeoms=t}function Gr(){this.pointGeom=null,this.otherGeom=null,this.geomFact=null;var t=arguments[0],e=arguments[1];this.pointGeom=t,this.otherGeom=e,this.geomFact=e.getFactory()}function qr(){this.sortIndex=-1,this.comps=null;var t=arguments[0],e=arguments[1];this.sortIndex=t,this.comps=e}function Zr(){this.inputPolys=null,this.geomFactory=null;var t=arguments[0];this.inputPolys=t,null===this.inputPolys&&(this.inputPolys=new w)}function Xr(){if(this.polygons=new w,this.lines=new w,this.points=new w,this.geomFact=null,1===arguments.length){if(M(arguments[0],g)){var t=arguments[0];this.extract(t)}else if(arguments[0]instanceof Y){var e=arguments[0];this.extract(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.geomFact=i,this.extract(n)}}function Jr(){Pt.CoordinateOperation.apply(this),this.targetPM=null,this.removeCollapsed=!0;var t=arguments[0],e=arguments[1];this.targetPM=t,this.removeCollapsed=e}function Kr(){this.targetPM=null,this.removeCollapsed=!0,this.changePrecisionModel=!1,this.isPointwise=!1;var t=arguments[0];this.targetPM=t}function Qr(){this.pts=null,this.usePt=null,this.distanceTolerance=null,this.seg=new te;var t=arguments[0];this.pts=t}function to(){this.inputGeom=null,this.distanceTolerance=null,this.isEnsureValidTopology=!0;var t=arguments[0];this.inputGeom=t}function eo(){le.apply(this),this.isEnsureValidTopology=!0,this.distanceTolerance=null;var t=arguments[0],e=arguments[1];this.isEnsureValidTopology=t,this.distanceTolerance=e}function no(){if(this.parent=null,this.index=null,2===arguments.length){var t=arguments[0],e=arguments[1];no.call(this,t,e,null,-1)}else if(4===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],o=arguments[3];te.call(this,n,i),this.parent=r,this.index=o}}function io(){if(this.parentLine=null,this.segs=null,this.resultSegs=new w,this.minimumSize=null,1===arguments.length){var t=arguments[0];io.call(this,t,2)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.parentLine=e,this.minimumSize=n,this.init()}}function ro(){this.index=new Si}function oo(){this.querySeg=null,this.items=new w;var t=arguments[0];this.querySeg=t}function ao(){this.li=new Xt,this.inputIndex=new ro,this.outputIndex=new ro,this.line=null,this.linePts=null,this.distanceTolerance=0;var t=arguments[0],e=arguments[1];this.inputIndex=t,this.outputIndex=e}function so(){this.inputIndex=new ro,this.outputIndex=new ro,this.distanceTolerance=0}function lo(){this.inputGeom=null,this.lineSimplifier=new so,this.linestringMap=null;var t=arguments[0];this.inputGeom=t}function uo(){le.apply(this),this.linestringMap=null;var t=arguments[0];this.linestringMap=t}function co(){this.tps=null;var t=arguments[0];this.tps=t}function ho(){this.seg=null,this.segLen=null,this.splitPt=null,this.minimumLen=0;var t=arguments[0];this.seg=t,this.segLen=t.getLength()}function fo(){}function po(){}function mo(){}function go(){if(this.p=null,1===arguments.length){var t=arguments[0];this.p=new f(t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.p=new f(e,n)}else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this.p=new f(i,r,o)}}function vo(){this._isOnConstraint=null,this.constraint=null;var t=arguments[0];go.call(this,t)}function yo(){this._rot=null,this.vertex=null,this.next=null,this.data=null}function _o(){this.subdiv=null,this.isUsingTolerance=!1;var t=arguments[0];this.subdiv=t,this.isUsingTolerance=t.getTolerance()>0}function bo(){}function wo(){this.subdiv=null,this.lastEdge=null;var t=arguments[0];this.subdiv=t,this.init()}function xo(){if(this.seg=null,1===arguments.length){if("string"==typeof arguments[0]){var t=arguments[0];u.call(this,t)}else if(arguments[0]instanceof te){var e=arguments[0];u.call(this,"Locate failed to converge (at edge: "+e+"). Possible causes include invalid Subdivision topology or very close sites"),this.seg=new te(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];u.call(this,xo.msgWithSpatial(n,i)),this.seg=new te(i)}}function ko(){}function Co(){this.visitedKey=0,this.quadEdges=new w,this.startingEdge=null,this.tolerance=null,this.edgeCoincidenceTolerance=null,this.frameVertex=new Array(3).fill(null),this.frameEnv=null,this.locator=null,this.seg=new te,this.triEdges=new Array(3).fill(null);var t=arguments[0],e=arguments[1];this.tolerance=e,this.edgeCoincidenceTolerance=e/Co.EDGE_COINCIDENCE_TOL_FACTOR,this.createFrame(t),this.startingEdge=this.initSubdiv(),this.locator=new wo(this)}function Lo(){}function So(){this.triList=new w}function Mo(){this.triList=new w}function To(){this.coordList=new x,this.triCoords=new w}function Eo(){if(this.ls=null,this.data=null,2===arguments.length){var t=arguments[0],e=arguments[1];this.ls=new te(t,e)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this.ls=new te(n,i),this.data=r}else if(6===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2],l=arguments[3],u=arguments[4],c=arguments[5];Eo.call(this,new f(o,a,s),new f(l,u,c))}else if(7===arguments.length){var d=arguments[0],h=arguments[1],p=arguments[2],m=arguments[3],g=arguments[4],v=arguments[5],y=arguments[6];Eo.call(this,new f(d,h,p),new f(m,g,v),y)}}function Oo(){}function Po(){if(this.p=null,this.data=null,this.left=null,this.right=null,this.count=null,2===arguments.length){var t=arguments[0],e=arguments[1];this.p=new f(t),this.left=null,this.right=null,this.count=1,this.data=e}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this.p=new f(n,i),this.left=null,this.right=null,this.count=1,this.data=r}}function Do(){if(this.root=null,this.numberOfNodes=null,this.tolerance=null,0===arguments.length)Do.call(this,0);else if(1===arguments.length){var t=arguments[0];this.tolerance=t}}function Ao(){this.tolerance=null,this.matchNode=null,this.matchDist=0,this.p=null;var t=arguments[0],e=arguments[1];this.p=t,this.tolerance=e}function Io(){this.initialVertices=null,this.segVertices=null,this.segments=new w,this.subdiv=null,this.incDel=null,this.convexHull=null,this.splitFinder=new po,this.kdt=null,this.vertexFactory=null,this.computeAreaEnv=null,this.splitPt=null,this.tolerance=null;var t=arguments[0],e=arguments[1];this.initialVertices=new w(t),this.tolerance=e,this.kdt=new Do(e)}function No(){this.siteCoords=null,this.tolerance=0,this.subdiv=null}function Ro(){this.siteCoords=null,this.constraintLines=null,this.tolerance=0,this.subdiv=null,this.constraintVertexMap=new rt}function jo(){this.siteCoords=null,this.tolerance=0,this.subdiv=null,this.clipEnv=null,this.diagramEnv=null}function zo(){}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(null==this)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,i=1 in arguments&&parseInt(Number(arguments[1]),10)||0;i=i<0?Math.max(n+i,0):Math.min(i,n);var r=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(r=r<0?Math.max(n+arguments[2],0):Math.min(r,n);ie.x?1:this.ye.y?1:0},clone:function(){try{var t=null;return null}catch(t){if(t instanceof CloneNotSupportedException)return h.shouldNeverReachHere("this shouldn't happen because this class is Cloneable"),null;throw t}},copy:function(){return new f(this)},toString:function(){return"("+this.x+", "+this.y+", "+this.z+")"},distance3D:function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return Math.sqrt(e*e+n*n+i*i)},distance:function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},hashCode:function(){var t=17;return 37*(t=37*t+f.hashCode(this.x))+f.hashCode(this.y)},setCoordinate:function(t){this.x=t.x,this.y=t.y,this.z=t.z},interfaces_:function(){return[o,a,l]},getClass:function(){return f}}),f.hashCode=function(){if(1===arguments.length){var t=arguments[0],e=r.doubleToLongBits(t);return Math.trunc(e^e>>>32)}},e(p.prototype,{compare:function(t,e){var n=t,i=e,r=p.compare(n.x,i.x);if(0!==r)return r;var o=p.compare(n.y,i.y);return 0!==o?o:this.dimensionsToTest<=2?0:p.compare(n.z,i.z)},interfaces_:function(){return[s]},getClass:function(){return p}}),p.compare=function(t,e){return te?1:r.isNaN(t)?r.isNaN(e)?0:-1:r.isNaN(e)?1:0},f.DimensionalComparator=p,f.serialVersionUID=0x5cbf2c235c7e5800,f.NULL_ORDINATE=r.NaN,f.X=0,f.Y=1,f.Z=2,m.prototype.hasNext=function(){},m.prototype.next=function(){},m.prototype.remove=function(){},g.prototype.add=function(){},g.prototype.addAll=function(){},g.prototype.isEmpty=function(){},g.prototype.iterator=function(){},g.prototype.size=function(){},g.prototype.toArray=function(){},g.prototype.remove=function(){},v.prototype=new Error,v.prototype.name="IndexOutOfBoundsException",y.prototype=Object.create(g.prototype),y.prototype.constructor=y,y.prototype.get=function(){},y.prototype.set=function(){},y.prototype.isEmpty=function(){},_.prototype=new Error,_.prototype.name="NoSuchElementException",b.prototype=new Error,b.prototype.name="OperationNotSupported",w.prototype=Object.create(y.prototype),w.prototype.constructor=w,w.prototype.ensureCapacity=function(){},w.prototype.interfaces_=function(){return[y,g]},w.prototype.add=function(t){return 1===arguments.length?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},w.prototype.clear=function(){this.array_=[]},w.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},w.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},w.prototype.iterator=function(){return new Yo(this)},w.prototype.get=function(t){if(t<0||t>=this.size())throw new v;return this.array_[t]},w.prototype.isEmpty=function(){return 0===this.array_.length},w.prototype.size=function(){return this.array_.length},w.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e=1){var o=this.get(this.size()-1);if(o.equals2D(i))return null}w.prototype.add.call(this,i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var a=arguments[0],s=arguments[1];return this.add(a,s),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var l=arguments[0],u=arguments[1],c=arguments[2];if(c)for(var d=0;d=0;d--)this.add(l[d],u);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof f){var h=arguments[0],p=arguments[1],m=arguments[2];if(!m){var g=this.size();if(g>0){if(h>0){var v=this.get(h-1);if(v.equals2D(p))return null}if(hk&&(C=-1),d=x;d!==k;d+=C)this.add(_[d],b);return!0}},closeRing:function(){this.size()>0&&this.add(new f(this.get(0)),!1)},interfaces_:function(){return[]},getClass:function(){return x}}),x.coordArrayType=new Array(0).fill(null),e(k.prototype,{getArea:function(){return this.getWidth()*this.getHeight()},equals:function(t){if(!(t instanceof k))return!1;var e=t;return this.isNull()?e.isNull():this.maxx===e.getMaxX()&&this.maxy===e.getMaxY()&&this.minx===e.getMinX()&&this.miny===e.getMinY()},intersection:function(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new k;var e=this.minx>t.minx?this.minx:t.minx,n=this.miny>t.miny?this.miny:t.miny;return new k(e,this.maxx=this.minx&&e.getMaxX()<=this.maxx&&e.getMinY()>=this.miny&&e.getMaxY()<=this.maxy}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return!this.isNull()&&n>=this.minx&&n<=this.maxx&&i>=this.miny&&i<=this.maxy}},intersects:function(){if(1===arguments.length){if(arguments[0]instanceof k){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t.minx>this.maxx||t.maxxthis.maxy||t.maxythis.maxx||nthis.maxy||ithis.maxx&&(this.maxx=e.maxx),e.minythis.maxy&&(this.maxy=e.maxy))}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.isNull()?(this.minx=n,this.maxx=n,this.miny=i,this.maxy=i):(nthis.maxx&&(this.maxx=n),ithis.maxy&&(this.maxy=i))}},minExtent:function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return te.minx?1:this.minye.miny?1:this.maxxe.maxx?1:this.maxye.maxy?1:0},translate:function(t,e){return this.isNull()?null:void this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},toString:function(){return"Env["+this.minx+" : "+this.maxx+", "+this.miny+" : "+this.maxy+"]"},setToNull:function(){this.minx=0,this.maxx=-1,this.miny=0,this.maxy=-1},getHeight:function(){return this.isNull()?0:this.maxy-this.miny},maxExtent:function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t>e?t:e},expandBy:function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this.minx-=e,this.maxx+=e,this.miny-=n,this.maxy+=n,(this.minx>this.maxx||this.miny>this.maxy)&&this.setToNull()}},contains:function(){if(1===arguments.length){if(arguments[0]instanceof k){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof f){var e=arguments[0];return this.covers(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return this.covers(n,i)}},centre:function(){return this.isNull()?null:new f((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},init:function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof f){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof k){var e=arguments[0];this.minx=e.minx,this.maxx=e.maxx,this.miny=e.miny,this.maxy=e.maxy}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.init(n.x,i.x,n.y,i.y)}else if(4===arguments.length){var r=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];rt.maxx&&(e=this.minx-t.maxx);var n=0;return this.maxyt.maxy&&(n=this.miny-t.maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)},hashCode:function(){var t=17;return 37*(t=37*(t=37*(t=37*t+f.hashCode(this.minx))+f.hashCode(this.maxx))+f.hashCode(this.miny))+f.hashCode(this.maxy)},interfaces_:function(){return[o,l]},getClass:function(){return k}}),k.intersects=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.xe.x?t.x:e.x)&&n.y>=(t.ye.y?t.y:e.y)}if(4===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2],a=arguments[3],s=Math.min(o.x,a.x),l=Math.max(o.x,a.x),u=Math.min(i.x,r.x),c=Math.max(i.x,r.x);return!(u>l||cl||cn?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var i=arguments[0],r=arguments[1],o=arguments[2];return io?o:i}},T.wrap=function(t,e){return t<0?e- -t%e:t%e},T.max=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return e>(i=t)&&(i=e),n>i&&(i=n),i}if(4===arguments.length){var i,r=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];return o>(i=r)&&(i=o),a>i&&(i=a),s>i&&(i=s),i}},T.average=function(t,e){return(t+e)/2},T.LOG_10=Math.log(10),E.prototype.append=function(t){this.str+=t},E.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},E.prototype.toString=function(t){return this.str},O.prototype.intValue=function(){return this.value},O.prototype.compareTo=function(t){return this.valuet?1:0},O.isNaN=function(t){return Number.isNaN(t)},P.isWhitespace=function(t){return t<=32&&t>=0||127==t},P.toUpperCase=function(t){return t.toUpperCase()},e(D.prototype,{le:function(t){return this.hi9?(c=!0,d="9"):d="0"+u,a.append(d),n=n.subtract(D.valueOf(u)).multiply(D.TEN),c&&n.selfAdd(D.TEN);var h=!0,f=D.magnitude(n.hi);if(f<0&&Math.abs(f)>=s-l&&(h=!1),!h)break}return e[0]=i,a.toString()},sqr:function(){return this.multiply(this)},doubleValue:function(){return this.hi+this.lo},subtract:function(){if(arguments[0]instanceof D){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var e=arguments[0];return this.add(-e)}},equals:function(){if(1===arguments.length){var t=arguments[0];return this.hi===t.hi&&this.lo===t.lo}},isZero:function(){return 0===this.hi&&0===this.lo},selfSubtract:function(){if(arguments[0]instanceof D){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t.hi,-t.lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},getSpecialNumberString:function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},min:function(t){return this.le(t)?this:t},selfDivide:function(){if(1===arguments.length){if(arguments[0]instanceof D){var t=arguments[0];return this.selfDivide(t.hi,t.lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfDivide(e,0)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=null,o=null,a=null,s=null,l=null,u=null,c=null,d=null;return l=this.hi/n,d=(r=(u=D.SPLIT*l)-(r=u-l))*(a=(d=D.SPLIT*n)-(a=d-n))-(c=l*n)+r*(s=n-a)+(o=l-r)*a+o*s,d=l+(u=(this.hi-c-d+this.lo-l*i)/n),this.hi=d,this.lo=l-d+u,this}},dump:function(){return"DD<"+this.hi+", "+this.lo+">"},divide:function(){if(arguments[0]instanceof D){var t=arguments[0],e=null,n=null,i=null,o=null,a=null,s=null,l=null,u=null;n=(a=this.hi/t.hi)-(e=(s=D.SPLIT*a)-(e=s-a)),u=e*(i=(u=D.SPLIT*t.hi)-(i=u-t.hi))-(l=a*t.hi)+e*(o=t.hi-i)+n*i+n*o;var c=u=a+(s=(this.hi-l-u+this.lo-a*t.lo)/t.hi),d=a-u+s;return new D(c,d)}if("number"==typeof arguments[0]){var h=arguments[0];return r.isNaN(h)?D.createNaN():D.copy(this).selfDivide(h,0)}},ge:function(t){return this.hi>t.hi||this.hi===t.hi&&this.lo>=t.lo},pow:function(t){if(0===t)return D.valueOf(1);var e=new D(this),n=D.valueOf(1),i=Math.abs(t);if(i>1)for(;i>0;)i%2==1&&n.selfMultiply(e),(i/=2)>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},ceil:function(){if(this.isNaN())return D.NaN;var t=Math.ceil(this.hi),e=0;return t===this.hi&&(e=Math.ceil(this.lo)),new D(t,e)},compareTo:function(t){var e=t;return this.hie.hi?1:this.loe.lo?1:0},rint:function(){return this.isNaN()?this:this.add(.5).floor()},setValue:function(){if(arguments[0]instanceof D){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var e=arguments[0];return this.init(e),this}},max:function(t){return this.ge(t)?this:t},sqrt:function(){if(this.isZero())return D.valueOf(0);if(this.isNegative())return D.NaN;var t=1/Math.sqrt(this.hi),e=this.hi*t,n=D.valueOf(e),i=this.subtract(n.sqr()).hi*(.5*t);return n.add(i)},selfAdd:function(){if(1===arguments.length){if(arguments[0]instanceof D){var t=arguments[0];return this.selfAdd(t.hi,t.lo)}if("number"==typeof arguments[0]){var e=arguments[0],n=null,i=null,r=null,o=null,a=null,s=null;return o=(r=this.hi+e)-(a=r-this.hi),i=(s=(o=e-a+(this.hi-o))+this.lo)+(r-(n=r+s)),this.hi=n+i,this.lo=i+(n-this.hi),this}}else if(2===arguments.length){var l=arguments[0],u=arguments[1],c=(n=null,i=null,null),d=null;r=null,o=null,a=null,s=null,r=this.hi+l,c=this.lo+u,o=r-(a=r-this.hi),d=c-(s=c-this.lo);var h=(n=r+(a=(o=l-a+(this.hi-o))+c))+(a=(d=u-s+(this.lo-d))+(i=a+(r-n))),f=a+(n-h);return this.hi=h,this.lo=f,this}},selfMultiply:function(){if(1===arguments.length){if(arguments[0]instanceof D){var t=arguments[0];return this.selfMultiply(t.hi,t.lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfMultiply(e,0)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=null,o=null,a=null,s=null,l=null,u=null;r=(l=D.SPLIT*this.hi)-this.hi,u=D.SPLIT*n,r=l-r,o=this.hi-r,a=u-n;var c=(l=this.hi*n)+(u=r*(a=u-a)-l+r*(s=n-a)+o*a+o*s+(this.hi*i+this.lo*n)),d=u+(r=l-c);return this.hi=c,this.lo=d,this}},selfSqr:function(){return this.selfMultiply(this)},floor:function(){if(this.isNaN())return D.NaN;var t=Math.floor(this.hi),e=0;return t===this.hi&&(e=Math.floor(this.lo)),new D(t,e)},negate:function(){return this.isNaN()?this:new D(-this.hi,-this.lo)},clone:function(){try{return null}catch(t){if(t instanceof CloneNotSupportedException)return null;throw t}},multiply:function(){if(arguments[0]instanceof D){var t=arguments[0];return t.isNaN()?D.createNaN():D.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var e=arguments[0];return r.isNaN(e)?D.createNaN():D.copy(this).selfMultiply(e,0)}},isNaN:function(){return r.isNaN(this.hi)},intValue:function(){return Math.trunc(this.hi)},toString:function(){var t=D.magnitude(this.hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},toStandardNotation:function(){var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),i=e[0]+1,r=n;if("."===n.charAt(0))r="0"+n;else if(i<0)r="0."+D.stringOfChar("0",-i)+n;else if(-1===n.indexOf(".")){var o=i-n.length;r=n+D.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+r:r},reciprocal:function(){var t,e,n,i,r=null,o=null,a=null,s=null;t=(n=1/this.hi)-(r=(a=D.SPLIT*n)-(r=a-n)),o=(s=D.SPLIT*this.hi)-this.hi;var l=n+(a=(1-(i=n*this.hi)-(s=r*(o=s-o)-i+r*(e=this.hi-o)+t*o+t*e)-n*this.lo)/this.hi);return new D(l,n-l+a)},toSciNotation:function(){if(this.isZero())return D.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),i=D.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===n.charAt(0))throw new IllegalStateException("Found leading zero: "+n);var r="";n.length>1&&(r=n.substring(1));var o=n.charAt(0)+"."+r;return this.isNegative()?"-"+o+i:o+i},abs:function(){return this.isNaN()?D.NaN:this.isNegative()?this.negate():new D(this)},isPositive:function(){return this.hi>0||0===this.hi&&this.lo>0},lt:function(t){return this.hit.hi||this.hi===t.hi&&this.lo>t.lo},isNegative:function(){return this.hi<0||0===this.hi&&this.lo<0},trunc:function(){return this.isNaN()?D.NaN:this.isPositive()?this.floor():this.ceil()},signum:function(){return this.hi>0?1:this.hi<0?-1:this.lo>0?1:this.lo<0?-1:0},interfaces_:function(){return[l,o,a]},getClass:function(){return D}}),D.sqr=function(t){return D.valueOf(t).selfMultiply(t)},D.valueOf=function(){if("string"==typeof arguments[0]){var t=arguments[0];return D.parse(t)}if("number"==typeof arguments[0]){var e=arguments[0];return new D(e)}},D.sqrt=function(t){return D.valueOf(t).sqrt()},D.parse=function(t){for(var e=0,n=t.length;P.isWhitespace(t.charAt(e));)e++;var i=!1;if(e=n);){var u=t.charAt(e);if(e++,P.isDigit(u)){var c=u-"0";o.selfMultiply(D.TEN),o.selfAdd(c),a++}else{if("."!==u){if("e"===u||"E"===u){var d=t.substring(e);try{l=O.parseInt(d)}catch(e){throw e instanceof NumberFormatException?new NumberFormatException("Invalid exponent "+d+" in string "+t):e}break}throw new NumberFormatException("Unexpected character '"+u+"' at position "+e+" in string "+t)}s=a}}var h=o,f=a-s-l;if(0===f)h=o;else if(f>0){var p=D.TEN.pow(f);h=o.divide(p)}else f<0&&(p=D.TEN.pow(-f),h=o.multiply(p));return i?h.negate():h},D.createNaN=function(){return new D(r.NaN,r.NaN)},D.copy=function(t){return new D(t)},D.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),i=Math.trunc(Math.floor(n));return 10*Math.pow(10,i)<=e&&(i+=1),i},D.stringOfChar=function(t,e){for(var n=new E,i=0;i0){if(o<=0)return A.signum(a);i=r+o}else{if(!(r<0))return A.signum(a);if(o>=0)return A.signum(a);i=-r-o}var s=A.DP_SAFE_EPSILON*i;return a>=s||-a>=s?A.signum(a):2},A.signum=function(t){return t>0?1:t<0?-1:0},A.DP_SAFE_EPSILON=1e-15,e(I.prototype,{setOrdinate:function(t,e,n){},size:function(){},getOrdinate:function(t,e){},getCoordinate:function(){},getCoordinateCopy:function(t){},getDimension:function(){},getX:function(t){},clone:function(){},expandEnvelope:function(t){},copy:function(){},getY:function(t){},toCoordinateArray:function(){},interfaces_:function(){return[a]},getClass:function(){return I}}),I.X=0,I.Y=1,I.Z=2,I.M=3,N.arraycopy=function(t,e,n,i,r){for(var o=0,a=e;a0},interfaces_:function(){return[B]},getClass:function(){return H}}),e(U.prototype,{isInBoundary:function(t){return t>1},interfaces_:function(){return[B]},getClass:function(){return U}}),e(V.prototype,{isInBoundary:function(t){return 1===t},interfaces_:function(){return[B]},getClass:function(){return V}}),B.Mod2BoundaryNodeRule=$,B.EndPointBoundaryNodeRule=H,B.MultiValentEndPointBoundaryNodeRule=U,B.MonoValentEndPointBoundaryNodeRule=V,B.MOD2_BOUNDARY_RULE=new $,B.ENDPOINT_BOUNDARY_RULE=new H,B.MULTIVALENT_ENDPOINT_BOUNDARY_RULE=new U,B.MONOVALENT_ENDPOINT_BOUNDARY_RULE=new V,B.OGC_SFS_BOUNDARY_RULE=B.MOD2_BOUNDARY_RULE,e(W.prototype,{interfaces_:function(){return[]},getClass:function(){return W}}),W.isRing=function(t){return!(t.length<4||!t[0].equals2D(t[t.length-1]))},W.ptNotInList=function(t,e){for(var n=0;n=t?e:[]},W.indexOf=function(t,e){for(var n=0;n0)&&(e=t[n]);return e},W.extract=function(t,e,n){e=T.clamp(e,0,t.length);var i=(n=T.clamp(n,-1,t.length))-e+1;n<0&&(i=0),e>=t.length&&(i=0),ni.length)return 1;if(0===n.length)return 0;var r=W.compare(n,i);return W.isEqualReversed(n,i)?0:r},OLDcompare:function(t,e){var n=t,i=e;if(n.lengthi.length)return 1;if(0===n.length)return 0;for(var r=W.increasingDirection(n),o=W.increasingDirection(i),a=r>0?0:n.length-1,s=o>0?0:n.length-1,l=0;l0))return e.value;e=e.right}}return null},rt.prototype.put=function(t,e){if(null===this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:Bo,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,i,r=this.root_;do{if(n=r,(i=t.compareTo(r.key))<0)r=r.left;else{if(!(i>0)){var o=r.value;return r.value=e,o}r=r.right}}while(null!==r);var a={key:t,left:null,right:null,value:e,parent:n,color:Bo,getValue:function(){return this.value},getKey:function(){return this.key}};return i<0?n.left=a:n.right=a,this.fixAfterInsertion(a),this.size_++,null},rt.prototype.fixAfterInsertion=function(t){for(t.color=1;null!=t&&t!=this.root_&&1==t.parent.color;){var e;tt(t)==nt(tt(tt(t)))?1==Q(e=it(tt(tt(t))))?(et(tt(t),Bo),et(e,Bo),et(tt(tt(t)),1),t=tt(tt(t))):(t==it(tt(t))&&(t=tt(t),this.rotateLeft(t)),et(tt(t),Bo),et(tt(tt(t)),1),this.rotateRight(tt(tt(t)))):1==Q(e=nt(tt(tt(t))))?(et(tt(t),Bo),et(e,Bo),et(tt(tt(t)),1),t=tt(tt(t))):(t==nt(tt(t))&&(t=tt(t),this.rotateRight(t)),et(tt(t),Bo),et(tt(tt(t)),1),this.rotateLeft(tt(tt(t))))}this.root_.color=Bo},rt.prototype.values=function(){var t=new w,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=rt.successor(e));)t.add(e.value);return t},rt.prototype.entrySet=function(){var t=new K,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=rt.successor(e));)t.add(e);return t},rt.prototype.rotateLeft=function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null==t.parent?this.root_=e:t.parent.left==t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}},rt.prototype.rotateRight=function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null==t.parent?this.root_=e:t.parent.right==t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},rt.prototype.getFirstEntry=function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t},rt.successor=function(t){if(null===t)return null;if(null!==t.right){for(var e=t.right;null!==e.left;)e=e.left;return e}e=t.parent;for(var n=t;null!==e&&n===e.right;)n=e,e=e.parent;return e},rt.prototype.size=function(){return this.size_},e(ot.prototype,{interfaces_:function(){return[]},getClass:function(){return ot}}),at.prototype=new J,st.prototype=new at,st.prototype.contains=function(t){for(var e=0,n=this.array_.length;e=0;){var a=r.substring(0,o);i.add(a),o=(r=r.substring(o+n)).indexOf(e)}r.length>0&&i.add(r);for(var s=new Array(i.size()).fill(null),l=0;l0)for(var o=r;o0&&i.append(" ");for(var o=0;o0&&i.append(","),i.append(wt.toString(t.getOrdinate(r,o)))}return i.append(")"),i.toString()}},xt.ensureValidRing=function(t,e){var n=e.size();return 0===n?e:n<=3?xt.createClosedRing(t,e,4):e.getOrdinate(0,I.X)===e.getOrdinate(n-1,I.X)&&e.getOrdinate(0,I.Y)===e.getOrdinate(n-1,I.Y)?e:xt.createClosedRing(t,e,n+1)},xt.createClosedRing=function(t,e,n){var i=t.create(n,e.getDimension()),r=e.size();xt.copy(e,0,i,0,r);for(var o=r;o0&&xt.reverse(this.points),null}},getCoordinate:function(){return this.isEmpty()?null:this.points.getCoordinate(0)},getBoundaryDimension:function(){return this.isClosed()?ut.FALSE:0},isClosed:function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},getEndPoint:function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},getDimension:function(){return 1},getLength:function(){return Qt.computeLength(this.points)},getNumPoints:function(){return this.points.size()},reverse:function(){var t=this.points.copy();return xt.reverse(t),this.getFactory().createLineString(t)},compareToSameClass:function(){if(1===arguments.length){for(var t=arguments[0],e=t,n=0,i=0;n= 2)");this.points=t},isCoordinate:function(t){for(var e=0;e=1&&this.getCoordinateSequence().size()= 4)")},getGeometryType:function(){return"LinearRing"},copy:function(){return new Et(this.points.copy(),this.factory)},interfaces_:function(){return[]},getClass:function(){return Et}}),Et.MINIMUM_VALID_SIZE=4,Et.serialVersionUID=-0x3b229e262367a600,c(Ot,ht),e(Ot.prototype,{getSortIndex:function(){return Y.SORTINDEX_MULTIPOLYGON},equalsExact:function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&ht.prototype.equalsExact.call(this,t,e)}return ht.prototype.equalsExact.apply(this,arguments)},getBoundaryDimension:function(){return 1},getDimension:function(){return 2},reverse:function(){for(var t=this.geometries.length,e=new Array(t).fill(null),n=0;n0?e.createPoint(n[0]):e.createPoint():t},interfaces_:function(){return[Dt]},getClass:function(){return It}}),e(Nt.prototype,{edit:function(t,e){return t instanceof Et?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof kt?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof Lt?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},interfaces_:function(){return[Dt]},getClass:function(){return Nt}}),Pt.NoOpGeometryOperation=At,Pt.CoordinateOperation=It,Pt.CoordinateSequenceOperation=Nt,e(Rt.prototype,{setOrdinate:function(t,e,n){switch(e){case I.X:this.coordinates[t].x=n;break;case I.Y:this.coordinates[t].y=n;break;case I.Z:this.coordinates[t].z=n;break;default:throw new i("invalid ordinateIndex")}},size:function(){return this.coordinates.length},getOrdinate:function(t,e){switch(e){case I.X:return this.coordinates[t].x;case I.Y:return this.coordinates[t].y;case I.Z:return this.coordinates[t].z}return r.NaN},getCoordinate:function(){if(1===arguments.length){var t=arguments[0];return this.coordinates[t]}if(2===arguments.length){var e=arguments[0],n=arguments[1];n.x=this.coordinates[e].x,n.y=this.coordinates[e].y,n.z=this.coordinates[e].z}},getCoordinateCopy:function(t){return new f(this.coordinates[t])},getDimension:function(){return this.dimension},getX:function(t){return this.coordinates[t].x},clone:function(){for(var t=new Array(this.size()).fill(null),e=0;e0){var t=new E(17*this.coordinates.length);t.append("("),t.append(this.coordinates[0]);for(var e=1;e3&&(i=3),i<2?new Rt(n):new Rt(n,i)}},interfaces_:function(){return[j,l]},getClass:function(){return jt}}),jt.instance=function(){return jt.instanceObject},jt.serialVersionUID=-0x38e49fa6cf6f2e00,jt.instanceObject=new jt;var Ho,Uo=Object.defineProperty,Vo=function(t,e){function n(t){return this&&this.constructor===n?(this._keys=[],this._values=[],this._itp=[],this.objectOnly=e,void(t&&Yt.call(this,t))):new n(t)}return e||Uo(t,"size",{get:$t}),t.constructor=n,n.prototype=t,n}({delete:function(t){return this.has(t)&&(this._keys.splice(Ho,1),this._values.splice(Ho,1),this._itp.forEach((function(t){Ho-1},has:function(t){return Ft.call(this,this._keys,t)},get:function(t){return this.has(t)?this._values[Ho]:void 0},set:function(t,e){return this.has(t)?this._values[Ho]=e:this._values[this._keys.push(t)-1]=e,this},keys:function(){return Bt(this._itp,this._keys)},values:function(){return Bt(this._itp,this._values)},entries:function(){return Bt(this._itp,this._keys,this._values)},forEach:function(t,e){for(var n=this.entries();;){var i=n.next();if(i.done)break;t.call(e,i.value[1],i.value[0],this)}},clear:function(){(this._keys||0).length=this._values.length=0}}),Wo="undefined"!=typeof Map&&Map.prototype.values?Map:Vo;Ht.prototype=new Z,Ht.prototype.get=function(t){return this.map_.get(t)||null},Ht.prototype.put=function(t,e){return this.map_.set(t,e),e},Ht.prototype.values=function(){for(var t=new w,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},Ht.prototype.entrySet=function(){var t=new K;return this.map_.entries().forEach((function(e){return t.add(e)})),t},Ht.prototype.size=function(){return this.map_.size()},e(Ut.prototype,{equals:function(t){if(!(t instanceof Ut))return!1;var e=t;return this.modelType===e.modelType&&this.scale===e.scale},compareTo:function(t){var e=t,n=this.getMaximumSignificantDigits(),i=e.getMaximumSignificantDigits();return new O(n).compareTo(new O(i))},getScale:function(){return this.scale},isFloating:function(){return this.modelType===Ut.FLOATING||this.modelType===Ut.FLOATING_SINGLE},getType:function(){return this.modelType},toString:function(){var t="UNKNOWN";return this.modelType===Ut.FLOATING?t="Floating":this.modelType===Ut.FLOATING_SINGLE?t="Floating-Single":this.modelType===Ut.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},makePrecise:function(){if("number"==typeof arguments[0]){var t=arguments[0];return r.isNaN(t)||this.modelType===Ut.FLOATING_SINGLE?t:this.modelType===Ut.FIXED?Math.round(t*this.scale)/this.scale:t}if(arguments[0]instanceof f){var e=arguments[0];if(this.modelType===Ut.FLOATING)return null;e.x=this.makePrecise(e.x),e.y=this.makePrecise(e.y)}},getMaximumSignificantDigits:function(){var t=16;return this.modelType===Ut.FLOATING?t=16:this.modelType===Ut.FLOATING_SINGLE?t=6:this.modelType===Ut.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},setScale:function(t){this.scale=Math.abs(t)},interfaces_:function(){return[l,o]},getClass:function(){return Ut}}),Ut.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},e(Vt.prototype,{readResolve:function(){return Vt.nameToTypeMap.get(this.name)},toString:function(){return this.name},interfaces_:function(){return[l]},getClass:function(){return Vt}}),Vt.serialVersionUID=-552860263173159e4,Vt.nameToTypeMap=new Ht,Ut.Type=Vt,Ut.serialVersionUID=0x6bee6404e9a25c00,Ut.FIXED=new Vt("FIXED"),Ut.FLOATING=new Vt("FLOATING"),Ut.FLOATING_SINGLE=new Vt("FLOATING SINGLE"),Ut.maximumPreciseValue=9007199254740992,e(Wt.prototype,{toGeometry:function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new f(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new f(t.getMinX(),t.getMinY()),new f(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new f(t.getMinX(),t.getMinY()),new f(t.getMinX(),t.getMaxY()),new f(t.getMaxX(),t.getMaxY()),new f(t.getMaxX(),t.getMinY()),new f(t.getMinX(),t.getMinY())]),null)},createLineString:function(){if(0===arguments.length)return this.createLineString(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLineString(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(M(arguments[0],I)){var e=arguments[0];return new kt(e,this)}}},createMultiLineString:function(){if(0===arguments.length)return new ft(null,this);if(1===arguments.length){var t=arguments[0];return new ft(t,this)}},buildGeometry:function(t){for(var e=null,n=!1,i=!1,r=t.iterator();r.hasNext();){var o=r.next(),a=o.getClass();null===e&&(e=a),a!==e&&(n=!0),o.isGeometryCollectionOrDerived()&&(i=!0)}if(null===e)return this.createGeometryCollection();if(n||i)return this.createGeometryCollection(Wt.toGeometryArray(t));var s=t.iterator().next();if(t.size()>1){if(s instanceof Mt)return this.createMultiPolygon(Wt.toPolygonArray(t));if(s instanceof kt)return this.createMultiLineString(Wt.toLineStringArray(t));if(s instanceof Lt)return this.createMultiPoint(Wt.toPointArray(t));h.shouldNeverReachHere("Unhandled class: "+s.getClass().getName())}return s},createMultiPointFromCoords:function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)},createPoint:function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof f){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(M(arguments[0],I)){var e=arguments[0];return new Lt(e,this)}}},getCoordinateSequenceFactory:function(){return this.coordinateSequenceFactory},createPolygon:function(){if(0===arguments.length)return new Mt(null,null,this);if(1===arguments.length){if(M(arguments[0],I)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof Et){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];return new Mt(i,r,this)}},getSRID:function(){return this.SRID},createGeometryCollection:function(){if(0===arguments.length)return new ht(null,this);if(1===arguments.length){var t=arguments[0];return new ht(t,this)}},createGeometry:function(t){return new Pt(this).edit(t,{edit:function(){if(2===arguments.length){var t=arguments[0];return this.coordinateSequenceFactory.create(t)}}})},getPrecisionModel:function(){return this.precisionModel},createLinearRing:function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(M(arguments[0],I)){var e=arguments[0];return new Et(e,this)}}},createMultiPolygon:function(){if(0===arguments.length)return new Ot(null,this);if(1===arguments.length){var t=arguments[0];return new Ot(t,this)}},createMultiPoint:function(){if(0===arguments.length)return new Tt(null,this);if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return new Tt(t,this)}if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(M(arguments[0],I)){var n=arguments[0];if(null===n)return this.createMultiPoint(new Array(0).fill(null));for(var i=new Array(n.size()).fill(null),r=0;rn?(this.intLineIndex[t][0]=0,this.intLineIndex[t][1]=1):(this.intLineIndex[t][0]=1,this.intLineIndex[t][1]=0)}},isProper:function(){return this.hasIntersection()&&this._isProper},setPrecisionModel:function(t){this.precisionModel=t},isInteriorIntersection:function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var t=arguments[0],e=0;er?i:r;else{var a=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);0!==(o=i>r?a:s)||t.equals(e)||(o=Math.max(a,s))}return h.isTrue(!(0===o&&!t.equals(e)),"Bad distance calculation"),o},Zt.nonRobustComputeEdgeDistance=function(t,e,n){var i=t.x-e.x,r=t.y-e.y,o=Math.sqrt(i*i+r*r);return h.isTrue(!(0===o&&!t.equals(e)),"Invalid distance calculation"),o},Zt.DONT_INTERSECT=0,Zt.DO_INTERSECT=1,Zt.COLLINEAR=2,Zt.NO_INTERSECTION=0,Zt.POINT_INTERSECTION=1,Zt.COLLINEAR_INTERSECTION=2,c(Xt,Zt),e(Xt.prototype,{isInSegmentEnvelopes:function(t){var e=new k(this.inputLines[0][0],this.inputLines[0][1]),n=new k(this.inputLines[1][0],this.inputLines[1][1]);return e.contains(t)&&n.contains(t)},computeIntersection:function(){if(3!==arguments.length)return Zt.prototype.computeIntersection.apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2];return this._isProper=!1,k.intersects(e,n,t)&&0===Qt.orientationIndex(e,n,t)&&0===Qt.orientationIndex(n,e,t)?(this._isProper=!0,(t.equals(e)||t.equals(n))&&(this._isProper=!1),this.result=Zt.POINT_INTERSECTION,null):void(this.result=Zt.NO_INTERSECTION)},normalizeToMinimum:function(t,e,n,i,r){r.x=this.smallestInAbsValue(t.x,e.x,n.x,i.x),r.y=this.smallestInAbsValue(t.y,e.y,n.y,i.y),t.x-=r.x,t.y-=r.y,e.x-=r.x,e.y-=r.y,n.x-=r.x,n.y-=r.y,i.x-=r.x,i.y-=r.y},safeHCoordinateIntersection:function(t,e,n,i){var r=null;try{r=R.intersection(t,e,n,i)}catch(o){if(!(o instanceof L))throw o;r=Xt.nearestEndpoint(t,e,n,i)}return r},intersection:function(t,e,n,i){var r=this.intersectionWithNormalization(t,e,n,i);return this.isInSegmentEnvelopes(r)||(r=new f(Xt.nearestEndpoint(t,e,n,i))),null!==this.precisionModel&&this.precisionModel.makePrecise(r),r},smallestInAbsValue:function(t,e,n,i){var r=t,o=Math.abs(r);return Math.abs(e)1e-4&&N.out.println("Distance = "+r.distance(o))},intersectionWithNormalization:function(t,e,n,i){var r=new f(t),o=new f(e),a=new f(n),s=new f(i),l=new f;this.normalizeToEnvCentre(r,o,a,s,l);var u=this.safeHCoordinateIntersection(r,o,a,s);return u.x+=l.x,u.y+=l.y,u},computeCollinearIntersection:function(t,e,n,i){var r=k.intersects(t,e,n),o=k.intersects(t,e,i),a=k.intersects(n,i,t),s=k.intersects(n,i,e);return r&&o?(this.intPt[0]=n,this.intPt[1]=i,Zt.COLLINEAR_INTERSECTION):a&&s?(this.intPt[0]=t,this.intPt[1]=e,Zt.COLLINEAR_INTERSECTION):r&&a?(this.intPt[0]=n,this.intPt[1]=t,!n.equals(t)||o||s?Zt.COLLINEAR_INTERSECTION:Zt.POINT_INTERSECTION):r&&s?(this.intPt[0]=n,this.intPt[1]=e,!n.equals(e)||o||a?Zt.COLLINEAR_INTERSECTION:Zt.POINT_INTERSECTION):o&&a?(this.intPt[0]=i,this.intPt[1]=t,!i.equals(t)||r||s?Zt.COLLINEAR_INTERSECTION:Zt.POINT_INTERSECTION):o&&s?(this.intPt[0]=i,this.intPt[1]=e,!i.equals(e)||r||a?Zt.COLLINEAR_INTERSECTION:Zt.POINT_INTERSECTION):Zt.NO_INTERSECTION},normalizeToEnvCentre:function(t,e,n,i,r){var o=t.xe.x?t.x:e.x,l=t.y>e.y?t.y:e.y,u=n.xi.x?n.x:i.x,h=n.y>i.y?n.y:i.y,f=((o>u?o:u)+(sc?a:c)+(l0&&o>0||r<0&&o<0)return Zt.NO_INTERSECTION;var a=Qt.orientationIndex(n,i,t),s=Qt.orientationIndex(n,i,e);return a>0&&s>0||a<0&&s<0?Zt.NO_INTERSECTION:0===r&&0===o&&0===a&&0===s?this.computeCollinearIntersection(t,e,n,i):(0===r||0===o||0===a||0===s?(this._isProper=!1,t.equals2D(n)||t.equals2D(i)?this.intPt[0]=t:e.equals2D(n)||e.equals2D(i)?this.intPt[0]=e:0===r?this.intPt[0]=new f(n):0===o?this.intPt[0]=new f(i):0===a?this.intPt[0]=new f(t):0===s&&(this.intPt[0]=new f(e))):(this._isProper=!0,this.intPt[0]=this.intersection(t,e,n,i)),Zt.POINT_INTERSECTION)},interfaces_:function(){return[]},getClass:function(){return Xt}}),Xt.nearestEndpoint=function(t,e,n,i){var r=t,o=Qt.distancePointLine(t,n,i),a=Qt.distancePointLine(e,n,i);return a0?n>0?-r:r:n>0?r:-r;if(0===e||0===n)return i>0?t>0?r:-r:t>0?-r:r;if(0=i?(t=-t,e=-e,n=-n,i=-i):(r=-r,o=-t,t=-n,n=o,o=-e,e=-i,i=o),0=n))return-r;r=-r,t=-t,n=-n}for(;;){if((i-=(a=Math.floor(n/t))*e)<0)return-r;if(i>e)return r;if(t>(n-=a*t)+n){if(ei+i)return-r;n=t-n,i=e-i,r=-r}if(0===i)return 0===n?0:-r;if(0===n)return r;if((e-=(a=Math.floor(t/n))*i)<0)return r;if(e>i)return-r;if(n>(t-=a*n)+t){if(ie+e)return r;t=n-t,e=i-e,r=-r}if(0===e)return 0===t?0:r;if(0===t)return-r}},e(Kt.prototype,{countSegment:function(t,e){if(t.xi&&(n=e.x,i=t.x),this.p.x>=n&&this.p.x<=i&&(this.isPointOnSegment=!0),null}if(t.y>this.p.y&&e.y<=this.p.y||e.y>this.p.y&&t.y<=this.p.y){var r=t.x-this.p.x,o=t.y-this.p.y,a=e.x-this.p.x,s=e.y-this.p.y,l=Jt.signOfDet2x2(r,o,a,s);if(0===l)return this.isPointOnSegment=!0,null;s0&&this.crossingCount++}},isPointInPolygon:function(){return this.getLocation()!==S.EXTERIOR},getLocation:function(){return this.isPointOnSegment?S.BOUNDARY:this.crossingCount%2==1?S.INTERIOR:S.EXTERIOR},isOnSegment:function(){return this.isPointOnSegment},interfaces_:function(){return[]},getClass:function(){return Kt}}),Kt.locatePointInRing=function(){if(arguments[0]instanceof f&&M(arguments[1],I)){for(var t=arguments[0],e=arguments[1],n=new Kt(t),i=new f,r=new f,o=1;o1||s<0||s>1)&&(r=!0)}}else r=!0;return r?T.min(Qt.distancePointLine(t,n,i),Qt.distancePointLine(e,n,i),Qt.distancePointLine(n,t,e),Qt.distancePointLine(i,t,e)):0},Qt.isPointInRing=function(t,e){return Qt.locatePointInRing(t,e)!==S.EXTERIOR},Qt.computeLength=function(t){var e=t.size();if(e<=1)return 0;var n=0,i=new f;t.getCoordinate(0,i);for(var r=i.x,o=i.y,a=1;an.y&&(n=a,r=o)}var s=r;do{(s-=1)<0&&(s=e)}while(t[s].equals2D(n)&&s!==r);var l=r;do{l=(l+1)%e}while(t[l].equals2D(n)&&l!==r);var u=t[s],c=t[l];if(u.equals2D(n)||c.equals2D(n)||u.equals2D(c))return!1;var d=Qt.computeOrientation(u,n,c);return 0===d?u.x>c.x:d>0},Qt.locatePointInRing=function(t,e){return Kt.locatePointInRing(t,e)},Qt.distancePointLinePerpendicular=function(t,e,n){var i=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),r=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/i;return Math.abs(r)*Math.sqrt(i)},Qt.computeOrientation=function(t,e,n){return Qt.orientationIndex(t,e,n)},Qt.distancePointLine=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(0===e.length)throw new i("Line array must contain at least one vertex");for(var n=t.distance(e[0]),r=0;r=1)return a.distance(l);var d=((s.y-a.y)*(l.x-s.x)-(s.x-a.x)*(l.y-s.y))/u;return Math.abs(d)*Math.sqrt(u)}},Qt.isOnLine=function(t,e){for(var n=new Xt,i=1;i=0&&n>=0||e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof f){var i=arguments[0];return Qt.orientationIndex(this.p0,this.p1,i)}},toGeometry:function(t){return t.createLineString([this.p0,this.p1])},isVertical:function(){return this.p0.x===this.p1.x},equals:function(t){if(!(t instanceof te))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},intersection:function(t){var e=new Xt;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},project:function(){if(arguments[0]instanceof f){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new f(t);var e=this.projectionFactor(t),n=new f;return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof te){var i=arguments[0],r=this.projectionFactor(i.p0),o=this.projectionFactor(i.p1);if(r>=1&&o>=1)return null;if(r<=0&&o<=0)return null;var a=this.project(i.p0);r<0&&(a=this.p0),r>1&&(a=this.p1);var s=this.project(i.p1);return o<0&&(s=this.p0),o>1&&(s=this.p1),new te(a,s)}},normalize:function(){this.p1.compareTo(this.p0)<0&&this.reverse()},angle:function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},getCoordinate:function(t){return 0===t?this.p0:this.p1},distancePerpendicular:function(t){return Qt.distancePointLinePerpendicular(t,this.p0,this.p1)},minY:function(){return Math.min(this.p0.y,this.p1.y)},midPoint:function(){return te.midPoint(this.p0,this.p1)},projectionFactor:function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,i=e*e+n*n;return i<=0?r.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/i},closestPoints:function(t){var e=this.intersection(t);if(null!==e)return[e,e];var n=new Array(2).fill(null),i=r.MAX_VALUE,o=null,a=this.closestPoint(t.p0);i=a.distance(t.p0),n[0]=a,n[1]=t.p0;var s=this.closestPoint(t.p1);(o=s.distance(t.p1))0&&e<1?this.project(t):this.p0.distance(t)1||r.isNaN(e))&&(e=1),e},toString:function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},isHorizontal:function(){return this.p0.y===this.p1.y},distance:function(){if(arguments[0]instanceof te){var t=arguments[0];return Qt.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof f){var e=arguments[0];return Qt.distancePointLine(e,this.p0,this.p1)}},pointAlong:function(t){var e=new f;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},hashCode:function(){var t=java.lang.Double.doubleToLongBits(this.p0.x);t^=31*java.lang.Double.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=java.lang.Double.doubleToLongBits(this.p1.x);return n^=31*java.lang.Double.doubleToLongBits(this.p1.y),e^Math.trunc(n)^Math.trunc(n>>32)},interfaces_:function(){return[o,l]},getClass:function(){return te}}),te.midPoint=function(t,e){return new f((t.x+e.x)/2,(t.y+e.y)/2)},te.serialVersionUID=0x2d2172135f411c00,e(ee.prototype,{isIntersects:function(){return!this.isDisjoint()},isCovers:function(){return(ee.isTrue(this.matrix[S.INTERIOR][S.INTERIOR])||ee.isTrue(this.matrix[S.INTERIOR][S.BOUNDARY])||ee.isTrue(this.matrix[S.BOUNDARY][S.INTERIOR])||ee.isTrue(this.matrix[S.BOUNDARY][S.BOUNDARY]))&&this.matrix[S.EXTERIOR][S.INTERIOR]===ut.FALSE&&this.matrix[S.EXTERIOR][S.BOUNDARY]===ut.FALSE},isCoveredBy:function(){return(ee.isTrue(this.matrix[S.INTERIOR][S.INTERIOR])||ee.isTrue(this.matrix[S.INTERIOR][S.BOUNDARY])||ee.isTrue(this.matrix[S.BOUNDARY][S.INTERIOR])||ee.isTrue(this.matrix[S.BOUNDARY][S.BOUNDARY]))&&this.matrix[S.INTERIOR][S.EXTERIOR]===ut.FALSE&&this.matrix[S.BOUNDARY][S.EXTERIOR]===ut.FALSE},set:function(){if(1===arguments.length)for(var t=arguments[0],e=0;e=0&&e>=0&&this.setAtLeast(t,e,n)},isWithin:function(){return ee.isTrue(this.matrix[S.INTERIOR][S.INTERIOR])&&this.matrix[S.INTERIOR][S.EXTERIOR]===ut.FALSE&&this.matrix[S.BOUNDARY][S.EXTERIOR]===ut.FALSE},isTouches:function(t,e){return t>e?this.isTouches(e,t):(t===ut.A&&e===ut.A||t===ut.L&&e===ut.L||t===ut.L&&e===ut.A||t===ut.P&&e===ut.A||t===ut.P&&e===ut.L)&&this.matrix[S.INTERIOR][S.INTERIOR]===ut.FALSE&&(ee.isTrue(this.matrix[S.INTERIOR][S.BOUNDARY])||ee.isTrue(this.matrix[S.BOUNDARY][S.INTERIOR])||ee.isTrue(this.matrix[S.BOUNDARY][S.BOUNDARY]))},isOverlaps:function(t,e){return t===ut.P&&e===ut.P||t===ut.A&&e===ut.A?ee.isTrue(this.matrix[S.INTERIOR][S.INTERIOR])&&ee.isTrue(this.matrix[S.INTERIOR][S.EXTERIOR])&&ee.isTrue(this.matrix[S.EXTERIOR][S.INTERIOR]):t===ut.L&&e===ut.L&&1===this.matrix[S.INTERIOR][S.INTERIOR]&&ee.isTrue(this.matrix[S.INTERIOR][S.EXTERIOR])&&ee.isTrue(this.matrix[S.EXTERIOR][S.INTERIOR])},isEquals:function(t,e){return t===e&&ee.isTrue(this.matrix[S.INTERIOR][S.INTERIOR])&&this.matrix[S.INTERIOR][S.EXTERIOR]===ut.FALSE&&this.matrix[S.BOUNDARY][S.EXTERIOR]===ut.FALSE&&this.matrix[S.EXTERIOR][S.INTERIOR]===ut.FALSE&&this.matrix[S.EXTERIOR][S.BOUNDARY]===ut.FALSE},toString:function(){for(var t=new E("123456789"),e=0;e<3;e++)for(var n=0;n<3;n++)t.setCharAt(3*e+n,ut.toDimensionSymbol(this.matrix[e][n]));return t.toString()},setAll:function(t){for(var e=0;e<3;e++)for(var n=0;n<3;n++)this.matrix[e][n]=t},get:function(t,e){return this.matrix[t][e]},transpose:function(){var t=this.matrix[1][0];return this.matrix[1][0]=this.matrix[0][1],this.matrix[0][1]=t,t=this.matrix[2][0],this.matrix[2][0]=this.matrix[0][2],this.matrix[0][2]=t,t=this.matrix[2][1],this.matrix[2][1]=this.matrix[1][2],this.matrix[1][2]=t,this},matches:function(t){if(9!==t.length)throw new i("Should be length 9: "+t);for(var e=0;e<3;e++)for(var n=0;n<3;n++)if(!ee.matches(this.matrix[e][n],t.charAt(3*e+n)))return!1;return!0},add:function(t){for(var e=0;e<3;e++)for(var n=0;n<3;n++)this.setAtLeast(e,n,t.get(e,n))},isDisjoint:function(){return this.matrix[S.INTERIOR][S.INTERIOR]===ut.FALSE&&this.matrix[S.INTERIOR][S.BOUNDARY]===ut.FALSE&&this.matrix[S.BOUNDARY][S.INTERIOR]===ut.FALSE&&this.matrix[S.BOUNDARY][S.BOUNDARY]===ut.FALSE},isCrosses:function(t,e){return t===ut.P&&e===ut.L||t===ut.P&&e===ut.A||t===ut.L&&e===ut.A?ee.isTrue(this.matrix[S.INTERIOR][S.INTERIOR])&&ee.isTrue(this.matrix[S.INTERIOR][S.EXTERIOR]):t===ut.L&&e===ut.P||t===ut.A&&e===ut.P||t===ut.A&&e===ut.L?ee.isTrue(this.matrix[S.INTERIOR][S.INTERIOR])&&ee.isTrue(this.matrix[S.EXTERIOR][S.INTERIOR]):t===ut.L&&e===ut.L&&0===this.matrix[S.INTERIOR][S.INTERIOR]},interfaces_:function(){return[a]},getClass:function(){return ee}}),ee.matches=function(){if(Number.isInteger(arguments[0])&&"string"==typeof arguments[1]){var t=arguments[0],e=arguments[1];return e===ut.SYM_DONTCARE||e===ut.SYM_TRUE&&(t>=0||t===ut.TRUE)||e===ut.SYM_FALSE&&t===ut.FALSE||e===ut.SYM_P&&t===ut.P||e===ut.SYM_L&&t===ut.L||e===ut.SYM_A&&t===ut.A}if("string"==typeof arguments[0]&&"string"==typeof arguments[1]){var n=arguments[0],i=arguments[1],r=new ee(n);return r.matches(i)}},ee.isTrue=function(t){return t>=0||t===ut.TRUE};var Xo=Object.freeze({Coordinate:f,CoordinateList:x,Envelope:k,LineSegment:te,GeometryFactory:Wt,Geometry:Y,Point:Lt,LineString:kt,LinearRing:Et,Polygon:Mt,GeometryCollection:ht,MultiPoint:Tt,MultiLineString:ft,MultiPolygon:Ot,Dimension:ut,IntersectionMatrix:ee,PrecisionModel:Ut});e(ne.prototype,{addPoint:function(t){this.ptCount+=1,this.ptCentSum.x+=t.x,this.ptCentSum.y+=t.y},setBasePoint:function(t){null===this.areaBasePt&&(this.areaBasePt=t)},addLineSegments:function(t){for(var e=0,n=0;n0&&this.addPoint(t[0])},addHole:function(t){for(var e=Qt.isCCW(t),n=0;n0)t.x=this.cg3.x/3/this.areasum2,t.y=this.cg3.y/3/this.areasum2;else if(this.totalLength>0)t.x=this.lineCentSum.x/this.totalLength,t.y=this.lineCentSum.y/this.totalLength;else{if(!(this.ptCount>0))return null;t.x=this.ptCentSum.x/this.ptCount,t.y=this.ptCentSum.y/this.ptCount}return t},addShell:function(t){t.length>0&&this.setBasePoint(t[0]);for(var e=!Qt.isCCW(t),n=0;n=this.size())throw new IndexOutOfBoundsException;return this.array_[t]},re.prototype.push=function(t){return this.array_.push(t),t},re.prototype.pop=function(t){if(0===this.array_.length)throw new ie;return this.array_.pop()},re.prototype.peek=function(){if(0===this.array_.length)throw new ie;return this.array_[this.array_.length-1]},re.prototype.empty=function(){return 0===this.array_.length},re.prototype.isEmpty=function(){return this.empty()},re.prototype.search=function(t){return this.array_.indexOf(t)},re.prototype.size=function(){return this.array_.length},re.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e50&&(t=this.reduce(this.inputPts));var e=this.preSort(t),n=this.grahamScan(e),i=this.toCoordinateArray(n);return this.lineOrPolygon(i)},padArray3:function(t){for(var e=new Array(3).fill(null),n=0;ne[2].y&&(e[2]=t[i]),t[i].x+t[i].y>e[3].x+e[3].y&&(e[3]=t[i]),t[i].x>e[4].x&&(e[4]=t[i]),t[i].x-t[i].y>e[5].x-e[5].y&&(e[5]=t[i]),t[i].y0;)e=n.pop();e=n.push(e),e=n.push(t[i])}return e=n.push(t[0]),n},interfaces_:function(){return[]},getClass:function(){return ae}}),ae.extractCoordinates=function(t){var e=new oe;return t.apply(e),e.getCoordinates()},e(se.prototype,{compare:function(t,e){var n=t,i=e;return se.polarCompare(this.origin,n,i)},interfaces_:function(){return[s]},getClass:function(){return se}}),se.polarCompare=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,o=n.x-t.x,a=n.y-t.y,s=Qt.computeOrientation(t,e,n);if(s===Qt.COUNTERCLOCKWISE)return 1;if(s===Qt.CLOCKWISE)return-1;var l=i*i+r*r,u=o*o+a*a;return lu?1:0},ae.RadialComparator=se,e(le.prototype,{transformPoint:function(t,e){return this.factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))},transformPolygon:function(t,e){var n=!0,i=this.transformLinearRing(t.getExteriorRing(),t);null!==i&&i instanceof Et&&!i.isEmpty()||(n=!1);for(var r=new w,o=0;o0&&i<4&&!this.preserveType?this.factory.createLineString(n):this.factory.createLinearRing(n)},interfaces_:function(){return[]},getClass:function(){return le}}),e(ue.prototype,{snapVertices:function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),i=0;i=0&&t.add(o+1,new f(r),!1)}},findSegmentIndexToSnap:function(t,e){for(var n=r.MAX_VALUE,i=-1,o=0;oe&&(e=i)}return e}if(2===arguments.length){var r=arguments[0],o=arguments[1];return Math.min(ce.computeOverlaySnapTolerance(r),ce.computeOverlaySnapTolerance(o))}},ce.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal();return Math.min(e.getHeight(),e.getWidth())*ce.SNAP_PRECISION_FACTOR},ce.snapToSelf=function(t,e,n){return new ce(t).snapToSelf(e,n)},ce.SNAP_PRECISION_FACTOR=1e-9,c(de,le),e(de.prototype,{snapLine:function(t,e){var n=new ue(t,this.snapTolerance);return n.setAllowSnappingToSourceVertices(this.isSelfSnap),n.snapTo(e)},transformCoordinates:function(t,e){var n=t.toCoordinateArray(),i=this.snapLine(n,this.snapPts);return this.factory.getCoordinateSequenceFactory().create(i)},interfaces_:function(){return[]},getClass:function(){return de}}),e(he.prototype,{getCommon:function(){return r.longBitsToDouble(this.commonBits)},add:function(t){var e=r.doubleToLongBits(t);return this.isFirst?(this.commonBits=e,this.commonSignExp=he.signExpBits(this.commonBits),this.isFirst=!1,null):he.signExpBits(e)!==this.commonSignExp?(this.commonBits=0,null):(this.commonMantissaBitsCount=he.numCommonMostSigMantissaBits(this.commonBits,e),void(this.commonBits=he.zeroLowerBits(this.commonBits,64-(12+this.commonMantissaBitsCount))))},toString:function(){if(1===arguments.length){var t=arguments[0],e=r.longBitsToDouble(t),n=Long.toBinaryString(t),i="0000000000000000000000000000000000000000000000000000000000000000"+n,o=i.substring(i.length-64),a=o.substring(0,1)+" "+o.substring(1,12)+"(exp) "+o.substring(12)+" [ "+e+" ]";return a}},interfaces_:function(){return[]},getClass:function(){return he}}),he.getBit=function(t,e){return 0!=(t&1<>52},he.zeroLowerBits=function(t,e){return t&~((1<=0;i--){if(he.getBit(t,i)!==he.getBit(e,i))return n;n++}return 52},e(fe.prototype,{addCommonBits:function(t){var e=new me(this.commonCoord);t.apply(e),t.geometryChanged()},removeCommonBits:function(t){if(0===this.commonCoord.x&&0===this.commonCoord.y)return t;var e=new f(this.commonCoord);e.x=-e.x,e.y=-e.y;var n=new me(e);return t.apply(n),t.geometryChanged(),t},getCommonCoordinate:function(){return this.commonCoord},add:function(t){t.apply(this.ccFilter),this.commonCoord=this.ccFilter.getCommonCoordinate()},interfaces_:function(){return[]},getClass:function(){return fe}}),e(pe.prototype,{filter:function(t){this.commonBitsX.add(t.x),this.commonBitsY.add(t.y)},getCommonCoordinate:function(){return new f(this.commonBitsX.getCommon(),this.commonBitsY.getCommon())},interfaces_:function(){return[F]},getClass:function(){return pe}}),e(me.prototype,{filter:function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,i=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,i)},isDone:function(){return!1},isGeometryChanged:function(){return!0},interfaces_:function(){return[dt]},getClass:function(){return me}}),fe.CommonCoordinateFilter=pe,fe.Translater=me,e(ge.prototype,{next:function(){if(this.atStart)return this.atStart=!1,ge.isAtomic(this.parent)&&this.index++,this.parent;if(null!==this.subcollectionIterator){if(this.subcollectionIterator.hasNext())return this.subcollectionIterator.next();this.subcollectionIterator=null}if(this.index>=this.max)throw new _;var t=this.parent.getGeometryN(this.index++);return t instanceof ht?(this.subcollectionIterator=new ge(t),this.subcollectionIterator.next()):t},remove:function(){throw new UnsupportedOperationException(this.getClass().getName())},hasNext:function(){if(this.atStart)return!0;if(null!==this.subcollectionIterator){if(this.subcollectionIterator.hasNext())return!0;this.subcollectionIterator=null}return!(this.index>=this.max)},interfaces_:function(){return[m]},getClass:function(){return ge}}),ge.isAtomic=function(t){return!(t instanceof ht)},e(ve.prototype,{locateInternal:function(){if(arguments[0]instanceof f&&arguments[1]instanceof Mt){var t=arguments[0],e=arguments[1];if(e.isEmpty())return S.EXTERIOR;var n=e.getExteriorRing(),i=this.locateInPolygonRing(t,n);if(i===S.EXTERIOR)return S.EXTERIOR;if(i===S.BOUNDARY)return S.BOUNDARY;for(var r=0;r0||this.isIn?S.INTERIOR:S.EXTERIOR)},interfaces_:function(){return[]},getClass:function(){return ve}}),e(ye.prototype,{interfaces_:function(){return[]},getClass:function(){return ye}}),ye.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new i("Cannot compute the octant for point ( "+t+", "+e+" )");var n=Math.abs(t),r=Math.abs(e);return t>=0?e>=0?n>=r?0:1:n>=r?7:6:e>=0?n>=r?3:2:n>=r?4:5}if(arguments[0]instanceof f&&arguments[1]instanceof f){var o=arguments[0],a=arguments[1],s=a.x-o.x,l=a.y-o.y;if(0===s&&0===l)throw new i("Cannot compute the octant for two identical points "+o);return ye.octant(s,l)}},e(_e.prototype,{getCoordinates:function(){},size:function(){},getCoordinate:function(t){},isClosed:function(){},setData:function(t){},getData:function(){},interfaces_:function(){return[]},getClass:function(){return _e}}),e(be.prototype,{getCoordinates:function(){return this.pts},size:function(){return this.pts.length},getCoordinate:function(t){return this.pts[t]},isClosed:function(){return this.pts[0].equals(this.pts[this.pts.length-1])},getSegmentOctant:function(t){return t===this.pts.length-1?-1:ye.octant(this.getCoordinate(t),this.getCoordinate(t+1))},setData:function(t){this.data=t},getData:function(){return this.data},toString:function(){return qt.toLineString(new Rt(this.pts))},interfaces_:function(){return[_e]},getClass:function(){return be}}),e(we.prototype,{getBounds:function(){},interfaces_:function(){return[]},getClass:function(){return we}}),e(xe.prototype,{getItem:function(){return this.item},getBounds:function(){return this.bounds},interfaces_:function(){return[we,l]},getClass:function(){return xe}}),e(ke.prototype,{poll:function(){if(this.isEmpty())return null;var t=this.items.get(1);return this.items.set(1,this.items.get(this._size)),this._size-=1,this.reorder(1),t},size:function(){return this._size},reorder:function(t){for(var e=null,n=this.items.get(t);2*t<=this._size&&((e=2*t)!==this._size&&this.items.get(e+1).compareTo(this.items.get(e))<0&&e++,this.items.get(e).compareTo(n)<0);t=e)this.items.set(t,this.items.get(e));this.items.set(t,n)},clear:function(){this._size=0,this.items.clear()},isEmpty:function(){return 0===this._size},add:function(t){this.items.add(null),this._size+=1;var e=this._size;for(this.items.set(0,t);t.compareTo(this.items.get(Math.trunc(e/2)))<0;e/=2)this.items.set(e,this.items.get(Math.trunc(e/2)));this.items.set(e,t)},interfaces_:function(){return[]},getClass:function(){return ke}}),e(Ce.prototype,{visitItem:function(t){},interfaces_:function(){return[]},getClass:function(){return Ce}}),e(Le.prototype,{insert:function(t,e){},remove:function(t,e){},query:function(){},interfaces_:function(){return[]},getClass:function(){return Le}}),e(Se.prototype,{getLevel:function(){return this.level},size:function(){return this.childBoundables.size()},getChildBoundables:function(){return this.childBoundables},addChildBoundable:function(t){h.isTrue(null===this.bounds),this.childBoundables.add(t)},isEmpty:function(){return this.childBoundables.isEmpty()},getBounds:function(){return null===this.bounds&&(this.bounds=this.computeBounds()),this.bounds},interfaces_:function(){return[we,l]},getClass:function(){return Se}}),Se.serialVersionUID=0x5a1e55ec41369800;var Jo={reverseOrder:function(){return{compare:function(t,e){return e.compareTo(t)}}},min:function(t){return Jo.sort(t),t.get(0)},sort:function(t,e){var n=t.toArray();e?lt.sort(n,e):lt.sort(n);for(var i=t.iterator(),r=0,o=n.length;rMe.area(this.boundable2)?(this.expand(this.boundable1,this.boundable2,t,e),null):(this.expand(this.boundable2,this.boundable1,t,e),null);if(n)return this.expand(this.boundable1,this.boundable2,t,e),null;if(r)return this.expand(this.boundable2,this.boundable1,t,e),null;throw new i("neither boundable is composite")},isLeaves:function(){return!(Me.isComposite(this.boundable1)||Me.isComposite(this.boundable2))},compareTo:function(t){var e=t;return this._distancee._distance?1:0},expand:function(t,e,n,i){for(var r=t.getChildBoundables().iterator();r.hasNext();){var o=new Me(r.next(),e,this.itemDistance);o.getDistance()-2),i.getLevel()===n)return r.add(i),null;for(var o=i.getChildBoundables().iterator();o.hasNext();){var a=o.next();a instanceof Se?this.boundablesAtLevel(n,a,r):(h.isTrue(a instanceof xe),-1===n&&r.add(a))}return null}},query:function(){if(1===arguments.length){var t=arguments[0];this.build();var e=new w;return this.isEmpty()||this.getIntersectsOp().intersects(this.root.getBounds(),t)&&this.query(t,this.root,e),e}if(2===arguments.length){var n=arguments[0],i=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this.root.getBounds(),n)&&this.query(n,this.root,i)}else if(3===arguments.length)if(M(arguments[2],Ce)&&arguments[0]instanceof Object&&arguments[1]instanceof Se)for(var r=arguments[0],o=arguments[1],a=arguments[2],s=o.getChildBoundables(),l=0;le&&(e=r)}}return e+1}},createParentBoundables:function(t,e){h.isTrue(!t.isEmpty());var n=new w;n.add(this.createNode(e));var i=new w(t);Jo.sort(i,this.getComparator());for(var r=i.iterator();r.hasNext();){var o=r.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(o)}return n},isEmpty:function(){return this.built?this.root.isEmpty():this.itemBoundables.isEmpty()},interfaces_:function(){return[l]},getClass:function(){return Te}}),Te.compareDoubles=function(t,e){return t>e?1:t0);for(var n=new w,i=0;i0;){var d=c.poll(),h=d.getDistance();if(h>=l)break;d.isLeaves()?(l=h,u=d):d.expandToQueue(c,l)}return[u.getBoundable(0).getItem(),u.getBoundable(1).getItem()]}}else if(3===arguments.length){var f=arguments[0],p=arguments[1],m=arguments[2],g=new xe(f,p);return e=new Me(this.getRoot(),g,m),this.nearestNeighbour(e)[0]}},interfaces_:function(){return[Le,l]},getClass:function(){return Oe}}),Oe.centreX=function(t){return Oe.avg(t.getMinX(),t.getMaxX())},Oe.avg=function(t,e){return(t+e)/2},Oe.centreY=function(t){return Oe.avg(t.getMinY(),t.getMaxY())},c(Pe,Se),e(Pe.prototype,{computeBounds:function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();null===t?t=new k(n.getBounds()):t.expandToInclude(n.getBounds())}return t},interfaces_:function(){return[]},getClass:function(){return Pe}}),Oe.STRtreeNode=Pe,Oe.serialVersionUID=0x39920f7d5f261e0,Oe.xComparator={interfaces_:function(){return[s]},compare:function(t,e){return Te.compareDoubles(Oe.centreX(t.getBounds()),Oe.centreX(e.getBounds()))}},Oe.yComparator={interfaces_:function(){return[s]},compare:function(t,e){return Te.compareDoubles(Oe.centreY(t.getBounds()),Oe.centreY(e.getBounds()))}},Oe.intersectsOp={interfaces_:function(){return[IntersectsOp]},intersects:function(t,e){return t.intersects(e)}},Oe.DEFAULT_NODE_CAPACITY=10,e(De.prototype,{interfaces_:function(){return[]},getClass:function(){return De}}),De.relativeSign=function(t,e){return te?1:0},De.compare=function(t,e,n){if(e.equals2D(n))return 0;var i=De.relativeSign(e.x,n.x),r=De.relativeSign(e.y,n.y);switch(t){case 0:return De.compareValue(i,r);case 1:return De.compareValue(r,i);case 2:return De.compareValue(r,-i);case 3:return De.compareValue(-i,r);case 4:return De.compareValue(-i,-r);case 5:return De.compareValue(-r,-i);case 6:return De.compareValue(-r,i);case 7:return De.compareValue(i,-r)}return h.shouldNeverReachHere("invalid octant value"),0},De.compareValue=function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0},e(Ae.prototype,{getCoordinate:function(){return this.coord},print:function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)},compareTo:function(t){var e=t;return this.segmentIndexe.segmentIndex?1:this.coord.equals2D(e.coord)?0:De.compare(this.segmentOctant,this.coord,e.coord)},isEndPoint:function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t},isInterior:function(){return this._isInterior},interfaces_:function(){return[o]},getClass:function(){return Ae}}),e(Ie.prototype,{getSplitCoordinates:function(){var t=new x;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next();this.addEdgeCoordinates(n,i,t),n=i}return t.toCoordinateArray()},addCollapsedNodes:function(){var t=new w;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this.edge.getCoordinate(n),n)}},print:function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},findCollapsesFromExistingVertices:function(t){for(var e=0;ee?t:e)?3:n},Fe.isInHalfPlane=function(t,e){return e===Fe.SE?t===Fe.SE||t===Fe.SW:t===e||t===e+1},Fe.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new i("Cannot compute the quadrant for point ( "+t+", "+e+" )");return t>=0?e>=0?Fe.NE:Fe.SE:e>=0?Fe.NW:Fe.SW}if(arguments[0]instanceof f&&arguments[1]instanceof f){var n=arguments[0],r=arguments[1];if(r.x===n.x&&r.y===n.y)throw new i("Cannot compute the quadrant for two identical points "+n);return r.x>=n.x?r.y>=n.y?Fe.NE:Fe.SE:r.y>=n.y?Fe.NW:Fe.SW}},Fe.NE=0,Fe.NW=1,Fe.SW=2,Fe.SE=3,e(Be.prototype,{interfaces_:function(){return[]},getClass:function(){return Be}}),Be.getChainStartIndices=function(t){var e=0,n=new w;n.add(new O(e));do{var i=Be.findChainEnd(t,e);n.add(new O(i)),e=i}while(e=t.length-1)return t.length-1;for(var i=Fe.quadrant(t[n],t[n+1]),r=e+1;rn.getId()&&(n.computeOverlaps(r,t),this.nOverlaps++),this.segInt.isDone())return null}},interfaces_:function(){return[]},getClass:function(){return Ue}}),c(Ve,ze),e(Ve.prototype,{overlap:function(){if(4!==arguments.length)return ze.prototype.overlap.apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3],r=t.getContext(),o=n.getContext();this.si.processIntersections(r,e,o,i)},interfaces_:function(){return[]},getClass:function(){return Ve}}),Ue.SegmentOverlapAction=Ve,c(We,u),e(We.prototype,{getCoordinate:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return We}}),We.msgWithCoord=function(t,e){return null!==e?t+" [ "+e+" ]":t},e(Ge.prototype,{processIntersections:function(t,e,n,i){},isDone:function(){},interfaces_:function(){return[]},getClass:function(){return Ge}}),e(qe.prototype,{getInteriorIntersection:function(){return this.interiorIntersection},setCheckEndSegmentsOnly:function(t){this.isCheckEndSegmentsOnly=t},getIntersectionSegments:function(){return this.intSegments},count:function(){return this.intersectionCount},getIntersections:function(){return this.intersections},setFindAllIntersections:function(t){this.findAllIntersections=t},setKeepIntersections:function(t){this.keepIntersections=t},processIntersections:function(t,e,n,i){if(!this.findAllIntersections&&this.hasIntersection())return null;if(t===n&&e===i)return null;if(this.isCheckEndSegmentsOnly&&!this.isEndSegment(t,e)&&!this.isEndSegment(n,i))return null;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[i],s=n.getCoordinates()[i+1];this.li.computeIntersection(r,o,a,s),this.li.hasIntersection()&&this.li.isInteriorIntersection()&&(this.intSegments=new Array(4).fill(null),this.intSegments[0]=r,this.intSegments[1]=o,this.intSegments[2]=a,this.intSegments[3]=s,this.interiorIntersection=this.li.getIntersection(0),this.keepIntersections&&this.intersections.add(this.interiorIntersection),this.intersectionCount++)},isEndSegment:function(t,e){return 0===e||e>=t.size()-2},hasIntersection:function(){return null!==this.interiorIntersection},isDone:function(){return!this.findAllIntersections&&null!==this.interiorIntersection},interfaces_:function(){return[Ge]},getClass:function(){return qe}}),qe.createAllIntersectionsFinder=function(t){var e=new qe(t);return e.setFindAllIntersections(!0),e},qe.createAnyIntersectionFinder=function(t){return new qe(t)},qe.createIntersectionCounter=function(t){var e=new qe(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e},e(Ze.prototype,{execute:function(){return null!==this.segInt?null:void this.checkInteriorIntersections()},getIntersections:function(){return this.segInt.getIntersections()},isValid:function(){return this.execute(),this._isValid},setFindAllIntersections:function(t){this.findAllIntersections=t},checkInteriorIntersections:function(){this._isValid=!0,this.segInt=new qe(this.li),this.segInt.setFindAllIntersections(this.findAllIntersections);var t=new Ue;if(t.setSegmentIntersector(this.segInt),t.computeNodes(this.segStrings),this.segInt.hasIntersection())return this._isValid=!1,null},checkValid:function(){if(this.execute(),!this._isValid)throw new We(this.getErrorMessage(),this.segInt.getInteriorIntersection())},getErrorMessage:function(){if(this._isValid)return"no intersections found";var t=this.segInt.getIntersectionSegments();return"found non-noded intersection between "+qt.toLineString(t[0],t[1])+" and "+qt.toLineString(t[2],t[3])},interfaces_:function(){return[]},getClass:function(){return Ze}}),Ze.computeIntersections=function(t){var e=new Ze(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()},e(Xe.prototype,{checkValid:function(){this.nv.checkValid()},interfaces_:function(){return[]},getClass:function(){return Xe}}),Xe.toSegmentStrings=function(t){for(var e=new w,n=t.iterator();n.hasNext();){var i=n.next();e.add(new be(i.getCoordinates(),i))}return e},Xe.checkValid=function(t){new Xe(t).checkValid()},e(Je.prototype,{map:function(t){for(var e=new w,n=0;nthis.location.length){var e=new Array(3).fill(null);e[Ke.ON]=this.location[Ke.ON],e[Ke.LEFT]=S.NONE,e[Ke.RIGHT]=S.NONE,this.location=e}for(var n=0;n1&&t.append(S.toLocationSymbol(this.location[Ke.LEFT])),t.append(S.toLocationSymbol(this.location[Ke.ON])),this.location.length>1&&t.append(S.toLocationSymbol(this.location[Ke.RIGHT])),t.toString()},setLocations:function(t,e,n){this.location[Ke.ON]=t,this.location[Ke.LEFT]=e,this.location[Ke.RIGHT]=n},get:function(t){return t1},isAnyNull:function(){for(var t=0;tthis.maxNodeDegree&&(this.maxNodeDegree=e),t=this.getNext(t)}while(t!==this.startDe);this.maxNodeDegree*=2},addPoints:function(t,e,n){var i=t.getCoordinates();if(e){var r=1;n&&(r=0);for(var o=r;o=0;o--)this.pts.add(i[o])},isHole:function(){return this._isHole},setInResult:function(){var t=this.startDe;do{t.getEdge().setInResult(!0),t=t.getNext()}while(t!==this.startDe)},containsPoint:function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!Qt.isPointInRing(t,e.getCoordinates()))return!1;for(var n=this.holes.iterator();n.hasNext();)if(n.next().containsPoint(t))return!1;return!0},addHole:function(t){this.holes.add(t)},isShell:function(){return null===this.shell},getLabel:function(){return this.label},getEdges:function(){return this.edges},getMaxNodeDegree:function(){return this.maxNodeDegree<0&&this.computeMaxNodeDegree(),this.maxNodeDegree},getShell:function(){return this.shell},mergeLabel:function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=e.getLocation(n,Ke.RIGHT);if(i===S.NONE)return null;if(this.label.getLocation(n)===S.NONE)return this.label.setLocation(n,i),null}},setShell:function(t){this.shell=t,null!==t&&t.addHole(this)},toPolygon:function(t){for(var e=new Array(this.holes.size()).fill(null),n=0;n=2,"found partial label"),this.computeIM(t)},isInResult:function(){return this._isInResult},isVisited:function(){return this._isVisited},interfaces_:function(){return[]},getClass:function(){return on}}),c(an,on),e(an.prototype,{isIncidentEdgeInResult:function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();)if(t.next().getEdge().isInResult())return!0;return!1},isIsolated:function(){return 1===this.label.getGeometryCount()},getCoordinate:function(){return this.coord},print:function(t){t.println("node "+this.coord+" lbl: "+this.label)},computeIM:function(t){},computeMergedLocation:function(t,e){var n=S.NONE;if(n=this.label.getLocation(e),!t.isNull(e)){var i=t.getLocation(e);n!==S.BOUNDARY&&(n=i)}return n},setLabel:function(){if(2!==arguments.length)return on.prototype.setLabel.apply(this,arguments);var t=arguments[0],e=arguments[1];null===this.label?this.label=new tn(t,e):this.label.setLocation(t,e)},getEdges:function(){return this.edges},mergeLabel:function(){if(arguments[0]instanceof an){var t=arguments[0];this.mergeLabel(t.label)}else if(arguments[0]instanceof tn)for(var e=arguments[0],n=0;n<2;n++){var i=this.computeMergedLocation(e,n),r=this.label.getLocation(n);r===S.NONE&&this.label.setLocation(n,i)}},add:function(t){this.edges.insert(t),t.setNode(this)},setLabelBoundary:function(t){if(null===this.label)return null;var e=S.NONE;null!==this.label&&(e=this.label.getLocation(t));var n=null;switch(e){case S.BOUNDARY:n=S.INTERIOR;break;case S.INTERIOR:n=S.BOUNDARY;break;default:n=S.BOUNDARY}this.label.setLocation(t,n)},interfaces_:function(){return[]},getClass:function(){return an}}),e(sn.prototype,{find:function(t){return this.nodeMap.get(t)},addNode:function(){if(arguments[0]instanceof f){var t=arguments[0];return null===(e=this.nodeMap.get(t))&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof an){var e,n=arguments[0];return null===(e=this.nodeMap.get(n.getCoordinate()))?(this.nodeMap.put(n.getCoordinate(),n),n):(e.mergeLabel(n),e)}},print:function(t){for(var e=this.iterator();e.hasNext();)e.next().print(t)},iterator:function(){return this.nodeMap.values().iterator()},values:function(){return this.nodeMap.values()},getBoundaryNodes:function(t){for(var e=new w,n=this.iterator();n.hasNext();){var i=n.next();i.getLabel().getLocation(t)===S.BOUNDARY&&e.add(i)}return e},add:function(t){var e=t.getCoordinate();this.addNode(e).add(t)},interfaces_:function(){return[]},getClass:function(){return sn}}),e(ln.prototype,{compareDirection:function(t){return this.dx===t.dx&&this.dy===t.dy?0:this.quadrant>t.quadrant?1:this.quadrant2){o.linkDirectedEdgesForMinimalEdgeRings();var a=o.buildMinimalRings(),s=this.findShell(a);null!==s?(this.placePolygonHoles(s,a),e.add(s)):n.addAll(a)}else i.add(o)}return i},containsPoint:function(t){for(var e=this.shellList.iterator();e.hasNext();)if(e.next().containsPoint(t))return!0;return!1},buildMaximalEdgeRings:function(t){for(var e=new w,n=t.iterator();n.hasNext();){var i=n.next();if(i.isInResult()&&i.getLabel().isArea()&&null===i.getEdgeRing()){var r=new rn(i,this.geometryFactory);e.add(r),r.setInResult()}}return e},placePolygonHoles:function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();i.isHole()&&i.setShell(t)}},getPolygons:function(){return this.computePolygons(this.shellList)},findEdgeRingContaining:function(t,e){for(var n=t.getLinearRing(),i=n.getEnvelopeInternal(),r=n.getCoordinateN(0),o=null,a=null,s=e.iterator();s.hasNext();){var l=s.next(),u=l.getLinearRing(),c=u.getEnvelopeInternal();null!==o&&(a=o.getLinearRing().getEnvelopeInternal());var d=!1;c.contains(i)&&Qt.isPointInRing(r,u.getCoordinates())&&(d=!0),d&&(null===o||a.contains(c))&&(o=l)}return o},findShell:function(t){for(var e=0,n=null,i=t.iterator();i.hasNext();){var r=i.next();r.isHole()||(n=r,e++)}return h.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n},add:function(){if(1===arguments.length){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0],n=arguments[1];dn.linkResultDirectedEdges(n);var i=this.buildMaximalEdgeRings(e),r=new w,o=this.buildMinimalEdgeRings(i,this.shellList,r);this.sortShellsAndHoles(o,this.shellList,r),this.placeFreeHoles(this.shellList,r)}},interfaces_:function(){return[]},getClass:function(){return hn}}),e(fn.prototype,{collectLines:function(t){for(var e=this.op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next();this.collectLineEdge(n,t,this.lineEdgesList),this.collectBoundaryTouchEdge(n,t,this.lineEdgesList)}},labelIsolatedLine:function(t,e){var n=this.ptLocator.locate(t.getCoordinate(),this.op.getArgGeometry(e));t.getLabel().setLocation(e,n)},build:function(t){return this.findCoveredLineEdges(),this.collectLines(t),this.buildLines(t),this.resultLineList},collectLineEdge:function(t,e,n){var i=t.getLabel(),r=t.getEdge();t.isLineEdge()&&(t.isVisited()||!Vn.isResultOfOp(i,e)||r.isCovered()||(n.add(r),t.setVisitedEdge(!0)))},findCoveredLineEdges:function(){for(var t=this.op.getGraph().getNodes().iterator();t.hasNext();)t.next().getEdges().findCoveredLineEdges();for(var e=this.op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next(),i=n.getEdge();if(n.isLineEdge()&&!i.isCoveredSet()){var r=this.op.isCoveredByA(n.getCoordinate());i.setCovered(r)}}},labelIsolatedLines:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),i=n.getLabel();n.isIsolated()&&(i.isNull(0)?this.labelIsolatedLine(n,0):this.labelIsolatedLine(n,1))}},buildLines:function(t){for(var e=this.lineEdgesList.iterator();e.hasNext();){var n=e.next(),i=(n.getLabel(),this.geometryFactory.createLineString(n.getCoordinates()));this.resultLineList.add(i),n.setInResult(!0)}},collectBoundaryTouchEdge:function(t,e,n){var i=t.getLabel();return t.isLineEdge()||t.isVisited()||t.isInteriorAreaEdge()||t.getEdge().isInResult()?null:(h.isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(Vn.isResultOfOp(i,e)&&e===Vn.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))},interfaces_:function(){return[]},getClass:function(){return fn}}),e(pn.prototype,{filterCoveredNodeToPoint:function(t){var e=t.getCoordinate();if(!this.op.isCoveredByLA(e)){var n=this.geometryFactory.createPoint(e);this.resultPointList.add(n)}},extractNonCoveredResultNodes:function(t){for(var e=this.op.getGraph().getNodes().iterator();e.hasNext();){var n=e.next();if(!(n.isInResult()||n.isIncidentEdgeInResult()||0!==n.getEdges().getDegree()&&t!==Vn.INTERSECTION)){var i=n.getLabel();Vn.isResultOfOp(i,t)&&this.filterCoveredNodeToPoint(n)}}},build:function(t){return this.extractNonCoveredResultNodes(t),this.resultPointList},interfaces_:function(){return[]},getClass:function(){return pn}}),e(mn.prototype,{locate:function(t){},interfaces_:function(){return[]},getClass:function(){return mn}}),e(gn.prototype,{locate:function(t){return gn.locate(t,this.geom)},interfaces_:function(){return[mn]},getClass:function(){return gn}}),gn.isPointInRing=function(t,e){return!!e.getEnvelopeInternal().intersects(t)&&Qt.isPointInRing(t,e.getCoordinates())},gn.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var n=e.getExteriorRing();if(!gn.isPointInRing(t,n))return!1;for(var i=0;i=0;n--){var i=this.edgeList.get(n),r=i.getSym();null===e&&(e=r),null!==t&&r.setNext(t),t=i}e.setNext(t)},computeDepths:function(){if(1===arguments.length){var t=arguments[0],e=this.findIndex(t),n=(t.getLabel(),t.getDepth(Ke.LEFT)),i=t.getDepth(Ke.RIGHT),r=this.computeDepths(e+1,this.edgeList.size(),n),o=this.computeDepths(0,e,r);if(o!==i)throw new We("depth mismatch at "+t.getCoordinate())}else if(3===arguments.length){for(var a=arguments[0],s=arguments[1],l=arguments[2],u=l,c=a;c=0;r--){var o=this.resultAreaEdgeList.get(r),a=o.getSym();switch(null===e&&o.getEdgeRing()===t&&(e=o),i){case this.SCANNING_FOR_INCOMING:if(a.getEdgeRing()!==t)continue;n=a,i=this.LINKING_TO_OUTGOING;break;case this.LINKING_TO_OUTGOING:if(o.getEdgeRing()!==t)continue;n.setNextMin(o),i=this.SCANNING_FOR_INCOMING}}i===this.LINKING_TO_OUTGOING&&(h.isTrue(null!==e,"found null for first outgoing dirEdge"),h.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))},getOutgoingDegree:function(){if(0===arguments.length){for(var t=0,e=this.iterator();e.hasNext();)e.next().isInResult()&&t++;return t}if(1===arguments.length){var n=arguments[0];for(t=0,e=this.iterator();e.hasNext();)e.next().getEdgeRing()===n&&t++;return t}},getLabel:function(){return this.label},findCoveredLineEdges:function(){for(var t=S.NONE,e=this.iterator();e.hasNext();){var n=(r=e.next()).getSym();if(!r.isLineEdge()){if(r.isInResult()){t=S.INTERIOR;break}if(n.isInResult()){t=S.EXTERIOR;break}}}if(t===S.NONE)return null;var i=t;for(e=this.iterator();e.hasNext();){var r;n=(r=e.next()).getSym(),r.isLineEdge()?r.getEdge().setCovered(i===S.INTERIOR):(r.isInResult()&&(i=S.EXTERIOR),n.isInResult()&&(i=S.INTERIOR))}},computeLabelling:function(t){vn.prototype.computeLabelling.call(this,t),this.label=new tn(S.NONE);for(var e=this.iterator();e.hasNext();)for(var n=e.next().getEdge().getLabel(),i=0;i<2;i++){var r=n.getLocation(i);r!==S.INTERIOR&&r!==S.BOUNDARY||this.label.setLocation(i,S.INTERIOR)}},interfaces_:function(){return[]},getClass:function(){return yn}}),c(_n,cn),e(_n.prototype,{createNode:function(t){return new an(t,new yn)},interfaces_:function(){return[]},getClass:function(){return _n}}),e(bn.prototype,{computeIntersections:function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},interfaces_:function(){return[]},getClass:function(){return bn}}),e(wn.prototype,{isDelete:function(){return this.eventType===wn.DELETE},setDeleteEventIndex:function(t){this.deleteEventIndex=t},getObject:function(){return this.obj},compareTo:function(t){var e=t;return this.xValuee.xValue?1:this.eventTypee.eventType?1:0},getInsertEvent:function(){return this.insertEvent},isInsert:function(){return this.eventType===wn.INSERT},isSameLabel:function(t){return null!==this.label&&this.label===t.label},getDeleteEventIndex:function(){return this.deleteEventIndex},interfaces_:function(){return[o]},getClass:function(){return wn}}),wn.INSERT=1,wn.DELETE=2,e(xn.prototype,{interfaces_:function(){return[]},getClass:function(){return xn}}),e(kn.prototype,{isTrivialIntersection:function(t,e,n,i){if(t===n&&1===this.li.getIntersectionNum()){if(kn.isAdjacentSegments(e,i))return!0;if(t.isClosed()){var r=t.getNumPoints()-1;if(0===e&&i===r||0===i&&e===r)return!0}}return!1},getProperIntersectionPoint:function(){return this.properIntersectionPoint},setIsDoneIfProperInt:function(t){this.isDoneWhenProperInt=t},hasProperInteriorIntersection:function(){return this.hasProperInterior},isBoundaryPointInternal:function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next().getCoordinate();if(t.isIntersection(i))return!0}return!1},hasProperIntersection:function(){return this.hasProper},hasIntersection:function(){return this._hasIntersection},isDone:function(){return this._isDone},isBoundaryPoint:function(t,e){return!(null===e||!this.isBoundaryPointInternal(t,e[0])&&!this.isBoundaryPointInternal(t,e[1]))},setBoundaryNodes:function(t,e){this.bdyNodes=new Array(2).fill(null),this.bdyNodes[0]=t,this.bdyNodes[1]=e},addIntersections:function(t,e,n,i){if(t===n&&e===i)return null;this.numTests++;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[i],s=n.getCoordinates()[i+1];this.li.computeIntersection(r,o,a,s),this.li.hasIntersection()&&(this.recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this.numIntersections++,this.isTrivialIntersection(t,e,n,i)||(this._hasIntersection=!0,!this.includeProper&&this.li.isProper()||(t.addIntersections(this.li,e,0),n.addIntersections(this.li,i,1)),this.li.isProper()&&(this.properIntersectionPoint=this.li.getIntersection(0).copy(),this.hasProper=!0,this.isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this.li,this.bdyNodes)||(this.hasProperInterior=!0))))},interfaces_:function(){return[]},getClass:function(){return kn}}),kn.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)},c(Cn,xn),e(Cn.prototype,{prepareEvents:function(){Jo.sort(this.events);for(var t=0;te||this.maxo?1:0},interfaces_:function(){return[s]},getClass:function(){return Sn}}),Ln.NodeComparator=Sn,c(Mn,Ln),e(Mn.prototype,{query:function(t,e,n){return this.intersects(t,e)?void n.visitItem(this.item):null},interfaces_:function(){return[]},getClass:function(){return Mn}}),c(Tn,Ln),e(Tn.prototype,{buildExtent:function(t,e){this.min=Math.min(t.min,e.min),this.max=Math.max(t.max,e.max)},query:function(t,e,n){return this.intersects(t,e)?(null!==this.node1&&this.node1.query(t,e,n),void(null!==this.node2&&this.node2.query(t,e,n))):null},interfaces_:function(){return[]},getClass:function(){return Tn}}),e(En.prototype,{buildTree:function(){Jo.sort(this.leaves,new IntervalRTreeNode.NodeComparator);for(var t=this.leaves,e=null,n=new w;;){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}},insert:function(t,e,n){if(null!==this.root)throw new IllegalStateException("Index cannot be added to once it has been queried");this.leaves.add(new Mn(t,e,n))},query:function(t,e,n){this.init(),this.root.query(t,e,n)},buildRoot:function(){return null!==this.root?null:void(this.root=this.buildTree())},printNode:function(t){N.out.println(qt.toLineString(new f(t.min,this.level),new f(t.max,this.level)))},init:function(){return null!==this.root?null:void this.buildRoot()},buildLevel:function(t,e){this.level++,e.clear();for(var n=0;n0||!e.coord.equals2D(i);r||n--;var o=new Array(n).fill(null),a=0;o[a++]=new f(t.coord);for(var s=t.segmentIndex+1;s<=e.segmentIndex;s++)o[a++]=this.edge.pts[s];return r&&(o[a]=e.coord),new Fn(o,new tn(this.edge.label))},add:function(t,e,n){var i=new Nn(t,e,n),r=this.nodeMap.get(i);return null!==r?r:(this.nodeMap.put(i,i),i)},isIntersection:function(t){for(var e=this.iterator();e.hasNext();)if(e.next().coord.equals(t))return!0;return!1},interfaces_:function(){return[]},getClass:function(){return Rn}}),e(jn.prototype,{getChainStartIndices:function(t){var e=0,n=new w;n.add(new O(e));do{var i=this.findChainEnd(t,e);n.add(new O(i)),e=i}while(en?e:n},getMinX:function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return ee&&(i=1),this.depth[t][n]=i}}},getDelta:function(t){return this.depth[t][Ke.RIGHT]-this.depth[t][Ke.LEFT]},getLocation:function(t,e){return this.depth[t][e]<=0?S.EXTERIOR:S.INTERIOR},toString:function(){return"A: "+this.depth[0][1]+","+this.depth[0][2]+" B: "+this.depth[1][1]+","+this.depth[1][2]},add:function(){if(1===arguments.length)for(var t=arguments[0],e=0;e<2;e++)for(var n=1;n<3;n++){var i=t.getLocation(e,n);i!==S.EXTERIOR&&i!==S.INTERIOR||(this.isNull(e,n)?this.depth[e][n]=Yn.depthAtLocation(i):this.depth[e][n]+=Yn.depthAtLocation(i))}else if(3===arguments.length){var r=arguments[0],o=arguments[1],a=arguments[2];a===S.INTERIOR&&this.depth[r][o]++}},interfaces_:function(){return[]},getClass:function(){return Yn}}),Yn.depthAtLocation=function(t){return t===S.EXTERIOR?0:t===S.INTERIOR?1:Yn.NULL_VALUE},Yn.NULL_VALUE=-1,c(Fn,on),e(Fn.prototype,{getDepth:function(){return this.depth},getCollapsedEdge:function(){var t=new Array(2).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new Fn(t,tn.toLineLabel(this.label))},isIsolated:function(){return this._isIsolated},getCoordinates:function(){return this.pts},setIsolated:function(t){this._isIsolated=t},setName:function(t){this.name=t},equals:function(t){if(!(t instanceof Fn))return!1;var e=t;if(this.pts.length!==e.pts.length)return!1;for(var n=!0,i=!0,r=this.pts.length,o=0;o0?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}},print:function(t){t.print("edge "+this.name+": "),t.print("LINESTRING (");for(var e=0;e0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(") "+this.label+" "+this.depthDelta)},computeIM:function(t){Fn.updateIM(this.label,t)},isCollapsed:function(){return!!this.label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},isClosed:function(){return this.pts[0].equals(this.pts[this.pts.length-1])},getMaximumSegmentIndex:function(){return this.pts.length-1},getDepthDelta:function(){return this.depthDelta},getNumPoints:function(){return this.pts.length},printReverse:function(t){t.print("edge "+this.name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")},getMonotoneChainEdge:function(){return null===this.mce&&(this.mce=new zn(this)),this.mce},getEnvelope:function(){if(null===this.env){this.env=new k;for(var t=0;t0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(") "+this.label+" "+this.depthDelta),t.toString()},isPointwiseEqual:function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;e=2,"found LineString with single point"),this.insertBoundaryPoint(this.argIndex,e[0]),this.insertBoundaryPoint(this.argIndex,e[e.length-1])},getInvalidPoint:function(){return this.invalidPoint},getBoundaryPoints:function(){for(var t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null),n=0,i=t.iterator();i.hasNext();){var r=i.next();e[n++]=r.getCoordinate().copy()}return e},getBoundaryNodes:function(){return null===this.boundaryNodes&&(this.boundaryNodes=this.nodes.getBoundaryNodes(this.argIndex)),this.boundaryNodes},addSelfIntersectionNode:function(t,e,n){return this.isBoundaryNode(t,e)?null:void(n===S.BOUNDARY&&this.useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n))},addPolygonRing:function(t,e,n){if(t.isEmpty())return null;var i=W.removeRepeatedPoints(t.getCoordinates());if(i.length<4)return this._hasTooFewPoints=!0,this.invalidPoint=i[0],null;var r=e,o=n;Qt.isCCW(i)&&(r=n,o=e);var a=new Fn(i,new tn(this.argIndex,S.BOUNDARY,r,o));this.lineEdgeMap.put(t,a),this.insertEdge(a),this.insertPoint(this.argIndex,i[0],S.BOUNDARY)},insertPoint:function(t,e,n){var i=this.nodes.addNode(e),r=i.getLabel();null===r?i.label=new tn(t,n):r.setLocation(t,n)},createEdgeSetIntersector:function(){return new Cn},addSelfIntersectionNodes:function(t){for(var e=this.edges.iterator();e.hasNext();)for(var n=e.next(),i=n.getLabel().getLocation(t),r=n.eiList.iterator();r.hasNext();){var o=r.next();this.addSelfIntersectionNode(t,o.coord,i)}},add:function(){if(1!==arguments.length)return dn.prototype.add.apply(this,arguments);var t=arguments[0];if(t.isEmpty())return null;if(t instanceof Ot&&(this.useBoundaryDeterminationRule=!1),t instanceof Mt)this.addPolygon(t);else if(t instanceof kt)this.addLineString(t);else if(t instanceof Lt)this.addPoint(t);else if(t instanceof Tt)this.addCollection(t);else if(t instanceof ft)this.addCollection(t);else if(t instanceof Ot)this.addCollection(t);else{if(!(t instanceof ht))throw new UnsupportedOperationException(t.getClass().getName());this.addCollection(t)}},addCollection:function(t){for(var e=0;e50?(null===this.areaPtLocator&&(this.areaPtLocator=new Dn(this.parentGeom)),this.areaPtLocator.locate(t)):this.ptLocator.locate(t,this.parentGeom)},findEdge:function(){if(1===arguments.length){var t=arguments[0];return this.lineEdgeMap.get(t)}return dn.prototype.findEdge.apply(this,arguments)},interfaces_:function(){return[]},getClass:function(){return Bn}}),Bn.determineBoundary=function(t,e){return t.isInBoundary(e)?S.BOUNDARY:S.INTERIOR},e($n.prototype,{getArgGeometry:function(t){return this.arg[t].getGeometry()},setComputationPrecision:function(t){this.resultPrecisionModel=t,this.li.setPrecisionModel(this.resultPrecisionModel)},interfaces_:function(){return[]},getClass:function(){return $n}}),e(Hn.prototype,{compareTo:function(t){var e=t;return Hn.compareOriented(this.pts,this._orientation,e.pts,e._orientation)},interfaces_:function(){return[o]},getClass:function(){return Hn}}),Hn.orientation=function(t){return 1===W.increasingDirection(t)},Hn.compareOriented=function(t,e,n,i){for(var r=e?1:-1,o=i?1:-1,a=e?t.length:-1,s=i?n.length:-1,l=e?0:t.length-1,u=i?0:n.length-1;;){var c=t[l].compareTo(n[u]);if(0!==c)return c;var d=(l+=r)===a,h=(u+=o)===s;if(d&&!h)return-1;if(!d&&h)return 1;if(d&&h)return 0}},e(Un.prototype,{print:function(t){t.print("MULTILINESTRING ( ");for(var e=0;e0&&t.print(","),t.print("(");for(var i=n.getCoordinates(),r=0;r0&&t.print(","),t.print(i[r].x+" "+i[r].y);t.println(")")}t.print(") ")},addAll:function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},findEdgeIndex:function(t){for(var e=0;ethis.maxWidth)&&(this.interiorPoint=e,this.maxWidth=n)},getInteriorPoint:function(){return this.interiorPoint},widestGeometry:function(){if(arguments[0]instanceof ht){var t=arguments[0];if(t.isEmpty())return t;for(var e=t.getGeometryN(0),n=1;ne.getEnvelopeInternal().getWidth()&&(e=t.getGeometryN(n));return e}if(arguments[0]instanceof Y){var i=arguments[0];return i instanceof ht?this.widestGeometry(i):i}},horizontalBisector:function(t){var e=t.getEnvelopeInternal(),n=Zn.getBisectorY(t);return this.factory.createLineString([new f(e.getMinX(),n),new f(e.getMaxX(),n)])},add:function(t){if(t instanceof Mt)this.addPolygon(t);else if(t instanceof ht)for(var e=t,n=0;nthis.loY&&(this.loY=t):t>this.centreY&&tt&&(t=n)}return t+1},nodeSize:function(){for(var t=0,e=0;e<2;e++)null!==this.subnode[e]&&(t+=this.subnode[e].nodeSize());return t+1},add:function(t){this.items.add(t)},interfaces_:function(){return[]},getClass:function(){return Qn}}),Qn.getSubnodeIndex=function(t,e){var n=-1;return t.min>=e&&(n=1),t.max<=e&&(n=0),n},e(ti.prototype,{expandToInclude:function(t){t.max>this.max&&(this.max=t.max),t.minn||this.max=this.min&&e<=this.max}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return n>=this.min&&i<=this.max}},init:function(t,e){this.min=t,this.max=e,t>e&&(this.min=e,this.max=t)},getMax:function(){return this.max},interfaces_:function(){return[]},getClass:function(){return ti}}),ei.exponent=function(t){return function(t,e){var n,i,r,o,a={32:8,64:11}[t];if(o||(n=e<0||1/e<0,isFinite(e)||(o={32:{d:127,c:128,b:0,a:0},64:{d:32752,c:0,b:0,a:0}}[t],n&&(o.d+=1<=2;)i++,r/=2;for(;r<1&&i>0;)i--,r*=2;i<=0&&(r/=2),32===t&&i>254&&(o={d:n?255:127,c:128,b:0,a:0},i=Math.pow(2,a)-1,r=0)}return i}(64,t)-1023},ei.powerOf2=function(t){return Math.pow(2,t)},e(ni.prototype,{getInterval:function(){return this.interval},getLevel:function(){return this.level},computeKey:function(t){for(this.level=ni.computeLevel(t),this.interval=new ti,this.computeInterval(this.level,t);!this.interval.contains(t);)this.level+=1,this.computeInterval(this.level,t)},computeInterval:function(t,e){var n=ei.powerOf2(t);this.pt=Math.floor(e.getMin()/n)*n,this.interval.init(this.pt,this.pt+n)},getPoint:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return ni}}),ni.computeLevel=function(t){var e=t.getWidth();return ei.exponent(e)+1},c(ii,Qn),e(ii.prototype,{getInterval:function(){return this.interval},find:function(t){var e=Qn.getSubnodeIndex(t,this.centre);return-1===e?this:null!==this.subnode[e]?this.subnode[e].find(t):this},insert:function(t){h.isTrue(null===this.interval||this.interval.contains(t.interval));var e=Qn.getSubnodeIndex(t.interval,this.centre);if(t.level===this.level-1)this.subnode[e]=t;else{var n=this.createSubnode(e);n.insert(t),this.subnode[e]=n}},isSearchMatch:function(t){return t.overlaps(this.interval)},getSubnode:function(t){return null===this.subnode[t]&&(this.subnode[t]=this.createSubnode(t)),this.subnode[t]},getNode:function(t){var e=Qn.getSubnodeIndex(t,this.centre);return-1!==e?this.getSubnode(e).getNode(t):this},createSubnode:function(t){var e=0,n=0;switch(t){case 0:e=this.interval.getMin(),n=this.centre;break;case 1:e=this.centre,n=this.interval.getMax()}return new ii(new ti(e,n),this.level-1)},interfaces_:function(){return[]},getClass:function(){return ii}}),ii.createNode=function(t){var e=new ni(t);return new ii(e.getInterval(),e.getLevel())},ii.createExpanded=function(t,e){var n=new ti(e);null!==t&&n.expandToInclude(t.interval);var i=ii.createNode(n);return null!==t&&i.insert(t),i},e(ri.prototype,{interfaces_:function(){return[]},getClass:function(){return ri}}),ri.isZeroWidth=function(t,e){var n=e-t;if(0===n)return!0;var i=n/Math.max(Math.abs(t),Math.abs(e));return ei.exponent(i)<=ri.MIN_BINARY_EXPONENT},ri.MIN_BINARY_EXPONENT=-50,c(oi,Qn),e(oi.prototype,{insert:function(t,e){var n=Qn.getSubnodeIndex(t,oi.origin);if(-1===n)return this.add(e),null;var i=this.subnode[n];if(null===i||!i.getInterval().contains(t)){var r=ii.createExpanded(i,t);this.subnode[n]=r}this.insertContained(this.subnode[n],t,e)},isSearchMatch:function(t){return!0},insertContained:function(t,e,n){h.isTrue(t.getInterval().contains(e)),(ri.isZeroWidth(e.getMin(),e.getMax())?t.find(e):t.getNode(e)).add(n)},interfaces_:function(){return[]},getClass:function(){return oi}}),oi.origin=0,e(ai.prototype,{size:function(){return null!==this.root?this.root.size():0},insert:function(t,e){this.collectStats(t);var n=ai.ensureExtent(t,this.minExtent);this.root.insert(n,e)},query:function(){if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];return this.query(new ti(t,t))}if(arguments[0]instanceof ti){var e=arguments[0],n=new w;return this.query(e,n),n}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this.root.addAllItemsFromOverlapping(i,r)}},iterator:function(){var t=new w;return this.root.addAllItems(t),t.iterator()},remove:function(t,e){var n=ai.ensureExtent(t,this.minExtent);return this.root.remove(n,e)},collectStats:function(t){var e=t.getWidth();e0&&(this.minExtent=e)},depth:function(){return null!==this.root?this.root.depth():0},nodeSize:function(){return null!==this.root?this.root.nodeSize():0},interfaces_:function(){return[]},getClass:function(){return ai}}),ai.ensureExtent=function(t,e){var n=t.getMin(),i=t.getMax();return n!==i?t:(n===i&&(i=(n-=e/2)+e/2),new ti(n,i))},e(si.prototype,{isInside:function(t){},interfaces_:function(){return[]},getClass:function(){return si}}),e(li.prototype,{testLineSegment:function(t,e){var n,i,r,o,a=e.p0,s=e.p1;n=a.x-t.x,i=a.y-t.y,r=s.x-t.x,o=s.y-t.y,(i>0&&o<=0||o>0&&i<=0)&&0Math.PI;)t-=ci.PI_TIMES_2;for(;t<=-Math.PI;)t+=ci.PI_TIMES_2;return t},ci.angle=function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],n=arguments[1],i=n.x-e.x,r=n.y-e.y;return Math.atan2(r,i)}},ci.isAcute=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)>0},ci.isObtuse=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)<0},ci.interiorAngle=function(t,e,n){var i=ci.angle(e,t),r=ci.angle(e,n);return Math.abs(r-i)},ci.normalizePositive=function(t){if(t<0){for(;t<0;)t+=ci.PI_TIMES_2;t>=ci.PI_TIMES_2&&(t=0)}else{for(;t>=ci.PI_TIMES_2;)t-=ci.PI_TIMES_2;t<0&&(t=0)}return t},ci.angleBetween=function(t,e,n){var i=ci.angle(e,t),r=ci.angle(e,n);return ci.diff(i,r)},ci.diff=function(t,e){var n=null;return(n=tMath.PI&&(n=2*Math.PI-n),n},ci.toRadians=function(t){return t*Math.PI/180},ci.getTurn=function(t,e){var n=Math.sin(e-t);return n>0?ci.COUNTERCLOCKWISE:n<0?ci.CLOCKWISE:ci.NONE},ci.angleBetweenOriented=function(t,e,n){var i=ci.angle(e,t),r=ci.angle(e,n)-i;return r<=-Math.PI?r+ci.PI_TIMES_2:r>Math.PI?r-ci.PI_TIMES_2:r},ci.PI_TIMES_2=2*Math.PI,ci.PI_OVER_2=Math.PI/2,ci.PI_OVER_4=Math.PI/4,ci.COUNTERCLOCKWISE=Qt.COUNTERCLOCKWISE,ci.CLOCKWISE=Qt.CLOCKWISE,ci.NONE=Qt.COLLINEAR,e(di.prototype,{area:function(){return di.area(this.p0,this.p1,this.p2)},signedArea:function(){return di.signedArea(this.p0,this.p1,this.p2)},interpolateZ:function(t){if(null===t)throw new i("Supplied point is null.");return di.interpolateZ(t,this.p0,this.p1,this.p2)},longestSideLength:function(){return di.longestSideLength(this.p0,this.p1,this.p2)},isAcute:function(){return di.isAcute(this.p0,this.p1,this.p2)},circumcentre:function(){return di.circumcentre(this.p0,this.p1,this.p2)},area3D:function(){return di.area3D(this.p0,this.p1,this.p2)},centroid:function(){return di.centroid(this.p0,this.p1,this.p2)},inCentre:function(){return di.inCentre(this.p0,this.p1,this.p2)},interfaces_:function(){return[]},getClass:function(){return di}}),di.area=function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)},di.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},di.det=function(t,e,n,i){return t*i-e*n},di.interpolateZ=function(t,e,n,i){var r=e.x,o=e.y,a=n.x-r,s=i.x-r,l=n.y-o,u=i.y-o,c=a*u-s*l,d=t.x-r,h=t.y-o,f=(u*d-s*h)/c,p=(-l*d+a*h)/c;return e.z+f*(n.z-e.z)+p*(i.z-e.z)},di.longestSideLength=function(t,e,n){var i=t.distance(e),r=e.distance(n),o=n.distance(t),a=i;return r>a&&(a=r),o>a&&(a=o),a},di.isAcute=function(t,e,n){return!!ci.isAcute(t,e,n)&&!!ci.isAcute(e,n,t)&&!!ci.isAcute(n,t,e)},di.circumcentre=function(t,e,n){var i=n.x,r=n.y,o=t.x-i,a=t.y-r,s=e.x-i,l=e.y-r,u=2*di.det(o,a,s,l);return new f(i-di.det(a,o*o+a*a,l,s*s+l*l)/u,r+di.det(o,o*o+a*a,s,s*s+l*l)/u)},di.perpendicularBisector=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=new R(t.x+n/2,t.y+i/2,1),o=new R(t.x-i+n/2,t.y+n+i/2,1);return new R(r,o)},di.angleBisector=function(t,e,n){var i=e.distance(t),r=i/(i+e.distance(n)),o=n.x-t.x,a=n.y-t.y;return new f(t.x+r*o,t.y+r*a)},di.area3D=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,o=e.z-t.z,a=n.x-t.x,s=n.y-t.y,l=n.z-t.z,u=r*l-o*s,c=o*a-i*l,d=i*s-r*a,h=u*u+c*c+d*d;return Math.sqrt(h)/2},di.centroid=function(t,e,n){return new f((t.x+e.x+n.x)/3,(t.y+e.y+n.y)/3)},di.inCentre=function(t,e,n){var i=e.distance(n),r=t.distance(n),o=t.distance(e),a=i+r+o;return new f((i*t.x+r*e.x+o*n.x)/a,(i*t.y+r*e.y+o*n.y)/a)},e(hi.prototype,{getRadius:function(){return this.compute(),this.radius},getDiameter:function(){switch(this.compute(),this.extremalPts.length){case 0:return this.input.getFactory().createLineString();case 1:return this.input.getFactory().createPoint(this.centre)}var t=this.extremalPts[0],e=this.extremalPts[1];return this.input.getFactory().createLineString([t,e])},getExtremalPoints:function(){return this.compute(),this.extremalPts},computeCirclePoints:function(){if(this.input.isEmpty())return this.extremalPts=new Array(0).fill(null),null;if(1===this.input.getNumPoints()){var t=this.input.getCoordinates();return this.extremalPts=[new f(t[0])],null}var e=this.input.convexHull().getCoordinates();if(t=e,e[0].equals2D(e[e.length-1])&&(t=new Array(e.length-1).fill(null),W.copyDeep(e,0,t,0,e.length-1)),t.length<=2)return this.extremalPts=W.copyDeep(t),null;for(var n=hi.lowestPoint(t),i=hi.pointWitMinAngleWithX(t,n),r=0;r=i;)i=r,o=a,a=fi.nextIndex(t,o),r=e.distancePerpendicular(t[a]);return ii&&(i=l),la&&(a=u),u=t.length&&(e=0),e},fi.computeC=function(t,e,n){return t*n.y-e*n.x},fi.getMinimumDiameter=function(t){return new fi(t).getDiameter()},fi.getMinimumRectangle=function(t){return new fi(t).getMinimumRectangle()},fi.computeSegmentForLine=function(t,e,n){var i=null,r=null;return Math.abs(e)>Math.abs(t)?(i=new f(0,n/e),r=new f(1,n/e-t/e)):(i=new f(n/t,0),r=new f(n/t-e/t,1)),new te(i,r)};var Ko=Object.freeze({Centroid:ne,CGAlgorithms:Qt,ConvexHull:ae,InteriorPointArea:qn,InteriorPointLine:Xn,InteriorPointPoint:Jn,RobustLineIntersector:Xt,MCPointInRing:li,MinimumBoundingCircle:hi,MinimumDiameter:fi});e(pi.prototype,{getResultGeometry:function(){return new mi(this.distanceTolerance).transform(this.inputGeom)},setDistanceTolerance:function(t){if(t<=0)throw new i("Tolerance must be positive");this.distanceTolerance=t},interfaces_:function(){return[]},getClass:function(){return pi}}),pi.densifyPoints=function(t,e,n){for(var i=new te,r=new x,o=0;o1)for(var l=a/s,u=1;ua?1:ot&&(t=n)}return t+1},isEmpty:function(){var t=!0;this.items.isEmpty()||(t=!1);for(var e=0;e<4;e++)null!==this.subnode[e]&&(this.subnode[e].isEmpty()||(t=!1));return t},add:function(t){this.items.add(t)},interfaces_:function(){return[l]},getClass:function(){return xi}}),xi.getSubnodeIndex=function(t,e,n){var i=-1;return t.getMinX()>=e&&(t.getMinY()>=n&&(i=3),t.getMaxY()<=n&&(i=1)),t.getMaxX()<=e&&(t.getMinY()>=n&&(i=2),t.getMaxY()<=n&&(i=0)),i},e(ki.prototype,{getLevel:function(){return this.level},computeKey:function(){if(1===arguments.length){var t=arguments[0];for(this.level=ki.computeQuadLevel(t),this.env=new k,this.computeKey(this.level,t);!this.env.contains(t);)this.level+=1,this.computeKey(this.level,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=ei.powerOf2(e);this.pt.x=Math.floor(n.getMinX()/i)*i,this.pt.y=Math.floor(n.getMinY()/i)*i,this.env.init(this.pt.x,this.pt.x+i,this.pt.y,this.pt.y+i)}},getEnvelope:function(){return this.env},getCentre:function(){return new f((this.env.getMinX()+this.env.getMaxX())/2,(this.env.getMinY()+this.env.getMaxY())/2)},getPoint:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return ki}}),ki.computeQuadLevel=function(t){var e=t.getWidth(),n=t.getHeight(),i=e>n?e:n;return ei.exponent(i)+1},c(Ci,xi),e(Ci.prototype,{find:function(t){var e=xi.getSubnodeIndex(t,this.centrex,this.centrey);return-1===e?this:null!==this.subnode[e]?this.subnode[e].find(t):this},isSearchMatch:function(t){return this.env.intersects(t)},getSubnode:function(t){return null===this.subnode[t]&&(this.subnode[t]=this.createSubnode(t)),this.subnode[t]},getEnvelope:function(){return this.env},getNode:function(t){var e=xi.getSubnodeIndex(t,this.centrex,this.centrey);return-1!==e?this.getSubnode(e).getNode(t):this},createSubnode:function(t){var e=0,n=0,i=0,r=0;switch(t){case 0:e=this.env.getMinX(),n=this.centrex,i=this.env.getMinY(),r=this.centrey;break;case 1:e=this.centrex,n=this.env.getMaxX(),i=this.env.getMinY(),r=this.centrey;break;case 2:e=this.env.getMinX(),n=this.centrex,i=this.centrey,r=this.env.getMaxY();break;case 3:e=this.centrex,n=this.env.getMaxX(),i=this.centrey,r=this.env.getMaxY()}return new Ci(new k(e,n,i,r),this.level-1)},insertNode:function(t){h.isTrue(null===this.env||this.env.contains(t.env));var e=xi.getSubnodeIndex(t.env,this.centrex,this.centrey);if(t.level===this.level-1)this.subnode[e]=t;else{var n=this.createSubnode(e);n.insertNode(t),this.subnode[e]=n}},interfaces_:function(){return[]},getClass:function(){return Ci}}),Ci.createNode=function(t){var e=new ki(t);return new Ci(e.getEnvelope(),e.getLevel())},Ci.createExpanded=function(t,e){var n=new k(e);null!==t&&n.expandToInclude(t.env);var i=Ci.createNode(n);return null!==t&&i.insertNode(t),i},c(Li,xi),e(Li.prototype,{insert:function(t,e){var n=xi.getSubnodeIndex(t,Li.origin.x,Li.origin.y);if(-1===n)return this.add(e),null;var i=this.subnode[n];if(null===i||!i.getEnvelope().contains(t)){var r=Ci.createExpanded(i,t);this.subnode[n]=r}this.insertContained(this.subnode[n],t,e)},isSearchMatch:function(t){return!0},insertContained:function(t,e,n){h.isTrue(t.getEnvelope().contains(e));var i=ri.isZeroWidth(e.getMinX(),e.getMaxX()),r=ri.isZeroWidth(e.getMinY(),e.getMaxY());(i||r?t.find(e):t.getNode(e)).add(n)},interfaces_:function(){return[]},getClass:function(){return Li}}),Li.origin=new f(0,0),e(Si.prototype,{size:function(){return null!==this.root?this.root.size():0},insert:function(t,e){this.collectStats(t);var n=Si.ensureExtent(t,this.minExtent);this.root.insert(n,e)},query:function(){if(1===arguments.length){var t=arguments[0],e=new Pn;return this.query(t,e),e.getItems()}if(2===arguments.length){var n=arguments[0],i=arguments[1];this.root.visit(n,i)}},queryAll:function(){var t=new w;return this.root.addAllItems(t),t},remove:function(t,e){var n=Si.ensureExtent(t,this.minExtent);return this.root.remove(n,e)},collectStats:function(t){var e=t.getWidth();e0&&(this.minExtent=e);var n=t.getHeight();n0&&(this.minExtent=n)},depth:function(){return null!==this.root?this.root.depth():0},isEmpty:function(){return null===this.root},interfaces_:function(){return[Le,l]},getClass:function(){return Si}}),Si.ensureExtent=function(t,e){var n=t.getMinX(),i=t.getMaxX(),r=t.getMinY(),o=t.getMaxY();return n!==i&&r!==o?t:(n===i&&(i=(n-=e/2)+e/2),r===o&&(o=(r-=e/2)+e/2),new k(n,i,r,o))},Si.serialVersionUID=-0x678b60c967a25400;var na=Object.freeze({Quadtree:Si}),ia=Object.freeze({STRtree:Oe}),ra=Object.freeze({quadtree:na,strtree:ia}),oa=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"];e(Mi.prototype,{read:function(t){var e,n=(e="string"==typeof t?JSON.parse(t):t).type;if(!aa[n])throw new Error("Unknown GeoJSON type: "+e.type);return-1!==oa.indexOf(n)?aa[n].apply(this,[e.coordinates]):"GeometryCollection"===n?aa[n].apply(this,[e.geometries]):aa[n].apply(this,[e])},write:function(t){var e=t.getGeometryType();if(!sa[e])throw new Error("Geometry is not supported");return sa[e].apply(this,[t])}});var aa={Feature:function(t){var e={};for(var n in t)e[n]=t[n];if(t.geometry){var i=t.geometry.type;if(!aa[i])throw new Error("Unknown GeoJSON type: "+t.type);e.geometry=this.read(t.geometry)}return t.bbox&&(e.bbox=aa.bbox.apply(this,[t.bbox])),e},FeatureCollection:function(t){var e={};if(t.features){e.features=[];for(var n=0;n0&&this.minIndexthis.minCoord.y&&n.y>this.minCoord.y&&i===Qt.CLOCKWISE)&&(r=!0),r&&(this.minIndex=this.minIndex-1)},getRightmostSideOfSegment:function(t,e){var n=t.getEdge().getCoordinates();if(e<0||e+1>=n.length)return-1;if(n[e].y===n[e+1].y)return-1;var i=Ke.LEFT;return n[e].ythis.minCoord.x)&&(this.minDe=t,this.minIndex=n,this.minCoord=e[n])},findRightmostEdgeAtNode:function(){var t=this.minDe.getNode().getEdges();this.minDe=t.getRightmostEdge(),this.minDe.isForward()||(this.minDe=this.minDe.getSym(),this.minIndex=this.minDe.getEdge().getCoordinates().length-1)},findEdge:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}h.isTrue(0!==this.minIndex||this.minCoord.equals(this.minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this.minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this.orientedDe=this.minDe,this.getRightmostSide(this.minDe,this.minIndex)===Ke.LEFT&&(this.orientedDe=this.minDe.getSym())},interfaces_:function(){return[]},getClass:function(){return ji}}),zi.prototype.addLast=function(t){this.array_.push(t)},zi.prototype.removeFirst=function(){return this.array_.shift()},zi.prototype.isEmpty=function(){return 0===this.array_.length},e(Yi.prototype,{clearVisitedEdges:function(){for(var t=this.dirEdgeList.iterator();t.hasNext();)t.next().setVisited(!1)},getRightmostCoordinate:function(){return this.rightMostCoord},computeNodeDepth:function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();)if((i=n.next()).isVisited()||i.getSym().isVisited()){e=i;break}if(null===e)throw new We("unable to find edge to compute depths at "+t.getCoordinate());for(t.getEdges().computeDepths(e),n=t.getEdges().iterator();n.hasNext();){var i;(i=n.next()).setVisited(!0),this.copySymDepths(i)}},computeDepth:function(t){this.clearVisitedEdges();var e=this.finder.getEdge();e.getNode(),e.getLabel(),e.setEdgeDepths(Ke.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},create:function(t){this.addReachable(t),this.finder.findEdge(this.dirEdgeList),this.rightMostCoord=this.finder.getCoordinate()},findResultEdges:function(){for(var t=this.dirEdgeList.iterator();t.hasNext();){var e=t.next();e.getDepth(Ke.RIGHT)>=1&&e.getDepth(Ke.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},computeDepths:function(t){var e=new K,n=new zi,i=t.getNode();for(n.addLast(i),e.add(i),t.setVisited(!0);!n.isEmpty();){var r=n.removeFirst();e.add(r),this.computeNodeDepth(r);for(var o=r.getEdges().iterator();o.hasNext();){var a=o.next().getSym();if(!a.isVisited()){var s=a.getNode();e.contains(s)||(n.addLast(s),e.add(s))}}}},compareTo:function(t){var e=t;return this.rightMostCoord.xe.rightMostCoord.x?1:0},getEnvelope:function(){if(null===this.env){for(var t=new k,e=this.dirEdgeList.iterator();e.hasNext();)for(var n=e.next().getEdge().getCoordinates(),i=0;i=0;n--)this.addPt(t[n])},isRedundant:function(t){if(this.ptList.size()<1)return!1;var e=this.ptList.get(this.ptList.size()-1);return t.distance(e)=2&&this.ptList.get(this.ptList.size()-2),t.equals(e)?null:void this.ptList.add(t)},setMinimumVertexDistance:function(t){this.minimimVertexDistance=t},interfaces_:function(){return[]},getClass:function(){return Bi}}),Bi.COORDINATE_ARRAY_TYPE=new Array(0).fill(null),e($i.prototype,{addNextSegment:function(t,e){if(this.s0=this.s1,this.s1=this.s2,this.s2=t,this.seg0.setCoordinates(this.s0,this.s1),this.computeOffsetSegment(this.seg0,this.side,this.distance,this.offset0),this.seg1.setCoordinates(this.s1,this.s2),this.computeOffsetSegment(this.seg1,this.side,this.distance,this.offset1),this.s1.equals(this.s2))return null;var n=Qt.computeOrientation(this.s0,this.s1,this.s2),i=n===Qt.CLOCKWISE&&this.side===Ke.LEFT||n===Qt.COUNTERCLOCKWISE&&this.side===Ke.RIGHT;0===n?this.addCollinear(e):i?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},addLineEndCap:function(t,e){var n=new te(t,e),i=new te;this.computeOffsetSegment(n,Ke.LEFT,this.distance,i);var r=new te;this.computeOffsetSegment(n,Ke.RIGHT,this.distance,r);var o=e.x-t.x,a=e.y-t.y,s=Math.atan2(a,o);switch(this.bufParams.getEndCapStyle()){case Ri.CAP_ROUND:this.segList.addPt(i.p1),this.addFilletArc(e,s+Math.PI/2,s-Math.PI/2,Qt.CLOCKWISE,this.distance),this.segList.addPt(r.p1);break;case Ri.CAP_FLAT:this.segList.addPt(i.p1),this.segList.addPt(r.p1);break;case Ri.CAP_SQUARE:var l=new f;l.x=Math.abs(this.distance)*Math.cos(s),l.y=Math.abs(this.distance)*Math.sin(s);var u=new f(i.p1.x+l.x,i.p1.y+l.y),c=new f(r.p1.x+l.x,r.p1.y+l.y);this.segList.addPt(u),this.segList.addPt(c)}},getCoordinates:function(){return this.segList.getCoordinates()},addMitreJoin:function(t,e,n,i){var r=!0,o=null;try{o=R.intersection(e.p0,e.p1,n.p0,n.p1),(i<=0?1:o.distance(t)/Math.abs(i))>this.bufParams.getMitreLimit()&&(r=!1)}catch(t){if(!(t instanceof L))throw t;o=new f(0,0),r=!1}r?this.segList.addPt(o):this.addLimitedMitreJoin(e,n,i,this.bufParams.getMitreLimit())},addFilletCorner:function(t,e,n,i,r){var o=e.x-t.x,a=e.y-t.y,s=Math.atan2(a,o),l=n.x-t.x,u=n.y-t.y,c=Math.atan2(u,l);i===Qt.CLOCKWISE?s<=c&&(s+=2*Math.PI):s>=c&&(s-=2*Math.PI),this.segList.addPt(e),this.addFilletArc(t,s,c,i,r),this.segList.addPt(n)},addOutsideTurn:function(t,e){return this.offset0.p1.distance(this.offset1.p0)0){var n=new f((this.closingSegLengthFactor*this.offset0.p1.x+this.s1.x)/(this.closingSegLengthFactor+1),(this.closingSegLengthFactor*this.offset0.p1.y+this.s1.y)/(this.closingSegLengthFactor+1));this.segList.addPt(n);var i=new f((this.closingSegLengthFactor*this.offset1.p0.x+this.s1.x)/(this.closingSegLengthFactor+1),(this.closingSegLengthFactor*this.offset1.p0.y+this.s1.y)/(this.closingSegLengthFactor+1));this.segList.addPt(i)}else this.segList.addPt(this.s1);this.segList.addPt(this.offset1.p0)}},createCircle:function(t){var e=new f(t.x+this.distance,t.y);this.segList.addPt(e),this.addFilletArc(t,0,2*Math.PI,-1,this.distance),this.segList.closeRing()},addBevelJoin:function(t,e){this.segList.addPt(t.p1),this.segList.addPt(e.p0)},init:function(t){this.distance=t,this.maxCurveSegmentError=t*(1-Math.cos(this.filletAngleQuantum/2)),this.segList=new Bi,this.segList.setPrecisionModel(this.precisionModel),this.segList.setMinimumVertexDistance(t*$i.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},addCollinear:function(t){this.li.computeIntersection(this.s0,this.s1,this.s1,this.s2),this.li.getIntersectionNum()>=2&&(this.bufParams.getJoinStyle()===Ri.JOIN_BEVEL||this.bufParams.getJoinStyle()===Ri.JOIN_MITRE?(t&&this.segList.addPt(this.offset0.p1),this.segList.addPt(this.offset1.p0)):this.addFilletCorner(this.s1,this.offset0.p1,this.offset1.p0,Qt.CLOCKWISE,this.distance))},closeRing:function(){this.segList.closeRing()},hasNarrowConcaveAngle:function(){return this._hasNarrowConcaveAngle},interfaces_:function(){return[]},getClass:function(){return $i}}),$i.OFFSET_SEGMENT_SEPARATION_FACTOR=.001,$i.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR=.001,$i.CURVE_VERTEX_SNAP_DISTANCE_FACTOR=1e-6,$i.MAX_CLOSING_SEG_LEN_FACTOR=80,e(Hi.prototype,{getOffsetCurve:function(t,e){if(this.distance=e,0===e)return null;var n=e<0,i=Math.abs(e),r=this.getSegGen(i);t.length<=1?this.computePointCurve(t[0],r):this.computeOffsetCurve(t,n,r);var o=r.getCoordinates();return n&&W.reverse(o),o},computeSingleSidedBufferCurve:function(t,e,n){var i=this.simplifyTolerance(this.distance);if(e){n.addSegments(t,!0);var r=Fi.simplify(t,-i),o=r.length-1;n.initSideSegments(r[o],r[o-1],Ke.LEFT),n.addFirstSegment();for(var a=o-2;a>=0;a--)n.addNextSegment(r[a],!0)}else{n.addSegments(t,!1);var s=Fi.simplify(t,i),l=s.length-1;for(n.initSideSegments(s[0],s[1],Ke.LEFT),n.addFirstSegment(),a=2;a<=l;a++)n.addNextSegment(s[a],!0)}n.addLastSegment(),n.closeRing()},computeRingBufferCurve:function(t,e,n){var i=this.simplifyTolerance(this.distance);e===Ke.RIGHT&&(i=-i);var r=Fi.simplify(t,i),o=r.length-1;n.initSideSegments(r[o-1],r[0],e);for(var a=1;a<=o;a++){var s=1!==a;n.addNextSegment(r[a],s)}n.closeRing()},computeLineBufferCurve:function(t,e){var n=this.simplifyTolerance(this.distance),i=Fi.simplify(t,n),r=i.length-1;e.initSideSegments(i[0],i[1],Ke.LEFT);for(var o=2;o<=r;o++)e.addNextSegment(i[o],!0);e.addLastSegment(),e.addLineEndCap(i[r-1],i[r]);var a=Fi.simplify(t,-n),s=a.length-1;for(e.initSideSegments(a[s],a[s-1],Ke.LEFT),o=s-2;o>=0;o--)e.addNextSegment(a[o],!0);e.addLastSegment(),e.addLineEndCap(a[1],a[0]),e.closeRing()},computePointCurve:function(t,e){switch(this.bufParams.getEndCapStyle()){case Ri.CAP_ROUND:e.createCircle(t);break;case Ri.CAP_SQUARE:e.createSquare(t)}},getLineCurve:function(t,e){if(this.distance=e,e<0&&!this.bufParams.isSingleSided())return null;if(0===e)return null;var n=Math.abs(e),i=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],i);else if(this.bufParams.isSingleSided()){var r=e<0;this.computeSingleSidedBufferCurve(t,r,i)}else this.computeLineBufferCurve(t,i);return i.getCoordinates()},getBufferParameters:function(){return this.bufParams},simplifyTolerance:function(t){return t*this.bufParams.getSimplifyFactor()},getRingCurve:function(t,e,n){if(this.distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return Hi.copyCoordinates(t);var i=this.getSegGen(n);return this.computeRingBufferCurve(t,e,i),i.getCoordinates()},computeOffsetCurve:function(t,e,n){var i=this.simplifyTolerance(this.distance);if(e){var r=Fi.simplify(t,-i),o=r.length-1;n.initSideSegments(r[o],r[o-1],Ke.LEFT),n.addFirstSegment();for(var a=o-2;a>=0;a--)n.addNextSegment(r[a],!0)}else{var s=Fi.simplify(t,i),l=s.length-1;for(n.initSideSegments(s[0],s[1],Ke.LEFT),n.addFirstSegment(),a=2;a<=l;a++)n.addNextSegment(s[a],!0)}n.addLastSegment()},getSegGen:function(t){return new $i(this.precisionModel,this.bufParams,t)},interfaces_:function(){return[]},getClass:function(){return Hi}}),Hi.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),n=0;nr.getMaxY()||this.findStabbedSegments(t,i.getDirectedEdges(),e)}return e}if(3===arguments.length)if(M(arguments[2],y)&&arguments[0]instanceof f&&arguments[1]instanceof un){var o=arguments[0],a=arguments[1],s=arguments[2],l=a.getEdge().getCoordinates();for(n=0;nthis.seg.p1.y&&this.seg.reverse();var u=Math.max(this.seg.p0.x,this.seg.p1.x);if(!(uthis.seg.p1.y||Qt.computeOrientation(this.seg.p0,this.seg.p1,o)===Qt.RIGHT)){var c=a.getDepth(Ke.LEFT);this.seg.p0.equals(l[n])||(c=a.getDepth(Ke.RIGHT));var d=new Vi(this.seg,c);s.add(d)}}}else if(M(arguments[2],y)&&arguments[0]instanceof f&&M(arguments[1],y)){var h=arguments[0],p=arguments[1],m=arguments[2];for(n=p.iterator();n.hasNext();){var g=n.next();g.isForward()&&this.findStabbedSegments(h,g,m)}}},getDepth:function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:Jo.min(e).leftDepth},interfaces_:function(){return[]},getClass:function(){return Ui}}),e(Vi.prototype,{compareTo:function(t){var e=t;if(this.upwardSeg.minX()>=e.upwardSeg.maxX())return 1;if(this.upwardSeg.maxX()<=e.upwardSeg.minX())return-1;var n=this.upwardSeg.orientationIndex(e.upwardSeg);return 0!==n||0!=(n=-1*e.upwardSeg.orientationIndex(this.upwardSeg))?n:this.upwardSeg.compareTo(e.upwardSeg)},compareX:function(t,e){var n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)},toString:function(){return this.upwardSeg.toString()},interfaces_:function(){return[o]},getClass:function(){return Vi}}),Ui.DepthSegment=Vi,e(Wi.prototype,{addPoint:function(t){if(this.distance<=0)return null;var e=t.getCoordinates(),n=this.curveBuilder.getLineCurve(e,this.distance);this.addCurve(n,S.EXTERIOR,S.INTERIOR)},addPolygon:function(t){var e=this.distance,n=Ke.LEFT;this.distance<0&&(e=-this.distance,n=Ke.RIGHT);var i=t.getExteriorRing(),r=W.removeRepeatedPoints(i.getCoordinates());if(this.distance<0&&this.isErodedCompletely(i,this.distance))return null;if(this.distance<=0&&r.length<3)return null;this.addPolygonRing(r,e,n,S.EXTERIOR,S.INTERIOR);for(var o=0;o0&&this.isErodedCompletely(a,-this.distance)||this.addPolygonRing(s,e,Ke.opposite(n),S.INTERIOR,S.EXTERIOR)}},isTriangleErodedCompletely:function(t,e){var n=new di(t[0],t[1],t[2]),i=n.inCentre();return Qt.distancePointLine(i,n.p0,n.p1)=Et.MINIMUM_VALID_SIZE&&Qt.isCCW(t)&&(o=r,a=i,n=Ke.opposite(n));var s=this.curveBuilder.getRingCurve(t,n,e);this.addCurve(s,o,a)},add:function(t){if(t.isEmpty())return null;if(t instanceof Mt)this.addPolygon(t);else if(t instanceof kt)this.addLineString(t);else if(t instanceof Lt)this.addPoint(t);else if(t instanceof Tt)this.addCollection(t);else if(t instanceof ft)this.addCollection(t);else if(t instanceof Ot)this.addCollection(t);else{if(!(t instanceof ht))throw new UnsupportedOperationException(t.getClass().getName());this.addCollection(t)}},isErodedCompletely:function(t,e){var n=t.getCoordinates();if(n.length<4)return e<0;if(4===n.length)return this.isTriangleErodedCompletely(n,e);var i=t.getEnvelopeInternal(),r=Math.min(i.getHeight(),i.getWidth());return e<0&&2*Math.abs(e)>r},addCollection:function(t){for(var e=0;ei||this.maxyo;if(a)return!1;var s=this.intersectsToleranceSquare(t,e);return h.isTrue(!(a&&s),"Found bad envelope test"),s},initCorners:function(t){var e=.5;this.minx=t.x-e,this.maxx=t.x+e,this.miny=t.y-e,this.maxy=t.y+e,this.corner[0]=new f(this.maxx,this.maxy),this.corner[1]=new f(this.minx,this.maxy),this.corner[2]=new f(this.minx,this.miny),this.corner[3]=new f(this.maxx,this.miny)},intersects:function(t,e){return 1===this.scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this.p0Scaled),this.copyScaled(e,this.p1Scaled),this.intersectsScaled(this.p0Scaled,this.p1Scaled))},scale:function(t){return Math.round(t*this.scaleFactor)},getCoordinate:function(){return this.originalPt},copyScaled:function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},getSafeEnvelope:function(){if(null===this.safeEnv){var t=Xi.SAFE_ENV_EXPANSION_FACTOR/this.scaleFactor;this.safeEnv=new k(this.originalPt.x-t,this.originalPt.x+t,this.originalPt.y-t,this.originalPt.y+t)}return this.safeEnv},intersectsPixelClosure:function(t,e){return this.li.computeIntersection(t,e,this.corner[0],this.corner[1]),!!(this.li.hasIntersection()||(this.li.computeIntersection(t,e,this.corner[1],this.corner[2]),this.li.hasIntersection()||(this.li.computeIntersection(t,e,this.corner[2],this.corner[3]),this.li.hasIntersection()||(this.li.computeIntersection(t,e,this.corner[3],this.corner[0]),this.li.hasIntersection()))))},intersectsToleranceSquare:function(t,e){var n=!1,i=!1;return this.li.computeIntersection(t,e,this.corner[0],this.corner[1]),!!(this.li.isProper()||(this.li.computeIntersection(t,e,this.corner[1],this.corner[2]),this.li.isProper()||(this.li.hasIntersection()&&(n=!0),this.li.computeIntersection(t,e,this.corner[2],this.corner[3]),this.li.isProper()||(this.li.hasIntersection()&&(i=!0),this.li.computeIntersection(t,e,this.corner[3],this.corner[0]),this.li.isProper()||n&&i||t.equals(this.pt)||e.equals(this.pt)))))},addSnappedNode:function(t,e){var n=t.getCoordinate(e),i=t.getCoordinate(e+1);return!!this.intersects(n,i)&&(t.addIntersection(this.getCoordinate(),e),!0)},interfaces_:function(){return[]},getClass:function(){return Xi}}),Xi.SAFE_ENV_EXPANSION_FACTOR=.75,e(Ji.prototype,{snap:function(){if(1===arguments.length){var t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2],r=e.getSafeEnvelope(),o=new Ki(e,n,i);return this.index.query(r,{interfaces_:function(){return[Ce]},visitItem:function(t){t.select(r,o)}}),o.isNodeAdded()}},interfaces_:function(){return[]},getClass:function(){return Ji}}),c(Ki,Kn),e(Ki.prototype,{isNodeAdded:function(){return this._isNodeAdded},select:function(){if(2!==arguments.length)return Kn.prototype.select.apply(this,arguments);var t=arguments[0],e=arguments[1],n=t.getContext();return null!==this.parentEdge&&n===this.parentEdge&&e===this.hotPixelVertexIndex?null:void(this._isNodeAdded=this.hotPixel.addSnappedNode(n,e))},interfaces_:function(){return[]},getClass:function(){return Ki}}),Ji.HotPixelSnapAction=Ki,e(Qi.prototype,{processIntersections:function(t,e,n,i){if(t===n&&e===i)return null;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[i],s=n.getCoordinates()[i+1];if(this.li.computeIntersection(r,o,a,s),this.li.hasIntersection()&&this.li.isInteriorIntersection()){for(var l=0;l=0;t--){try{this.bufferReducedPrecision(t)}catch(t){if(!(t instanceof We))throw t;this.saveException=t}if(null!==this.resultGeometry)return null}throw this.saveException}if(1===arguments.length){var e=arguments[0],n=er.precisionScaleFactor(this.argGeom,this.distance,e),i=new Ut(n);this.bufferFixedPrecision(i)}},computeGeometry:function(){if(this.bufferOriginalPrecision(),null!==this.resultGeometry)return null;var t=this.argGeom.getFactory().getPrecisionModel();t.getType()===Ut.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},setQuadrantSegments:function(t){this.bufParams.setQuadrantSegments(t)},bufferOriginalPrecision:function(){try{var t=new qi(this.bufParams);this.resultGeometry=t.buffer(this.argGeom,this.distance)}catch(t){if(!(t instanceof u))throw t;this.saveException=t}},getResultGeometry:function(t){return this.distance=t,this.computeGeometry(),this.resultGeometry},setEndCapStyle:function(t){this.bufParams.setEndCapStyle(t)},interfaces_:function(){return[]},getClass:function(){return er}}),er.bufferOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new er(t);return n.getResultGeometry(e)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Y&&"number"==typeof arguments[1]){var i=arguments[0],r=arguments[1],o=arguments[2];return(u=new er(i)).setQuadrantSegments(o),u.getResultGeometry(r)}if(arguments[2]instanceof Ri&&arguments[0]instanceof Y&&"number"==typeof arguments[1]){var a=arguments[0],s=arguments[1],l=arguments[2];return(u=new er(a,l)).getResultGeometry(s)}}else if(4===arguments.length){var u,c=arguments[0],d=arguments[1],h=arguments[2],f=arguments[3];return(u=new er(c)).setQuadrantSegments(h),u.setEndCapStyle(f),u.getResultGeometry(d)}},er.precisionScaleFactor=function(t,e,n){var i=t.getEnvelopeInternal(),r=T.max(Math.abs(i.getMaxX()),Math.abs(i.getMaxY()),Math.abs(i.getMinX()),Math.abs(i.getMinY()))+2*(e>0?e:0),o=n-Math.trunc(Math.log(r)/Math.log(10)+1);return Math.pow(10,o)},er.CAP_ROUND=Ri.CAP_ROUND,er.CAP_BUTT=Ri.CAP_FLAT,er.CAP_FLAT=Ri.CAP_FLAT,er.CAP_SQUARE=Ri.CAP_SQUARE,er.MAX_PRECISION_DIGITS=12;var ca=Object.freeze({BufferOp:er,BufferParameters:Ri});e(nr.prototype,{filter:function(t){t instanceof Mt&&this.comps.add(t)},interfaces_:function(){return[ct]},getClass:function(){return nr}}),nr.getPolygons=function(){if(1===arguments.length){var t=arguments[0];return nr.getPolygons(t,new w)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof Mt?n.add(e):e instanceof ht&&e.apply(new nr(n)),n}},e(ir.prototype,{isInsideArea:function(){return this.segIndex===ir.INSIDE_AREA},getCoordinate:function(){return this.pt},getGeometryComponent:function(){return this.component},getSegmentIndex:function(){return this.segIndex},interfaces_:function(){return[]},getClass:function(){return ir}}),ir.INSIDE_AREA=-1,e(rr.prototype,{filter:function(t){t instanceof Lt&&this.pts.add(t)},interfaces_:function(){return[ct]},getClass:function(){return rr}}),rr.getPoints=function(){if(1===arguments.length){var t=arguments[0];return t instanceof Lt?Jo.singletonList(t):rr.getPoints(t,new w)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof Lt?n.add(e):e instanceof ht&&e.apply(new rr(n)),n}},e(or.prototype,{filter:function(t){(t instanceof Lt||t instanceof kt||t instanceof Mt)&&this.locations.add(new ir(t,0,t.getCoordinate()))},interfaces_:function(){return[ct]},getClass:function(){return or}}),or.getLocations=function(t){var e=new w;return t.apply(new or(e)),e},e(ar.prototype,{computeContainmentDistance:function(){if(0===arguments.length){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this.minDistance<=this.terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=1-e,r=nr.getPolygons(this.geom[e]);if(r.size()>0){var o=or.getLocations(this.geom[i]);if(this.computeContainmentDistance(o,r,n),this.minDistance<=this.terminateDistance)return this.minDistanceLocation[i]=n[0],this.minDistanceLocation[e]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&M(arguments[0],y)&&M(arguments[1],y)){for(var a=arguments[0],s=arguments[1],l=arguments[2],u=0;uthis.minDistance)return null;for(var i=t.getCoordinates(),r=e.getCoordinate(),o=0;othis.minDistance)return null;i=l.getCoordinates();var d=u.getCoordinates();for(o=0;ot&&W.reverse(this.coordinates)}return this.coordinates},toLineString:function(){return this.factory.createLineString(this.getCoordinates())},add:function(t){this.directedEdges.add(t)},interfaces_:function(){return[]},getClass:function(){return sr}}),e(lr.prototype,{setVisited:function(t){this._isVisited=t},isMarked:function(){return this._isMarked},setData:function(t){this.data=t},getData:function(){return this.data},setMarked:function(t){this._isMarked=t},getContext:function(){return this.data},isVisited:function(){return this._isVisited},setContext:function(t){this.data=t},interfaces_:function(){return[]},getClass:function(){return lr}}),lr.getComponentWithVisitedState=function(t,e){for(;t.hasNext();){var n=t.next();if(n.isVisited()===e)return n}return null},lr.setVisited=function(t,e){for(;t.hasNext();)t.next().setVisited(e)},lr.setMarked=function(t,e){for(;t.hasNext();)t.next().setMarked(e)},c(ur,lr),e(ur.prototype,{isRemoved:function(){return null===this.parentEdge},compareDirection:function(t){return this.quadrant>t.quadrant?1:this.quadrant=t.getNumPoints()&&null===i)return null;var o=t.getCoordinate(r);null!==i&&i.segmentIndex===n.segmentIndex&&(o=i.coord);var a=new ln(t,n.coord,o,new tn(t.getLabel()));e.add(a)},createEdgeEndForPrev:function(t,e,n,i){var r=n.segmentIndex;if(0===n.dist){if(0===r)return null;r--}var o=t.getCoordinate(r);null!==i&&i.segmentIndex>=r&&(o=i.coord);var a=new tn(t.getLabel());a.flip();var s=new ln(t,n.coord,o,a);e.add(s)},computeEdgeEnds:function(){if(1===arguments.length){for(var t=arguments[0],e=new w,n=t;n.hasNext();){var i=n.next();this.computeEdgeEnds(i,e)}return e}if(2===arguments.length){var r=arguments[0],o=arguments[1],a=r.getEdgeIntersectionList();a.addEndpoints();var s=a.iterator(),l=null,u=null;if(!s.hasNext())return null;var c=s.next();do{l=u,u=c,c=null,s.hasNext()&&(c=s.next()),null!==u&&(this.createEdgeEndForPrev(r,o,u,l),this.createEdgeEndForNext(r,o,u,c))}while(null!==u)}},interfaces_:function(){return[]},getClass:function(){return xr}}),c(kr,ln),e(kr.prototype,{insert:function(t){this.edgeEnds.add(t)},print:function(t){t.println("EdgeEndBundle--\x3e Label: "+this.label);for(var e=this.iterator();e.hasNext();)e.next().print(t),t.println()},iterator:function(){return this.edgeEnds.iterator()},getEdgeEnds:function(){return this.edgeEnds},computeLabelOn:function(t,e){for(var n=0,i=!1,r=this.iterator();r.hasNext();)(o=r.next().getLabel().getLocation(t))===S.BOUNDARY&&n++,o===S.INTERIOR&&(i=!0);var o=S.NONE;i&&(o=S.INTERIOR),n>0&&(o=Bn.determineBoundary(e,n)),this.label.setLocation(t,o)},computeLabelSide:function(t,e){for(var n=this.iterator();n.hasNext();){var i=n.next();if(i.getLabel().isArea()){var r=i.getLabel().getLocation(t,e);if(r===S.INTERIOR)return this.label.setLocation(t,e,S.INTERIOR),null;r===S.EXTERIOR&&this.label.setLocation(t,e,S.EXTERIOR)}}},getLabel:function(){return this.label},computeLabelSides:function(t){this.computeLabelSide(t,Ke.LEFT),this.computeLabelSide(t,Ke.RIGHT)},updateIM:function(t){Fn.updateIM(this.label,t)},computeLabel:function(t){for(var e=!1,n=this.iterator();n.hasNext();)n.next().getLabel().isArea()&&(e=!0);this.label=e?new tn(S.NONE,S.NONE,S.NONE):new tn(S.NONE);for(var i=0;i<2;i++)this.computeLabelOn(i,t),e&&this.computeLabelSides(i)},interfaces_:function(){return[]},getClass:function(){return kr}}),c(Cr,vn),e(Cr.prototype,{updateIM:function(t){for(var e=this.iterator();e.hasNext();)e.next().updateIM(t)},insert:function(t){var e=this.edgeMap.get(t);null===e?(e=new kr(t),this.insertEdgeEnd(t,e)):e.insert(t)},interfaces_:function(){return[]},getClass:function(){return Cr}}),c(Lr,an),e(Lr.prototype,{updateIMFromEdges:function(t){this.edges.updateIM(t)},computeIM:function(t){t.setAtLeastIfValid(this.label.getLocation(0),this.label.getLocation(1),0)},interfaces_:function(){return[]},getClass:function(){return Lr}}),c(Sr,cn),e(Sr.prototype,{createNode:function(t){return new Lr(t,new Cr)},interfaces_:function(){return[]},getClass:function(){return Sr}}),e(Mr.prototype,{insertEdgeEnds:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.nodes.add(n)}},getNodeIterator:function(){return this.nodes.iterator()},copyNodesAndLabels:function(t,e){for(var n=t.getNodeIterator();n.hasNext();){var i=n.next();this.nodes.addNode(i.getCoordinate()).setLabel(e,i.getLabel().getLocation(e))}},build:function(t){this.computeIntersectionNodes(t,0),this.copyNodesAndLabels(t,0);var e=(new xr).computeEdgeEnds(t.getEdgeIterator());this.insertEdgeEnds(e)},computeIntersectionNodes:function(t,e){for(var n=t.getEdgeIterator();n.hasNext();)for(var i=n.next(),r=i.getLabel().getLocation(e),o=i.getEdgeIntersectionList().iterator();o.hasNext();){var a=o.next(),s=this.nodes.addNode(a.coord);r===S.BOUNDARY?s.setLabelBoundary(e):s.getLabel().isNull(e)&&s.setLabel(e,S.INTERIOR)}},interfaces_:function(){return[]},getClass:function(){return Mr}}),e(Tr.prototype,{isNodeEdgeAreaLabelsConsistent:function(){for(var t=this.nodeGraph.getNodeIterator();t.hasNext();){var e=t.next();if(!e.getEdges().isAreaLabelsConsistent(this.geomGraph))return this.invalidPoint=e.getCoordinate().copy(),!1}return!0},getInvalidPoint:function(){return this.invalidPoint},hasDuplicateRings:function(){for(var t=this.nodeGraph.getNodeIterator();t.hasNext();)for(var e=t.next().getEdges().iterator();e.hasNext();){var n=e.next();if(n.getEdgeEnds().size()>1)return this.invalidPoint=n.getEdge().getCoordinate(0),!0}return!1},isNodeConsistentArea:function(){var t=this.geomGraph.computeSelfNodes(this.li,!0,!0);return t.hasProperIntersection()?(this.invalidPoint=t.getProperIntersectionPoint(),!1):(this.nodeGraph.build(this.geomGraph),this.isNodeEdgeAreaLabelsConsistent())},interfaces_:function(){return[]},getClass:function(){return Tr}}),e(Er.prototype,{buildIndex:function(){this.index=new Oe;for(var t=0;t=1&&(e=t.getCoordinateN(0)),this.validErr=new Or(Or.RING_NOT_CLOSED,e)}},checkShellsNotNested:function(t,e){for(var n=0;n=0;i--)n.add(t[i],!1)},Dr.findEdgeRingContaining=function(t,e){for(var n=t.getRing(),i=n.getEnvelopeInternal(),r=n.getCoordinateN(0),o=null,a=null,s=e.iterator();s.hasNext();){var l=s.next(),u=l.getRing(),c=u.getEnvelopeInternal();if(!c.equals(i)&&c.contains(i)){r=W.ptNotInList(n.getCoordinates(),u.getCoordinates());var d=!1;Qt.isPointInRing(r,u.getCoordinates())&&(d=!0),d&&(null===o||a.contains(c))&&(a=(o=l).getRing().getEnvelopeInternal())}}return o},e(Ar.prototype,{compare:function(t,e){var n=e;return t.getRing().getEnvelope().compareTo(n.getRing().getEnvelope())},interfaces_:function(){return[s]},getClass:function(){return Ar}}),Dr.EnvelopeComparator=Ar,c(Ir,gr),e(Ir.prototype,{findEdgeRing:function(t){var e=new Dr(this.factory);return e.build(t),e},computeDepthParity:function(){if(0===arguments.length)for(;;){var t=null;if(null===t)return null;this.computeDepthParity(t)}},computeNextCWEdges:function(){for(var t=this.nodeIterator();t.hasNext();){var e=t.next();Ir.computeNextCWEdges(e)}},addEdge:function(t){if(t.isEmpty())return null;var e=W.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return null;var n=e[0],i=e[e.length-1],r=this.getNode(n),o=this.getNode(i),a=new _r(r,o,e[1],!0),s=new _r(o,r,e[e.length-2],!1),l=new br(t);l.setDirectedEdges(a,s),this.add(l)},deleteCutEdges:function(){this.computeNextCWEdges(),Ir.findLabeledEdgeRings(this.dirEdges);for(var t=new w,e=this.dirEdges.iterator();e.hasNext();){var n=e.next();if(!n.isMarked()){var i=n.getSym();if(n.getLabel()===i.getLabel()){n.setMarked(!0),i.setMarked(!0);var r=n.getEdge();t.add(r.getLine())}}}return t},getEdgeRings:function(){this.computeNextCWEdges(),Ir.label(this.dirEdges,-1);var t=Ir.findLabeledEdgeRings(this.dirEdges);this.convertMaximalToMinimalEdgeRings(t);for(var e=new w,n=this.dirEdges.iterator();n.hasNext();){var i=n.next();if(!i.isMarked()&&!i.isInRing()){var r=this.findEdgeRing(i);e.add(r)}}return e},getNode:function(t){var e=this.findNode(t);return null===e&&(e=new fr(t),this.add(e)),e},convertMaximalToMinimalEdgeRings:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),i=n.getLabel(),r=Ir.findIntersectionNodes(n,i);if(null!==r)for(var o=r.iterator();o.hasNext();){var a=o.next();Ir.computeNextCCWEdges(a,i)}}},deleteDangles:function(){for(var t=this.findNodesOfDegree(1),e=new K,n=new re,i=t.iterator();i.hasNext();)n.push(i.next());for(;!n.isEmpty();){var r=n.pop();for(Ir.deleteAllEdges(r),i=r.getOutEdges().getEdges().iterator();i.hasNext();){var o=i.next();o.setMarked(!0);var a=o.getSym();null!==a&&a.setMarked(!0);var s=o.getEdge();e.add(s.getLine());var l=o.getToNode();1===Ir.getDegreeNonDeleted(l)&&n.push(l)}}return e},interfaces_:function(){return[]},getClass:function(){return Ir}}),Ir.findLabeledEdgeRings=function(t){for(var e=new w,n=1,i=t.iterator();i.hasNext();){var r=i.next();if(!(r.isMarked()||r.getLabel()>=0)){e.add(r);var o=Dr.findDirEdgesInRing(r);Ir.label(o,n),n++}}return e},Ir.getDegreeNonDeleted=function(t){for(var e=0,n=t.getOutEdges().getEdges().iterator();n.hasNext();)n.next().isMarked()||e++;return e},Ir.deleteAllEdges=function(t){for(var e=t.getOutEdges().getEdges().iterator();e.hasNext();){var n=e.next();n.setMarked(!0);var i=n.getSym();null!==i&&i.setMarked(!0)}},Ir.label=function(t,e){for(var n=t.iterator();n.hasNext();)n.next().setLabel(e)},Ir.computeNextCWEdges=function(t){for(var e=null,n=null,i=t.getOutEdges().getEdges().iterator();i.hasNext();){var r=i.next();r.isMarked()||(null===e&&(e=r),null!==n&&n.getSym().setNext(r),n=r)}null!==n&&n.getSym().setNext(e)},Ir.computeNextCCWEdges=function(t,e){for(var n=null,i=null,r=t.getOutEdges().getEdges(),o=r.size()-1;o>=0;o--){var a=r.get(o),s=a.getSym(),l=null;a.getLabel()===e&&(l=a);var u=null;s.getLabel()===e&&(u=s),null===l&&null===u||(null!==u&&(i=u),null!==l&&(null!==i&&(i.setNext(l),i=null),null===n&&(n=l)))}null!==i&&(h.isTrue(null!==n),i.setNext(n))},Ir.getDegree=function(t,e){for(var n=0,i=t.getOutEdges().getEdges().iterator();i.hasNext();)i.next().getLabel()===e&&n++;return n},Ir.findIntersectionNodes=function(t,e){var n=t,i=null;do{var r=n.getFromNode();Ir.getDegree(r,e)>1&&(null===i&&(i=new w),i.add(r)),n=n.getNext(),h.isTrue(null!==n,"found null DE in ring"),h.isTrue(n===t||!n.isInRing(),"found DE already in ring")}while(n!==t);return i},e(Nr.prototype,{getGeometry:function(){return null===this.geomFactory&&(this.geomFactory=new Wt),this.polygonize(),this.extractOnlyPolygonal?this.geomFactory.buildGeometry(this.polyList):this.geomFactory.createGeometryCollection(Wt.toGeometryArray(this.polyList))},getInvalidRingLines:function(){return this.polygonize(),this.invalidRingLines},findValidRings:function(t,e,n){for(var i=t.iterator();i.hasNext();){var r=i.next();r.isValid()?e.add(r):n.add(r.getLineString())}},polygonize:function(){if(null!==this.polyList)return null;if(this.polyList=new w,null===this.graph)return null;this.dangles=this.graph.deleteDangles(),this.cutEdges=this.graph.deleteCutEdges();var t=this.graph.getEdgeRings(),e=new w;this.invalidRingLines=new w,this.isCheckingRingsValid?this.findValidRings(t,e,this.invalidRingLines):e=t,this.findShellsAndHoles(e),Nr.assignHolesToShells(this.holeList,this.shellList),Jo.sort(this.shellList,new Dr.EnvelopeComparator);var n=!0;this.extractOnlyPolygonal&&(Nr.findDisjointShells(this.shellList),n=!1),this.polyList=Nr.extractPolygons(this.shellList,n)},getDangles:function(){return this.polygonize(),this.dangles},getCutEdges:function(){return this.polygonize(),this.cutEdges},getPolygons:function(){return this.polygonize(),this.polyList},add:function(){if(M(arguments[0],g))for(var t=arguments[0],e=t.iterator();e.hasNext();){var n=e.next();this.add(n)}else if(arguments[0]instanceof kt){var i=arguments[0];this.geomFactory=i.getFactory(),null===this.graph&&(this.graph=new Ir(this.geomFactory)),this.graph.addEdge(i)}else if(arguments[0]instanceof Y){var r=arguments[0];r.apply(this.lineStringAdder)}},setCheckRingsValid:function(t){this.isCheckingRingsValid=t},findShellsAndHoles:function(t){this.holeList=new w,this.shellList=new w;for(var e=t.iterator();e.hasNext();){var n=e.next();n.computeHole(),n.isHole()?this.holeList.add(n):this.shellList.add(n)}},interfaces_:function(){return[]},getClass:function(){return Nr}}),Nr.findOuterShells=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),i=n.getOuterHole();null===i||i.isProcessed()||(n.setIncluded(!0),i.setProcessed(!0))}},Nr.extractPolygons=function(t,e){for(var n=new w,i=t.iterator();i.hasNext();){var r=i.next();(e||r.isIncluded())&&n.add(r.getPolygon())}return n},Nr.assignHolesToShells=function(t,e){for(var n=t.iterator();n.hasNext();){var i=n.next();Nr.assignHoleToShell(i,e)}},Nr.assignHoleToShell=function(t,e){var n=Dr.findEdgeRingContaining(t,e);null!==n&&n.addHole(t)},Nr.findDisjointShells=function(t){Nr.findOuterShells(t);var e=null;do{e=!1;for(var n=t.iterator();n.hasNext();){var i=n.next();i.isIncludedSet()||(i.updateIncluded(),i.isIncludedSet()||(e=!0))}}while(e)},e(Rr.prototype,{filter:function(t){t instanceof kt&&this.p.add(t)},interfaces_:function(){return[z]},getClass:function(){return Rr}}),Nr.LineStringAdder=Rr;var pa=Object.freeze({Polygonizer:Nr});e(jr.prototype,{insertEdgeEnds:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.nodes.add(n)}},computeProperIntersectionIM:function(t,e){var n=this.arg[0].getGeometry().getDimension(),i=this.arg[1].getGeometry().getDimension(),r=t.hasProperIntersection(),o=t.hasProperInteriorIntersection();2===n&&2===i?r&&e.setAtLeast("212101212"):2===n&&1===i?(r&&e.setAtLeast("FFF0FFFF2"),o&&e.setAtLeast("1FFFFF1FF")):1===n&&2===i?(r&&e.setAtLeast("F0FFFFFF2"),o&&e.setAtLeast("1F1FFFFFF")):1===n&&1===i&&o&&e.setAtLeast("0FFFFFFFF")},labelIsolatedEdges:function(t,e){for(var n=this.arg[t].getEdgeIterator();n.hasNext();){var i=n.next();i.isIsolated()&&(this.labelIsolatedEdge(i,e,this.arg[e].getGeometry()),this.isolatedEdges.add(i))}},labelIsolatedEdge:function(t,e,n){if(n.getDimension()>0){var i=this.ptLocator.locate(t.getCoordinate(),n);t.getLabel().setAllLocations(e,i)}else t.getLabel().setAllLocations(e,S.EXTERIOR)},computeIM:function(){var t=new ee;if(t.set(S.EXTERIOR,S.EXTERIOR,2),!this.arg[0].getGeometry().getEnvelopeInternal().intersects(this.arg[1].getGeometry().getEnvelopeInternal()))return this.computeDisjointIM(t),t;this.arg[0].computeSelfNodes(this.li,!1),this.arg[1].computeSelfNodes(this.li,!1);var e=this.arg[0].computeEdgeIntersections(this.arg[1],this.li,!1);this.computeIntersectionNodes(0),this.computeIntersectionNodes(1),this.copyNodesAndLabels(0),this.copyNodesAndLabels(1),this.labelIsolatedNodes(),this.computeProperIntersectionIM(e,t);var n=new xr,i=n.computeEdgeEnds(this.arg[0].getEdgeIterator());this.insertEdgeEnds(i);var r=n.computeEdgeEnds(this.arg[1].getEdgeIterator());return this.insertEdgeEnds(r),this.labelNodeEdges(),this.labelIsolatedEdges(0,1),this.labelIsolatedEdges(1,0),this.updateIM(t),t},labelNodeEdges:function(){for(var t=this.nodes.iterator();t.hasNext();)t.next().getEdges().computeLabelling(this.arg)},copyNodesAndLabels:function(t){for(var e=this.arg[t].getNodeIterator();e.hasNext();){var n=e.next();this.nodes.addNode(n.getCoordinate()).setLabel(t,n.getLabel().getLocation(t))}},labelIntersectionNodes:function(t){for(var e=this.arg[t].getEdgeIterator();e.hasNext();)for(var n=e.next(),i=n.getLabel().getLocation(t),r=n.getEdgeIntersectionList().iterator();r.hasNext();){var o=r.next(),a=this.nodes.find(o.coord);a.getLabel().isNull(t)&&(i===S.BOUNDARY?a.setLabelBoundary(t):a.setLabel(t,S.INTERIOR))}},labelIsolatedNode:function(t,e){var n=this.ptLocator.locate(t.getCoordinate(),this.arg[e].getGeometry());t.getLabel().setAllLocations(e,n)},computeIntersectionNodes:function(t){for(var e=this.arg[t].getEdgeIterator();e.hasNext();)for(var n=e.next(),i=n.getLabel().getLocation(t),r=n.getEdgeIntersectionList().iterator();r.hasNext();){var o=r.next(),a=this.nodes.addNode(o.coord);i===S.BOUNDARY?a.setLabelBoundary(t):a.getLabel().isNull(t)&&a.setLabel(t,S.INTERIOR)}},labelIsolatedNodes:function(){for(var t=this.nodes.iterator();t.hasNext();){var e=t.next(),n=e.getLabel();h.isTrue(n.getGeometryCount()>0,"node with empty label found"),e.isIsolated()&&(n.isNull(0)?this.labelIsolatedNode(e,0):this.labelIsolatedNode(e,1))}},updateIM:function(t){for(var e=this.isolatedEdges.iterator();e.hasNext();)e.next().updateIM(t);for(var n=this.nodes.iterator();n.hasNext();){var i=n.next();i.updateIM(t),i.updateIMFromEdges(t)}},computeDisjointIM:function(t){var e=this.arg[0].getGeometry();e.isEmpty()||(t.set(S.INTERIOR,S.EXTERIOR,e.getDimension()),t.set(S.BOUNDARY,S.EXTERIOR,e.getBoundaryDimension()));var n=this.arg[1].getGeometry();n.isEmpty()||(t.set(S.EXTERIOR,S.INTERIOR,n.getDimension()),t.set(S.EXTERIOR,S.BOUNDARY,n.getBoundaryDimension()))},interfaces_:function(){return[]},getClass:function(){return jr}}),e(zr.prototype,{isContainedInBoundary:function(t){if(t instanceof Mt)return!1;if(t instanceof Lt)return this.isPointContainedInBoundary(t);if(t instanceof kt)return this.isLineStringContainedInBoundary(t);for(var e=0;e0){var i=t;t=e,e=i}var r=!1;return e.y>t.y&&(r=!0),r?this.li.computeIntersection(t,e,this.diagDown0,this.diagDown1):this.li.computeIntersection(t,e,this.diagUp0,this.diagUp1),!!this.li.hasIntersection()},interfaces_:function(){return[]},getClass:function(){return Yr}}),e(Fr.prototype,{applyTo:function(t){for(var e=0;e=this.rectEnv.getMinX()&&e.getMaxX()<=this.rectEnv.getMaxX()||e.getMinY()>=this.rectEnv.getMinY()&&e.getMaxY()<=this.rectEnv.getMaxY()?(this._intersects=!0,null):void 0:null},intersects:function(){return this._intersects},interfaces_:function(){return[]},getClass:function(){return $r}}),c(Hr,Fr),e(Hr.prototype,{isDone:function(){return!0===this._containsPoint},visit:function(t){if(!(t instanceof Mt))return null;var e=t.getEnvelopeInternal();if(!this.rectEnv.intersects(e))return null;for(var n=new f,i=0;i<4;i++)if(this.rectSeq.getCoordinate(i,n),e.contains(n)&&gn.containsPointInPolygon(n,t))return this._containsPoint=!0,null},containsPoint:function(){return this._containsPoint},interfaces_:function(){return[]},getClass:function(){return Hr}}),c(Ur,Fr),e(Ur.prototype,{intersects:function(){return this.hasIntersection},isDone:function(){return!0===this.hasIntersection},visit:function(t){var e=t.getEnvelopeInternal();if(!this.rectEnv.intersects(e))return null;var n=On.getLines(t);this.checkIntersectionWithLineStrings(n)},checkIntersectionWithLineStrings:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();if(this.checkIntersectionWithSegments(n),this.hasIntersection)return null}},checkIntersectionWithSegments:function(t){for(var e=t.getCoordinateSequence(),n=1;n=t.size()?null:t.get(e)},Zr.union=function(t){return new Zr(t).union()},Zr.STRTREE_NODE_CAPACITY=4,e(Xr.prototype,{unionNoOpt:function(t){var e=this.geomFact.createPoint();return Gn.overlayOp(t,e,Vn.UNION)},unionWithNull:function(t,e){return null===t&&null===e?null:null===e?t:null===t?e:t.union(e)},extract:function(){if(M(arguments[0],g))for(var t=arguments[0],e=t.iterator();e.hasNext();){var n=e.next();this.extract(n)}else if(arguments[0]instanceof Y){var i=arguments[0];null===this.geomFact&&(this.geomFact=i.getFactory()),qr.extract(i,Y.SORTINDEX_POLYGON,this.polygons),qr.extract(i,Y.SORTINDEX_LINESTRING,this.lines),qr.extract(i,Y.SORTINDEX_POINT,this.points)}},union:function(){if(null===this.geomFact)return null;var t=null;if(this.points.size()>0){var e=this.geomFact.buildGeometry(this.points);t=this.unionNoOpt(e)}var n=null;if(this.lines.size()>0){var i=this.geomFact.buildGeometry(this.lines);n=this.unionNoOpt(i)}var r=null;this.polygons.size()>0&&(r=Zr.union(this.polygons));var o=this.unionWithNull(n,r),a=null;return a=null===t?o:null===o?t:Gr.union(t,o),null===a?this.geomFact.createGeometryCollection():a},interfaces_:function(){return[]},getClass:function(){return Xr}}),Xr.union=function(){if(1===arguments.length){if(M(arguments[0],g)){var t=arguments[0];return new Xr(t).union()}if(arguments[0]instanceof Y){var e=arguments[0];return new Xr(e).union()}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return new Xr(n,i).union()}};var ga=Object.freeze({UnaryUnionOp:Xr}),va=Object.freeze({IsValidOp:Pr,ConsistentAreaTester:Tr}),ya=Object.freeze({BoundaryOp:pt,IsSimpleOp:Ii,buffer:ca,distance:da,linemerge:ha,overlay:fa,polygonize:pa,relate:ma,union:ga,valid:va});c(Jr,Pt.CoordinateOperation),e(Jr.prototype,{editCoordinates:function(t,e){if(0===t.length)return null;for(var n=new Array(t.length).fill(null),i=0;i=2&&(n=!0),e.edit(t,new Jr(this.targetPM,n))},changePM:function(t,e){return this.createEditor(t.getFactory(),e).edit(t,new Pt.NoOpGeometryOperation)},setRemoveCollapsedComponents:function(t){this.removeCollapsed=t},createFactory:function(t,e){return new Wt(e,t.getSRID(),t.getCoordinateSequenceFactory())},setChangePrecisionModel:function(t){this.changePrecisionModel=t},reduce:function(t){var e=this.reducePointwise(t);return this.isPointwise?e:M(e,St)?e.isValid()?e:this.fixPolygonalTopology(e):e},setPointwise:function(t){this.isPointwise=t},createEditor:function(t,e){return t.getPrecisionModel()===e?new Pt:new Pt(this.createFactory(t,e))},interfaces_:function(){return[]},getClass:function(){return Kr}}),Kr.reduce=function(t,e){return new Kr(e).reduce(t)},Kr.reducePointwise=function(t,e){var n=new Kr(e);return n.setPointwise(!0),n.reduce(t)};var _a=Object.freeze({GeometryPrecisionReducer:Kr});e(Qr.prototype,{simplifySection:function(t,e){if(t+1===e)return null;this.seg.p0=this.pts[t],this.seg.p1=this.pts[e];for(var n=-1,i=t,r=t+1;rn&&(n=o,i=r)}if(n<=this.distanceTolerance)for(r=t+1;rthis.distanceTolerance&&(o=!1);var l=new te;if(l.p0=this.linePts[t],l.p1=this.linePts[e],i[0]=t,i[1]=e,this.hasBadIntersection(this.line,i,l)&&(o=!1),o)return r=this.flatten(t,e),this.line.addToResult(r),null;this.simplifySection(t,s,n),this.simplifySection(s,e,n)},hasBadOutputIntersection:function(t){for(var e=this.outputIndex.query(t).iterator();e.hasNext();){var n=e.next();if(this.hasInteriorIntersection(n,t))return!0}return!1},findFurthestPoint:function(t,e,n,i){var r=new te;r.p0=t[e],r.p1=t[n];for(var o=-1,a=e,s=e+1;so&&(o=u,a=s)}return i[0]=o,a},simplify:function(t){this.line=t,this.linePts=t.getParentCoordinates(),this.simplifySection(0,this.linePts.length-1,0)},remove:function(t,e,n){for(var i=e;i=e[0]&&ii&&(a=i),r.setMinimumLength(a),r.splitAt(o),r.getSplitPoint()},interfaces_:function(){return[fo]},getClass:function(){return po}}),po.projectedSplitPoint=function(t,e){return t.getLineSegment().project(e)},e(mo.prototype,{interfaces_:function(){return[]},getClass:function(){return mo}}),mo.triArea=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)},mo.isInCircleDDNormalized=function(t,e,n,i){var r=D.valueOf(t.x).selfSubtract(i.x),o=D.valueOf(t.y).selfSubtract(i.y),a=D.valueOf(e.x).selfSubtract(i.x),s=D.valueOf(e.y).selfSubtract(i.y),l=D.valueOf(n.x).selfSubtract(i.x),u=D.valueOf(n.y).selfSubtract(i.y),c=r.multiply(s).selfSubtract(a.multiply(o)),d=a.multiply(u).selfSubtract(l.multiply(s)),h=l.multiply(o).selfSubtract(r.multiply(u)),f=r.multiply(r).selfAdd(o.multiply(o)),p=a.multiply(a).selfAdd(s.multiply(s)),m=l.multiply(l).selfAdd(u.multiply(u));return f.selfMultiply(d).selfAdd(p.selfMultiply(h)).selfAdd(m.selfMultiply(c)).doubleValue()>0},mo.checkRobustInCircle=function(t,e,n,i){var r=mo.isInCircleNonRobust(t,e,n,i),o=mo.isInCircleDDSlow(t,e,n,i),a=mo.isInCircleCC(t,e,n,i),s=di.circumcentre(t,e,n);N.out.println("p radius diff a = "+Math.abs(i.distance(s)-t.distance(s))/t.distance(s)),r===o&&r===a||(N.out.println("inCircle robustness failure (double result = "+r+", DD result = "+o+", CC result = "+a+")"),N.out.println(qt.toLineString(new Rt([t,e,n,i]))),N.out.println("Circumcentre = "+qt.toPoint(s)+" radius = "+t.distance(s)),N.out.println("p radius diff a = "+Math.abs(i.distance(s)/t.distance(s)-1)),N.out.println("p radius diff b = "+Math.abs(i.distance(s)/e.distance(s)-1)),N.out.println("p radius diff c = "+Math.abs(i.distance(s)/n.distance(s)-1)),N.out.println())},mo.isInCircleDDFast=function(t,e,n,i){var r=D.sqr(t.x).selfAdd(D.sqr(t.y)).selfMultiply(mo.triAreaDDFast(e,n,i)),o=D.sqr(e.x).selfAdd(D.sqr(e.y)).selfMultiply(mo.triAreaDDFast(t,n,i)),a=D.sqr(n.x).selfAdd(D.sqr(n.y)).selfMultiply(mo.triAreaDDFast(t,e,i)),s=D.sqr(i.x).selfAdd(D.sqr(i.y)).selfMultiply(mo.triAreaDDFast(t,e,n));return r.selfSubtract(o).selfAdd(a).selfSubtract(s).doubleValue()>0},mo.isInCircleCC=function(t,e,n,i){var r=di.circumcentre(t,e,n),o=t.distance(r);return i.distance(r)-o<=0},mo.isInCircleNormalized=function(t,e,n,i){var r=t.x-i.x,o=t.y-i.y,a=e.x-i.x,s=e.y-i.y,l=n.x-i.x,u=n.y-i.y;return(r*r+o*o)*(a*u-l*s)+(a*a+s*s)*(l*o-r*u)+(l*l+u*u)*(r*s-a*o)>0},mo.isInCircleDDSlow=function(t,e,n,i){var r=D.valueOf(i.x),o=D.valueOf(i.y),a=D.valueOf(t.x),s=D.valueOf(t.y),l=D.valueOf(e.x),u=D.valueOf(e.y),c=D.valueOf(n.x),d=D.valueOf(n.y),h=a.multiply(a).add(s.multiply(s)).multiply(mo.triAreaDDSlow(l,u,c,d,r,o)),f=l.multiply(l).add(u.multiply(u)).multiply(mo.triAreaDDSlow(a,s,c,d,r,o)),p=c.multiply(c).add(d.multiply(d)).multiply(mo.triAreaDDSlow(a,s,l,u,r,o)),m=r.multiply(r).add(o.multiply(o)).multiply(mo.triAreaDDSlow(a,s,l,u,c,d));return h.subtract(f).add(p).subtract(m).doubleValue()>0},mo.isInCircleNonRobust=function(t,e,n,i){return(t.x*t.x+t.y*t.y)*mo.triArea(e,n,i)-(e.x*e.x+e.y*e.y)*mo.triArea(t,n,i)+(n.x*n.x+n.y*n.y)*mo.triArea(t,e,i)-(i.x*i.x+i.y*i.y)*mo.triArea(t,e,n)>0},mo.isInCircleRobust=function(t,e,n,i){return mo.isInCircleNormalized(t,e,n,i)},mo.triAreaDDSlow=function(t,e,n,i,r,o){return n.subtract(t).multiply(o.subtract(e)).subtract(i.subtract(e).multiply(r.subtract(t)))},mo.triAreaDDFast=function(t,e,n){var i=D.valueOf(e.x).selfSubtract(t.x).selfMultiply(D.valueOf(n.y).selfSubtract(t.y)),r=D.valueOf(e.y).selfSubtract(t.y).selfMultiply(D.valueOf(n.x).selfSubtract(t.x));return i.selfSubtract(r)},e(go.prototype,{circleCenter:function(t,e){var n,i=new go(this.getX(),this.getY()),r=new R(this.bisector(i,t),this.bisector(t,e)),o=null;try{o=new go(r.getX(),r.getY())}catch(n){if(!(n instanceof L))throw n;N.err.println("a: "+i+" b: "+t+" c: "+e),N.err.println(n)}return o},dot:function(t){return this.p.x*t.getX()+this.p.y*t.getY()},magn:function(){return Math.sqrt(this.p.x*this.p.x+this.p.y*this.p.y)},getZ:function(){return this.p.z},bisector:function(t,e){var n=e.getX()-t.getX(),i=e.getY()-t.getY(),r=new R(t.getX()+n/2,t.getY()+i/2,1),o=new R(t.getX()-i+n/2,t.getY()+n+i/2,1);return new R(r,o)},equals:function(){if(1===arguments.length){var t=arguments[0];return this.p.x===t.getX()&&this.p.y===t.getY()}if(2===arguments.length){var e=arguments[0],n=arguments[1];return this.p.distance(e.getCoordinate())0},getX:function(){return this.p.x},crossProduct:function(t){return this.p.x*t.getY()-this.p.y*t.getX()},setZ:function(t){this.p.z=t},times:function(t){return new go(t*this.p.x,t*this.p.y)},cross:function(){return new go(this.p.y,-this.p.x)},leftOf:function(t){return this.isCCW(t.orig(),t.dest())},toString:function(){return"POINT ("+this.p.x+" "+this.p.y+")"},sub:function(t){return new go(this.p.x-t.getX(),this.p.y-t.getY())},getY:function(){return this.p.y},classify:function(t,e){var n=this,i=e.sub(t),r=n.sub(t),o=i.crossProduct(r);return o>0?go.LEFT:o<0?go.RIGHT:i.getX()*r.getX()<0||i.getY()*r.getY()<0?go.BEHIND:i.magn()i?10*n:10*i,this.frameVertex[0]=new go((t.getMaxX()+t.getMinX())/2,t.getMaxY()+e),this.frameVertex[1]=new go(t.getMinX()-e,t.getMinY()-e),this.frameVertex[2]=new go(t.getMaxX()+e,t.getMinY()-e),this.frameEnv=new k(this.frameVertex[0].getCoordinate(),this.frameVertex[1].getCoordinate()),this.frameEnv.expandToInclude(this.frameVertex[2].getCoordinate())},getTriangleCoordinates:function(t){var e=new To;return this.visitTriangles(e,t),e.getTriangles()},getVertices:function(t){for(var e=new K,n=this.quadEdges.iterator();n.hasNext();){var i=n.next(),r=i.orig();!t&&this.isFrameVertex(r)||e.add(r);var o=i.dest();!t&&this.isFrameVertex(o)||e.add(o)}return e},fetchTriangleToVisit:function(t,e,n,i){var r=t,o=0,a=!1;do{this.triEdges[o]=r,this.isFrameEdge(r)&&(a=!0);var s=r.sym();i.contains(s)||e.push(s),i.add(r),o++,r=r.lNext()}while(r!==t);return a&&!n?null:this.triEdges},getEdges:function(){if(0===arguments.length)return this.quadEdges;if(1===arguments.length){for(var t=arguments[0],e=this.getPrimaryEdges(!1),n=new Array(e.size()).fill(null),i=0,r=e.iterator();r.hasNext();){var o=r.next();n[i++]=t.createLineString([o.orig().getCoordinate(),o.dest().getCoordinate()])}return t.createMultiLineString(n)}},getVertexUniqueEdges:function(t){for(var e=new w,n=new K,i=this.quadEdges.iterator();i.hasNext();){var r=i.next(),o=r.orig();n.contains(o)||(n.add(o),!t&&this.isFrameVertex(o)||e.add(r));var a=r.sym(),s=a.orig();n.contains(s)||(n.add(s),!t&&this.isFrameVertex(s)||e.add(a))}return e},getTriangleEdges:function(t){var e=new So;return this.visitTriangles(e,t),e.getTriangleEdges()},getPrimaryEdges:function(t){this.visitedKey++;var e=new w,n=new re;n.push(this.startingEdge);for(var i=new K;!n.empty();){var r=n.pop();if(!i.contains(r)){var o=r.getPrimary();!t&&this.isFrameEdge(o)||e.add(o),n.push(r.oNext()),n.push(r.sym().oNext()),i.add(r),i.add(r.sym())}}return e},delete:function(t){yo.splice(t,t.oPrev()),yo.splice(t.sym(),t.sym().oPrev());var e=t.sym(),n=t.rot(),i=t.rot().sym();this.quadEdges.remove(t),this.quadEdges.remove(e),this.quadEdges.remove(n),this.quadEdges.remove(i),t.delete(),e.delete(),n.delete(),i.delete()},locateFromEdge:function(t,e){for(var n=0,i=this.quadEdges.size(),r=e;;){if(++n>i)throw new xo(r.toLineSegment());if(t.equals(r.orig())||t.equals(r.dest()))break;if(t.rightOf(r))r=r.sym();else if(t.rightOf(r.oNext())){if(t.rightOf(r.dPrev()))break;r=r.dPrev()}else r=r.oNext()}return r},getTolerance:function(){return this.tolerance},getVoronoiCellPolygons:function(t){this.visitTriangles(new Lo,!0);for(var e=new w,n=this.getVertexUniqueEdges(!1).iterator();n.hasNext();){var i=n.next();e.add(this.getVoronoiCellPolygon(i,t))}return e},getVoronoiDiagram:function(t){var e=this.getVoronoiCellPolygons(t);return t.createGeometryCollection(Wt.toGeometryArray(e))},getTriangles:function(t){for(var e=this.getTriangleCoordinates(!1),n=new Array(e.size()).fill(null),i=0,r=e.iterator();r.hasNext();){var o=r.next();n[i++]=t.createPolygon(t.createLinearRing(o),null)}return t.createGeometryCollection(n)},insertSite:function(t){var e=this.locate(t);if(t.equals(e.orig(),this.tolerance)||t.equals(e.dest(),this.tolerance))return e;var n=this.makeEdge(e.orig(),t);yo.splice(n,e);var i=n;do{e=(n=this.connect(e,n.sym())).oPrev()}while(e.lNext()!==i);return i},locate:function(){if(1===arguments.length){if(arguments[0]instanceof go){var t=arguments[0];return this.locator.locate(t)}if(arguments[0]instanceof f){var e=arguments[0];return this.locator.locate(new go(e))}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=this.locator.locate(new go(n));if(null===r)return null;var o=r;r.dest().getCoordinate().equals2D(n)&&(o=r.sym());var a=o;do{if(a.dest().getCoordinate().equals2D(i))return a;a=a.oNext()}while(a!==o);return null}},interfaces_:function(){return[]},getClass:function(){return Co}}),Co.getTriangleEdges=function(t,e){if(e[0]=t,e[1]=e[0].lNext(),e[2]=e[1].lNext(),e[2].lNext()!==e[0])throw new i("Edges do not form a triangle")},e(Lo.prototype,{visit:function(t){for(var e=t[0].orig().getCoordinate(),n=t[1].orig().getCoordinate(),i=t[2].orig().getCoordinate(),r=new go(di.circumcentre(e,n,i)),o=0;o<3;o++)t[o].rot().setOrig(r)},interfaces_:function(){return[ko]},getClass:function(){return Lo}}),e(So.prototype,{getTriangleEdges:function(){return this.triList},visit:function(t){this.triList.add(t.clone())},interfaces_:function(){return[ko]},getClass:function(){return So}}),e(Mo.prototype,{visit:function(t){this.triList.add([t[0].orig(),t[1].orig(),t[2].orig()])},getTriangleVertices:function(){return this.triList},interfaces_:function(){return[ko]},getClass:function(){return Mo}}),e(To.prototype,{checkTriangleSize:function(t){t.length>=2?qt.toLineString(t[0],t[1]):t.length>=1&&qt.toPoint(t[0])},visit:function(t){this.coordList.clear();for(var e=0;e<3;e++){var n=t[e].orig();this.coordList.add(n.getCoordinate())}if(this.coordList.size()>0){this.coordList.closeRing();var i=this.coordList.toCoordinateArray();if(4!==i.length)return null;this.triCoords.add(i)}},getTriangles:function(){return this.triCoords},interfaces_:function(){return[ko]},getClass:function(){return To}}),Co.TriangleCircumcentreVisitor=Lo,Co.TriangleEdgesListVisitor=So,Co.TriangleVertexListVisitor=Mo,Co.TriangleCoordinatesVisitor=To,Co.EDGE_COINCIDENCE_TOL_FACTOR=1e3,e(Eo.prototype,{getLineSegment:function(){return this.ls},getEndZ:function(){return this.ls.getCoordinate(1).z},getStartZ:function(){return this.ls.getCoordinate(0).z},intersection:function(t){return this.ls.intersection(t.getLineSegment())},getStart:function(){return this.ls.getCoordinate(0)},getEnd:function(){return this.ls.getCoordinate(1)},getEndY:function(){return this.ls.getCoordinate(1).y},getStartX:function(){return this.ls.getCoordinate(0).x},equalsTopo:function(t){return this.ls.equalsTopo(t.getLineSegment())},getStartY:function(){return this.ls.getCoordinate(0).y},setData:function(t){this.data=t},getData:function(){return this.data},getEndX:function(){return this.ls.getCoordinate(1).x},toString:function(){return this.ls.toString()},interfaces_:function(){return[]},getClass:function(){return Eo}}),e(Oo.prototype,{visit:function(t){},interfaces_:function(){return[]},getClass:function(){return Oo}}),e(Po.prototype,{isRepeated:function(){return this.count>1},getRight:function(){return this.right},getCoordinate:function(){return this.p},setLeft:function(t){this.left=t},getX:function(){return this.p.x},getData:function(){return this.data},getCount:function(){return this.count},getLeft:function(){return this.left},getY:function(){return this.p.y},increment:function(){this.count=this.count+1},setRight:function(t){this.right=t},interfaces_:function(){return[]},getClass:function(){return Po}}),e(Do.prototype,{insert:function(){if(1===arguments.length){var t=arguments[0];return this.insert(t,null)}if(2===arguments.length){var e=arguments[0],n=arguments[1];if(null===this.root)return this.root=new Po(e,n),this.root;if(this.tolerance>0){var i=this.findBestMatchNode(e);if(null!==i)return i.increment(),i}return this.insertExact(e,n)}},query:function(){var t=arguments,e=this;if(1===arguments.length){var n=arguments[0],i=new w;return this.query(n,i),i}if(2===arguments.length)if(arguments[0]instanceof k&&M(arguments[1],y))!function(){var n=t[0],i=t[1];e.queryNode(e.root,n,!0,{interfaces_:function(){return[Oo]},visit:function(t){i.add(t)}})}();else if(arguments[0]instanceof k&&M(arguments[1],Oo)){var r=arguments[0],o=arguments[1];this.queryNode(this.root,r,!0,o)}},queryNode:function(t,e,n,i){if(null===t)return null;var r=null,o=null,a=null;n?(r=e.getMinX(),o=e.getMaxX(),a=t.getX()):(r=e.getMinY(),o=e.getMaxY(),a=t.getY());var s=a<=o;r0&&te)&&ar.isWithinDistance(this,t,e)},distance:function(t){return ar.distance(this,t)},isEquivalentClass:function(t){return this.getClass()===t.getClass()}}),t.version="1.3.0 (6e65adb)",t.algorithm=Ko,t.densify=Qo,t.dissolve=ta,t.geom=Xo,t.geomgraph=ea,t.index=ra,t.io=la,t.noding=ua,t.operation=ya,t.precision=_a,t.simplify=ba,t.triangulate=xa,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],29:[function(t,e,n){var i=t("@turf/meta").coordEach,r=t("@turf/centroid"),o=t("@turf/convex"),a=t("@turf/explode"),s=t("@turf/helpers").point;e.exports=function(t){if("Feature"===t.type&&"Polygon"===t.geometry.type){var n=[];i(t,(function(t){n.push(t)}));var l,u,c,d,h,f,p,m,g=r(t),v=g.geometry.coordinates,y=0,_=0,b=0,w=n.map((function(t){return[t[0]-v[0],t[1]-v[1]]}));for(l=0;l=3){for(var a=[],s=0;s0)-(t<0)},n.abs=function(t){var e=t>>31;return(t^e)-e},n.min=function(t,e){return e^(t^e)&-(t65535)<<4,e|=n=((t>>>=e)>255)<<3,e|=n=((t>>>=n)>15)<<2,(e|=n=((t>>>=n)>3)<<1)|(t>>>=n)>>1},n.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},n.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},n.countTrailingZeros=i,n.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,1+(t|=t>>>16)},n.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},n.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var r=new Array(256);!function(t){for(var e=0;e<256;++e){var n=e,i=e,r=7;for(n>>>=1;n;n>>>=1)i<<=1,i|=1&n,--r;t[e]=i<>>8&255]<<16|r[t>>>16&255]<<8|r[t>>>24&255]},n.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},n.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},n.interleave3=function(t,e,n){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(n=1227133513&((n=3272356035&((n=251719695&((n=4278190335&((n&=1023)|n<<16))|n<<8))|n<<4))|n<<2))<<2},n.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},n.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>i(t)+1}},{}],38:[function(t,e,n){"use strict";var i=t("./lib/ch1d"),r=t("./lib/ch2d"),o=t("./lib/chnd");e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var n=t[0].length;return 0===n?[]:1===n?i(t):2===n?r(t):o(t,n)}},{"./lib/ch1d":39,"./lib/ch2d":40,"./lib/chnd":41}],39:[function(t,e,n){"use strict";e.exports=function(t){for(var e=0,n=0,i=1;it[n][0]&&(n=i);return en?[[n],[e]]:[[e]]}},{}],40:[function(t,e,n){"use strict";e.exports=function(t){var e=i(t),n=e.length;if(n<=2)return[];for(var r=new Array(n),o=e[n-1],a=0;a=e[l]&&(s+=1);o[a]=s}}return t}(i(o,!0),n)}};var i=t("incremental-convex-hull"),r=t("affine-hull")},{"affine-hull":36,"incremental-convex-hull":42}],42:[function(t,e,n){"use strict";e.exports=function(t,e){var n=t.length;if(0===n)throw new Error("Must have at least d+1 points");var r=t[0].length;if(n<=r)throw new Error("Must input at least d+1 points");var a=t.slice(0,r+1),s=i.apply(void 0,a);if(0===s)throw new Error("Input not in general position");for(var l=new Array(r+1),c=0;c<=r;++c)l[c]=c;s<0&&(l[0]=1,l[1]=0);var d=new o(l,new Array(r+1),!1),h=d.adjacent,f=new Array(r+2);for(c=0;c<=r;++c){for(var p=l.slice(),m=0;m<=r;++m)m===c&&(p[m]=-1);var g=p[0];p[0]=p[1],p[1]=g;var v=new o(p,new Array(r+1),!0);h[c]=v,f[c]=v}for(f[r+1]=d,c=0;c<=r;++c){p=h[c].vertices;var y=h[c].adjacent;for(m=0;m<=r;++m){var _=p[m];if(_<0)y[m]=d;else for(var b=0;b<=r;++b)h[b].vertices.indexOf(_)<0&&(y[m]=h[b])}}var w=new u(r,a,f),x=!!e;for(c=r+1;c0&&e.push(","),e.push("tuple[",n,"]");e.push(")}return orient");var r=new Function("test",e.join("")),o=i[t+1];return o||(o=i),r(o)}(t)),this.orient=o}var c=u.prototype;c.handleBoundaryDegeneracy=function(t,e){var n=this.dimension,i=this.vertices.length-1,r=this.tuple,o=this.vertices,a=[t];for(t.lastVisited=-i;a.length>0;){(t=a.pop()).vertices;for(var s=t.adjacent,l=0;l<=n;++l){var u=s[l];if(u.boundary&&!(u.lastVisited<=-i)){for(var c=u.vertices,d=0;d<=n;++d){var h=c[d];r[d]=h<0?e:o[h]}var f=this.orient();if(f>0)return u;u.lastVisited=-i,0===f&&a.push(u)}}}return null},c.walk=function(t,e){var n=this.vertices.length-1,i=this.dimension,r=this.vertices,o=this.tuple,a=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[a];t:for(;!s.boundary;){for(var l=s.vertices,u=s.adjacent,c=0;c<=i;++c)o[c]=r[l[c]];for(s.lastVisited=n,c=0;c<=i;++c){var d=u[c];if(!(d.lastVisited>=n)){var h=o[c];o[c]=t;var f=this.orient();if(o[c]=h,f<0){s=d;continue t}d.boundary?d.lastVisited=-n:d.lastVisited=n}}return}return s},c.addPeaks=function(t,e){var n=this.vertices.length-1,i=this.dimension,r=this.vertices,l=this.tuple,u=this.interior,c=this.simplices,d=[e];e.lastVisited=n,e.vertices[e.vertices.indexOf(-1)]=n,e.boundary=!1,u.push(e);for(var h=[];d.length>0;){var f=(e=d.pop()).vertices,p=e.adjacent,m=f.indexOf(n);if(!(m<0))for(var g=0;g<=i;++g)if(g!==m){var v=p[g];if(v.boundary&&!(v.lastVisited>=n)){var y=v.vertices;if(v.lastVisited!==-n){for(var _=0,b=0;b<=i;++b)y[b]<0?(_=b,l[b]=t):l[b]=r[y[b]];if(this.orient()>0){y[_]=n,v.boundary=!1,u.push(v),d.push(v),v.lastVisited=n;continue}v.lastVisited=-n}var w=v.adjacent,x=f.slice(),k=p.slice(),C=new o(x,k,!0);c.push(C);var L=w.indexOf(e);if(!(L<0))for(w[L]=C,k[m]=v,x[g]=-1,k[g]=e,p[g]=C,C.flip(),b=0;b<=i;++b){var S=x[b];if(!(S<0||S===n)){for(var M=new Array(i-1),T=0,E=0;E<=i;++E){var O=x[E];O<0||E===b||(M[T++]=O)}h.push(new a(M,C,b))}}}}}for(h.sort(s),g=0;g+1=0?a[l++]=s[c]:u=1&c;if(u===(1&t)){var d=a[0];a[0]=a[1],a[1]=d}e.push(a)}}return e}},{"robust-orientation":44,"simplicial-complex":48}],43:[function(t,e,n){"use strict";e.exports=function(t){var e=t.length;if(e<3){for(var n=new Array(e),r=0;r1&&i(t[a[c-2]],t[a[c-1]],u)<=0;)c-=1,a.pop();for(a.push(l),c=s.length;c>1&&i(t[s[c-2]],t[s[c-1]],u)>=0;)c-=1,s.pop();s.push(l)}n=new Array(s.length+a.length-2);for(var d=0,h=(r=0,a.length);r0;--f)n[d++]=s[f];return n};var i=t("robust-orientation")[3]},{"robust-orientation":44}],44:[function(t,e,n){"use strict";var i=t("two-product"),r=t("robust-sum"),o=t("robust-scale"),a=t("robust-subtract");function s(t,e){for(var n=new Array(t.length-1),i=1;i>1;return["sum(",l(t.slice(0,e)),",",l(t.slice(e)),")"].join("")}function u(t){if(2===t.length)return[["sum(prod(",t[0][0],",",t[1][1],"),prod(-",t[0][1],",",t[1][0],"))"].join("")];for(var e=[],n=0;n0){if(o<=0)return a;i=r+o}else{if(!(r<0))return a;if(o>=0)return a;i=-(r+o)}var s=33306690738754716e-32*i;return a>=s||a<=-s?a:d(t,e,n)},function(t,e,n,i){var r=t[0]-i[0],o=e[0]-i[0],a=n[0]-i[0],s=t[1]-i[1],l=e[1]-i[1],u=n[1]-i[1],c=t[2]-i[2],d=e[2]-i[2],f=n[2]-i[2],p=o*u,m=a*l,g=a*s,v=r*u,y=r*l,_=o*s,b=c*(p-m)+d*(g-v)+f*(y-_),w=7771561172376103e-31*((Math.abs(p)+Math.abs(m))*Math.abs(c)+(Math.abs(g)+Math.abs(v))*Math.abs(d)+(Math.abs(y)+Math.abs(_))*Math.abs(f));return b>w||-b>w?b:h(t,e,n,i)}];function p(t){var e=f[t.length];return e||(e=f[t.length]=c(t.length)),e.apply(void 0,t)}!function(){for(;f.length<=5;)f.push(c(f.length));for(var t=[],n=["slow"],i=0;i<=5;++i)t.push("a"+i),n.push("o"+i);var r=["function getOrientation(",t.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(i=2;i<=5;++i)r.push("case ",i,":return o",i,"(",t.slice(0,i).join(),");");r.push("}var s=new Array(arguments.length);for(var i=0;i=i?(r=d,(l+=1)=i?(r=d,(l+=1)>1,s=o(t[a],e);s<=0?(0===s&&(r=a),n=a+1):s>0&&(i=a-1)}return r}function c(t,e){for(var n=new Array(t.length),r=0,a=n.length;r=t.length||0!==o(t[g],s)););}return n}function d(t,e){if(e<0)return[];for(var n=[],r=(1<>>c&1&&u.push(r[c]);e.push(u)}return s(e)},n.skeleton=d,n.boundary=function(t){for(var e=[],n=0,i=t.length;nt[1]!=u>t[1]&&t[0]<(l-a)*(t[1]-s)/(u-s)+a&&(i=!i)}return i}e.exports=function(t,e){var n=i.getCoord(t),o=e.geometry.coordinates;"Polygon"===e.geometry.type&&(o=[o]);for(var a=0,s=!1;ae?1:0}e.exports=function t(e,n,o,a,s){for(o=o||0,a=a||e.length-1,s=s||r;a>o;){if(a-o>600){var l=a-o+1,u=n-o+1,c=Math.log(l),d=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*d*(l-d)/l)*(u-l/2<0?-1:1),f=Math.max(o,Math.floor(n-u*d/l+h)),p=Math.min(a,Math.floor(n+(l-u)*d/l+h));t(e,n,f,p,s)}var m=e[n],g=o,v=a;for(i(e,o,n),s(e[a],m)>0&&i(e,o,a);g0;)v--}0===s(e[o],m)?i(e,o,v):(v++,i(e,v,a)),v<=n&&(o=v+1),n<=v&&(a=v-1)}}},{}],75:[function(t,e,n){"use strict";e.exports=r;var i=t("quickselect");function r(t,e){if(!(this instanceof r))return new r(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function o(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i=t.minX&&e.maxY>=t.minY}function m(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,e,n,r,o){for(var a,s=[e,n];s.length;)(n=s.pop())-(e=s.pop())<=r||(a=e+Math.ceil((n-e)/r/2)*r,i(t,a,e,n,o),s.push(e,a,a,n))}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],i=this.toBBox;if(!p(t,e))return n;for(var r,o,a,s,l=[];e;){for(r=0,o=e.children.length;r=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(r,o,e)},_split:function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var o=this._chooseSplitIndex(n,r,i),s=m(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(t,e){this.data=m([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var i,r,o,a,l,u,c,h,f,p,m,g,v,y;for(u=c=1/0,i=e;i<=n-e;i++)r=s(t,0,i,this.toBBox),o=s(t,i,n,this.toBBox),f=r,p=o,m=void 0,g=void 0,v=void 0,y=void 0,m=Math.max(f.minX,p.minX),g=Math.max(f.minY,p.minY),v=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),a=Math.max(0,v-m)*Math.max(0,y-g),l=d(r)+d(o),a=e;r--)o=t.children[r],l(c,t.leaf?a(o):o),d+=h(c);return d},_adjustParentBBoxes:function(t,e,n){for(var i=n;i>=0;i--)l(e[i],t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():a(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},{quickselect:74}],76:[function(t,e,n){var i=t("@turf/meta");e.exports=function(t){var e={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}},n=Object.keys(e).reduce((function(t,e){return t[e.replace("Multi","")]=e,t}),{});function r(t,n,i){i?e[n].coordinates=e[n].coordinates.concat(t.geometry.coordinates):e[n].coordinates.push(t.geometry.coordinates),e[n].properties.push(t.properties)}return i.featureEach(t,(function(t){t.geometry&&(e[t.geometry.type]?r(t,t.geometry.type,!0):n[t.geometry.type]&&r(t,n[t.geometry.type],!1))})),{type:"FeatureCollection",features:Object.keys(e).filter((function(t){return e[t].coordinates.length})).sort().map((function(t){return{type:"Feature",properties:{collectedProperties:e[t].properties},geometry:{type:t,coordinates:e[t].coordinates}}}))}}},{"@turf/meta":77}],77:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],78:[function(t,e,n){var i=t("@turf/tin"),r=t("@turf/union"),o=t("@turf/distance");e.exports=function(t,e,n){if("number"!=typeof e)throw new Error("maxEdge parameter is required");var a=i(t),s=a.features.filter((function(t){var i=t.geometry.coordinates[0][0],r=t.geometry.coordinates[0][1],a=t.geometry.coordinates[0][2],s=o(i,r,n),l=o(r,a,n),u=o(i,a,n);return s<=e&&l<=e&&u<=e}));if(a.features=s,a.features.length<1)throw new Error("too few polygons found to compute concave hull");return function(t){for(var e=JSON.parse(JSON.stringify(t.features[0])),n=t.features,i=0,o=n.length;ip&&(p=t[c].y);var m,g=h-d,v=p-f,y=g>v?g:v,_=.5*(h+d),b=.5*(p+f),w=[new o({x:_-20*y,y:b-y,__sentinel:!0},{x:_,y:b+20*y,__sentinel:!0},{x:_+20*y,y:b-y,__sentinel:!0})],x=[],k=[];for(c=t.length;c--;){for(k.length=0,m=w.length;m--;)(g=t[c].x-w[m].x)>0&&g*g>w[m].r?(x.push(w[m]),w.splice(m,1)):(v=t[c].y-w[m].y,g*g+v*v>w[m].r||(k.push(w[m].a,w[m].b,w[m].b,w[m].c,w[m].c,w[m].a),w.splice(m,1)));for(s(k),m=k.length;m;)n=k[--m],e=k[--m],i=t[c],r=n.x-e.x,l=n.y-e.y,u=2*(r*(i.y-n.y)-l*(i.x-n.x)),Math.abs(u)>1e-12&&w.push(new o(e,n,i))}for(Array.prototype.push.apply(x,w),c=x.length;c--;)(x[c].a.__sentinel||x[c].b.__sentinel||x[c].c.__sentinel)&&x.splice(c,1);return x}(t.features.map((function(t){var n={x:t.geometry.coordinates[0],y:t.geometry.coordinates[1]};return e&&(n.z=t.properties[e]),n}))).map((function(t){return i([[[t.a.x,t.a.y],[t.b.x,t.b.y],[t.c.x,t.c.y],[t.a.x,t.a.y]]],{a:t.a.z,b:t.b.z,c:t.c.z})})))}},{"@turf/helpers":83}],83:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],84:[function(t,e,n){var i=t("jsts");e.exports=function(){for(var t=new i.io.GeoJSONReader,e=t.read(JSON.stringify(arguments[0].geometry)),n=1;n0&&0!==k)if(k>n[n.length-1])k-=n.length;else{var C=u.greaterNumber(k,n);0!==C&&(k-=C)}if(k!==g){var L=t.features[k];if(void 0===l(e)||L.properties[e]===v.properties[e]){var S=r(v,L);if(!S){var M=JSON.stringify(v),T=JSON.stringify(L),E=c(JSON.parse(M)),O=c(JSON.parse(T));S=s.lineStringsIntersect(E.geometry,O.geometry)}S&&(t.features[g]=i(v,L),n.push(b[x].origIndexPosition),n.sort((function(t,e){return t-e})),h.remove(b[x]),t.features.splice(k,1),_.origIndexPosition=g,h.remove(_,(function(t,e){return t.origIndexPosition===e.origIndexPosition})),w=!0)}}}if(w){var P=o(v);h.insert({minX:P[0],minY:P[1],maxX:P[2],maxY:P[3],origIndexPosition:g}),g--}}return t}},{"@turf/bbox":111,"@turf/union":113,"geojson-utils":115,"get-closest":116,rbush:118,"turf-overlaps":120}],111:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{"@turf/meta":112,dup:18}],112:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],113:[function(t,e,n){arguments[4][84][0].apply(n,arguments)},{dup:84,jsts:114}],114:[function(t,e,n){arguments[4][28][0].apply(n,arguments)},{dup:28}],115:[function(t,e,n){!function(){var t=this.gju={};function n(t){for(var e=[],n=[],i=0;ie!=i[o][0]>e&&t<(i[o][1]-i[r][1])*(e-i[r][0])/(i[o][0]-i[r][0])+i[r][1]&&(a=!a);return a}void 0!==e&&e.exports&&(e.exports=t),t.lineStringsIntersect=function(t,e){for(var n=[],i=0;i<=t.coordinates.length-2;++i)for(var r=0;r<=e.coordinates.length-2;++r){var o={x:t.coordinates[i][1],y:t.coordinates[i][0]},a={x:t.coordinates[i+1][1],y:t.coordinates[i+1][0]},s={x:e.coordinates[r][1],y:e.coordinates[r][0]},l={x:e.coordinates[r+1][1],y:e.coordinates[r+1][0]},u=(l.y-s.y)*(a.x-o.x)-(l.x-s.x)*(a.y-o.y);if(0!=u){var c=((l.x-s.x)*(o.y-s.y)-(l.y-s.y)*(o.x-s.x))/u,d=((a.x-o.x)*(o.y-s.y)-(a.y-o.y)*(o.x-s.x))/u;0<=c&&c<=1&&0<=d&&d<=1&&n.push({type:"Point",coordinates:[o.x+c*(a.x-o.x),o.y+c*(a.y-o.y)]})}}return 0==n.length&&(n=!1),n},t.pointInBoundingBox=function(t,e){return!(t.coordinates[1]e[1][0]||t.coordinates[0]e[1][1])},t.pointInPolygon=function(e,r){for(var o="Polygon"==r.type?[r.coordinates]:r.coordinates,a=!1,s=0;si)return!1}return!0},t.area=function(t){for(var e=0,n=t.coordinates[0],i=n.length-1,r=0;r0;)if(o=x[i-1],a=k[i-1],i--,a-o>1){for(d=t[a].lng()-t[o].lng(),h=t[a].lat()-t[o].lat(),Math.abs(d)>180&&(d=360-Math.abs(d)),f=(d*=Math.cos(b*(t[a].lat()+t[o].lat())))*d+h*h,L=o+1,s=o,u=-1;L180&&(p=360-Math.abs(p)),g=(p*=Math.cos(b*(t[L].lat()+t[o].lat())))*p+m*m,v=t[L].lng()-t[a].lng(),y=t[L].lat()-t[a].lat(),Math.abs(v)>180&&(v=360-Math.abs(v)),(l=g>=f+(_=(v*=Math.cos(b*(t[L].lat()+t[a].lat())))*v+y*y)?_:_>=f+g?g:(p*h-m*d)*(p*h-m*d)/f)>u&&(s=L,u=l);u=0&&(void 0===o||a0}},{}],120:[function(t,e,n){var i=t("turf-is-clockwise");function r(t){var e=[[[]]];switch(t.geometry.type){case"LineString":e=[[t.geometry.coordinates]];break;case"Polygon":e=[t.geometry.coordinates];break;case"MultiPolygon":e=t.geometry.coordinates}return e}e.exports=function(t,e){var n=r(t),o=r(e);return n.some((function(t){return o.some((function(e){return t.some((function(t){return e.some((function(e){return function(t,e){for(var n=0;np&&(v>h&&gh&&vc&&(c=y)}var _=[];if(u&&c0&&Math.abs(x-n[w-1][0])>p){var k=parseFloat(n[w-1][0]),C=parseFloat(n[w-1][1]),L=parseFloat(n[w][0]),S=parseFloat(n[w][1]);if(k>-180&&k-180&&n[w-1][0]h&&k<180&&-180===L&&w+1h&&n[w-1][0]<180){b.push([180,n[w][1]]),w++,b.push([n[w][0],n[w][1]]);continue}if(kh){var M=k;k=L,L=M;var T=C;C=S,S=T}if(k>h&&L=180&&kh?180:-180,O]),(b=[]).push([n[w-1][0]>h?-180:180,O]),_.push(b)}else b=[],_.push(b);b.push([x,n[w][1]])}else b.push([n[w][0],n[w][1]])}}else{var P=[];_.push(P);for(var D=0;Df/2;k&&(x-=f/4);for(var C=a([]),L=0;L<_;L++)for(var S=0;S<=w;S++){var M=L%2==1;if(!(0===S&&M||0===S&&k)){var T=L*g+t[0]-b,E=S*v+t[1]+x;M&&(E-=f/2),r?C.features.push.apply(C.features,h([T,E],s/2,l/2)):C.features.push(d([T,E],s/2,l/2))}}return C}},{"@turf/distance":143,"@turf/helpers":146}],143:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":144,"@turf/invariant":145,dup:8}],144:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],145:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],146:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],147:[function(t,e,n){var i=t("@turf/distance"),r=t("@turf/square-grid"),o=t("@turf/centroid"),a=t("@turf/bbox");e.exports=function(t,e,n,s,l){if(0!==t.features.filter((function(t){return t.properties&&t.properties.hasOwnProperty(e)})).length){for(var u=r(a(t),s,l),c=u.features.length,d=0;d=i;T--)for(var E=e;E<=n-1;E++){var O,P;if(O=Math.min(t[E][T],t[E][T+1]),P=Math.min(t[E+1][T],t[E+1][T+1]),v=Math.min(O,P),O=Math.max(t[E][T],t[E][T+1]),P=Math.max(t[E+1][T],t[E+1][T+1]),(y=Math.max(O,P))>=l[0]&&v<=l[s-1])for(var D=0;D=v&&l[D]<=y){for(var A=4;A>=0;A--)A>0?(u[A]=t[E+L[A-1]][T+S[A-1]]-l[D],d[A]=o[E+L[A-1]],h[A]=a[T+S[A-1]]):(u[0]=.25*(u[1]+u[2]+u[3]+u[4]),d[0]=.5*(o[E]+o[E+1]),h[0]=.5*(a[T]+a[T+1])),u[A]>1e-10?c[A]=1:u[A]<-1e-10?c[A]=-1:c[A]=0;for(A=1;A<=4;A++)if(m=4!=A?A+1:1,0!=(g=M[c[p=A]+1][c[0]+1][c[m]+1])){switch(g){case 1:w=d[p],k=h[p],x=d[0],C=h[0];break;case 2:w=d[0],k=h[0],x=d[m],C=h[m];break;case 3:w=d[m],k=h[m],x=d[p],C=h[p];break;case 4:w=d[p],k=h[p],x=_(0,m),C=b(0,m);break;case 5:w=d[0],k=h[0],x=_(m,p),C=b(m,p);break;case 6:w=d[m],k=h[m],x=_(p,0),C=b(p,0);break;case 7:w=_(p,0),k=b(p,0),x=_(0,m),C=b(0,m);break;case 8:w=_(0,m),k=b(0,m),x=_(m,p),C=b(m,p);break;case 9:w=_(m,p),k=b(m,p),x=_(p,0),C=b(p,0)}f(w,k,x,C,l[D],D)}}}}},{}],169:[function(t,e,n){var i=t("@turf/tin"),r=t("@turf/inside"),o=t("@turf/point-grid"),a=t("@turf/distance"),s=t("@turf/bbox"),l=t("@turf/planepoint"),u=t("@turf/helpers").featureCollection,c=t("@turf/helpers").lineString,d=t("@turf/helpers").point,h=t("@turf/square"),f=t("./conrec");e.exports=function(t,e,n,p){for(var m=i(t,e),g=s(t),v=h(g),y=a(d([v[0],v[1]]),d([v[2],v[1]]),"kilometers")/n,_=o(v,y,"kilometers"),b=[],w=0;w<_.features.length;w++)for(var x=_.features[w],k=0;k2){var n=[];t.forEach((function(t){n.push([t.x,t.y])}));var i=c(n);i.properties={},i.properties[e]=t.level,R.features.push(i)}})),R}},{"./conrec":168,"@turf/bbox":170,"@turf/distance":172,"@turf/helpers":175,"@turf/inside":176,"@turf/planepoint":178,"@turf/point-grid":179,"@turf/square":186,"@turf/tin":190}],170:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{"@turf/meta":171,dup:18}],171:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],172:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":173,"@turf/invariant":174,dup:8}],173:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],174:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],175:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],176:[function(t,e,n){arguments[4][72][0].apply(n,arguments)},{"@turf/invariant":177,dup:72}],177:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],178:[function(t,e,n){e.exports=function(t,e){var n=t.geometry.coordinates[0],i=t.geometry.coordinates[1],r=e.geometry.coordinates[0][0][0],o=e.geometry.coordinates[0][0][1],a=e.properties.a,s=e.geometry.coordinates[0][1][0],l=e.geometry.coordinates[0][1][1],u=e.properties.b,c=e.geometry.coordinates[0][2][0],d=e.geometry.coordinates[0][2][1],h=e.properties.c;return(h*(n-r)*(i-l)+a*(n-s)*(i-d)+u*(n-c)*(i-o)-u*(n-r)*(i-d)-h*(n-s)*(i-o)-a*(n-c)*(i-l))/((n-r)*(i-l)+(n-s)*(i-d)+(n-c)*(i-o)-(n-r)*(i-d)-(n-s)*(i-o)-(n-c)*(i-l))}},{}],179:[function(t,e,n){var i=t("@turf/helpers").point,r=t("@turf/helpers").featureCollection,o=t("@turf/distance"),a=t("@turf/bbox");e.exports=function(t,e,n){var s=[];if(!t)throw new Error("bbox is required");if(Array.isArray(t)||(t=a(t)),4!==t.length)throw new Error("bbox must contain 4 numbers");for(var l=t[0],u=t[1],c=t[2],d=t[3],h=e/o(i([l,u]),i([c,u]),n)*(c-l),f=e/o(i([l,u]),i([l,d]),n)*(d-u),p=l;p<=c;){for(var m=u;m<=d;)s.push(i([p,m])),m+=f;p+=h}return r(s)}},{"@turf/bbox":180,"@turf/distance":182,"@turf/helpers":185}],180:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{"@turf/meta":181,dup:18}],181:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],182:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":183,"@turf/invariant":184,dup:8}],183:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],184:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],185:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],186:[function(t,e,n){var i=t("@turf/distance");e.exports=function(t){var e=t[0],n=t[1],r=t[2],o=t[3];if(i(t.slice(0,2),[r,n])>=i(t.slice(0,2),[e,o])){var a=(n+o)/2;return[e,a-(r-e)/2,r,a+(r-e)/2]}var s=(e+r)/2;return[s-(o-n)/2,n,s+(o-n)/2,o]}},{"@turf/distance":187}],187:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":188,"@turf/invariant":189,dup:8}],188:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],189:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],190:[function(t,e,n){arguments[4][82][0].apply(n,arguments)},{"@turf/helpers":191,dup:82}],191:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],192:[function(t,e,n){var i=t("@turf/helpers").point;e.exports=function(t){var e,n,r={type:"FeatureCollection",features:[]};if("LineString"===(n="Feature"===t.type?t.geometry:t).type)e=[n.coordinates];else if("MultiLineString"===n.type)e=n.coordinates;else if("MultiPolygon"===n.type)e=[].concat.apply([],n.coordinates);else{if("Polygon"!==n.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");e=n.coordinates}return e.forEach((function(t){e.forEach((function(e){for(var n=0;n=0&&g<=1&&(_.onLine1=!0),v>=0&&v<=1&&(_.onLine2=!0),!(!_.onLine1||!_.onLine2)&&[_.x,_.y]));a&&r.features.push(i([a[0],a[1]]))}var s,l,u,c,d,h,f,p,m,g,v,y,_}))})),r}},{"@turf/helpers":193}],193:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],194:[function(t,e,n){var i=t("@turf/line-slice-along"),r=t("@turf/line-distance"),o=t("@turf/helpers").featureCollection,a=t("@turf/meta").featureEach,s=t("@turf/flatten");function l(t,e,n){var o=[],a=r(t,n);if(a<=e)return[t];for(var s=Math.floor(a/e)+1,l=0;l=f&&p===l.length-1);p++){if(f>e&&0===u.length){if(!(c=e-f))return u.push(l[p]),a(u);d=i(l[p],l[p-1])-180,h=o(l[p],c,d,s),u.push(h.geometry.coordinates)}if(f>=n)return(c=n-f)?(d=i(l[p],l[p-1])-180,h=o(l[p],c,d,s),u.push(h.geometry.coordinates),a(u)):(u.push(l[p]),a(u));if(f>=e&&u.push(l[p]),p===l.length-1)return a(u);f+=r(l[p],l[p+1],s)}return a(l[l.length-1])}},{"@turf/bearing":211,"@turf/destination":213,"@turf/distance":216,"@turf/helpers":219}],211:[function(t,e,n){arguments[4][3][0].apply(n,arguments)},{"@turf/invariant":212,dup:3}],212:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],213:[function(t,e,n){arguments[4][5][0].apply(n,arguments)},{"@turf/helpers":214,"@turf/invariant":215,dup:5}],214:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],215:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],216:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":217,"@turf/invariant":218,dup:8}],217:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],218:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],219:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],220:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],221:[function(t,e,n){arguments[4][200][0].apply(n,arguments)},{"@turf/distance":222,"@turf/flatten":225,"@turf/helpers":229,"@turf/meta":230,dup:200}],222:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":223,"@turf/invariant":224,dup:8}],223:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],224:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],225:[function(t,e,n){arguments[4][132][0].apply(n,arguments)},{"@turf/helpers":226,"@turf/invariant":227,"@turf/meta":228,dup:132}],226:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],227:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],228:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],229:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],230:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],231:[function(t,e,n){var i=t("@turf/helpers"),r=t("@turf/meta"),o=t("@turf/line-segment"),a=t("@turf/invariant").getCoords,s=t("geojson-rbush"),l=i.point,u=i.featureCollection,c=r.featureEach;function d(t,e){var n=a(t),i=a(e);if(2!==n.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==i.length)throw new Error(" line2 must only contain 2 coordinates");var r=n[0][0],o=n[0][1],s=n[1][0],u=n[1][1],c=i[0][0],d=i[0][1],h=i[1][0],f=i[1][1],p=(f-d)*(s-r)-(h-c)*(u-o),m=(h-c)*(o-d)-(f-d)*(r-c),g=(s-r)*(o-d)-(u-o)*(r-c);if(0===p)return null;var v=m/p,y=g/p;return v>=0&&v<=1&&y>=0&&y<=1?l([r+v*(s-r),o+v*(u-o)]):null}e.exports=function(t,e){var n=[];if("LineString"===t.geometry.type&&"LineString"===e.geometry.type&&2===t.geometry.coordinates.length&&2===e.geometry.coordinates.length){var i=d(t,e);return i&&n.push(i),u(n)}var r=s();return r.load(o(e)),c(o(t),(function(t){c(r.search(t),(function(e){var i=d(t,e);i&&n.push(i)}))})),u(n)}},{"@turf/helpers":233,"@turf/invariant":234,"@turf/line-segment":235,"@turf/meta":243,"geojson-rbush":244}],232:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{"@turf/meta":243,dup:18}],233:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],234:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],235:[function(t,e,n){var i=t("@turf/flatten"),r=t("@turf/meta").featureEach,o=t("@turf/helpers").lineString,a=t("@turf/helpers").featureCollection,s=t("@turf/invariant").getCoords;e.exports=function(t){var e=[],n=0;return r(t,(function(t){r(i(t),(function(t){var i=[];switch(t.geometry?t.geometry.type:t.type){case"Polygon":i=s(t);break;case"LineString":i=[s(t)]}i.forEach((function(i){(function(t,e){var n=[];return t.reduce((function(t,i){var r,a,s,l,u,c,d=o([t,i],e);return d.bbox=(a=i,s=(r=t)[0],l=r[1],u=a[0],c=a[1],[su?s:u,l>c?l:c]),n.push(d),i})),n})(i,t.properties).forEach((function(t){t.id=n,e.push(t),n++}))}))}))})),a(e)}},{"@turf/flatten":236,"@turf/helpers":240,"@turf/invariant":241,"@turf/meta":242}],236:[function(t,e,n){arguments[4][132][0].apply(n,arguments)},{"@turf/helpers":237,"@turf/invariant":238,"@turf/meta":239,dup:132}],237:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],238:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],239:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],240:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],241:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],242:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],243:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],244:[function(t,e,n){var i=t("@turf/bbox"),r=t("@turf/helpers").featureCollection,o=t("@turf/meta").featureEach,a=t("rbush");e.exports=function(t){var e=a(t);return e.insert=function(t){return t.bbox=t.bbox?t.bbox:i(t),a.prototype.insert.call(this,t)},e.load=function(t){var e=[];return o(t,(function(t){t.bbox=t.bbox?t.bbox:i(t),e.push(t)})),a.prototype.load.call(this,e)},e.remove=function(t){return a.prototype.remove.call(this,t)},e.clear=function(){return a.prototype.clear.call(this)},e.search=function(t){var e=a.prototype.search.call(this,this.toBBox(t));return r(e)},e.collides=function(t){return a.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=a.prototype.all.call(this);return r(t)},e.toJSON=function(){return a.prototype.toJSON.call(this)},e.fromJSON=function(t){return a.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var e=t.bbox?t.bbox:i(t);return{minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}},e}},{"@turf/bbox":232,"@turf/helpers":233,"@turf/meta":243,rbush:246}],245:[function(t,e,n){arguments[4][74][0].apply(n,arguments)},{dup:74}],246:[function(t,e,n){arguments[4][75][0].apply(n,arguments)},{dup:75,quickselect:245}],247:[function(t,e,n){arguments[4][235][0].apply(n,arguments)},{"@turf/flatten":248,"@turf/helpers":252,"@turf/invariant":253,"@turf/meta":254,dup:235}],248:[function(t,e,n){arguments[4][132][0].apply(n,arguments)},{"@turf/helpers":249,"@turf/invariant":250,"@turf/meta":251,dup:132}],249:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],250:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],251:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],252:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],253:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],254:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],255:[function(t,e,n){arguments[4][210][0].apply(n,arguments)},{"@turf/bearing":256,"@turf/destination":258,"@turf/distance":261,"@turf/helpers":264,dup:210}],256:[function(t,e,n){arguments[4][3][0].apply(n,arguments)},{"@turf/invariant":257,dup:3}],257:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],258:[function(t,e,n){arguments[4][5][0].apply(n,arguments)},{"@turf/helpers":259,"@turf/invariant":260,dup:5}],259:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],260:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],261:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":262,"@turf/invariant":263,dup:8}],262:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],263:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],264:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],265:[function(t,e,n){var i=t("@turf/helpers").lineString,r=t("@turf/point-on-line");e.exports=function(t,e,n){var o;if("Feature"===n.type)o=n.geometry.coordinates;else{if("LineString"!==n.type)throw new Error("input must be a LineString Feature or Geometry");o=n.coordinates}var a,s=r(n,t),l=r(n,e);a=s.properties.index<=l.properties.index?[s,l]:[l,s];for(var u=i([a[0].geometry.coordinates],{}),c=a[0].properties.index+1;c0&&v<1&&(b.onLine1=!0),y>0&&y<1&&(b.onLine2=!0),!(!b.onLine1||!b.onLine2)&&[b.x,b.y]));D&&((S=r(D)).properties.dist=i(e,S,n),S.properties.location=x+i(C,w,n)),C.properties.dist0){var c=a.map((function(t){return l[t.index]=!0,e.remove({index:t.index},u),t.geojson}));c.push(t),t=s.apply(this,c)}if(0===a.length)break}n.push(t)})),a.featureCollection(n)}function u(t,e){return t.index===e.index}e.exports=function(t,e){var n=function(t){var e=t&&t.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]];return a.polygon(e)}(e),r=function(t){var e=[],n=[];return i(t,(function(t){var r;"MultiPolygon"===t.geometry.type&&(r=[],t.geometry.coordinates.forEach((function(t){r.push(a.polygon(t))})),t=a.featureCollection(r)),i(t,(function(t){var i=t.geometry.coordinates,r=i[0],o=i.slice(1);e.push(a.polygon([r])),o.forEach((function(t){n.push(a.polygon([t]))}))}))})),[a.featureCollection(e),a.featureCollection(n)]}(t),o=r[0],s=r[1];return function(t,e,n){var r=[];return r.push(t.geometry.coordinates[0]),i(e,(function(t){r.push(t.geometry.coordinates[0])})),i(n,(function(t){r.push(t.geometry.coordinates[0])})),a.polygon(r)}(n,o=l(o),s=l(s))}},{"@turf/bbox":278,"@turf/helpers":280,"@turf/meta":281,"@turf/union":282,rbush:285}],278:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{"@turf/meta":279,dup:18}],279:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],280:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],281:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],282:[function(t,e,n){arguments[4][84][0].apply(n,arguments)},{dup:84,jsts:283}],283:[function(t,e,n){arguments[4][28][0].apply(n,arguments)},{dup:28}],284:[function(t,e,n){arguments[4][74][0].apply(n,arguments)},{dup:74}],285:[function(t,e,n){arguments[4][75][0].apply(n,arguments)},{dup:75,quickselect:284}],286:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],287:[function(t,e,n){var i=t("@turf/bearing"),r=t("@turf/destination"),o=t("@turf/distance");e.exports=function(t,e){var n=o(t,e,"miles"),a=i(t,e);return r(t,n/2,a,"miles")}},{"@turf/bearing":288,"@turf/destination":290,"@turf/distance":293}],288:[function(t,e,n){arguments[4][3][0].apply(n,arguments)},{"@turf/invariant":289,dup:3}],289:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],290:[function(t,e,n){arguments[4][5][0].apply(n,arguments)},{"@turf/helpers":291,"@turf/invariant":292,dup:5}],291:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],292:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],293:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":294,"@turf/invariant":295,dup:8}],294:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],295:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],296:[function(t,e,n){var i=t("@turf/distance");e.exports=function(t,e){for(var n,r=1/0,o=0;o0?t+n[e-1]:t}function f(t,e){t=2*t*Math.PI/u[u.length-1];var i=Math.random();l.push([i*n*Math.sin(t),i*n*Math.cos(t)])}return d(s)}},{}],334:[function(t,e,n){var i=t("@turf/helpers").featureCollection;e.exports=function(t,e){return i(function(t,e){for(var n,i,r=t.slice(0),o=t.length,a=o-e;o-- >a;)i=Math.floor((o+1)*Math.random()),n=r[i],r[i]=r[o],r[o]=n;return r.slice(a)}(t.features,e))}},{"@turf/helpers":335}],335:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],336:[function(t,e,n){var i=t("simplify-js"),r=["LineString","MultiLineString","Polygon","MultiPolygon"];function o(t,e,n){return"LineString"===t.geometry.type?{type:"LineString",coordinates:l(t.geometry.coordinates,e,n)}:"MultiLineString"===t.geometry.type?{type:"MultiLineString",coordinates:t.geometry.coordinates.map((function(t){return l(t,e,n)}))}:"Polygon"===t.geometry.type?{type:"Polygon",coordinates:u(t.geometry.coordinates,e,n)}:"MultiPolygon"===t.geometry.type?{type:"MultiPolygon",coordinates:t.geometry.coordinates.map((function(t){return u(t,e,n)}))}:t}function a(t){return!(t.length<3||3===t.length&&t[2][0]===t[0][0]&&t[2][1]===t[0][1])}function s(t,e){return{type:"Feature",geometry:t,properties:e}}function l(t,e,n){return i(t.map((function(t){return{x:t[0],y:t[1],z:t[2]}})),e,n).map((function(t){return t.z?[t.x,t.y,t.z]:[t.x,t.y]}))}function u(t,e,n){return t.map((function(t){var r=t.map((function(t){return{x:t[0],y:t[1]}}));if(r.length<4)throw new Error("Invalid polygon");for(var o=i(r,e,n).map((function(t){return[t.x,t.y]}));!a(o);)o=i(r,e-=.01*e,n).map((function(t){return[t.x,t.y]}));return o[o.length-1][0]===o[0][0]&&o[o.length-1][1]===o[0][1]||o.push(o[0]),o}))}e.exports=function(t,e,n){return"Feature"===t.type?s(o(t,e,n),t.properties):"FeatureCollection"===t.type?{type:"FeatureCollection",features:t.features.map((function(t){var i=o(t,e,n);return r.indexOf(i.type)>-1?s(i,t.properties):i}))}:"GeometryCollection"===t.type?{type:"GeometryCollection",geometries:t.geometries.map((function(t){return r.indexOf(t.type)>-1?o({type:"Feature",geometry:t},e,n):t}))}:t}},{"simplify-js":337}],337:[function(t,e,n){!function(){"use strict";function t(t,e,n){var i=e.x,r=e.y,o=n.x-i,a=n.y-r;if(0!==o||0!==a){var s=((t.x-i)*o+(t.y-r)*a)/(o*o+a*a);s>1?(i=n.x,r=n.y):s>0&&(i+=o*s,r+=a*s)}return(o=t.x-i)*o+(a=t.y-r)*a}function n(e,n,i){var r=void 0!==n?n*n:1;return e=function(e,n){var i,r,o,a,s=e.length,l=new("undefined"!=typeof Uint8Array?Uint8Array:Array)(s),u=0,c=s-1,d=[],h=[];for(l[u]=l[c]=1;c;){for(r=0,i=u+1;ir&&(a=i,r=o);r>n&&(l[a]=1,d.push(u,a,a,c)),c=d.pop(),u=d.pop()}for(i=0;ie&&(l.push(n),s=n);return s!==n&&l.push(n),l}(e,r),r)}void 0!==e?e.exports=n:"undefined"!=typeof self?self.simplify=n:window.simplify=n}()},{}],338:[function(t,e,n){arguments[4][156][0].apply(n,arguments)},{"@turf/bbox":339,"@turf/distance":341,"@turf/helpers":344,dup:156}],339:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{"@turf/meta":340,dup:18}],340:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],341:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":342,"@turf/invariant":343,dup:8}],342:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],343:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],344:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],345:[function(t,e,n){arguments[4][186][0].apply(n,arguments)},{"@turf/distance":346,dup:186}],346:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":347,"@turf/invariant":348,dup:8}],347:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],348:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],349:[function(t,e,n){var i=t("@turf/inside");e.exports=function(t,e,n,r){return t=JSON.parse(JSON.stringify(t)),e=JSON.parse(JSON.stringify(e)),t.features.forEach((function(t){t.properties||(t.properties={}),e.features.forEach((function(e){void 0===t.properties[r]&&i(t,e)&&(t.properties[r]=e.properties[n])}))})),t}},{"@turf/inside":350}],350:[function(t,e,n){arguments[4][72][0].apply(n,arguments)},{"@turf/invariant":351,dup:72}],351:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],352:[function(t,e,n){var i=t("@turf/helpers").polygon,r=t("earcut");function o(t){var e=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},i=0,r=0;r0&&(i+=t[r-1].length,n.holes.push(i))}return n}(t),n=r(e.vertices,e.holes,2),o=[],a=[];n.forEach((function(t,i){var r=n[i];a.push([e.vertices[2*r],e.vertices[2*r+1]])}));for(var s=0;s80*n){i=l=t[0],s=u=t[1];for(var b=n;bl&&(l=c),f>u&&(u=f);m=Math.max(l-i,u-s)}return a(y,_,n,i,s,m),_}function r(t,e,n,i,r){var o,a;if(r===L(t,e,n,i)>0)for(o=e;o=e;o-=i)a=x(o,t[o],t[o+1],a);return a&&y(a,a.next)&&(k(a),a=a.next),a}function o(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!y(i,i.next)&&0!==v(i.prev,i,i.next))i=i.next;else{if(k(i),(i=e=i.prev)===i.next)return null;n=!0}}while(n||i!==e);return e}function a(t,e,n,i,r,d,h){if(t){!h&&d&&function(t,e,n,i){var r=t;do{null===r.z&&(r.z=f(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,o,a,s,l,u=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,i=n,s=0,e=0;e0||l>0&&i;)0===s?(r=i,i=i.nextZ,l--):0!==l&&i?n.z<=i.z?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--):(r=n,n=n.nextZ,s--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,u*=2}while(a>1)}(r)}(t,i,r,d);for(var p,m,g=t;t.prev!==t.next;)if(p=t.prev,m=t.next,d?l(t,i,r,d):s(t))e.push(p.i/n),e.push(t.i/n),e.push(m.i/n),k(t),t=m.next,g=m.next;else if((t=m)===g){h?1===h?a(t=u(t,e,n),e,n,i,r,d,2):2===h&&c(t,e,n,i,r,d):a(o(t),e,n,i,r,d,1);break}}}function s(t){var e=t.prev,n=t,i=t.next;if(v(e,n,i)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(m(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&v(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function l(t,e,n,i){var r=t.prev,o=t,a=t.next;if(v(r,o,a)>=0)return!1;for(var s=r.xo.x?r.x>a.x?r.x:a.x:o.x>a.x?o.x:a.x,c=r.y>o.y?r.y>a.y?r.y:a.y:o.y>a.y?o.y:a.y,d=f(s,l,e,n,i),h=f(u,c,e,n,i),p=t.nextZ;p&&p.z<=h;){if(p!==t.prev&&p!==t.next&&m(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&v(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=t.prevZ;p&&p.z>=d;){if(p!==t.prev&&p!==t.next&&m(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&v(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function u(t,e,n){var i=t;do{var r=i.prev,o=i.next.next;!y(r,o)&&_(r,i,i.next,o)&&b(r,o)&&b(o,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(o.i/n),k(i),k(i.next),i=t=o),i=i.next}while(i!==t);return i}function c(t,e,n,i,r,s){var l=t;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&g(l,u)){var c=w(l,u);return l=o(l,l.next),c=o(c,c.next),a(l,e,n,i,r,s),void a(c,e,n,i,r,s)}u=u.next}l=l.next}while(l!==t)}function d(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>a){if(a=s,s===r){if(o===i.y)return i;if(o===i.next.y)return i.next}n=i.x=i.x&&i.x>=c&&m(on.x)&&b(i,t)&&(n=i,h=l),i=i.next;return n}(t,e)){var n=w(e,t);o(n,n.next)}}function f(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)/r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)/r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,n=t;do{e.x=0&&(t-a)*(i-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(r-a)*(i-s)>=0}function g(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&_(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&b(t,e)&&b(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)}function v(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function _(t,e,n,i){return!!(y(t,e)&&y(n,i)||y(t,i)&&y(n,e))||v(t,e,n)>0!=v(t,e,i)>0&&v(n,i,t)>0!=v(n,i,e)>0}function b(t,e){return v(t.prev,t,t.next)<0?v(t,e,t.next)>=0&&v(t,t.prev,e)>=0:v(t,e,t.prev)<0||v(t,t.next,e)<0}function w(t,e){var n=new C(t.i,t.x,t.y),i=new C(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function x(t,e,n,i){var r=new C(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function k(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function C(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function L(t,e,n,i){for(var r=0,o=e,a=n-i;o0&&(i+=t[r-1].length,n.holes.push(i))}return n}},{}],355:[function(t,e,n){arguments[4][82][0].apply(n,arguments)},{"@turf/helpers":356,dup:82}],356:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],357:[function(t,e,n){var i=t("@turf/helpers").featureCollection,r=t("@turf/helpers").polygon,o=t("@turf/distance");e.exports=function(t,e,n){for(var a=i([]),s=e/o([t[0],t[1]],[t[2],t[1]],n)*(t[2]-t[0]),l=e/o([t[0],t[1]],[t[0],t[3]],n)*(t[3]-t[1]),u=0,c=t[0];c<=t[2];){for(var d=0,h=t[1];h<=t[3];)u%2==0&&d%2==0?a.features.push(r([[[c,h],[c,h+l],[c+s,h],[c,h]]]),r([[[c,h+l],[c+s,h+l],[c+s,h],[c,h+l]]])):u%2==0&&d%2==1?a.features.push(r([[[c,h],[c+s,h+l],[c+s,h],[c,h]]]),r([[[c,h],[c,h+l],[c+s,h+l],[c,h]]])):d%2==0&&u%2==1?a.features.push(r([[[c,h],[c,h+l],[c+s,h+l],[c,h]]]),r([[[c,h],[c+s,h+l],[c+s,h],[c,h]]])):d%2==1&&u%2==1&&a.features.push(r([[[c,h],[c,h+l],[c+s,h],[c,h]]]),r([[[c,h+l],[c+s,h+l],[c+s,h],[c,h+l]]])),h+=l,d++;u++,c+=s}return a}},{"@turf/distance":358,"@turf/helpers":361}],358:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":359,"@turf/invariant":360,dup:8}],359:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],360:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],361:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],362:[function(t,e,n){function i(t,e,n){return void 0!==n&&(t.geometry.coordinates=function t(e,n,i){return"object"!==l(e[0])?e.slice(n,i):e.map((function(e){return t(e,n,i)}))}(t.geometry.coordinates,0,n)),t.geometry.coordinates=function t(e,n){return e.map((function(e){return"object"===l(e)?t(e,n):Number(e.toFixed(n))}))}(t.geometry.coordinates,e),t}e.exports=function(t,e,n){if(e=e||6,n=n||2,void 0===t)throw new Error("layer is required");switch(t.type){case"FeatureCollection":return t.features=t.features.map((function(t){return i(t,e,n)})),t;case"Feature":return i(t,e,n);default:throw new Error("invalid type")}}},{}],363:[function(t,e,n){arguments[4][84][0].apply(n,arguments)},{dup:84,jsts:364}],364:[function(t,e,n){arguments[4][28][0].apply(n,arguments)},{dup:28}],365:[function(t,e,n){var i=t("simplepolygon"),r=t("@turf/flatten"),o=t("@turf/meta").featureEach,a=t("@turf/helpers").featureCollection;e.exports=function(t){var e=a([]);return o(t,(function(t){"MultiPolygon"===t.geometry.type&&(t=r(t)),o(t,(function(t){var n=i(t);o(n,(function(n){n.properties=t.properties?t.properties:{},e.features.push(n)}))}))})),e}},{"@turf/flatten":370,"@turf/helpers":374,"@turf/meta":375,simplepolygon:383}],366:[function(t,e,n){arguments[4][12][0].apply(n,arguments)},{"@mapbox/geojson-area":367,"@turf/meta":368,dup:12}],367:[function(t,e,n){arguments[4][13][0].apply(n,arguments)},{dup:13,wgs84:369}],368:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],369:[function(t,e,n){arguments[4][15][0].apply(n,arguments)},{dup:15}],370:[function(t,e,n){arguments[4][132][0].apply(n,arguments)},{"@turf/helpers":371,"@turf/invariant":372,"@turf/meta":373,dup:132}],371:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],372:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],373:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],374:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],375:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],376:[function(t,e,n){var i=t("@turf/inside"),r=t("@turf/helpers").featureCollection;e.exports=function(t,e){for(var n=r([]),o=0;o=1||p<=0||m>=1||m<=0)){var g=f,v=!s[g];v&&(s[g]=!0),e?a.push(e(f,t,n,u,c,p,i,l,d,h,m,v)):a.push(f)}}}function m(t,e){var n=o[t][e],i=o[t][e+1];if(n[0]x[e.isect].coord?-1:1})),Z(),_=[];O.length>0;){var N=O.pop(),R=N.isect,j=N.parent,z=N.winding,Y=_.length,F=[x[R].coord],B=R;if(x[R].ringAndEdge1Walkable)var $=x[R].ringAndEdge1,H=x[R].nxtIsectAlongRingAndEdge1;else $=x[R].ringAndEdge2,H=x[R].nxtIsectAlongRingAndEdge2;for(;!h(x[R].coord,x[H].coord);){F.push(x[H].coord);var U=void 0;for(p=0;p1)for(e=0;e=0==e}function d(t){for(var e=0,n=0;n=0;s--)if(l[s]!=u[s])return!1;for(s=l.length-1;s>=0;s--)if(a=l[s],!d(t[a],e[a]))return!1;return!0}(t,e):t==e}function h(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function f(t,e){return!(!t||!e)&&("[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e||!0===e.call({},t))}function p(t,e,n,r){var o;i.isString(n)&&(r=n,n=null);try{e()}catch(t){o=t}if(r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!o&&u(o,n,"Missing expected exception"+r),!t&&f(o,n)&&u(o,n,"Got unwanted exception"+r),t&&o&&n&&!f(o,n)||!t&&o)throw o}a.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return l(JSON.stringify(t.actual,s),128)+" "+t.operator+" "+l(JSON.stringify(t.expected,s),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||u;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var i=n.stack,r=e.name,o=i.indexOf("\n"+r);if(o>=0){var a=i.indexOf("\n",o+1);i=i.substring(a+1)}this.stack=i}}},i.inherits(a.AssertionError,Error),a.fail=u,a.ok=c,a.equal=function(t,e,n){t!=e&&u(t,e,n,"==",a.equal)},a.notEqual=function(t,e,n){t==e&&u(t,e,n,"!=",a.notEqual)},a.deepEqual=function(t,e,n){d(t,e)||u(t,e,n,"deepEqual",a.deepEqual)},a.notDeepEqual=function(t,e,n){d(t,e)&&u(t,e,n,"notDeepEqual",a.notDeepEqual)},a.strictEqual=function(t,e,n){t!==e&&u(t,e,n,"===",a.strictEqual)},a.notStrictEqual=function(t,e,n){t===e&&u(t,e,n,"!==",a.notStrictEqual)},a.throws=function(t,e,n){p.apply(this,[!0].concat(r.call(arguments)))},a.doesNotThrow=function(t,e){p.apply(this,[!1].concat(r.call(arguments)))},a.ifError=function(t){if(t)throw t};var m=Object.keys||function(t){var e=[];for(var n in t)o.call(t,n)&&e.push(n);return e}},{"util/":392}],389:[function(t,e,n){var i=e.exports={},r=[],o=!1;function a(){if(!o){var t;o=!0;for(var e=r.length;e;){t=r,r=[];for(var n=-1;++n=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),l=i[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(e)?n.showHidden=e:e&&i._extend(n,e),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),d(n,t,n.depth)}function u(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function c(t,e){return t}function d(t,e,n){if(t.customInspect&&e&&C(e.inspect)&&e.inspect!==i.inspect&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(n,t);return y(r)||(r=d(t,r,n)),r}var o=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(y(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return v(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}(t,e);if(o)return o;var a=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),k(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(e);if(0===a.length){if(C(e)){var l=e.name?": "+e.name:"";return t.stylize("[Function"+l+"]","special")}if(b(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(x(e))return t.stylize(Date.prototype.toString.call(e),"date");if(k(e))return h(e)}var u,c="",w=!1,L=["{","}"];return p(e)&&(w=!0,L=["[","]"]),C(e)&&(c=" [Function"+(e.name?": "+e.name:"")+"]"),b(e)&&(c=" "+RegExp.prototype.toString.call(e)),x(e)&&(c=" "+Date.prototype.toUTCString.call(e)),k(e)&&(c=" "+h(e)),0!==a.length||w&&0!=e.length?n<0?b(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=w?function(t,e,n,i,r){for(var o=[],a=0,s=e.length;a60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(u,c,L)):L[0]+c+L[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,n,i,r,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),S(i,r)||(a="["+r+"]"),s||(t.seen.indexOf(l.value)<0?(s=g(n)?d(t,l.value,null):d(t,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),_(a)){if(o&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function p(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function g(t){return null===t}function v(t){return"number"==typeof t}function y(t){return"string"==typeof t}function _(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===L(t)}function w(t){return"object"===l(t)&&null!==t}function x(t){return w(t)&&"[object Date]"===L(t)}function k(t){return w(t)&&("[object Error]"===L(t)||t instanceof Error)}function C(t){return"function"==typeof t}function L(t){return Object.prototype.toString.call(t)}function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}i.debuglog=function(t){return _(o)&&(o=e.env.NODE_DEBUG||""),t=t.toUpperCase(),a[t]||(new RegExp("\\b"+t+"\\b","i").test(o)?(e.pid,a[t]=function(){i.format.apply(i,arguments)}):a[t]=function(){}),a[t]},i.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=p,i.isBoolean=m,i.isNull=g,i.isNullOrUndefined=function(t){return null==t},i.isNumber=v,i.isString=y,i.isSymbol=function(t){return"symbol"===l(t)},i.isUndefined=_,i.isRegExp=b,i.isObject=w,i.isDate=x,i.isError=k,i.isFunction=C,i.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===l(t)||void 0===t},i.isBuffer=t("./support/isBuffer"),i.log=function(){},i.inherits=t("inherits"),i._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t}}).call(this,t("_process"),void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":391,_process:389,inherits:390}]},{},[1])(1)},"object"===l(e)&&void 0!==t?t.exports=s():(o=[],void 0===(a="function"==typeof(r=s)?r.apply(e,o):r)||(t.exports=a))}).call(this,n("yLpj"))},L2JU:function(t,e,n){"use strict";(function(t){var n=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,r=(n=function(e){return e.original===t},e.filter(n)[0]);if(r)return r.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach((function(n){o[n]=i(t[n],e)})),o}function r(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function o(t){return null!==t&&"object"==typeof t}var a=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(t,e){this._children[t]=e},a.prototype.removeChild=function(t){delete this._children[t]},a.prototype.getChild=function(t){return this._children[t]},a.prototype.hasChild=function(t){return t in this._children},a.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},a.prototype.forEachChild=function(t){r(this._children,t)},a.prototype.forEachGetter=function(t){this._rawModule.getters&&r(this._rawModule.getters,t)},a.prototype.forEachAction=function(t){this._rawModule.actions&&r(this._rawModule.actions,t)},a.prototype.forEachMutation=function(t){this._rawModule.mutations&&r(this._rawModule.mutations,t)},Object.defineProperties(a.prototype,s);var l=function(t){this.register([],t,!1)};l.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},l.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},l.prototype.update=function(t){!function t(e,n,i){0;if(n.update(i),i.modules)for(var r in i.modules){if(!n.getChild(r))return void 0;t(e.concat(r),n.getChild(r),i.modules[r])}}([],this.root,t)},l.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var o=new a(e,n);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&r(e.modules,(function(e,r){i.register(t.concat(r),e,n)}))},l.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],i=e.getChild(n);i&&i.runtime&&e.removeChild(n)},l.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return e.hasChild(n)};var u;var c=function(t){var e=this;void 0===t&&(t={}),!u&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var i=t.plugins;void 0===i&&(i=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=r;var c=this._modules.root.state;m(this,c,[],this._modules.root),p(this,c),i.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:u.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){n.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){n.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},d={state:{configurable:!0}};function h(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function f(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;m(t,n,[],t._modules.root,!0),p(t,n,e)}function p(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,a={};r(o,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,t._vm=new u({data:{$$state:e},computed:a}),u.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),u.nextTick((function(){return i.$destroy()})))}function m(t,e,n,i,r){var o=!n.length,a=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=i),!o&&!r){var s=g(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){u.set(s,l,i.state)}))}var c=i.context=function(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=v(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:i?t.commit:function(n,i,r){var o=v(n,i,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return g(t.state,n)}}}),r}(t,a,n);i.forEachMutation((function(e,n){!function(t,e,n,i){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,i.state,e)}))}(t,a+n,e,c)})),i.forEachAction((function(e,n){var i=e.root?n:a+n,r=e.handler||e;!function(t,e,n,i){(t._actions[e]||(t._actions[e]=[])).push((function(e){var r,o=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(r=o)&&"function"==typeof r.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,i,r,c)})),i.forEachGetter((function(e,n){!function(t,e,n,i){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)}}(t,a+n,e,c)})),i.forEachChild((function(i,o){m(t,e,n.concat(o),i,r)}))}function g(t,e){return e.reduce((function(t,e){return t[e]}),t)}function v(t,e,n){return o(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){u&&t===u||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(u=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},c.prototype.commit=function(t,e,n){var i=this,r=v(t,e,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,i.state)})))},c.prototype.dispatch=function(t,e){var n=this,i=v(t,e),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(t){0}e(t)}))}))}},c.prototype.subscribe=function(t,e){return h(t,this._subscribers,e)},c.prototype.subscribeAction=function(t,e){return h("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},c.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},c.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},c.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),m(this,this.state,t,this._modules.get(t),n.preserveState),p(this,this.state)},c.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=g(e.state,t.slice(0,-1));u.delete(n,t[t.length-1])})),f(this)},c.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},c.prototype.hotUpdate=function(t){this._modules.update(t),f(this,!0)},c.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(c.prototype,d);var _=C((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=L(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0})),n})),b=C((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=L(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),w=C((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||L(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0})),n})),x=C((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=L(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n}));function k(t){return function(t){return Array.isArray(t)||o(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function L(t,e,n){return t._modulesNamespaceMap[n]}function S(t,e,n){var i=n?t.groupCollapsed:t.group;try{i.call(t,e)}catch(n){t.log(e)}}function M(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function T(){var t=new Date;return" @ "+E(t.getHours(),2)+":"+E(t.getMinutes(),2)+":"+E(t.getSeconds(),2)+"."+E(t.getMilliseconds(),3)}function E(t,e){return n="0",i=e-t.toString().length,new Array(i+1).join(n)+t;var n,i}var O={Store:c,install:y,version:"3.5.1",mapState:_,mapMutations:b,mapGetters:w,mapActions:x,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:w.bind(null,t),mapMutations:b.bind(null,t),mapActions:x.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var d=i(t.state);void 0!==c&&(l&&t.subscribe((function(t,a){var s=i(a);if(n(t,d,s)){var l=T(),u=o(t),h="mutation "+t.type+l;S(c,h,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),M(c)}d=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var i=T(),r=s(t),o="action "+t.type+i;S(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",r),M(c)}})))}}};e.a=O}).call(this,n("yLpj"))},L5yb:function(t,e,n){var i=n("M9Sv");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},LB33:function(t,e,n){"use strict";var i=n("55Cu");n.n(i).a},LYNF:function(t,e,n){"use strict";var i=n("OH9c");t.exports=function(t,e,n,r,o){var a=new Error(t);return i(a,e,n,r,o)}},LYk4:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".flex {\n display: flex;\n}\n.hoverable {\n cursor: pointer;\n}\n.hoverable:hover {\n background-color: whitesmoke;\n}\n.p1em {\n padding: 1em;\n}\n.lang-flag {\n max-height: 1.25em !important;\n margin-right: 1em;\n}\n.lang-flag-small {\n max-height: 1em !important;\n margin-right: 0.5em;\n}",""])},LiCP:function(t,e,n){"use strict";(function(t,i){n.d(e,"e",(function(){return r})),n.d(e,"g",(function(){return a})),n.d(e,"f",(function(){return o})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return d}));var r="undefined"!=typeof window?window:t.exports&&void 0!==i?i:{},o=function(t){var e={},n=t.document,i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(i.TweenLite)return i.TweenLite;var r,o,a,s,l,u,c,d=function(t){var e,n=t.split("."),r=i;for(e=0;e-1;)(l=g[n[f]]||new v(n[f],[])).gsClass?(a[f]=l.gsClass,p--):s&&l.sc.push(this);if(0===p&&r)for(c=(u=("com.greensock."+t).split(".")).pop(),h=d(u.join("."))[c]=this.gsClass=r.apply(r,a),o&&(i[c]=e[c]=h),f=0;f-1;)for(o=l[u],r=i?_("easing."+o,null,!0):h.easing[o]||{},a=c.length;--a>-1;)s=c[a],x[o+"."+s]=x[s+o]=r[s]=t.getRatio?t:t[s]||new t};for((a=w.prototype)._calcEnd=!1,a.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,n=this._power,i=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===n?i*=i:2===n?i*=i*i:3===n?i*=i*i*i:4===n&&(i*=i*i*i*i),1===e?1-i:2===e?i:t<.5?i/2:1-i/2},o=(r=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--o>-1;)a=r[o]+",Power"+o,k(new w(null,null,1,o),a,"easeOut",!0),k(new w(null,null,2,o),a,"easeIn"+(0===o?",easeNone":"")),k(new w(null,null,3,o),a,"easeInOut");x.linear=h.easing.Linear.easeIn,x.swing=h.easing.Quad.easeInOut;var C=_("events.EventDispatcher",(function(t){this._listeners={},this._eventTarget=t||this}));(a=C.prototype).addEventListener=function(t,e,n,i,r){r=r||0;var o,a,u=this._listeners[t],c=0;for(this!==s||l||s.wake(),null==u&&(this._listeners[t]=u=[]),a=u.length;--a>-1;)(o=u[a]).c===e&&o.s===n?u.splice(a,1):0===c&&o.pr-1;)if(i[n].c===e)return void i.splice(n,1)},a.dispatchEvent=function(t){var e,n,i,r=this._listeners[t];if(r)for((e=r.length)>1&&(r=r.slice(0)),n=this._eventTarget;--e>-1;)(i=r[e])&&(i.up?i.c.call(i.s||n,{type:t,target:n}):i.c.call(i.s||n))};var L=t.requestAnimationFrame,S=t.cancelAnimationFrame,M=Date.now||function(){return(new Date).getTime()},T=M();for(o=(r=["ms","moz","webkit","o"]).length;--o>-1&&!L;)L=t[r[o]+"RequestAnimationFrame"],S=t[r[o]+"CancelAnimationFrame"]||t[r[o]+"CancelRequestAnimationFrame"];_("Ticker",(function(t,e){var i,r,o,a,u,c=this,d=M(),h=!(!1===e||!L)&&"auto",f=500,m=33,g=function(t){var e,n,s=M()-T;s>f&&(d+=s-m),T+=s,c.time=(T-d)/1e3,e=c.time-u,(!i||e>0||!0===t)&&(c.frame++,u+=e+(e>=a?.004:a-e),n=!0),!0!==t&&(o=r(g)),n&&c.dispatchEvent("tick")};C.call(c),c.time=c.frame=0,c.tick=function(){g(!0)},c.lagSmoothing=function(t,e){if(!arguments.length)return f<1/1e-8;f=t||1/1e-8,m=Math.min(e,f,0)},c.sleep=function(){null!=o&&(h&&S?S(o):clearTimeout(o),r=p,o=null,c===s&&(l=!1))},c.wake=function(t){null!==o?c.sleep():t?d+=-T+(T=M()):c.frame>10&&(T=M()-f+5),r=0===i?p:h&&L?L:function(t){return setTimeout(t,1e3*(u-c.time)+1|0)},c===s&&(l=!0),g(2)},c.fps=function(t){if(!arguments.length)return i;a=1/((i=t)||60),u=this.time+a,c.wake()},c.useRAF=function(t){if(!arguments.length)return h;c.sleep(),h=t,c.fps(i)},c.fps(t),setTimeout((function(){"auto"===h&&c.frame<5&&"hidden"!==(n||{}).visibilityState&&c.useRAF(!1)}),1500)})),(a=h.Ticker.prototype=new h.events.EventDispatcher).constructor=h.Ticker;var E=_("core.Animation",(function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,Z){l||s.wake();var n=this.vars.useFrames?q:Z;n.add(this,n._time),this.vars.paused&&this.paused(!0)}}));s=E.ticker=new h.Ticker,(a=E.prototype)._dirty=a._gc=a._initted=a._paused=!1,a._totalTime=a._time=0,a._rawPrevTime=-1,a._next=a._last=a._onUpdate=a._timeline=a.timeline=null,a._paused=!1;var O=function(){l&&M()-T>2e3&&("hidden"!==(n||{}).visibilityState||!s.lagSmoothing())&&s.wake();var t=setTimeout(O,2e3);t.unref&&t.unref()};O(),a.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},a.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},a.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},a.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},a.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},a.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},a.render=function(t,e,n){},a.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},a.isActive=function(){var t,e=this._timeline,n=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=n&&t-1;)"{self}"===t[e]&&(n[e]=this);return n},a._callback=function(t){var e=this.vars,n=e[t],i=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this;switch(i?i.length:0){case 0:n.call(r);break;case 1:n.call(r,i[0]);break;case 2:n.call(r,i[0],i[1]);break;default:n.apply(r,i)}},a.eventCallback=function(t,e,n,i){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=m(n)&&-1!==n.join("").indexOf("{self}")?this._swapSelfInParams(n):n,r[t+"Scope"]=i),"onUpdate"===t&&(this._onUpdate=e)}return this},a.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},a.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},a.totalTime=function(t,e,n){if(l||s.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!n&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var i=this._totalDuration,r=this._timeline;if(t>i&&!n&&(t=i),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?i-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(I.length&&J(),this.render(t,e,!1),I.length&&J())}return this},a.progress=a.totalProgress=function(t,e){var n=this.duration();return arguments.length?this.totalTime(n*t,e):n?this._time/n:this.ratio},a.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},a.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},a.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,n;for(t=t||1e-8,this._timeline&&this._timeline.smoothChildTiming&&(n=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=n-(n-this._startTime)*this._timeScale/t),this._timeScale=t,n=this.timeline;n&&n.timeline;)n._dirty=!0,n.totalDuration(),n=n.timeline;return this},a.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},a.paused=function(t){if(!arguments.length)return this._paused;var e,n,i=this._timeline;return t!=this._paused&&i&&(l||t||s.wake(),n=(e=i.rawTime())-this._pauseTime,!t&&i.smoothChildTiming&&(this._startTime+=n,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==n&&this._initted&&this.duration()&&(e=i.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var P=_("core.SimpleTimeline",(function(t){E.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0}));(a=P.prototype=new E).constructor=P,a.kill()._gc=!1,a._first=a._last=a._recent=null,a._sortChildren=!1,a.add=a.insert=function(t,e,n,i){var r,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(o=t._startTime;r&&r._startTime>o;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},a._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},a.render=function(t,e,n){var i,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)i=r._next,(r._active||t>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,n):r.render((t-r._startTime)*r._timeScale,e,n)),r=i},a.rawTime=function(){return l||s.wake(),this._totalTime};var D=_("TweenLite",(function(e,n,i){if(E.call(this,n,i),this.render=D.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:D.selector(e)||e;var r,o,a,s=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?G[D.defaultOverwrite]:"number"==typeof l?l>>0:G[l],(s||e instanceof Array||e.push&&m(e))&&"number"!=typeof e[0])for(this._targets=a=f(e),this._propLookup=[],this._siblings=[],r=0;r1&&tt(o,this,null,1,this._siblings[r])):"string"==typeof(o=a[r--]=D.selector(o))&&a.splice(r+1,1):a.splice(r--,1);else this._propLookup={},this._siblings=K(e,this,!1),1===l&&this._siblings.length>1&&tt(e,this,null,1,this._siblings);(this.vars.immediateRender||0===n&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-8,this.render(Math.min(0,-this._delay)))}),!0),A=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(a=D.prototype=new E).constructor=D,a.kill()._gc=!1,a.ratio=0,a._firstPT=a._targets=a._overwrittenProps=a._startAt=null,a._notifyPluginsOfEnabled=a._lazy=!1,D.version="2.1.3",D.defaultEase=a._ease=new w(null,null,1,1),D.defaultOverwrite="auto",D.ticker=s,D.autoSleep=120,D.lagSmoothing=function(t,e){s.lagSmoothing(t,e)},D.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(D.selector=i,i(e)):(n||(n=t.document),n?n.querySelectorAll?n.querySelectorAll(e):n.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var I=[],N={},R=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,j=/[\+-]=-?[\.\d]/,z=function(t){for(var e,n=this._firstPT;n;)e=n.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:n.c*t+n.s,n.m?e=n.m.call(this._tween,e,this._target||n.t,this._tween):e<1e-6&&e>-1e-6&&!n.blob&&(e=0),n.f?n.fp?n.t[n.p](n.fp,e):n.t[n.p](e):n.t[n.p]=e,n=n._next},Y=function(t){return(1e3*t|0)/1e3+""},F=function(t,e,n,i){var r,o,a,s,l,u,c,d=[],h=0,f="",p=0;for(d.start=t,d.end=e,t=d[0]=t+"",e=d[1]=e+"",n&&(n(d),t=d[0],e=d[1]),d.length=0,r=t.match(R)||[],o=e.match(R)||[],i&&(i._next=null,i.blob=1,d._firstPT=d._applyPT=i),l=o.length,s=0;s=X){for(n in X=s.frame+(parseInt(D.autoSleep,10)||120),U){for(t=(e=U[n].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete U[n]}if((!(n=Z._first)||n._paused)&&D.autoSleep&&!q._first&&1===s._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||s.sleep()}}},s.addEventListener("tick",E._updateRoot);var K=function(t,e,n){var i,r,o=t._gsTweenID;if(U[o||(t._gsTweenID=o="t"+V++)]||(U[o]={target:t,tweens:[]}),e&&((i=U[o].tweens)[r=i.length]=e,n))for(;--r>-1;)i[r]===e&&i.splice(r,1);return U[o].tweens},Q=function(t,e,n,i){var r,o,a=t.vars.onOverwrite;return a&&(r=a(t,e,n,i)),(a=D.onOverwrite)&&(o=a(t,e,n,i)),!1!==r&&!1!==o},tt=function(t,e,n,i,r){var o,a,s,l;if(1===i||i>=4){for(l=r.length,o=0;o-1;)(s=r[o])===e||s._gc||s._paused||(s._timeline!==e._timeline?(u=u||et(e,0,f),0===et(s,u,f)&&(d[h++]=s)):s._startTime<=c&&s._startTime+s.totalDuration()/s._timeScale>c&&((f||!s._initted)&&c-s._startTime<=2e-8||(d[h++]=s)));for(o=h;--o>-1;)if(l=(s=d[o])._firstPT,2===i&&s._kill(n,t,e)&&(a=!0),2!==i||!s._firstPT&&s._initted&&l){if(2!==i&&!Q(s,e))continue;s._enabled(!1,!1)&&(a=!0)}return a},et=function(t,e,n){for(var i=t._timeline,r=i._timeScale,o=t._startTime;i._timeline;){if(o+=i._startTime,r*=i._timeScale,i._paused)return-100;i=i._timeline}return(o/=r)>e?o-e:n&&o===e||!t._initted&&o-e<2e-8?1e-8:(o+=t.totalDuration()/t._timeScale/r)>e+1e-8?0:o-e-1e-8};a._init=function(){var t,e,n,i,r,o,a=this.vars,s=this._overwrittenProps,l=this._duration,u=!!a.immediateRender,c=a.ease,d=this._startAt;if(a.startAt){for(i in d&&(d.render(-1,!0),d.kill()),r={},a.startAt)r[i]=a.startAt[i];if(r.data="isStart",r.overwrite=!1,r.immediateRender=!0,r.lazy=u&&!1!==a.lazy,r.startAt=r.delay=null,r.onUpdate=a.onUpdate,r.onUpdateParams=a.onUpdateParams,r.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=D.to(this.target||{},0,r),u)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(d)d.render(-1,!0),d.kill(),this._startAt=null;else{for(i in 0!==this._time&&(u=!1),n={},a)W[i]&&"autoCSS"!==i||(n[i]=a[i]);if(n.overwrite=0,n.data="isFromStart",n.lazy=u&&!1!==a.lazy,n.immediateRender=u,this._startAt=D.to(this.target,0,n),u){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=c=c?c instanceof w?c:"function"==typeof c?new w(c,a.easeParams):x[c]||D.defaultEase:D.defaultEase,a.easeParams instanceof Array&&c.config&&(this._ease=c.config.apply(c,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;t-1;)n[u._overwriteProps[s]]=this._firstPT;(u._priority||u._onInitAllProps)&&(l=!0),(u._onDisable||u._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else n[a]=B.call(this,e,a,"get",d,a,0,null,this.vars.stringFilter,o);return r&&this._kill(r,e)?this._initProps(e,n,i,r,o):this._overwrite>1&&this._firstPT&&i.length>1&&tt(e,this,n,this._overwrite,i)?(this._kill(n,e),this._initProps(e,n,i,r,o)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(N[e._gsTweenID]=!0),l)},a.render=function(t,e,n){var i,r,o,a,s=this._time,l=this._duration,u=this._rawPrevTime;if(t>=l-1e-8&&t>=0)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(i=!0,r="onComplete",n=n||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(t=0),(u<0||t<=0&&t>=-1e-8||1e-8===u&&"isPause"!==this.data)&&u!==t&&(n=!0,u>1e-8&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||u===t?t:1e-8);else if(t<1e-8)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==s||0===l&&u>0)&&(r="onReverseComplete",i=this._reversed),t>-1e-8?t=0:t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||n)&&(u>=0&&(1e-8!==u||"isPause"!==this.data)&&(n=!0),this._rawPrevTime=a=!e||t||u===t?t:1e-8)),(!this._initted||this._startAt&&this._startAt.progress())&&(n=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/l,d=this._easeType,h=this._easePower;(1===d||3===d&&c>=.5)&&(c=1-c),3===d&&(c*=2),1===h?c*=c:2===h?c*=c*c:3===h?c*=c*c*c:4===h&&(c*=c*c*c*c),this.ratio=1===d?1-c:2===d?c:t/l<.5?c/2:1-c/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==s||n){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=s,this._rawPrevTime=u,I.push(this),void(this._lazy=[t,e]);this._time&&!i?this.ratio=this._ease.getRatio(this._time/l):i&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==s&&t>=0&&(this._active=!0),0===s&&(this._startAt&&(t>=0?this._startAt.render(t,!0,n):r||(r="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,n),e||(this._time!==s||i||n)&&this._callback("onUpdate")),r&&(this._gc&&!n||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,n),i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&1e-8===this._rawPrevTime&&1e-8!==a&&(this._rawPrevTime=0)))}},a._kill=function(t,e,n){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:D.selector(e)||e;var i,r,o,a,s,l,u,c,d,h=n&&this._time&&n._startTime===this._startTime&&this._timeline===n._timeline,f=this._firstPT;if((m(e)||A(e))&&"number"!=typeof e[0])for(i=e.length;--i>-1;)this._kill(t,e[i],n)&&(l=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(e===this._targets[i]){s=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[i]=t?this._overwrittenProps[i]||{}:"all";break}}else{if(e!==this.target)return!1;s=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(s){if(u=t||s,c=t!==r&&"all"!==r&&t!==s&&("object"!=typeof t||!t._tempKill),n&&(D.onOverwrite||this.vars.onOverwrite)){for(o in u)s[o]&&(d||(d=[]),d.push(o));if((d||!t)&&!Q(this,n,e,d))return!1}for(o in u)(a=s[o])&&(h&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(u)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete s[o]),c&&(r[o]=1);!this._firstPT&&this._initted&&f&&this._enabled(!1,!1)}}return l},a.invalidate=function(){this._notifyPluginsOfEnabled&&D._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],E.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-8,this.render(t,!1,!1!==this.vars.lazy)),this},a._enabled=function(t,e){if(l||s.wake(),t&&this._gc){var n,i=this._targets;if(i)for(n=i.length;--n>-1;)this._siblings[n]=K(i[n],this,!0);else this._siblings=K(this.target,this,!0)}return E.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&D._onPluginEvent(t?"_onEnable":"_onDisable",this)},D.to=function(t,e,n){return new D(t,e,n)},D.from=function(t,e,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new D(t,e,n)},D.fromTo=function(t,e,n,i){return i.startAt=n,i.immediateRender=0!=i.immediateRender&&0!=n.immediateRender,new D(t,e,i)},D.delayedCall=function(t,e,n,i,r){return new D(e,0,{delay:t,onComplete:e,onCompleteParams:n,callbackScope:i,onReverseComplete:e,onReverseCompleteParams:n,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},D.set=function(t,e){return new D(t,0,e)},D.getTweensOf=function(t,e){if(null==t)return[];var n,i,r,o;if(t="string"!=typeof t?t:D.selector(t)||t,(m(t)||A(t))&&"number"!=typeof t[0]){for(n=t.length,i=[];--n>-1;)i=i.concat(D.getTweensOf(t[n],e));for(n=i.length;--n>-1;)for(o=i[n],r=n;--r>-1;)o===i[r]&&i.splice(n,1)}else if(t._gsTweenID)for(n=(i=K(t).concat()).length;--n>-1;)(i[n]._gc||e&&!i[n].isActive())&&i.splice(n,1);return i||[]},D.killTweensOf=D.killDelayedCallsTo=function(t,e,n){"object"==typeof e&&(n=e,e=!1);for(var i=D.getTweensOf(t,e),r=i.length;--r>-1;)i[r]._kill(n,t)};var nt=_("plugins.TweenPlugin",(function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=nt.prototype}),!0);if(a=nt.prototype,nt.version="1.19.0",nt.API=2,a._firstPT=null,a._addTween=B,a.setRatio=z,a._kill=function(t){var e,n=this._overwriteProps,i=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=n.length;--e>-1;)null!=t[n[e]]&&n.splice(e,1);for(;i;)null!=t[i.n]&&(i._next&&(i._next._prev=i._prev),i._prev?(i._prev._next=i._next,i._prev=null):this._firstPT===i&&(this._firstPT=i._next)),i=i._next;return!1},a._mod=a._roundProps=function(t){for(var e,n=this._firstPT;n;)(e=t[this._propName]||null!=n.n&&t[n.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===n.f?n.t._applyPT.m=e:n.m=e),n=n._next},D._onPluginEvent=function(t,e){var n,i,r,o,a,s=e._firstPT;if("_onInitAllProps"===t){for(;s;){for(a=s._next,i=r;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:o)?s._prev._next=s:r=s,(s._next=i)?i._prev=s:o=s,s=a}s=e._firstPT=r}for(;s;)s.pg&&"function"==typeof s.t[t]&&s.t[t]()&&(n=!0),s=s._next;return n},nt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===nt.API&&(H[(new t[e])._propName]=t[e]);return!0},y.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,n=t.propName,i=t.priority||0,r=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=_("plugins."+n.charAt(0).toUpperCase()+n.substr(1)+"Plugin",(function(){nt.call(this,n,i),this._overwriteProps=r||[]}),!0===t.global),s=a.prototype=new nt(n);for(e in s.constructor=a,a.API=t.API,o)"function"==typeof t[e]&&(s[o[e]]=t[e]);return a.version=t.version,nt.activate([a]),a},r=t._gsQueue){for(o=0;o"']/g,z=RegExp(R.source),Y=RegExp(j.source),F=/<%-([\s\S]+?)%>/g,B=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,G=RegExp(W.source),q=/^\s+|\s+$/g,Z=/^\s+/,X=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,K=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,it=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,lt=/^(?:0|[1-9]\d*)$/,ut=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,dt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ft="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",mt="["+ft+"]",gt="["+ht+"]",vt="\\d+",yt="[\\u2700-\\u27bf]",_t="[a-z\\xdf-\\xf6\\xf8-\\xff]",bt="[^\\ud800-\\udfff"+ft+vt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",wt="\\ud83c[\\udffb-\\udfff]",xt="[^\\ud800-\\udfff]",kt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ct="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",St="(?:"+_t+"|"+bt+")",Mt="(?:"+Lt+"|"+bt+")",Tt="(?:"+gt+"|"+wt+")"+"?",Et="[\\ufe0e\\ufe0f]?"+Tt+("(?:\\u200d(?:"+[xt,kt,Ct].join("|")+")[\\ufe0e\\ufe0f]?"+Tt+")*"),Ot="(?:"+[yt,kt,Ct].join("|")+")"+Et,Pt="(?:"+[xt+gt+"?",gt,kt,Ct,pt].join("|")+")",Dt=RegExp("['’]","g"),At=RegExp(gt,"g"),It=RegExp(wt+"(?="+wt+")|"+Pt+Et,"g"),Nt=RegExp([Lt+"?"+_t+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[mt,Lt,"$"].join("|")+")",Mt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[mt,Lt+St,"$"].join("|")+")",Lt+"?"+St+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vt,Ot].join("|"),"g"),Rt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),jt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yt=-1,Ft={};Ft[L]=Ft[S]=Ft[M]=Ft[T]=Ft[E]=Ft[O]=Ft["[object Uint8ClampedArray]"]=Ft[P]=Ft[D]=!0,Ft[l]=Ft[u]=Ft[k]=Ft[c]=Ft[C]=Ft[d]=Ft[h]=Ft[f]=Ft[m]=Ft[g]=Ft[v]=Ft[y]=Ft[_]=Ft[b]=Ft[x]=!1;var Bt={};Bt[l]=Bt[u]=Bt[k]=Bt[C]=Bt[c]=Bt[d]=Bt[L]=Bt[S]=Bt[M]=Bt[T]=Bt[E]=Bt[m]=Bt[g]=Bt[v]=Bt[y]=Bt[_]=Bt[b]=Bt[w]=Bt[O]=Bt["[object Uint8ClampedArray]"]=Bt[P]=Bt[D]=!0,Bt[h]=Bt[f]=Bt[x]=!1;var $t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ht=parseFloat,Ut=parseInt,Vt="object"==typeof t&&t&&t.Object===Object&&t,Wt="object"==typeof self&&self&&self.Object===Object&&self,Gt=Vt||Wt||Function("return this")(),qt=e&&!e.nodeType&&e,Zt=qt&&"object"==typeof i&&i&&!i.nodeType&&i,Xt=Zt&&Zt.exports===qt,Jt=Xt&&Vt.process,Kt=function(){try{var t=Zt&&Zt.require&&Zt.require("util").types;return t||Jt&&Jt.binding&&Jt.binding("util")}catch(t){}}(),Qt=Kt&&Kt.isArrayBuffer,te=Kt&&Kt.isDate,ee=Kt&&Kt.isMap,ne=Kt&&Kt.isRegExp,ie=Kt&&Kt.isSet,re=Kt&&Kt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r-1}function he(t,e,n){for(var i=-1,r=null==t?0:t.length;++i-1;);return n}function Ie(t,e){for(var n=t.length;n--&&we(e,t[n],0)>-1;);return n}function Ne(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}var Re=Se({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),je=Se({"&":"&","<":"<",">":">",'"':""","'":"'"});function ze(t){return"\\"+$t[t]}function Ye(t){return Rt.test(t)}function Fe(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function Be(t,e){return function(n){return t(e(n))}}function $e(t,e){for(var n=-1,i=t.length,r=0,o=[];++n",""":'"',"'":"'"});var qe=function t(e){var n,i=(e=null==e?Gt:qe.defaults(Gt.Object(),e,qe.pick(Gt,zt))).Array,r=e.Date,ht=e.Error,ft=e.Function,pt=e.Math,mt=e.Object,gt=e.RegExp,vt=e.String,yt=e.TypeError,_t=i.prototype,bt=ft.prototype,wt=mt.prototype,xt=e["__core-js_shared__"],kt=bt.toString,Ct=wt.hasOwnProperty,Lt=0,St=(n=/[^.]+$/.exec(xt&&xt.keys&&xt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Mt=wt.toString,Tt=kt.call(mt),Et=Gt._,Ot=gt("^"+kt.call(Ct).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=Xt?e.Buffer:void 0,It=e.Symbol,Rt=e.Uint8Array,$t=Pt?Pt.allocUnsafe:void 0,Vt=Be(mt.getPrototypeOf,mt),Wt=mt.create,qt=wt.propertyIsEnumerable,Zt=_t.splice,Jt=It?It.isConcatSpreadable:void 0,Kt=It?It.iterator:void 0,ye=It?It.toStringTag:void 0,Se=function(){try{var t=Qr(mt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ze=e.clearTimeout!==Gt.clearTimeout&&e.clearTimeout,Xe=r&&r.now!==Gt.Date.now&&r.now,Je=e.setTimeout!==Gt.setTimeout&&e.setTimeout,Ke=pt.ceil,Qe=pt.floor,tn=mt.getOwnPropertySymbols,en=Pt?Pt.isBuffer:void 0,nn=e.isFinite,rn=_t.join,on=Be(mt.keys,mt),an=pt.max,sn=pt.min,ln=r.now,un=e.parseInt,cn=pt.random,dn=_t.reverse,hn=Qr(e,"DataView"),fn=Qr(e,"Map"),pn=Qr(e,"Promise"),mn=Qr(e,"Set"),gn=Qr(e,"WeakMap"),vn=Qr(mt,"create"),yn=gn&&new gn,_n={},bn=Mo(hn),wn=Mo(fn),xn=Mo(pn),kn=Mo(mn),Cn=Mo(gn),Ln=It?It.prototype:void 0,Sn=Ln?Ln.valueOf:void 0,Mn=Ln?Ln.toString:void 0;function Tn(t){if(Ua(t)&&!Aa(t)&&!(t instanceof Dn)){if(t instanceof Pn)return t;if(Ct.call(t,"__wrapped__"))return To(t)}return new Pn(t)}var En=function(){function t(){}return function(e){if(!Ha(e))return{};if(Wt)return Wt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function On(){}function Pn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Dn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function An(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Xn(t,e,n,i,r,o){var a,s=1&e,u=2&e,h=4&e;if(n&&(a=r?n(t,i,r,o):n(t)),void 0!==a)return a;if(!Ha(t))return t;var x=Aa(t);if(x){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Ct.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return vr(t,a)}else{var A=no(t),I=A==f||A==p;if(ja(t))return dr(t,s);if(A==v||A==l||I&&!r){if(a=u||I?{}:ro(t),!s)return u?function(t,e){return yr(t,eo(t),e)}(t,function(t,e){return t&&yr(e,ws(e),t)}(a,t)):function(t,e){return yr(t,to(t),e)}(t,Wn(a,t))}else{if(!Bt[A])return r?t:{};a=function(t,e,n){var i=t.constructor;switch(e){case k:return hr(t);case c:case d:return new i(+t);case C:return function(t,e){var n=e?hr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case L:case S:case M:case T:case E:case O:case"[object Uint8ClampedArray]":case P:case D:return fr(t,n);case m:return new i;case g:case b:return new i(t);case y:return function(t){var e=new t.constructor(t.source,it.exec(t));return e.lastIndex=t.lastIndex,e}(t);case _:return new i;case w:return r=t,Sn?mt(Sn.call(r)):{}}var r}(t,A,s)}}o||(o=new jn);var N=o.get(t);if(N)return N;o.set(t,a),Za(t)?t.forEach((function(i){a.add(Xn(i,e,n,i,t,o))})):Va(t)&&t.forEach((function(i,r){a.set(r,Xn(i,e,n,r,t,o))}));var R=x?void 0:(h?u?Wr:Vr:u?ws:bs)(t);return se(R||t,(function(i,r){R&&(i=t[r=i]),Hn(a,r,Xn(i,e,n,r,t,o))})),a}function Jn(t,e,n){var i=n.length;if(null==t)return!i;for(t=mt(t);i--;){var r=n[i],o=e[r],a=t[r];if(void 0===a&&!(r in t)||!o(a))return!1}return!0}function Kn(t,e,n){if("function"!=typeof t)throw new yt(o);return bo((function(){t.apply(void 0,n)}),e)}function Qn(t,e,n,i){var r=-1,o=de,a=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=fe(e,Oe(n))),i?(o=he,a=!1):e.length>=200&&(o=De,a=!1,e=new Rn(e));t:for(;++r-1},In.prototype.set=function(t,e){var n=this.__data__,i=Un(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new An,map:new(fn||In),string:new An}},Nn.prototype.delete=function(t){var e=Jr(this,t).delete(t);return this.size-=e?1:0,e},Nn.prototype.get=function(t){return Jr(this,t).get(t)},Nn.prototype.has=function(t){return Jr(this,t).has(t)},Nn.prototype.set=function(t,e){var n=Jr(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Rn.prototype.add=Rn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(t){return this.__data__.has(t)},jn.prototype.clear=function(){this.__data__=new In,this.size=0},jn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},jn.prototype.get=function(t){return this.__data__.get(t)},jn.prototype.has=function(t){return this.__data__.has(t)},jn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof In){var i=n.__data__;if(!fn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Nn(i)}return n.set(t,e),this.size=n.size,this};var ti=wr(li),ei=wr(ui,!0);function ni(t,e){var n=!0;return ti(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function ii(t,e,n){for(var i=-1,r=t.length;++i0&&n(s)?e>1?oi(s,e-1,n,i,r):pe(r,s):i||(r[r.length]=s)}return r}var ai=xr(),si=xr(!0);function li(t,e){return t&&ai(t,e,bs)}function ui(t,e){return t&&si(t,e,bs)}function ci(t,e){return ce(e,(function(e){return Fa(t[e])}))}function di(t,e){for(var n=0,i=(e=sr(e,t)).length;null!=t&&ne}function mi(t,e){return null!=t&&Ct.call(t,e)}function gi(t,e){return null!=t&&e in mt(t)}function vi(t,e,n){for(var r=n?he:de,o=t[0].length,a=t.length,s=a,l=i(a),u=1/0,c=[];s--;){var d=t[s];s&&e&&(d=fe(d,Oe(e))),u=sn(d.length,u),l[s]=!n&&(e||o>=120&&d.length>=120)?new Rn(s&&d):void 0}d=t[0];var h=-1,f=l[0];t:for(;++h=s)return l;var u=n[i];return l*("desc"==u?-1:1)}}return t.index-e.index}(t,e,n)}))}function Ai(t,e,n){for(var i=-1,r=e.length,o={};++i-1;)s!==t&&Zt.call(s,l,1),Zt.call(t,l,1);return t}function Ni(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;ao(r)?Zt.call(t,r,1):Qi(t,r)}}return t}function Ri(t,e){return t+Qe(cn()*(e-t+1))}function ji(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=Qe(e/2))&&(t+=t)}while(e);return n}function zi(t,e){return wo(mo(t,e,Ws),t+"")}function Yi(t){return Yn(Es(t))}function Fi(t,e){var n=Es(t);return Co(n,Zn(e,0,n.length))}function Bi(t,e,n,i){if(!Ha(t))return t;for(var r=-1,o=(e=sr(e,t)).length,a=o-1,s=t;null!=s&&++ro?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=i(o);++r>>1,a=t[o];null!==a&&!Ja(a)&&(n?a<=e:a=200){var u=e?null:jr(t);if(u)return He(u);a=!1,r=De,l=new Rn}else l=e?[]:s;t:for(;++i=i?t:Vi(t,e,n)}var cr=Ze||function(t){return Gt.clearTimeout(t)};function dr(t,e){if(e)return t.slice();var n=t.length,i=$t?$t(n):new t.constructor(n);return t.copy(i),i}function hr(t){var e=new t.constructor(t.byteLength);return new Rt(e).set(new Rt(t)),e}function fr(t,e){var n=e?hr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function pr(t,e){if(t!==e){var n=void 0!==t,i=null===t,r=t==t,o=Ja(t),a=void 0!==e,s=null===e,l=e==e,u=Ja(e);if(!s&&!u&&!o&&t>e||o&&a&&l&&!s&&!u||i&&a&&l||!n&&l||!r)return 1;if(!i&&!o&&!u&&t1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&so(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),e=mt(e);++i-1?r[o?e[a]:a]:void 0}}function Mr(t){return Ur((function(e){var n=e.length,i=n,r=Pn.prototype.thru;for(t&&e.reverse();i--;){var a=e[i];if("function"!=typeof a)throw new yt(o);if(r&&!s&&"wrapper"==qr(a))var s=new Pn([],!0)}for(i=s?i:n;++i1&&_.reverse(),d&&us))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var d=-1,h=!0,f=2&n?new Rn:void 0;for(o.set(t,e),o.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(J,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return se(s,(function(n){var i="_."+n[0];e&n[1]&&!de(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(K);return e?e[1].split(Q):[]}(i),n)))}function ko(t){var e=0,n=0;return function(){var i=ln(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Co(t,e){var n=-1,i=t.length,r=i-1;for(e=void 0===e?i:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,qo(t,n)}));function ea(t){var e=Tn(t);return e.__chain__=!0,e}function na(t,e){return e(t)}var ia=Ur((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,r=function(e){return qn(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Dn&&ao(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:na,args:[r],thisArg:void 0}),new Pn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(r)}));var ra=_r((function(t,e,n){Ct.call(t,n)?++t[n]:Gn(t,n,1)}));var oa=Sr(Do),aa=Sr(Ao);function sa(t,e){return(Aa(t)?se:ti)(t,Xr(e,3))}function la(t,e){return(Aa(t)?le:ei)(t,Xr(e,3))}var ua=_r((function(t,e,n){Ct.call(t,n)?t[n].push(e):Gn(t,n,[e])}));var ca=zi((function(t,e,n){var r=-1,o="function"==typeof e,a=Na(t)?i(t.length):[];return ti(t,(function(t){a[++r]=o?oe(e,t,n):yi(t,e,n)})),a})),da=_r((function(t,e,n){Gn(t,n,e)}));function ha(t,e){return(Aa(t)?fe:Mi)(t,Xr(e,3))}var fa=_r((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var pa=zi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&so(t,e[0],e[1])?e=[]:n>2&&so(e[0],e[1],e[2])&&(e=[e[0]]),Di(t,oi(e,1),[])})),ma=Xe||function(){return Gt.Date.now()};function ga(t,e,n){return e=n?void 0:e,Yr(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function va(t,e){var n;if("function"!=typeof e)throw new yt(o);return t=is(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ya=zi((function(t,e,n){var i=1;if(n.length){var r=$e(n,Zr(ya));i|=32}return Yr(t,i,e,n,r)})),_a=zi((function(t,e,n){var i=3;if(n.length){var r=$e(n,Zr(_a));i|=32}return Yr(e,i,t,n,r)}));function ba(t,e,n){var i,r,a,s,l,u,c=0,d=!1,h=!1,f=!0;if("function"!=typeof t)throw new yt(o);function p(e){var n=i,o=r;return i=r=void 0,c=e,s=t.apply(o,n)}function m(t){return c=t,l=bo(v,e),d?p(t):s}function g(t){var n=t-u;return void 0===u||n>=e||n<0||h&&t-c>=a}function v(){var t=ma();if(g(t))return y(t);l=bo(v,function(t){var n=e-(t-u);return h?sn(n,a-(t-c)):n}(t))}function y(t){return l=void 0,f&&i?p(t):(i=r=void 0,s)}function _(){var t=ma(),n=g(t);if(i=arguments,r=this,u=t,n){if(void 0===l)return m(u);if(h)return cr(l),l=bo(v,e),p(u)}return void 0===l&&(l=bo(v,e)),s}return e=os(e)||0,Ha(n)&&(d=!!n.leading,a=(h="maxWait"in n)?an(os(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),_.cancel=function(){void 0!==l&&cr(l),c=0,i=u=r=l=void 0},_.flush=function(){return void 0===l?s:y(ma())},_}var wa=zi((function(t,e){return Kn(t,1,e)})),xa=zi((function(t,e,n){return Kn(t,os(e)||0,n)}));function ka(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new yt(o);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(ka.Cache||Nn),n}function Ca(t){if("function"!=typeof t)throw new yt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}ka.Cache=Nn;var La=lr((function(t,e){var n=(e=1==e.length&&Aa(e[0])?fe(e[0],Oe(Xr())):fe(oi(e,1),Oe(Xr()))).length;return zi((function(i){for(var r=-1,o=sn(i.length,n);++r=e})),Da=_i(function(){return arguments}())?_i:function(t){return Ua(t)&&Ct.call(t,"callee")&&!qt.call(t,"callee")},Aa=i.isArray,Ia=Qt?Oe(Qt):function(t){return Ua(t)&&fi(t)==k};function Na(t){return null!=t&&$a(t.length)&&!Fa(t)}function Ra(t){return Ua(t)&&Na(t)}var ja=en||ol,za=te?Oe(te):function(t){return Ua(t)&&fi(t)==d};function Ya(t){if(!Ua(t))return!1;var e=fi(t);return e==h||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ga(t)}function Fa(t){if(!Ha(t))return!1;var e=fi(t);return e==f||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ba(t){return"number"==typeof t&&t==is(t)}function $a(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Ha(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ua(t){return null!=t&&"object"==typeof t}var Va=ee?Oe(ee):function(t){return Ua(t)&&no(t)==m};function Wa(t){return"number"==typeof t||Ua(t)&&fi(t)==g}function Ga(t){if(!Ua(t)||fi(t)!=v)return!1;var e=Vt(t);if(null===e)return!0;var n=Ct.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&kt.call(n)==Tt}var qa=ne?Oe(ne):function(t){return Ua(t)&&fi(t)==y};var Za=ie?Oe(ie):function(t){return Ua(t)&&no(t)==_};function Xa(t){return"string"==typeof t||!Aa(t)&&Ua(t)&&fi(t)==b}function Ja(t){return"symbol"==typeof t||Ua(t)&&fi(t)==w}var Ka=re?Oe(re):function(t){return Ua(t)&&$a(t.length)&&!!Ft[fi(t)]};var Qa=Ir(Si),ts=Ir((function(t,e){return t<=e}));function es(t){if(!t)return[];if(Na(t))return Xa(t)?We(t):vr(t);if(Kt&&t[Kt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Kt]());var e=no(t);return(e==m?Fe:e==_?He:Es)(t)}function ns(t){return t?(t=os(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function is(t){var e=ns(t),n=e%1;return e==e?n?e-n:e:0}function rs(t){return t?Zn(is(t),0,4294967295):0}function os(t){if("number"==typeof t)return t;if(Ja(t))return NaN;if(Ha(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ha(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(q,"");var n=ot.test(t);return n||st.test(t)?Ut(t.slice(2),n?2:8):rt.test(t)?NaN:+t}function as(t){return yr(t,ws(t))}function ss(t){return null==t?"":Ji(t)}var ls=br((function(t,e){if(ho(e)||Na(e))yr(e,bs(e),t);else for(var n in e)Ct.call(e,n)&&Hn(t,n,e[n])})),us=br((function(t,e){yr(e,ws(e),t)})),cs=br((function(t,e,n,i){yr(e,ws(e),t,i)})),ds=br((function(t,e,n,i){yr(e,bs(e),t,i)})),hs=Ur(qn);var fs=zi((function(t,e){t=mt(t);var n=-1,i=e.length,r=i>2?e[2]:void 0;for(r&&so(e[0],e[1],r)&&(i=1);++n1),e})),yr(t,Wr(t),n),i&&(n=Xn(n,7,$r));for(var r=e.length;r--;)Qi(n,e[r]);return n}));var Ls=Ur((function(t,e){return null==t?{}:function(t,e){return Ai(t,e,(function(e,n){return gs(t,n)}))}(t,e)}));function Ss(t,e){if(null==t)return{};var n=fe(Wr(t),(function(t){return[t]}));return e=Xr(e),Ai(t,n,(function(t,n){return e(t,n[0])}))}var Ms=zr(bs),Ts=zr(ws);function Es(t){return null==t?[]:Pe(t,bs(t))}var Os=Cr((function(t,e,n){return e=e.toLowerCase(),t+(n?Ps(e):e)}));function Ps(t){return Ys(ss(t).toLowerCase())}function Ds(t){return(t=ss(t))&&t.replace(ut,Re).replace(At,"")}var As=Cr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Is=Cr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ns=kr("toLowerCase");var Rs=Cr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var js=Cr((function(t,e,n){return t+(n?" ":"")+Ys(e)}));var zs=Cr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ys=kr("toUpperCase");function Fs(t,e,n){return t=ss(t),void 0===(e=n?void 0:e)?function(t){return jt.test(t)}(t)?function(t){return t.match(Nt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(e)||[]}var Bs=zi((function(t,e){try{return oe(t,void 0,e)}catch(t){return Ya(t)?t:new ht(t)}})),$s=Ur((function(t,e){return se(e,(function(e){e=So(e),Gn(t,e,ya(t[e],t))})),t}));function Hs(t){return function(){return t}}var Us=Mr(),Vs=Mr(!0);function Ws(t){return t}function Gs(t){return ki("function"==typeof t?t:Xn(t,1))}var qs=zi((function(t,e){return function(n){return yi(n,t,e)}})),Zs=zi((function(t,e){return function(n){return yi(t,n,e)}}));function Xs(t,e,n){var i=bs(e),r=ci(e,i);null!=n||Ha(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=ci(e,bs(e)));var o=!(Ha(n)&&"chain"in n&&!n.chain),a=Fa(t);return se(r,(function(n){var i=e[n];t[n]=i,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),r=n.__actions__=vr(this.__actions__);return r.push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,pe([this.value()],arguments))})})),t}function Js(){}var Ks=Pr(fe),Qs=Pr(ue),tl=Pr(ve);function el(t){return lo(t)?Le(So(t)):function(t){return function(e){return di(e,t)}}(t)}var nl=Ar(),il=Ar(!0);function rl(){return[]}function ol(){return!1}var al=Or((function(t,e){return t+e}),0),sl=Rr("ceil"),ll=Or((function(t,e){return t/e}),1),ul=Rr("floor");var cl,dl=Or((function(t,e){return t*e}),1),hl=Rr("round"),fl=Or((function(t,e){return t-e}),0);return Tn.after=function(t,e){if("function"!=typeof e)throw new yt(o);return t=is(t),function(){if(--t<1)return e.apply(this,arguments)}},Tn.ary=ga,Tn.assign=ls,Tn.assignIn=us,Tn.assignInWith=cs,Tn.assignWith=ds,Tn.at=hs,Tn.before=va,Tn.bind=ya,Tn.bindAll=$s,Tn.bindKey=_a,Tn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Aa(t)?t:[t]},Tn.chain=ea,Tn.chunk=function(t,e,n){e=(n?so(t,e,n):void 0===e)?1:an(is(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,a=0,s=i(Ke(r/e));or?0:r+n),(i=void 0===i||i>r?r:is(i))<0&&(i+=r),i=n>i?0:rs(i);n>>0)?(t=ss(t))&&("string"==typeof e||null!=e&&!qa(e))&&!(e=Ji(e))&&Ye(t)?ur(We(t),0,n):t.split(e,n):[]},Tn.spread=function(t,e){if("function"!=typeof t)throw new yt(o);return e=null==e?0:an(is(e),0),zi((function(n){var i=n[e],r=ur(n,0,e);return i&&pe(r,i),oe(t,this,r)}))},Tn.tail=function(t){var e=null==t?0:t.length;return e?Vi(t,1,e):[]},Tn.take=function(t,e,n){return t&&t.length?Vi(t,0,(e=n||void 0===e?1:is(e))<0?0:e):[]},Tn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Vi(t,(e=i-(e=n||void 0===e?1:is(e)))<0?0:e,i):[]},Tn.takeRightWhile=function(t,e){return t&&t.length?er(t,Xr(e,3),!1,!0):[]},Tn.takeWhile=function(t,e){return t&&t.length?er(t,Xr(e,3)):[]},Tn.tap=function(t,e){return e(t),t},Tn.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new yt(o);return Ha(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),ba(t,e,{leading:i,maxWait:e,trailing:r})},Tn.thru=na,Tn.toArray=es,Tn.toPairs=Ms,Tn.toPairsIn=Ts,Tn.toPath=function(t){return Aa(t)?fe(t,So):Ja(t)?[t]:vr(Lo(ss(t)))},Tn.toPlainObject=as,Tn.transform=function(t,e,n){var i=Aa(t),r=i||ja(t)||Ka(t);if(e=Xr(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:Ha(t)&&Fa(o)?En(Vt(t)):{}}return(r?se:li)(t,(function(t,i,r){return e(n,t,i,r)})),n},Tn.unary=function(t){return ga(t,1)},Tn.union=Uo,Tn.unionBy=Vo,Tn.unionWith=Wo,Tn.uniq=function(t){return t&&t.length?Ki(t):[]},Tn.uniqBy=function(t,e){return t&&t.length?Ki(t,Xr(e,2)):[]},Tn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Ki(t,void 0,e):[]},Tn.unset=function(t,e){return null==t||Qi(t,e)},Tn.unzip=Go,Tn.unzipWith=qo,Tn.update=function(t,e,n){return null==t?t:tr(t,e,ar(n))},Tn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:void 0,null==t?t:tr(t,e,ar(n),i)},Tn.values=Es,Tn.valuesIn=function(t){return null==t?[]:Pe(t,ws(t))},Tn.without=Zo,Tn.words=Fs,Tn.wrap=function(t,e){return Sa(ar(e),t)},Tn.xor=Xo,Tn.xorBy=Jo,Tn.xorWith=Ko,Tn.zip=Qo,Tn.zipObject=function(t,e){return rr(t||[],e||[],Hn)},Tn.zipObjectDeep=function(t,e){return rr(t||[],e||[],Bi)},Tn.zipWith=ta,Tn.entries=Ms,Tn.entriesIn=Ts,Tn.extend=us,Tn.extendWith=cs,Xs(Tn,Tn),Tn.add=al,Tn.attempt=Bs,Tn.camelCase=Os,Tn.capitalize=Ps,Tn.ceil=sl,Tn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==e&&(e=(e=os(e))==e?e:0),Zn(os(t),e,n)},Tn.clone=function(t){return Xn(t,4)},Tn.cloneDeep=function(t){return Xn(t,5)},Tn.cloneDeepWith=function(t,e){return Xn(t,5,e="function"==typeof e?e:void 0)},Tn.cloneWith=function(t,e){return Xn(t,4,e="function"==typeof e?e:void 0)},Tn.conformsTo=function(t,e){return null==e||Jn(t,e,bs(e))},Tn.deburr=Ds,Tn.defaultTo=function(t,e){return null==t||t!=t?e:t},Tn.divide=ll,Tn.endsWith=function(t,e,n){t=ss(t),e=Ji(e);var i=t.length,r=n=void 0===n?i:Zn(is(n),0,i);return(n-=e.length)>=0&&t.slice(n,r)==e},Tn.eq=Ea,Tn.escape=function(t){return(t=ss(t))&&Y.test(t)?t.replace(j,je):t},Tn.escapeRegExp=function(t){return(t=ss(t))&&G.test(t)?t.replace(W,"\\$&"):t},Tn.every=function(t,e,n){var i=Aa(t)?ue:ni;return n&&so(t,e,n)&&(e=void 0),i(t,Xr(e,3))},Tn.find=oa,Tn.findIndex=Do,Tn.findKey=function(t,e){return _e(t,Xr(e,3),li)},Tn.findLast=aa,Tn.findLastIndex=Ao,Tn.findLastKey=function(t,e){return _e(t,Xr(e,3),ui)},Tn.floor=ul,Tn.forEach=sa,Tn.forEachRight=la,Tn.forIn=function(t,e){return null==t?t:ai(t,Xr(e,3),ws)},Tn.forInRight=function(t,e){return null==t?t:si(t,Xr(e,3),ws)},Tn.forOwn=function(t,e){return t&&li(t,Xr(e,3))},Tn.forOwnRight=function(t,e){return t&&ui(t,Xr(e,3))},Tn.get=ms,Tn.gt=Oa,Tn.gte=Pa,Tn.has=function(t,e){return null!=t&&io(t,e,mi)},Tn.hasIn=gs,Tn.head=No,Tn.identity=Ws,Tn.includes=function(t,e,n,i){t=Na(t)?t:Es(t),n=n&&!i?is(n):0;var r=t.length;return n<0&&(n=an(r+n,0)),Xa(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&we(t,e,n)>-1},Tn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:is(n);return r<0&&(r=an(i+r,0)),we(t,e,r)},Tn.inRange=function(t,e,n){return e=ns(e),void 0===n?(n=e,e=0):n=ns(n),function(t,e,n){return t>=sn(e,n)&&t=-9007199254740991&&t<=9007199254740991},Tn.isSet=Za,Tn.isString=Xa,Tn.isSymbol=Ja,Tn.isTypedArray=Ka,Tn.isUndefined=function(t){return void 0===t},Tn.isWeakMap=function(t){return Ua(t)&&no(t)==x},Tn.isWeakSet=function(t){return Ua(t)&&"[object WeakSet]"==fi(t)},Tn.join=function(t,e){return null==t?"":rn.call(t,e)},Tn.kebabCase=As,Tn.last=Yo,Tn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==n&&(r=(r=is(n))<0?an(i+r,0):sn(r,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,r):be(t,ke,r,!0)},Tn.lowerCase=Is,Tn.lowerFirst=Ns,Tn.lt=Qa,Tn.lte=ts,Tn.max=function(t){return t&&t.length?ii(t,Ws,pi):void 0},Tn.maxBy=function(t,e){return t&&t.length?ii(t,Xr(e,2),pi):void 0},Tn.mean=function(t){return Ce(t,Ws)},Tn.meanBy=function(t,e){return Ce(t,Xr(e,2))},Tn.min=function(t){return t&&t.length?ii(t,Ws,Si):void 0},Tn.minBy=function(t,e){return t&&t.length?ii(t,Xr(e,2),Si):void 0},Tn.stubArray=rl,Tn.stubFalse=ol,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=dl,Tn.nth=function(t,e){return t&&t.length?Pi(t,is(e)):void 0},Tn.noConflict=function(){return Gt._===this&&(Gt._=Et),this},Tn.noop=Js,Tn.now=ma,Tn.pad=function(t,e,n){t=ss(t);var i=(e=is(e))?Ve(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Dr(Qe(r),n)+t+Dr(Ke(r),n)},Tn.padEnd=function(t,e,n){t=ss(t);var i=(e=is(e))?Ve(t):0;return e&&ie){var i=t;t=e,e=i}if(n||t%1||e%1){var r=cn();return sn(t+r*(e-t+Ht("1e-"+((r+"").length-1))),e)}return Ri(t,e)},Tn.reduce=function(t,e,n){var i=Aa(t)?me:Me,r=arguments.length<3;return i(t,Xr(e,4),n,r,ti)},Tn.reduceRight=function(t,e,n){var i=Aa(t)?ge:Me,r=arguments.length<3;return i(t,Xr(e,4),n,r,ei)},Tn.repeat=function(t,e,n){return e=(n?so(t,e,n):void 0===e)?1:is(e),ji(ss(t),e)},Tn.replace=function(){var t=arguments,e=ss(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Tn.result=function(t,e,n){var i=-1,r=(e=sr(e,t)).length;for(r||(r=1,t=void 0);++i9007199254740991)return[];var n=4294967295,i=sn(t,4294967295);t-=4294967295;for(var r=Ee(i,e=Xr(e));++n=o)return t;var s=n-Ve(i);if(s<1)return i;var l=a?ur(a,0,s).join(""):t.slice(0,s);if(void 0===r)return l+i;if(a&&(s+=l.length-s),qa(r)){if(t.slice(s).search(r)){var u,c=l;for(r.global||(r=gt(r.source,ss(it.exec(r))+"g")),r.lastIndex=0;u=r.exec(c);)var d=u.index;l=l.slice(0,void 0===d?s:d)}}else if(t.indexOf(Ji(r),s)!=s){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i},Tn.unescape=function(t){return(t=ss(t))&&z.test(t)?t.replace(R,Ge):t},Tn.uniqueId=function(t){var e=++Lt;return ss(t)+e},Tn.upperCase=zs,Tn.upperFirst=Ys,Tn.each=sa,Tn.eachRight=la,Tn.first=No,Xs(Tn,(cl={},li(Tn,(function(t,e){Ct.call(Tn.prototype,e)||(cl[e]=t)})),cl),{chain:!1}),Tn.VERSION="4.17.20",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Tn[t].placeholder=Tn})),se(["drop","take"],(function(t,e){Dn.prototype[t]=function(n){n=void 0===n?1:an(is(n),0);var i=this.__filtered__&&!e?new Dn(this):this.clone();return i.__filtered__?i.__takeCount__=sn(n,i.__takeCount__):i.__views__.push({size:sn(n,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Dn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;Dn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Xr(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Dn.prototype[t]=function(){return this[n](1).value()[0]}})),se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Dn.prototype[t]=function(){return this.__filtered__?new Dn(this):this[n](1)}})),Dn.prototype.compact=function(){return this.filter(Ws)},Dn.prototype.find=function(t){return this.filter(t).head()},Dn.prototype.findLast=function(t){return this.reverse().find(t)},Dn.prototype.invokeMap=zi((function(t,e){return"function"==typeof t?new Dn(this):this.map((function(n){return yi(n,t,e)}))})),Dn.prototype.reject=function(t){return this.filter(Ca(Xr(t)))},Dn.prototype.slice=function(t,e){t=is(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Dn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=is(e))<0?n.dropRight(-e):n.take(e-t)),n)},Dn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Dn.prototype.toArray=function(){return this.take(4294967295)},li(Dn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),r=Tn[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);r&&(Tn.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,s=e instanceof Dn,l=a[0],u=s||Aa(e),c=function(t){var e=r.apply(Tn,pe([t],a));return i&&d?e[0]:e};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var d=this.__chain__,h=!!this.__actions__.length,f=o&&!d,p=s&&!h;if(!o&&u){e=p?e:new Dn(this);var m=t.apply(e,a);return m.__actions__.push({func:na,args:[c],thisArg:void 0}),new Pn(m,d)}return f&&p?t.apply(this,a):(m=this.thru(c),f?i?m.value()[0]:m.value():m)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=_t[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Tn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Aa(r)?r:[],t)}return this[n]((function(n){return e.apply(Aa(n)?n:[],t)}))}})),li(Dn.prototype,(function(t,e){var n=Tn[e];if(n){var i=n.name+"";Ct.call(_n,i)||(_n[i]=[]),_n[i].push({name:e,func:n})}})),_n[Tr(void 0,2).name]=[{name:"wrapper",func:void 0}],Dn.prototype.clone=function(){var t=new Dn(this.__wrapped__);return t.__actions__=vr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=vr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=vr(this.__views__),t},Dn.prototype.reverse=function(){if(this.__filtered__){var t=new Dn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Dn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Aa(t),i=e<0,r=n?t.length:0,o=function(t,e,n){var i=-1,r=n.length;for(;++i=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(t){for(var e,n=this;n instanceof On;){var i=To(n);i.__index__=0,i.__values__=void 0,e?r.__wrapped__=i:e=i;var r=i;n=n.__wrapped__}return r.__wrapped__=t,e},Tn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Dn){var e=t;return this.__actions__.length&&(e=new Dn(this)),(e=e.reverse()).__actions__.push({func:na,args:[Ho],thisArg:void 0}),new Pn(e,this.__chain__)}return this.thru(Ho)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return nr(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,Kt&&(Tn.prototype[Kt]=function(){return this}),Tn}();Gt._=qe,void 0===(r=function(){return qe}.call(e,n,e,i))||(i.exports=r)}).call(this)}).call(this,n("yLpj"),n("YuTi")(t))},M9Sv:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.locations-control[data-v-9cb3586c] {\n text-align: right;\n}\n\n/* Small devices */\n@media screen and (max-width: 768px)\n {\n.locations-control[data-v-9cb3586c] {\n text-align: center;\n}\n}\n",""])},MBEJ:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.long-purp[data-v-709d4682] {\n background-color: #8e7fd6;\n width: 100%;\n}\n",""])},MLWZ:function(t,e,n){"use strict";var i=n("xTJ+");function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,(function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},"MO+k":function(t,e,n){t.exports=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[e[i]]=i);var r=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var a=r[o].channels,s=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:a}),Object.defineProperty(r[o],"labels",{value:s})}r.rgb.hsl=function(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a;return s===a?e=0:i===s?e=(r-o)/l:r===s?e=2+(o-i)/l:o===s&&(e=4+(i-r)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},r.rgb.hsv=function(t){var e,n,i,r,o,a=t[0]/255,s=t[1]/255,l=t[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),d=function(t){return(u-t)/6/c+.5};return 0===c?r=o=0:(o=c/u,e=d(a),n=d(s),i=d(l),a===u?r=i-n:s===u?r=1/3+e-i:l===u&&(r=2/3+n-e),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*u]},r.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2];return[r.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(n,i))*100,100*(i=1-1/255*Math.max(e,Math.max(n,i)))]},r.rgb.cmyk=function(t){var e,n=t[0]/255,i=t[1]/255,r=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-r)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-r-e)/(1-e)||0),100*e]},r.rgb.keyword=function(t){var i=n[t];if(i)return i;var r,o,a,s=1/0;for(var l in e)if(e.hasOwnProperty(l)){var u=e[l],c=(o=t,a=u,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]},r.rgb.lab=function(t){var e=r.rgb.xyz(t),n=e[0],i=e[1],o=e[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(t){var e,n,i,r,o,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[o=255*l,o,o];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];for(var u=0;u<3;u++)(i=a+1/3*-(u-1))<0&&i++,i>1&&i--,o=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,r[u]=255*o;return r},r.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,r=n,o=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=o<=1?o:2-o,[e,100*(0===i?2*r/(o+r):2*n/(i+n)),(i+n)/2*100]},r.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,r=Math.floor(e)%6,o=e-Math.floor(e),a=255*i*(1-n),s=255*i*(1-n*o),l=255*i*(1-n*(1-o));switch(i*=255,r){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}},r.hsv.hsl=function(t){var e,n,i,r=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return i=(2-o)*a,n=o*s,[r,100*(n=(n/=(e=(2-o)*s)<=1?e:2-e)||0),100*(i/=2)]},r.hwb.rgb=function(t){var e,n,i,r,o,a,s,l=t[0]/360,u=t[1]/100,c=t[2]/100,d=u+c;switch(d>1&&(u/=d,c/=d),i=6*l-(e=Math.floor(6*l)),0!=(1&e)&&(i=1-i),r=u+i*((n=1-c)-u),e){default:case 6:case 0:o=n,a=r,s=u;break;case 1:o=r,a=n,s=u;break;case 2:o=u,a=n,s=r;break;case 3:o=u,a=r,s=n;break;case 4:o=r,a=u,s=n;break;case 5:o=n,a=u,s=r}return[255*o,255*a,255*s]},r.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,r=t[3]/100;return[255*(1-Math.min(1,e*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},r.xyz.rgb=function(t){var e,n,i,r=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*r+1.8758*o+.0415*a,i=.0557*r+-.204*o+1.057*a,e=(e=3.2406*r+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.lab.xyz=function(t){var e,n,i,r=t[0];e=t[1]/500+(n=(r+16)/116),i=n-t[2]/200;var o=Math.pow(n,3),a=Math.pow(e,3),s=Math.pow(i,3);return n=o>.008856?o:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[e*=95.047,n*=100,i*=108.883]},r.lab.lch=function(t){var e,n=t[0],i=t[1],r=t[2];return(e=360*Math.atan2(r,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+r*r),e]},r.lch.lab=function(t){var e,n=t[0],i=t[1];return e=t[2]/360*2*Math.PI,[n,i*Math.cos(e),i*Math.sin(e)]},r.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],o=1 in arguments?arguments[1]:r.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===o&&(a+=60),a},r.hsv.ansi16=function(t){return r.rgb.ansi16(r.hsv.rgb(t),t[2])},r.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];return e===n&&n===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},r.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},r.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(t){var e,n=t[0]/255,i=t[1]/255,r=t[2]/255,o=Math.max(Math.max(n,i),r),a=Math.min(Math.min(n,i),r),s=o-a;return e=s<=0?0:o===n?(i-r)/s%6:o===i?2+(r-n)/s:4+(n-i)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},r.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,r=0;return(i=n<.5?2*e*n:2*e*(1-n))<1&&(r=(n-.5*i)/(1-i)),[t[0],100*i,100*r]},r.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,r=0;return i<1&&(r=(n-i)/(1-i)),[t[0],100*i,100*r]},r.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(0===n)return[255*i,255*i,255*i];var r,o=[0,0,0],a=e%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return r=(1-n)*i,[255*(n*o[0]+r),255*(n*o[1]+r),255*(n*o[2]+r)]},r.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},r.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},r.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},r.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,i=n-e,r=0;return i<1&&(r=(n-i)/(1-i)),[t[0],100*i,100*r]},r.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},r.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},r.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},r.gray.hsl=r.gray.hsv=function(t){return[0,0,t[0]]},r.gray.hwb=function(t){return[0,100,t[0]]},r.gray.cmyk=function(t){return[0,0,0,t[0]]},r.gray.lab=function(t){return[t[0],0,0]},r.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}));function i(t){var e=function(){for(var t={},e=Object.keys(n),i=e.length,r=0;r1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var i=n.length,r=0;r1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(i)}))}));var s=a,l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},u={getRgba:c,getHsla:d,getRgb:function(t){var e=c(t);return e&&e.slice(0,3)},getHsl:function(t){var e=d(t);return e&&e.slice(0,3)},getHwb:h,getAlpha:function(t){var e=c(t);return e||(e=d(t))||(e=h(t))?e[3]:void 0},hexString:function(t,e){return e=void 0!==e&&3===t.length?e:t[3],"#"+v(t[0])+v(t[1])+v(t[2])+(e>=0&&e<1?v(Math.round(255*e)):"")},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?f(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:f,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return p(t,e);var n=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return"rgb("+n+"%, "+i+"%, "+r+"%)"},percentaString:p,hslString:function(t,e){return e<1||t[3]&&t[3]<1?m(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:m,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return y[t.slice(0,3)]}};function c(t){if(t){var e=[0,0,0],n=1,i=t.match(/^#([a-fA-F0-9]{3,4})$/i),r="";if(i){r=(i=i[1])[3];for(var o=0;on?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=t,i=void 0===e?.5:e,r=2*i-1,o=this.alpha()-n.alpha(),a=((r*o==-1?r:(r+o)/(1+r*o))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new b,i=this.values,r=n.values;for(var o in i)i.hasOwnProperty(o)&&(t=i[o],"[object Array]"===(e={}.toString.call(t))?r[o]=t.slice(0):"[object Number]"===e&&(r[o]=t));return n}},b.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},b.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},b.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i=0;r--)e.call(n,t[r],r);else for(r=0;r=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-L.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*L.easeInBounce(2*t):.5*L.easeOutBounce(2*t-1)+.5}},S={effects:L};C.easingEffects=L;var M=Math.PI,T=M/180,E=2*M,O=M/2,P=M/4,D=2*M/3,A={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,r,o){if(o){var a=Math.min(o,r/2,i/2),s=e+a,l=n+a,u=e+i-a,c=n+r-a;t.moveTo(e,l),se.left-1e-6&&t.xe.top-1e-6&&t.y0&&this.requestAnimationFrame()},advance:function(){for(var t,e,n,i,r=this.animations,o=0;o=n?(B.callback(t.onAnimationComplete,[t],e),e.animating=!1,r.splice(o,1)):++o}},K=B.options.resolve,Q=["push","pop","shift","splice","unshift"];function tt(t,e){var n=t._chartjs;if(n){var i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(Q.forEach((function(e){delete t[e]})),delete t._chartjs)}}var et=function(t,e){this.initialize(t,e)};B.extend(et.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.chart,n=e.scales,i=this.getDataset(),r=e.options.scales;null!==t.xAxisID&&t.xAxisID in n&&!i.xAxisID||(t.xAxisID=i.xAxisID||r.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in n&&!i.yAxisID||(t.yAxisID=i.yAxisID||r.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&tt(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),i=this.getDataset().data||[],r=n.data;for(t=0,e=i.length;tn&&this.insertElements(n,i-n)},insertElements:function(t,e){for(var n=0;nr?(o=r/e.innerRadius,t.arc(a,s,e.innerRadius-r,i+o,n-o,!0)):t.arc(a,s,r,i+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip()}function ot(t,e,n){var i="inner"===e.borderAlign;i?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),n.fullCircles&&function(t,e,n,i){var r,o=n.endAngle;for(i&&(n.endAngle=n.startAngle+it,rt(t,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=it,n.fullCircles--)),t.beginPath(),t.arc(n.x,n.y,n.innerRadius,n.startAngle+it,n.startAngle,!0),r=0;rs;)r-=it;for(;r=a&&r<=s,u=o>=n.innerRadius&&o<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/it)};if(e.save(),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+it,e.beginPath(),e.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),e.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),e.closePath(),t=0;tt.x&&(e=vt(e,"left","right")):t.basen?n:i,r:l.right||r<0?0:r>e?e:r,b:l.bottom||o<0?0:o>n?n:o,l:l.left||a<0?0:a>e?e:a}}function _t(t,e,n){var i=null===e,r=null===n,o=!(!t||i&&r)&>(t);return o&&(i||e>=o.left&&e<=o.right)&&(r||n>=o.top&&n<=o.bottom)}R._set("global",{elements:{rectangle:{backgroundColor:pt,borderColor:pt,borderSkipped:"bottom",borderWidth:0}}});var bt=q.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,n=function(t){var e=gt(t),n=e.right-e.left,i=e.bottom-e.top,r=yt(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b}}}(e),i=n.outer,r=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(i.x,i.y,i.w,i.h),i.w===r.w&&i.h===r.h||(t.save(),t.beginPath(),t.rect(i.x,i.y,i.w,i.h),t.clip(),t.fillStyle=e.borderColor,t.rect(r.x,r.y,r.w,r.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return _t(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return mt(n)?_t(n,t,null):_t(n,null,e)},inXRange:function(t){return _t(this._view,t,null)},inYRange:function(t){return _t(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return mt(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return mt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),wt={},xt=at,kt=ut,Ct=ft,Lt=bt;wt.Arc=xt,wt.Line=kt,wt.Point=Ct,wt.Rectangle=Lt;var St=B._deprecated,Mt=B.valueOrDefault;function Tt(t,e,n){var i,r,o=n.barThickness,a=e.stackCount,s=e.pixels[t],l=B.isNullOrUndef(o)?function(t,e){var n,i,r,o,a=t._length;for(r=1,o=e.length;r0?Math.min(a,Math.abs(i-n)):a,n=i;return a}(e.scale,e.pixels):-1;return B.isNullOrUndef(o)?(i=l*n.categoryPercentage,r=n.barPercentage):(i=o*a,r=1),{chunk:i/a,ratio:r,start:s-i/2}}R._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),R._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Et=nt.extend({dataElementType:wt.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,e,n=this;nt.prototype.initialize.apply(n,arguments),(t=n.getMeta()).stack=n.getDataset().stack,t.bar=!0,e=n._getIndexScale().options,St("bar chart",e.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),St("bar chart",e.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),St("bar chart",e.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),St("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),St("bar chart",e.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e=0&&m.min>=0?m.min:m.max,b=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,w=p.length;if(v||void 0===v&&void 0!==y)for(i=0;i=0&&u.max>=0?u.max:u.min,(m.min<0&&o<0||m.max>=0&&o>0)&&(_+=o));return a=d.getPixelForValue(_),l=(s=d.getPixelForValue(_+b))-a,void 0!==g&&Math.abs(l)=0&&!h||b<0&&h?a-g:a+g),{size:l,base:a,head:s,center:s+l/2}},calculateBarIndexPixels:function(t,e,n,i){var r="flex"===i.barThickness?function(t,e,n){var i,r=e.pixels,o=r[t],a=t>0?r[t-1]:null,s=t=It?-Nt:y<-It?Nt:0)+g,b=Math.cos(y),w=Math.sin(y),x=Math.cos(_),k=Math.sin(_),C=y<=0&&_>=0||_>=Nt,L=y<=Rt&&_>=Rt||_>=Nt+Rt,S=y<=-Rt&&_>=-Rt||_>=It+Rt,M=y===-It||_>=It?-1:Math.min(b,b*m,x,x*m),T=S?-1:Math.min(w,w*m,k,k*m),E=C?1:Math.max(b,b*m,x,x*m),O=L?1:Math.max(w,w*m,k,k*m);u=(E-M)/2,c=(O-T)/2,d=-(E+M)/2,h=-(O+T)/2}for(i=0,r=p.length;i0&&!isNaN(t)?Nt*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,i,r,o,a,s,l,u=0,c=this.chart;if(!t)for(e=0,n=c.data.datasets.length;e(u=s>u?s:u)?l:u);return u},setHoverStyle:function(t){var e=t._model,n=t._options,i=B.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=At(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=At(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=At(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,n=0;n0&&Bt(l[t-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),t0&&(o=t.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(t,e){return ie(t,e,{intersect:!1})},point:function(t,e){return te(t,Kt(e,t))},nearest:function(t,e,n){var i=Kt(e,t);n.axis=n.axis||"xy";var r=ne(n.axis);return ee(t,i,n.intersect,r)},x:function(t,e,n){var i=Kt(e,t),r=[],o=!1;return Qt(t,(function(t){t.inXRange(i.x)&&r.push(t),t.inRange(i.x,i.y)&&(o=!0)})),n.intersect&&!o&&(r=[]),r},y:function(t,e,n){var i=Kt(e,t),r=[],o=!1;return Qt(t,(function(t){t.inYRange(i.y)&&r.push(t),t.inRange(i.x,i.y)&&(o=!0)})),n.intersect&&!o&&(r=[]),r}}},oe=B.extend;function ae(t,e){return B.where(t,(function(t){return t.pos===e}))}function se(t,e){return t.sort((function(t,n){var i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function le(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ue(t,e,n){var i,r,o=n.box,a=t.maxPadding;if(n.size&&(t[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,t[n.pos]+=n.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(i=e.outerWidth-le(a,t,"left","right"),r=e.outerHeight-le(a,t,"top","bottom"),i!==t.w||r!==t.h)return t.w=i,t.h=r,n.horizontal?i!==t.w:r!==t.h}function ce(t,e){var n=e.maxPadding;function i(t){var i={left:0,top:0,right:0,bottom:0};return t.forEach((function(t){i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function de(t,e,n){var i,r,o,a,s,l,u=[];for(i=0,r=t.length;i div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&fe.default||fe,ge=["animationstart","webkitAnimationStart"],ve={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function ye(t,e){var n=B.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var _e=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function be(t,e,n){t.addEventListener(e,n,_e)}function we(t,e,n){t.removeEventListener(e,n,_e)}function xe(t,e,n,i,r){return{type:t,chart:e,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function ke(t){var e=document.createElement("div");return e.className=t||"",e}function Ce(t,e,n){var i,r,o,a,s=t.$chartjs||(t.$chartjs={}),l=s.resizer=function(t){var e=ke("chartjs-size-monitor"),n=ke("chartjs-size-monitor-expand"),i=ke("chartjs-size-monitor-shrink");n.appendChild(ke()),i.appendChild(ke()),e.appendChild(n),e.appendChild(i),e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var r=function(){e._reset(),t()};return be(n,"scroll",r.bind(n,"expand")),be(i,"scroll",r.bind(i,"shrink")),e}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&t.parentNode,r=i?i.clientWidth:0;e(xe("resize",n)),i&&i.clientWidth0){var o=t[0];o.label?n=o.label:o.xLabel?n=o.xLabel:r>0&&o.index-1?t.split("\n"):t}function Re(t){var e=R.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:Pe(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:Pe(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:Pe(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:Pe(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:Pe(t.titleFontStyle,e.defaultFontStyle),titleFontSize:Pe(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:Pe(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:Pe(t.footerFontStyle,e.defaultFontStyle),footerFontSize:Pe(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function je(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function ze(t){return Ie([],Ne(t))}var Ye=q.extend({initialize:function(){this._model=Re(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,n=e.callbacks,i=n.beforeTitle.apply(t,arguments),r=n.title.apply(t,arguments),o=n.afterTitle.apply(t,arguments),a=[];return a=Ie(a,Ne(i)),a=Ie(a,Ne(r)),a=Ie(a,Ne(o))},getBeforeBody:function(){return ze(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,i=n._options.callbacks,r=[];return B.each(t,(function(t){var o={before:[],lines:[],after:[]};Ie(o.before,Ne(i.beforeLabel.call(n,t,e))),Ie(o.lines,i.label.call(n,t,e)),Ie(o.after,Ne(i.afterLabel.call(n,t,e))),r.push(o)})),r},getAfterBody:function(){return ze(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,n=e.beforeFooter.apply(t,arguments),i=e.footer.apply(t,arguments),r=e.afterFooter.apply(t,arguments),o=[];return o=Ie(o,Ne(n)),o=Ie(o,Ne(i)),o=Ie(o,Ne(r))},update:function(t){var e,n,i,r,o,a,s,l,u,c,d=this,h=d._options,f=d._model,p=d._model=Re(h),m=d._active,g=d._data,v={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},_={width:f.width,height:f.height},b={x:f.caretX,y:f.caretY};if(m.length){p.opacity=1;var w=[],x=[];b=Ae[h.position].call(d,m,d._eventPosition);var k=[];for(e=0,n=m.length;ei.width&&(r=i.width-e.width),r<0&&(r=0)),"top"===c?o+=d:o-="bottom"===c?e.height+d:e.height/2,"center"===c?"left"===u?r+=d:"right"===u&&(r-=d):"left"===u?r-=h:"right"===u&&(r+=h),{x:r,y:o}}(p,_,v=function(t,e){var n,i,r,o,a,s=t._model,l=t._chart,u=t._chart.chartArea,c="center",d="center";s.yl.height-e.height&&(d="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===d?(n=function(t){return t<=h},i=function(t){return t>h}):(n=function(t){return t<=e.width/2},i=function(t){return t>=l.width-e.width/2}),r=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},o=function(t){return t-e.width-s.caretSize-s.caretPadding<0},a=function(t){return t<=f?"top":"bottom"},n(s.x)?(c="left",r(s.x)&&(c="center",d=a(s.y))):i(s.x)&&(c="right",o(s.x)&&(c="center",d=a(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:d}}(this,_),d._chart)}else p.opacity=0;return p.xAlign=v.xAlign,p.yAlign=v.yAlign,p.x=y.x,p.y=y.y,p.width=_.width,p.height=_.height,p.caretX=b.x,p.caretY=b.y,d._model=p,t&&h.custom&&h.custom.call(d,p),d},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,r=this.getCaretPosition(t,e,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)},getCaretPosition:function(t,e,n){var i,r,o,a,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=t.x,p=t.y,m=e.width,g=e.height;if("center"===h)s=p+g/2,"left"===d?(r=(i=f)-u,o=i,a=s+u,l=s-u):(r=(i=f+m)+u,o=i,a=s-u,l=s+u);else if("left"===d?(i=(r=f+c+u)-u,o=r+u):"right"===d?(i=(r=f+m-c-u)-u,o=r+u):(i=(r=n.caretX)-u,o=r+u),"top"===h)s=(a=p)-u,l=a;else{s=(a=p+g)+u,l=a;var v=o;o=i,i=v}return{x1:i,x2:r,x3:o,y1:a,y2:s,y3:l}},drawTitle:function(t,e,n){var i,r,o,a=e.title,s=a.length;if(s){var l=De(e.rtl,e.x,e.width);for(t.x=je(e,e._titleAlign),n.textAlign=l.textAlign(e._titleAlign),n.textBaseline="middle",i=e.titleFontSize,r=e.titleSpacing,n.fillStyle=e.titleFontColor,n.font=B.fontString(i,e._titleFontStyle,e._titleFontFamily),o=0;o0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity,o=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&o&&(t.save(),t.globalAlpha=r,this.drawBackground(i,e,t,n),i.y+=e.yPadding,B.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),B.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),i.reverse&&n._active.reverse()),(e=!B.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),Fe=Ae,Be=Ye;Be.positioners=Fe;var $e=B.valueOrDefault;function He(){return B.merge({},[].slice.call(arguments),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var r,o,a,s=n[t].length;for(e[t]||(e[t]=[]),r=0;r=e[t].length&&e[t].push({}),!e[t][r].type||a.type&&a.type!==e[t][r].type?B.merge(e[t][r],[Oe.getScaleDefaults(o),a]):B.merge(e[t][r],a)}else B._merger(t,e,n,i)}})}function Ue(){return B.merge({},[].slice.call(arguments),{merger:function(t,e,n,i){var r=e[t]||{},o=n[t];"scales"===t?e[t]=He(r,o):"scale"===t?e[t]=B.merge(r,[Oe.getScaleDefaults(o.type),o]):B._merger(t,e,n,i)}})}function Ve(t){var e=t.options;B.each(t.scales,(function(e){pe.removeBox(t,e)})),e=Ue(R.global,R[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function We(t,e,n){var i,r=function(t){return t.id===i};do{i=e+n++}while(B.findIndex(t,r)>=0);return i}function Ge(t){return"top"===t||"bottom"===t}function qe(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}R._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Ze=function(t,e){return this.construct(t,e),this};B.extend(Ze.prototype,{construct:function(t,e){var n=this;e=function(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=Ue(R.global,R[t.type],t.options||{}),t}(e);var i=Te.acquireContext(t,e),r=i&&i.canvas,o=r&&r.height,a=r&&r.width;n.id=B.uid(),n.ctx=i,n.canvas=r,n.config=e,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=e.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Ze.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&r&&(n.initialize(),n.update())},initialize:function(){var t=this;return Ee.notify(t,"beforeInit"),B.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),Ee.notify(t,"afterInit"),t},clear:function(){return B.canvas.clear(this),this},stop:function(){return J.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,r=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(B.getMaximumWidth(i))),a=Math.max(0,Math.floor(r?o/r:B.getMaximumHeight(i)));if((e.width!==o||e.height!==a)&&(i.width=e.width=o,i.height=e.height=a,i.style.width=o+"px",i.style.height=a+"px",B.retinaScale(e,n.devicePixelRatio),!t)){var s={width:o,height:a};Ee.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;B.each(e.xAxes,(function(t,n){t.id||(t.id=We(e.xAxes,"x-axis-",n))})),B.each(e.yAxes,(function(t,n){t.id||(t.id=We(e.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},i=[],r=Object.keys(n).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(i=i.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&i.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),B.each(i,(function(e){var i=e.options,o=i.id,a=$e(i.type,e.dtype);Ge(i.position)!==Ge(e.dposition)&&(i.position=e.dposition),r[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=i,s.ctx=t.ctx,s.chart=t;else{var l=Oe.getScaleConstructor(a);if(!l)return;s=new l({id:o,type:a,options:i,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)})),B.each(r,(function(t,e){t||delete n[e]})),t.scales=n,Oe.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,n=this,i=[],r=n.data.datasets;for(t=0,e=r.length;t=0;--n)this.drawDataset(e[n],t);Ee.notify(this,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n={meta:t,index:t.index,easingValue:e};!1!==Ee.notify(this,"beforeDatasetDraw",[n])&&(t.controller.draw(e),Ee.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==Ee.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),Ee.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return re.modes.single(this,t)},getElementsAtEvent:function(t){return re.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return re.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=re.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return re.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e.order||0,index:t}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));var r=B.log10(Math.abs(i)),o="";if(0!==t)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=B.log10(Math.abs(t)),s=Math.floor(a)-Math.floor(r);s=Math.max(Math.min(s,20),0),o=t.toExponential(s)}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),o=t.toFixed(l)}else o="0";return o},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(B.log10(t)));return 0===t?"0":1===i||2===i||5===i||0===e||e===n.length-1?t.toExponential():""}}},en=B.isArray,nn=B.isNullOrUndef,rn=B.valueOrDefault,on=B.valueAtIndexOrDefault;function an(t,e,n){var i,r=t.getTicks().length,o=Math.min(e,r-1),a=t.getPixelForTick(o),s=t._startPixel,l=t._endPixel;if(!(n&&(i=1===r?Math.max(a-s,l-a):0===e?(t.getPixelForTick(1)-a)/2:(a-t.getPixelForTick(o-1))/2,(a+=ol+1e-6)))return a}function sn(t,e,n,i){var r,o,a,s,l,u,c,d,h,f,p,m,g,v=n.length,y=[],_=[],b=[];for(r=0;re){for(n=0;n=h||c<=1||!s.isHorizontal()?s.labelRotation=d:(e=(t=s._getLabelSizes()).widest.width,n=t.highest.height-t.highest.offset,i=Math.min(s.maxWidth,s.chart.width-e),e+6>(r=l.offset?s.maxWidth/c:i/(c-1))&&(r=i/(c-(l.offset?.5:1)),o=s.maxHeight-ln(l.gridLines)-u.padding-un(l.scaleLabel),a=Math.sqrt(e*e+n*n),f=B.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/r,1)),Math.asin(Math.min(o/a,1))-Math.asin(n/a))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){B.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){B.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.chart,i=t.options,r=i.ticks,o=i.scaleLabel,a=i.gridLines,s=t._isVisible(),l="bottom"===i.position,u=t.isHorizontal();if(u?e.width=t.maxWidth:s&&(e.width=ln(a)+un(o)),u?s&&(e.height=ln(a)+un(o)):e.height=t.maxHeight,r.display&&s){var c=dn(r),d=t._getLabelSizes(),h=d.first,f=d.last,p=d.widest,m=d.highest,g=.4*c.minor.lineHeight,v=r.padding;if(u){var y=0!==t.labelRotation,_=B.toRadians(t.labelRotation),b=Math.cos(_),w=Math.sin(_),x=w*p.width+b*(m.height-(y?m.offset:0))+(y?0:g);e.height=Math.min(t.maxHeight,e.height+x+v);var k,C,L=t.getPixelForTick(0)-t.left,S=t.right-t.getPixelForTick(t.getTicks().length-1);y?(k=l?b*h.width+w*h.offset:w*(h.height-h.offset),C=l?w*(f.height-f.offset):b*f.width+w*f.offset):(k=h.width/2,C=f.width/2),t.paddingLeft=Math.max((k-L)*t.width/(t.width-L),0)+3,t.paddingRight=Math.max((C-S)*t.width/(t.width-S),0)+3}else{var M=r.mirror?0:p.width+v+g;e.width=Math.min(t.maxWidth,e.width+M),t.paddingTop=h.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),u?(t.width=t._length=n.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=n.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){B.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(nn(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,n,i,r=this;for(r.ticks=t.map((function(t){return t.value})),r.beforeTickToLabelConversion(),e=r.convertTicksToLabels(t)||r.ticks,r.afterTickToLabelConversion(),n=0,i=t.length;nn-1?null:this.getPixelForDecimal(t*i+(e?i/2:0))},getPixelForDecimal:function(t){return this._reversePixels&&(t=1-t),this._startPixel+t*this._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,n,i,r,o=this.options.ticks,a=this._length,s=o.maxTicksLimit||a/this._tickSize()+1,l=o.major.enabled?function(t){var e,n,i=[];for(e=0,n=t.length;es)return function(t,e,n){var i,r,o=0,a=e[0];for(n=Math.ceil(n),i=0;iu)return o;return Math.max(u,1)}(l,t,0,s),u>0){for(e=0,n=u-1;e1?(d-c)/(u-1):null,fn(t,i,B.isNullOrUndef(r)?0:c-r,c),fn(t,i,d,B.isNullOrUndef(r)?t.length:d+r),hn(t)}return fn(t,i),hn(t)},_tickSize:function(){var t=this.options.ticks,e=B.toRadians(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),o=t.autoSkipPadding||0,a=r?r.widest.width+o:0,s=r?r.highest.height+o:0;return this.isHorizontal()?s*n>a*i?a/n:s/i:s*i=0&&(a=t),void 0!==o&&(t=n.indexOf(o))>=0&&(s=t),e.minIndex=a,e.maxIndex=s,e.min=n[a],e.max=n[s]},buildTicks:function(){var t=this._getLabels(),e=this.minIndex,n=this.maxIndex;this.ticks=0===e&&n===t.length-1?t:t.slice(e,n+1)},getLabelForIndex:function(t,e){var n=this.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[e].data[t]):this._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,n=t.ticks;mn.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),n&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(n.length-(e?0:1),1))},getPixelForValue:function(t,e,n){var i,r,o,a=this;return gn(e)||gn(n)||(t=a.chart.data.datasets[n].data[e]),gn(t)||(i=a.isHorizontal()?t.x:t.y),(void 0!==i||void 0!==t&&isNaN(e))&&(r=a._getLabels(),t=B.valueOrDefault(i,t),e=-1!==(o=r.indexOf(t))?o:e,isNaN(e)&&(e=t)),a.getPixelForDecimal((e-a._startValue)/a._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange);return Math.min(Math.max(e,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),yn={position:"bottom"};vn._defaults=yn;var _n=B.noop,bn=B.isNullOrUndef,wn=mn.extend({getRightValue:function(t){return"string"==typeof t?+t:mn.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=B.sign(t.min),i=B.sign(t.max);n<0&&i<0?t.max=0:n>0&&i>0&&(t.min=0)}var r=void 0!==e.min||void 0!==e.suggestedMin,o=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),r!==o&&t.min>=t.max&&(r?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,n=e.stepSize,i=e.maxTicksLimit;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this._computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:_n,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:B.valueOrDefault(e.fixedStepSize,e.stepSize)},r=t.ticks=function(t,e){var n,i,r,o,a=[],s=t.stepSize,l=s||1,u=t.maxTicks-1,c=t.min,d=t.max,h=t.precision,f=e.min,p=e.max,m=B.niceNum((p-f)/u/l)*l;if(m<1e-14&&bn(c)&&bn(d))return[f,p];(o=Math.ceil(p/m)-Math.floor(f/m))>u&&(m=B.niceNum(o*m/u/l)*l),s||bn(h)?n=Math.pow(10,B._decimalPlaces(m)):(n=Math.pow(10,h),m=Math.ceil(m*n)/n),i=Math.floor(f/m)*m,r=Math.ceil(p/m)*m,s&&(!bn(c)&&B.almostWhole(c/m,m/1e3)&&(i=c),!bn(d)&&B.almostWhole(d/m,m/1e3)&&(r=d)),o=(r-i)/m,o=B.almostEquals(o,Math.round(o),m/1e3)?Math.round(o):Math.ceil(o),i=Math.round(i*n)/n,r=Math.round(r*n)/n,a.push(bn(c)?i:c);for(var g=1;ge.length-1?null:this.getPixelForValue(e[t])}}),Sn=xn;Ln._defaults=Sn;var Mn=B.valueOrDefault,Tn=B.math.log10,En={position:"left",ticks:{callback:tn.formatters.logarithmic}};function On(t,e){return B.isFinite(t)&&t>=0?t:e}var Pn=mn.extend({determineDataLimits:function(){var t,e,n,i,r,o,a=this,s=a.options,l=a.chart,u=l.data.datasets,c=a.isHorizontal();function d(t){return c?t.xAxisID===a.id:t.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(t=0;t0){var e=B.min(t),n=B.max(t);a.min=Math.min(a.min,e),a.max=Math.max(a.max,n)}}))}else for(t=0;t0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(Tn(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:On(e.min),max:On(e.max)},r=t.ticks=function(t,e){var n,i,r=[],o=Mn(t.min,Math.pow(10,Math.floor(Tn(e.min)))),a=Math.floor(Tn(e.max)),s=Math.ceil(e.max/Math.pow(10,a));0===o?(n=Math.floor(Tn(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),r.push(o),o=i*Math.pow(10,n)):(n=Math.floor(Tn(o)),i=Math.floor(o/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(o),10==++i&&(i=1,l=++n>=0?1:l),o=Math.round(i*Math.pow(10,n)*l)/l}while(ne.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(Tn(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,n=0;mn.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),n=Mn(t.options.ticks.fontSize,R.global.defaultFontSize)/t._length),t._startValue=Tn(e),t._valueOffset=n,t._valueRange=(Tn(t.max)-Tn(e))/(1-n)},getPixelForValue:function(t){var e=this,n=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(n=(Tn(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(n)},getValueForPixel:function(t){var e=this,n=e.getDecimalForPixel(t);return 0===n&&0===e.min?0:Math.pow(10,e._startValue+(n-e._valueOffset)*e._valueRange)}}),Dn=En;Pn._defaults=Dn;var An=B.valueOrDefault,In=B.valueAtIndexOrDefault,Nn=B.options.resolve,Rn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:tn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function jn(t){var e=t.ticks;return e.display&&t.display?An(e.fontSize,R.global.defaultFontSize)+2*e.backdropPaddingY:0}function zn(t,e,n,i,r){return t===i||t===r?{start:e-n/2,end:e+n/2}:tr?{start:e-n,end:e}:{start:e,end:e+n}}function Yn(t){return 0===t||180===t?"center":t<180?"left":"right"}function Fn(t,e,n,i){var r,o,a=n.y+i/2;if(B.isArray(e))for(r=0,o=e.length;r270||t<90)&&(n.y-=e.h)}function $n(t){return B.isNumber(t)?t:0}var Hn=wn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=jn(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;B.each(e.data.datasets,(function(r,o){if(e.isDatasetVisible(o)){var a=e.getDatasetMeta(o);B.each(r.data,(function(e,r){var o=+t.getRightValue(e);isNaN(o)||a.data[r].hidden||(n=Math.min(o,n),i=Math.max(o,i))}))}})),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/jn(this.options))},convertTicksToLabels:function(){var t=this;wn.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map((function(){var e=B.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""}))},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,n,i,r=B.options._parseFont(t.options.pointLabels),o={l:0,r:t.width,t:0,b:t.height-t.paddingTop},a={};t.ctx.font=r.string,t._pointLabelSizes=[];var s,l,u,c=t.chart.data.labels.length;for(e=0;eo.r&&(o.r=f.end,a.r=d),p.starto.b&&(o.b=p.end,a.b=d)}t.setReductions(t.drawingArea,o,a)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var i=this,r=e.l/Math.sin(n.l),o=Math.max(e.r-i.width,0)/Math.sin(n.r),a=-e.t/Math.cos(n.t),s=-Math.max(e.b-(i.height-i.paddingTop),0)/Math.cos(n.b);r=$n(r),o=$n(o),a=$n(a),s=$n(s),i.drawingArea=Math.min(Math.floor(t-(r+o)/2),Math.floor(t-(a+s)/2)),i.setCenterPoint(r,o,a,s)},setCenterPoint:function(t,e,n,i){var r=this,o=r.width-e-r.drawingArea,a=t+r.drawingArea,s=n+r.drawingArea,l=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((a+o)/2+r.left),r.yCenter=Math.floor((s+l)/2+r.top+r.paddingTop)},getIndexAngle:function(t){var e=this.chart,n=(t*(360/e.data.labels.length)+((e.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(B.isNullOrUndef(t))return NaN;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this.min,n=this.max;return this.getPointPositionForValue(t||0,this.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},_drawGrid:function(){var t,e,n,i=this,r=i.ctx,o=i.options,a=o.gridLines,s=o.angleLines,l=An(s.lineWidth,a.lineWidth),u=An(s.color,a.color);if(o.pointLabels.display&&function(t){var e=t.ctx,n=t.options,i=n.pointLabels,r=jn(n),o=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),a=B.options._parseFont(i);e.save(),e.font=a.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?r/2:0,u=t.getPointPosition(s,o+l+5),c=In(i.fontColor,s,R.global.defaultFontColor);e.fillStyle=c;var d=t.getIndexAngle(s),h=B.toDegrees(d);e.textAlign=Yn(h),Bn(h,t._pointLabelSizes[s],u),Fn(e,t.pointLabels[s],u,a.lineHeight)}e.restore()}(i),a.display&&B.each(i.ticks,(function(t,n){0!==n&&(e=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(t,e,n,i){var r,o=t.ctx,a=e.circular,s=t.chart.data.labels.length,l=In(e.color,i-1),u=In(e.lineWidth,i-1);if((a||s)&&l&&u){if(o.save(),o.strokeStyle=l,o.lineWidth=u,o.setLineDash&&(o.setLineDash(e.borderDash||[]),o.lineDashOffset=e.borderDashOffset||0),o.beginPath(),a)o.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{r=t.getPointPosition(0,n),o.moveTo(r.x,r.y);for(var c=1;c=0;t--)e=i.getDistanceFromCenterForValue(o.ticks.reverse?i.min:i.max),n=i.getPointPosition(t,e),r.beginPath(),r.moveTo(i.xCenter,i.yCenter),r.lineTo(n.x,n.y),r.stroke();r.restore()}},_drawLabels:function(){var t=this,e=t.ctx,n=t.options.ticks;if(n.display){var i,r,o=t.getIndexAngle(0),a=B.options._parseFont(n),s=An(n.fontColor,R.global.defaultFontColor);e.save(),e.font=a.string,e.translate(t.xCenter,t.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",B.each(t.ticks,(function(o,l){(0!==l||n.reverse)&&(i=t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]),n.showLabelBackdrop&&(r=e.measureText(o).width,e.fillStyle=n.backdropColor,e.fillRect(-r/2-n.backdropPaddingX,-i-a.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),e.fillStyle=s,e.fillText(o,0,-i))})),e.restore()}},_drawTitle:B.noop}),Un=Rn;Hn._defaults=Un;var Vn=B._deprecated,Wn=B.options.resolve,Gn=B.valueOrDefault,qn=Number.MIN_SAFE_INTEGER||-9007199254740991,Zn=Number.MAX_SAFE_INTEGER||9007199254740991,Xn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Jn=Object.keys(Xn);function Kn(t,e){return t-e}function Qn(t){return B.valueOrDefault(t.time.min,t.ticks.min)}function ti(t){return B.valueOrDefault(t.time.max,t.ticks.max)}function ei(t,e,n,i){var r=function(t,e,n){for(var i,r,o,a=0,s=t.length-1;a>=0&&a<=s;){if(r=t[(i=a+s>>1)-1]||null,o=t[i],!r)return{lo:null,hi:o};if(o[e]n))return{lo:r,hi:o};s=i-1}}return{lo:o,hi:null}}(t,e,n),o=r.lo?r.hi?r.lo:t[t.length-2]:t[0],a=r.lo?r.hi?r.hi:t[t.length-1]:t[1],s=a[e]-o[e],l=s?(n-o[e])/s:0,u=(a[i]-o[i])*l;return o[i]+u}function ni(t,e){var n=t._adapter,i=t.options.time,r=i.parser,o=r||i.format,a=e;return"function"==typeof r&&(a=r(a)),B.isFinite(a)||(a="string"==typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(r||"function"!=typeof o||(a=o(e),B.isFinite(a)||(a=n.parse(a))),a)}function ii(t,e){if(B.isNullOrUndef(e))return null;var n=t.options.time,i=ni(t,t.getRightValue(e));return null===i||n.round&&(i=+t._adapter.startOf(i,n.round)),i}function ri(t,e,n,i){var r,o,a,s=Jn.length;for(r=Jn.indexOf(t);r=0&&(e[o].major=!0);return e}(t,o,a,n):o}var ai=mn.extend({initialize:function(){this.mergeTicksOptions(),mn.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,n=e.time||(e.time={}),i=t._adapter=new Qe._date(e.adapters.date);return Vn("time scale",n.format,"time.format","time.parser"),Vn("time scale",n.min,"time.min","ticks.min"),Vn("time scale",n.max,"time.max","ticks.max"),B.mergeIf(n.displayFormats,i.formats()),mn.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),mn.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,n,i,r,o,a,s=this,l=s.chart,u=s._adapter,c=s.options,d=c.time.unit||"day",h=Zn,f=qn,p=[],m=[],g=[],v=s._getLabels();for(t=0,n=v.length;t1?function(t){var e,n,i,r={},o=[];for(e=0,n=t.length;e1e5*u)throw e+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(r=d;r=r&&n<=o&&c.push(n);return i.min=r,i.max=o,i._unit=l.unit||(s.autoSkip?ri(l.minUnit,i.min,i.max,d):function(t,e,n,i,r){var o,a;for(o=Jn.length-1;o>=Jn.indexOf(n);o--)if(a=Jn[o],Xn[a].common&&t._adapter.diff(r,i,a)>=e-1)return a;return Jn[n?Jn.indexOf(n):0]}(i,c.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?function(t){for(var e=Jn.indexOf(t)+1,n=Jn.length;ee&&s=0&&t0?s:1}}),si={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};ai._defaults=si;var li={category:vn,linear:Ln,logarithmic:Pn,radialLinear:Hn,time:ai},ui={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Qe._date.override("function"==typeof t?{_id:"moment",formats:function(){return ui},parse:function(e,n){return"string"==typeof e&&"string"==typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,i){return t(e).add(n,i).valueOf()},diff:function(e,n,i){return t(e).diff(t(n),i)},startOf:function(e,n,i){return e=t(e),"isoWeek"===n?e.isoWeekday(i).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),R._set("global",{plugins:{filler:{propagate:!0}}});var ci={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),r=i&&n.isDatasetVisible(e)&&i.dataset._children||[],o=r.length||0;return o?function(t,e){return e=n)&&i;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function hi(t){return(t.el._scale||{}).getPointPositionForValue?function(t){var e,n,i,r,o,a=t.el._scale,s=a.options,l=a.chart.data.labels.length,u=t.fill,c=[];if(!l)return null;for(e=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,i=a.getPointPositionForValue(0,e),r=0;r0;--o)B.canvas.lineTo(t,n[o],n[o-1],!0);else for(a=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),o=r-1;o>0;--o)t.arc(a,s,l,n[o].angle,n[o-1].angle,!0)}}function vi(t,e,n,i,r,o){var a,s,l,u,c,d,h,f,p=e.length,m=i.spanGaps,g=[],v=[],y=0,_=0;for(t.beginPath(),a=0,s=p;a=0;--n)(e=l[n].$filler)&&e.visible&&(r=(i=e.el)._view,o=i._children||[],a=e.mapper,s=r.backgroundColor||R.global.defaultColor,a&&s&&o.length&&(B.canvas.clipArea(u,t.chartArea),vi(u,o,a,r,s,i._loop),B.canvas.unclipArea(u)))}},_i=B.rtl.getRtlAdapter,bi=B.noop,wi=B.valueOrDefault;function xi(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}R._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.options.legend||{},i=n.labels&&n.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(n){var r=n.controller.getStyle(i?0:void 0);return{text:e[n.index].label,fillStyle:r.backgroundColor,hidden:!t.isDatasetVisible(n.index),lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:r.borderWidth,strokeStyle:r.borderColor,pointStyle:r.pointStyle,rotation:r.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(t){var e,n,i,r=document.createElement("ul"),o=t.data.datasets;for(r.setAttribute("class",t.id+"-legend"),e=0,n=o.length;el.width)&&(d+=a+n.padding,c[c.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:i,height:a},c[c.length-1]+=i+n.padding})),l.height+=d}else{var h=n.padding,f=t.columnWidths=[],p=t.columnHeights=[],m=n.padding,g=0,v=0;B.each(t.legendItems,(function(t,e){var i=xi(n,a)+a/2+r.measureText(t.text).width;e>0&&v+a+2*h>l.height&&(m+=g+n.padding,f.push(g),p.push(v),g=0,v=0),g=Math.max(g,i),v+=a+h,s[e]={left:0,top:0,width:i,height:a}})),m+=g,f.push(g),p.push(v),l.width+=m}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0},afterFit:bi,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,i=R.global,r=i.defaultColor,o=i.elements.line,a=t.height,s=t.columnHeights,l=t.width,u=t.lineWidths;if(e.display){var c,d=_i(e.rtl,t.left,t.minSize.width),h=t.ctx,f=wi(n.fontColor,i.defaultFontColor),p=B.options._parseFont(n),m=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var g=xi(n,m),v=t.legendHitBoxes,y=function(t,i){switch(e.align){case"start":return n.padding;case"end":return t-i;default:return(t-i+n.padding)/2}},_=t.isHorizontal();c=_?{x:t.left+y(l,u[0]),y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+y(a,s[0]),line:0},B.rtl.overrideTextDirection(t.ctx,e.textDirection);var b=m+n.padding;B.each(t.legendItems,(function(e,i){var f=h.measureText(e.text).width,p=g+m/2+f,w=c.x,x=c.y;d.setWidth(t.minSize.width),_?i>0&&w+p+n.padding>t.left+t.minSize.width&&(x=c.y+=b,c.line++,w=c.x=t.left+y(l,u[c.line])):i>0&&x+b>t.top+t.minSize.height&&(w=c.x=w+t.columnWidths[c.line]+n.padding,c.line++,x=c.y=t.top+y(a,s[c.line]));var k=d.x(w);!function(t,e,i){if(!(isNaN(g)||g<=0)){h.save();var a=wi(i.lineWidth,o.borderWidth);if(h.fillStyle=wi(i.fillStyle,r),h.lineCap=wi(i.lineCap,o.borderCapStyle),h.lineDashOffset=wi(i.lineDashOffset,o.borderDashOffset),h.lineJoin=wi(i.lineJoin,o.borderJoinStyle),h.lineWidth=a,h.strokeStyle=wi(i.strokeStyle,r),h.setLineDash&&h.setLineDash(wi(i.lineDash,o.borderDash)),n&&n.usePointStyle){var s=g*Math.SQRT2/2,l=d.xPlus(t,g/2),u=e+m/2;B.canvas.drawPoint(h,i.pointStyle,s,l,u,i.rotation)}else h.fillRect(d.leftForLtr(t,g),e,g,m),0!==a&&h.strokeRect(d.leftForLtr(t,g),e,g,m);h.restore()}}(k,x,e),v[i].left=d.leftForLtr(k,v[i].width),v[i].top=x,function(t,e,n,i){var r=m/2,o=d.xPlus(t,g+r),a=e+r;h.fillText(n.text,o,a),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(o,a),h.lineTo(d.xPlus(o,i),a),h.stroke())}(k,x,e,f),_?c.x+=p+n.padding:c.y+=b})),B.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var n,i,r,o=this;if(t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom)for(r=o.legendHitBoxes,n=0;n=(i=r[n]).left&&t<=i.left+i.width&&e>=i.top&&e<=i.top+i.height)return o.legendItems[n];return null},handleEvent:function(t){var e,n=this,i=n.options,r="mouseup"===t.type?"click":t.type;if("mousemove"===r){if(!i.onHover&&!i.onLeave)return}else{if("click"!==r)return;if(!i.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===r?e&&i.onClick&&i.onClick.call(n,t.native,e):(i.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),i.onHover&&e&&i.onHover.call(n,t.native,e))}});function Ci(t,e){var n=new ki({ctx:t.ctx,options:e,chart:t});pe.configure(t,n,e),pe.addBox(t,n),t.legend=n}var Li={id:"legend",_element:ki,beforeInit:function(t){var e=t.options.legend;e&&Ci(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(B.mergeIf(e,R.global.legend),n?(pe.configure(t,n,e),n.options=e):Ci(t,e)):n&&(pe.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},Si=B.noop;R._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Mi=q.extend({initialize:function(t){B.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:Si,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Si,beforeSetDimensions:Si,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:Si,beforeBuildLabels:Si,buildLabels:Si,afterBuildLabels:Si,beforeFit:Si,fit:function(){var t,e=this,n=e.options,i=e.minSize={},r=e.isHorizontal();n.display?(t=(B.isArray(n.text)?n.text.length:1)*B.options._parseFont(n).lineHeight+2*n.padding,e.width=i.width=r?e.maxWidth:t,e.height=i.height=r?t:e.maxHeight):e.width=i.width=e.height=i.height=0},afterFit:Si,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var i,r,o,a=B.options._parseFont(n),s=a.lineHeight,l=s/2+n.padding,u=0,c=t.top,d=t.left,h=t.bottom,f=t.right;e.fillStyle=B.valueOrDefault(n.fontColor,R.global.defaultFontColor),e.font=a.string,t.isHorizontal()?(r=d+(f-d)/2,o=c+l,i=f-d):(r="left"===n.position?d+l:f-l,o=c+(h-c)/2,i=h-c,u=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(r,o),e.rotate(u),e.textAlign="center",e.textBaseline="middle";var p=n.text;if(B.isArray(p))for(var m=0,g=0;g=0;i--){var r=t[i];if(e(r))return r}},B.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},B.almostEquals=function(t,e,n){return Math.abs(t-e)=t},B.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},B.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},B.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},B.toRadians=function(t){return t*(Math.PI/180)},B.toDegrees=function(t){return t*(180/Math.PI)},B._decimalPlaces=function(t){if(B.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},B.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:r}},B.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},B.aliasPixel=function(t){return t%2==0?0:.5},B._alignPixel=function(t,e,n){var i=t.currentDevicePixelRatio,r=n/2;return Math.round((e-r)*i)/i+r},B.splineCurve=function(t,e,n,i){var r=t.skip?e:t,o=e,a=n.skip?e:n,s=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),u=s/(s+l),c=l/(s+l),d=i*(u=isNaN(u)?0:u),h=i*(c=isNaN(c)?0:c);return{previous:{x:o.x-d*(a.x-r.x),y:o.y-d*(a.y-r.y)},next:{x:o.x+h*(a.x-r.x),y:o.y+h*(a.y-r.y)}}},B.EPSILON=Number.EPSILON||1e-14,B.splineCurveMonotone=function(t){var e,n,i,r,o,a,s,l,u,c=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),d=c.length;for(e=0;e0?c[e-1]:null,(r=e0?c[e-1]:null,r=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},B.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},B.niceNum=function(t,e){var n=Math.floor(B.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},B.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},B.getRelativePosition=function(t,e){var n,i,r=t.originalEvent||t,o=t.target||t.srcElement,a=o.getBoundingClientRect(),s=r.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=r.clientX,i=r.clientY);var l=parseFloat(B.getStyle(o,"padding-left")),u=parseFloat(B.getStyle(o,"padding-top")),c=parseFloat(B.getStyle(o,"padding-right")),d=parseFloat(B.getStyle(o,"padding-bottom")),h=a.right-a.left-l-c,f=a.bottom-a.top-u-d;return{x:n=Math.round((n-a.left-l)/h*o.width/e.currentDevicePixelRatio),y:i=Math.round((i-a.top-u)/f*o.height/e.currentDevicePixelRatio)}},B.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},B.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},B._calculatePadding=function(t,e,n){return(e=B.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},B._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},B.getMaximumWidth=function(t){var e=B._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,i=n-B._calculatePadding(e,"padding-left",n)-B._calculatePadding(e,"padding-right",n),r=B.getConstraintWidth(t);return isNaN(r)?i:Math.min(i,r)},B.getMaximumHeight=function(t){var e=B._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,i=n-B._calculatePadding(e,"padding-top",n)-B._calculatePadding(e,"padding-bottom",n),r=B.getConstraintHeight(t);return isNaN(r)?i:Math.min(i,r)},B.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},B.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=t.canvas,r=t.height,o=t.width;i.height=r*n,i.width=o*n,t.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=o+"px")}},B.fontString=function(t,e,n){return e+" "+t+"px "+n},B.longestText=function(t,e,n,i){var r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},o=i.garbageCollect=[],i.font=e),t.font=e;var a,s,l,u,c,d=0,h=n.length;for(a=0;an.length){for(a=0;ai&&(i=o),i},B.numberOfLabelLines=function(t){var e=1;return B.each(t,(function(t){B.isArray(t)&&t.length>e&&(e=t.length)})),e},B.color=x?function(t){return t instanceof CanvasGradient&&(t=R.global.defaultColor),x(t)}:function(t){return t},B.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:B.color(t).saturate(.5).darken(.1).rgbString()}}(),Xe._adapters=Qe,Xe.Animation=X,Xe.animationService=J,Xe.controllers=Jt,Xe.DatasetController=nt,Xe.defaults=R,Xe.Element=q,Xe.elements=wt,Xe.Interaction=re,Xe.layouts=pe,Xe.platform=Te,Xe.plugins=Ee,Xe.Scale=mn,Xe.scaleService=Oe,Xe.Ticks=tn,Xe.Tooltip=Be,Xe.helpers.each(li,(function(t,e){Xe.scaleService.registerScaleType(e,t,t._defaults)})),Ei)Ei.hasOwnProperty(Ai)&&Xe.plugins.register(Ei[Ai]);Xe.platform.initialize();var Ii=Xe;return"undefined"!=typeof window&&(window.Chart=Xe),Xe.Chart=Xe,Xe.Legend=Ei.legend._element,Xe.Title=Ei.title._element,Xe.pluginService=Xe.plugins,Xe.PluginBase=Xe.Element.extend({}),Xe.canvasHelpers=Xe.helpers.canvas,Xe.layoutService=Xe.layouts,Xe.LinearScaleBase=wn,Xe.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(t){Xe[t]=function(e,n){return new Xe(e,Xe.helpers.merge(n||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}})),Ii}(function(){try{return n("wd/R")}catch(t){}}())},MlJ3:function(t,e,n){"use strict";var i=n("uvx2");n.n(i).a},MlY7:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i);function o(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var a={name:"Password",data:function(){return{processing:!1,oldpassword:"",password:"",password_confirmation:"",btn:"button is-medium is-info"}},computed:{button:function(){return this.processing?this.btn+" is-loading":this.btn},errors:function(){return this.$store.state.user.errors}},methods:{clearError:function(t){this.errors[t]&&this.$store.commit("deleteUserError",t)},getFirstError:function(t){return this.errors[t][0]},errorExists:function(t){return this.errors.hasOwnProperty(t)},submit:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.processing=!0,t.next=3,e.$store.dispatch("CHANGE_PASSWORD",{oldpassword:e.oldpassword,password:e.password,password_confirmation:e.password_confirmation});case 3:e.processing=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,l,"next",t)}function l(t){o(a,i,r,s,l,"throw",t)}s(void 0)}))})()},translate:function(t){return this.$t("settings."+t)}}},s=n("KHd+"),l=Object(s.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[n("h1",{staticClass:"title is-4"},[t._v(" "+t._s(t.$t("settings.password.change-password")))]),t._v(" "),n("hr"),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-one-third is-offset-1"},[n("form",{attrs:{method:"POST"},on:{submit:function(e){return e.preventDefault(),t.submit(e)},keydown:function(e){return t.clearError(e.target.name)}}},[n("label",{attrs:{for:"oldpassword"}},[t._v(" "+t._s(t.$t("settings.password.enter-old-password")))]),t._v(" "),t.errorExists("oldpassword")?n("span",{staticClass:"error",domProps:{textContent:t._s(t.getFirstError("oldpassword"))}}):t._e(),t._v(" "),n("div",{staticClass:"field"},[n("div",{staticClass:"control has-icons-left"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.oldpassword,expression:"oldpassword"}],staticClass:"input",attrs:{type:"password",name:"oldpassword",placeholder:"*********",required:""},domProps:{value:t.oldpassword},on:{input:function(e){e.target.composing||(t.oldpassword=e.target.value)}}}),t._v(" "),t._m(0)])]),t._v(" "),n("label",{attrs:{for:"password"}},[t._v(t._s(t.$t("settings.password.enter-new-password")))]),t._v(" "),t.errorExists("password")?n("span",{staticClass:"error",domProps:{textContent:t._s(t.getFirstError("password"))}}):t._e(),t._v(" "),n("div",{staticClass:"field"},[n("div",{staticClass:"control has-icons-left"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"input",attrs:{id:"password",type:"password",name:"password",placeholder:t.translate("password.enter-strong-password"),required:""},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),t._v(" "),t._m(1)])]),t._v(" "),n("label",{attrs:{for:"password_confirmation"}},[t._v(t._s(t.$t("settings.password.confirm-new-password")))]),t._v(" "),t.errorExists("password_confirmation")?n("span",{staticClass:"error",domProps:{textContent:t._s(t.getFirstError("password_confirmation"))}}):t._e(),t._v(" "),n("div",{staticClass:"field mb2"},[n("div",{staticClass:"control has-icons-left"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.password_confirmation,expression:"password_confirmation"}],staticClass:"input",attrs:{type:"password",name:"password_confirmation",placeholder:t.translate("password.repeat-strong-password"),required:""},domProps:{value:t.password_confirmation},on:{input:function(e){e.target.composing||(t.password_confirmation=e.target.value)}}}),t._v(" "),t._m(2)])]),t._v(" "),n("div",{staticClass:"col-md-12",staticStyle:{"text-align":"center"}},[n("button",{class:t.button,attrs:{disabled:t.processing}},[t._v(t._s(t.$t("settings.password.update-password")))])])])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-key"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-key"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-key"})])}],!1,null,null,null).exports,u=n("PEkK"),c=n("5QBx"),d=n("B/ql"),h=n("+LEQ"),f=n("X+Nf"),p=n("u5mE"),m=n("PBxq"),g=n("YFX/");function v(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var y={name:"Settings",components:{Password:l,Details:u.default,Account:c.default,Payments:d.default,Privacy:h.default,Littercoin:f.default,Presence:p.default,Emails:m.default,GlobalFlag:g.default},created:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.location.href.split("/")[4]&&(e.link=window.location.href.split("/")[4]);case 1:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){v(o,i,r,a,s,"next",t)}function s(t){v(o,i,r,a,s,"throw",t)}a(void 0)}))})()},data:function(){return{links:["password","details","account","payments","privacy","littercoin","presence","emails","show-flag"],link:"password",types:{password:"Password",details:"Details",account:"Account",payments:"Payments",privacy:"Privacy",littercoin:"Littercoin",presence:"Presence",emails:"Emails","show-flag":"GlobalFlag"}}},methods:{change:function(t){this.link=t},translate:function(t){return this.$t("settings.common."+t)}}},_=Object(s.a)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container mt5"},[n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-2"},[n("aside",{staticClass:"menu",attrs:{id:"panel"}},[n("p",{staticClass:"menu-label"},[t._v("\n\t\t\t\t "+t._s(t.$t("settings.common.general"))+"\n\t\t\t\t ")]),t._v(" "),n("ul",{staticClass:"menu-list"},t._l(t.links,(function(e){return n("li",[n("router-link",{attrs:{to:"/settings/"+e},nativeOn:{click:function(n){return t.change(e)}}},[t._v("\n "+t._s(t.translate(e))+"\n\t\t\t\t \t ")])],1)})),0)])]),t._v(" "),n("div",{staticClass:"column is-three-quarters is-offset-1"},[n(this.types[this.link],{tag:"component"})],1)])])}),[],!1,null,null,null);e.default=_.exports},"N+wP":function(t){t.exports=JSON.parse('{"email-you":"¿Quieres que te enviemos algunas buenas noticias","subscribe":"Subscríbete","subscribed-success-msg":"¡Te has suscrito a las buenas noticias! Puedes darte de baja en cualquier momento","need-your-help":"Necesitamos tu ayuda para crear la base de datos sobre contaminación más avanzada y accesible del mundo","read":"LEER","blog":"Blog","research-paper":"Artículo de investigación","watch":"VER","help":"AYUDA","join-the-team":"Únete al equipo","join-slack":"Únete a Slack","create-account":"Crear una cuenta","fb-group":"Grupo de Facebook","single-donation":"Donación única","crowdfunding":"Crowdfunding","olm-is-flagship":"OpenLitterMap es un producto insignia de GeoTech Innovations Ltd., una startup en Irlanda pionera en servicios esenciales de ciencia ciudadana #650323","enter-email":"Ingresa tu dirección de correo electrónico","references":"Referencias","credits":"Créditos"}')},"N8X+":function(t,e,n){"use strict";var i=n("n9CN");n.n(i).a},NEqZ:function(t){t.exports=JSON.parse('{"address":"Locatie","add-tag":"Label toevoegen","coordinates":"Coördinaten","device":"Toestel","next":"Volgende foto","no-tags":"Je hebt op dit moment geen foto\'s om te labelen.","picked-up-title":"Opgeruimd?","please-upload":"Meer foto\'s uploaden","previous":"Vorige foto","removed":"Het item is opgeruimd","still-there":"Het item ligt er nog","taken":"Genomen op","to-tag":"Aantal foto\'s om nog te labelen","total-uploaded":"Totaal aantal foto\'s geupload","uploaded":"Geupload","confirm-delete":"Bevestig verwijdering","recently-tags":"Recent gebruikte kenmerken","clear-tags":"Verwijder recent gebruikte kenmerken?","clear-tags-btn":"Verwijder recent gebruikte kenmerken"}')},NMrW:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.strong[data-v-97781a06] {\n font-weight: 600;\n}\n\n",""])},NOax:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.my-photos-grid-container[data-v-bbfbe446] {\n display: grid;\n grid-template-rows: repeat(3, 1fr);\n grid-template-columns: repeat(8, 1fr);\n grid-row-gap: 1em;\n grid-column-gap: 1em;\n}\n.my-grid-photo[data-v-bbfbe446] {\n max-height: 10em;\n max-width: 10em;\n position: relative;\n}\n.grid-checkmark[data-v-bbfbe446] {\n position: absolute;\n height: 3em;\n bottom: 0;\n right: 0;\n border: 5px solid #0ca3e0;\n border-radius: 50%;\n padding: 5px;\n}\n.my-photos-buttons[data-v-bbfbe446] {\n display: flex;\n width: 100%;\n justify-content: flex-end;\n}\n\n",""])},Ncgf:function(t,e,n){var i=n("yXgg");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},O1jo:function(t,e,n){window,t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=44)}({0:function(t,e,n){var i=n(16);"string"==typeof i&&(i=[[t.i,i,""]]);var r={transform:void 0};n(5)(i,r),i.locals&&(t.exports=i.locals)},1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={t:"top",m:"marginTop",b:"bottom"},r={l:"left",m:"marginLeft",r:"right"};e.default={name:"vue-drag-resize",props:{stickSize:{type:Number,default:8},parentScaleX:{type:Number,default:1},parentScaleY:{type:Number,default:1},isActive:{type:Boolean,default:!1},preventActiveBehavior:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},aspectRatio:{type:Boolean,default:!1},parentLimitation:{type:Boolean,default:!1},snapToGrid:{type:Boolean,default:!1},gridX:{type:Number,default:50,validator:function(t){return t>0}},gridY:{type:Number,default:50,validator:function(t){return t>0}},parentW:{type:Number,default:0,validator:function(t){return t>=0}},parentH:{type:Number,default:0,validator:function(t){return t>=0}},w:{type:Number,default:100,validator:function(t){return t>0}},h:{type:Number,default:100,validator:function(t){return t>0}},minw:{type:Number,default:50,validator:function(t){return t>0}},minh:{type:Number,default:50,validator:function(t){return t>0}},x:{type:Number,default:0,validator:function(t){return"number"==typeof t}},y:{type:Number,default:0,validator:function(t){return"number"==typeof t}},z:{type:[String,Number],default:"auto",validator:function(t){return"string"==typeof t?"auto"===t:t>=0}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},sticks:{type:Array,default:function(){return["tl","tm","tr","mr","br","bm","bl","ml"]}},axis:{type:String,default:"both",validator:function(t){return-1!==["x","y","both","none"].indexOf(t)}},contentClass:{type:String,required:!1,default:""}},data:function(){return{active:this.isActive,rawWidth:this.w,rawHeight:this.h,rawLeft:this.x,rawTop:this.y,rawRight:null,rawBottom:null,zIndex:this.z,aspectFactor:this.w/this.h,parentWidth:null,parentHeight:null,left:this.x,top:this.y,right:null,bottom:null,minWidth:this.minw,minHeight:this.minh}},created:function(){this.stickDrag=!1,this.bodyDrag=!1,this.stickAxis=null,this.stickStartPos={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0},this.limits={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null},this.currentStick=[]},mounted:function(){if(this.parentElement=this.$el.parentNode,this.parentWidth=this.parentW?this.parentW:this.parentElement.clientWidth,this.parentHeight=this.parentH?this.parentH:this.parentElement.clientHeight,this.rawRight=this.parentWidth-this.rawWidth-this.rawLeft,this.rawBottom=this.parentHeight-this.rawHeight-this.rawTop,document.documentElement.addEventListener("mousemove",this.move),document.documentElement.addEventListener("mouseup",this.up),document.documentElement.addEventListener("mouseleave",this.up),document.documentElement.addEventListener("mousedown",this.deselect),document.documentElement.addEventListener("touchmove",this.move,!0),document.documentElement.addEventListener("touchend",this.up,!0),document.documentElement.addEventListener("touchcancel",this.up,!0),document.documentElement.addEventListener("touchstart",this.up,!0),this.dragHandle){var t=Array.prototype.slice.call(this.$el.querySelectorAll(this.dragHandle));for(var e in t)t[e].setAttribute("data-drag-handle",this._uid)}if(this.dragCancel){var n=Array.prototype.slice.call(this.$el.querySelectorAll(this.dragCancel));for(var i in n)n[i].setAttribute("data-drag-cancel",this._uid)}},beforeDestroy:function(){document.documentElement.removeEventListener("mousemove",this.move),document.documentElement.removeEventListener("mouseup",this.up),document.documentElement.removeEventListener("mouseleave",this.up),document.documentElement.removeEventListener("mousedown",this.deselect),document.documentElement.removeEventListener("touchmove",this.move,!0),document.documentElement.removeEventListener("touchend",this.up,!0),document.documentElement.removeEventListener("touchcancel",this.up,!0),document.documentElement.removeEventListener("touchstart",this.up,!0)},methods:{deselect:function(){this.preventActiveBehavior||(this.active=!1)},move:function(t){(this.stickDrag||this.bodyDrag)&&(t.stopPropagation(),this.stickDrag&&this.stickMove(t),this.bodyDrag&&this.bodyMove(t))},up:function(t){this.stickDrag&&this.stickUp(t),this.bodyDrag&&this.bodyUp(t)},bodyDown:function(t){var e=t.target||t.srcElement;this.preventActiveBehavior||(this.active=!0),t.button&&0!==t.button||(this.$emit("clicked",t),this.active&&(this.dragHandle&&e.getAttribute("data-drag-handle")!==this._uid.toString()||this.dragCancel&&e.getAttribute("data-drag-cancel")===this._uid.toString()||(t.stopPropagation(),t.preventDefault(),this.isDraggable&&(this.bodyDrag=!0),this.stickStartPos.mouseX=void 0!==t.pageX?t.pageX:t.touches[0].pageX,this.stickStartPos.mouseY=void 0!==t.pageY?t.pageY:t.touches[0].pageY,this.stickStartPos.left=this.left,this.stickStartPos.right=this.right,this.stickStartPos.top=this.top,this.stickStartPos.bottom=this.bottom,this.parentLimitation&&(this.limits=this.calcDragLimitation()))))},calcDragLimitation:function(){var t=this.parentWidth,e=this.parentHeight;return{minLeft:0,maxLeft:t-this.width,minRight:0,maxRight:t-this.width,minTop:0,maxTop:e-this.height,minBottom:0,maxBottom:e-this.height}},bodyMove:function(t){var e=this.stickStartPos,n=this.parentWidth,i=this.parentHeight,r=this.gridX,o=this.gridY,a=this.width,s=this.height,l=void 0!==t.pageX?t.pageX:t.touches[0].pageX,u=void 0!==t.pageY?t.pageY:t.touches[0].pageY,c=("y"!==this.axis&&"none"!==this.axis?e.mouseX-l:0)/this.parentScaleX,d=("x"!==this.axis&&"none"!==this.axis?e.mouseY-u:0)/this.parentScaleY,h=e.top-d,f=e.bottom+d,p=e.left-c,m=e.right+c;if(this.snapToGrid){var g=!0,v=!0,y=h-Math.floor(h/o)*o,_=i-f-Math.floor((i-f)/o)*o,b=p-Math.floor(p/r)*r,w=n-m-Math.floor((n-m)/r)*r;y>o/2&&(y-=o),_>o/2&&(_-=o),b>r/2&&(b-=r),w>r/2&&(w-=r),Math.abs(_)n?e=t/n:t=n*e);var d={minLeft:c,maxLeft:s+(i-t),minRight:c,maxRight:l+(i-t),minTop:c,maxTop:a+(r-e),minBottom:c,maxBottom:o+(r-e)};if(this.aspectRatio){var h={minLeft:s-Math.min(a,o)*n*2,maxLeft:s+(r-e)/2*n*2,minRight:l-Math.min(a,o)*n*2,maxRight:l+(r-e)/2*n*2,minTop:a-Math.min(s,l)/n*2,maxTop:a+(i-t)/2/n*2,minBottom:o-Math.min(s,l)/n*2,maxBottom:o+(i-t)/2/n*2};"x"===u?d={minLeft:Math.max(d.minLeft,h.minLeft),maxLeft:Math.min(d.maxLeft,h.maxLeft),minRight:Math.max(d.minRight,h.minRight),maxRight:Math.min(d.maxRight,h.maxRight)}:"y"===u&&(d={minTop:Math.max(d.minTop,h.minTop),maxTop:Math.min(d.maxTop,h.maxTop),minBottom:Math.max(d.minBottom,h.minBottom),maxBottom:Math.min(d.maxBottom,h.maxBottom)})}return d},stickMove:function(t){var e=this.stickStartPos,n=void 0!==t.pageX?t.pageX:t.touches[0].pageX,i=void 0!==t.pageY?t.pageY:t.touches[0].pageY,r=(e.mouseX-n)/this.parentScaleX,o=(e.mouseY-i)/this.parentScaleY,a=e.top-o,s=e.bottom+o,l=e.left-r,u=e.right+r;switch(this.currentStick[0]){case"b":this.snapToGrid&&(s=this.parentHeight-Math.round((this.parentHeight-s)/this.gridY)*this.gridY),this.rawBottom=s;break;case"t":this.snapToGrid&&(a=Math.round(a/this.gridY)*this.gridY),this.rawTop=a}switch(this.currentStick[1]){case"r":this.snapToGrid&&(u=this.parentWidth-Math.round((this.parentWidth-u)/this.gridX)*this.gridX),this.rawRight=u;break;case"l":this.snapToGrid&&(l=Math.round(l/this.gridX)*this.gridX),this.rawLeft=l}this.$emit("resizing",this.rect)},stickUp:function(){this.stickDrag=!1,this.stickStartPos={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0},this.limits={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null},this.rawTop=this.top,this.rawBottom=this.bottom,this.rawLeft=this.left,this.rawRight=this.right,this.stickAxis=null,this.$emit("resizing",this.rect),this.$emit("resizestop",this.rect)},aspectRatioCorrection:function(){if(this.aspectRatio){var t=this.bottom,e=this.top,n=this.left,i=this.right,r=this.width,o=this.height,a=this.aspectFactor,s=this.currentStick;if(r/o>a){var l=a*o;"l"===s[1]?this.left=n+r-l:this.right=i+r-l}else{var u=r/a;"t"===s[0]?this.top=e+o-u:this.bottom=t+o-u}}}},computed:{style:function(){return{top:this.top+"px",left:this.left+"px",width:this.width+"px",height:this.height+"px",zIndex:this.zIndex}},vdrStick:function(){var t=this;return function(e){var n={width:t.stickSize/t.parentScaleX+"px",height:t.stickSize/t.parentScaleY+"px"};return n[i[e[0]]]=t.stickSize/t.parentScaleX/-2+"px",n[r[e[1]]]=t.stickSize/t.parentScaleX/-2+"px",n}},width:function(){return this.parentWidth-this.left-this.right},height:function(){return this.parentHeight-this.top-this.bottom},rect:function(){return{left:Math.round(this.left),top:Math.round(this.top),width:Math.round(this.width),height:Math.round(this.height)}}},watch:{rawLeft:function(t){var e=this.limits,n=this.stickAxis,i=this.aspectFactor,r=this.aspectRatio,o=this.left,a=this.bottom,s=this.top;if(null!==e.minLeft&&t=0||"auto"===t)&&(this.zIndex=t)},aspectRatio:function(t){t&&(this.aspectFactor=this.width/this.height)},minw:function(t){t>0&&t<=this.width&&(this.minWidth=t)},minh:function(t){t>0&&t<=this.height&&(this.minHeight=t)},x:function(){if(!this.stickDrag&&!this.bodyDrag){this.parentLimitation&&(this.limits=this.calcDragLimitation());var t=this.x-this.left;this.rawLeft=this.x,this.rawRight=this.right-t}},y:function(){if(!this.stickDrag&&!this.bodyDrag){this.parentLimitation&&(this.limits=this.calcDragLimitation());var t=this.y-this.top;this.rawTop=this.y,this.rawBottom=this.bottom-t}},w:function(){if(!this.stickDrag&&!this.bodyDrag){this.currentStick=["m","r"],this.stickAxis="x",this.parentLimitation&&(this.limits=this.calcResizeLimitation());var t=this.width-this.w;this.rawRight=this.right+t}},h:function(){if(!this.stickDrag&&!this.bodyDrag){this.currentStick=["b","m"],this.stickAxis="y",this.parentLimitation&&(this.limits=this.calcResizeLimitation());var t=this.height-this.h;this.rawBottom=this.bottom+t}},parentW:function(t){this.right=t-this.width-this.left,this.parentWidth=t},parentH:function(t){this.bottom=t-this.height-this.top,this.parentHeight=t}}}},15:function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var r,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?t:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},16:function(t,e,n){(t.exports=n(6)(!1)).push([t.i,'\n.vdr,.vdr.active:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box\n}\n.vdr.active:before{content:"";width:100%;height:100%;top:0;left:0;outline:1px dashed #d6d6d6\n}\n.vdr-stick{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;font-size:1px;background:#fff;border:1px solid #6c6c6c;-webkit-box-shadow:0 0 2px #bbb;box-shadow:0 0 2px #bbb\n}\n.inactive .vdr-stick{display:none\n}\n.vdr-stick-br,.vdr-stick-tl{cursor:nwse-resize\n}\n.vdr-stick-bm,.vdr-stick-tm{left:50%;cursor:ns-resize\n}\n.vdr-stick-bl,.vdr-stick-tr{cursor:nesw-resize\n}\n.vdr-stick-ml,.vdr-stick-mr{top:50%;cursor:ew-resize\n}\n.vdr-stick.not-resizable{display:none\n}',""])},17:function(t,e,n){"use strict";var i=n(0);n.n(i).a},18:function(t,e,n){"use strict";n.r(e);var i=n(4),r=n(2);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a=(n(17),n(3)),s=Object(a.a)(r.default,i.a,i.b,!1,null,null,null);s.options.__file="src/components/vue-drag-resize.vue",e.default=s.exports},2:function(t,e,n){"use strict";n.r(e);var i=n(1),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},3:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return i}))},4:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vdr",class:(t.active||t.isActive?"active":"inactive")+" "+(t.contentClass?t.contentClass:""),style:t.style,on:{mousedown:function(e){t.bodyDown(e)},touchstart:function(e){t.bodyDown(e)},touchend:function(e){t.up(e)}}},[t._t("default"),t._v(" "),t._l(t.sticks,(function(e){return n("div",{staticClass:"vdr-stick",class:["vdr-stick-"+e,t.isResizable?"":"not-resizable"],style:t.vdrStick(e),on:{mousedown:function(n){n.stopPropagation(),n.preventDefault(),t.stickDown(e,n)},touchstart:function(n){n.stopPropagation(),n.preventDefault(),t.stickDown(e,n)}}})}))],2)},r=[];i._withStripped=!0,n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}))},44:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return function(t){return t&&t.__esModule?t:{default:t}}(i).default}})},5:function(t,e,n){function i(t,e){for(var n=0;n=0&&_.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),o(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),o(t,e),e}function u(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function c(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var u=y++;n=v||(v=s(e)),i=d.bind(null,n,u,!1),r=d.bind(null,n,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(e),i=f.bind(null,n,e),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),i=h.bind(null,n),r=function(){a(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function d(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=w(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function h(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function f(t,e,n){var i=n.css,r=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(i=b(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var p={},m=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}((function(){return window&&document&&document.all&&!window.atob})),g=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}((function(t){return document.querySelector(t)})),v=null,y=0,_=[],b=n(15);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=m()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=r(t,e);return i(n,e),function(t){for(var o=[],a=0;a=12?t:t+12:void 0},meridiem:function(t,e,n){return t>=0&&t<6?"पहाटे":t<12?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n("wd/R"))},OfZq:function(t,e,n){"use strict";var i=n("G57Y");n.n(i).a},OjkT:function(t,e,n){!function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.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(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,n){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<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}})}(n("wd/R"))},OmwH:function(t,e,n){!function(t){"use strict";t.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},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 年"}})}(n("wd/R"))},OxdE:function(t,e,n){var i=n("Eep3");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},Oxv6:function(t,e,n){!function(t){"use strict";var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};t.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(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},"P+KS":function(t){t.exports=JSON.parse('{"change-password":"Zmień moje hasło","enter-old-password":"Wpisz stare hasło","enter-new-password":"Wpisz nowe hasło","enter-strong-password":"Wpisz silne hasło","confirm-new-password":"Potwierdź nowe hasło","repeat-strong-password":"Powtórz swoje silne hasło","update-password":"Aktualizować hasło"}')},P8nw:function(t){t.exports=JSON.parse('{"littercoin-header":"Littercoin (LTRX)","back-later":"To wróci później","claim-tokens":"Jeśli chcesz po prostu odebrać tokeny i uzyskać dostęp do swojego portfela z innego miejsca, wprowadź swój identyfikator portfela, a otrzymasz swoje zarobki."}')},PA2r:function(t,e,n){!function(t){"use strict";var e="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),i=[/^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 o(t){return t>1&&t<5&&1!=~~(t/10)}function a(t,e,n,i){var r=t+" ";switch(n){case"s":return e||i?"pár sekund":"pár sekundami";case"ss":return e||i?r+(o(t)?"sekundy":"sekund"):r+"sekundami";case"m":return e?"minuta":i?"minutu":"minutou";case"mm":return e||i?r+(o(t)?"minuty":"minut"):r+"minutami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?r+(o(t)?"hodiny":"hodin"):r+"hodinami";case"d":return e||i?"den":"dnem";case"dd":return e||i?r+(o(t)?"dny":"dní"):r+"dny";case"M":return e||i?"měsíc":"měsícem";case"MM":return e||i?r+(o(t)?"měsíce":"měsíců"):r+"měsíci";case"y":return e||i?"rok":"rokem";case"yy":return e||i?r+(o(t)?"roky":"let"):r+"lety"}}t.defineLocale("cs",{months:e,monthsShort:n,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:i,longMonthsParse:i,shortMonthsParse:i,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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},PBxq:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i);function o(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var a={name:"Emails",data:function(){return{processing:!1}},computed:{button:function(){return this.processing?"button is-info is-loading":"button is-info"},color:function(){return this.$store.state.user.user.emailsub?"color: green":"color: red"},computedPresence:function(){return this.$store.state.user.user.emailsub?"Subscribed":"Unsubscribed"}},methods:{toggle:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.processing=!0,e.$store.dispatch("TOGGLE_EMAIL_SUBSCRIPTION"),e.processing=!1;case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,l,"next",t)}function l(t){o(a,i,r,s,l,"throw",t)}s(void 0)}))})()}}},s=n("KHd+"),l=Object(s.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{padding:"0 1em"}},[n("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.emails.toggle-email")))]),t._v(" "),n("hr"),t._v(" "),n("p",[t._v(t._s(t.$t("settings.emails.we-send-updates")))]),t._v(" "),n("p",[t._v(t._s(t.$t("settings.emails.subscribe")))]),t._v(" "),n("br"),t._v(" "),n("p",[n("b",[t._v(t._s(t.$t("settings.emails.current-status"))+":")])]),t._v(" "),n("p",[n("b",{style:t.color},[t._v(t._s(this.computedPresence))])]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-one-third is-offset-1"},[n("button",{class:t.button,attrs:{disabled:t.processing},on:{click:t.toggle}},[t._v(t._s(t.$t("settings.emails.change-status")))])])])])}),[],!1,null,null,null);e.default=l.exports},PCBF:function(t){t.exports=JSON.parse('{"title":"Jesteś gotów?","subtitle":"Zarejestruj się, aby zostać ekspertem w mapowaniu śmieci i pomóż nam pokonać zanieczyszczenie plastikiem.","crowdfunding-message":"Rozważ wsparcie naszej pracy poprzez finansowanie społecznościowe OpenLitterMap za zaledwie 6 centów dziennie z miesięczną subskrypcją, aby pomóc w rozwoju tej ważnej platformy.","form-create-account":"Załóż konto","form-field-name":"Imie","form-field-unique-id":"Unikatowy Identyfikator","form-field-email":"Adres E-Mail","form-field-password":"Hasło. Musi zawierać wielkie i małe litery oraz cyfrę.","form-field-pass-confirm":"Potwierdź hasło","form-account-conditions":"Przeczytałem i akceptuję Warunki korzystania z usługi i Politykę prywatności ","form-btn":"Załóż konto","create-account-note":"Uwaga: jeśli nie otrzymasz e-maila weryfikacyjnego w swojej skrzynce odbiorczej, sprawdź folder ze spamem"}')},PEkK:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i);function o(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var a={name:"Details",data:function(){return{btn:"button is-medium is-info",processing:!1}},computed:{button:function(){return this.processing?this.btn+" is-loading":this.btn},email:{get:function(){return this.user.email},set:function(t){this.$store.commit("changeUserEmail",t)}},errors:function(){return this.$store.state.user.errors},name:{get:function(){return this.user.name},set:function(t){this.$store.commit("changeUserName",t)}},user:function(){return this.$store.state.user.user},username:{get:function(){return this.user.username},set:function(t){this.$store.commit("changeUserUsername",t)}}},methods:{clearError:function(t){this.errors[t]&&this.$store.commit("deleteUserError",t)},getFirstError:function(t){return this.errors[t][0]},errorExists:function(t){return this.errors.hasOwnProperty(t)},submit:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.processing=!0,t.next=3,e.$store.dispatch("UPDATE_DETAILS");case 3:e.processing=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,l,"next",t)}function l(t){o(a,i,r,s,l,"throw",t)}s(void 0)}))})()}}},s=n("KHd+"),l=Object(s.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[n("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.details.change-details")))]),t._v(" "),n("hr"),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-one-third is-offset-1"},[n("form",{on:{submit:function(e){return e.preventDefault(),t.submit(e)},keydown:function(e){return t.clearError(e.target.name)}}},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("settings.details.your-name")))]),t._v(" "),t.errorExists("name")?n("span",{staticClass:"error",domProps:{textContent:t._s(t.getFirstError("name"))}}):t._e(),t._v(" "),n("div",{staticClass:"field"},[n("div",{staticClass:"control has-icons-left"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],staticClass:"input",attrs:{type:"text",name:"name",id:"name",placeholder:t.name,required:""},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}}),t._v(" "),t._m(0)])]),t._v(" "),n("label",{attrs:{for:"username"}},[t._v(t._s(t.$t("settings.details.unique-id")))]),t._v(" "),t.errorExists("username")?n("span",{staticClass:"error",domProps:{textContent:t._s(t.getFirstError("username"))}}):t._e(),t._v(" "),n("div",{staticClass:"field"},[n("div",{staticClass:"control has-icons-left"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],staticClass:"input",attrs:{type:"text",name:"username",id:"username",placeholder:t.username,required:""},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}}),t._v(" "),n("span",{staticClass:"icon is-small is-left"},[t._v("\n @\n ")])])]),t._v(" "),n("label",{attrs:{for:"email"}},[t._v(t._s(t.$t("settings.details.email")))]),t._v(" "),t.errorExists("email")?n("span",{staticClass:"error",domProps:{textContent:t._s(t.getFirstError("email"))}}):t._e(),t._v(" "),n("div",{staticClass:"field mb2"},[n("div",{staticClass:"control has-icons-left"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"input",attrs:{type:"email",name:"email",id:"email",placeholder:t.email,required:""},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}}),t._v(" "),t._m(1)])]),t._v(" "),n("button",{class:t.button,attrs:{disabled:t.processing}},[t._v(t._s(t.$t("settings.details.update-details")))])])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-user"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-envelope"})])}],!1,null,null,null);e.default=l.exports},PSD3:function(t,e,n){t.exports=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n(e=parseInt(e.getAttribute("tabindex")))?1:t1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.opacity="",t.style.display=e},ot=function(t){t.style.opacity="",t.style.display="none"},at=function(t,e,n){e?rt(t,n):ot(t)},st=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},lt=function(t){return!!(t.scrollHeight>t.clientHeight)},ut=function(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),i=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||i>0},ct=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=F();st(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(t/1e3,"s linear"),n.style.width="0%"}),10))},dt=function(){return"undefined"==typeof window||"undefined"==typeof document},ht='\n
\n
\n
    \n
    \n
    \n
    \n
    \n
    \n \n

    \n \n
    \n
    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n').replace(/(^|\n)\s*/g,""),ft=function(t){sn.isVisible()&&J!==t.target.value&&sn.resetValidationMessage(),J=t.target.value},pt=function(t){var e,n=!!(e=C())&&(e.parentNode.removeChild(e),et([document.documentElement,document.body],[x["no-backdrop"],x["toast-shown"],x["has-column"]]),!0);if(!dt()){var i=document.createElement("div");i.className=x.container,n&&tt(i,x["no-transition"]),G(i,ht);var r,o,a,s,l,u,c,d,h,f="string"==typeof(r=t.target)?document.querySelector(r):r;f.appendChild(i),function(t){var e=M();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")}(t),function(t){"rtl"===window.getComputedStyle(t).direction&&tt(C(),x.rtl)}(f),o=P(),a=nt(o,x.input),s=nt(o,x.file),l=o.querySelector(".".concat(x.range," input")),u=o.querySelector(".".concat(x.range," output")),c=nt(o,x.select),d=o.querySelector(".".concat(x.checkbox," input")),h=nt(o,x.textarea),a.oninput=ft,s.onchange=ft,c.onchange=ft,d.onchange=ft,h.oninput=ft,l.oninput=function(t){ft(t),u.value=l.value},l.onchange=function(t){ft(t),l.nextSibling.value=l.value}}},mt=function(e,n){e instanceof HTMLElement?n.appendChild(e):"object"===t(e)?gt(e,n):e&&G(n,e)},gt=function(t,e){t.jquery?vt(e,t):G(e,t.toString())},vt=function(t,e){if(t.textContent="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},yt=function(){if(dt())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1}(),_t=function(t,e){var n=j(),i=N(),r=R();e.showConfirmButton||e.showCancelButton||ot(n),Z(n,e,"actions"),bt(i,"confirm",e),bt(r,"cancel",e),e.buttonsStyling?function(t,e,n){if(tt([t,e],x.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor),n.cancelButtonColor&&(e.style.backgroundColor=n.cancelButtonColor),!V()){var i=window.getComputedStyle(t).getPropertyValue("background-color");t.style.borderLeftColor=i,t.style.borderRightColor=i}}(i,r,e):(et([i,r],x.styled),i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor="",r.style.backgroundColor=r.style.borderLeftColor=r.style.borderRightColor=""),e.reverseButtons&&i.parentNode.insertBefore(r,i)};function bt(t,e,n){var i;at(t,n["show".concat((i=e,i.charAt(0).toUpperCase()+i.slice(1)),"Button")],"inline-block"),G(t,n["".concat(e,"ButtonText")]),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=x[e],Z(t,n,"".concat(e,"Button")),tt(t,n["".concat(e,"ButtonClass")])}var wt=function(t,e){var n=C();if(n){!function(t,e){"string"==typeof e?t.style.background=e:e||tt([document.documentElement,document.body],x["no-backdrop"])}(n,e.backdrop),!e.backdrop&&e.allowOutsideClick,function(t,e){tt(t,e in x?x[e]:x.center)}(n,e.position),function(t,e){if(e&&"string"==typeof e){var n="grow-".concat(e);n in x&&tt(t,x[n])}}(n,e.grow),Z(n,e,"container");var i=document.body.getAttribute("data-swal2-queue-step");i&&(n.setAttribute("data-queue-step",i),document.body.removeAttribute("data-swal2-queue-step"))}},xt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},kt=["input","file","range","select","radio","checkbox","textarea"],Ct=function(t){if(Et[t.input]){var e=Tt(t.input),n=Et[t.input](e,t);rt(n),setTimeout((function(){K(n)}))}else'Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"')},Lt=function(t,e){var n=X(P(),t);if(n)for(var i in function(t){for(var e=0;en?"".concat(e,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})}return t};var Ot=function(t,e){var n=P().querySelector("#".concat(x.content));e.html?(mt(e.html,n),rt(n,"block")):e.text?(n.textContent=e.text,rt(n,"block")):ot(n),function(t,e){var n=P(),i=xt.innerParams.get(t),r=!i||e.input!==i.input;kt.forEach((function(t){var i=x[t],o=nt(n,i);Lt(t,e.inputAttributes),o.className=i,r&&ot(o)})),e.input&&(r&&Ct(e),St(e))}(t,e),Z(P(),e,"content")},Pt=function(){for(var t=T(),e=0;e\n \n
    \n
    \n '):"error"===e.icon?G(t,'\n \n \n \n \n '):G(t,It({question:"?",warning:"!",info:"i"}[e.icon]))},It=function(t){return'
    ').concat(t,"
    ")},Nt=[],Rt=function(){return C()&&C().getAttribute("data-queue-step")},jt=function(t,e){var n=A();if(!e.progressSteps||0===e.progressSteps.length)return ot(n);rt(n),n.textContent="";var i=parseInt(void 0===e.currentProgressStep?Rt():e.currentProgressStep);e.progressSteps.length,e.progressSteps.forEach((function(t,r){var o=function(t){var e=document.createElement("li");return tt(e,x["progress-step"]),G(e,t),e}(t);if(n.appendChild(o),r===i&&tt(o,x["active-progress-step"]),r!==e.progressSteps.length-1){var a=function(t){var e=document.createElement("li");return tt(e,x["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e}(e);n.appendChild(a)}}))},zt=function(t,e){var n=z();Z(n,e,"header"),jt(0,e),function(t,e){var n=xt.innerParams.get(t);if(n&&e.icon===n.icon&&E())Z(E(),e,"icon");else if(Pt(),e.icon)if(-1!==Object.keys(k).indexOf(e.icon)){var i=L(".".concat(x.icon,".").concat(k[e.icon]));rt(i),At(i,e),Dt(),Z(i,e,"icon"),tt(i,e.showClass.icon)}else'Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"')}(t,e),function(t,e){var n=D();if(!e.imageUrl)return ot(n);rt(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),it(n,"width",e.imageWidth),it(n,"height",e.imageHeight),n.className=x.image,Z(n,e,"image")}(0,e),function(t,e){var n=O();at(n,e.title||e.titleText),e.title&&mt(e.title,n),e.titleText&&(n.innerText=e.titleText),Z(n,e,"title")}(0,e),function(t,e){var n=B();G(n,e.closeButtonHtml),Z(n,e,"closeButton"),at(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)}(0,e)},Yt=function(t,e){t.className="".concat(x.popup," ").concat(st(t)?e.showClass.popup:""),e.toast?(tt([document.documentElement,document.body],x["toast-shown"]),tt(t,x.toast)):tt(t,x.modal),Z(t,e,"popup"),"string"==typeof e.customClass&&tt(t,e.customClass),e.icon&&tt(t,x["icon-".concat(e.icon)])},Ft=function(t,e){!function(t,e){var n=M();it(n,"width",e.width),it(n,"padding",e.padding),e.background&&(n.style.background=e.background),Yt(n,e)}(0,e),wt(0,e),zt(t,e),Ot(t,e),_t(0,e),function(t,e){var n=Y();at(n,e.footer),e.footer&&mt(e.footer,n),Z(n,e,"footer")}(0,e),"function"==typeof e.onRender&&e.onRender(M())},Bt=function(){return N()&&N().click()},$t=function(){var t=M();t||sn.fire(),t=M();var e=j(),n=N();rt(e),rt(n,"inline-block"),tt([t,e],x.loading),n.disabled=!0,t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},Ht={},Ut=function(){return new Promise((function(t){var e=window.scrollX,n=window.scrollY;Ht.restoreFocusTimeout=setTimeout((function(){Ht.previousActiveElement&&Ht.previousActiveElement.focus?(Ht.previousActiveElement.focus(),Ht.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),void 0!==e&&void 0!==n&&window.scrollTo(e,n)}))},Vt=function(){if(Ht.timeout)return function(){var t=F(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width),i=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(i,"%")}(),Ht.timeout.stop()},Wt=function(){if(Ht.timeout){var t=Ht.timeout.start();return ct(t),t}},Gt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconHtml:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:void 0,target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,onRender:void 0,onClose:void 0,onAfterClose:void 0,onDestroy:void 0,scrollbarPadding:!0},qt=["title","titleText","text","html","footer","icon","hideClass","customClass","allowOutsideClick","allowEscapeKey","showConfirmButton","showCancelButton","confirmButtonText","confirmButtonAriaLabel","confirmButtonColor","cancelButtonText","cancelButtonAriaLabel","cancelButtonColor","buttonsStyling","reverseButtons","showCloseButton","closeButtonHtml","closeButtonAriaLabel","imageUrl","imageWidth","imageHeight","imageAlt","progressSteps","currentProgressStep","onClose","onAfterClose","onDestroy"],Zt={animation:'showClass" and "hideClass'},Xt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],Jt=function(t){return Object.prototype.hasOwnProperty.call(Gt,t)},Kt=function(t){return Zt[t]},Qt=function(t){Jt(t)||'Unknown parameter "'.concat(t,'"')},te=function(t){-1!==Xt.indexOf(t)&&'The parameter "'.concat(t,'" is incompatible with toasts')},ee=function(t){Kt(t)&&p(t,Kt(t))},ne=Object.freeze({isValidParameter:Jt,isUpdatableParameter:function(t){return-1!==qt.indexOf(t)},isDeprecatedParameter:Kt,argsToParams:function(e){var n={};return"object"!==t(e[0])||b(e[0])?["title","html","icon"].forEach((function(i,r){var o=e[r];"string"==typeof o||b(o)?n[i]=o:void 0!==o&&"Unexpected type of ".concat(i,'! Expected "string" or "Element", got ').concat(t(o))})):r(n,e[0]),n},isVisible:function(){return st(M())},clickConfirm:Bt,clickCancel:function(){return R()&&R().click()},getContainer:C,getPopup:M,getTitle:O,getContent:P,getHtmlContainer:function(){return S(x["html-container"])},getImage:D,getIcon:E,getIcons:T,getCloseButton:B,getActions:j,getConfirmButton:N,getCancelButton:R,getHeader:z,getFooter:Y,getTimerProgressBar:F,getFocusableElements:$,getValidationMessage:I,isLoading:V,fire:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;iwindow.innerHeight&&(W.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(W.previousBodyPadding+function(){var t=document.createElement("div");t.className=x["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px"))},oe=function(){navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||M().scrollHeight>window.innerHeight-44&&(C().style.paddingBottom="".concat(44,"px"))},ae=function(){var t,e=C();e.ontouchstart=function(e){t=se(e.target)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}},se=function(t){var e=C();return t===e||!(lt(e)||"INPUT"===t.tagName||lt(P())&&P().contains(t))},le=function(){return!!window.MSInputMethodContext&&!!document.documentMode},ue=function(){var t=C(),e=M();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},ce={swalPromiseResolve:new WeakMap};function de(t,e,n,i){n?me(t,i):(Ut().then((function(){return me(t,i)})),Ht.keydownTarget.removeEventListener("keydown",Ht.keydownHandler,{capture:Ht.keydownListenerCapture}),Ht.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),H()&&(null!==W.previousBodyPadding&&(document.body.style.paddingRight="".concat(W.previousBodyPadding,"px"),W.previousBodyPadding=null),function(){if(q(document.body,x.iosfix)){var t=parseInt(document.body.style.top,10);et(document.body,x.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}}(),"undefined"!=typeof window&&le()&&window.removeEventListener("resize",ue),h(document.body.children).forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))),et([document.documentElement,document.body],[x.shown,x["height-auto"],x["no-backdrop"],x["toast-shown"],x["toast-column"]])}function he(t){var e=M();if(e){var n=xt.innerParams.get(this);if(n&&!q(e,n.hideClass.popup)){var i=ce.swalPromiseResolve.get(this);et(e,n.showClass.popup),tt(e,n.hideClass.popup);var r=C();et(r,n.showClass.backdrop),tt(r,n.hideClass.backdrop),fe(this,e,n),void 0!==t?(t.isDismissed=void 0!==t.dismiss,t.isConfirmed=void 0===t.dismiss):t={isDismissed:!0,isConfirmed:!1},i(t||{})}}}var fe=function(t,e,n){var i=C(),r=yt&&ut(e),o=n.onClose,a=n.onAfterClose;null!==o&&"function"==typeof o&&o(e),r?pe(t,e,i,a):de(t,i,U(),a)},pe=function(t,e,n,i){Ht.swalCloseEventFinishedCallback=de.bind(null,t,n,U(),i),e.addEventListener(yt,(function(t){t.target===e&&(Ht.swalCloseEventFinishedCallback(),delete Ht.swalCloseEventFinishedCallback)}))},me=function(t,e){setTimeout((function(){"function"==typeof e&&e(),t._destroy()}))};function ge(t,e,n){var i=xt.domCache.get(t);e.forEach((function(t){i[t].disabled=n}))}function ve(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode.querySelectorAll("input"),i=0;i")),pt(t)}var we=function(t){var e=C(),n=M();"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n);var i=window.getComputedStyle(document.body).overflowY;Se(e,n,t),Ce(e,n),H()&&(Le(e,t.scrollbarPadding,i),h(document.body.children).forEach((function(t){t===C()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,C())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))),U()||Ht.previousActiveElement||(Ht.previousActiveElement=document.activeElement),"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(n)})),et(e,x["no-transition"])};function xe(t){var e=M();if(t.target===e){var n=C();e.removeEventListener(yt,xe),n.style.overflowY="auto"}}var ke,Ce=function(t,e){yt&&ut(e)?(t.style.overflowY="hidden",e.addEventListener(yt,xe)):t.style.overflowY="auto"},Le=function(t,e,n){!function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!q(document.body,x.iosfix)){var t=document.body.scrollTop;document.body.style.top="".concat(-1*t,"px"),tt(document.body,x.iosfix),ae(),oe()}}(),"undefined"!=typeof window&&le()&&(ue(),window.addEventListener("resize",ue)),e&&"hidden"!==n&&re(),setTimeout((function(){t.scrollTop=0}))},Se=function(t,e,n){tt(t,n.showClass.backdrop),rt(e),tt(e,n.showClass.popup),tt([document.documentElement,document.body],x.shown),n.heightAuto&&n.backdrop&&!n.toast&&tt([document.documentElement,document.body],x["height-auto"])},Me=function(t){return t.checked?1:0},Te=function(t){return t.checked?t.value:null},Ee=function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null},Oe=function(e,n){var i=P(),r=function(t){return De[n.input](i,Ae(t),n)};g(n.inputOptions)||y(n.inputOptions)?($t(),v(n.inputOptions).then((function(t){e.hideLoading(),r(t)}))):"object"===t(n.inputOptions)?r(n.inputOptions):"Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(n.inputOptions))},Pe=function(t,e){var n=t.getInput();ot(n),v(e.inputValue).then((function(i){n.value="number"===e.input?parseFloat(i)||0:"".concat(i),rt(n),n.focus(),t.hideLoading()})).catch((function(e){"Error in inputValue promise: ".concat(e),n.value="",rt(n),n.focus(),t.hideLoading()}))},De={select:function(t,e,n){var i=nt(t,x.select),r=function(t,e,i){var r=document.createElement("option");r.value=i,G(r,e),n.inputValue.toString()===i.toString()&&(r.selected=!0),t.appendChild(r)};e.forEach((function(t){var e=t[0],n=t[1];if(Array.isArray(n)){var o=document.createElement("optgroup");o.label=e,o.disabled=!1,i.appendChild(o),n.forEach((function(t){return r(o,t[1],t[0])}))}else r(i,n,e)})),i.focus()},radio:function(t,e,n){var i=nt(t,x.radio);e.forEach((function(t){var e=t[0],r=t[1],o=document.createElement("input"),a=document.createElement("label");o.type="radio",o.name=x.radio,o.value=e,n.inputValue.toString()===e.toString()&&(o.checked=!0);var s=document.createElement("span");G(s,r),s.className=x.label,a.appendChild(o),a.appendChild(s),i.appendChild(a)}));var r=i.querySelectorAll("input");r.length&&r[0].focus()}},Ae=function e(n){var i=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach((function(n,r){var o=n;"object"===t(o)&&(o=e(o)),i.push([r,o])})):Object.keys(n).forEach((function(r){var o=n[r];"object"===t(o)&&(o=e(o)),i.push([r,o])})),i},Ie=function(t,e){var n=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Me(n);case"radio":return Te(n);case"file":return Ee(n);default:return e.inputAutoTrim?n.value.trim():n.value}}(t,e);e.inputValidator?(t.disableInput(),Promise.resolve().then((function(){return v(e.inputValidator(n,e.validationMessage))})).then((function(i){t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):Re(t,e,n)}))):t.getInput().checkValidity()?Re(t,e,n):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},Ne=function(t,e){t.closePopup({value:e})},Re=function(t,e,n){e.showLoaderOnConfirm&&$t(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then((function(){return v(e.preConfirm(n,e.validationMessage))})).then((function(e){st(I())||!1===e?t.hideLoading():Ne(t,void 0===e?n:e)}))):Ne(t,n)},je=function(t,e,n){for(var i=$(),r=0;r:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent!important;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:"";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:.3125em;border-bottom-left-radius:.3125em}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}')},PT26:function(t){t.exports=JSON.parse('{"title":"My Teams","currently-joined-team":"You are currently joined team","currently-not-joined-team":"You are not currently joined a team","no-joined-team":"You have not yet joined a team","leader-of-team":"You are the leader of this team","join-team":"Please join a team","change-active-team":"Change active team","download-team-data":"Download Team Data","hide-from-leaderboards":"Hide from Leaderboards","show-on-leaderboards":"Show on Leaderboards","position-header":"Position","name-header":"Name","username-header":"Username","status-header":"Status","photos-header":"Photos","litter-header":"Litter","last-activity-header":"Last Activity"}')},PeUW:function(t,e,n){!function(t){"use strict";var e={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};t.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(t){return t+"வது"},preparse:function(t){return t.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(t,e,n){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e||"நண்பகல்"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(n("wd/R"))},PeV8:function(t){t.exports=JSON.parse('{"privacy-title":"Controleer je Privacy","privacy-text":"Controleer je privacy voor elk team waar je je bij aangesloten hebt.","maps":{"team-map":"Team Plattegrond","name-will-appear":"Jouw naam zal verschijnen op de plattegrond","username-will-appear":"Jouw gebruikersnaam zal verschijnen op de plattegrond","will-not-appear":"Jouw naam en gebruikersnaam zullen niet op de plattegrond verschijnen"},"leaderboards":{"team-leaderboard":"Team Leiderbord","name-will-appear":"Jouw naam zal verschijnen op het leiderbord","username-will-appear":"Jouw gebruikersnaam zal verschijnen op het leiderbord","will-not-appear":"Jouw naam en gebruikersnaam zullen niet op het leiderbord verschijnen"},"submit-one-team":"Opslaan voor dit Team","apply-all-teams":"Toepassen voor alle Teams"}')},PpIw:function(t,e,n){!function(t){"use strict";var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};t.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(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}})}(n("wd/R"))},"Q+hE":function(t,e,n){var i=n("1C7U");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},QLhK:function(t){t.exports=JSON.parse('{"cancel":"Annuleren","submit":"Indienen","download":"Download","delete":"Verwijderen","delete-image":"De afbeelding verwijderen?","confirm-delete":"Bevestig de verwijdering","loading":"Laden...","created_at":"Ge-Upload op","created":"Aangemaakt","created-by":"Gemaakt door","datetime":"Genomen op","day-names":["Ma","Di","Wo","Do","Vr","Za","Zo"],"month-names":["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],"short-month-names":["Jan","Feb","Maa","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],"next":"Volgende","previous":"Vorige","next-page":"Volgende pagina","add-tags":"Kenmerken Toevoegen","add-many-tags":"Veel Kenmerken Toevoegen","select-all":"Selecteer alles","de-select-all":"De-selecteer alles","choose-dates":"Kies datums","not-verified":"Niet gecontroleerd","verified":"Gecontroleerd","search-by-id":"Zoek op ID","active":"Actief","inactive":"Inactief","your-email":"you@email.com"}')},QbqM:function(t,e,n){var i=n("m7SO");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},Qi36:function(t,e,n){"use strict";var i=n("W697");n.n(i).a},Qj4J:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},"QoU/":function(t){t.exports=JSON.parse('{"change-password":"Cambiar mi contraseña","enter-old-password":"Introduce la contraseña anterior","enter-new-password":"Introduce una nueva contraseña","enter-strong-password":"Introduce una contraseña segura","confirm-new-password":"Confirma tu nueva contraseña","repeat-strong-password":"Repite tu contraseña segura","update-password":"Actualizar contraseña"}')},R5vI:function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));Date.prototype.getWeekNumber=function(t){if(!t){let t=(this.getDay()+6)%7;this.setDate(this.getDate()-t+3)}let e=new Date(this.getFullYear(),0,4);return Math.ceil(((this-e)/864e5+e.getDay()+1)/7)};class i{constructor(t,e,n,i){this.sundayStart=t,this.leftAndRightDays=e,this.dateFormat=n,this.dayNames=i}formatDate(t){let e=t.getDate(),n=t.getMonth()+1,i=t.getFullYear(),r=this.dateFormat.replace("dd",e.toString());return r=r.replace("mm",n.toString()),r=r.replace("yyyy",i.toString()),r.split(" ")[0]}getDateFromFormat(t){let e=this.dateFormat.split(" ")[0];if(t=t.split(" ")[0],-1!==e.indexOf("/"))e=e.split("/"),t=t.split("/");else if(-1!==e.indexOf("-"))e=e.split("-"),t=t.split("-");else{if(-1===e.indexOf("."))throw new Error("Your date format not valid. Please read documentation.!");e=e.split("."),t=t.split(".")}let n=e.indexOf("yyyy"),i=e.indexOf("mm"),r=e.indexOf("dd");return new Date(t[n],t[i]-1,t[r])}checkValidDate(t){return"Invalid Date"!=(t=this.getDateFromFormat(t))}getWeeksInMonth(t,e){let n=[],i=new Date(e,t,1),r=new Date(e,t+1,0),o=r.getDate(),a=1,s=this.sundayStart?7-i.getDay():0===i.getDay()?1:7-i.getDay()+1;for(;a<=o;)n.push({year:e,start:a,end:s,number:new Date(e,t,a).getWeekNumber(this.sundayStart),days:[]}),a=s+1,s+=7,s>o&&(s=o);return{weeks:n,month:r.getMonth(),year:r.getFullYear()}}getLeftMonthDays(t,e){let n=this.getWeeksInMonth(t,e).weeks[0],i=[],r=0,o=0;if(7!==n.end-n.start+1){let n=this.getWeeksInMonth(t-1,e),a=n.weeks[n.weeks.length-1];for(let t=a.start;t<=a.end;t++)i.push(t);o=n.month,r=n.year}return{days:i.reverse(),month:o,year:r}}getRightMonthDays(t,e){let n=this.getWeeksInMonth(t,e),i=n.weeks[n.weeks.length-1],r=[],o=0,a=0;if(7!==i.end-i.start+1){let n=this.getWeeksInMonth(t+1,e),i=n.weeks[0];for(let t=i.start;t<=i.end;t++)r.push(t);a=n.month,o=n.year}return{days:r,month:a,year:o}}getFinalizedWeeks(t,e){let n=this.getWeeksInMonth(t,e),i=this.getLeftMonthDays(t,e),r=this.getRightMonthDays(t,e);return n.weeks.forEach(t=>{for(let e=t.start;e<=t.end;e++)t.days.push({day:e,month:n.month,year:n.year,hide:!1,hideLeftAndRightDays:!1})}),i.days.length&&i.days.forEach(t=>{let e=!1;this.leftAndRightDays||(t="",e=!0),n.weeks[0].days.unshift({day:t,month:i.month,year:i.year,hide:!0,hideLeftAndRightDays:e})}),r.days.length&&r.days.forEach(t=>{let e=!1;this.leftAndRightDays||(t="",e=!0),n.weeks[n.weeks.length-1].days.push({day:t,month:r.month,year:r.year,hide:!0,hideLeftAndRightDays:e})}),n.weeks.forEach(t=>{delete t.year}),n.weeks}mask(t){let e="00";1===this.getDateFromFormat(t).getDate().toString().length&&(e="0");let n="00";this.getDateFromFormat(t).getMonth()+1<=9&&(n="0");let i=this.dateFormat.replace("dd",e).replace("mm",n).replace("yyyy","0000"),r=/[0\*]/,o=/[0-9]/,a="";for(let e=0,n=0;n=t.length)&&("0"!==i[n]||null!=t[e].match(o));){for(;null==i[n].match(r)&&t[e]!==i[n];)a+=i[n++];a+=t[e++],n++}return a}}const r=()=>{},o={props:{borderColor:{type:String,default:""},displayTimeInput:{type:Boolean,default:!1},configs:{type:Object,default:()=>{}},sundayStart:{type:Boolean,default:r},placeholder:{type:[String,Boolean],default:r},dateFormat:{type:String,validator(t){let e=t.split(" ")[1];if(!e)return!0;return!!~["HH:MM","HH:mm","hh:MM","hh:mm"].indexOf(e)}},canClearRange:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:r},isSeparately:{type:Boolean,default:r},isDatePicker:{type:Boolean,default:r},isMultipleDatePicker:{type:Boolean,default:r},isMultipleDateRange:{type:Boolean,default:r},isDateRange:{type:Boolean,default:r},withTimePicker:{type:Boolean,default:r},calendarsCount:{type:Number},isModal:{type:Boolean,default:r},isTypeable:{type:Boolean,default:r},changeMonthFunction:{type:Boolean,default:r},changeYearFunction:{type:Boolean,default:r},changeYearStep:{type:Number,default:()=>3},newCurrentDate:{type:Date},markedDates:{type:Array,default:()=>[]},markedDateRange:{type:[Object,Array]},disabledDayNames:{type:Array},disabledDates:{type:Array},enabledDates:{type:Array},limits:{type:[Object,Boolean],default:r},minSelDays:{type:[Number,Boolean],default:r},maxSelDays:{type:[Number,Boolean],default:r},dayNames:{type:Array},monthNames:{type:Array},shortMonthNames:{type:Array},showWeekNumbers:{type:Boolean,default:r},value:{type:Object},transition:{type:Boolean,default:r},hiddenElements:{type:Array},isAutoCloseable:{type:Boolean,default:void 0},isDark:{type:Boolean,default:void 0},isLayoutExpandable:{type:Boolean,default:void 0},titlePosition:{type:String,default:"center"},arrowsPosition:{type:String,default:"space-between"}},data:()=>({popoverElement:"",defaultDateFormat:{date:!1,dateTime:!1,hour:"00",minute:"00"},hoveredObject:null,calendar:{currentDate:new Date,selectedDate:!1,selectedDateTime:!1,selectedHour:"00",selectedMinute:"00",selectedDatesItem:"",selectedDates:[],dateRange:{start:"",end:""},multipleDateRange:[]},transitionPrefix:"left",showCalendar:!0,showMonthPicker:!1,showYearPicker:!1,showTimePicker:!1,allowPreDate:!0,allowNextDate:!0,listCalendars:[],fConfigs:{sundayStart:!1,placeholder:!1,dateFormat:"dd/mm/yyyy hh:MM",isMultipleDateRange:!1,isDatePicker:!1,isMultipleDatePicker:!1,isDateRange:!1,withTimePicker:!1,isMultiple:!1,calendarsCount:1,isSeparately:!1,isModal:!1,isTypeable:!1,changeMonthFunction:!1,changeYearFunction:!1,changeYearStep:3,markedDates:[],markedDateRange:{start:!1,end:!1},limits:!1,minSelDays:!1,maxSelDays:!1,disabledDates:[],enabledDates:[],disabledDayNames:[],dayNames:["Mo","Tu","We","Th","Fr","Sa","Su"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],showWeekNumbers:!1,transition:!0,hiddenElements:[],isAutoCloseable:!1,isDark:!1,isLayoutExpandable:!1,titlePosition:"center",arrowsPosition:"space-between"}})};var a={name:"TimePicker",data:()=>({startDateActive:!0,currentSelectedDate:""}),props:{height:{type:Number,required:!0}},watch:{startDateActive:function(){this.setScrollPosition()}},computed:{getCurrentDate(){return this.currentSelectedDate.date},getCurrentDateTime(){return this.currentSelectedDate.dateTime}},created(){let t=this.$parent.calendar.selectedDates;this.currentSelectedDate=t[t.length-1]},mounted(){let t=this.$parent.calendar.dateRange.start.split(" ")[0],e=this.$parent.calendar.dateRange.end.split(" ")[0];t&&this.$parent.helpCalendar.getDateFromFormat(t)t<=10?"0"+(t-1):t-1,close(){this.$parent.showTimePicker=!1},addMinuteHour(t,e,n){let i="";return i+=e.split(" ")[0],"hour"==t?(i+=" "+n+":",i+=e.split(" ")[1].split(":")[1]):(i+=" "+e.split(" ")[1].split(":")[0]+":",i+=n),i},changeHour(t){if(this.$parent.fConfigs.isDateRange)this.checkStartDate()?this.$parent.calendar.dateRange.start=this.addMinuteHour("hour",this.$parent.calendar.dateRange.start,t):this.$parent.calendar.dateRange.end=this.addMinuteHour("hour",this.$parent.calendar.dateRange.end,t);else if(this.$parent.fConfigs.isMultipleDatePicker){this.$parent.calendar.selectedDates.find(t=>t.date===this.getCurrentDate).hour=t}else this.$parent.calendar.selectedHour=t;this.setSelectedDateTime(),this.setScrollPosition()},changeMinute(t){if(this.$parent.fConfigs.isDateRange)this.checkStartDate()?this.$parent.calendar.dateRange.start=this.addMinuteHour("minute",this.$parent.calendar.dateRange.start,t):this.$parent.calendar.dateRange.end=this.addMinuteHour("minute",this.$parent.calendar.dateRange.end,t);else if(this.$parent.fConfigs.isMultipleDatePicker){this.$parent.calendar.selectedDates.find(t=>t.date===this.getCurrentDate).minute=t}else this.$parent.calendar.selectedMinute=t;this.setSelectedDateTime(),this.setScrollPosition()},setSelectedDateTime(){if(this.$parent.fConfigs.isDatePicker)this.$parent.calendar.selectedDateTime=this.$parent.calendar.selectedDate+" "+this.$parent.calendar.selectedHour+":"+this.$parent.calendar.selectedMinute;else if(this.$parent.fConfigs.isMultipleDatePicker){let t=this.$parent.calendar.selectedDates.find(t=>t.date===this.getCurrentDate);t.dateTime=t.date+" "+t.hour+":"+t.minute}},checkStartDate(){return this.startDateActive},checkHourActiveClass(t){let e;return e=this.$parent.fConfigs.isDateRange?this.checkStartDate()?this.$parent.calendar.dateRange.start.split(" ")[1].split(":")[0]:this.$parent.calendar.dateRange.end.split(" ")[1].split(":")[0]:this.$parent.fConfigs.isMultipleDatePicker?this.$parent.calendar.selectedDates.find(t=>t.date===this.getCurrentDate).hour:this.$parent.calendar.selectedHour,e==this.formatTime(t)},checkMinuteActiveClass(t){let e;return e=this.$parent.fConfigs.isDateRange?this.checkStartDate()?this.$parent.calendar.dateRange.start.split(":")[1]:this.$parent.calendar.dateRange.end.split(":")[1]:this.$parent.fConfigs.isMultipleDatePicker?this.$parent.calendar.selectedDates.find(t=>t.date===this.getCurrentDate).minute:this.$parent.calendar.selectedMinute,e==this.formatTime(t)},setStyles(){this.setScrollPosition();let t=+this.height-35-85;document.getElementsByClassName("vfc-time-picker__list")[0].style.height=t+"px",document.getElementsByClassName("vfc-time-picker__list")[1].style.height=t+"px"},setScrollPosition(){let t=this.$parent.$refs.mainContainer;this.$nextTick((function(){const e=this.$refs.hourList.querySelector(".vfc-time-picker__item--selected"),n=this.$refs.minuteList.querySelector(".vfc-time-picker__item--selected");this.$refs.hourList.scrollTop=e?e.offsetTop-t.clientHeight/2:0,this.$refs.minuteList.scrollTop=n?n.offsetTop-t.clientHeight/2:0}))}}},s=(n("bZU1"),n("KHd+")),l=Object(s.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vfc-time-picker-container"},[n("div",{staticClass:"vfc-close",on:{click:function(e){return t.close()}}}),t._v(" "),n("div",{staticClass:"vfc-modal-time-mechanic"},[n("div",{staticClass:"vfc-modal-time-line",attrs:{id:"time-line"}},[n("span",[t.$parent.fConfigs.isDateRange?[n("span",{class:{"vfc-active":t.startDateActive},on:{click:function(e){t.startDateActive=!0}}},[t._v(t._s(t.$parent.calendar.dateRange.start))]),t._v(" "),t.$parent.calendar.dateRange.end?[n("span",[t._v("-")]),t._v(" "),n("span",{class:{"vfc-active":!t.startDateActive},on:{click:function(e){t.startDateActive=!1}}},[t._v(t._s(t.$parent.calendar.dateRange.end))])]:t._e()]:t.$parent.fConfigs.isMultipleDatePicker?[t._v(t._s(t.getCurrentDateTime))]:[t._v(t._s(t.$parent.calendar.selectedDateTime))]],2)]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"vfc-time-picker"},[n("div",{ref:"hourList",staticClass:"vfc-time-picker__list vfc-time-picker__list--hours"},t._l(24,(function(e){return n("div",{key:e,staticClass:"vfc-time-picker__item",class:{"vfc-time-picker__item--selected":t.checkHourActiveClass(e)},on:{click:function(n){t.changeHour(t.formatTime(e))}}},[t._v("\n "+t._s(t.formatTime(e))+"\n ")])})),0),t._v(" "),n("div",{ref:"minuteList",staticClass:"vfc-time-picker__list vfc-time-picker__list--minutes"},t._l(60,(function(e){return n("div",{key:e,staticClass:"vfc-time-picker__item",class:{"vfc-time-picker__item--selected":t.checkMinuteActiveClass(e)},on:{click:function(n){t.changeMinute(t.formatTime(e))}}},[t._v("\n "+t._s(t.formatTime(e))+"\n ")])})),0)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"titles"},[e("div",[this._v("Hour")]),this._v(" "),e("div",[this._v("Minute")])])}],!1,null,"56eeb0da",null).exports,u={name:"Arrows",props:{fConfigs:{type:Object,required:!0},allowPreDate:{type:Boolean,required:!0},allowNextDate:{type:Boolean,required:!0},calendarKey:{type:Number,default:0},isMultiple:{type:Boolean,required:!0}},computed:{oneArrows(){return!this.fConfigs.isSeparately&&!this.isMultiple},manyArrows(){return this.fConfigs.isSeparately&&this.isMultiple}}},c=Object(s.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.oneArrows||t.manyArrows?n("div",{staticClass:"vfc-separately-navigation-buttons",class:"vfc-"+t.fConfigs.arrowsPosition},[n("div",{class:{"vfc-cursor-pointer":t.allowPreDate},on:{click:function(e){return t.$parent.PreMonth(t.oneArrows?0:t.calendarKey)}}},[t._t("navigationArrowLeft",[n("div",{staticClass:"vfc-arrow-left",class:{"vfc-disabled":!t.allowPreDate}})])],2),t._v(" "),n("div",{class:{"vfc-cursor-pointer":t.allowNextDate},on:{click:function(e){return t.$parent.NextMonth(t.oneArrows?0:t.calendarKey)}}},[t._t("navigationArrowRight",[n("div",{staticClass:"vfc-arrow-right",class:{"vfc-disabled":!t.allowNextDate}})])],2)]):t._e()])}),[],!1,null,null,null).exports,d={name:"WeekNumbers",props:{number:{tyoe:Number,required:!0},borderColor:{type:String,default:""}}},h=Object(s.a)(d,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"vfc-day vfc-week-number",style:{borderRightColor:this.borderColor}},[e("span",{staticClass:"vfc-span-day"},[this._v(this._s(this.number))])])}),[],!1,null,"ef78b1e2",null).exports,f={name:"Day",props:{day_key:{type:Number,required:!0},week:{type:Object,required:!0},day:{type:Object,required:!0},helpCalendar:{type:Object,required:!0},fConfigs:{type:Object,required:!0},calendar:{type:Object,required:!0}},data:()=>({toolTip:!1,onNumber:!1}),computed:{startActive(){if(!this.fConfigs.isMultipleDateRange)return(this.day.isDateRangeStart||this.day.isMouseToLeft)&&!this.day.hideLeftAndRightDays;"".inRange||this.inRangeInit();const t=this.day.date.inRange(this.calendar.multipleDateRange),e=this.calendar.multipleDateRange[this.calendar.multipleDateRange.length-1];if(!e)return t;const n=~this.calendar.multipleDateRange.map(t=>t.start).indexOf(this.day.date),i=~this.calendar.multipleDateRange.map(t=>t.end).indexOf(this.day.date);return n===i&&i?t:n&&~n>-1&&this.calendar.multipleDateRange[~n].end?n||t:e.start||e.end?(this.day.isDateRangeStart||this.day.isMouseToLeft)&&!this.day.hideLeftAndRightDays||t:n||t},endActive(){if(!this.fConfigs.isMultipleDateRange)return(this.day.isDateRangeEnd||this.day.isMouseToRight)&&!this.day.hideLeftAndRightDays;"".inRange||this.inRangeInit();const t=this.day.date.inRange(this.calendar.multipleDateRange),e=this.calendar.multipleDateRange[this.calendar.multipleDateRange.length-1];if(!e)return t;const n=~this.calendar.multipleDateRange.map(t=>t.start).indexOf(this.day.date),i=~this.calendar.multipleDateRange.map(t=>t.end).indexOf(this.day.date);return n===i&&i?t:!!i||(e.start||e.end?(this.day.isDateRangeEnd||this.day.isMouseToRight)&&!this.day.hideLeftAndRightDays||t:e.start!==e.end&&i)},numberShow(){if(!this.fConfigs.isMultipleDateRange)return!1;return!(!~this.calendar.multipleDateRange.map(t=>t.end).indexOf(this.day.date)&&!~this.calendar.multipleDateRange.map(t=>t.start).indexOf(this.day.date))},timesShow(){let t=this.calendar.multipleDateRange?~this.calendar.multipleDateRange.map(t=>t.end).indexOf(this.day.date):-1;return this.fConfigs.isMultipleDateRange&&t},getDaysNumber(){const t=this.calendar.multipleDateRange.map(t=>t.end).indexOf(this.day.date),e=this.calendar.multipleDateRange.map(t=>t.start).indexOf(this.day.date),n=this.calendar.multipleDateRange.map(t=>t.end).lastIndexOf(this.day.date),i=this.calendar.multipleDateRange.map(t=>t.start).lastIndexOf(this.day.date);return this.toolTip=t!==n||e!==i||t>-1&&e>-1||e>-1&&t>-1,this.toolTip?"·":(t>-1?Number(t):0)||e}},methods:{toolTipTxt(){const t=[],e=this.calendar.multipleDateRange.map(t=>t.end),n=this.calendar.multipleDateRange.map(t=>t.start);let i=0,r=0,o=e.indexOf(this.day.date,i);for(;~e.indexOf(this.day.date,i);)o=e.indexOf(this.day.date,i),t.push(o),i=o+1;for(o=n.indexOf(this.day.date,r);~n.indexOf(this.day.date,r);)o=n.indexOf(this.day.date,r),t.push(o),r=o+1;return t.sort((t,e)=>t-e)},inRangeInit(){const t=this.helpCalendar;String.prototype.inRange=function(e){let n=!1;return e.forEach(e=>{const i=+t.getDateFromFormat(e.start.split(" ")[0]),r=+t.getDateFromFormat(e.end.split(" ")[0]),o=+t.getDateFromFormat(this.split(" ")[0]);i!==r&&i&&r&&(n=n||it.end===this.day.date);this.calendar.multipleDateRange.splice(t,1)},dayMouseOver(){this.$emit("dayMouseOver",this.day.date)},hasSlot(t="default"){return!!this.$parent.$parent.$slots[t]||!!this.$parent.$parent.$scopedSlots[t]},isDisabledDate(t){const e=this.fConfigs.disabledDates;return!this.isEnabledDate(t)||this.isDateIncludedInDatesCollection(t,e)},isEnabledDate(t){const e=this.fConfigs.enabledDates;return 0===e.length||this.isDateIncludedInDatesCollection(t,e)},isDateIncludedInDatesCollection(t,e){let n=new Date;n.setHours(0,0,0,0);let i=this.helpCalendar.getDateFromFormat(t);return e.includes(t)||e.includes("beforeToday")&&i.getTime()n.getTime()},getClassNames(t){let e=[];this.hasSlot("default")||e.push("vfc-span-day");let n=this.helpCalendar.getDateFromFormat(t.date).getDay()-1;-1===n&&(n=6);let i=this.fConfigs.dayNames[n];this.fConfigs.disabledDayNames.includes(i)&&(t.hide=!0,e.push("vfc-cursor-not-allowed"));let r=this.helpCalendar.getDateFromFormat(t.date);if((new Date).setHours(0,0,0,0),this.isDisabledDate(t.date)&&(e.push("vfc-disabled"),e.push("vfc-cursor-not-allowed")),this.fConfigs.limits){let t=this.helpCalendar.getDateFromFormat(this.fConfigs.limits.min).getTime(),n=this.helpCalendar.getDateFromFormat(this.fConfigs.limits.max).getTime();(r.getTime()n)&&(e.push("vfc-disabled"),e.push("vfc-cursor-not-allowed"))}if(t.hide&&e.push("vfc-hide"),t.isToday&&e.push("vfc-today"),t.hideLeftAndRightDays||this.fConfigs.disabledDayNames.includes(i)||(t.isMarked?e.push("vfc-marked"):t.isHovered&&e.push("vfc-hovered"),this.fConfigs.markedDates.includes(t.date)&&e.push("vfc-borderd"),Array.isArray(this.fConfigs.markedDateRange)?this.fConfigs.markedDateRange.forEach(n=>{this.helpCalendar.getDateFromFormat(n.start)<=this.helpCalendar.getDateFromFormat(t.date)&&this.helpCalendar.getDateFromFormat(n.end)>=this.helpCalendar.getDateFromFormat(t.date)&&e.push("vfc-marked"),t.date===n.start?e.push("vfc-start-marked"):t.date===n.end&&e.push("vfc-end-marked")}):this.fConfigs.markedDateRange.start&&this.fConfigs.markedDateRange.end?(this.helpCalendar.getDateFromFormat(this.fConfigs.markedDateRange.start)<=this.helpCalendar.getDateFromFormat(t.date)&&this.helpCalendar.getDateFromFormat(this.fConfigs.markedDateRange.end)>=this.helpCalendar.getDateFromFormat(t.date)&&e.push("vfc-marked"),t.date===this.fConfigs.markedDateRange.start?e.push("vfc-start-marked"):t.date===this.fConfigs.markedDateRange.end&&e.push("vfc-end-marked")):(this.fConfigs.markedDateRange.start&&this.helpCalendar.getDateFromFormat(this.fConfigs.markedDateRange.start)<=this.helpCalendar.getDateFromFormat(t.date)&&e.push("vfc-marked"),this.fConfigs.markedDateRange.end&&this.helpCalendar.getDateFromFormat(this.fConfigs.markedDateRange.end)>=this.helpCalendar.getDateFromFormat(t.date)&&e.push("vfc-marked")),e.push("vfc-hover")),this.fConfigs.isMultipleDateRange&&("".inRange||this.inRangeInit(),(t.isMarked||~this.calendar.multipleDateRange.map(t=>t.start.split(" ")[0]).indexOf(t.date)||~this.calendar.multipleDateRange.map(t=>t.end.split(" ")[0]).indexOf(t.date)||t.date.inRange(this.calendar.multipleDateRange))&&e.push("vfc-marked"),this.fConfigs.markedDates.includes(t.date)&&e.push("vfc-borderd"),~this.calendar.multipleDateRange.map(t=>t.start.split(" ")[0]).indexOf(t.date)&&e.push("vfc-start-marked"),~this.calendar.multipleDateRange.map(t=>t.end.split(" ")[0]).indexOf(t.date)&&e.push("vfc-end-marked")),"object"==typeof this.fConfigs.markedDates){let n=this.fConfigs.markedDates.find(e=>e.date===t.date);void 0!==n&&e.push(n.class)}return t.date===this.calendar.dateRange.start.split(" ")[0]&&e.push("vfc-start-marked"),t.date===this.calendar.dateRange.end.split(" ")[0]&&e.push("vfc-end-marked"),(t.date===this.calendar.selectedDate||this.calendar.hasOwnProperty("selectedDates")&&this.calendar.selectedDates.find(e=>e.date===t.date))&&e.push("vfc-borderd"),e}}},p=(n("zH9V"),Object(s.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vfc-day"},[t.startActive?n("div",{staticClass:"vfc-base-start"}):t._e(),t._v(" "),t.endActive?n("div",{staticClass:"vfc-base-end"}):t._e(),t._v(" "),t.day.hideLeftAndRightDays?t._e():n("span",{class:t.getClassNames(t.day),on:{click:function(e){return e.target!==e.currentTarget?null:t.$parent.$parent.clickDay(t.day,t.isDisabledDate)},mouseover:t.dayMouseOver}},[t._t("default",[t._v(t._s(t.day.day))],{week:t.week,day:t.day}),t._v(" "),t.timesShow?n("span",{staticClass:"times",on:{click:t.clearRange}},[t._v("×")]):t._e(),t._v(" "),t.numberShow?n("span",{staticClass:"number",on:{mouseover:function(e){t.toolTip&&(t.onNumber=!0)},mouseleave:function(e){t.onNumber=!1}}},[t._v(t._s(t.getDaysNumber)+"\n "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.toolTip&&t.onNumber,expression:"toolTip && onNumber"}],staticClass:"toolTip"},[t._v("\n "+t._s(t.toolTipTxt().join(" "))+"\n ")])]):t._e()],2)])}),[],!1,null,"03906378",null).exports),m={name:"MonthYearPicker",props:{calendarKey:{type:Number,default:0},changeYearStep:{type:Number,default:3}},data:()=>({delta:0}),watch:{delta(t){t<-(new Date).getFullYear()&&(this.delta=0)}},methods:{changePicker(t){this.$parent.showMonthPicker?"right"===t?this.$parent.NextYear(this.calendarKey):this.$parent.PreYear(this.calendarKey):"right"===t?this.delta+=this.changeYearStep:this.delta-=this.changeYearStep}}},g=Object(s.a)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vfc-months-container"},[n("div",{staticClass:"vfc-content vfc-content-MY-picker"},[n("div",{staticClass:"vfc-navigation-buttons"},[n("div",{on:{click:function(e){return t.changePicker("left")}}},[n("div",{staticClass:"vfc-arrow-left"})]),t._v(" "),n("h2",{class:["vfc-top-date",0!==t.delta&&"vfc-top-date-has-delta"],on:{click:function(e){t.delta=0}}},[n("span",{staticClass:"vfc-popover-caret"}),t._v("\n "+t._s(t.$parent.listCalendars[t.calendarKey].date.getFullYear())+"\n ")]),t._v(" "),n("div",{on:{click:function(e){return t.changePicker("right")}}},[n("div",{staticClass:"vfc-arrow-right"})])]),t._v(" "),n("div",{staticClass:"vfc-months"},[t.$parent.showMonthPicker?t._l(t.$parent.fConfigs.shortMonthNames,(function(e,i){return n("div",{key:i,staticClass:"vfc-item",class:{"vfc-selected":t.$parent.listCalendars[t.calendarKey].date.getMonth()===i},on:{click:function(e){return t.$parent.pickMonth(i,t.calendarKey)}}},[t._v("\n "+t._s(e)+"\n ")])})):t.$parent.showYearPicker?t._l(t.$parent.getYearList(t.$parent.listCalendars[t.calendarKey].date,t.delta),(function(e,i){return n("div",{key:i,staticClass:"vfc-item",class:{"vfc-selected":t.$parent.listCalendars[t.calendarKey].date.getFullYear()===e.year},on:{click:function(n){return t.$parent.pickYear(e.year,t.calendarKey)}}},[t._v("\n "+t._s(e.year)+"\n ")])})):t._e()],2)])])}),[],!1,null,"a6938d62",null).exports,v={name:"PickerInputs",props:{fConfigs:{type:Object,required:!0},singleSelectedDate:{type:String,required:!0},calendar:{type:Object,required:!0}},computed:{dateRangeSelectedStartDate:{get(){return this.calendar.dateRange.start?this.calendar.dateRange.start:""},set(t){t=this.helpCalendar.mask(t),this.helpCalendar.getDateFromFormat(t).getMonth()&&(this.calendar.dateRange.start=t)}},dateRangeSelectedEndDate:{get(){return this.calendar.dateRange.end?this.calendar.dateRange.end:""},set(t){t=this.helpCalendar.mask(t),this.helpCalendar.getDateFromFormat(t).getMonth()&&(this.calendar.dateRange.end=t)}}}},y=Object(s.a)(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.fConfigs.isModal&&t.fConfigs.isDateRange?n("div",{staticClass:"vfc-multiple-input",class:{"vfc-dark":t.fConfigs.isDark}},[t._t("dateRangeInputs",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.dateRangeSelectedStartDate,expression:"dateRangeSelectedStartDate"}],attrs:{type:"text",title:"Start Date",placeholder:t.fConfigs.placeholder.split(" ")[0],readonly:!t.fConfigs.isTypeable,maxlength:t.fConfigs.dateFormat.length},domProps:{value:t.dateRangeSelectedStartDate},on:{input:function(e){e.target.composing||(t.dateRangeSelectedStartDate=e.target.value)}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.dateRangeSelectedEndDate,expression:"dateRangeSelectedEndDate"}],attrs:{type:"text",title:"End Date",placeholder:t.fConfigs.placeholder.split(" ")[0],readonly:!t.fConfigs.isTypeable,maxlength:t.fConfigs.dateFormat.length},domProps:{value:t.dateRangeSelectedEndDate},on:{input:function(e){e.target.composing||(t.dateRangeSelectedEndDate=e.target.value)}}})],{startDate:t.dateRangeSelectedStartDate,endDate:t.dateRangeSelectedEndDate,isTypeable:t.fConfigs.isTypeable})],2):t.fConfigs.isModal&&t.fConfigs.isDatePicker?n("div",{class:{"vfc-dark":t.fConfigs.isDark}},[t._t("datePickerInput",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.singleSelectedDate,expression:"singleSelectedDate"}],staticClass:"vfc-single-input",attrs:{type:"text",title:"Date",placeholder:t.fConfigs.placeholder,readonly:!t.fConfigs.isTypeable,maxlength:t.fConfigs.dateFormat.length},domProps:{value:t.singleSelectedDate},on:{input:function(e){e.target.composing||(t.singleSelectedDate=e.target.value)}}})],{selectedDate:t.singleSelectedDate,isTypeable:t.fConfigs.isTypeable})],2):t.fConfigs.isModal&&t.fConfigs.isMultipleDatePicker?n("div",{staticClass:"vfc-tags-input-root",class:{"vfc-dark":t.fConfigs.isDark}},[n("div",{staticClass:"vfc-tags-input-wrapper-default vfc-tags-input"},[t._l(t.calendar.selectedDates,(function(e,i){return n("span",{key:i,staticClass:"vfc-tags-input-badge vfc-tags-input-badge-pill vfc-tags-input-badge-selected-default"},[n("span",{domProps:{innerHTML:t._s(e.date)}}),t._v(" "),n("a",{staticClass:"vfc-tags-input-remove",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.removeFromSelectedDates(i)}}})])})),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.calendar.selectedDatesItem,expression:"calendar.selectedDatesItem"}],attrs:{type:"text",placeholder:"Add a date"},domProps:{value:t.calendar.selectedDatesItem},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$parent.addToSelectedDates(e))},input:function(e){e.target.composing||t.$set(t.calendar,"selectedDatesItem",e.target.value)}}})],2)]):t._e()])}),[],!1,null,"539d1725",null).exports,_={name:"Footer"},b=(n("cVq0"),Object(s.a)(_,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"footerCon"},[this._t("cleaner"),this._v(" "),this._t("footer")],2)}),[],!1,null,"f57c853e",null).exports);const w=()=>(new Date).getUTCMilliseconds();var x={name:"FunctionalCalendar",components:{MonthYearPicker:g,TimePicker:l,PickerInputs:y,Arrows:c,Footer:b,Day:p,WeekNumbers:h},mixins:[o],computed:{startDMY(){return this.calendar.dateRange.start?this.calendar.dateRange.start.split(" ")[0]:""},endDMY(){return this.calendar.dateRange.end?this.calendar.dateRange.end.split(" ")[0]:""},rangeIsSelected(){return this.isMultipleDateRange?this.calendar.multipleDateRange.length>0:!(!this.calendar.dateRange.end||!this.calendar.dateRange.start)},helpCalendar(){return new i(this.fConfigs.sundayStart,this.checkHiddenElement("leftAndRightDays"),this.fConfigs.dateFormat,this.fConfigs.dayNames)},singleSelectedDate:{get(){let t="";if(this.displayTimeInput){const e=["HH:MM","HH:mm","hh:MM","hh:mm","MM:HH","mm:HH","MM:hh","mm:hh"];let n=this.fConfigs.dateFormat;this.dateFormat&&(n=this.dateFormat),e.indexOf(n.split(" ")[1])>3?t+=" "+[this.calendar.selectedHour,this.calendar.selectedMinute].reverse().join(":"):t+=" "+[this.calendar.selectedHour,this.calendar.selectedMinute].join(":")}return this.calendar.selectedDate?this.calendar.selectedDate+t:""},set(t){t=this.helpCalendar.mask(t),this.helpCalendar.getDateFromFormat(t).getMonth()&&(this.calendar.selectedDate=t)}}},created(){this.setConfigs(),this.initCalendar()},mounted(){if(this.displayTimeInput){this.fConfigs.placeholder.split(" ")[1]||(this.fConfigs.placeholder+=" hh:mm")}this.popoverElement=this.$refs.popoverElement,this.popoverElement.addEventListener("focusin",this.onFocusIn),this.popoverElement.addEventListener("focusout",this.onFocusOut),window.addEventListener("click",this.hideMonthYearPicker,{capture:!0}),this.$watch("value",(function(t){if("object"==typeof t&&(t.hasOwnProperty("dateRange")||t.hasOwnProperty("selectedDate")))this.calendar=t;else if("object"==typeof t&&t.hasOwnProperty("multipleDateRange")){this.calendar.multipleDateRange=t.multipleDateRange;const e=this.calendar.multipleDateRange[Math.max(0,this.calendar.multipleDateRange.length-1)];if(e&&(e.start&&!e.end||!e.start&&e.end))throw new Error("Invalid Data Range")}}),{immediate:!0,deep:!0}),this.$watch("showCalendar",(function(t){t?this.$emit("opened"):this.$emit("closed")}),{immediate:!0,deep:!0})},beforeDestroy:function(){window.removeEventListener("focusin",this.onFocusIn),window.removeEventListener("focusout",this.onFocusOut),window.removeEventListener("click",this.hideMonthYearPicker)},watch:{enabledDates:{handler(){this.fConfigs.enabledDates=this.enabledDates},deep:!0},"configs.enabledDates":{handler(){this.fConfigs.enabledDates=this.configs.enabledDates},deep:!0},fConfigs:{handler(){this.markChooseDays()},deep:!0,immediate:!0},calendar:{handler(){this.markChooseDays()},deep:!0,immediate:!0},"calendar.currentDate":{handler(t){this.$emit("input",this.calendar),this.checkLimits(t)}}},methods:{initCalendar(){this.setCalendarData(),this.listRendering(),this.markChooseDays(),this.checkLimits(this.calendar.currentDate)},updateCalendar(){this.setExistingCalendarData(),this.listRendering(),this.markChooseDays()},isNotSeparatelyAndFirst(t){return this.isSeparately||0==t},setCalendarData(){let t=this.calendar.currentDate;t=new Date(t.getFullYear(),t.getMonth()-1),this.listCalendars=[];for(let e=0;e{void 0!==this.fConfigs[e]&&this.$set(this.fConfigs,e,t[e])})),void 0!==this.configs?Object.keys(this.fConfigs).forEach(t=>{void 0!==this.configs[t]&&this.$set(this.fConfigs,t,this.configs[t])}):Object.keys(this.$props).forEach(t=>{void 0!==this.fConfigs[t]&&void 0!==this.$props[t]&&this.$set(this.fConfigs,t,this.$props[t])}),this.fConfigs.isModal&&(this.showCalendar=!1),this.fConfigs.placeholder||(this.fConfigs.placeholder=this.fConfigs.dateFormat),void 0!==this.newCurrentDate&&(this.calendar.currentDate=this.newCurrentDate),this.fConfigs.sundayStart){let t=[...this.fConfigs.dayNames],e=t[t.length-1];t.splice(t.length-1,1),t.unshift(e),this.fConfigs.dayNames=t}},listRendering(){this.listCalendars.forEach(t=>{t.weeks.forEach(t=>{let e=[];t.days.forEach(t=>{let n,i=new Date(t.year,t.month,t.day),r=new Date,o=!1;i.setHours(0,0,0,0),r.setHours(0,0,0,0),i.getTime()===r.getTime()&&(o=!0),n="object"==typeof this.fConfigs.markedDates[0]?this.fConfigs.markedDates.find(t=>t.date===this.helpCalendar.formatDate(i)):this.fConfigs.markedDates.find(t=>t===this.helpCalendar.formatDate(i)),this.startDMY===this.helpCalendar.formatDate(i)&&(n=!0);let a=!1;void 0!==n&&(a=!0),e.push({day:t.day,date:this.helpCalendar.formatDate(i),hide:t.hide,isMouseToLeft:!1,isMouseToRight:!1,isHovered:!1,isDateRangeStart:this.checkDateRangeStart(this.helpCalendar.formatDate(i)),isDateRangeEnd:this.checkDateRangeEnd(this.helpCalendar.formatDate(i)),hideLeftAndRightDays:t.hideLeftAndRightDays,isToday:o,isMarked:a})}),t.days=e})})},clickDay(t,e){if(this.fConfigs.withTimePicker&&this.fConfigs.isDateRange&&(t.date=t.date+" 00:00"),this.$emit("dayClicked",t),!this.fConfigs.isDateRange&&!this.fConfigs.isDatePicker&&!this.fConfigs.isMultipleDatePicker)return!1;let n=this.helpCalendar.getDateFromFormat(t.date).getDay()-1;-1===n&&(n=6);let i=this.fConfigs.dayNames[n];if(this.fConfigs.disabledDayNames.includes(i)||e(t.date))return!1;if(this.fConfigs.limits){let e=this.helpCalendar.getDateFromFormat(this.fConfigs.limits.min).getTime(),n=this.helpCalendar.getDateFromFormat(this.fConfigs.limits.max).getTime(),i=this.helpCalendar.getDateFromFormat(t.date).getTime();if(in)return!1}if(this.fConfigs.isMultipleDateRange){let e=this.helpCalendar.getDateFromFormat(t.date.split(" ")[0]).getTime(),n=this.calendar.multipleDateRange.length,i=this.calendar.multipleDateRange[n-1],r="";if(i||(this.calendar.multipleDateRange.push({end:"",start:""}),n=this.calendar.multipleDateRange.length,i=this.calendar.multipleDateRange[n-1]),i.start&&(r=this.helpCalendar.getDateFromFormat(i.start)),""!==i.start&&""!==i.end?this.calendar.multipleDateRange.push({end:"",start:t.date}):""===i.start&&""===i.end?i.start=t.date:""===i.end&&e>r.getTime()?i.end=t.date:""!==i.start&&e<=r.getTime()&&(this.$nextTick(()=>{this.calendar.withTimePicker&&(this.$refs.timePicker.startDateActive=!0)}),i.end=i.start,i.start=t.date),""!==i.start&&""!==i.end){let e=864e5,n=this.helpCalendar.getDateFromFormat(i.start),o=this.helpCalendar.getDateFromFormat(i.end),a=Math.round(Math.abs((n.getTime()-o.getTime())/e)),s=this.helpCalendar.getDateFromFormat(t.date).getTime();this.$emit("selectedDaysCount",a),this.fConfigs.isModal&&this.fConfigs.isAutoCloseable&&(this.showCalendar=!1);let l=this.fConfigs.minSelDays;l&&s>=r.getTime()&&a=r.getTime()&&a>=u&&(r.setDate(r.getDate()+(u-1)),i.end=this.helpCalendar.formatDate(r)),u&&s=u&&(r.setDate(r.getDate()-(u-1)),i.start=this.helpCalendar.formatDate(r))}this.$emit("input",this.calendar)}else if(this.fConfigs.isDateRange){let e=this.helpCalendar.getDateFromFormat(t.date.split(" ")[0]).getTime(),n="";if(this.calendar.dateRange.start&&(n=this.helpCalendar.getDateFromFormat(this.calendar.dateRange.start)),""!==this.calendar.dateRange.start&&""!==this.calendar.dateRange.end?(this.calendar.dateRange.start=t.date,this.calendar.dateRange.end=""):""===this.calendar.dateRange.start&&""===this.calendar.dateRange.end?this.calendar.dateRange.start=t.date:""===this.calendar.dateRange.end&&e>n.getTime()?this.calendar.dateRange.end=t.date:""!==this.calendar.dateRange.start&&e<=n.getTime()&&(this.$nextTick(()=>{this.calendar.dateRange&&this.calendar.withTimePicker&&(this.$refs.timePicker.startDateActive=!0)}),this.calendar.dateRange.end=this.calendar.dateRange.start,this.calendar.dateRange.start=t.date),""!==this.calendar.dateRange.start&&""!==this.calendar.dateRange.end){let e=864e5,i=this.helpCalendar.getDateFromFormat(this.calendar.dateRange.start),r=this.helpCalendar.getDateFromFormat(this.calendar.dateRange.end),o=Math.round(Math.abs((i.getTime()-r.getTime())/e)),a=this.helpCalendar.getDateFromFormat(t.date).getTime();this.$emit("selectedDaysCount",o),this.fConfigs.isModal&&this.fConfigs.isAutoCloseable&&(this.showCalendar=!1);let s=this.fConfigs.minSelDays;s&&a>=n.getTime()&&o=n.getTime()&&o>=l&&(n.setDate(n.getDate()+(l-1)),this.calendar.dateRange.end=this.helpCalendar.formatDate(n)),l&&a=l&&(n.setDate(n.getDate()-(l-1)),this.calendar.dateRange.start=this.helpCalendar.formatDate(n))}this.$emit("input",this.calendar)}else if(this.fConfigs.isDatePicker)this.calendar.selectedDate=t.date,this.$emit("input",this.calendar),this.fConfigs.isModal&&this.fConfigs.isAutoCloseable&&(this.showCalendar=!1);else if(this.fConfigs.isMultipleDatePicker){if(this.calendar.hasOwnProperty("selectedDates")&&this.calendar.selectedDates.find(e=>e.date===t.date)){let e=this.calendar.selectedDates.findIndex(e=>e.date===t.date);this.calendar.selectedDates.splice(e,1)}else{let e=Object.assign({},this.defaultDateFormat);e.date=t.date,this.calendar.hasOwnProperty("selectedDates")||(this.calendar.selectedDates=[]),this.calendar.selectedDates.push(e)}this.$emit("input",this.calendar)}this.markChooseDays(),this.fConfigs.withTimePicker&&((this.fConfigs.isDateRange||this.fConfigs.isDatePicker)&&this.openTimePicker(),this.calendar.selectedDates.find(e=>e.date===t.date)&&this.fConfigs.isMultipleDatePicker&&this.openTimePicker()),this.$emit("choseDay",t)},markChooseDays(){let t=this.startDMY,e=this.endDMY;this.listCalendars.forEach(n=>{n.weeks.forEach(n=>{n.days.forEach(n=>{n.isMarked=!1,n.date=n.date.split(" ")[0],this.fConfigs.isDatePicker?this.calendar.selectedDate===n.date&&(n.isMarked=!0):this.fConfigs.isMultipleDatePicker?this.calendar.hasOwnProperty("selectedDates")&&this.calendar.selectedDates.find(t=>t.date===n.date)&&(n.isMarked=!0):(n.isMouseToLeft=!1,n.isMouseToRight=!1,t===n.date&&(n.isMouseToLeft=!!e,n.isMarked=!0),e===n.date&&(n.isMouseToRight=!!e,n.isMarked=!0),this.calendar.multipleDateRange&&(~this.calendar.multipleDateRange.map(t=>t.start.split(" ")[0]).indexOf(n.date)&&(n.isMouseToLeft=!!e,n.isMarked=!0),~this.calendar.multipleDateRange.map(t=>t.end.split(" ")[0]).indexOf(n.date)&&(n.isMouseToRight=!!e,n.isMarked=!0),this.calendar.multipleDateRange.forEach(t=>{t.start&&t.start===t.end&&(n.isMouseToLeft=!1,n.isMouseToRight=!1),t.start&&t.end&&this.helpCalendar.getDateFromFormat(n.date).getTime()>this.helpCalendar.getDateFromFormat(t.start)&&this.helpCalendar.getDateFromFormat(n.date)this.helpCalendar.getDateFromFormat(t)&&this.helpCalendar.getDateFromFormat(n.date)n)return!1}if(!(""!==this.calendar.dateRange.start&&""!==this.calendar.dateRange.end||""===this.calendar.dateRange.start&&""===this.calendar.dateRange.end))for(let e=0;es.getTime()||r===a&&as.getTime();let l=this.helpCalendar.getDateFromFormat(o.date).getDay()-1;-1===l&&(l=6);let u=this.fConfigs.dayNames[l];if(!this.fConfigs.disabledDayNames.includes(u)&&(r>s.getTime()&&ra)&&(this.listCalendars[e].weeks[i].days[n].isMarked=!0),this.calendar.dateRange.end||r!==a||(this.listCalendars[e].weeks[i].days[n].isHovered=!1),this.checkSelDates("min",this.calendar.dateRange.start,o.date,t)){let t,r;this.listCalendars[e].weeks[i].days[n].isMarked=!0,r=new Date(s.getTime()),t=new Date(s.getTime()),r.setDate(r.getDate()-this.fConfigs.minSelDays+1),t.setDate(t.getDate()+this.fConfigs.minSelDays-1),a>=r.getTime()&&this.helpCalendar.formatDate(r)===o.date?(this.listCalendars[e].weeks[i].days[n].isMarked=!1,this.listCalendars[e].weeks[i].days[n].isMouseToLeft=!0,this.listCalendars[e].weeks[i].days[n].isHovered=!0):a<=t.getTime()&&this.helpCalendar.formatDate(t)===o.date&&(this.listCalendars[e].weeks[i].days[n].isMarked=!1,this.listCalendars[e].weeks[i].days[n].isMouseToRight=!0,this.listCalendars[e].weeks[i].days[n].isHovered=!0)}if(this.checkSelDates("max",this.calendar.dateRange.start,o.date,t)){let t,r;this.listCalendars[e].weeks[i].days[n].isMarked=!1,this.listCalendars[e].weeks[i].days[n].isHovered=!1,this.listCalendars[e].weeks[i].days[n].isMouseToLeft=!1,this.listCalendars[e].weeks[i].days[n].isMouseToRight=!1,t=new Date(s.getTime()),r=new Date(s.getTime()),t.setDate(t.getDate()-this.fConfigs.maxSelDays+1),r.setDate(r.getDate()+this.fConfigs.maxSelDays-1),a<=t.getTime()&&this.helpCalendar.formatDate(t)===o.date&&(this.listCalendars[e].weeks[i].days[n].isHovered=!0,this.listCalendars[e].weeks[i].days[n].isMouseToLeft=!0),a>=r.getTime()&&this.helpCalendar.formatDate(r)===o.date&&(this.listCalendars[e].weeks[i].days[n].isHovered=!0,this.listCalendars[e].weeks[i].days[n].isMouseToRight=!0)}}}}}if(this.calendar.multipleDateRange){let e=this.calendar.multipleDateRange[this.calendar.multipleDateRange.length-1];if(!e)return;if(!(""!==e.start&&""!==e.end||""===e.start&&""===e.end))for(let n=0;nl.getTime()||o===s&&sl.getTime();let u=this.helpCalendar.getDateFromFormat(a.date).getDay()-1;-1===u&&(u=6);let c=this.fConfigs.dayNames[u];if(!this.fConfigs.disabledDayNames.includes(c)&&(o>l.getTime()&&os)&&(this.listCalendars[n].weeks[r].days[i].isMarked=!0),e.end||o!==s||(this.listCalendars[n].weeks[r].days[i].isHovered=!1),this.checkSelDates("min",e.start,a.date,t)){let t,e;this.listCalendars[n].weeks[r].days[i].isMarked=!0,e=new Date(l.getTime()),t=new Date(l.getTime()),e.setDate(e.getDate()-this.fConfigs.minSelDays+1),t.setDate(t.getDate()+this.fConfigs.minSelDays-1),s>=e.getTime()&&this.helpCalendar.formatDate(e)===a.date?(this.listCalendars[n].weeks[r].days[i].isMarked=!1,this.listCalendars[n].weeks[r].days[i].isMouseToLeft=!0,this.listCalendars[n].weeks[r].days[i].isHovered=!0):s<=t.getTime()&&this.helpCalendar.formatDate(t)===a.date&&(this.listCalendars[n].weeks[r].days[i].isMarked=!1,this.listCalendars[n].weeks[r].days[i].isMouseToRight=!0,this.listCalendars[n].weeks[r].days[i].isHovered=!0)}if(this.checkSelDates("max",e.start,a.date,t)){let t,e;this.listCalendars[n].weeks[r].days[i].isMarked=!1,this.listCalendars[n].weeks[r].days[i].isHovered=!1,this.listCalendars[n].weeks[r].days[i].isMouseToLeft=!1,this.listCalendars[n].weeks[r].days[i].isMouseToRight=!1,t=new Date(l.getTime()),e=new Date(l.getTime()),t.setDate(t.getDate()-this.fConfigs.maxSelDays+1),e.setDate(e.getDate()+this.fConfigs.maxSelDays-1),s<=t.getTime()&&this.helpCalendar.formatDate(t)===a.date&&(this.listCalendars[n].weeks[r].days[i].isHovered=!0,this.listCalendars[n].weeks[r].days[i].isMouseToLeft=!0),s>=e.getTime()&&this.helpCalendar.formatDate(e)===a.date&&(this.listCalendars[n].weeks[r].days[i].isHovered=!0,this.listCalendars[n].weeks[r].days[i].isMouseToRight=!0)}}}}}}},PreMonth(t=null){if(!this.allowPreDate)return!1;this.transitionPrefix="right",t=null!==t?t:0;let e=this.listCalendars[t];e.date=new Date(e.date.getFullYear(),e.date.getMonth()-1),e.key-=w(),this.updateCalendar(),this.fConfigs.isSeparately||(this.calendar.currentDate=e.date,this.initCalendar()),this.$emit("changedMonth",e.date)},NextMonth(t=null){if(!this.allowNextDate)return!1;this.transitionPrefix="left",t=null!==t?t:0;let e=this.listCalendars[t];e.date=new Date(e.date.getFullYear(),e.date.getMonth()+1),e.key+=w(),this.updateCalendar(),this.fConfigs.isSeparately||(this.calendar.currentDate=e.date,this.initCalendar()),this.$emit("changedMonth",e.date)},PreYear(t=null){if(!this.allowPreDate)return!1;let e=this.showYearPicker?this.fConfigs.changeYearStep:1;t=null!==t?t:0;let n=this.listCalendars[t];n.date=new Date(n.date.getFullYear()-e,n.date.getMonth()),this.updateCalendar(),this.fConfigs.isSeparately||(this.calendar.currentDate=n.date,this.initCalendar()),this.$emit("changedYear",n.date)},NextYear(t=null){if(!this.allowNextDate)return!1;let e=this.showYearPicker?this.fConfigs.changeYearStep:1;t=null!==t?t:0;let n=this.listCalendars[t];n.date=new Date(n.date.getFullYear()+e,n.date.getMonth()),this.updateCalendar(),this.fConfigs.isSeparately||(this.calendar.currentDate=n.date,this.initCalendar()),this.$emit("changedYear",n.date)},ChooseDate(t){let e=this.helpCalendar.getDateFromFormat(t);"today"===t&&(e=new Date),this.listCalendars[0].date=this.calendar.currentDate=e,this.updateCalendar(),this.initCalendar()},openMonthPicker(t){this.fConfigs.changeMonthFunction&&(this.showMonthPicker=t!==this.showMonthPicker&&t,this.showYearPicker=!1)},openYearPicker(t){this.fConfigs.changeYearFunction&&(this.showYearPicker=t!==this.showYearPicker&&t,this.showMonthPicker=!1)},openTimePicker(){this.showTimePicker=!0},pickMonth(t,e){if(this.showMonthPicker=!1,this.isSeparately){let n=this.listCalendars[e],i=n.date;n.date=new Date(i.getFullYear(),t+1,0),n.key+=w()}else this.listCalendars.forEach((e,n)=>{let i=e.date;e.date=new Date(i.getFullYear(),t+1+n,0),e.key+=w()});let n=this.listCalendars[e];this.$emit("changedMonth",n.date),this.updateCalendar()},pickYear(t,e){if(this.showYearPicker=!1,this.isSeparately){let n=this.listCalendars[e],i=n.date;n.date=new Date(t,i.getMonth()+1,0),n.key+=w()}else this.listCalendars.forEach(e=>{let n=e.date;e.date=new Date(t,n.getMonth()+1,0),e.key+=w()});this.updateCalendar()},getYearList(t,e){let n=[],i=t.getFullYear()-4+e;for(let t=0;t<12;t++){let e=i+t;n.push({year:e})}return n},addToSelectedDates(){if(this.helpCalendar.checkValidDate(this.calendar.selectedDatesItem)){let t=Object.assign({},this.defaultDateFormat);t.date=this.calendar.selectedDatesItem,this.calendar.selectedDates.push(t),this.calendar.selectedDatesItem="",this.markChooseDays()}},removeFromSelectedDates(t){this.calendar.selectedDates.splice(t,1),this.markChooseDays()},checkDateRangeEnd(t){return Array.isArray(this.fConfigs.markedDateRange)?-1!==this.fConfigs.markedDateRange.findIndex(e=>e.end===t):t===this.fConfigs.markedDateRange.end},checkSelDates(t,e,n,i){let r,o=this.helpCalendar.getDateFromFormat(e).getTime(),a=this.helpCalendar.getDateFromFormat(n).getTime(),s=this.helpCalendar.getDateFromFormat(i).getTime(),l=1e3*("min"===t?this.fConfigs.minSelDays:this.fConfigs.maxSelDays-2)*60*60*24,u=o+l,c=o-l;return s>o?r="min"===t?ao&&this.fConfigs.minSelDays:a>u&&a>o&&this.fConfigs.maxSelDays:sc&&a=n&&(this.allowNextDate=!1)}},getTransition_(){if(!this.fConfigs.transition)return"";let t="";return"left"===this.transitionPrefix?t="vfc-calendar-slide-left":"right"===this.transitionPrefix&&(t="vfc-calendar-slide-right"),t},checkHiddenElement(t){return!this.fConfigs.hiddenElements.includes(t)},onFocusIn(){this.fConfigs.isModal&&(this.showCalendar=!0)},onFocusOut(t){if(this.fConfigs.isModal&&(e=this.popoverElement,n=t.relatedTarget,!e||!n||e!==n&&!e.contains(n)))return this.showCalendar=this.showMonthPicker=this.showYearPicker=!1;var e,n},hideMonthYearPicker(t){this.$nextTick(()=>{if(this.showMonthPicker||this.showYearPicker){let e=this.showMonthPicker?this.showMonthPicker-1:this.showYearPicker-1;if(this.$refs.calendars.querySelectorAll(".vfc-content-MY-picker")[e].contains(t.target))return;return this.showMonthPicker=this.showYearPicker=!1}})},checkDateRangeStart(t){return Array.isArray(this.fConfigs.markedDateRange)?-1!==this.fConfigs.markedDateRange.findIndex(e=>e.start===t):t===this.fConfigs.markedDateRange.start},cleanRange(){if(!this.isMultipleDateRange)return this.calendar.dateRange.end="",void(this.calendar.dateRange.start="");this.calendar.multipleDateRange=[]}}},k=(n("d+iy"),Object(s.a)(x,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"popoverElement",staticClass:"vfc-popover-container",attrs:{tabindex:"0"}},[n("PickerInputs",{attrs:{fConfigs:t.fConfigs,singleSelectedDate:t.singleSelectedDate,calendar:t.calendar},scopedSlots:t._u([{key:"dateRangeInputs",fn:function(e){return[t._t("dateRangeInputs",null,{startDate:e.startDate,endDate:e.endDate,isTypeable:t.fConfigs.isTypeable})]}},{key:"datePickerInput",fn:function(e){return[t._t("datePickerInput",null,{selectedDate:e.selectedDate,isTypeable:t.fConfigs.isTypeable})]}}],null,!0)}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showCalendar,expression:"showCalendar"}],ref:"mainContainer",staticClass:"vfc-main-container",class:{"vfc-modal":t.fConfigs.isModal&&(t.fConfigs.isDatePicker||t.fConfigs.isDateRange||t.fConfigs.isMultipleDatePicker),"vfc-dark":t.fConfigs.isDark}},[t.showTimePicker?n("time-picker",{ref:"timePicker",attrs:{height:t.$refs.popoverElement.clientHeight}}):[n("div",{staticClass:"vfc-calendars-container"},[n("Arrows",{attrs:{isMultiple:!1,fConfigs:t.fConfigs,allowPreDate:t.allowPreDate,allowNextDate:t.allowNextDate},scopedSlots:t._u([{key:"navigationArrowLeft",fn:function(){return[t._t("navigationArrowLeft")]},proxy:!0},{key:"navigationArrowRight",fn:function(){return[t._t("navigationArrowRight")]},proxy:!0}],null,!0)}),t._v(" "),n("div",{ref:"calendars",staticClass:"vfc-calendars"},t._l(t.listCalendars,(function(e,i){return n("div",{key:e.key,staticClass:"vfc-calendar"},[n("month-year-picker",{directives:[{name:"show",rawName:"v-show",value:t.showMonthPicker===i+1||t.showYearPicker===i+1,expression:"\n showMonthPicker === key + 1 || showYearPicker === key + 1\n "}],ref:"monthContainer",refInFor:!0,class:"vfc-"+t.fConfigs.titlePosition,attrs:{changeYearStep:t.changeYearStep,"calendar-key":i}}),t._v(" "),n("div",{staticClass:"vfc-content"},[n("Arrows",{attrs:{isMultiple:!0,fConfigs:t.fConfigs,allowPreDate:t.allowPreDate,allowNextDate:t.allowNextDate,"calendar-key":i},scopedSlots:t._u([{key:"navigationArrowLeft",fn:function(){return[t._t("navigationArrowLeft")]},proxy:!0},{key:"navigationArrowRight",fn:function(){return[t._t("navigationArrowRight")]},proxy:!0}],null,!0)}),t._v(" "),n("transition",{attrs:{tag:"div",name:t.getTransition_(),appear:""}},[t.checkHiddenElement("month")?n("div",{staticClass:"vfc-top-date",class:"vfc-"+t.fConfigs.titlePosition},[n("span",{class:{"vfc-cursor-pointer vfc-underline":t.fConfigs.changeMonthFunction&&t.isNotSeparatelyAndFirst(i),"vfc-underline-active":t.showMonthPicker===i+1},on:{click:function(e){e.preventDefault(),t.isNotSeparatelyAndFirst(i)&&t.openMonthPicker(i+1)}}},[t._v("\n "+t._s(e.month))]),t._v(" "),n("span",{class:{"vfc-cursor-pointer vfc-underline":t.fConfigs.changeYearFunction&&t.isNotSeparatelyAndFirst(i),"vfc-underline-active":t.showYearPicker===i+1},on:{click:function(e){e.preventDefault(),t.isNotSeparatelyAndFirst(i)&&t.openYearPicker(i+1)}}},[t._v("\n "+t._s(e.year)+"\n ")])]):t._e()]),t._v(" "),n("transition",{attrs:{tag:"div",name:t.getTransition_(),appear:""}},[n("div",{staticClass:"vfc-dayNames"},[t.fConfigs.showWeekNumbers?n("span"):t._e(),t._v(" "),t._l(t.fConfigs.dayNames,(function(e,r){return n("span",{key:i+r+1,staticClass:"vfc-day"},[t.checkHiddenElement("dayNames")?[t._v("\n "+t._s(e)+"\n ")]:t._e()],2)}))],2)]),t._v(" "),n("transition-group",{attrs:{tag:"div",name:t.getTransition_(),appear:""}},[t._l(e.weeks,(function(e,r){return n("div",{key:i+r+1,staticClass:"vfc-week"},[t.showWeekNumbers?n("WeekNumbers",{attrs:{number:e.number,borderColor:t.borderColor}}):t._e(),t._v(" "),t._l(e.days,(function(o,a){return n("Day",{key:i+r+a+1,ref:"day",refInFor:!0,attrs:{isMultipleDateRange:t.isMultipleDateRange,day:o,fConfigs:t.fConfigs,calendar:t.calendar,helpCalendar:t.helpCalendar,week:e,day_key:a},on:{dayMouseOver:t.dayMouseOver},scopedSlots:t._u([{key:"default",fn:function(e){return[t._t("default",null,{week:e.week,day:e.day})]}}],null,!0)})}))],2)})),t._v(" "),e.weeks.length<6&&!t.fConfigs.isLayoutExpandable?t._l(6-e.weeks.length,(function(e){return n("div",{key:i+e+"moreWeek",staticStyle:{height:"32.6px"}},[t._v("\n  \n ")])})):t._e()],2)],1)],1)})),0),t._v(" "),t.canClearRange||t.$slots.footer?n("Footer",{scopedSlots:t._u([{key:"footer",fn:function(){return[n("div",{on:{click:t.cleanRange}},[t._t("cleaner",[t.canClearRange&&t.fConfigs.isDateRange?n("div",{staticClass:"rangeCleaner"},[n("span",{class:[t.rangeIsSelected?"active":"disabled"],on:{click:t.cleanRange}},[t._v("Clear Range"+t._s(t.isMultipleDateRange&&"s"))])]):t._e()])],2),t._v(" "),t._t("footer")]},proxy:!0}],null,!0)}):t._e()],1)]],2)],1)}),[],!1,null,null,null).exports)},R7ON:function(t){t.exports=JSON.parse('{"allowed-to-create":"Możesz stworzyć {teams} drużyne","what-kind-of-team":"Jaką drużyne chciałbyś stworzyć?","team-type":"Typ drużyny","team-name":"Nazwa drużyny","my-awesome-team-placeholder":"Moja Super drużyna","unique-team-id":"Unikalny identyfikator drużyny","id-to-join-team":"Każdy, kto ma ten identyfikator, będzie mógł dołączyć do Twojego drużyny.","create-team":"Stwórz drużyne","created":"Gratulacje! Twoja drużyna została utworzona.","fail":"Wystąpił błąd podczas tworzenia Twojego drużyny","max-created":"Nie możesz tworzyć więcej drużyn"}')},RAwQ:function(t,e,n){!function(t){"use strict";function e(t,e,n,i){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 e?r[n][0]:r[n][1]}function n(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return n(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return n(t)}return n(t/=1e3)}t.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:function(t){return n(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return n(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},RBMv:function(t,e,n){var i=n("F90D");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},RRYh:function(t){t.exports=JSON.parse('{"success-title":"Thanks for helping!","success-subtitle":"Remember to verify your email to enable login.","error-title":"There was a problem.","error-subtitle":"Your card was not charged, but you can still verify your email and login."}')},"Rn+g":function(t,e,n){"use strict";var i=n("LYNF");t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},RnhZ:function(t,e,n){var i={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fil":"1ppg","./fil.js":"1ppg","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-deva":"qvJo","./gom-deva.js":"qvJo","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tk":"Wv91","./tk.js":"Wv91","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id="RnhZ"},"Rv3/":function(t,e,n){"use strict";var i=n("TEMn");n.n(i).a},S6ln:function(t,e,n){!function(t){"use strict";function e(t,e,n){var i=t+" ";switch(n){case"ss":return i+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return i+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return i+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return i+=1===t?"dan":"dana";case"MM":return i+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return i+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.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:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do 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:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},SFi8:function(t){t.exports=JSON.parse('{"click-to-upload":"Click to upload or drop your photos","thank-you":"Thank you!","need-tag-litter":"Next, you need to tag the litter","tag-litter":"Tag Litter"}')},SFxW:function(t,e,n){!function(t){"use strict";var e={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ı"};t.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(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,n){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},STDh:function(t,e,n){"use strict";var i=n("JWC4");n.n(i).a},SXG0:function(t,e,n){var i;"undefined"!=typeof self&&self,t.exports=(i=n("XuX8"),function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"091b":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),t.exports=e},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}(i),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;on.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r-1)e[t]=n[t];else{var i=Object.getOwnPropertyDescriptor(n,t);void 0!==i.value?"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return(e={})[t]=i.value,e}}):(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var i in t.$options.props)t.hasOwnProperty(i)||n.push(i);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var i=new e;e.prototype._init=n;var r={};return Object.keys(i).forEach((function(t){void 0!==i[t]&&(r[t]=i[t])})),r}(this,t)}});var a=t.__decorators__;a&&(a.forEach((function(t){return t(e)})),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),u=s instanceof i?s.constructor:i,d=u.extend(e);return c(d,t,u),r&&o(d,t),d}function c(t,e,n){Object.getOwnPropertyNames(e).forEach((function(i){if("prototype"!==i){var r=Object.getOwnPropertyDescriptor(t,i);if(!r||r.configurable){var o=Object.getOwnPropertyDescriptor(e,i);if(!s){if("cid"===i)return;var a=Object.getOwnPropertyDescriptor(n,i);if(!function(t){var e=typeof t;return null==t||"object"!==e&&"function"!==e}(o.value)&&a&&a.value===o.value)return}Object.defineProperty(t,i,o)}}}))}function d(t){return"function"==typeof t?u(t):function(e){return u(e,t)}}d.registerHooks=function(t){l.push.apply(l,t)},e.default=d,e.createDecorator=function(t){return function(e,n,i){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof i&&(i=void 0),r.__decorators__.push((function(e){return t(e,n,i)}))}},e.mixins=function(){for(var t=[],e=0;e([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var c=0;c=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}var u=n("8bbf"),c=n.n(u),d=n("65d9"),h=n.n(d);function f(t,e){return void 0===e&&(e={}),Object(d.createDecorator)((function(n,i){(n.props||(n.props={}))[i]=e,n.model={prop:i,event:t||i}}))}function p(t){return void 0===t&&(t={}),Object(d.createDecorator)((function(e,n){(e.props||(e.props={}))[n]=t}))}function m(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,r=e.immediate,o=void 0!==r&&r;return Object(d.createDecorator)((function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var r=e.watch;"object"!=typeof r[t]||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:o})}))}function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n-1},required:!0})],t.prototype,"tooltipPlacement",void 0),l([p({type:[String,Function]})],t.prototype,"tooltipFormatter",void 0),l([p({type:Boolean,default:!1})],t.prototype,"focus",void 0),l([p({default:!1})],t.prototype,"disabled",void 0),t=l([h.a],t)}();function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);nthis.total&&(t=this.total),this.data?this.data[t]:new z(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){var n=(t=this.getValidPos(t,e).pos)-this.dotsPos[e];if(n){var i=new Array(this.dotsPos.length);this.fixed?i=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?i=this.getLimitRangeChangePosArr(t,n,e):i[e]=n,this.setDotsPos(this.dotsPos.map((function(t,e){return t+(i[e]||0)})))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach((function(i,r){if(r!==e){var o=n.getValidPos(i+t,r),a=o.pos;o.inRange||(t=Math.min(Math.abs(a-i),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(e){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var i=this,r=[{index:n,changePos:e}],o=e;return[this.minRange,this.maxRange].forEach((function(a,s){if(!a)return!1;for(var l,u=0===s,c=e>0,d=function(t,e){var n=Math.abs(t-e);return u?ni.maxRangeDir},h=n+(l=u?c?1:-1:c?-1:1),f=i.dotsPos[h],p=t;i.isPos(f)&&d(f,p);){var m=i.getValidPos(f+o,h).pos;r.push({index:h,changePos:m-f}),h+=l,p=m,f=i.dotsPos[h]}})),this.dotsPos.map((function(t,e){var n=r.filter((function(t){return t.index===e}));return n.length?n[0].changePos:0}))}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],i=!0;return tn[1]&&(t=n[1],i=!1),{pos:t,inRange:i}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)this.max)return this.emitError(j.MAX),0;if("number"!=typeof t||t!=t)return this.emitError(j.VALUE),0;t=new z(t).minus(this.min).divide(this.interval).toNumber()}var e=new z(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(e){var n=F(e,2),i=n[0],r=n[1];return t>=i&&t<=r}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new z(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new z(t).divide(new z(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,W[t])}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var i=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return i&&void 0!==i[e]?this.parseValue(i[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var i=t.parseValue(e);return function(t){for(var e=1;e1)return[[Math.min.apply(Math,B(this.dotsPos)),Math.max.apply(Math,B(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t;return(t=this.data?this.data.length-1:new z(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(t)!=0?(this.emitError(j.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach((function(i,r){n.push([Math.max(t.minRange?t.minRangeDir*r:0,t.enableCross?0:e[r-1]||0,t.getDotRange(r,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-r):100,t.enableCross?100:e[r+1]||100,t.getDotRange(r,"max",100))])})),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(e){return t.getIndexByValue(e)}))}}]),t}();function q(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&"object"===it(t[0])}},{key:"onValueChanged",value:function(){this.control&&!this.states.has(ct.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new z(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new G({value:this.value,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(e){t.$watch(e,(function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every((function(e,n){return e===t.control.data[n]})))return!1;switch(e){case"data":case"dataLabel":case"dataValue":t.control.data=t.sliderData;break;case"mark":t.control.marks=t.sliderMarks;break;default:t.control[e]=n}["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:tt(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some((function(t,n){return t!==e[n]}))}},{key:"emitError",value:function(t,e){this.silent,this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),n=this.control.getRecentDot(e);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(ct.Drag),this.states.add(ct.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(ct.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:tt(n),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;if(n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n1&&void 0!==arguments[1]?arguments[1]:0;t.disabled||(this.states.add(ct.Focus),this.focusDotIndex=e)}},{key:"blur",value:function(){this.states.delete(ct.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?tt(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map((function(t){return e.control.getValueByIndex(t)})):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(ct.Focus),setTimeout((function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(ct.Focus))return!1;var n=this.included&&this.marks,i=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case P.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case P.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case P.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case P.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case P.END:return function(){return e.max};case P.HOME:return function(){return e.min};case P.PAGE_UP:return function(t){return t+10};case P.PAGE_DOWN:return function(t){return t-10};default:return null}}(t,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(i){t.preventDefault();var r=-1,o=0;n?(this.control.markList.some((function(t,n){return t.value===e.control.dotsValue[e.focusDotIndex]&&(r=i(n),!0)})),r<0?r=0:r>this.control.markList.length-1&&(r=this.control.markList.length-1),o=this.control.markList[r].pos):(r=i(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),o=this.control.parseValue(this.control.getValueByIndex(r))),this.isCrossDot(o),this.control.setDotPos(o,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return I(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,i){var r=this.$createElement,o=this.$scopedSlots[t];return o?i?o(e):r("template",{slot:t},[o(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",s()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(n,i){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(i),style:n.style}),!0)})),this.sliderMarks?e("div",{class:"vue-slider-marks"},[this.control.markList.map((function(n,i){var r;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(i),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(r={},Q(r,t.isHorizontal?"height":"width","100%"),Q(r,t.isHorizontal?"width":"height",t.tailSize),Q(r,t.mainDirection,"".concat(n.pos,"%")),r),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)}))]):null,this.dots.map((function(n,i){var r;return e("vue-slider-dot",{ref:"dot-".concat(i),key:"dot-".concat(i),attrs:K({value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.sliderTooltipFormatter)?t.sliderTooltipFormatter[i]:t.sliderTooltipFormatter,"tooltip-placement":t.tooltipDirections[i],role:"slider","aria-valuenow":n.value,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.isHorizontal?"horizontal":"vertical",tabindex:"0"},t.dotAttrs),style:[t.dotBaseStyle,(r={},Q(r,t.mainDirection,"".concat(n.pos,"%")),Q(r,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),r)],on:{"drag-start":function(){return t.dragStart(i)}},nativeOn:{focus:function(){return t.focus(n,i)},blur:function(){return t.blur()}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return A((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=X(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),e=t[0],n=t[1],i=this.width?A(this.width):this.isHorizontal?"auto":A(4),r=this.height?A(this.height):this.isHorizontal?A(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(e/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(e/2,"px"),width:i,height:r}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map((function(e,n){var i,r=X(e,3),o=r[0],a=r[1],s=r[2];if(o>a){var l=[a,o];o=l[0],a=l[1]}var u=t.isHorizontal?"width":"height";return{start:o,end:a,index:n,style:K(K((i={},Q(i,t.isHorizontal?"height":"width","100%"),Q(i,t.isHorizontal?"top":"left",0),Q(i,t.mainDirection,"".concat(o,"%")),Q(i,u,"".concat(a-o,"%")),Q(i,"transitionProperty","".concat(u,",").concat(t.mainDirection)),Q(i,"transitionDuration","".concat(t.animateTime,"s")),i),t.processStyle),s)}}))}},{key:"dotBaseStyle",get:function(){var t,e=X(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=e[0],i=e[1];return t=this.isHorizontal?Q({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):Q({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),K({width:"".concat(n,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map((function(){return t}))}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map((function(e,n){return K({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has(ct.Focus)&&t.focusDotIndex===n,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(ct.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"sliderData",get:function(){var t=this;return this.isObjectArrayData(this.data)?this.data.map((function(e){return e[t.dataValue]})):this.isObjectData(this.data)?Object.keys(this.data):this.data}},{key:"sliderMarks",get:function(){var t=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(e){var n={label:e};return t.data.some((function(i){return i[t.dataValue]===e&&(n.label=i[t.dataLabel],!0)})),n}:this.isObjectData(this.data)?this.data:void 0}},{key:"sliderTooltipFormatter",get:function(){var t=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(e){var n=""+e;return t.data.some((function(i){return i[t.dataValue]===e&&(n=i[t.dataLabel],!0)})),n};if(this.isObjectData(this.data)){var e=this.data;return function(t){return e[t]}}}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some((function(e,n){return e!==t[n]})):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),n}(c.a);return l([f("change",{default:0})],t.prototype,"value",void 0),l([p({type:Boolean,default:!1})],t.prototype,"silent",void 0),l([p({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],t.prototype,"direction",void 0),l([p({type:[Number,String]})],t.prototype,"width",void 0),l([p({type:[Number,String]})],t.prototype,"height",void 0),l([p({default:14})],t.prototype,"dotSize",void 0),l([p({default:!1})],t.prototype,"contained",void 0),l([p({type:Number,default:0})],t.prototype,"min",void 0),l([p({type:Number,default:100})],t.prototype,"max",void 0),l([p({type:Number,default:1})],t.prototype,"interval",void 0),l([p({type:Boolean,default:!1})],t.prototype,"disabled",void 0),l([p({type:Boolean,default:!0})],t.prototype,"clickable",void 0),l([p({type:Boolean,default:!1})],t.prototype,"dragOnClick",void 0),l([p({type:Number,default:.5})],t.prototype,"duration",void 0),l([p({type:[Object,Array]})],t.prototype,"data",void 0),l([p({type:String,default:"value"})],t.prototype,"dataValue",void 0),l([p({type:String,default:"label"})],t.prototype,"dataLabel",void 0),l([p({type:Boolean,default:!1})],t.prototype,"lazy",void 0),l([p({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],t.prototype,"tooltip",void 0),l([p({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}})],t.prototype,"tooltipPlacement",void 0),l([p({type:[String,Array,Function]})],t.prototype,"tooltipFormatter",void 0),l([p({type:Boolean,default:!0})],t.prototype,"useKeyboard",void 0),l([p(Function)],t.prototype,"keydownHook",void 0),l([p({type:Boolean,default:!0})],t.prototype,"enableCross",void 0),l([p({type:Boolean,default:!1})],t.prototype,"fixed",void 0),l([p({type:Boolean,default:!0})],t.prototype,"order",void 0),l([p(Number)],t.prototype,"minRange",void 0),l([p(Number)],t.prototype,"maxRange",void 0),l([p({type:[Boolean,Object,Array,Function],default:!1})],t.prototype,"marks",void 0),l([p({type:[Boolean,Function],default:!0})],t.prototype,"process",void 0),l([p(Boolean)],t.prototype,"included",void 0),l([p(Boolean)],t.prototype,"adsorb",void 0),l([p(Boolean)],t.prototype,"hideLabel",void 0),l([p()],t.prototype,"dotOptions",void 0),l([p()],t.prototype,"dotAttrs",void 0),l([p()],t.prototype,"railStyle",void 0),l([p()],t.prototype,"processStyle",void 0),l([p()],t.prototype,"dotStyle",void 0),l([p()],t.prototype,"tooltipStyle",void 0),l([p()],t.prototype,"stepStyle",void 0),l([p()],t.prototype,"stepActiveStyle",void 0),l([p()],t.prototype,"labelStyle",void 0),l([p()],t.prototype,"labelActiveStyle",void 0),l([m("value")],t.prototype,"onValueChanged",null),t=l([h()({data:function(){return{control:null}},components:{VueSliderDot:k,VueSliderMark:D}})],t)}();dt.VueSliderMark=D,dt.VueSliderDot=k;var ht=dt;e.default=ht}}).default)},SatO:function(t,e,n){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1200?"上午":1200===i?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},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 年"}})}(n("wd/R"))},"Sl6+":function(t){t.exports=JSON.parse('{"cancel":"Anuluj","submit":"Zatwierdź","download":"Pobierz","delete":"Delete","delete-image":"Usuń zdjęcie?","confirm-delete":"Potwierdz usunięcie","loading":"Ładowanie...","created_at":"Przesłane","created":"Stworzone","created-by":"Stworzone przez","datetime":"Zrobione","day-names":["Pon","Wt","Śr","Czw","Pt","Sob","Niedz"],"month-names":["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Pażdziernik","Listopad","Grudzień"],"short-month-names":["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrze","Paż","Lis","Gru"],"next":"Następne","previous":"Poprzednie","next-page":"Następna strona","add-tags":"Dodaj tagi","add-many-tags":"dodaj wiele tagów","select-all":"Zaznacz wszystkie","de-select-all":"Odznacz wszystkie","choose-dates":"Wybierz daty","not-verified":"Niezweryfikowane","verified":"Zweryfikowane","search-by-id":"Szukaj według ID","active":"Aktywne","inactive":"Nieaktywne","your-email":"you@email.com"}')},"Sn/w":function(t){t.exports=JSON.parse('{"show-flag":"Toon Landsvlag","top-10":"Top 10 Wereldkaart OpenLitterMap Leiders!","top-10-challenge":"Als jij de top 10 kan halen, dan kan je je land vertegenwoordigen!","action-select":"Tik of scroll of van de lijst te selecteren","select-country":"Selecteer je land","save-flag":"Sla de vlag op"}')},SntB:function(t,e,n){"use strict";var i=n("xTJ+");t.exports=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function u(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(t[r],e[r])}i.forEach(r,(function(t){i.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),i.forEach(o,u),i.forEach(a,(function(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(void 0,e[r])})),i.forEach(s,(function(i){i in e?n[i]=l(t[i],e[i]):i in t&&(n[i]=l(void 0,t[i]))}));var c=r.concat(o).concat(a).concat(s),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return i.forEach(d,u),n}},T7To:function(t){t.exports=JSON.parse('{"admin":"Admin","admin-verify-photos":"ADMIN - Verify Photos","admin-horizon":"ADMIN - Horizon","admin-verify-boxes":"ADMIN - Verify Boxes","about":"About","global-map":"Global Map","world-cup":"World Cup","upload":"Upload","more":"More","tag-litter":"Tag Litter","profile":"Profile","settings":"Settings","bounding-boxes":"Bounding Boxes","logout":"Logout","login":"Login","signup":"Signup","teams":"Teams"}')},TEMn:function(t,e,n){var i=n("D+42");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},TFCV:function(t){t.exports=JSON.parse('{"title":"Mis equipos","currently-joined-team":"Actualmente estás en el equipo","currently-not-joined-team":"Actualmente no estás en ningún equipo","no-joined-team":"Aún no te has unido a un equipo","leader-of-team":"Tu lideras este equipo","join-team":"Por favor únete a un equipo","change-active-team":"Cambiar equipo activo","download-team-data":"Descargar datos del equipo","hide-from-leaderboards":"Ocultarme de la clasificación","show-on-leaderboards":"Mostrarme en la clasificación","position-header":"Posición","name-header":"Nombre","username-header":"Nombre de usuario","status-header":"Estado","photos-header":"Fotos","litter-header":"Basura","last-activity-header":"Última actividad"}')},"TGU/":function(t){t.exports=JSON.parse('{"success-title":"Dzięki za pomoc!","success-subtitle":"Pamiętaj, aby zweryfikować swój adres e-mail, aby umożliwić logowanie.","error-title":"Nastąpił problem","error-subtitle":"Twoja karta nie została obciążona, ale nadal możesz zweryfikować swój adres e-mail i login."}')},TH7d:function(t){t.exports=JSON.parse('{"login-btn":"Login","signup-text":"Sign up","forgot-password":"Forgot Password?"}')},TSte:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".fa-users {\n font-size: 1.75rem !important;\n}\n.team-flex {\n display: flex;\n margin-bottom: 1em;\n cursor: pointer;\n}\n.teams-left-col {\n background-color: #232d3f;\n min-height: calc(100vh - 70px);\n padding-left: 2em;\n color: #d3d8e0;\n}\n.teams-icon {\n margin: auto 1em auto 0;\n font-size: 2em;\n}\n.teams-title {\n font-size: 1.75rem;\n font-family: sans-serif;\n margin-top: 1em;\n margin-bottom: 1em;\n}\n@media (max-width: 575.98px) {\n.columns {\n margin-right: 0;\n}\n.teams-left-col {\n background-color: #232d3f;\n height: auto;\n min-height: auto;\n padding-left: 2em;\n color: #d3d8e0;\n}\n.mobile-teams-padding {\n padding-left: 1.5em;\n padding-bottom: 5em;\n}\n}",""])},TW6y:function(t){t.exports=JSON.parse('{"ready-to-join":"Klaar om mee te doen aan een geospatiale revolutie?","join-subtitle":"Als je ons werk leuk vindt, dan zou OpenLitterMap je hulp goed kunnen gebruiken.","free-plan":"GRATIS","free-plan-feature1":"Upload 1000 foto\'s per dag.","free-plan-feature2":"Speel Badges + Beloning vrij.","free-plan-feature3":"Verdien Littercoin.","free-plan-feature4":"Ga de strijd aan in verschillende scoreborden..","free-plan-join":"Ik doe mee","startup-plan":"OPSTART","startup-plan-donation":"€5 per maand","startup-plan-feature1":"Steun de ontwikkeling van OpenLitterMap.","startup-plan-feature2":"Help ons de kosten te dekken.","startup-plan-feature3":"Ga lekker zitten en geniet van de updates.","startup-plan-join":"Ik steun!","basic-plan":"BASIS","basic-plan-donation":"€9.99 per maand","basic-plan-feature1":"Steun de ontwikkeling van OpenLitterMap.","basic-plan-feature2":"Help ons de kosten te dekken.","basic-plan-feature3":"Ga lekker zitten en geniet van de updates.","basic-plan-join":"Ik steun!","advanced-plan":"GEVORDERD","advanced-plan-donation":"€20 per maand","advanced-plan-feature1":"Steun de ontwikkeling van OpenLitterMap.","advanced-plan-feature2":"Help ons de kosten te dekken.","advanced-plan-feature3":"Ga lekker zitten en geniet van de updates.","advanced-plan-join":"Ik steun!","pro-plan":"PRO","pro-plan-donation":"€30 per maand","pro-plan-feature1":"Steun de ontwikkeling van OpenLitterMap.","pro-plan-feature2":"Help ons de kosten te dekken.","pro-plan-feature3":"Ga lekker zitten en geniet van de updates.","pro-plan-join":"Ik meen het serieus!"}')},Td1u:function(t){t.exports=JSON.parse('{"title":"Mijn Teams","currently-joined-team":"Je bent momenteel aangesloten bij team","currently-not-joined-team":"Je bent momenteel niet aangesloten bij een team","no-joined-team":"Je hebt je nog niet aangemeld bij een team","leader-of-team":"Jij bent de leider van dit team","join-team":"Sluit je svp aan bij een team","change-active-team":"Maak een ander team het actieve team","download-team-data":"Download Team Data","hide-from-leaderboards":"Niet tonen op de scoreborden","show-on-leaderboards":"Wel tonen op de scoreborden","position-header":"Positie","name-header":"Naam","username-header":"Gebruikersnaam","status-header":"Status","photos-header":"Foto\'s","litter-header":"Afval","last-activity-header":"Laatste Activiteit"}')},Tith:function(t,e,n){"use strict";var i=n("4R65"),r=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},o={name:"LMarker",mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{pane:{type:String,default:"markerPane"},draggable:{type:Boolean,custom:!0,default:!1},latLng:{type:[Object,Array],custom:!0,default:null},icon:{type:[Object],custom:!1,default:function(){return new i.Icon.Default}},zIndexOffset:{type:Number,custom:!1,default:null}},data:function(){return{ready:!1}},mounted:function(){var t,e,n,o=this,a=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=r(n);t=r(t);var o=e.$options.props;for(var a in t){var s=o[a]?o[a].default:Symbol("unique");i[a]&&s!==t[a]?i[a]=t[a]:i[a]||(i[a]=t[a])}return i}(Object.assign({},this.layerOptions,{icon:this.icon,zIndexOffset:this.zIndexOffset,draggable:this.draggable}),this);this.mapObject=Object(i.marker)(this.latLng,a),i.DomEvent.on(this.mapObject,this.$listeners),this.mapObject.on("move",(t=this.latLngSync,e=100,function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];var o=this;n&&clearTimeout(n),n=setTimeout((function(){t.apply(o,i),n=null}),e)})),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.ready=!0,this.$nextTick((function(){o.$emit("ready",o.mapObject)}))},methods:{setDraggable:function(t,e){this.mapObject.dragging&&(t?this.mapObject.dragging.enable():this.mapObject.dragging.disable())},setLatLng:function(t){if(null!=t&&this.mapObject){var e=this.mapObject.getLatLng(),n=Object(i.latLng)(t);n.lat===e.lat&&n.lng===e.lng||this.mapObject.setLatLng(n)}},latLngSync:function(t){this.$emit("update:latLng",t.latlng),this.$emit("update:lat-lng",t.latlng)}},render:function(t){return this.ready&&this.$slots.default?t("div",{style:{display:"none"}},this.$slots.default):null}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var a=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({},void 0,o,void 0,void 0,void 0,!1,void 0,void 0,void 0);e.a=a},Tsbz:function(t){t.exports=JSON.parse('{"do-you-pickup":"Heb je het afval opgeruimd of ligt het er nog?","save-def-settings":"Je kan hier je standaard instelling opslaan.","change-value-of-litter":"Je kan ook het aantal van het zwerfafval wijzigen als je ze aan het labelen bent.","status":"Huidige Status","toggle-presence":"Wijzig Aanwezigheid","pickup?":"Opgeruimd?"}')},"TzP/":function(t,e,n){var i=n("WMuU");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},UDhR:function(t,e,n){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"siang":t<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:0,doy:6}})}(n("wd/R"))},UGwn:function(t,e,n){var i=n("AsT3");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},URHZ:function(t,e,n){"use strict";(function(t){const n={selectionUp:[38],selectionDown:[40],select:[13],hideList:[27],showList:[40],autocomplete:[32,13]},i={input:String,select:Object};function r(t,e){return o(t,e.keyCode)}function o(t,e){if(t.length<=0)return!1;const n=t=>t.some(t=>t===e);return Array.isArray(t[0])?t.some(t=>n(t)):n(t)}function a(){}function s(t,e){var n=t();return n&&n.then?n.then(e):e(n)}function l(t){return function(){for(var e=[],n=0;n({})},controls:{type:Object,default:()=>n},minLength:{type:Number,default:1},maxSuggestions:{type:Number,default:10},displayAttribute:{type:String,default:"title"},valueAttribute:{type:String,default:"id"},list:{type:[Function,Array],default:()=>[]},removeList:{type:Boolean,default:!1},destyled:{type:Boolean,default:!1},filterByQuery:{type:Boolean,default:!1},filter:{type:Function,default(t,e){return!e||~this.displayProperty(t).toLowerCase().indexOf(e.toLowerCase())}},debounce:{type:Number,default:0},nullableSelect:{type:Boolean,default:!1},value:{},mode:{type:String,default:"input",validator:t=>!!~Object.keys(i).indexOf(t.toLowerCase())}},watch:{mode:{handler(t,e){this.constructor.options.model.event=t,this.$parent&&this.$parent.$forceUpdate(),this.$nextTick(()=>{"input"===t?this.$emit("input",this.text):this.$emit("select",this.selected)})},immediate:!0},value:{handler(t){"string"!=typeof t&&(t=this.displayProperty(t)),this.updateTextOutside(t)},immediate:!0}},data(){return{selected:null,hovered:null,suggestions:[],listShown:!1,inputElement:null,canSend:!0,timeoutInstance:null,text:this.value,isPlainSuggestion:!1,isClicking:!1,isInFocus:!1,isFalseFocus:!1,isTabbed:!1,controlScheme:{},listId:this._uid+"-suggestions"}},computed:{listIsRequest(){return"function"==typeof this.list},inputIsComponent(){return this.$slots.default&&this.$slots.default.length>0&&!!this.$slots.default[0].componentInstance},input(){return this.inputIsComponent?this.$slots.default[0].componentInstance:this.inputElement},on(){return this.inputIsComponent?"$on":"addEventListener"},off(){return this.inputIsComponent?"$off":"removeEventListener"},hoveredIndex(){for(let t=0;tthis.$scopedSlots[t]);if(t.every(t=>!!t))return t.every(this.isScopedSlotEmpty.bind(this));const e=t.find(t=>!!t);return this.isScopedSlotEmpty.call(this,e)},getPropertyByAttribute(t,e){return this.isPlainSuggestion?t:void 0!==typeof t?function(t,e){return e.split(".").reduce((t,e)=>t===Object(t)?t[e]:t,t)}(t,e):t},displayProperty(e){if(this.isPlainSuggestion)return e;let n=this.getPropertyByAttribute(e,this.displayAttribute);return void 0===n&&(n=JSON.stringify(e),t&&"production".indexOf("dev")),String(n||"")},valueProperty(t){if(this.isPlainSuggestion)return t;const e=this.getPropertyByAttribute(t,this.valueAttribute);return e},autocompleteText(t){this.setText(this.displayProperty(t))},setText(t){this.$nextTick(()=>{this.inputElement.value=t,this.text=t,this.$emit("input",t)})},select(t){(this.selected!==t||this.nullableSelect&&!t)&&(this.selected=t,this.$emit("select",t),t&&this.autocompleteText(t)),this.hover(null)},hover(t,e){const n=t?this.getId(t,this.hoveredIndex):"";this.inputElement.setAttribute("aria-activedescendant",n),t&&t!==this.hovered&&this.$emit("hover",t,e),this.hovered=t},hideList(){this.listShown&&(this.listShown=!1,this.hover(null),this.$emit("hide-list"))},showList(){this.listShown||this.textLength>=this.minLength&&(this.suggestions.length>0||!this.miscSlotsAreEmpty())&&(this.listShown=!0,this.$emit("show-list"))},showSuggestions:l((function(){const t=this;return s((function(){if(0===t.suggestions.length&&t.minLength<=t.textLength)return t.showList(),function(t,e){if(!e)return t&&t.then?t.then(a):Promise.resolve()}(t.research())}),(function(){t.showList()}))})),onShowList(t){r(this.controlScheme.showList,t)&&this.showSuggestions()},moveSelection(t){if(this.listShown&&this.suggestions.length&&r([this.controlScheme.selectionUp,this.controlScheme.selectionDown],t)){t.preventDefault();const e=r(this.controlScheme.selectionDown,t),n=2*e-1,i=e?0:this.suggestions.length-1,o=e?this.hoveredIndex0;let a=null;a=this.hovered?o?this.suggestions[this.hoveredIndex+n]:this.suggestions[i]:this.selected||this.suggestions[i],this.hover(a)}},onKeyDown(t){const e=this.controlScheme.select,n=this.controlScheme.hideList;"Enter"===t.key&&this.listShown&&o([e,n],13)&&t.preventDefault(),"Tab"===t.key&&this.hovered&&this.select(this.hovered),this.onShowList(t),this.moveSelection(t),this.onAutocomplete(t)},onListKeyUp(t){const e=this.controlScheme.select,n=this.controlScheme.hideList;this.listShown&&r([e,n],t)&&(t.preventDefault(),r(e,t)&&this.select(this.hovered),this.hideList())},onAutocomplete(t){r(this.controlScheme.autocomplete,t)&&(t.ctrlKey||t.shiftKey)&&this.suggestions.length>0&&this.suggestions[0]&&this.listShown&&(t.preventDefault(),this.hover(this.suggestions[0]),this.autocompleteText(this.suggestions[0]))},suggestionClick(t,e){this.$emit("suggestion-click",t,e),this.select(t),this.hideList(),this.isClicking=!1},onBlur(t){this.isInFocus?(this.isClicking=this.hovered&&!this.isTabbed,this.isClicking?t&&t.isTrusted&&!this.isTabbed&&(this.isFalseFocus=!0,setTimeout(()=>{this.inputElement.focus()},0)):(this.isInFocus=!1,this.hideList(),this.$emit("blur",t))):this.inputElement.blur(),this.isTabbed=!1},onFocus(t){this.isInFocus=!0,t&&!this.isFalseFocus&&this.$emit("focus",t),this.isClicking||this.isFalseFocus||this.showSuggestions(),this.isFalseFocus=!1},onInput(t){const e=t.target?t.target.value:t;this.updateTextOutside(e),this.$emit("input",e)},updateTextOutside(t){this.text!==t&&(this.text=t,this.hovered&&this.hover(null),this.text.lengthe.filter(n,t))),e.listIsRequest&&e.$emit("request-done",n)}))}),(function(t){if(!e.listIsRequest)throw t;e.$emit("request-failed",t)}))}),(function(){return e.maxSuggestions&&n.splice(e.maxSuggestions),n}))})),clearSuggestions(){this.suggestions.splice(0)},getId(t,e){return`${this.listId}-suggestion-${this.isPlainSuggestion?e:this.valueProperty(t)||e}`}}};e.a=h}).call(this,n("8oxB"))},URgk:function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},USCx:function(t,e,n){!function(t){"use strict";t.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],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é ag] 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íonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},UZfx:function(t,e,n){parcelRequire=function(e,i,r,o){var a,s="function"==typeof parcelRequire&&parcelRequire;function l(t,r){if(!i[t]){if(!e[t]){var o="function"==typeof parcelRequire&&parcelRequire;if(!r&&o)return o(t,!0);if(s)return s(t,!0);if("string"==typeof t)return n("ZLfz")(t);var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}c.resolve=function(n){return e[t][1][n]||n},c.cache={};var u=i[t]=new l.Module(t);e[t][0].call(u.exports,c,u,u.exports,this)}return i[t].exports;function c(t){return l(c.resolve(t))}}l.isParcelRequire=!0,l.Module=function(t){this.id=t,this.bundle=l,this.exports={}},l.modules=e,l.cache=i,l.parent=s,l.register=function(t,n){e[t]=[function(t,e){e.exports=n},{}]};for(var u=0;u0?Math.floor(t):Math.ceil(t)};function A(t,e,n){return t instanceof P?t:g(t)?new P(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new P(t.x,t.y):new P(t,e,n)}function I(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>=e.x&&i.x<=n.x,a=r.y>=e.y&&i.y<=n.y;return o&&a},overlaps:function(t){t=N(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>e.x&&i.xe.y&&i.y=i.lat&&n.lat<=r.lat&&e.lng>=i.lng&&n.lng<=r.lng},intersects:function(t){t=j(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&i.lat<=n.lat,a=r.lng>=e.lng&&i.lng<=n.lng;return o&&a},overlaps:function(t){t=j(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&i.late.lng&&i.lng1,Lt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Mt=!(!document.createElementNS||!q("svg").createSVGRect),Tt=!Mt&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function Et(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ot={ie:J,ielt9:K,edge:Q,webkit:tt,android:et,android23:nt,androidStock:rt,opera:ot,chrome:at,gecko:st,safari:lt,phantom:ut,opera12:ct,win:dt,ie3d:ht,webkit3d:ft,gecko3d:pt,any3d:mt,mobile:gt,mobileWebkit:vt,mobileWebkit3d:yt,msPointer:_t,pointer:bt,touch:wt,mobileOpera:xt,mobileGecko:kt,retina:Ct,passiveEvents:Lt,canvas:St,svg:Mt,vml:Tt},Pt=_t?"MSPointerDown":"pointerdown",Dt=_t?"MSPointerMove":"pointermove",At=_t?"MSPointerUp":"pointerup",It=_t?"MSPointerCancel":"pointercancel",Nt={},Rt=!1;function jt(t,e,n,r){return"touchstart"===e?function(t,e,n){var r=i((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ie(t),Bt(t,e)}));t["_leaflet_touchstart"+n]=r,t.addEventListener(Pt,r,!1),Rt||(document.addEventListener(Pt,zt,!0),document.addEventListener(Dt,Yt,!0),document.addEventListener(At,Ft,!0),document.addEventListener(It,Ft,!0),Rt=!0)}(t,n,r):"touchmove"===e?function(t,e,n){var i=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Bt(t,e)};t["_leaflet_touchmove"+n]=i,t.addEventListener(Dt,i,!1)}(t,n,r):"touchend"===e&&function(t,e,n){var i=function(t){Bt(t,e)};t["_leaflet_touchend"+n]=i,t.addEventListener(At,i,!1),t.addEventListener(It,i,!1)}(t,n,r),this}function zt(t){Nt[t.pointerId]=t}function Yt(t){Nt[t.pointerId]&&(Nt[t.pointerId]=t)}function Ft(t){delete Nt[t.pointerId]}function Bt(t,e){for(var n in t.touches=[],Nt)t.touches.push(Nt[n]);t.changedTouches=[t],e(t)}var $t,Ht,Ut,Vt,Wt,Gt=_t?"MSPointerDown":bt?"pointerdown":"touchstart",qt=_t?"MSPointerUp":bt?"pointerup":"touchend",Zt="_leaflet_",Xt=he(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Jt=he(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Kt="webkitTransition"===Jt||"OTransition"===Jt?Jt+"End":"transitionend";function Qt(t){return"string"==typeof t?document.getElementById(t):t}function te(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function ee(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function ne(t){var e=t.parentNode;e&&e.removeChild(t)}function ie(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function re(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function oe(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ae(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=ce(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function se(t,e){if(void 0!==t.classList)for(var n=d(e),i=0,r=n.length;i1)return;var e=Date.now(),n=e-(i||e);r=t.touches?t.touches[0]:t,o=n>0&&n<=250,i=e}function s(t){if(o&&!r.cancelBubble){if(bt){if("mouse"===t.pointerType)return;var n,a,s={};for(a in r)n=r[a],s[a]=n&&n.bind?n.bind(r):n;r=s}r.type="dblclick",r.button=0,e(r),i=null}}t[Zt+Gt+n]=a,t[Zt+qt+n]=s,t[Zt+"dblclick"+n]=e,t.addEventListener(Gt,a,!!Lt&&{passive:!1}),t.addEventListener(qt,s,!!Lt&&{passive:!1}),t.addEventListener("dblclick",e,!1)}(t,a,r):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Te[e]||e,a,!!Lt&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,$e(t,e)&&s(e)},t.addEventListener(Te[e],a,!1)):t.addEventListener(e,s,!1):"attachEvent"in t&&t.attachEvent("on"+e,a),t[Le]=t[Le]||{},t[Le][r]=a}function Oe(t,e,n,i){var r=e+o(n)+(i?"_"+o(i):""),a=t[Le]&&t[Le][r];if(!a)return this;bt&&0===e.indexOf("touch")?function(t,e,n){var i=t["_leaflet_"+e+n];"touchstart"===e?t.removeEventListener(Pt,i,!1):"touchmove"===e?t.removeEventListener(Dt,i,!1):"touchend"===e&&(t.removeEventListener(At,i,!1),t.removeEventListener(It,i,!1))}(t,e,r):wt&&"dblclick"===e&&!Me()?function(t,e){var n=t[Zt+Gt+e],i=t[Zt+qt+e],r=t[Zt+"dblclick"+e];t.removeEventListener(Gt,n,!!Lt&&{passive:!1}),t.removeEventListener(qt,i,!!Lt&&{passive:!1}),t.removeEventListener("dblclick",r,!1)}(t,r):"removeEventListener"in t?t.removeEventListener(Te[e]||e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a),t[Le][r]=null}function Pe(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Be(t),this}function De(t){return Ee(t,"wheel",Pe),this}function Ae(t){return Ce(t,"mousedown touchstart dblclick",Pe),Ee(t,"click",Fe),this}function Ie(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ne(t){return Ie(t),Pe(t),this}function Re(t,e){if(!e)return new P(t.clientX,t.clientY);var n=xe(e),i=n.boundingClientRect;return new P((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var je=dt&&at?2*window.devicePixelRatio:st?window.devicePixelRatio:1;function ze(t){return Q?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/je:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Ye={};function Fe(t){Ye[t.type]=!0}function Be(t){var e=Ye[t.type];return Ye[t.type]=!1,e}function $e(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var He={on:Ce,off:Se,stopPropagation:Pe,disableScrollPropagation:De,disableClickPropagation:Ae,preventDefault:Ie,stop:Ne,getMousePosition:Re,getWheelDelta:ze,fakeStop:Fe,skipped:Be,isExternalTarget:$e,addListener:Ce,removeListener:Se},Ue=O.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=me(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,j(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=A((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=A(e.paddingBottomRight||e.padding||[0,0]),r=this.getCenter(),o=this.project(r),a=this.project(t),s=this.getPixelBounds(),l=s.getSize().divideBy(2),u=N([s.min.add(n),s.max.subtract(i)]);if(!u.contains(a)){this._enforcingBounds=!0;var c=o.subtract(a),d=A(a.x+c.x,a.y+c.y);(a.xu.max.x)&&(d.x=o.x-c.x,c.x>0?d.x+=l.x-n.x:d.x-=l.x-i.x),(a.yu.max.y)&&(d.y=o.y-c.y,c.y>0?d.y+=l.y-n.y:d.y-=l.y-i.y),this.panTo(this.unproject(d),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),o=n.divideBy(2).round(),a=r.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,r,t):navigator.geolocation.getCurrentPosition(n,r,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=new z(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var r=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(r,i.maxZoom):r)}var o={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ne(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(S(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ne(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=ee("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=j(t),n=A(n||[0,0]);var i=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),u=N(this.project(s,i),this.project(a,i)).getSize(),c=mt?this.options.zoomSnap:1,d=l.x/u.x,h=l.y/u.y,f=e?Math.max(d,h):Math.min(d,h);return i=this.getScaleZoom(f,i),c&&(i=Math.round(i/(c/100))*(c/100),i=e?Math.ceil(i/c)*c:Math.floor(i/c)*c),Math.max(r,Math.min(o,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new P(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new I(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(Y(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(A(t),e)},layerPointToLatLng:function(t){var e=A(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(Y(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Y(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(Y(t),Y(e))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(t)))},mouseEventToContainerPoint:function(t){return Re(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=Qt(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Ce(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&mt,se(t,"leaflet-container"+(wt?" leaflet-touch":"")+(Ct?" leaflet-retina":"")+(K?" leaflet-oldie":"")+(lt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=te(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),pe(this._mapPane,new P(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(se(t.markerPane,"leaflet-zoom-hide"),se(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){pe(this._mapPane,new P(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,!1)._move(t,e)._moveEnd(i),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return S(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){pe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[o(this._container)]=this;var e=t?Se:Ce;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),mt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){S(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],r="mouseout"===e||"mouseover"===e,a=t.target||t.srcElement,s=!1;a;){if((n=this._targets[o(a)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(r&&!$e(a,t))break;if(i.push(n),r)break}if(a===this._container)break;a=a.parentNode}return i.length||s||r||!$e(a,t)||(i=[this]),i},_handleDOMEvent:function(t){if(this._loaded&&!Be(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||_e(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){if("click"===t.type){var r=e({},t);r.type="preclick",this._fireDOMEvent(r,r.type,i)}if(!t._stopped&&(i=(i||[]).concat(this._findEventTargets(t,n))).length){var o=i[0];"contextmenu"===n&&o.listens(n,!0)&&Ie(t);var a={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var s=o.getLatLng&&(!o._radius||o._radius<=10);a.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?o.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var l=0;l0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=mt?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){le(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=ee("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=Xt,n=this._proxy.style[e];fe(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ne(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();fe(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(r)||(C((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,se(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&le(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),C((function(){this._moveEnd(!0)}),this))}}),We=T.extend({options:{position:"topright"},initialize:function(t){h(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return se(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ne(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ge=function(t){return new We(t)};Ve.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=ee("div",e+"control-container",this._container);function i(i,r){var o=e+i+" "+e+r;t[i+r]=ee("div",o,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ne(this._controlCorners[t]);ne(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var qe=We.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(o(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+o(this),i),this._layerControlInputs.push(e),e.layerId=o(t.layer),Ce(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var a=document.createElement("div");return n.appendChild(a),a.appendChild(e),a.appendChild(r),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],r=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||r.push(e);for(o=0;o=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ie.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Ze=We.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=ee("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,r){var o=ee("a",n,i);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Ae(o),Ce(o,"click",Ne),Ce(o,"click",r,this),Ce(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";le(this._zoomInButton,e),le(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&se(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&se(this._zoomInButton,e)}});Ve.mergeOptions({zoomControl:!0}),Ve.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Ze,this.addControl(this.zoomControl))}));var Xe=We.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=ee("div","leaflet-control-scale"),n=this.options;return this._addScales(n,"leaflet-control-scale-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=ee("div",e,n)),t.imperial&&(this._iScale=ee("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,r=3.2808399*t;r>5280?(e=r/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(r),this._updateScale(this._iScale,i+" ft",i/r))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Je=We.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){h(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=ee("div","leaflet-control-attribution"),Ae(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});Ve.mergeOptions({attributionControl:!0}),Ve.addInitHook((function(){this.options.attributionControl&&(new Je).addTo(this)})),We.Layers=qe,We.Zoom=Ze,We.Scale=Xe,We.Attribution=Je,Ge.layers=function(t,e,n){return new qe(t,e,n)},Ge.zoom=function(t){return new Ze(t)},Ge.scale=function(t){return new Xe(t)},Ge.attribution=function(t){return new Je(t)};var Ke=T.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ke.addTo=function(t,e){return t.addHandler(e,this),this};var Qe,tn={Events:E},en=wt?"touchstart mousedown":"mousedown",nn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},rn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},on=O.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){h(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Ce(this._dragStartTarget,en,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(on._dragging===this&&this.finishDrag(),Se(this._dragStartTarget,en,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!ae(this._element,"leaflet-zoom-anim")&&!(on._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(on._dragging=this,this._preventOutline&&_e(this._element),ve(),$t(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,n=we(this._element);this._startPoint=new P(e.clientX,e.clientY),this._parentScale=xe(n),Ce(document,rn[t.type],this._onMove,this),Ce(document,nn[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new P(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)u&&(a=s,u=l);u>i&&(n[a]=1,t(e,n,i,r,a),t(e,n,i,a,o))}(t,i,e,0,n-1);var r,o=[];for(r=0;re&&(n.push(t[i]),r=i);var a,s,l,u;return re.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function dn(t,e,n,i){var r,o=e.x,a=e.y,s=n.x-o,l=n.y-a,u=s*s+l*l;return u>0&&((r=((t.x-o)*s+(t.y-a)*l)/u)>1?(o=n.x,a=n.y):r>0&&(o+=s*r,a+=l*r)),s=t.x-o,l=t.y-a,i?s*s+l*l:new P(o,a)}function hn(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function fn(t){return hn(t)}var pn={simplify:an,pointToSegmentDistance:sn,closestPointOnSegment:function(t,e,n){return dn(t,e,n)},clipSegment:ln,_getEdgeIntersection:un,_getBitCode:cn,_sqClosestPointOnSegment:dn,isFlat:hn,_flat:fn};function mn(t,e,n){var i,r,o,a,s,l,u,c,d,h=[1,4,2,8];for(r=0,u=t.length;r1e-7;l++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),s+=u=Math.PI/2-2*Math.atan(a*e)-s;return new z(s*n,t.x*n/i)}},_n={LonLat:vn,Mercator:yn,SphericalMercator:H},bn=e({},$,{code:"EPSG:3395",projection:yn,transformation:function(){var t=.5/(Math.PI*yn.R);return V(t,.5,-t,.5)}()}),wn=e({},$,{code:"EPSG:4326",projection:vn,transformation:V(1/180,1,-1/180,.5)}),xn=e({},B,{projection:vn,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});B.Earth=$,B.EPSG3395=bn,B.EPSG3857=W,B.EPSG900913=G,B.EPSG4326=wn,B.Simple=xn;var kn=O.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[o(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[o(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ve.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=o(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=o(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&o(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?g(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()e)return a=(i-e)/n,this._map.layerPointToLatLng([o.x-a*(o.x-r.x),o.y-a*(o.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=Y(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new R,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return hn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=hn(t),i=0,r=t.length;i=2&&e[0]instanceof z&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){An.prototype._setLatLngs.call(this,t),hn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return hn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new P(e,e);if(t=new I(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,r=0,o=this._rings.length;rt.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(u=!u);return u||An.prototype._containsPoint.call(this,t,!0)}}),Nn=Ln.extend({initialize:function(t,e){h(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,r=g(t)?t:t.features;if(r){for(e=0,n=r.length;e0?r:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted;for(var a=0;ar?(e.height=r+"px",se(t,"leaflet-popup-scrolled")):le(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();pe(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(te(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,r=new P(this._containerLeft,-n-this._containerBottom);r._add(me(this._container));var o=t.layerPointToContainerPoint(r),a=A(this.options.autoPanPadding),s=A(this.options.autoPanPaddingTopLeft||a),l=A(this.options.autoPanPaddingBottomRight||a),u=t.getSize(),c=0,d=0;o.x+i+l.x>u.x&&(c=o.x+i-u.x+l.x),o.x-c-s.x<0&&(c=o.x-s.x),o.y+n+l.y>u.y&&(d=o.y+n-u.y+l.y),o.y-d-s.y<0&&(d=o.y-s.y),(c||d)&&t.fire("autopanstart").panBy([c,d])}},_onCloseButtonClick:function(t){this._close(),Ne(t)},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ve.mergeOptions({closePopupOnClick:!0}),Ve.include({openPopup:function(t,e,n){return t instanceof Jn||(t=new Jn(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),kn.include({bindPopup:function(t,e){return t instanceof Jn?(h(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new Jn(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Ne(t),e instanceof On?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Kn=Xn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Xn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Xn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Xn.prototype.getEvents.call(this);return wt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ee("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,r=this._container,o=i.latLngToContainerPoint(i.getCenter()),a=i.layerPointToContainerPoint(t),s=this.options.direction,l=r.offsetWidth,u=r.offsetHeight,c=A(this.options.offset),d=this._getAnchor();"top"===s?(e=l/2,n=u):"bottom"===s?(e=l/2,n=0):"center"===s?(e=l/2,n=u/2):"right"===s?(e=0,n=u/2):"left"===s?(e=l,n=u/2):a.xthis.options.maxZoom||ni&&this._retainParent(r,o,a,i))},_retainChildren:function(t,e,n,i){for(var r=2*t;r<2*t+2;r++)for(var o=2*e;o<2*e+2;o++){var a=new P(r,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&r1)this._setView(t,n);else{for(var d=r.min.y;d<=r.max.y;d++)for(var h=r.min.x;h<=r.max.x;h++){var f=new P(h,d);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:a.push(f)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;hn.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return j(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),r=i.add(n);return[e.unproject(i,t.z),e.unproject(r,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new R(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new P(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ne(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){se(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,K&&this.options.opacity<1&&de(t,this.options.opacity),et&&!nt&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),r=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&C(i(this._tileReady,this,t,null,o)),pe(o,n),this._tiles[r]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var r=this._tileCoordsToKey(t);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(de(n.el,0),S(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(se(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),K||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new P(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new I(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),ei=ti.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=h(this,e)).detectRetina&&Ct&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),et||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Ce(n,"load",i(this._tileOnLoad,this,e,n)),Ce(n,"error",i(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:Ct?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=i),n["-y"]=i}return m(this._url,e(n,this.options))},_tileOnLoad:function(t,e){K?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,e.complete||(e.src=y,ne(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return rt||e.el.setAttribute("src",y),ti.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==y))return ti.prototype._tileReady.call(this,t,e,n)}});function ni(t,e){return new ei(t,e)}var ii=ei.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var i=e({},this.defaultWmsParams);for(var r in n)r in this.options||(i[r]=n[r]);var o=(n=h(this,n)).detectRetina&&Ct?2:1,a=this.getTileSize();i.width=a.x*o,i.height=a.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ei.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=N(n.project(e[0]),n.project(e[1])),r=i.min,o=i.max,a=(this._wmsVersion>=1.3&&this._crs===wn?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),s=ei.prototype.getTileUrl.call(this,t);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});ei.WMS=ii,ni.wms=function(t,e){return new ii(t,e)};var ri=kn.extend({options:{padding:.1,tolerance:0},initialize:function(t){h(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&se(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=me(this._container),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),a=this._map.project(t,e).subtract(o),s=r.multiplyBy(-n).add(i).add(r).subtract(a);mt?fe(this._container,s,n):pe(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new I(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),oi=ri.extend({getEvents:function(){var t=ri.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ri.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Ce(t,"mousemove",this._onMouseMove,this),Ce(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ce(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){S(this._redrawRequest),delete this._ctx,ne(this._container),Se(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ri.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=Ct?2:1;pe(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Ct&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ri.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[o(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[o(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),r=[];for(n=0;n')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),li={_initContainer:function(){this._container=ee("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ri.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=si("shape");se(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=si("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ne(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,r=t._container;r.stroked=!!i.stroke,r.filled=!!i.fill,i.stroke?(e||(e=t._stroke=si("stroke")),r.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=g(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(r.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=si("fill")),r.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(r.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){re(t._container)},_bringToBack:function(t){oe(t._container)}},ui=Tt?si:q,ci=ri.extend({getEvents:function(){var t=ri.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=ui("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ui("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ne(this._container),Se(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){ri.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),pe(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=ui("path");t.options.className&&se(e,t.options.className),t.options.interactive&&se(e,"leaflet-interactive"),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ne(t._path),t.removeInteractiveTarget(t._path),delete this._layers[o(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Z(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){re(t._path)},_bringToBack:function(t){oe(t._path)}});function di(t){return Mt||Tt?new ci(t):null}Tt&&ci.include(li),Ve.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&ai(t)||di(t)}});var hi=In.extend({initialize:function(t,e){In.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=j(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});ci.create=ui,ci.pointsToPath=Z,Nn.geometryToLayer=Rn,Nn.coordsToLatLng=zn,Nn.coordsToLatLngs=Yn,Nn.latLngToCoords=Fn,Nn.latLngsToCoords=Bn,Nn.getFeature=$n,Nn.asFeature=Hn,Ve.mergeOptions({boxZoom:!0});var fi=Ke.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Ce(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Se(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ne(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),$t(),ve(),this._startPoint=this._map.mouseEventToContainerPoint(t),Ce(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ee("div","leaflet-zoom-box",this._container),se(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new I(this._point,this._startPoint),n=e.getSize();pe(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ne(this._box),le(this._container,"leaflet-crosshair")),Ht(),ye(),Se(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ve.addInitHook("addHandler","boxZoom",fi),Ve.mergeOptions({doubleClickZoom:!0});var pi=Ke.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,r=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});Ve.addInitHook("addHandler","doubleClickZoom",pi),Ve.mergeOptions({dragging:!0,inertia:!nt,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var mi=Ke.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new on(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}se(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){le(this._map._container,"leaflet-grab"),le(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=j(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,r=(i-e+n)%t+e-n,o=(i+e+n)%t-e-n,a=Math.abs(r+n)0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});Ve.addInitHook("addHandler","scrollWheelZoom",vi),Ve.mergeOptions({tap:!0,tapTolerance:15});var yi=Ke.extend({addHooks:function(){Ce(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Se(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ie(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new P(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&se(n,"leaflet-active"),this._holdTimeout=setTimeout(i((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Ce(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Se(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&le(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new P(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});!wt||bt&&!lt||Ve.addInitHook("addHandler","tap",yi),Ve.mergeOptions({touchZoom:wt&&!nt,bounceAtZoomLimits:!0});var _i=Ke.extend({addHooks:function(){se(this._map._container,"leaflet-touch-zoom"),Ce(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){le(this._map._container,"leaflet-touch-zoom"),Se(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Ce(document,"touchmove",this._onTouchMove,this),Ce(document,"touchend",this._onTouchEnd,this),Ie(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(r)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),S(this._animRequest);var s=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=C(s,this,!0),Ie(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,S(this._animRequest),Se(document,"touchmove",this._onTouchMove,this),Se(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ve.addInitHook("addHandler","touchZoom",_i),Ve.BoxZoom=fi,Ve.DoubleClickZoom=pi,Ve.Drag=mi,Ve.Keyboard=gi,Ve.ScrollWheelZoom=vi,Ve.Tap=yi,Ve.TouchZoom=_i,t.version="1.7.1",t.Control=We,t.control=Ge,t.Browser=Ot,t.Evented=O,t.Mixin=tn,t.Util=M,t.Class=T,t.Handler=Ke,t.extend=e,t.bind=i,t.stamp=o,t.setOptions=h,t.DomEvent=He,t.DomUtil=ke,t.PosAnimation=Ue,t.Draggable=on,t.LineUtil=pn,t.PolyUtil=gn,t.Point=P,t.point=A,t.Bounds=I,t.bounds=N,t.Transformation=U,t.transformation=V,t.Projection=_n,t.LatLng=z,t.latLng=Y,t.LatLngBounds=R,t.latLngBounds=j,t.CRS=B,t.GeoJSON=Nn,t.geoJSON=Vn,t.geoJson=Wn,t.Layer=kn,t.LayerGroup=Cn,t.layerGroup=function(t,e){return new Cn(t,e)},t.FeatureGroup=Ln,t.featureGroup=function(t,e){return new Ln(t,e)},t.ImageOverlay=Gn,t.imageOverlay=function(t,e,n){return new Gn(t,e,n)},t.VideoOverlay=qn,t.videoOverlay=function(t,e,n){return new qn(t,e,n)},t.SVGOverlay=Zn,t.svgOverlay=function(t,e,n){return new Zn(t,e,n)},t.DivOverlay=Xn,t.Popup=Jn,t.popup=function(t,e){return new Jn(t,e)},t.Tooltip=Kn,t.tooltip=function(t,e){return new Kn(t,e)},t.Icon=Sn,t.icon=function(t){return new Sn(t)},t.DivIcon=Qn,t.divIcon=function(t){return new Qn(t)},t.Marker=En,t.marker=function(t,e){return new En(t,e)},t.TileLayer=ei,t.tileLayer=ni,t.GridLayer=ti,t.gridLayer=function(t){return new ti(t)},t.SVG=ci,t.svg=di,t.Renderer=ri,t.Canvas=oi,t.canvas=ai,t.Path=On,t.CircleMarker=Pn,t.circleMarker=function(t,e){return new Pn(t,e)},t.Circle=Dn,t.circle=function(t,e,n){return new Dn(t,e,n)},t.Polyline=An,t.polyline=function(t,e){return new An(t,e)},t.Polygon=In,t.polygon=function(t,e){return new In(t,e)},t.Rectangle=hi,t.rectangle=function(t,e){return new hi(t,e)},t.Map=Ve,t.map=function(t,e){return new Ve(t,e)};var bi=window.L;t.noConflict=function(){return window.L=bi,this},window.L=t}))},{}],OTlA:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CanvasOverlay=void 0;var i=t("leaflet");function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n0;)this._redrawCallbacks.shift()(this);this._frame=null}},{key:"_animateZoom",value:function(t){var e=this._map,n=e.getZoomScale(t.zoom,e.getZoom()),r=this._unclampedLatLngBoundsToNewLayerBounds(e.getBounds(),t.zoom,t.center).min;i.DomUtil.setTransform(this.canvas,r,n)}},{key:"_animateZoomNoLayer",value:function(t){var e=this._map,n=e.getZoomScale(t.zoom,e.getZoom()),r=e._getCenterOffset(t.center)._multiplyBy(-n).subtract(e._getMapPanePos());i.DomUtil.setTransform(this.canvas,r,n)}},{key:"_unclampedProject",value:function(t,e){var n=this._map.options.crs,r=n.projection.R,o=Math.PI/180,a=t.lat,s=Math.sin(a*o),l=new i.Point(r*t.lng*o,r*Math.log((1+s)/(1-s))/2),u=n.scale(e);return n.transformation._transform(l,u)}},{key:"_unclampedLatLngBoundsToNewLayerBounds",value:function(t,e,n){var r=this._map._getNewPixelOrigin(n,e);return new i.Bounds([this._unclampedProject(t.getSouthWest(),e).subtract(r),this._unclampedProject(t.getNorthWest(),e).subtract(r),this._unclampedProject(t.getSouthEast(),e).subtract(r),this._unclampedProject(t.getNorthEast(),e).subtract(r)])}}]),n}();n.CanvasOverlay=d},{leaflet:"f3z0"}],pR9a:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Base=void 0;var i=t("./map-matrix"),r=t("./canvas-overlay");function o(t,e){for(var n=0;n1?(a=r,s=o):(a=n+d*l,s=i+d*u);var h=t-a,f=e-s;return Math.sqrt(h*h+f*f)},n.vectorDistance=i,n.locationDistance=function(t,e,n){var r=n.latLngToLayerPoint(t),o=n.latLngToLayerPoint(e);return i(r.x-o.x,r.y-o.y)},n.debugPoint=function(t){var e=document.createElement("div"),n=e.style,i=t.x,r=t.y;n.left=i+"px",n.top=r+"px",n.width="10px",n.height="10px",n.position="absolute",n.backgroundColor="#"+(16777215*Math.random()<<0).toString(16),document.body.appendChild(e)},n.debounce=function(t,e,n){var i;return function(){var r=this,o=arguments,a=n&&!i;clearTimeout(i),i=setTimeout((function(){i=null,n||t.apply(r,o)}),e),a&&t.apply(r,o)}},n.inBounds=function(t,e){return e._northEast.lat>t.lat&&t.lat>e._southWest.lat&&e._northEast.lng>t.lng&&t.lng>e._southWest.lng}},{}],ogHp:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Lines=void 0;var i=t("./base"),r=t("./color"),o=t("leaflet"),a=t("./line-feature-vertices"),s=t("./utils");function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n18)r.translateMatrix(-c.x,-c.y),e.uniformMatrix4fv(o,!1,r.array),e.drawArrays(e.LINES,0,a.length/this.bytes);else if("number"==typeof l)for(var f=-l;f0?u:this.allLatLngLookup,d)}}],[{key:"closest",value:function(t,e,n){return e.length<1?null:e.reduce((function(e,i){return(0,a.locationDistance)(t,e.latLng,n)<(0,a.locationDistance)(t,i.latLng,n)?e:i}))}},{key:"tryClick",value:function(t,e){var i,r,s,l,u,c,d,h=[],f={};if(n.instances.forEach((function(n){r=n.settings,n.active&&r.map===e&&r.click&&(l=n.lookup(t.latlng),f[l.key]=n,h.push(l))})),!(h.length<1)&&r&&null!==(c=this.closest(t.latlng,h,e))&&(s=f[c.key])){var p=s.settings,m=p.latitudeKey,g=p.longitudeKey,v=p.sensitivity,y=p.click;return d=new o.LatLng(c.latLng[m],c.latLng[g]),u=e.latLngToLayerPoint(d),(0,a.pointInCircle)(u,t.layerPoint,c.chosenSize*v)?void 0===(i=y(t,c.feature||c.latLng,u))||i:void 0}}},{key:"tryHover",value:function(t,e){var i,r,s,l,u,c,d,h=[],f={};if(n.instances.forEach((function(n){r=n.settings,n.active&&r.map===e&&r.hover&&(l=n.lookup(t.latlng),f[l.key]=n,h.push(l))})),!(h.length<1)&&r&&null!==(c=this.closest(t.latlng,h,e))&&(s=f[c.key])){var p=s.settings,m=p.latitudeKey,g=p.longitudeKey,v=p.sensitivityHover,y=p.hover;return d=new o.LatLng(c.latLng[m],c.latLng[g]),u=e.latLngToLayerPoint(d),(0,a.pointInCircle)(u,t.layerPoint,c.chosenSize*v)?void 0===(i=y(t,c.feature||c.latLng,u))||i:void 0}}}]),n}();n.Points=g,g.instances=[],g.defaults=m,g.maps=[]},{"./base":"pR9a","./color":"lpyx",leaflet:"f3z0","./utils":"UnXq"}],vwhv:[function(t,e,n){"use strict";function i(t,e,n){n=n||2;var i,o,s,l,u,c,h,f=e&&e.length,p=f?e[0]*n:t.length,m=r(t,0,p,n,!0),g=[];if(!m||m.next===m.prev)return g;if(f&&(m=d(t,e,m,n)),t.length>80*n){i=s=t[0],o=l=t[1];for(var v=n;vs&&(s=u),c>l&&(l=c);h=0!==(h=Math.max(s-i,l-o))?1/h:0}return a(m,g,n,i,o,h),g}function r(t,e,n,i,r){var o,a;if(r===M(t,e,n,i)>0)for(o=e;o=e;o-=i)a=C(o,t[o],t[o+1],a);return a&&b(a,a.next)&&(L(a),a=a.next),a}function o(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!b(i,i.next)&&0!==_(i.prev,i,i.next))i=i.next;else{if(L(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function a(t,e,n,i,r,d,h){if(t){!h&&d&&p(t,i,r,d);for(var f,m,g=t;t.prev!==t.next;)if(f=t.prev,m=t.next,d?l(t,i,r,d):s(t))e.push(f.i/n),e.push(t.i/n),e.push(m.i/n),L(t),t=m.next,g=m.next;else if((t=m)===g){h?1===h?a(t=u(t,e,n),e,n,i,r,d,2):2===h&&c(t,e,n,i,r,d):a(o(t),e,n,i,r,d,1);break}}}function s(t){var e=t.prev,n=t,i=t.next;if(_(e,n,i)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(v(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&_(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function l(t,e,n,i){var r=t.prev,o=t,a=t.next;if(_(r,o,a)>=0)return!1;for(var s=r.xo.x?r.x>a.x?r.x:a.x:o.x>a.x?o.x:a.x,c=r.y>o.y?r.y>a.y?r.y:a.y:o.y>a.y?o.y:a.y,d=m(s,l,e,n,i),h=m(u,c,e,n,i),f=t.prevZ,p=t.nextZ;f&&f.z>=d&&p&&p.z<=h;){if(f!==t.prev&&f!==t.next&&v(r.x,r.y,o.x,o.y,a.x,a.y,f.x,f.y)&&_(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,p!==t.prev&&p!==t.next&&v(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;f&&f.z>=d;){if(f!==t.prev&&f!==t.next&&v(r.x,r.y,o.x,o.y,a.x,a.y,f.x,f.y)&&_(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;p&&p.z<=h;){if(p!==t.prev&&p!==t.next&&v(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function u(t,e,n){var i=t;do{var r=i.prev,o=i.next.next;!b(r,o)&&w(r,i,i.next,o)&&x(r,o)&&x(o,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(o.i/n),L(i),L(i.next),i=t=o),i=i.next}while(i!==t);return i}function c(t,e,n,i,r,s){var l=t;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&y(l,u)){var c=k(l,u);return l=o(l,l.next),c=o(c,c.next),a(l,e,n,i,r,s),void a(c,e,n,i,r,s)}u=u.next}l=l.next}while(l!==t)}function d(t,e,n,i){var a,s,l,u=[];for(a=0,s=e.length;a=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>a){if(a=s,s===r){if(o===i.y)return i;if(o===i.next.y)return i.next}n=i.x=i.x&&i.x>=c&&r!==i.x&&v(on.x)&&x(i,t)&&(n=i,h=l),i=i.next;return n}(t,e)){var n=k(e,t);o(n,n.next)}}function p(t,e,n,i){var r=t;do{null===r.z&&(r.z=m(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,o,a,s,l,u=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,i=n,s=0,e=0;e0||l>0&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,u*=2}while(a>1)}(r)}function m(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,n=t;do{(e.x=0&&(t-a)*(i-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(r-a)*(i-s)>=0}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&x(t,e)&&x(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)}function _(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function b(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,i){return!!(b(t,e)&&b(n,i)||b(t,i)&&b(n,e))||_(t,e,n)>0!=_(t,e,i)>0&&_(n,i,t)>0!=_(n,i,e)>0}function x(t,e){return _(t.prev,t,t.next)<0?_(t,e,t.next)>=0&&_(t,t.prev,e)>=0:_(t,e,t.prev)<0||_(t,t.next,e)<0}function k(t,e){var n=new S(t.i,t.x,t.y),i=new S(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function C(t,e,n,i){var r=new S(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function L(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function S(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function M(t,e,n,i){for(var r=0,o=e,a=n-i;o0&&(i+=t[r-1].length,n.holes.push(i))}return n}},{}],nhDx:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function t(e){switch(e&&e.type||null){case"FeatureCollection":return e.features=e.features.reduce((function(e,n){return e.concat(t(n))}),[]),e;case"Feature":return e.geometry?t(e.geometry).map((function(t){var n={type:"Feature",properties:JSON.parse(JSON.stringify(e.properties)),geometry:t};return void 0!==e.id&&(n.id=e.id),n})):[e];case"MultiPoint":return e.coordinates.map((function(t){return{type:"Point",coordinates:t}}));case"MultiPolygon":return e.coordinates.map((function(t){return{type:"Polygon",coordinates:t}}));case"MultiLineString":return e.coordinates.map((function(t){return{type:"LineString",coordinates:t}}));case"GeometryCollection":return e.geometries.map(t).reduce((function(t,e){return t.concat(e)}),[]);case"Point":case"Polygon":case"LineString":return[e]}}},{}],AuwV:[function(t,e,n){var i;!function(t,r){"object"==typeof n&&void 0!==e?e.exports=r():"function"==typeof i&&i.amd?i(r):t.quickselect=r()}(this,(function(){"use strict";function t(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function e(t,e){return te?1:0}return function(n,i,r,o,a){!function e(n,i,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,l=i-r+1,u=Math.log(s),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(n,i,Math.max(r,Math.floor(i-l*c/s+d)),Math.min(o,Math.floor(i+(s-l)*c/s+d)),a)}var h=n[i],f=r,p=o;for(t(n,r,i),a(n[o],h)>0&&t(n,r,o);f0;)p--}0===a(n[r],h)?t(n,r,p):t(n,++p,o),p<=i&&(r=p+1),i<=p&&(o=p-1)}}(n,i,r||0,o||n.length-1,a||e)}}))},{}],O1rd:[function(t,e,n){"use strict";e.exports=r,e.exports.default=r;var i=t("quickselect");function r(t,e){if(!(this instanceof r))return new r(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function o(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i=t.minX&&e.maxY>=t.minY}function v(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,e,n,r,o){for(var a,s=[e,n];s.length;)(n=s.pop())-(e=s.pop())<=r||(a=e+Math.ceil((n-e)/r/2)*r,i(t,a,e,n,o),s.push(e,a,a,n))}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],i=this.toBBox;if(!g(t,e))return n;for(var r,o,a,s,l=[];e;){for(r=0,o=e.children.length;r=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(r,o,e)},_split:function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var o=this._chooseSplitIndex(n,r,i),s=v(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(t,e){this.data=v([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var i,r,o,a,l,u,c,h;for(u=c=1/0,i=e;i<=n-e;i++)a=p(r=s(t,0,i,this.toBBox),o=s(t,i,n,this.toBBox)),l=d(r)+d(o),a=e;r--)o=t.children[r],l(c,t.leaf?a(o):o),d+=h(c);return d},_adjustParentBBoxes:function(t,e,n){for(var i=n;i>=0;i--)l(e[i],t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():a(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},{quickselect:"AuwV"}],UTeA:[function(t,e,n){e.exports=function(t,e){for(var n=t[0],i=t[1],r=!1,o=0,a=e.length-1;oi!=c>i&&n<(u-s)*(i-l)/(c-l)+s&&(r=!r)}return r}},{}],cxFR:[function(t,e,n){"use strict";e.exports={getBoundingBox:function(t){for(var e=t[0],n={minX:e[0],minY:e[1],maxX:e[0],maxY:e[1]},i=1;in.maxX&&(n.maxX=o);var a=r[1];an.maxY&&(n.maxY=a)}return n}}},{}],yh9p:[function(t,e,n){"use strict";n.byteLength=function(t){var e=u(t),n=e[0],i=e[1];return 3*(n+i)/4-i},n.toByteArray=function(t){for(var e,n=u(t),i=n[0],a=n[1],s=new o(function(t,e,n){return 3*(e+n)/4-n}(0,i,a)),l=0,c=a>0?i-4:i,d=0;d>16&255,s[l++]=e>>8&255,s[l++]=255&e;return 2===a&&(e=r[t.charCodeAt(d)]<<2|r[t.charCodeAt(d+1)]>>4,s[l++]=255&e),1===a&&(e=r[t.charCodeAt(d)]<<10|r[t.charCodeAt(d+1)]<<4|r[t.charCodeAt(d+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e),s},n.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],a=0,s=n-r;as?s:a+16383));return 1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function d(t,e,n){for(var i,r=[],o=e;o>1,c=-7,d=n?r-1:0,h=n?-1:1,f=t[e+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+t[e+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=u}return(f?-1:1)*a*Math.pow(2,o-i)},n.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,c=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(e*l-1)*Math.pow(2,r),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;t[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,u-=8);t[n+f-p]|=128*m}},{}],REa7:[function(t,e,n){var i={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},{}],peL6:[function(t,e,n){var i=arguments[3],r=t("base64-js"),o=t("ieee754"),a=t("isarray");function s(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function l(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,e){if(l()=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),c.alloc(+t)}function w(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return tt(t).length;default:if(i)return J(t).length;e=(""+e).toLowerCase(),i=!0}}function x(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return z(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return j(this,e,n);case"base64":return D(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function k(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function C(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:L(t,e,n,i,r);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):L(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function L(t,e,n,i,r){var o,a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;hr&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(r+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=d}return N(i)}n.Buffer=c,n.SlowBuffer=b,n.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==i.TYPED_ARRAY_SUPPORT?i.TYPED_ARRAY_SUPPORT:s(),n.kMaxLength=l(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return d(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return f(null,t,e,n)},c.allocUnsafe=function(t){return p(null,t)},c.allocUnsafeSlow=function(t){return p(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),""},c.prototype.compare=function(t,e,n,i,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(i,r),u=t.slice(e,n),d=0;dr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return S(this,t,e,n);case"utf8":case"utf-8":return M(this,t,e,n);case"ascii":return T(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return O(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function N(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);for(var n="",i=0;ii)&&(n=i);for(var r="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,i,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function $(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function H(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function U(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(t,e,n,i,r){return r||U(t,0,n,4),o.write(t,e,n,i,23,4),n+4}function W(t,e,n,i,r){return r||U(t,0,n,8),o.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e0&&(r*=256);)i+=this[t+--e]*r;return i},c.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);for(var i=this[t],r=1,o=0;++o=(r*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||B(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+r]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return V(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return V(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(t){for(var e=[],n=0;n>8,r=n%256,o.push(r),o.push(i);return o}function tt(t){return r.toByteArray(q(t))}function et(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function nt(t){return t!=t}},{"base64-js":"yh9p",ieee754:"JgNJ",isarray:"REa7",buffer:"peL6"}],B1iE:[function(t,e,n){t("buffer").Buffer;var i,r=arguments[3];t("buffer").Buffer;(function(){var t,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,u=32,c=64,d=128,h=256,f=1/0,p=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",h]],y="[object Arguments]",_="[object Array]",b="[object Boolean]",w="[object Date]",x="[object Error]",k="[object Function]",C="[object GeneratorFunction]",L="[object Map]",S="[object Number]",M="[object Object]",T="[object RegExp]",E="[object Set]",O="[object String]",P="[object Symbol]",D="[object WeakMap]",A="[object ArrayBuffer]",I="[object DataView]",N="[object Float32Array]",R="[object Float64Array]",j="[object Int8Array]",z="[object Int16Array]",Y="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",$="[object Uint16Array]",H="[object Uint32Array]",U=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Z=RegExp(G.source),X=RegExp(q.source),J=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/,nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(it.source),ot=/^\s+|\s+$/g,at=/^\s+/,st=/\s+$/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,mt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,bt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,kt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ct="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lt="["+Ct+"]",St="["+kt+"]",Mt="\\d+",Tt="[a-z\\xdf-\\xf6\\xf8-\\xff]",Et="[^\\ud800-\\udfff"+Ct+Mt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ot="\\ud83c[\\udffb-\\udfff]",Pt="[^\\ud800-\\udfff]",Dt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",It="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Nt="(?:"+Tt+"|"+Et+")",Rt="(?:"+It+"|"+Et+")",jt="(?:"+St+"|"+Ot+")?",zt="[\\ufe0e\\ufe0f]?"+jt+"(?:\\u200d(?:"+[Pt,Dt,At].join("|")+")[\\ufe0e\\ufe0f]?"+jt+")*",Yt="(?:"+["[\\u2700-\\u27bf]",Dt,At].join("|")+")"+zt,Ft="(?:"+[Pt+St+"?",St,Dt,At,"[\\ud800-\\udfff]"].join("|")+")",Bt=RegExp("['’]","g"),$t=RegExp(St,"g"),Ht=RegExp(Ot+"(?="+Ot+")|"+Ft+zt,"g"),Ut=RegExp([It+"?"+Tt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Lt,It,"$"].join("|")+")",Rt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Lt,It+Nt,"$"].join("|")+")",It+"?"+Nt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",It+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mt,Yt].join("|"),"g"),Vt=RegExp("[\\u200d\\ud800-\\udfff"+kt+"\\ufe0e\\ufe0f]"),Wt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qt=-1,Zt={};Zt[N]=Zt[R]=Zt[j]=Zt[z]=Zt[Y]=Zt[F]=Zt[B]=Zt[$]=Zt[H]=!0,Zt[y]=Zt[_]=Zt[A]=Zt[b]=Zt[I]=Zt[w]=Zt[x]=Zt[k]=Zt[L]=Zt[S]=Zt[M]=Zt[T]=Zt[E]=Zt[O]=Zt[D]=!1;var Xt={};Xt[y]=Xt[_]=Xt[A]=Xt[I]=Xt[b]=Xt[w]=Xt[N]=Xt[R]=Xt[j]=Xt[z]=Xt[Y]=Xt[L]=Xt[S]=Xt[M]=Xt[T]=Xt[E]=Xt[O]=Xt[P]=Xt[F]=Xt[B]=Xt[$]=Xt[H]=!0,Xt[x]=Xt[k]=Xt[D]=!1;var Jt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Kt=parseFloat,Qt=parseInt,te="object"==typeof r&&r&&r.Object===Object&&r,ee="object"==typeof self&&self&&self.Object===Object&&self,ne=te||ee||Function("return this")(),ie="object"==typeof n&&n&&!n.nodeType&&n,re=ie&&"object"==typeof e&&e&&!e.nodeType&&e,oe=re&&re.exports===ie,ae=oe&&te.process,se=function(){try{return re&&re.require&&re.require("util").types||ae&&ae.binding&&ae.binding("util")}catch(t){}}(),le=se&&se.isArrayBuffer,ue=se&&se.isDate,ce=se&&se.isMap,de=se&&se.isRegExp,he=se&&se.isSet,fe=se&&se.isTypedArray;function pe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function me(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r-1}function we(t,e,n){for(var i=-1,r=null==t?0:t.length;++i-1;);return n}function He(t,e){for(var n=t.length;n--&&Oe(e,t[n],0)>-1;);return n}var Ue=Ne({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ve=Ne({"&":"&","<":"<",">":">",'"':""","'":"'"});function We(t){return"\\"+Jt[t]}function Ge(t){return Vt.test(t)}function qe(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function Ze(t,e){return function(n){return t(e(n))}}function Xe(t,e){for(var n=-1,i=t.length,r=0,o=[];++n",""":'"',"'":"'"}),en=function e(n){var i,r=(n=null==n?ne:en.defaults(ne.Object(),n,en.pick(ne,Gt))).Array,kt=n.Date,Ct=n.Error,Lt=n.Function,St=n.Math,Mt=n.Object,Tt=n.RegExp,Et=n.String,Ot=n.TypeError,Pt=r.prototype,Dt=Lt.prototype,At=Mt.prototype,It=n["__core-js_shared__"],Nt=Dt.toString,Rt=At.hasOwnProperty,jt=0,zt=(i=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",Yt=At.toString,Ft=Nt.call(Mt),Ht=ne._,Vt=Tt("^"+Nt.call(Rt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jt=oe?n.Buffer:t,te=n.Symbol,ee=n.Uint8Array,ie=Jt?Jt.allocUnsafe:t,re=Ze(Mt.getPrototypeOf,Mt),ae=Mt.create,se=At.propertyIsEnumerable,Me=Pt.splice,Ne=te?te.isConcatSpreadable:t,nn=te?te.iterator:t,rn=te?te.toStringTag:t,on=function(){try{var t=lo(Mt,"defineProperty");return t({},"",{}),t}catch(t){}}(),an=n.clearTimeout!==ne.clearTimeout&&n.clearTimeout,sn=kt&&kt.now!==ne.Date.now&&kt.now,ln=n.setTimeout!==ne.setTimeout&&n.setTimeout,un=St.ceil,cn=St.floor,dn=Mt.getOwnPropertySymbols,hn=Jt?Jt.isBuffer:t,fn=n.isFinite,pn=Pt.join,mn=Ze(Mt.keys,Mt),gn=St.max,vn=St.min,yn=kt.now,_n=n.parseInt,bn=St.random,wn=Pt.reverse,xn=lo(n,"DataView"),kn=lo(n,"Map"),Cn=lo(n,"Promise"),Ln=lo(n,"Set"),Sn=lo(n,"WeakMap"),Mn=lo(Mt,"create"),Tn=Sn&&new Sn,En={},On=No(xn),Pn=No(kn),Dn=No(Cn),An=No(Ln),In=No(Sn),Nn=te?te.prototype:t,Rn=Nn?Nn.valueOf:t,jn=Nn?Nn.toString:t;function zn(t){if(Ka(t)&&!Ba(t)&&!(t instanceof $n)){if(t instanceof Bn)return t;if(Rt.call(t,"__wrapped__"))return Ro(t)}return new Bn(t)}var Yn=function(){function e(){}return function(n){if(!Ja(n))return{};if(ae)return ae(n);e.prototype=n;var i=new e;return e.prototype=t,i}}();function Fn(){}function Bn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function $n(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=n?e:n)),e}function ai(e,n,i,r,o,a){var s,l=1&n,u=2&n,c=4&n;if(i&&(s=o?i(e,r,o,a):i(e)),s!==t)return s;if(!Ja(e))return e;var d=Ba(e);if(d){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Rt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!l)return Sr(e,s)}else{var h=ho(e),f=h==k||h==C;if(Va(e))return br(e,l);if(h==M||h==y||f&&!o){if(s=u||f?{}:po(e),!l)return u?function(t,e){return Mr(t,co(t),e)}(e,function(t,e){return t&&Mr(e,Es(e),t)}(s,e)):function(t,e){return Mr(t,uo(t),e)}(e,ni(s,e))}else{if(!Xt[h])return o?e:{};s=function(t,e,n){var i,r,o,a=t.constructor;switch(e){case A:return wr(t);case b:case w:return new a(+t);case I:return function(t,e){var n=e?wr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case N:case R:case j:case z:case Y:case F:case B:case $:case H:return xr(t,n);case L:return new a;case S:case O:return new a(t);case T:return(o=new(r=t).constructor(r.source,pt.exec(r))).lastIndex=r.lastIndex,o;case E:return new a;case P:return i=t,Rn?Mt(Rn.call(i)):{}}}(e,h,l)}}a||(a=new Gn);var p=a.get(e);if(p)return p;a.set(e,s),is(e)?e.forEach((function(t){s.add(ai(t,n,i,t,e,a))})):Qa(e)&&e.forEach((function(t,r){s.set(r,ai(t,n,i,r,e,a))}));var m=d?t:(c?u?eo:to:u?Es:Ts)(e);return ge(m||e,(function(t,r){m&&(t=e[r=t]),Qn(s,r,ai(t,n,i,r,e,a))})),s}function si(e,n,i){var r=i.length;if(null==e)return!r;for(e=Mt(e);r--;){var o=i[r],a=n[o],s=e[o];if(s===t&&!(o in e)||!a(s))return!1}return!0}function li(e,n,i){if("function"!=typeof e)throw new Ot(o);return To((function(){e.apply(t,i)}),n)}function ui(t,e,n,i){var r=-1,o=be,a=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=xe(e,Ye(n))),i?(o=we,a=!1):e.length>=200&&(o=Be,a=!1,e=new Wn(e));t:for(;++r-1},Un.prototype.set=function(t,e){var n=this.__data__,i=ti(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(kn||Un),string:new Hn}},Vn.prototype.delete=function(t){var e=ao(this,t).delete(t);return this.size-=e?1:0,e},Vn.prototype.get=function(t){return ao(this,t).get(t)},Vn.prototype.has=function(t){return ao(this,t).has(t)},Vn.prototype.set=function(t,e){var n=ao(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Wn.prototype.add=Wn.prototype.push=function(t){return this.__data__.set(t,a),this},Wn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.clear=function(){this.__data__=new Un,this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Gn.prototype.get=function(t){return this.__data__.get(t)},Gn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Un){var i=n.__data__;if(!kn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vn(i)}return n.set(t,e),this.size=n.size,this};var ci=Or(yi),di=Or(_i,!0);function hi(t,e){var n=!0;return ci(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function fi(e,n,i){for(var r=-1,o=e.length;++r0&&n(s)?e>1?mi(s,e-1,n,i,r):ke(r,s):i||(r[r.length]=s)}return r}var gi=Pr(),vi=Pr(!0);function yi(t,e){return t&&gi(t,e,Ts)}function _i(t,e){return t&&vi(t,e,Ts)}function bi(t,e){return _e(e,(function(e){return qa(t[e])}))}function wi(e,n){for(var i=0,r=(n=gr(n,e)).length;null!=e&&ie}function Li(t,e){return null!=t&&Rt.call(t,e)}function Si(t,e){return null!=t&&e in Mt(t)}function Mi(e,n,i){for(var o=i?we:be,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var h=e[l];l&&n&&(h=xe(h,Ye(n))),c=vn(h.length,c),u[l]=!i&&(n||a>=120&&h.length>=120)?new Wn(l&&h):t}h=e[0];var f=-1,p=u[0];t:for(;++f=s?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)}))}function $i(t,e,n){for(var i=-1,r=e.length,o={};++i-1;)s!==t&&Me.call(s,l,1),Me.call(t,l,1);return t}function Ui(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;go(r)?Me.call(t,r,1):lr(t,r)}}return t}function Vi(t,e){return t+cn(bn()*(e-t+1))}function Wi(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=cn(e/2))&&(t+=t)}while(e);return n}function Gi(t,e){return Eo(Co(t,e,tl),t+"")}function qi(t){return Zn(js(t))}function Zi(t,e){var n=js(t);return Do(n,oi(e,0,n.length))}function Xi(e,n,i,r){if(!Ja(e))return e;for(var o=-1,a=(n=gr(n,e)).length,s=a-1,l=e;null!=l&&++oo?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i>>1,a=t[o];null!==a&&!os(a)&&(n?a<=e:a=200){var u=e?null:Wr(t);if(u)return Je(u);a=!1,r=Be,l=new Wn}else l=e?[]:s;t:for(;++i=r?e:tr(e,n,i)}var _r=an||function(t){return ne.clearTimeout(t)};function br(t,e){if(e)return t.slice();var n=t.length,i=ie?ie(n):new t.constructor(n);return t.copy(i),i}function wr(t){var e=new t.constructor(t.byteLength);return new ee(e).set(new ee(t)),e}function xr(t,e){var n=e?wr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function kr(e,n){if(e!==n){var i=e!==t,r=null===e,o=e==e,a=os(e),s=n!==t,l=null===n,u=n==n,c=os(n);if(!l&&!c&&!a&&e>n||a&&s&&u&&!l&&!c||r&&s&&u||!i&&u||!o)return 1;if(!r&&!a&&!c&&e1?i[o-1]:t,s=o>2?i[2]:t;for(a=e.length>3&&"function"==typeof a?(o--,a):t,s&&vo(i[0],i[1],s)&&(a=o<3?t:a,o=1),n=Mt(n);++r-1?o[a?n[s]:s]:t}}function Rr(e){return Qr((function(n){var i=n.length,r=i,a=Bn.prototype.thru;for(e&&n.reverse();r--;){var s=n[r];if("function"!=typeof s)throw new Ot(o);if(a&&!l&&"wrapper"==io(s))var l=new Bn([],!0)}for(r=l?r:i;++r1&&b.reverse(),f&&c<_&&(b.length=c),this&&this!==ne&&this instanceof d&&(S=y||Ir(S)),S.apply(L,b)}}function zr(t,e){return function(n,i){return function(t,e,n,i){return yi(t,(function(t,r,o){e(i,n(t),r,o)})),i}(n,t,e(i),{})}}function Yr(e,n){return function(i,r){var o;if(i===t&&r===t)return n;if(i!==t&&(o=i),r!==t){if(o===t)return r;"string"==typeof i||"string"==typeof r?(i=ar(i),r=ar(r)):(i=or(i),r=or(r)),o=e(i,r)}return o}}function Fr(t){return Qr((function(e){return e=xe(e,Ye(oo())),Gi((function(n){var i=this;return t(e,(function(t){return pe(t,i,n)}))}))}))}function Br(e,n){var i=(n=n===t?" ":ar(n)).length;if(i<2)return i?Wi(n,e):n;var r=Wi(n,un(e/Ke(n)));return Ge(n)?yr(Qe(r),0,e).join(""):r.slice(0,e)}function $r(e){return function(n,i,o){return o&&"number"!=typeof o&&vo(n,i,o)&&(i=o=t),n=cs(n),i===t?(i=n,n=0):i=cs(i),function(t,e,n,i){for(var o=-1,a=gn(un((e-t)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=t,t+=n;return s}(n,i,o=o===t?nl))return!1;var c=a.get(e),d=a.get(n);if(c&&d)return c==n&&d==e;var h=-1,f=!0,p=2&i?new Wn:t;for(a.set(e,n),a.set(n,e);++h-1&&t%1==0&&t1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return ge(v,(function(n){var i="_."+n[0];e&n[1]&&!be(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(ut);return e?e[1].split(ct):[]}(i),n)))}function Po(e){var n=0,i=0;return function(){var r=yn(),o=16-(r-i);if(i=r,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function Do(e,n){var i=-1,r=e.length,o=r-1;for(n=n===t?r:n;++i1?e[n-1]:t;return i="function"==typeof i?(e.pop(),i):t,na(e,i)}));function ua(t){var e=zn(t);return e.__chain__=!0,e}function ca(t,e){return e(t)}var da=Qr((function(e){var n=e.length,i=n?e[0]:0,r=this.__wrapped__,o=function(t){return ri(t,e)};return!(n>1||this.__actions__.length)&&r instanceof $n&&go(i)?((r=r.slice(i,+i+(n?1:0))).__actions__.push({func:ca,args:[o],thisArg:t}),new Bn(r,this.__chain__).thru((function(e){return n&&!e.length&&e.push(t),e}))):this.thru(o)})),ha=Tr((function(t,e,n){Rt.call(t,n)?++t[n]:ii(t,n,1)})),fa=Nr(Fo),pa=Nr(Bo);function ma(t,e){return(Ba(t)?ge:ci)(t,oo(e,3))}function ga(t,e){return(Ba(t)?ve:di)(t,oo(e,3))}var va=Tr((function(t,e,n){Rt.call(t,n)?t[n].push(e):ii(t,n,[e])})),ya=Gi((function(t,e,n){var i=-1,o="function"==typeof e,a=Ha(t)?r(t.length):[];return ci(t,(function(t){a[++i]=o?pe(e,t,n):Ti(t,e,n)})),a})),_a=Tr((function(t,e,n){ii(t,n,e)}));function ba(t,e){return(Ba(t)?xe:Ri)(t,oo(e,3))}var wa=Tr((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),xa=Gi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&vo(t,e[0],e[1])?e=[]:n>2&&vo(e[0],e[1],e[2])&&(e=[e[0]]),Bi(t,mi(e,1),[])})),ka=sn||function(){return ne.Date.now()};function Ca(e,n,i){return n=i?t:n,n=e&&null==n?e.length:n,qr(e,d,t,t,t,t,n)}function La(e,n){var i;if("function"!=typeof n)throw new Ot(o);return e=ds(e),function(){return--e>0&&(i=n.apply(this,arguments)),e<=1&&(n=t),i}}var Sa=Gi((function(t,e,n){var i=1;if(n.length){var r=Xe(n,ro(Sa));i|=u}return qr(t,i,e,n,r)})),Ma=Gi((function(t,e,n){var i=3;if(n.length){var r=Xe(n,ro(Ma));i|=u}return qr(e,i,t,n,r)}));function Ta(e,n,i){var r,a,s,l,u,c,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ot(o);function m(n){var i=r,o=a;return r=a=t,d=n,l=e.apply(o,i)}function g(e){var i=e-c;return c===t||i>=n||i<0||f&&e-d>=s}function v(){var t=ka();if(g(t))return y(t);u=To(v,function(t){var e=n-(t-c);return f?vn(e,s-(t-d)):e}(t))}function y(e){return u=t,p&&r?m(e):(r=a=t,l)}function _(){var e=ka(),i=g(e);if(r=arguments,a=this,c=e,i){if(u===t)return function(t){return d=t,u=To(v,n),h?m(t):l}(c);if(f)return _r(u),u=To(v,n),m(c)}return u===t&&(u=To(v,n)),l}return n=fs(n)||0,Ja(i)&&(h=!!i.leading,s=(f="maxWait"in i)?gn(fs(i.maxWait)||0,n):s,p="trailing"in i?!!i.trailing:p),_.cancel=function(){u!==t&&_r(u),d=0,r=c=a=u=t},_.flush=function(){return u===t?l:y(ka())},_}var Ea=Gi((function(t,e){return li(t,1,e)})),Oa=Gi((function(t,e,n){return li(t,fs(e)||0,n)}));function Pa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ot(o);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(Pa.Cache||Vn),n}function Da(t){if("function"!=typeof t)throw new Ot(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Pa.Cache=Vn;var Aa=vr((function(t,e){var n=(e=1==e.length&&Ba(e[0])?xe(e[0],Ye(oo())):xe(mi(e,1),Ye(oo()))).length;return Gi((function(i){for(var r=-1,o=vn(i.length,n);++r=e})),Fa=Ei(function(){return arguments}())?Ei:function(t){return Ka(t)&&Rt.call(t,"callee")&&!se.call(t,"callee")},Ba=r.isArray,$a=le?Ye(le):function(t){return Ka(t)&&ki(t)==A};function Ha(t){return null!=t&&Xa(t.length)&&!qa(t)}function Ua(t){return Ka(t)&&Ha(t)}var Va=hn||fl,Wa=ue?Ye(ue):function(t){return Ka(t)&&ki(t)==w};function Ga(t){if(!Ka(t))return!1;var e=ki(t);return e==x||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!es(t)}function qa(t){if(!Ja(t))return!1;var e=ki(t);return e==k||e==C||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Za(t){return"number"==typeof t&&t==ds(t)}function Xa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function Ja(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ka(t){return null!=t&&"object"==typeof t}var Qa=ce?Ye(ce):function(t){return Ka(t)&&ho(t)==L};function ts(t){return"number"==typeof t||Ka(t)&&ki(t)==S}function es(t){if(!Ka(t)||ki(t)!=M)return!1;var e=re(t);if(null===e)return!0;var n=Rt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Nt.call(n)==Ft}var ns=de?Ye(de):function(t){return Ka(t)&&ki(t)==T},is=he?Ye(he):function(t){return Ka(t)&&ho(t)==E};function rs(t){return"string"==typeof t||!Ba(t)&&Ka(t)&&ki(t)==O}function os(t){return"symbol"==typeof t||Ka(t)&&ki(t)==P}var as=fe?Ye(fe):function(t){return Ka(t)&&Xa(t.length)&&!!Zt[ki(t)]},ss=Hr(Ni),ls=Hr((function(t,e){return t<=e}));function us(t){if(!t)return[];if(Ha(t))return rs(t)?Qe(t):Sr(t);if(nn&&t[nn])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[nn]());var e=ho(t);return(e==L?qe:e==E?Je:js)(t)}function cs(t){return t?(t=fs(t))===f||t===-f?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ds(t){var e=cs(t),n=e%1;return e==e?n?e-n:e:0}function hs(t){return t?oi(ds(t),0,g):0}function fs(t){if("number"==typeof t)return t;if(os(t))return m;if(Ja(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ja(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ot,"");var n=gt.test(t);return n||yt.test(t)?Qt(t.slice(2),n?2:8):mt.test(t)?m:+t}function ps(t){return Mr(t,Es(t))}function ms(t){return null==t?"":ar(t)}var gs=Er((function(t,e){if(wo(e)||Ha(e))Mr(e,Ts(e),t);else for(var n in e)Rt.call(e,n)&&Qn(t,n,e[n])})),vs=Er((function(t,e){Mr(e,Es(e),t)})),ys=Er((function(t,e,n,i){Mr(e,Es(e),t,i)})),_s=Er((function(t,e,n,i){Mr(e,Ts(e),t,i)})),bs=Qr(ri),ws=Gi((function(e,n){e=Mt(e);var i=-1,r=n.length,o=r>2?n[2]:t;for(o&&vo(n[0],n[1],o)&&(r=1);++i1),e})),Mr(t,eo(t),n),i&&(n=ai(n,7,Jr));for(var r=e.length;r--;)lr(n,e[r]);return n})),As=Qr((function(t,e){return null==t?{}:function(t,e){return $i(t,e,(function(e,n){return Cs(t,n)}))}(t,e)}));function Is(t,e){if(null==t)return{};var n=xe(eo(t),(function(t){return[t]}));return e=oo(e),$i(t,n,(function(t,n){return e(t,n[0])}))}var Ns=Gr(Ts),Rs=Gr(Es);function js(t){return null==t?[]:Fe(t,Ts(t))}var zs=Ar((function(t,e,n){return e=e.toLowerCase(),t+(n?Ys(e):e)}));function Ys(t){return Gs(ms(t).toLowerCase())}function Fs(t){return(t=ms(t))&&t.replace(bt,Ue).replace($t,"")}var Bs=Ar((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),$s=Ar((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Hs=Dr("toLowerCase"),Us=Ar((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Vs=Ar((function(t,e,n){return t+(n?" ":"")+Gs(e)})),Ws=Ar((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Gs=Dr("toUpperCase");function qs(e,n,i){return e=ms(e),(n=i?t:n)===t?function(t){return Wt.test(t)}(e)?function(t){return t.match(Ut)||[]}(e):function(t){return t.match(dt)||[]}(e):e.match(n)||[]}var Zs=Gi((function(e,n){try{return pe(e,t,n)}catch(t){return Ga(t)?t:new Ct(t)}})),Xs=Qr((function(t,e){return ge(e,(function(e){e=Io(e),ii(t,e,Sa(t[e],t))})),t}));function Js(t){return function(){return t}}var Ks=Rr(),Qs=Rr(!0);function tl(t){return t}function el(t){return Ai("function"==typeof t?t:ai(t,1))}var nl=Gi((function(t,e){return function(n){return Ti(n,t,e)}})),il=Gi((function(t,e){return function(n){return Ti(t,n,e)}}));function rl(t,e,n){var i=Ts(e),r=bi(e,i);null!=n||Ja(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=bi(e,Ts(e)));var o=!(Ja(n)&&"chain"in n&&!n.chain),a=qa(t);return ge(r,(function(n){var i=e[n];t[n]=i,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Sr(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,ke([this.value()],arguments))})})),t}function ol(){}var al=Fr(xe),sl=Fr(ye),ll=Fr(Se);function ul(t){return yo(t)?Ie(Io(t)):function(t){return function(e){return wi(e,t)}}(t)}var cl=$r(),dl=$r(!0);function hl(){return[]}function fl(){return!1}var pl,ml=Yr((function(t,e){return t+e}),0),gl=Vr("ceil"),vl=Yr((function(t,e){return t/e}),1),yl=Vr("floor"),_l=Yr((function(t,e){return t*e}),1),bl=Vr("round"),wl=Yr((function(t,e){return t-e}),0);return zn.after=function(t,e){if("function"!=typeof e)throw new Ot(o);return t=ds(t),function(){if(--t<1)return e.apply(this,arguments)}},zn.ary=Ca,zn.assign=gs,zn.assignIn=vs,zn.assignInWith=ys,zn.assignWith=_s,zn.at=bs,zn.before=La,zn.bind=Sa,zn.bindAll=Xs,zn.bindKey=Ma,zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ba(t)?t:[t]},zn.chain=ua,zn.chunk=function(e,n,i){n=(i?vo(e,n,i):n===t)?1:gn(ds(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];for(var a=0,s=0,l=r(un(o/n));ao?0:o+i),(r=r===t||r>o?o:ds(r))<0&&(r+=o),r=i>r?0:hs(r);i>>0)?(e=ms(e))&&("string"==typeof n||null!=n&&!ns(n))&&!(n=ar(n))&&Ge(e)?yr(Qe(e),0,i):e.split(n,i):[]},zn.spread=function(t,e){if("function"!=typeof t)throw new Ot(o);return e=null==e?0:gn(ds(e),0),Gi((function(n){var i=n[e],r=yr(n,0,e);return i&&ke(r,i),pe(t,this,r)}))},zn.tail=function(t){var e=null==t?0:t.length;return e?tr(t,1,e):[]},zn.take=function(e,n,i){return e&&e.length?tr(e,0,(n=i||n===t?1:ds(n))<0?0:n):[]},zn.takeRight=function(e,n,i){var r=null==e?0:e.length;return r?tr(e,(n=r-(n=i||n===t?1:ds(n)))<0?0:n,r):[]},zn.takeRightWhile=function(t,e){return t&&t.length?cr(t,oo(e,3),!1,!0):[]},zn.takeWhile=function(t,e){return t&&t.length?cr(t,oo(e,3)):[]},zn.tap=function(t,e){return e(t),t},zn.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new Ot(o);return Ja(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Ta(t,e,{leading:i,maxWait:e,trailing:r})},zn.thru=ca,zn.toArray=us,zn.toPairs=Ns,zn.toPairsIn=Rs,zn.toPath=function(t){return Ba(t)?xe(t,Io):os(t)?[t]:Sr(Ao(ms(t)))},zn.toPlainObject=ps,zn.transform=function(t,e,n){var i=Ba(t),r=i||Va(t)||as(t);if(e=oo(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:Ja(t)&&qa(o)?Yn(re(t)):{}}return(r?ge:yi)(t,(function(t,i,r){return e(n,t,i,r)})),n},zn.unary=function(t){return Ca(t,1)},zn.union=Ko,zn.unionBy=Qo,zn.unionWith=ta,zn.uniq=function(t){return t&&t.length?sr(t):[]},zn.uniqBy=function(t,e){return t&&t.length?sr(t,oo(e,2)):[]},zn.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?sr(e,t,n):[]},zn.unset=function(t,e){return null==t||lr(t,e)},zn.unzip=ea,zn.unzipWith=na,zn.update=function(t,e,n){return null==t?t:ur(t,e,mr(n))},zn.updateWith=function(e,n,i,r){return r="function"==typeof r?r:t,null==e?e:ur(e,n,mr(i),r)},zn.values=js,zn.valuesIn=function(t){return null==t?[]:Fe(t,Es(t))},zn.without=ia,zn.words=qs,zn.wrap=function(t,e){return Ia(mr(e),t)},zn.xor=ra,zn.xorBy=oa,zn.xorWith=aa,zn.zip=sa,zn.zipObject=function(t,e){return fr(t||[],e||[],Qn)},zn.zipObjectDeep=function(t,e){return fr(t||[],e||[],Xi)},zn.zipWith=la,zn.entries=Ns,zn.entriesIn=Rs,zn.extend=vs,zn.extendWith=ys,rl(zn,zn),zn.add=ml,zn.attempt=Zs,zn.camelCase=zs,zn.capitalize=Ys,zn.ceil=gl,zn.clamp=function(e,n,i){return i===t&&(i=n,n=t),i!==t&&(i=(i=fs(i))==i?i:0),n!==t&&(n=(n=fs(n))==n?n:0),oi(fs(e),n,i)},zn.clone=function(t){return ai(t,4)},zn.cloneDeep=function(t){return ai(t,5)},zn.cloneDeepWith=function(e,n){return ai(e,5,n="function"==typeof n?n:t)},zn.cloneWith=function(e,n){return ai(e,4,n="function"==typeof n?n:t)},zn.conformsTo=function(t,e){return null==e||si(t,e,Ts(e))},zn.deburr=Fs,zn.defaultTo=function(t,e){return null==t||t!=t?e:t},zn.divide=vl,zn.endsWith=function(e,n,i){e=ms(e),n=ar(n);var r=e.length,o=i=i===t?r:oi(ds(i),0,r);return(i-=n.length)>=0&&e.slice(i,o)==n},zn.eq=ja,zn.escape=function(t){return(t=ms(t))&&X.test(t)?t.replace(q,Ve):t},zn.escapeRegExp=function(t){return(t=ms(t))&&rt.test(t)?t.replace(it,"\\$&"):t},zn.every=function(e,n,i){var r=Ba(e)?ye:hi;return i&&vo(e,n,i)&&(n=t),r(e,oo(n,3))},zn.find=fa,zn.findIndex=Fo,zn.findKey=function(t,e){return Te(t,oo(e,3),yi)},zn.findLast=pa,zn.findLastIndex=Bo,zn.findLastKey=function(t,e){return Te(t,oo(e,3),_i)},zn.floor=yl,zn.forEach=ma,zn.forEachRight=ga,zn.forIn=function(t,e){return null==t?t:gi(t,oo(e,3),Es)},zn.forInRight=function(t,e){return null==t?t:vi(t,oo(e,3),Es)},zn.forOwn=function(t,e){return t&&yi(t,oo(e,3))},zn.forOwnRight=function(t,e){return t&&_i(t,oo(e,3))},zn.get=ks,zn.gt=za,zn.gte=Ya,zn.has=function(t,e){return null!=t&&fo(t,e,Li)},zn.hasIn=Cs,zn.head=Ho,zn.identity=tl,zn.includes=function(t,e,n,i){t=Ha(t)?t:js(t),n=n&&!i?ds(n):0;var r=t.length;return n<0&&(n=gn(r+n,0)),rs(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&Oe(t,e,n)>-1},zn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ds(n);return r<0&&(r=gn(i+r,0)),Oe(t,e,r)},zn.inRange=function(e,n,i){return n=cs(n),i===t?(i=n,n=0):i=cs(i),function(t,e,n){return t>=vn(e,n)&&t=-p&&t<=p},zn.isSet=is,zn.isString=rs,zn.isSymbol=os,zn.isTypedArray=as,zn.isUndefined=function(e){return e===t},zn.isWeakMap=function(t){return Ka(t)&&ho(t)==D},zn.isWeakSet=function(t){return Ka(t)&&"[object WeakSet]"==ki(t)},zn.join=function(t,e){return null==t?"":pn.call(t,e)},zn.kebabCase=Bs,zn.last=Go,zn.lastIndexOf=function(e,n,i){var r=null==e?0:e.length;if(!r)return-1;var o=r;return i!==t&&(o=(o=ds(i))<0?gn(r+o,0):vn(o,r-1)),n==n?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(e,n,o):Ee(e,De,o,!0)},zn.lowerCase=$s,zn.lowerFirst=Hs,zn.lt=ss,zn.lte=ls,zn.max=function(e){return e&&e.length?fi(e,tl,Ci):t},zn.maxBy=function(e,n){return e&&e.length?fi(e,oo(n,2),Ci):t},zn.mean=function(t){return Ae(t,tl)},zn.meanBy=function(t,e){return Ae(t,oo(e,2))},zn.min=function(e){return e&&e.length?fi(e,tl,Ni):t},zn.minBy=function(e,n){return e&&e.length?fi(e,oo(n,2),Ni):t},zn.stubArray=hl,zn.stubFalse=fl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=_l,zn.nth=function(e,n){return e&&e.length?Fi(e,ds(n)):t},zn.noConflict=function(){return ne._===this&&(ne._=Ht),this},zn.noop=ol,zn.now=ka,zn.pad=function(t,e,n){t=ms(t);var i=(e=ds(e))?Ke(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Br(cn(r),n)+t+Br(un(r),n)},zn.padEnd=function(t,e,n){t=ms(t);var i=(e=ds(e))?Ke(t):0;return e&&in){var r=e;e=n,n=r}if(i||e%1||n%1){var o=bn();return vn(e+o*(n-e+Kt("1e-"+((o+"").length-1))),n)}return Vi(e,n)},zn.reduce=function(t,e,n){var i=Ba(t)?Ce:Re,r=arguments.length<3;return i(t,oo(e,4),n,r,ci)},zn.reduceRight=function(t,e,n){var i=Ba(t)?Le:Re,r=arguments.length<3;return i(t,oo(e,4),n,r,di)},zn.repeat=function(e,n,i){return n=(i?vo(e,n,i):n===t)?1:ds(n),Wi(ms(e),n)},zn.replace=function(){var t=arguments,e=ms(t[0]);return t.length<3?e:e.replace(t[1],t[2])},zn.result=function(e,n,i){var r=-1,o=(n=gr(n,e)).length;for(o||(o=1,e=t);++rp)return[];var n=g,i=vn(t,g);e=oo(e),t-=g;for(var r=ze(i,e);++n=a)return e;var l=i-Ke(r);if(l<1)return r;var u=s?yr(s,0,l).join(""):e.slice(0,l);if(o===t)return u+r;if(s&&(l+=u.length-l),ns(o)){if(e.slice(l).search(o)){var c,d=u;for(o.global||(o=Tt(o.source,ms(pt.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var h=c.index;u=u.slice(0,h===t?l:h)}}else if(e.indexOf(ar(o),l)!=l){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r},zn.unescape=function(t){return(t=ms(t))&&Z.test(t)?t.replace(G,tn):t},zn.uniqueId=function(t){var e=++jt;return ms(t)+e},zn.upperCase=Ws,zn.upperFirst=Gs,zn.each=ma,zn.eachRight=ga,zn.first=Ho,rl(zn,(pl={},yi(zn,(function(t,e){Rt.call(zn.prototype,e)||(pl[e]=t)})),pl),{chain:!1}),zn.VERSION="4.17.19",ge(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zn[t].placeholder=zn})),ge(["drop","take"],(function(e,n){$n.prototype[e]=function(i){i=i===t?1:gn(ds(i),0);var r=this.__filtered__&&!n?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=vn(i,r.__takeCount__):r.__views__.push({size:vn(i,g),type:e+(r.__dir__<0?"Right":"")}),r},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),ge(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;$n.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),ge(["head","last"],(function(t,e){var n="take"+(e?"Right":"");$n.prototype[t]=function(){return this[n](1).value()[0]}})),ge(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");$n.prototype[t]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(tl)},$n.prototype.find=function(t){return this.filter(t).head()},$n.prototype.findLast=function(t){return this.reverse().find(t)},$n.prototype.invokeMap=Gi((function(t,e){return"function"==typeof t?new $n(this):this.map((function(n){return Ti(n,t,e)}))})),$n.prototype.reject=function(t){return this.filter(Da(oo(t)))},$n.prototype.slice=function(e,n){e=ds(e);var i=this;return i.__filtered__&&(e>0||n<0)?new $n(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),n!==t&&(i=(n=ds(n))<0?i.dropRight(-n):i.take(n-e)),i)},$n.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$n.prototype.toArray=function(){return this.take(g)},yi($n.prototype,(function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=zn[r?"take"+("last"==n?"Right":""):n],a=r||/^find/.test(n);o&&(zn.prototype[n]=function(){var n=this.__wrapped__,s=r?[1]:arguments,l=n instanceof $n,u=s[0],c=l||Ba(n),d=function(t){var e=o.apply(zn,ke([t],s));return r&&h?e[0]:e};c&&i&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,m=l&&!f;if(!a&&c){n=m?n:new $n(this);var g=e.apply(n,s);return g.__actions__.push({func:ca,args:[d],thisArg:t}),new Bn(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})})),ge(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Pt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);zn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Ba(r)?r:[],t)}return this[n]((function(n){return e.apply(Ba(n)?n:[],t)}))}})),yi($n.prototype,(function(t,e){var n=zn[e];if(n){var i=n.name+"";Rt.call(En,i)||(En[i]=[]),En[i].push({name:e,func:n})}})),En[jr(t,2).name]=[{name:"wrapper",func:t}],$n.prototype.clone=function(){var t=new $n(this.__wrapped__);return t.__actions__=Sr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Sr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Sr(this.__views__),t},$n.prototype.reverse=function(){if(this.__filtered__){var t=new $n(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$n.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ba(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var n,i=this;i instanceof Fn;){var r=Ro(i);r.__index__=0,r.__values__=t,n?o.__wrapped__=r:n=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,n},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var n=e;return this.__actions__.length&&(n=new $n(this)),(n=n.reverse()).__actions__.push({func:ca,args:[Jo],thisArg:t}),new Bn(n,this.__chain__)}return this.thru(Jo)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return dr(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,nn&&(zn.prototype[nn]=function(){return this}),zn}();"function"==typeof i&&"object"==typeof i.amd&&i.amd?(ne._=en,i((function(){return en}))):re?((re.exports=en)._=en,ie._=en):ne._=en}).call(this)},{buffer:"peL6"}],PG4O:[function(t,e,n){"use strict";var i=t("rbush"),r=t("point-in-polygon"),o=t("./lib/polygon_utils"),a=t("lodash");function s(t){void 0!==t&&this.loadFeatureCollection(t)}function l(t,e){var n=e.geometry.coordinates[0];if(r(t,n)){for(var i=1;i=n||!l(i,t)||(a++,0))}))}},s.prototype.search=function(t,e,n){return void 0===n?this.searchForOnePolygon(t,e):this.searchForMultiplePolygons(t,e,n)},s.prototype.loadFeatureCollection=function(t){var e=[],n=[],r=0;function a(t){n.push(t);var i=o.getBoundingBox(t.geometry.coordinates[0]);i.polyId=r++,e.push(i)}t.features.forEach((function(t){if(t.geometry&&void 0!==t.geometry.coordinates[0]&&t.geometry.coordinates[0].length>0)switch(t.geometry.type){case"Polygon":a(t);break;case"MultiPolygon":for(var e=t.geometry.coordinates,n=0;n border) {\n t = 1.0;\n } else if (dist > 0.0) {\n t = dist / border;\n }\n\n //works for overlapping circles if blending is enabled\n gl_FragColor = mix(color0, color1, t);\n}\n"},{}],XGkG:[function(t,e,n){e.exports="precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n float border = 0.1;\n float radius = 0.5;\n vec2 center = vec2(0.5, 0.5);\n\n vec4 pointColor = vec4(\n _color[0],\n _color[1],\n _color[2],\n _color[3]\n );\n\n vec2 m = gl_PointCoord.xy - center;\n float dist1 = radius - sqrt(m.x * m.x + m.y * m.y);\n\n float t1 = 0.0;\n if (dist1 > border) {\n t1 = 1.0;\n } else if (dist1 > 0.0) {\n t1 = dist1 / border;\n }\n\n //works for overlapping circles if blending is enabled\n //gl_FragColor = mix(color0, color1, t);\n\n //border\n float outerBorder = 0.05;\n float innerBorder = 0.8;\n vec4 borderColor = vec4(0, 0, 0, 0.4);\n vec2 uv = gl_PointCoord.xy;\n vec4 clearColor = vec4(0, 0, 0, 0);\n\n // Offset uv with the center of the circle.\n uv -= center;\n\n float dist2 = sqrt(dot(uv, uv));\n\n float t2 = 1.0 + smoothstep(radius, radius + outerBorder, dist2)\n - smoothstep(radius - innerBorder, radius, dist2);\n\n gl_FragColor = mix(mix(borderColor, clearColor, t2), pointColor, t1);\n}\n"},{}],AY9x:[function(t,e,n){e.exports="precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n vec2 center = vec2(0.5);\n vec2 uv = gl_PointCoord.xy - center;\n float smoothing = 0.005;\n vec4 _color1 = vec4(_color[0], _color[1], _color[2], _color[3]);\n float radius1 = 0.3;\n vec4 _color2 = vec4(_color[0], _color[1], _color[2], _color[3]);\n float radius2 = 0.5;\n float dist = length(uv);\n\n //SMOOTH\n float gamma = 2.2;\n color1.rgb = pow(_color1.rgb, vec3(gamma));\n color2.rgb = pow(_color2.rgb, vec3(gamma));\n\n vec4 puck = mix(\n mix(\n _color1,\n _color2,\n smoothstep(\n radius1 - smoothing,\n radius1 + smoothing,\n dist\n )\n ),\n vec4(0,0,0,0),\n smoothstep(\n radius2 - smoothing,\n radius2 + smoothing,\n dist\n )\n );\n\n //Gamma correction (prevents color fringes)\n puck.rgb = pow(puck.rgb, vec3(1.0 / gamma));\n gl_FragColor = puck;\n}\n"},{}],R6F0:[function(t,e,n){e.exports="precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n vec4 color1 = vec4(_color[0], _color[1], _color[2], _color[3]);\n\n //simple circles\n float d = distance (gl_PointCoord, vec2(0.5, 0.5));\n if (d < 0.5 ){\n gl_FragColor = color1;\n } else {\n discard;\n }\n}\n"},{}],sqgp:[function(t,e,n){e.exports="precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n //squares\n gl_FragColor = vec4(_color[0], _color[1], _color[2], _color[3]);\n}\n"},{}],JKQp:[function(t,e,n){e.exports="precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n gl_FragColor = vec4(\n _color[0],\n _color[1],\n _color[2],\n _color[3]\n );\n}\n"},{}],QCba:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.glify=void 0;var i=t("./lines"),r=t("./points"),o=t("./shapes"),a=t("./utils"),s=p(t("./shader/vertex/default.glsl")),l=p(t("./shader/fragment/dot.glsl")),u=p(t("./shader/fragment/point.glsl")),c=p(t("./shader/fragment/puck.glsl")),d=p(t("./shader/fragment/simple-circle.glsl")),h=p(t("./shader/fragment/square.glsl")),f=p(t("./shader/fragment/polygon.glsl"));function p(t){return t&&t.__esModule?t:{default:t}}function m(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("wd/R"))},V2N6:function(t){t.exports=JSON.parse('{"delete-account":"Delete My Account","delete-account?":"Do you want to delete your account?","enter-password":"Enter your password"}')},V2x9:function(t,e,n){!function(t){"use strict";t.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:"segundu balun",ss:"segundu %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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},V3s9:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.fit-content[data-v-6090c5f2] {\n max-width: -webkit-fit-content;\n max-width: -moz-fit-content;\n max-width: fit-content;\n}\n.is-brand-card[data-v-6090c5f2] {\n border: 1px solid #ccc;\n padding: 1em;\n border-radius: 6px;\n cursor: -webkit-grab;\n cursor: grab;\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n margin-bottom: 1em;\n}\n.is-brand-card.selected[data-v-6090c5f2] {\n border: 1px solid green;\n}\n.is-brand-card[data-v-6090c5f2]:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n",""])},V6Zk:function(t,e,n){"use strict";var i=n("pybT");n.n(i).a},VPXm:function(t){t.exports=JSON.parse('{"success-title":"¡Gracias por ayudar!","success-subtitle":"Recuerde verificar tu correo electrónico para poder iniciar sesión.","error-title":"Hubo un problema.","error-subtitle":"No se ha cargado tu tarjeta, pero aún puedes verificar tu correo electrónico e iniciar sesión."}')},VRB9:function(t){t.exports=JSON.parse('{"olm-dependent-on-donations":"Actualmente, OpenLitterMap depende totalmente de las donaciones.","its-important":"Es importante"}')},VSRU:function(t,e,n){"use strict";var i=n("1Hnl");n.n(i).a},Vclq:function(t,e,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^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;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},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:i,longMonthsParse:i,shortMonthsParse:i,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}})}(n("wd/R"))},VigF:function(t){t.exports=JSON.parse('{"finance":"Sfinansuj rozwój OpenLitterMap","help":"Potrzebujemy Twojej pomocy.","support":"Wspieraj otwarte dane dotyczące zanieczyszczenia tworzywami sztucznymi","help-costs":"Pomóż pokryć nasze koszty","help-hire":"Zatrudnić programistów, projektantów i absolwentów","help-produce":"Tworzyć filmiki","help-write":"Pisać artykuły","help-outreach":"Konferencje i popularyzacja","help-incentivize":"Zachęcaj do gromadzenia danych za pomocą Littercoin","more-soon":"Więcej ekscytujących aktualizacji już wkrótce","click-to-support":"Kliknij tutaj, aby wesprzeć"}')},Vjiq:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},WxRl:function(t,e,n){!function(t){"use strict";var e="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(t,e,n,i){var r=t;switch(n){case"s":return i||e?"néhány másodperc":"néhány másodperce";case"ss":return r+(i||e)?" másodperc":" másodperce";case"m":return"egy"+(i||e?" perc":" perce");case"mm":return r+(i||e?" perc":" perce");case"h":return"egy"+(i||e?" óra":" órája");case"hh":return r+(i||e?" óra":" órája");case"d":return"egy"+(i||e?" nap":" napja");case"dd":return r+(i||e?" nap":" napja");case"M":return"egy"+(i||e?" hónap":" hónapja");case"MM":return r+(i||e?" hónap":" hónapja");case"y":return"egy"+(i||e?" év":" éve");case"yy":return r+(i||e?" év":" éve")}return""}function i(t){return(t?"":"[múlt] ")+"["+e[this.day()]+"] LT[-kor]"}t.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(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,n){return t<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",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},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"X+Nf":function(t,e,n){"use strict";n.r(e);var i={name:"Littercoin",created:function(){},data:function(){return{userwallet:"",myBal:"",inputltrx:"",web3exists:!1,amountltrx:"0.0000"}},methods:{addWallet:function(){if(this.userwallet.length<40)return alert("Sorry, that doesnt look like a valid wallet ID. Please try again");axios({method:"post",url:"/en/settings/littercoin/update",data:{wallet:this.userwallet}}).then((function(t){alert("You have submitted a wallet id"),window.location.href=window.location.href})).catch((function(t){alert("Error! Please try again")}))},sendltrx:function(){this.inputltrx.length<10?alert("Please enter a valid wallet id. If you are unable to please contact @ info@openlittermap.com"):contract_instance.transfer(this.inputltrx,this.amountltrx,(function(t,e){t?alert(t):alert("Success! Your transaction # is :"+e)}))},deleteWallet:function(){axios({method:"post",url:"/en/settings/littercoin/removewallet",data:{wallet:this.userwallet}}).then((function(t){alert("Your wallet ID has been deleted."),window.location.href=window.location.href})).catch((function(t){alert("Error! Please try again")}))}},watch:{inputltrx:function(){this.inputltrx.length>10&&(document.getElementById("sendcoinbutton").disabled=!1),this.inputltrx.length<10&&(document.getElementById("sendcoinbutton").disabled=!0)}}},r=n("KHd+"),o=Object(r.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[n("h1",{staticClass:"title is-4"},[t._v(" "+t._s(t.$t("settings.littercoin.littercoin-header")))]),t._v(" "),n("hr"),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-two-thirds is-offset-1"},[n("p",[t._v(t._s(t.$t("settings.littercoin.back-later")))])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("To see your Littercoin balance and send Littercoin from this page you will need to download Chrome and install "),e("a",{attrs:{href:"https://metamask.io/"}},[this._v("MetaMask")]),this._v(". Unfortuantely there is no mobile client available yet. When you install MetaMask these instructions will disappear.")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ol",[n("li",[t._v("To create a new wallet visit "),n("a",{attrs:{href:"https://myetherwallet.com"}},[t._v("MyEtherWallet")]),t._v(" and "),n("a",{attrs:{href:"https://myetherwallet.github.io/knowledge-base/private-keys-passwords/difference-beween-private-key-and-keystore-file.html"}},[t._v("export your Keystore UTC File")]),t._v(", which is an encrypted version of your password. If you are using Mist or some other wallet, export the same file (Accounts -> Backup -> Accounts). This file should be available on Unix systems at ~/User/Library/Ethereum/keystore/ as a 'UTC....' file.")]),t._v(" "),n("li",[t._v("Open Metamask and import this file as a json file.")]),t._v(" "),n("li",[t._v("Upload 7-days in a row, be the first to upload from a Country, State or City and earn Littercoin! More options coming soon!")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h1",{staticClass:"title is-3"},[this._v("My Ethereum: "),e("span",{attrs:{id:"mybal"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("h1",{staticClass:"title is-3"},[this._v("My Littercoin: "),e("span",{attrs:{id:"myLtrx"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"input-group-addon",attrs:{id:"sizing-addon2"}},[e("span",[e("strong",[this._v("SEND")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"input-group-addon",attrs:{id:"sizing-addon2"}},[e("span",[e("strong",[this._v("LTRX")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("b",[this._v("Step 1: ")]),this._v('Add the public Littercoin ID to the "Watch Token" section of your Ethereum Wallet:')])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("b",[this._v("Step 2: ")]),this._v("Enter your Ethereum Wallet ID here so we know where to send and read your available Littercoin:")])}],!1,null,null,null);e.default=o.exports},X709:function(t,e,n){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?":e":1===e||2===e?":a":":e")},week:{dow:1,doy:4}})}(n("wd/R"))},XDpg:function(t,e,n){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},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}})}(n("wd/R"))},XH6m:function(t,e,n){"use strict";var i=n("OBJH");n.n(i).a},XLvN:function(t,e,n){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?t>=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n("wd/R"))},XdhC:function(t,e,n){var i=n("o06W");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},Xerb:function(t,e,n){var i=n("qrmX");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},Xhkc:function(t,e,n){var i=n("TSte");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},Xlqv:function(t){t.exports=JSON.parse('{"change-privacy":"Change My Privacy","maps":"Maps","credit-name":"Credit my name","credit-username":"Credit my username","name-imgs-yes":"Your name is set to appear on each of the images you upload to the maps.","username-imgs-yes":"Your username is set to appear on each of the images you upload to the maps.","name-username-map-no":"Your name and username will not appear on the maps.","leaderboards":"Leaderboards","credit-my-name":"Credit my name","credit-my-username":"Credit my username","name-leaderboards-yes":"Your name is set to appear in any leaderboards you qualify for.","username-leaderboards-yes":"Your username is set to appear in any leaderboards you qualify for.","name-username-leaderboards-no":"Your name and username will not appear on the Leaderboards.","created-by":"Created By","name-locations-yes":"Your name is set to appear on any locations you create.","username-locations-yes":"Your username is set to appear on any locations you create.","name-username-locations-yes":"Your name and username will not appear in the Created By section of any locations you add to the database.","update":"Update"}')},XqNS:function(t){t.exports=JSON.parse('{"taken-on":"Tomada en","with-a":"Con un","by":"Por","meter-hex-grids":"metros mallas hexagonales","hover-to-count":"Pase el cursor por encima para contar","pieces-of-litter":"piezas de basura","hover-polygons-to-count":"Pasa el cursor por encima de los polígonos para contar"}')},"Xs+J":function(t){t.exports=JSON.parse('{"change-privacy":"Zmień moją prywatność","maps":"Maps","credit-name":"Wpisz moje imie","credit-username":"Wpisz moją nazwę użytkownika","name-imgs-yes":"Twoje imię pojawi się na każdym obrazie przesłanym na mapy.","username-imgs-yes":"Twoja nazwa użytkownika pojawi się na każdym obrazie przesłanym na mapy.","name-username-map-no":"Twoje imię oraz nazwa użytkownika nie pojawią się na mapach.","leaderboards":"Ranking","credit-my-name":"Wpisz moje imie","credit-my-username":"Wpisz moją nazwę użytkownika","name-leaderboards-yes":"Twoje imię pojawi się we wszystkich tabelach rankingowych, do których się kwalifikujesz.","username-leaderboards-yes":"Twoja nazwa użytkownika będzie się pojawiać we wszystkich tabelach rankingowych, do których się kwalifikujesz.","name-username-leaderboards-no":"Twoje imię oraz nazwa użytkownika nie pojawią się na tablicach wyników.","created-by":"Docenione przez","name-locations-yes":"Twoje imię będzie wyświetlane we wszystkich tworzonych przez Ciebie lokalizacjach.","username-locations-yes":"Twoja nazwa użytkownika jest ustawiona tak, aby pojawiała się we wszystkich tworzonych przez Ciebie lokalizacjach.","name-username-locations-yes":"Twoje imię oraz nazwa użytkownika nie pojawią się w sekcji Utworzone Przez w żadnej lokalizacji, którą dodasz do bazy danych.","update":"Aktualizuj"}')},XuX8:function(t,e,n){t.exports=n("INkZ")},Xvau:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("kGIl"),a=n.n(o);n("5A0h");function s(){return(s=Object.assign||function(t){for(var e=1;e-1:t.checkbox},on:{change:function(e){var n=t.checkbox,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.checkbox=n.concat([null])):o>-1&&(t.checkbox=n.slice(0,o).concat(n.slice(o+1)))}else t.checkbox=r}}}),t._v(" "),n("label",{attrs:{for:"ConfirmToS"},domProps:{innerHTML:t._s(t.$t("auth.subscribe.form-account-conditions"))}})]),t._v(" "),n("div",{staticClass:"captcha"},[t.errorExists("g_recaptcha_response")?n("span",{staticClass:"is-danger",domProps:{textContent:t._s(t.getFirstError("g_recaptcha_response"))}}):t._e(),t._v(" "),n("vue-recaptcha",{attrs:{sitekey:t.computedKey,loadRecaptchaScript:!0},on:{verify:t.recaptcha},model:{value:t.g_recaptcha_response,callback:function(e){t.g_recaptcha_response=e},expression:"g_recaptcha_response"}})],1),t._v(" "),n("br"),t._v(" "),n("div",{staticStyle:{"text-align":"center","padding-bottom":"1em"}},[n("button",{class:t.button,attrs:{disabled:t.checkDisabled}},[t._v(t._s(t.$t("auth.subscribe.form-btn")))]),t._v(" "),n("p",[t._v(t._s(t.$t("auth.subscribe.create-account-note"))+" ")])])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-user"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-envelope"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-key"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-refresh"})])}],!1,null,null,null).exports,Loading:a.a},created:function(){var t,e=this;return(t=r.a.mark((function t(){var n,i,o;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return window.location.href.includes("?")&&(e.plan=window.location.href.split("?")[1].split("=")[1]),window.location.href.includes("&")&&(n=window.location.href.split("&")[1].split("=")[1],i=e.$t("signup."+n+"-title"),o=e.$t("signup."+n+"-subtitle"),e.$swal(i,o,n)),t.next=4,e.$store.dispatch("GET_PLANS");case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){g(o,i,r,a,s,"next",t)}function s(t){g(o,i,r,a,s,"throw",t)}a(void 0)}))})()},data:function(){return{loading:!0,plan:""}}},y=Object(m.a)(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("section",{staticClass:"hero is-info is-medium"},[n("div",{staticClass:"hero-body"},[n("div",{staticClass:"container"},[n("h1",{staticClass:"title"},[t._v("\n "+t._s(t.$t("auth.subscribe.title"))+"\n ")]),t._v(" "),n("h2",{staticClass:"subtitle"},[t._v("\n "+t._s(t.$t("auth.subscribe.subtitle"))+"\n ")])])])]),t._v(" "),n("section",[n("create-account",{attrs:{plan:t.plan}})],1)])}),[],!1,null,"193873b8",null);e.default=y.exports},XwJu:function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},Y5fm:function(t,e){t.exports="/images/vendor/leaflet/dist/marker-icon.png?2273e3d8ad9264b7daa5bdbf8e6b47f8"},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,a,s,l=1,u={},c=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n=11?t:t+12},meridiem:function(t,e,n){var i=100*t+e;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n("wd/R"))},YTrc:function(t,e,n){"use strict";var i=n("zrUC");n.n(i).a},YWwG:function(t,e,n){var i=n("5fw7");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},Ydyl:function(t,e,n){"use strict";var i=n("Xhkc");n.n(i).a},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},YytN:function(t){t.exports=JSON.parse('{"toggle-email":"Email Abonnement Wijzigen","we-send-updates":"We storen soms mails met updates en goed nieuws.","subscribe":"Je kan je hier aanmelden en afmelden voor onze emails.","current-status":"Huidige Status","change-status":"Verander Status"}')},Z4QM:function(t,e,n){!function(t){"use strict";var e=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,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(t){return"شام"===t},meridiem:function(t,e,n){return t<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(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("wd/R"))},ZAMP:function(t,e,n){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<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}})}(n("wd/R"))},ZLfz:function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="ZLfz"},Zduo:function(t,e,n){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_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:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,n){return t>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("wd/R"))},ZfPz:function(t,e,n){var i=n("LYk4");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},Zhs0:function(t){t.exports=JSON.parse('{"success":"Success","error":"Error!","tags-added":"Success! Your tags have been added","subscription-cancelled":"Your subscription has been cancelled","privacy-updated":"Your Privacy Settings have been saved","litter-toggled":"Picked up value updated","settings":{"subscribed":"You have been subscribed to the updates and good news!","unsubscribed":"You have unsubscribed. You will no longer receive the good news!","flag-updated":"Your flag has been updated"}}')},ZoWG:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={smoking:["butts","lighters","cigaretteBox","tobaccoPouch","skins","smoking_plastic","filters","filterbox","vape_pen","vape_oil","smokingOther"],alcohol:["beerBottle","spiritBottle","wineBottle","beerCan","brokenGlass","bottleTops","paperCardAlcoholPackaging","plasticAlcoholPackaging","pint","six_pack_rings","alcohol_plastic_cups","alcoholOther"],art:["item"],coffee:["coffeeCups","coffeeLids","coffeeOther"],food:["sweetWrappers","paperFoodPackaging","plasticFoodPackaging","plasticCutlery","crisp_small","crisp_large","styrofoam_plate","napkins","sauce_packet","glass_jar","glass_jar_lid","aluminium_foil","pizza_box","foodOther"],softdrinks:["waterBottle","fizzyDrinkBottle","tinCan","bottleLid","bottleLabel","sportsDrink","straws","plastic_cups","plastic_cup_tops","milk_bottle","milk_carton","paper_cups","juice_cartons","juice_bottles","juice_packet","ice_tea_bottles","ice_tea_can","energy_can","pullring","strawpacket","styro_cup","broken_glass","softDrinkOther"],sanitary:["gloves","facemask","condoms","nappies","menstral","deodorant","ear_swabs","tooth_pick","tooth_brush","wetwipes","hand_sanitiser","sanitaryOther"],dumping:["small","medium","large"],industrial:["oil","industrial_plastic","chemical","bricks","tape","industrial_other"],coastal:["microplastics","mediumplastics","macroplastics","rope_small","rope_medium","rope_large","fishing_gear_nets","ghost_nets","buoys","degraded_plasticbottle","degraded_plasticbag","degraded_straws","degraded_lighters","balloons","lego","shotgun_cartridges","styro_small","styro_medium","styro_large","coastal_other"],brands:["adidas","aldi","amazon","apple","applegreen","asahi","avoca","ballygowan","bewleys","brambles","budweiser","bulmers","burgerking","butlers","cadburys","cafenero","camel","carlsberg","centra","circlek","coke","coles","colgate","corona","costa","doritos","drpepper","dunnes","duracell","durex","esquires","evian","fosters","frank_and_honest","fritolay","gatorade","gillette","guinness","haribo","heineken","insomnia","kellogs","kfc","lego","lidl","lindenvillage","lolly_and_cookes","loreal","lucozade","marlboro","mars","mcdonalds","nero","nescafe","nestle","nike","obriens","pepsi","powerade","redbull","ribena","sainsburys","samsung","spar","starbucks","stella","subway","supermacs","supervalu","tayto","tesco","thins","volvic","waitrose","walkers","wilde_and_greene","woolworths","wrigleys"],other:["random_litter","bags_litter","overflowing_bins","plastic","automobile","tyre","traffic_cone","metal","plastic_bags","election_posters","forsale_posters","cable_tie","books","magazine","paper","stationary","washing_up","clothing","hair_tie","ear_plugs","elec_small","elec_large","batteries","balloons","life_buoy","other"],trashdog:["trashdog","littercat","duck"],dogshit:["poo","poo_in_bag"]}},Zqlq:function(t,e,n){"use strict";var i=n("XdhC");n.n(i).a},ZzwE:function(t,e,n){var i=n("CFQK");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},aDiT:function(t,e,n){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}(i),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o.vt-icon>svg{fill:#199919}.vt-info{border-color:#003bc8}.vt-info>.vt-icon>svg{fill:#003bc8}.vt-warning{border-color:#ffb300}.vt-warning>.vt-icon>svg{fill:#ffb300}.vt-error{border-color:#b11414}.vt-error>.vt-icon>svg{fill:#b11414}.vt-notification{-webkit-transition:-webkit-transform .1s ease;transition:-webkit-transform .1s ease;transition:transform .1s ease;transition:transform .1s ease,-webkit-transform .1s ease;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:auto;-webkit-box-shadow:0 0 10px .5px rgba(0,0,0,.35);box-shadow:0 0 10px .5px rgba(0,0,0,.35);padding:10px 20px;min-height:100px;min-width:250px;border-radius:5px;margin-bottom:10px;margin-left:auto;margin-right:auto;z-index:9999;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:wrap row;flex-flow:row wrap;-ms-flex-line-pack:center;align-content:center}.vt-notification>.vt-progress-bar{height:3px;width:100%;margin-bottom:5px}.vt-notification>.vt-progress-bar>.vt-progress{max-width:100%;height:3px;overflow:hidden;-webkit-transition:max-width 1ms ease-in-out;transition:max-width 1ms ease-in-out}.vt-notification>.vt-content{width:auto;height:100%;max-width:250px;word-break:break-word}.vt-notification>.vt-content>.vt-title{font-size:1.4rem;margin:0}.vt-notification>.vt-content>.vt-paragraph{font-size:1rem;margin:.5rem 0}.vt-notification>.vt-circle{border-style:solid;border-width:2px;width:65px;height:65px;border-radius:50%;margin:5px!important}.vt-notification>.vt-icon-container{margin:0 20px;position:relative}.vt-notification>.vt-icon-container>.vt-icon{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vt-notification>.vt-buttons{-ms-flex-preferred-size:100%;flex-basis:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-line-pack:center;align-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;margin:5px -23px 0}.vt-notification>.vt-buttons>button{-ms-flex-preferred-size:48%;flex-basis:48%;width:auto;margin-bottom:4px;border-radius:4px}@media (max-width:268px){.vt-notification{min-height:auto;min-width:100%;border-radius:0}.vt-notification>.vt-content{text-align:center}.vt-notification-container{width:100%;margin:0}}.vt-will-change{will-change:transform,opacity}.vt-move{-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:.2s;transition-duration:.2s}.vt-move[data-delayed=true]{-webkit-transition-delay:.2s!important;transition-delay:.2s!important}.vt-spinner{width:60px;height:60px;border-radius:50%;background-color:transparent;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.vt-cursor-wait{cursor:wait}.vt-cursor-pointer{cursor:pointer}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.vt-theme-dark{background-color:#1d1d1d}.vt-theme-dark>.vt-progress-bar{background-color:#373737}.vt-theme-dark>.vt-progress-bar>.vt-progress{background-color:#6a6a6a}.vt-theme-dark>.vt-content>.vt-title{color:#dcdcdc}.vt-theme-dark>.vt-content>.vt-paragraph{color:#dcdcdc}.vt-theme-dark>.vt-buttons>button{border:1px solid #373737;background-color:#373737;color:#dcdcdc;-webkit-transition:all .2s ease-out;transition:all .2s ease-out}.vt-theme-dark>.vt-buttons>button:hover{background-color:#c3c3c3;color:#2a2a2a;-webkit-transition:all .2s ease-out;transition:all .2s ease-out}.vt-theme-dark>.vt-prompt{border-color:#d0d0d0}.vt-theme-dark>.vt-prompt>.vt-icon>svg{fill:#d0d0d0}.vt-theme-dark>.vt-icon-container>.vt-spinner{border:2px solid #6a6a6a;border-top:2px solid #fff}.vt-theme-light{background-color:#f0f0f0}.vt-theme-light>.vt-progress-bar{background-color:#d7d7d7}.vt-theme-light>.vt-progress-bar>.vt-progress{background-color:#a4a4a4}.vt-theme-light>.vt-content>.vt-title{color:#313131}.vt-theme-light>.vt-content>.vt-paragraph{color:#313131}.vt-theme-light>.vt-buttons>button{border:1px solid #d7d7d7;background-color:#d7d7d7;color:#313131;-webkit-transition:all .2s ease-out;transition:all .2s ease-out}.vt-theme-light>.vt-buttons>button:hover{background-color:#4a4a4a;color:#e3e3e3;-webkit-transition:all .2s ease-out;transition:all .2s ease-out}.vt-theme-light>.vt-prompt{border-color:#3e3e3e}.vt-theme-light>.vt-prompt>.vt-icon>svg{fill:#3e3e3e}.vt-theme-light>.vt-icon-container>.vt-spinner{border:2px solid #a4a4a4;border-top:2px solid #0b0b0b}.vt-bottom-enter-active,.vt-center-enter-active,.vt-left-enter-active,.vt-right-enter-active,.vt-top-enter-active{-webkit-transition:all .2s ease-out;transition:all .2s ease-out}.vt-bottom-leave-active,.vt-center-leave-active,.vt-left-leave-active,.vt-right-leave-active,.vt-top-leave-active{-webkit-transition:all .2s ease-in;transition:all .2s ease-in}.vt-right-enter,.vt-right-leave-to{-webkit-transform:translateX(50px);transform:translateX(50px);opacity:0}.vt-left-enter,.vt-left-leave-to{-webkit-transform:translateX(-50px);transform:translateX(-50px);opacity:0}.vt-bottom-enter,.vt-bottom-leave-to{-webkit-transform:translateY(50px);transform:translateY(50px);opacity:0}.vt-top-enter,.vt-top-leave-to{-webkit-transform:translateY(-50px);transform:translateY(-50px);opacity:0}.vt-center-enter,.vt-center-leave-to{opacity:0}",""]),t.exports=e},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;rn.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var l=0;l0&&this.$root.$emit("vtResumed",{id:this.id}),this.timerId=window.setTimeout((function(){return t.$emit("vtFinished")}),this.timerFinishesAt.getTime()-Date.now()),this.progressId=a(this.progressBar))},timerPause:function(){this.canPause&&(window.clearTimeout(this.timerId),this.timerId=null,s(this.progressId),this.progressId=null,this.$root.$emit("vtPaused",{id:this.id}),this.timerPausedAt=new Date)},progressBar:function(){if(this.progress<100){var t=this.timerFinishesAt.getTime()-this.timerStartedAt.getTime(),e=Date.now()-this.timerStartedAt.getTime();this.progress=e/t*100,this.timerId&&(this.progressId=a(this.progressBar))}else this.progressId=s(this.progressId)}},watch:{isHovered:function(t){t?this.timerPause():this.timerStart()}},beforeDestroy:function(){this.progress=0,window.clearTimeout(this.timerId),this.progressId&&(s(this.progressId),this.progressId=null)}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.hideProgressbar,expression:"!hideProgressbar"}],staticClass:"vt-progress-bar"},[n("div",{staticClass:"vt-progress",style:{width:this.progress+"%"}})])}),[],!1,null,null,null).exports,c=function(t){return"boolean"==typeof t},d=function(t){return"string"==typeof t},h=function(t){return t===Object(t)},f=function(t,e,n){return t>e&&t<=n},p=l({name:"Icon",props:{mode:{type:String},type:{type:String},icon:{type:[Object,String]},baseIconClass:{type:String,default:""}},computed:{userIcon:function(){if(!this.icon)return!1;var t={tag:"i",ligature:"",class:this.baseIconClass};return d(this.icon)&&(this.icon.toLowerCase().includes("window.innerWidth&&(this.$el.getBoundingClientRect().right,window.innerWidth,this.boundingClientRect.width),this.$el.getBoundingClientRect().right,this.boundingClientRect.width,Math.abs(this.boundingClientRect.left-this.$el.getBoundingClientRect().left)>this.removalDistance&&this.closeNotification(),this.isDragged=!1,setTimeout((function(){t.dragPos={},t.dragStartPos={},t.$el.classList.toggle("vt-will-change")})))},xPos:function(t){return t.targetTouches&&t.targetTouches.length>0?t.targetTouches[0].clientX:t.clientX},yPos:function(t){return t.targetTouches&&t.targetTouches.length>0?t.targetTouches[0].clientY:t.clientY}}},{computed:{tag:function(){return this.hasUrl?"a":"div"},hasUrl:function(){return d(this.status.url)&&this.status.url.length>0||h(this.status.url)&&(this.routerRouteExits||!!this.status.url.href)},urlTarget:function(){if(this.status.url){if(d(this.status.url))return this.routerRouteExits?{href:this.$vtRouter.resolve(this.status.url).href}:{href:this.status.url};if(h(this.status.url))return!this.isRouterLinkObject&&this.status.url.href?this.status.url:this.routerRouteExits?{href:this.$vtRouter.resolve(this.status.url).href}:{}}return{}},isRouterLinkObject:function(){return!!this.status.url.path||!!this.status.url.name},routerRouteExits:function(){var t=this;return!!this.$vtRouter&&!!this.$vtRouter.options.routes.find((function(e){return e.path==="/"+t.status.url.path||e.path===t.status.url.path||e.name===t.status.url.name}))}},methods:{handleRedirect:function(t){if(this.hasUrl){if(h(this.status.url)&&this.status.url.href||d(this.status.url)&&!this.routerRouteExits)return;t.preventDefault(),this.$vtRouter&&this.$vtRouter.push(this.status.url)}}}}],data:function(){return{isHovered:!1}},mounted:function(){var t=this;this.$el.addEventListener("click",this.dismiss),"loader"===this.status.mode&&this.$root.$once("vtLoadStop",(function(e){e.id?e.id===t.status.id&&t.closeNotification():t.closeNotification()}))},computed:{notificationClass:function(){var t={};return this.hasUrl?t["vt-cursor-pointer"]=!0:"loader"===this.status.mode&&(t["vt-cursor-wait"]=!0),t["vt-theme-"+this.status.theme]=!0,t},isNotification:function(){return-1===["prompt","loader"].indexOf(this.status.mode)}},methods:{closeNotification:function(){var t=Math.ceil(this.$refs["progress-"+this.status.id]?this.$refs["progress-"+this.status.id].progress:void 0);(isNaN(t)||t<100)&&this.isNotification&&(this.$root.$emit("vtDismissed",{id:this.status.id}),this.status.callback&&this.status.callback()),t>=100&&this.isNotification&&(this.$root.$emit("vtFinished",{id:this.status.id}),this.status.callback&&this.status.callback())},dismiss:function(t){this.isNotification&&!this.hasMoved&&this.closeNotification(),this.handleRedirect(t)},respond:function(t){this.closeNotification(),this.$root.$emit("vtPromptResponse",{id:this.status.id,response:t})}},beforeDestroy:function(){this.$el.removeEventListener("click",this.dismiss)}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,t._b({tag:"component",staticClass:"vt-notification",class:t.notificationClass,style:t.draggableStyles,attrs:{draggable:"false"},on:{mouseenter:function(e){t.isHovered=!0},mouseleave:function(e){t.isHovered=!1},touchstart:function(e){t.isHovered=!0},touchend:function(e){t.isHovered=!1}}},"component",t.urlTarget,!1),[t.isNotification&&t.status.canTimeout?n("ProgressBar",{ref:"progress-"+t.status.id,attrs:{"can-pause":t.status.canPause,duration:t.status.duration,"is-hovered":t.isHovered,"hide-progressbar":t.status.hideProgressbar,id:t.status.id},on:{vtFinished:t.closeNotification}}):t._e(),n("div",{staticClass:"vt-content"},[t.status.title?n("h2",{staticClass:"vt-title",domProps:{textContent:t._s(t.status.title)}}):t._e(),n("p",{staticClass:"vt-paragraph",domProps:{innerHTML:t._s(t.status.body)}})]),t.status.iconEnabled?n("Icon",{attrs:{mode:t.status.mode,type:t.status.type,icon:t.status.icon,"base-icon-class":t.baseIconClass}}):t._e(),"prompt"===t.status.mode?n("div",{staticClass:"vt-buttons"},t._l(t.status.answers,(function(e,i,r){return n("button",{key:r,domProps:{textContent:t._s(i)},on:{click:function(n){return t.respond(e)}}})})),0):t._e()],1)}),[],!1,null,null,null).exports,g=l({name:"Transition",props:{transition:{type:[String,Object],required:!0},position:{type:String,required:!0}},methods:{leave:function(t){if(!(this.$parent.singular||this.$parent.oneType&&1===this.$parent.$el.childNodes.length)){var e=this.position.split("-"),n=window.getComputedStyle(t),i=n.height,r=n.width,o=n.marginBottom;t.style.left=t.offsetLeft-(1===t.parentNode.childNodes.length?parseInt(r):0)+"px",t.style.top=t.offsetTop+"px","center"===e[0]&&(t.style.top=parseInt(t.style.top)-parseInt(i)/2-parseInt(o)/2+"px"),"bottom"===e[0]&&(t.style.top=parseInt(t.style.top)-parseInt(i)-parseInt(o)+"px"),t.style.width=r,t.style.position="absolute"}},beforeEnter:function(t){this.$el.childNodes.forEach((function(t){return delete t.dataset.delayed})),t.__vue__.status.delayed&&(t.dataset.delayed=!0,t.classList.add("vt-move"),delete t.__vue__.status.delayed)},afterEnter:function(t){t.removeAttribute("data-delayed")},beforeLeave:function(t){for(var e=0;e>t/4).toString(16)}))},getTitle:function(t){if(t.title)return t.title;if(c(t.defaultTitle)){if(!t.defaultTitle)return"";if("prompt"===t.mode||"loader"===t.mode)return"";if(t.type)return t.type.charAt(0).toUpperCase()+t.type.slice(1)}if(this.settings.defaultTitle){if("prompt"===t.mode||"loader"===t.mode)return"";if(t.type)return t.type.charAt(0).toUpperCase()+t.type.slice(1)}return"Info"},arrayHasType:function(t){return!!this.toasts.find((function(e){return e.mode&&e.mode===t.mode||e.type&&e.type===t.type}))},setSettings:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Object.keys(this.settings).forEach((function(n){void 0!==e[n]&&t.$set(t.settings,n,e[n])})):this.settings=Object.assign({},this._props),this.settings},getSettings:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.settings[t]?this.settings[t]:this.settings},stopLoader:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e;return(n="string"==typeof e?[e]:Array.isArray(e)?e:this.toasts.map((function(t){if("loader"===t.mode)return t.id}))).forEach((function(e){t.$root.$emit("vtLoadStop",{id:e})})),n.length},add:function(t){var e=Object.assign({},t);return e.duration=this.settings.warningInfoDuration,Number(t.duration)>0?e.duration=Number(t.duration):t.type&&(e.duration="error"===t.type?this.settings.errorDuration:"success"===t.type?this.settings.successDuration:this.settings.warningInfoDuration),e.answers=t.answers&&Object.keys(t.answers).length>0?t.answers:{Yes:!0,No:!1},e.canPause=c(t.canPause)?t.canPause:this.settings.canPause,e.hideProgressbar=c(t.hideProgressbar)?t.hideProgressbar:this.settings.hideProgressbar,e.id=this.uuidv4(),e.title=this.getTitle(t),e.canTimeout=c(t.canTimeout)?t.canTimeout:this.settings.canTimeout,e.iconEnabled=c(t.iconEnabled)?t.iconEnabled:this.settings.iconEnabled,-1===["prompt","loader"].indexOf(t.mode)?e.draggable=c(t.draggable)?t.draggable:this.settings.draggable:e.draggable=!1,e.dragThreshold=f(t.dragThreshold,0,5)?t.dragThreshold:this.settings.dragThreshold,"prompt"!==t.mode&&"loader"!==t.mode||(e.canTimeout=!1),e.theme=t.theme?t.theme:this.settings.theme,this.settings.singular&&this.toasts.length>0||this.settings.oneType&&this.arrayHasType(e)||this.toasts.length>=this.settings.maxToasts?(this.$set(this.queue,this.queue.length,e),e.id):(this.$set(this.toasts,this.toasts.length,e),e.id)},get:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(t){var e=this.toasts.find((function(e){return e.id===t}));return e||(e=this.queue.find((function(e){return e.id===t}))),e||!1}return this.toasts.concat(this.queue)},set:function(t,e){var n=this.get(t);return!(!n||n instanceof Array||(-1!==this.findToast(t)?(this.$set(this.toasts,this.findToast(t),Object.assign(n,e)),0):(this.$set(this.toasts,this.findQueuedToast(t),Object.assign(n,e)),0)))},remove:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(t){var e=this.findQueuedToast(t);return this.settings.singular&&-1!==e?(this.$delete(this.queue,e),this.currentlyShowing):-1!==(e=this.findToast(t))&&(this.$delete(this.toasts,e),this.currentlyShowing)}return this.toasts=[],this.currentlyShowing}},computed:{getTransition:function(){if(this.settings.transition)return this.settings.transition;var t=this.settings.position.split("-");return"left"===t[1]?"vt-left":"center"===t[1]?"vt-"+t[0]:"vt-right"},flexDirection:function(){return{"flex-direction":this.settings.orderLatest&&"bottom"===this.settings.position.split("-")[0]?"column":"column-reverse"}},positionClasses:function(){var t=this.settings.position.split("-"),e={};return t[0]===t[1]?(e["vt-center-center"]=!0,e):(e["center"===t[0]?"vt-centerY":"vt-"+t[0]]=!0,e["center"===t[1]?"vt-centerX":"vt-"+t[1]]=!0,e)},currentlyShowing:function(){return this.toasts.map((function(t){return t.id}))}},watch:{settings:{handler:function(t,e){if(c(t.singular)){if(!t.singular){for(var n=0;n0&&t.settings.withBackdrop},style:{backgroundColor:t.settings.backdrop}}),n("vt-transition",{staticClass:"vt-notification-container",class:t.positionClasses,style:t.flexDirection,attrs:{transition:t.getTransition,position:t.settings.position}},t._l(t.toasts,(function(e){return n("Toast",{key:e.id,attrs:{status:e,"base-icon-class":t.settings.baseIconClass}})})),1)],1)}),[],!1,null,null,null)).exports;function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function C(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=t.extend(x),r=new i;n&&(t.prototype.$vtRouter=n),r._props=Object.assign(r._props,e);var o=r.$mount();document.querySelector("body").appendChild(o.$el),"undefined"!=typeof window&&window.Vue&&window.Vue.use(r);var a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof t&&(t={body:t}),e&&(t.title=e),t.type||(t.type="success"),r.add(t)},s={success:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return a(t,e)},info:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof t&&(t={body:t}),e&&(t.title=e),t.type="info",a(t)},warning:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof t&&(t={body:t}),e&&(t.title=e),t.type="warning",a(t)},error:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof t&&(t={body:t}),t.status&&t.statusText&&(t={title:t.status.toString(),body:t.statusText}),e&&(t.title=e),t.type="error",a(t)},loader:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof t&&(t={body:t}),e&&(t.title=e),t.mode="loader",a(t)},prompt:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;"string"==typeof t&&(t={body:t}),e&&(t.title=e),t.mode="prompt";var n=r.add(t);return new Promise((function(t){r.$root.$once("vtPromptResponse",(function(e){e.id===n&&t(e.response)}))}))},stopLoader:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;r.stopLoader(t)},getToast:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r.get(t)},changeToast:function(t,e){return r.set(t,e)},removeToast:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r.remove(t)},setSettings:function(t){return r.setSettings(t)},getSettings:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r.getSettings(t)},listen:function(t,e){return r.$on(t,(function(t){return e(t)}))},listenOnce:function(t,e){return r.$once(t,(function(t){return e(t)}))}};e.customNotifications&&Object.entries(e.customNotifications).length>0&&Object.entries(e.customNotifications).forEach((function(t){Object.defineProperty(s,t[0],{get:function(){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i={};return i=Object.assign(i,t[1]),"string"==typeof e?i.body=e:i=C({},t[1],{},e),n&&(i.title=n),a(i)}}})})),t.prototype.$vtNotify=a,t.$vtNotify=a,t.prototype.$vToastify=s,t.$vToastify=s}};e.default=S}})},"aET+":function(t,e,n){var i,r,o={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),s=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var i=s.call(this,t,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),u=null,c=0,d=[],h=n("9tPo");function f(t,e){for(var n=0;n=0&&d.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return n.nc}();i&&(t.attrs.nonce=i)}return y(e,t.attrs),m(t,e),e}function y(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function _(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=c++;n=u||(u=v(e)),i=x.bind(null,n,a,!1),r=x.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",y(e,t.attrs),m(t,e),e}(e),i=C.bind(null,n,e),r=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(e),i=k.bind(null,n),r=function(){g(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=p(t,e);return f(n,e),function(t){for(var i=[],r=0;r9?t(e%10):e}(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){return t+(1===t?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(t){return"g.m."===t},meridiem:function(t,e,n){return t<12?"a.m.":"g.m."}})}(n("wd/R"))},aIsn:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},aLw4:function(t,e,n){var i=n("sEG9");(t.exports=n("I1BE")(!1)).push([t.i,"/* required styles */\n.leaflet-pane,\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-tile-container,\r\n.leaflet-pane > svg,\r\n.leaflet-pane > canvas,\r\n.leaflet-zoom-box,\r\n.leaflet-image-layer,\r\n.leaflet-layer {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\n}\n.leaflet-container {\r\n\toverflow: hidden;\n}\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\t-webkit-user-select: none;\r\n\t -moz-user-select: none;\r\n\t user-select: none;\r\n\t -webkit-user-drag: none;\n}\r\n/* Prevents IE11 from highlighting tiles in blue */\n.leaflet-tile::selection {\r\n\tbackground: transparent;\n}\r\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\n.leaflet-safari .leaflet-tile {\r\n\timage-rendering: -webkit-optimize-contrast;\n}\r\n/* hack that prevents hw layers \"stretching\" when loading new tiles */\n.leaflet-safari .leaflet-tile-container {\r\n\twidth: 1600px;\r\n\theight: 1600px;\r\n\t-webkit-transform-origin: 0 0;\n}\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\tdisplay: block;\n}\r\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\r\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\n.leaflet-container .leaflet-overlay-pane svg,\r\n.leaflet-container .leaflet-marker-pane img,\r\n.leaflet-container .leaflet-shadow-pane img,\r\n.leaflet-container .leaflet-tile-pane img,\r\n.leaflet-container img.leaflet-image-layer,\r\n.leaflet-container .leaflet-tile {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\n}\n.leaflet-container.leaflet-touch-zoom {\r\n\t-ms-touch-action: pan-x pan-y;\r\n\ttouch-action: pan-x pan-y;\n}\n.leaflet-container.leaflet-touch-drag {\r\n\t-ms-touch-action: pinch-zoom;\r\n\t/* Fallback for FF which doesn't support pinch-zoom */\r\n\ttouch-action: none;\r\n\ttouch-action: pinch-zoom;\n}\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\n}\n.leaflet-container {\r\n\t-webkit-tap-highlight-color: transparent;\n}\n.leaflet-container a {\r\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\n}\n.leaflet-tile {\r\n\tfilter: inherit;\r\n\tvisibility: hidden;\n}\n.leaflet-tile-loaded {\r\n\tvisibility: inherit;\n}\n.leaflet-zoom-box {\r\n\twidth: 0;\r\n\theight: 0;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\tz-index: 800;\n}\r\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\n.leaflet-overlay-pane svg {\r\n\t-moz-user-select: none;\n}\n.leaflet-pane { z-index: 400;\n}\n.leaflet-tile-pane { z-index: 200;\n}\n.leaflet-overlay-pane { z-index: 400;\n}\n.leaflet-shadow-pane { z-index: 500;\n}\n.leaflet-marker-pane { z-index: 600;\n}\n.leaflet-tooltip-pane { z-index: 650;\n}\n.leaflet-popup-pane { z-index: 700;\n}\n.leaflet-map-pane canvas { z-index: 100;\n}\n.leaflet-map-pane svg { z-index: 200;\n}\n.leaflet-vml-shape {\r\n\twidth: 1px;\r\n\theight: 1px;\n}\n.lvml {\r\n\tbehavior: url(#default#VML);\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\n}\r\n\r\n\r\n/* control positioning */\n.leaflet-control {\r\n\tposition: relative;\r\n\tz-index: 800;\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\n}\n.leaflet-top,\r\n.leaflet-bottom {\r\n\tposition: absolute;\r\n\tz-index: 1000;\r\n\tpointer-events: none;\n}\n.leaflet-top {\r\n\ttop: 0;\n}\n.leaflet-right {\r\n\tright: 0;\n}\n.leaflet-bottom {\r\n\tbottom: 0;\n}\n.leaflet-left {\r\n\tleft: 0;\n}\n.leaflet-control {\r\n\tfloat: left;\r\n\tclear: both;\n}\n.leaflet-right .leaflet-control {\r\n\tfloat: right;\n}\n.leaflet-top .leaflet-control {\r\n\tmargin-top: 10px;\n}\n.leaflet-bottom .leaflet-control {\r\n\tmargin-bottom: 10px;\n}\n.leaflet-left .leaflet-control {\r\n\tmargin-left: 10px;\n}\n.leaflet-right .leaflet-control {\r\n\tmargin-right: 10px;\n}\r\n\r\n\r\n/* zoom and fade animations */\n.leaflet-fade-anim .leaflet-tile {\r\n\twill-change: opacity;\n}\n.leaflet-fade-anim .leaflet-popup {\r\n\topacity: 0;\r\n\t-webkit-transition: opacity 0.2s linear;\r\n\t -moz-transition: opacity 0.2s linear;\r\n\t transition: opacity 0.2s linear;\n}\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r\n\topacity: 1;\n}\n.leaflet-zoom-animated {\r\n\t-webkit-transform-origin: 0 0;\r\n\t -ms-transform-origin: 0 0;\r\n\t transform-origin: 0 0;\n}\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\twill-change: transform;\n}\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\n}\n.leaflet-zoom-anim .leaflet-tile,\r\n.leaflet-pan-anim .leaflet-tile {\r\n\t-webkit-transition: none;\r\n\t -moz-transition: none;\r\n\t transition: none;\n}\n.leaflet-zoom-anim .leaflet-zoom-hide {\r\n\tvisibility: hidden;\n}\r\n\r\n\r\n/* cursors */\n.leaflet-interactive {\r\n\tcursor: pointer;\n}\n.leaflet-grab {\r\n\tcursor: -webkit-grab;\r\n\tcursor: -moz-grab;\r\n\tcursor: grab;\n}\n.leaflet-crosshair,\r\n.leaflet-crosshair .leaflet-interactive {\r\n\tcursor: crosshair;\n}\n.leaflet-popup-pane,\r\n.leaflet-control {\r\n\tcursor: auto;\n}\n.leaflet-dragging .leaflet-grab,\r\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\r\n.leaflet-dragging .leaflet-marker-draggable {\r\n\tcursor: move;\r\n\tcursor: -webkit-grabbing;\r\n\tcursor: -moz-grabbing;\r\n\tcursor: grabbing;\n}\r\n\r\n/* marker & overlays interactivity */\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-image-layer,\r\n.leaflet-pane > svg path,\r\n.leaflet-tile-container {\r\n\tpointer-events: none;\n}\n.leaflet-marker-icon.leaflet-interactive,\r\n.leaflet-image-layer.leaflet-interactive,\r\n.leaflet-pane > svg path.leaflet-interactive,\r\nsvg.leaflet-image-layer.leaflet-interactive path {\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\n}\r\n\r\n/* visual tweaks */\n.leaflet-container {\r\n\tbackground: #ddd;\r\n\toutline: 0;\n}\n.leaflet-container a {\r\n\tcolor: #0078A8;\n}\n.leaflet-container a.leaflet-active {\r\n\toutline: 2px solid orange;\n}\n.leaflet-zoom-box {\r\n\tborder: 2px dotted #38f;\r\n\tbackground: rgba(255,255,255,0.5);\n}\r\n\r\n\r\n/* general typography */\n.leaflet-container {\r\n\tfont: 12px/1.5 \"Helvetica Neue\", Arial, Helvetica, sans-serif;\n}\r\n\r\n\r\n/* general toolbar styles */\n.leaflet-bar {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n\tborder-radius: 4px;\n}\n.leaflet-bar a,\r\n.leaflet-bar a:hover {\r\n\tbackground-color: #fff;\r\n\tborder-bottom: 1px solid #ccc;\r\n\twidth: 26px;\r\n\theight: 26px;\r\n\tline-height: 26px;\r\n\tdisplay: block;\r\n\ttext-align: center;\r\n\ttext-decoration: none;\r\n\tcolor: black;\n}\n.leaflet-bar a,\r\n.leaflet-control-layers-toggle {\r\n\tbackground-position: 50% 50%;\r\n\tbackground-repeat: no-repeat;\r\n\tdisplay: block;\n}\n.leaflet-bar a:hover {\r\n\tbackground-color: #f4f4f4;\n}\n.leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 4px;\r\n\tborder-top-right-radius: 4px;\n}\n.leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 4px;\r\n\tborder-bottom-right-radius: 4px;\r\n\tborder-bottom: none;\n}\n.leaflet-bar a.leaflet-disabled {\r\n\tcursor: default;\r\n\tbackground-color: #f4f4f4;\r\n\tcolor: #bbb;\n}\n.leaflet-touch .leaflet-bar a {\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tline-height: 30px;\n}\n.leaflet-touch .leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 2px;\r\n\tborder-top-right-radius: 2px;\n}\n.leaflet-touch .leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 2px;\r\n\tborder-bottom-right-radius: 2px;\n}\r\n\r\n/* zoom control */\n.leaflet-control-zoom-in,\r\n.leaflet-control-zoom-out {\r\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\r\n\ttext-indent: 1px;\n}\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\r\n\tfont-size: 22px;\n}\r\n\r\n\r\n/* layers control */\n.leaflet-control-layers {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\r\n\tbackground: #fff;\r\n\tborder-radius: 5px;\n}\n.leaflet-control-layers-toggle {\r\n\tbackground-image: url("+i(n("Fjwm"))+");\r\n\twidth: 36px;\r\n\theight: 36px;\n}\n.leaflet-retina .leaflet-control-layers-toggle {\r\n\tbackground-image: url("+i(n("jsOg"))+");\r\n\tbackground-size: 26px 26px;\n}\n.leaflet-touch .leaflet-control-layers-toggle {\r\n\twidth: 44px;\r\n\theight: 44px;\n}\n.leaflet-control-layers .leaflet-control-layers-list,\r\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\r\n\tdisplay: none;\n}\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\r\n\tdisplay: block;\r\n\tposition: relative;\n}\n.leaflet-control-layers-expanded {\r\n\tpadding: 6px 10px 6px 6px;\r\n\tcolor: #333;\r\n\tbackground: #fff;\n}\n.leaflet-control-layers-scrollbar {\r\n\toverflow-y: scroll;\r\n\toverflow-x: hidden;\r\n\tpadding-right: 5px;\n}\n.leaflet-control-layers-selector {\r\n\tmargin-top: 2px;\r\n\tposition: relative;\r\n\ttop: 1px;\n}\n.leaflet-control-layers label {\r\n\tdisplay: block;\n}\n.leaflet-control-layers-separator {\r\n\theight: 0;\r\n\tborder-top: 1px solid #ddd;\r\n\tmargin: 5px -10px 5px -6px;\n}\r\n\r\n/* Default icon URLs */\n.leaflet-default-icon-path {\r\n\tbackground-image: url("+i(n("Y5fm"))+');\n}\r\n\r\n\r\n/* attribution and scale controls */\n.leaflet-container .leaflet-control-attribution {\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.7);\r\n\tmargin: 0;\n}\n.leaflet-control-attribution,\r\n.leaflet-control-scale-line {\r\n\tpadding: 0 5px;\r\n\tcolor: #333;\n}\n.leaflet-control-attribution a {\r\n\ttext-decoration: none;\n}\n.leaflet-control-attribution a:hover {\r\n\ttext-decoration: underline;\n}\n.leaflet-container .leaflet-control-attribution,\r\n.leaflet-container .leaflet-control-scale {\r\n\tfont-size: 11px;\n}\n.leaflet-left .leaflet-control-scale {\r\n\tmargin-left: 5px;\n}\n.leaflet-bottom .leaflet-control-scale {\r\n\tmargin-bottom: 5px;\n}\n.leaflet-control-scale-line {\r\n\tborder: 2px solid #777;\r\n\tborder-top: none;\r\n\tline-height: 1.1;\r\n\tpadding: 2px 5px 1px;\r\n\tfont-size: 11px;\r\n\twhite-space: nowrap;\r\n\toverflow: hidden;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.5);\n}\n.leaflet-control-scale-line:not(:first-child) {\r\n\tborder-top: 2px solid #777;\r\n\tborder-bottom: none;\r\n\tmargin-top: -2px;\n}\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\r\n\tborder-bottom: 2px solid #777;\n}\n.leaflet-touch .leaflet-control-attribution,\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tbox-shadow: none;\n}\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tborder: 2px solid rgba(0,0,0,0.2);\r\n\tbackground-clip: padding-box;\n}\r\n\r\n\r\n/* popup */\n.leaflet-popup {\r\n\tposition: absolute;\r\n\ttext-align: center;\r\n\tmargin-bottom: 20px;\n}\n.leaflet-popup-content-wrapper {\r\n\tpadding: 1px;\r\n\ttext-align: left;\r\n\tborder-radius: 12px;\n}\n.leaflet-popup-content {\r\n\tmargin: 13px 19px;\r\n\tline-height: 1.4;\n}\n.leaflet-popup-content p {\r\n\tmargin: 18px 0;\n}\n.leaflet-popup-tip-container {\r\n\twidth: 40px;\r\n\theight: 20px;\r\n\tposition: absolute;\r\n\tleft: 50%;\r\n\tmargin-left: -20px;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\n}\n.leaflet-popup-tip {\r\n\twidth: 17px;\r\n\theight: 17px;\r\n\tpadding: 1px;\r\n\r\n\tmargin: -10px auto 0;\r\n\r\n\t-webkit-transform: rotate(45deg);\r\n\t -moz-transform: rotate(45deg);\r\n\t -ms-transform: rotate(45deg);\r\n\t transform: rotate(45deg);\n}\n.leaflet-popup-content-wrapper,\r\n.leaflet-popup-tip {\r\n\tbackground: white;\r\n\tcolor: #333;\r\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\n}\n.leaflet-container a.leaflet-popup-close-button {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tpadding: 4px 4px 0 0;\r\n\tborder: none;\r\n\ttext-align: center;\r\n\twidth: 18px;\r\n\theight: 14px;\r\n\tfont: 16px/14px Tahoma, Verdana, sans-serif;\r\n\tcolor: #c3c3c3;\r\n\ttext-decoration: none;\r\n\tfont-weight: bold;\r\n\tbackground: transparent;\n}\n.leaflet-container a.leaflet-popup-close-button:hover {\r\n\tcolor: #999;\n}\n.leaflet-popup-scrolled {\r\n\toverflow: auto;\r\n\tborder-bottom: 1px solid #ddd;\r\n\tborder-top: 1px solid #ddd;\n}\n.leaflet-oldie .leaflet-popup-content-wrapper {\r\n\t-ms-zoom: 1;\n}\n.leaflet-oldie .leaflet-popup-tip {\r\n\twidth: 24px;\r\n\tmargin: 0 auto;\r\n\r\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\r\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\n}\n.leaflet-oldie .leaflet-popup-tip-container {\r\n\tmargin-top: -1px;\n}\n.leaflet-oldie .leaflet-control-zoom,\r\n.leaflet-oldie .leaflet-control-layers,\r\n.leaflet-oldie .leaflet-popup-content-wrapper,\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\tborder: 1px solid #999;\n}\r\n\r\n\r\n/* div icon */\n.leaflet-div-icon {\r\n\tbackground: #fff;\r\n\tborder: 1px solid #666;\n}\r\n\r\n\r\n/* Tooltip */\r\n/* Base styles for the element that has a tooltip */\n.leaflet-tooltip {\r\n\tposition: absolute;\r\n\tpadding: 6px;\r\n\tbackground-color: #fff;\r\n\tborder: 1px solid #fff;\r\n\tborder-radius: 3px;\r\n\tcolor: #222;\r\n\twhite-space: nowrap;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n\tpointer-events: none;\r\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\n}\n.leaflet-tooltip.leaflet-clickable {\r\n\tcursor: pointer;\r\n\tpointer-events: auto;\n}\n.leaflet-tooltip-top:before,\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\tposition: absolute;\r\n\tpointer-events: none;\r\n\tborder: 6px solid transparent;\r\n\tbackground: transparent;\r\n\tcontent: "";\n}\r\n\r\n/* Directions */\n.leaflet-tooltip-bottom {\r\n\tmargin-top: 6px;\n}\n.leaflet-tooltip-top {\r\n\tmargin-top: -6px;\n}\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-top:before {\r\n\tleft: 50%;\r\n\tmargin-left: -6px;\n}\n.leaflet-tooltip-top:before {\r\n\tbottom: 0;\r\n\tmargin-bottom: -12px;\r\n\tborder-top-color: #fff;\n}\n.leaflet-tooltip-bottom:before {\r\n\ttop: 0;\r\n\tmargin-top: -12px;\r\n\tmargin-left: -6px;\r\n\tborder-bottom-color: #fff;\n}\n.leaflet-tooltip-left {\r\n\tmargin-left: -6px;\n}\n.leaflet-tooltip-right {\r\n\tmargin-left: 6px;\n}\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\ttop: 50%;\r\n\tmargin-top: -6px;\n}\n.leaflet-tooltip-left:before {\r\n\tright: 0;\r\n\tmargin-right: -12px;\r\n\tborder-left-color: #fff;\n}\n.leaflet-tooltip-right:before {\r\n\tleft: 0;\r\n\tmargin-left: -12px;\r\n\tborder-right-color: #fff;\n}\r\n',""])},aQkU:function(t,e,n){!function(t){"use strict";t.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(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(n("wd/R"))},aS5V:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,'.card-list[data-v-03bccacd] {\n margin-bottom: -130px;\n}\n@media screen and (max-width: 480px) {\n.card-list[data-v-03bccacd] {\n margin-bottom: -120px;\n}\n}\n.card-item__cvv-amex[data-v-03bccacd] {\n color: white;\n margin-top: -6%;\n font-size: 27px;\n font-weight: 500;\n position: absolute;\n left: 78%;\n}\n.slide-fade-up-enter-active[data-v-03bccacd] {\n transition: all 0.25s ease-in-out;\n transition-delay: 0.1s;\n position: relative;\n}\n.slide-fade-up-leave-active[data-v-03bccacd] {\n transition: all 0.25s ease-in-out;\n position: absolute;\n}\n.slide-fade-up-enter[data-v-03bccacd] {\n opacity: 0;\n transform: translateY(15px);\n pointer-events: none;\n}\n.slide-fade-up-leave-to[data-v-03bccacd] {\n opacity: 0;\n transform: translateY(-15px);\n pointer-events: none;\n}\n.slide-fade-right-enter-active[data-v-03bccacd] {\n transition: all 0.25s ease-in-out;\n transition-delay: 0.1s;\n position: relative;\n}\n.slide-fade-right-leave-active[data-v-03bccacd] {\n transition: all 0.25s ease-in-out;\n position: absolute;\n}\n.slide-fade-right-enter[data-v-03bccacd] {\n opacity: 0;\n transform: translateX(10px) rotate(45deg);\n pointer-events: none;\n}\n.slide-fade-right-leave-to[data-v-03bccacd] {\n opacity: 0;\n transform: translateX(-10px) rotate(45deg);\n pointer-events: none;\n}\n.card-item[data-v-03bccacd] {\n max-width: 430px;\n height: 270px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n z-index: 2;\n width: 100%;\n}\n@media screen and (max-width: 480px) {\n.card-item[data-v-03bccacd] {\n max-width: 310px;\n height: 220px;\n width: 90%;\n}\n}\n@media screen and (max-width: 360px) {\n.card-item[data-v-03bccacd] {\n height: 180px;\n}\n}\n.card-item.-active .card-item__side.-front[data-v-03bccacd] {\n transform: perspective(1000px) rotateY(180deg) rotateX(0deg) rotateZ(0deg);\n}\n.card-item.-active .card-item__side.-back[data-v-03bccacd] {\n transform: perspective(1000px) rotateY(0) rotateX(0deg) rotateZ(0deg);\n /*// box-shadow: 0 20px 50px 0 rgba(81, 88, 206, 0.65);*/\n}\n.card-item__focus[data-v-03bccacd] {\n position: absolute;\n z-index: 3;\n border-radius: 5px;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n transition: all 0.35s cubic-bezier(0.71, 0.03, 0.56, 0.85);\n opacity: 0;\n pointer-events: none;\n overflow: hidden;\n border: 2px solid rgba(255, 255, 255, 0.65);\n}\n.card-item__focus[data-v-03bccacd]:after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n background: #08142f;\n height: 100%;\n border-radius: 5px;\n -webkit-filter: blur(25px);\n filter: blur(25px);\n opacity: 0.5;\n}\n.card-item__focus.-active[data-v-03bccacd] {\n opacity: 1;\n}\n.card-item__side[data-v-03bccacd] {\n border-radius: 15px;\n overflow: hidden;\n /*// box-shadow: 3px 13px 30px 0px rgba(11, 19, 41, 0.5);*/\n /* box-shadow: 0 20px 60px 0 rgba(14, 42, 90, 0.55);*/\n transform: perspective(2000px) rotateY(0deg) rotateX(0deg) rotate(0deg);\n transform-style: preserve-3d;\n transition: all 0.8s cubic-bezier(0.71, 0.03, 0.56, 0.85);\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n height: 100%;\n}\n.card-item__side.-back[data-v-03bccacd] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n transform: perspective(2000px) rotateY(-180deg) rotateX(0deg) rotate(0deg);\n z-index: 2;\n padding: 0;\n background-color: #2364d2;\n background-image: linear-gradient(43deg, #4158d0 0%, #8555c7 46%, #2364d2 100%);\n height: 100%;\n}\n.card-item__side.-back .card-item__cover[data-v-03bccacd] {\n transform: rotateY(-180deg);\n}\n.card-item__bg[data-v-03bccacd] {\n max-width: 100%;\n display: block;\n max-height: 100%;\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n}\n.card-item__cover[data-v-03bccacd] {\n height: 100%;\n background-color: #1c1d27;\n position: absolute;\n height: 100%;\n background-color: #1c1d27;\n left: 0;\n top: 0;\n width: 100%;\n border-radius: 15px;\n overflow: hidden;\n}\n.card-item__cover[data-v-03bccacd]:after {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: rgba(6, 2, 29, 0.45);\n}\n.card-item__top[data-v-03bccacd] {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n margin-bottom: 40px;\n padding: 0 10px;\n}\n@media screen and (max-width: 480px) {\n.card-item__top[data-v-03bccacd] {\n margin-bottom: 25px;\n}\n}\n@media screen and (max-width: 360px) {\n.card-item__top[data-v-03bccacd] {\n margin-bottom: 15px;\n}\n}\n.card-item__chip[data-v-03bccacd] {\n width: 60px;\n}\n@media screen and (max-width: 480px) {\n.card-item__chip[data-v-03bccacd] {\n width: 50px;\n}\n}\n@media screen and (max-width: 360px) {\n.card-item__chip[data-v-03bccacd] {\n width: 40px;\n}\n}\n.card-item__type[data-v-03bccacd] {\n height: 45px;\n position: relative;\n display: flex;\n justify-content: flex-end;\n max-width: 100px;\n margin-left: auto;\n width: 100%;\n}\n@media screen and (max-width: 480px) {\n.card-item__type[data-v-03bccacd] {\n height: 40px;\n max-width: 90px;\n}\n}\n@media screen and (max-width: 360px) {\n.card-item__type[data-v-03bccacd] {\n height: 30px;\n}\n}\n.card-item__typeImg[data-v-03bccacd] {\n max-width: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n max-height: 100%;\n -o-object-position: top right;\n object-position: top right;\n}\n.card-item__info[data-v-03bccacd] {\n color: #fff;\n width: 100%;\n max-width: calc(100% - 85px);\n padding: 10px 15px;\n font-weight: 500;\n display: block;\n cursor: pointer;\n}\n@media screen and (max-width: 480px) {\n.card-item__info[data-v-03bccacd] {\n padding: 10px;\n}\n}\n.card-item__holder[data-v-03bccacd] {\n opacity: 0.7;\n font-size: 13px;\n margin-bottom: 6px;\n text-align: left;\n}\n@media screen and (max-width: 480px) {\n.card-item__holder[data-v-03bccacd] {\n font-size: 12px;\n margin-bottom: 5px;\n}\n}\n.card-item__wrapper[data-v-03bccacd] {\n font-family: "Source Code Pro", monospace;\n padding: 25px 15px;\n position: relative;\n z-index: 4;\n height: 100%;\n text-shadow: 7px 6px 10px rgba(14, 42, 90, 0.8);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n@media screen and (max-width: 480px) {\n.card-item__wrapper[data-v-03bccacd] {\n padding: 20px 10px;\n}\n}\n.card-item__name[data-v-03bccacd] {\n font-size: 18px;\n line-height: 1;\n white-space: nowrap;\n max-width: 100%;\n overflow: hidden;\n text-align: left;\n text-overflow: ellipsis;\n text-transform: uppercase;\n}\n@media screen and (max-width: 480px) {\n.card-item__name[data-v-03bccacd] {\n font-size: 16px;\n}\n}\n.card-item__nameItem[data-v-03bccacd] {\n display: inline-block;\n min-width: 8px;\n position: relative;\n}\n.card-item__number[data-v-03bccacd] {\n font-weight: 500;\n line-height: 1;\n color: #fff;\n font-size: 27px;\n margin-bottom: 35px;\n display: inline-block;\n padding: 10px 15px;\n cursor: pointer;\n}\n@media screen and (max-width: 480px) {\n.card-item__number[data-v-03bccacd] {\n font-size: 21px;\n margin-bottom: 15px;\n padding: 10px 10px;\n}\n}\n@media screen and (max-width: 360px) {\n.card-item__number[data-v-03bccacd] {\n font-size: 19px;\n margin-bottom: 10px;\n padding: 10px 10px;\n}\n}\n.card-item__numberItem[data-v-03bccacd] {\n width: 16px;\n display: inline-block;\n}\n.card-item__numberItem.-active[data-v-03bccacd] {\n width: 30px;\n}\n@media screen and (max-width: 480px) {\n.card-item__numberItem[data-v-03bccacd] {\n width: 13px;\n}\n.card-item__numberItem.-active[data-v-03bccacd] {\n width: 16px;\n}\n}\n@media screen and (max-width: 360px) {\n.card-item__numberItem[data-v-03bccacd] {\n width: 12px;\n}\n.card-item__numberItem.-active[data-v-03bccacd] {\n width: 8px;\n}\n}\n.card-item__content[data-v-03bccacd] {\n color: #fff;\n display: flex;\n align-items: flex-start;\n}\n.card-item__date[data-v-03bccacd] {\n flex-wrap: wrap;\n font-size: 18px;\n margin-left: auto;\n padding: 10px;\n display: inline-flex;\n width: 80px;\n white-space: nowrap;\n flex-shrink: 0;\n cursor: pointer;\n}\n@media screen and (max-width: 480px) {\n.card-item__date[data-v-03bccacd] {\n font-size: 16px;\n}\n}\n.card-item__dateItem[data-v-03bccacd] {\n position: relative;\n}\n.card-item__dateItem span[data-v-03bccacd] {\n width: 22px;\n display: inline-block;\n}\n.card-item__dateTitle[data-v-03bccacd] {\n opacity: 0.7;\n font-size: 13px;\n padding-bottom: 6px;\n width: 100%;\n}\n@media screen and (max-width: 480px) {\n.card-item__dateTitle[data-v-03bccacd] {\n font-size: 12px;\n padding-bottom: 5px;\n}\n}\n.card-item__band[data-v-03bccacd] {\n background: rgba(0, 0, 19, 0.8);\n width: 100%;\n height: 50px;\n margin-top: 30px;\n position: relative;\n z-index: 2;\n}\n@media screen and (max-width: 480px) {\n.card-item__band[data-v-03bccacd] {\n margin-top: 20px;\n}\n}\n@media screen and (max-width: 360px) {\n.card-item__band[data-v-03bccacd] {\n height: 40px;\n margin-top: 10px;\n}\n}\n.card-item__cvv[data-v-03bccacd] {\n text-align: right;\n position: relative;\n z-index: 2;\n padding: 15px;\n}\n.card-item__cvv .card-item__type[data-v-03bccacd] {\n opacity: 0.7;\n}\n@media screen and (max-width: 360px) {\n.card-item__cvv[data-v-03bccacd] {\n padding: 10px 15px;\n}\n}\n.card-item__cvvTitle[data-v-03bccacd] {\n padding-right: 10px;\n font-size: 15px;\n font-weight: 500;\n color: #fff;\n margin-bottom: 5px;\n}\n.card-item__cvvBand[data-v-03bccacd] {\n height: 45px;\n background: #fff;\n margin-bottom: 30px;\n text-align: right;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding-right: 10px;\n color: #1a3b5d;\n font-size: 18px;\n border-radius: 4px;\n /*box-shadow: 0px 10px 20px -7px rgba(32, 56, 117, 0.35);*/\n}\n@media screen and (max-width: 480px) {\n.card-item__cvvBand[data-v-03bccacd] {\n height: 40px;\n margin-bottom: 20px;\n}\n}\n@media screen and (max-width: 360px) {\n.card-item__cvvBand[data-v-03bccacd] {\n margin-bottom: 15px;\n}\n}',""])},b1Dy:function(t,e,n){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},b4WK:function(t){t.exports=JSON.parse('{"title":"Tablica wyników drużyny","position-header":"Pozycja","name-header":"Nazwa","photos-header":"Wszystkie zdjęcia","litter-header":"Wszystkie odpady","created-at-header":"Utworzono w"}')},bOMt:function(t,e,n){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._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}})}(n("wd/R"))},bUC5:function(t,e,n){"use strict";n.r(e);var i=n("XuX8"),r=n.n(i),o=n("vDqi"),a=n.n(o),s=n("L2JU"),l=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===u}(t)}(t)},u="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(t,e){return!1!==e.clone&&e.isMergeableObject(t)?p(Array.isArray(t)?[]:{},t,e):t}function d(t,e,n){return t.concat(e).map((function(t){return c(t,n)}))}function h(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function f(t,e){try{return e in t}catch(t){return!1}}function p(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||d,n.isMergeableObject=n.isMergeableObject||l,n.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(e);return i===Array.isArray(t)?i?n.arrayMerge(t,e,n):function(t,e,n){var i={};return n.isMergeableObject(t)&&h(t).forEach((function(e){i[e]=c(t[e],n)})),h(e).forEach((function(r){(function(t,e){return f(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(i[r]=f(t,r)&&n.isMergeableObject(e[r])?function(t,e){if(!e.customMerge)return p;var n=e.customMerge(t);return"function"==typeof n?n:p}(r,n)(t[r],e[r],n):c(e[r],n))})),i}(t,e,n):c(e,n)}p.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return p(t,n,e)}),{})};var m=p,g={id:"",filename:"",not_processed:0,awaiting_verification:0,items:{},photo:{},loading:!0},v=n("o0o1"),y=n.n(v),_=n("ltXA");function b(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function w(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){b(o,i,r,a,s,"next",t)}function s(t){b(o,i,r,a,s,"throw",t)}a(void 0)}))}}var x={ADMIN_DELETE_IMAGE:function(t){return w(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.post("/admin/destroy",{photoId:t.state.photo.id}).then((function(e){t.dispatch("GET_NEXT_ADMIN_PHOTO")})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},ADMIN_RESET_TAGS:function(t){return w(y.a.mark((function e(){var n;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=_.a.t("notifications.success"),"Image has been reset",e.next=4,axios.post("/admin/incorrect",{photoId:t.state.photo.id}).then((function(e){e.data.success&&(r.a.$vToastify.success({title:n,body:"Image has been reset",position:"top-right"}),t.dispatch("GET_NEXT_ADMIN_PHOTO"))})).catch((function(t){}));case 4:case"end":return e.stop()}}),e)})))()},ADMIN_VERIFY_CORRECT:function(t){return w(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.post("/admin/verifykeepimage",{photoId:t.state.photo.id}).then((function(e){t.dispatch("GET_NEXT_ADMIN_PHOTO")})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},ADMIN_VERIFY_DELETE:function(t){return w(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.post("/admin/contentsupdatedelete",{photoId:t.state.photo.id}).then((function(e){t.dispatch("GET_NEXT_ADMIN_PHOTO")})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},ADMIN_UPDATE_WITH_NEW_TAGS:function(t){return w(y.a.mark((function e(){var n;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.state.photo.id,e.next=3,axios.post("/admin/update-tags",{photoId:n,tags:t.rootState.litter.tags[n]}).then((function(e){t.dispatch("GET_NEXT_ADMIN_PHOTO")})).catch((function(t){}));case 3:case"end":return e.stop()}}),e)})))()},GET_NEXT_ADMIN_PHOTO:function(t){return w(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.commit("resetLitter"),t.commit("clearTags"),e.next=4,axios.get("/admin/get-image").then((function(e){var n;t.commit("initAdminPhoto",e.data.photo),(null===(n=e.data.photo)||void 0===n?void 0:n.verification)>0&&t.commit("initAdminItems",e.data.photo),t.commit("initAdminMetadata",{not_processed:e.data.photosNotProcessed,awaiting_verification:e.data.photosAwaitingVerification})})).catch((function(t){}));case 4:case"end":return e.stop()}}),e)})))()}},k={adminImage:function(t,e){t.id=e.id,t.filename=e.filename},adminLoading:function(t,e){t.loading=e},initAdminMetadata:function(t,e){t.not_processed=e.not_processed,t.awaiting_verification=e.awaiting_verification},initAdminPhoto:function(t,e){t.photo=e},resetState:function(t){Object.assign(t,g)}},C={state:Object.assign({},g),actions:x,mutations:k};function L(t,e){for(var n in e)t[n]=e[n];return t}var S={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,r=e.parent,o=e.data;o.routerView=!0;for(var a=r.$createElement,s=n.name,l=r.$route,u=r._routerViewCache||(r._routerViewCache={}),c=0,d=!1;r&&r._routerRoot!==r;){var h=r.$vnode?r.$vnode.data:{};h.routerView&&c++,h.keepAlive&&r._directInactive&&r._inactive&&(d=!0),r=r.$parent}if(o.routerViewDepth=c,d){var f=u[s],p=f&&f.component;return p?(f.configProps&&M(p,o,f.route,f.configProps),a(p,o,i)):a()}var m=l.matched[c],g=m&&m.components[s];if(!m||!g)return u[s]=null,a();u[s]={component:g},o.registerRouteInstance=function(t,e){var n=m.instances[s];(e&&n!==t||!e&&n===t)&&(m.instances[s]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){m.instances[s]=e.componentInstance},o.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==m.instances[s]&&(m.instances[s]=t.componentInstance)};var v=m.props&&m.props[s];return v&&(L(u[s],{route:l,configProps:v}),M(g,o,l,v)),a(g,o,i)}};function M(t,e,n,i){var r=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,i);if(r){r=e.props=L({},r);var o=e.attrs=e.attrs||{};for(var a in r)t.props&&a in t.props||(o[a]=r[a],delete r[a])}}var T=/[!'()*]/g,E=function(t){return"%"+t.charCodeAt(0).toString(16)},O=/%2C/g,P=function(t){return encodeURIComponent(t).replace(T,E).replace(O,",")},D=decodeURIComponent;var A=function(t){return null==t||"object"==typeof t?t:String(t)};function I(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),i=D(n.shift()),r=n.length>0?D(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]})),e):e}function N(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return P(e);if(Array.isArray(n)){var i=[];return n.forEach((function(t){void 0!==t&&(null===t?i.push(P(e)):i.push(P(e)+"="+P(t)))})),i.join("&")}return P(e)+"="+P(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var R=/\/?$/;function j(t,e,n,i){var r=i&&i.options.stringifyQuery,o=e.query||{};try{o=z(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:B(e,r),matched:t?F(t):[]};return n&&(a.redirectedFrom=B(n,r)),Object.freeze(a)}function z(t){if(Array.isArray(t))return t.map(z);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=z(t[n]);return e}return t}var Y=j(null,{path:"/"});function F(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function B(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;return void 0===r&&(r=""),(n||"/")+(e||N)(i)+r}function $(t,e){return e===Y?t===e:!!e&&(t.path&&e.path?t.path.replace(R,"")===e.path.replace(R,"")&&t.hash===e.hash&&H(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&H(t.query,e.query)&&H(t.params,e.params)))}function H(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every((function(n){var i=t[n],r=e[n];return null==i||null==r?i===r:"object"==typeof i&&"object"==typeof r?H(i,r):String(i)===String(r)}))}function U(t,e,n){var i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}(r.path||""),u=e&&e.path||"/",c=l.path?U(l.path,u,n||r.append):u,d=function(t,e,n){void 0===e&&(e={});var i,r=n||I;try{i=r(t||"")}catch(t){i={}}for(var o in e){var a=e[o];i[o]=Array.isArray(a)?a.map(A):A(a)}return i}(l.query,r.query,i&&i.options.parseQuery),h=r.hash||l.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:c,query:d,hash:h}}var dt,ht=function(){},ft={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),o=r.location,a=r.route,s=r.href,l={},u=n.options.linkActiveClass,c=n.options.linkExactActiveClass,d=null==u?"router-link-active":u,h=null==c?"router-link-exact-active":c,f=null==this.activeClass?d:this.activeClass,p=null==this.exactActiveClass?h:this.exactActiveClass,m=a.redirectedFrom?j(null,ct(a.redirectedFrom),null,n):a;l[p]=$(i,m),l[f]=this.exact?l[p]:function(t,e){return 0===t.path.replace(R,"/").indexOf(e.path.replace(R,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,m);var g=l[p]?this.ariaCurrentValue:null,v=function(t){pt(t)&&(e.replace?n.replace(o,ht):n.push(o,ht))},y={click:pt};Array.isArray(this.event)?this.event.forEach((function(t){y[t]=v})):y[this.event]=v;var _={class:l},b=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:v,isActive:l[f],isExactActive:l[p]});if(b){if(1===b.length)return b[0];if(b.length>1||!b.length)return 0===b.length?t():t("span",{},b)}if("a"===this.tag)_.on=y,_.attrs={href:s,"aria-current":g};else{var w=function t(e){var n;if(e)for(var i=0;i-1&&(s.params[h]=n.params[h]);return s.path=ut(c.path,s.params),l(c,s,a)}if(s.path){s.params={};for(var f=0;f=t.length?n():t[r]?e(t[r],(function(){i(r+1)})):i(r+1)};i(0)}var Ft={redirected:2,aborted:4,cancelled:8,duplicated:16};function Bt(t,e){return Ht(t,e,Ft.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return Ut.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function $t(t,e){return Ht(t,e,Ft.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Ht(t,e,n,i){var r=new Error(i);return r._isRouter=!0,r.from=t,r.to=e,r.type=n,r}var Ut=["params","query","hash"];function Vt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Wt(t,e){return Vt(t)&&t._isRouter&&(null==e||t.type===e)}function Gt(t){return function(e,n,i){var r=!1,o=0,a=null;qt(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){r=!0,o++;var l,u=Jt((function(e){var r;((r=e).__esModule||Xt&&"Module"===r[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:dt.extend(e),n.components[s]=e,--o<=0&&i()})),c=Jt((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Vt(t)?t:new Error(e),i(a))}));try{l=t(u,c)}catch(t){c(t)}if(l)if("function"==typeof l.then)l.then(u,c);else{var d=l.component;d&&"function"==typeof d.then&&d.then(u,c)}}})),r||i()}}function qt(t,e){return Zt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Zt(t){return Array.prototype.concat.apply([],t)}var Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Jt(t){var e=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var Kt=function(t,e){this.router=t,this.base=function(t){if(!t)if(mt){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=Y,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Qt(t,e,n,i){var r=qt(t,(function(t,i,r,o){var a=function(t,e){"function"!=typeof t&&(t=dt.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,i,r,o)})):n(a,i,r,o)}));return Zt(i?r.reverse():r)}function te(t,e){if(e)return function(){return t.apply(e,arguments)}}Kt.prototype.listen=function(t){this.cb=t},Kt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Kt.prototype.onError=function(t){this.errorCbs.push(t)},Kt.prototype.transitionTo=function(t,e,n){var i,r=this;try{i=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}this.confirmTransition(i,(function(){var t=r.current;r.updateRoute(i),e&&e(i),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(i,t)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,Wt(t,Ft.redirected)?r.readyCbs.forEach((function(t){t(i)})):r.readyErrorCbs.forEach((function(e){e(t)})))}))},Kt.prototype.confirmTransition=function(t,e,n){var i,r,o=this,a=this.current,s=function(t){!Wt(t)&&Vt(t)&&o.errorCbs.length&&o.errorCbs.forEach((function(e){e(t)})),n&&n(t)},l=t.matched.length-1,u=a.matched.length-1;if($(t,a)&&l===u&&t.matched[l]===a.matched[u])return this.ensureURL(),s(((r=Ht(i=a,t,Ft.duplicated,'Avoided redundant navigation to current location: "'+i.fullPath+'".')).name="NavigationDuplicated",r));var c=function(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,i=Rt&&n;i&&this.listeners.push(St());var r=function(){var n=t.current,r=ne(t.base);t.current===Y&&r===t._startLocation||t.transitionTo(r,(function(t){i&&Mt(e,t,n,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,(function(t){jt(V(i.base+t.fullPath)),Mt(i.router,t,r,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,(function(t){zt(V(i.base+t.fullPath)),Mt(i.router,t,r,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(ne(this.base)!==this.current.fullPath){var e=V(this.base+this.current.fullPath);t?jt(e):zt(e)}},e.prototype.getCurrentLocation=function(){return ne(this.base)},e}(Kt);function ne(t){var e=decodeURI(window.location.pathname);return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var ie=function(t){function e(e,n,i){t.call(this,e,n),i&&function(t){var e=ne(t);if(!/^\/#/.test(e))return window.location.replace(V(t+"/#"+e)),!0}(this.base)||re()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=Rt&&e;n&&this.listeners.push(St());var i=function(){var e=t.current;re()&&t.transitionTo(oe(),(function(i){n&&Mt(t.router,i,e,!0),Rt||le(i.fullPath)}))},r=Rt?"popstate":"hashchange";window.addEventListener(r,i),this.listeners.push((function(){window.removeEventListener(r,i)}))}},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,(function(t){se(t.fullPath),Mt(i.router,t,r,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,(function(t){le(t.fullPath),Mt(i.router,t,r,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;oe()!==e&&(t?se(e):le(e))},e.prototype.getCurrentLocation=function(){return oe()},e}(Kt);function re(){var t=oe();return"/"===t.charAt(0)||(le("/"+t),!1)}function oe(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var n=(t=t.slice(e+1)).indexOf("?");if(n<0){var i=t.indexOf("#");t=i>-1?decodeURI(t.slice(0,i))+t.slice(i):decodeURI(t)}else t=decodeURI(t.slice(0,n))+t.slice(n);return t}function ae(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function se(t){Rt?jt(ae(t)):window.location.hash=t}function le(t){Rt?zt(ae(t)):window.location.replace(ae(t))}var ue=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,(function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,(function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){e.index=n,e.updateRoute(i)}),(function(t){Wt(t,Ft.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Kt),ce=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=yt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Rt&&!1!==t.fallback,this.fallback&&(e="hash"),mt||(e="abstract"),this.mode=e,e){case"history":this.history=new ee(this,t.base);break;case"hash":this.history=new ie(this,t.base,this.fallback);break;case"abstract":this.history=new ue(this,t.base);break;default:0}},de={currentRoute:{configurable:!0}};function he(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}ce.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},de.currentRoute.get=function(){return this.history&&this.history.current},ce.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardownListeners()})),!this.app){this.app=t;var n=this.history;if(n instanceof ee||n instanceof ie){var i=function(t){n.setupListeners(),function(t){var i=n.current,r=e.options.scrollBehavior;Rt&&r&&"fullPath"in t&&Mt(e,t,i,!1)}(t)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},ce.prototype.beforeEach=function(t){return he(this.beforeHooks,t)},ce.prototype.beforeResolve=function(t){return he(this.resolveHooks,t)},ce.prototype.afterEach=function(t){return he(this.afterHooks,t)},ce.prototype.onReady=function(t,e){this.history.onReady(t,e)},ce.prototype.onError=function(t){this.history.onError(t)},ce.prototype.push=function(t,e,n){var i=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){i.history.push(t,e,n)}));this.history.push(t,e,n)},ce.prototype.replace=function(t,e,n){var i=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){i.history.replace(t,e,n)}));this.history.replace(t,e,n)},ce.prototype.go=function(t){this.history.go(t)},ce.prototype.back=function(){this.go(-1)},ce.prototype.forward=function(){this.go(1)},ce.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},ce.prototype.resolve=function(t,e,n){var i=ct(t,e=e||this.history.current,n,this),r=this.match(i,e),o=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:function(t,e,n){var i="hash"===n?"#"+e:e;return t?V(t+"/"+i):i}(this.history.base,o,this.mode),normalizedTo:i,resolved:r}},ce.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Y&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ce.prototype,de),ce.install=function t(e){if(!t.installed||dt!==e){t.installed=!0,dt=e;var n=function(t){return void 0!==t},i=function(t,e){var i=t.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,i(this,this)},destroyed:function(){i(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",S),e.component("RouterLink",ft);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}},ce.version="3.4.3",ce.isNavigationFailure=Wt,ce.NavigationFailureType=Ft,mt&&window.Vue&&window.Vue.use(ce);var fe=ce;function pe(t){var e=t.next;if(t.store.state.user.auth)return e();window.location.href="/"}function me(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ge(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:1;t.total_photos+=e},decrementTotalPhotos:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;t.total_photos-=e},incrementTotalLitter:function(t,e){t.total_litter+=e},decrementTotalLitter:function(t,e){t.total_litter-=e}},state:Object.assign({},We)},Ke={category:"smoking",hasAddedNewTag:!1,presence:null,tag:"butts",loading:!1,photos:{},tags:{},submitting:!1,recentTags:{}};function Qe(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function tn(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){Qe(o,i,r,a,s,"next",t)}function s(t){Qe(o,i,r,a,s,"throw",t)}a(void 0)}))}}var en={ADD_MANY_TAGS_TO_MANY_PHOTOS:function(t){return tn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"Success!","Your tags were applied to the images",e.next=4,axios.post("/user/profile/photos/tags/create",{selectAll:t.rootState.photos.selectAll,inclIds:t.rootState.photos.inclIds,exclIds:t.rootState.photos.exclIds,filters:t.rootState.photos.filters,tags:t.state.tags[0]}).then((function(e){e.data.success&&(r.a.$vToastify.success({title:"Success!",body:"Your tags were applied to the images",position:"top-right"}),t.commit("hideModal"))})).catch((function(t){}));case 4:case"end":return e.stop()}}),e)})))()},ADD_TAGS_TO_IMAGE:function(t,e){return tn(y.a.mark((function e(){var n,i,o;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=_.a.t("notifications.success"),i=_.a.t("notifications.tags-added"),o=t.rootState.photos.paginate.data[0].id,e.next=5,axios.post("add-tags",{tags:t.state.tags[o],presence:t.state.presence,photo_id:o}).then((function(e){r.a.$vToastify.success({title:n,body:i,position:"top-right"}),t.commit("clearTags",o),t.dispatch("LOAD_NEXT_IMAGE")})).catch((function(t){}));case 5:case"end":return e.stop()}}),e)})))()}};function nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function rn(t){for(var e=1;e0&&Object.keys(i).map((function(t){n[e][t]=0}))})),t.tags=rn(rn({},t.tags),{},on({},e,n))},set_default_litter_presence:function(t,e){t.presence=e},setLang:function(t,e){t.categoryNames=e.categoryNames,t.currentCategory=e.currentCategory,t.currentItem=e.currentItem,t.litterlang=e.litterlang},togglePresence:function(t){t.presence=!t.presence},toggleSubmit:function(t){t.submitting=!t.submitting}},sn={state:Object.assign({},Ke),actions:en,mutations:an},ln={action:"",button:"",show:!1,title:"",type:""},un={hideModal:function(t){t.show=!1},resetState:function(t){Object.assign(t,ln)},showModal:function(t,e){t.type=e.type,t.title=e.title,t.action=e.action,t.show=!0}},cn={state:Object.assign({},ln),actions:{},mutations:un},dn={state:{errors:{}}},hn={filters:{id:"",dateRange:{start:null,end:null},period:"created_at",verified:null},paginate:{prev_page_url:null,next_page_url:null,data:[]},remaining:0,selectedCount:0,selectAll:!1,inclIds:[],exclIds:[],total:0,verified:0};function fn(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function pn(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){fn(o,i,r,a,s,"next",t)}function s(t){fn(o,i,r,a,s,"throw",t)}a(void 0)}))}}var mn={DELETE_SELECTED_PHOTOS:function(t){return pn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.post("/user/profile/photos/delete",{selectAll:t.state.photos.selectAll,inclIds:t.state.photos.inclIds,exclIds:t.state.photos.exclIds,filters:t.state.photos.filters}).then((function(t){})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},GET_PHOTOS_FOR_TAGGING:function(t){return pn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.get("photos").then((function(e){t.commit("photosForTagging",e.data)})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},GET_USERS_FILTERED_PHOTOS:function(t){return pn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.get("/user/profile/photos/filter",{params:{filters:t.state.filters}}).then((function(e){t.commit("myProfilePhotos",e.data.paginate),t.commit("photosCount",e.data.count)})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},LOAD_MY_PHOTOS:function(t){return pn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.get("/user/profile/photos/index").then((function(e){t.commit("myProfilePhotos",e.data.paginate),t.commit("photosCount",e.data.count)})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},LOAD_NEXT_IMAGE:function(t){return pn(y.a.mark((function e(){var n;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.state.paginate.next_page_url||1===t.state.paginate.current_page?t.state.paginate.current_page:t.state.paginate.current_page-1,e.next=3,axios.get("/photos?page="+n).then((function(e){t.commit("photosForTagging",e.data)})).catch((function(t){}));case 3:case"end":return e.stop()}}),e)})))()},NEXT_IMAGE:function(t){return pn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.get(t.state.paginate.next_page_url).then((function(e){t.commit("photosForTagging",e.data)})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},PREVIOUS_IMAGE:function(t){return pn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.get(t.state.paginate.prev_page_url).then((function(e){t.commit("photosForTagging",e.data)})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},PREVIOUS_PHOTOS_PAGE:function(t){return pn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.get(t.state.paginate.prev_page_url).then((function(e){t.commit("paginatedPhotos",e.data.paginate)})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},NEXT_PHOTOS_PAGE:function(t){return pn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.get(t.state.paginate.next_page_url).then((function(e){t.commit("paginatedPhotos",e.data.paginate)})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},SELECT_IMAGE:function(t,e){return pn(y.a.mark((function n(){return y.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,axios.get("/photos?page=".concat(e)).then((function(e){t.commit("photosForTagging",e.data)})).catch((function(t){}));case 2:case"end":return n.stop()}}),n)})))()}};function gn(t){return function(t){if(Array.isArray(t))return vn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return vn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0||t.exclIds.length>0||t.selectAll)&&(e.data=e.data.map((function(e){return t.selectAll&&(e.selected=!0),t.inclIds.includes(e.id)&&(e.selected=!0),t.exclIds.includes(e.id)&&(e.selected=!1),e}))),t.paginate=e},photosCount:function(t,e){t.total=e},photosForTagging:function(t,e){t.paginate=e.photos,t.remaining=e.remaining,t.total=e.total},myProfilePhotos:function(t,e){t.paginate=e},resetState:function(t){Object.assign(t,hn)},resetPhotoState:function(t){Object.assign(t,hn)},selectAllPhotos:function(t){t.selectAll=!t.selectAll;var e=gn(t.paginate.data);e.forEach((function(e){e.selected=t.selectAll})),t.paginate.data=e,t.selectedCount=t.selectAll?t.total:0},togglePhotoSelected:function(t,e){var n=gn(t.paginate.data),i=gn(t.inclIds),r=gn(t.exclIds),o=n.find((function(t){return t.id===e}));o.selected=!o.selected,o.selected?(t.selectedCount++,t.selectAll?r=r.filter((function(t){return t!==o.id})):i.push(o.id)):(t.selectedCount--,t.selectAll?r.push(o.id):i=i.filter((function(t){return t!==o.id}))),t.selectAll?t.exclIds.push(o.id):t.inclIds.push(o.id),t.inclIds=i,t.exclIds=r,t.paginate.data=n}},_n={state:Object.assign({},hn),actions:mn,mutations:yn},bn={errors:{},plan:"",plans:[]};function wn(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function xn(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){wn(o,i,r,a,s,"next",t)}function s(t){wn(o,i,r,a,s,"throw",t)}a(void 0)}))}}var kn={CREATE_ACCOUNT:function(t,e){return xn(y.a.mark((function n(){return y.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,axios.post("/register",{name:e.name,username:e.username,email:e.email,password:e.password,password_confirmation:e.password_confirmation,g_recaptcha_response:e.recaptcha}).then((function(t){if(1===e.plan)alert("Congratulations! Your free account has been created. Please verify your email to activate login");else if(e.plan>1){var n=Stripe("pk_live_4UlurKvAigejhIQ3t8wBbttC"),i=window.location.href+"&status=success",r=window.location.href+"&status=error";n.redirectToCheckout({lineItems:[{price:e.plan_id,quantity:1}],mode:"subscription",successUrl:i,cancelUrl:r})}})).catch((function(e){t.commit("createAccountErrors",e.response.data.errors)}));case 2:case"end":return n.stop()}}),n)})))()},GET_PLANS:function(t){return xn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.get("/plans").then((function(e){t.commit("setPlans",e.data)})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()}},Cn={clearCreateAccountError:function(t,e){delete t.errors[e]},createAccountErrors:function(t,e){t.errors=e},resetState:function(t){Object.assign(t,bn)},setPlans:function(t,e){t.plans=e}},Ln={state:Object.assign({},bn),actions:kn,mutations:Cn},Sn={errors:{},just_subscribed:!1,subscription:{}};function Mn(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function Tn(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){Mn(o,i,r,a,s,"next",t)}function s(t){Mn(o,i,r,a,s,"throw",t)}a(void 0)}))}}var En={DELETE_ACTIVE_SUBSCRIPTION:function(t){return Tn(y.a.mark((function e(){var n,i;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=_.a.t("notifications.success"),i=_.a.t("notifications.subscription-cancelled"),e.next=4,axios.post("/stripe/delete").then((function(e){r.a.$vToastify.success({title:n,body:i,position:"top-right"}),t.commit("reset_subscriber")})).catch((function(t){}));case 4:case"end":return e.stop()}}),e)})))()},GET_USERS_SUBSCRIPTIONS:function(t){return Tn(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,axios.get("/stripe/subscriptions").then((function(e){t.commit("subscription",e.data.sub)})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},RESUBSCRIBE:function(t,e){return Tn(y.a.mark((function t(){return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,axios.post("/stripe/resubscribe",{plan:e}).then((function(t){})).catch((function(t){}));case 2:case"end":return t.stop()}}),t)})))()},SUBSCRIBE:function(t,e){return Tn(y.a.mark((function n(){return y.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,axios.post("/subscribe",{email:e}).then((function(e){t.commit("has_subscribed",!0),setTimeout((function(){t.commit("has_subscribed",!1)}),5e3)})).catch((function(e){t.commit("subscribeErrors",e.response.data.errors)}));case 2:case"end":return n.stop()}}),n)})))()}},On={clearSubscriberErrors:function(t){t.errors={}},has_subscribed:function(t,e){t.just_subscribed=e},resetState:function(t){Object.assign(t,Sn)},reset_subscriber:function(t,e){t.subscription={}},subscription:function(t,e){t.subscription=e},subscribeErrors:function(t,e){t.errors=e}},Pn={state:Object.assign({},Sn),actions:En,mutations:On};function Dn(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function An(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){Dn(o,i,r,a,s,"next",t)}function s(t){Dn(o,i,r,a,s,"throw",t)}a(void 0)}))}}function In(t){return function(t){if(Array.isArray(t))return Nn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Nn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nv&&(v=m),mb?b-1:s?"y"===s?b/_:_:Math.max(_,b/_))||0,w.b=b<0?r-b:r}return b=(w[t]-w.min)/w.max,w.b+(n?n.getRatio(b):b)*w.v}},i=function(t,e,n){Jn.f.call(this,t,e,n),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=i.prototype.render},r=Jn.f._internals,o=r.isSelector,a=r.isArray,s=i.prototype=Jn.f.to({},.1,{}),l=[];i.version="2.1.3",s.constructor=i,s.kill()._gc=!1,i.killTweensOf=i.killDelayedCallsTo=Jn.f.killTweensOf,i.getTweensOf=Jn.f.getTweensOf,i.lagSmoothing=Jn.f.lagSmoothing,i.ticker=Jn.f.ticker,i.render=Jn.f.render,i.distribute=n,s.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),Jn.f.prototype.invalidate.call(this)},s.updateTo=function(t,e){var n,i=this.ratio,r=this.vars.immediateRender||t.immediateRender;for(n in e&&this._startTime.998){var o=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(o,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||r)for(var a,s=1/(1-i),l=this._firstPT;l;)a=l.s+l.c,l.c*=s,l.s=a-l.c,l=l._next;return this},s.render=function(t,e,n){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var i,o,a,s,l,u,c,d,h,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,m=this._totalTime,g=this._cycle,v=this._duration,y=this._rawPrevTime;if(t>=f-1e-8&&t>=0?(this._totalTime=f,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=v,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(i=!0,o="onComplete",n=n||this._timeline.autoRemoveChildren),0===v&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(t=0),(y<0||t<=0&&t>=-1e-8||1e-8===y&&"isPause"!==this.data)&&y!==t&&(n=!0,y>1e-8&&(o="onReverseComplete")),this._rawPrevTime=d=!e||t||y===t?t:1e-8)):t<1e-8?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==m||0===v&&y>0)&&(o="onReverseComplete",i=this._reversed),t>-1e-8?t=0:t<0&&(this._active=!1,0===v&&(this._initted||!this.vars.lazy||n)&&(y>=0&&(n=!0),this._rawPrevTime=d=!e||t||y===t?t:1e-8)),this._initted||(n=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(s=v+this._repeatDelay,this._cycle=this._totalTime/s>>0,0!==this._cycle&&this._cycle===this._totalTime/s&&m<=t&&this._cycle--,this._time=this._totalTime-this._cycle*s,this._yoyo&&0!=(1&this._cycle)&&(this._time=v-this._time,(h=this._yoyoEase||this.vars.yoyoEase)&&(this._yoyoEase||(!0!==h||this._initted?this._yoyoEase=h=!0===h?this._ease:h instanceof Jn.b?h:Jn.b.map[h]:(h=this.vars.ease,this._yoyoEase=h=h?h instanceof Jn.b?h:"function"==typeof h?new Jn.b(h,this.vars.easeParams):Jn.b.map[h]||Jn.f.defaultEase:Jn.f.defaultEase)),this.ratio=h?1-h.getRatio((v-this._time)/v):0)),this._time>v?this._time=v:this._time<0&&(this._time=0)),this._easeType&&!h?(l=this._time/v,(1===(u=this._easeType)||3===u&&l>=.5)&&(l=1-l),3===u&&(l*=2),1===(c=this._easePower)?l*=l:2===c?l*=l*l:3===c?l*=l*l*l:4===c&&(l*=l*l*l*l),this.ratio=1===u?1-l:2===u?l:this._time/v<.5?l/2:1-l/2):h||(this.ratio=this._ease.getRatio(this._time/v))),p!==this._time||n||g!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=p,this._totalTime=m,this._rawPrevTime=y,this._cycle=g,r.lazyTweens.push(this),void(this._lazy=[t,e]);!this._time||i||h?i&&this._ease._calcEnd&&!h&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/v)}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&t>=0&&(this._active=!0),0===m&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,!0,n):o||(o="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==v||e||this._callback("onStart"))),a=this._firstPT;a;)a.f?a.t[a.p](a.c*this.ratio+a.s):a.t[a.p]=a.c*this.ratio+a.s,a=a._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,!0,n),e||(this._totalTime!==m||o)&&this._callback("onUpdate")),this._cycle!==g&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),o&&(this._gc&&!n||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,!0,n),i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o),0===v&&1e-8===this._rawPrevTime&&1e-8!==d&&(this._rawPrevTime=0)))}else m!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},i.to=function(t,e,n){return new i(t,e,n)},i.from=function(t,e,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new i(t,e,n)},i.fromTo=function(t,e,n,r){return r.startAt=n,r.immediateRender=0!=r.immediateRender&&0!=n.immediateRender,new i(t,e,r)},i.staggerTo=i.allTo=function(r,s,u,c,d,h,f){var p,m,g,v,y=[],_=n(u.stagger||c),b=u.cycle,w=(u.startAt||l).cycle;for(a(r)||("string"==typeof r&&(r=Jn.f.selector(r)||r),o(r)&&(r=t(r))),p=(r=r||[]).length-1,g=0;g<=p;g++){for(v in m={},u)m[v]=u[v];if(b&&(e(m,r,g),null!=m.duration&&(s=m.duration,delete m.duration)),w){for(v in w=m.startAt={},u.startAt)w[v]=u.startAt[v];e(m.startAt,r,g)}m.delay=_(g,r[g],r)+(m.delay||0),g===p&&d&&(m.onComplete=function(){u.onComplete&&u.onComplete.apply(u.onCompleteScope||this,arguments),d.apply(f||u.callbackScope||this,h||l)}),y[g]=new i(r[g],s,m)}return y},i.staggerFrom=i.allFrom=function(t,e,n,r,o,a,s){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,i.staggerTo(t,e,n,r,o,a,s)},i.staggerFromTo=i.allFromTo=function(t,e,n,r,o,a,s,l){return r.startAt=n,r.immediateRender=0!=r.immediateRender&&0!=n.immediateRender,i.staggerTo(t,e,r,o,a,s,l)},i.delayedCall=function(t,e,n,r,o){return new i(e,0,{delay:t,onComplete:e,onCompleteParams:n,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:n,immediateRender:!1,useFrames:o,overwrite:0})},i.set=function(t,e){return new i(t,0,e)},i.isTweening=function(t){return Jn.f.getTweensOf(t,!0).length>0};var u=function(t,e){for(var n=[],i=0,r=t._first;r;)r instanceof Jn.f?n[i++]=r:(e&&(n[i++]=r),i=(n=n.concat(u(r,e))).length),r=r._next;return n},c=i.getAllTweens=function(t){return u(Jn.a._rootTimeline,t).concat(u(Jn.a._rootFramesTimeline,t))};i.killAll=function(t,e,n,i){null==e&&(e=!0),null==n&&(n=!0);var r,o,a,s=c(0!=i),l=s.length,u=e&&n&&i;for(a=0;a-1;)i.killChildTweensOf(e[c],n);else{for(u in s=[],h)for(l=h[u].target.parentNode;l;)l===e&&(s=s.concat(h[u].tweens)),l=l.parentNode;for(d=s.length,c=0;c-1;)o=a[l],(s||o instanceof Jn.c||(r=o.target===o.vars.onComplete)&&n||e&&!r)&&o.paused(t)};return i.pauseAll=function(t,e,n){d(!0,t,e,n)},i.resumeAll=function(t,e,n){d(!1,t,e,n)},i.globalTimeScale=function(t){var e=Jn.a._rootTimeline,n=Jn.f.ticker.time;return arguments.length?(t=t||1e-8,e._startTime=n-(n-e._startTime)*e._timeScale/t,e=Jn.a._rootFramesTimeline,n=Jn.f.ticker.frame,e._startTime=n-(n-e._startTime)*e._timeScale/t,e._timeScale=Jn.a._rootTimeline._timeScale=t,t):e._timeScale},s.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this.duration()?this._time/this._duration:this.ratio},s.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},s.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var n=this._duration,i=this._cycle,r=i*(n+this._repeatDelay);return t>n&&(t=n),this.totalTime(this._yoyo&&1&i?n-t+r:this._repeat?t+r:t,e)},s.duration=function(t){return arguments.length?Jn.a.prototype.duration.call(this,t):this._duration},s.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},s.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},s.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},s.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},i}),!0);var Kn=Jn.g.TweenMax;Jn.e._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],(function(){var t,e,n,i,r=function(){Jn.d.call(this,"css"),this._overwriteProps.length=0,this.setRatio=r.prototype.setRatio},o=Jn.e._gsDefine.globals,a={},s=r.prototype=new Jn.d("css");s.constructor=r,r.version="2.1.3",r.API=2,r.defaultTransformPerspective=0,r.defaultSkewType="compensated",r.defaultSmoothOrigin=!0,s="px",r.suffixMap={top:s,right:s,bottom:s,left:s,width:s,height:s,fontSize:s,padding:s,margin:s,perspective:s,lineHeight:""};var l,u,c,d,h,f,p,m,g=/(?:\-|\.|\b)(\d|\.|e\-)+/g,v=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,y=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,_=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,b=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,k=/opacity:([^;]*)/i,C=/alpha\(opacity *=.+?\)/i,L=/^(rgb|hsl)/,S=/([A-Z])/g,M=/-([a-z])/gi,T=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(t,e){return e.toUpperCase()},O=/(?:Left|Right|Width)/i,P=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,D=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,A=/,(?=[^\)]*(?:\(|$))/gi,I=/[\s,\(]/i,N=Math.PI/180,R=180/Math.PI,j={},z={style:{}},Y=Jn.e.document||{createElement:function(){return z}},F=function(t,e){var n=Y.createElementNS?Y.createElementNS(e||"http://www.w3.org/1999/xhtml",t):Y.createElement(t);return n.style?n:Y.createElement(t)},B=F("div"),$=F("img"),H=r._internals={_specialProps:a},U=(Jn.e.navigator||{}).userAgent||"",V=function(){var t=U.indexOf("Android"),e=F("a");return c=-1!==U.indexOf("Safari")&&-1===U.indexOf("Chrome")&&(-1===t||parseFloat(U.substr(t+8,2))>3),h=c&&parseFloat(U.substr(U.indexOf("Version/")+8,2))<6,d=-1!==U.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(U)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(U))&&(f=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),W=function(t){return x.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},G=function(t){Jn.e.console},q="",Z="",X=function(t,e){var n,i,r=(e=e||B).style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),n=["O","Moz","ms","Ms","Webkit"],i=5;--i>-1&&void 0===r[n[i]+t];);return i>=0?(q="-"+(Z=3===i?"ms":n[i]).toLowerCase()+"-",Z+t):null},J="undefined"!=typeof window?window:Y.defaultView||{getComputedStyle:function(){}},K=function(t){return J.getComputedStyle(t)},Q=r.getStyle=function(t,e,n,i,r){var o;return V||"opacity"!==e?(!i&&t.style[e]?o=t.style[e]:(n=n||K(t))?o=n[e]||n.getPropertyValue(e)||n.getPropertyValue(e.replace(S,"-$1").toLowerCase()):t.currentStyle&&(o=t.currentStyle[e]),null==r||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:r):W(t)},tt=H.convertToPixels=function(t,e,n,i,o){if("px"===i||!i&&"lineHeight"!==e)return n;if("auto"===i||!n)return 0;var a,s,l,u=O.test(e),c=t,d=B.style,h=n<0,f=1===n;if(h&&(n=-n),f&&(n*=100),"lineHeight"!==e||i)if("%"===i&&-1!==e.indexOf("border"))a=n/100*(u?t.clientWidth:t.clientHeight);else{if(d.cssText="border:0 solid red;position:"+Q(t,"position")+";line-height:0;","%"!==i&&c.appendChild&&"v"!==i.charAt(0)&&"rem"!==i)d[u?"borderLeftWidth":"borderTopWidth"]=n+i;else{if(c=t.parentNode||Y.body,-1!==Q(c,"display").indexOf("flex")&&(d.position="absolute"),s=c._gsCache,l=Jn.f.ticker.frame,s&&u&&s.time===l)return s.width*n/100;d[u?"width":"height"]=n+i}c.appendChild(B),a=parseFloat(B[u?"offsetWidth":"offsetHeight"]),c.removeChild(B),u&&"%"===i&&!1!==r.cacheWidths&&((s=c._gsCache=c._gsCache||{}).time=l,s.width=a/n*100),0!==a||o||(a=tt(t,e,n,i,!0))}else s=K(t).lineHeight,t.style.lineHeight=n,a=parseFloat(K(t).lineHeight),t.style.lineHeight=s;return f&&(a/=100),h?-a:a},et=H.calculateOffset=function(t,e,n){if("absolute"!==Q(t,"position",n))return 0;var i="left"===e?"Left":"Top",r=Q(t,"margin"+i,n);return t["offset"+i]-(tt(t,e,parseFloat(r),r.replace(w,""))||0)},nt=function(t,e){var n,i,r,o={};if(e=e||K(t))if(n=e.length)for(;--n>-1;)-1!==(r=e[n]).indexOf("-transform")&&At!==r||(o[r.replace(M,E)]=e.getPropertyValue(r));else for(n in e)-1!==n.indexOf("Transform")&&Dt!==n||(o[n]=e[n]);else if(e=t.currentStyle||t.style)for(n in e)"string"==typeof n&&void 0===o[n]&&(o[n.replace(M,E)]=e[n]);return V||(o.opacity=W(t)),i=Wt(t,e,!1),o.rotation=i.rotation,o.skewX=i.skewX,o.scaleX=i.scaleX,o.scaleY=i.scaleY,o.x=i.x,o.y=i.y,Nt&&(o.z=i.z,o.rotationX=i.rotationX,o.rotationY=i.rotationY,o.scaleZ=i.scaleZ),o.filters&&delete o.filters,o},it=function(t,e,n,i,r){var o,a,s,l={},u=t.style;for(a in n)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(o=n[a])||r&&r[a])&&-1===a.indexOf("Origin")&&("number"!=typeof o&&"string"!=typeof o||(l[a]="auto"!==o||"left"!==a&&"top"!==a?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof e[a]||""===e[a].replace(b,"")?o:0:et(t,a),void 0!==u[a]&&(s=new yt(u,a,u[a],s))));if(i)for(a in i)"className"!==a&&(l[a]=i[a]);return{difs:l,firstMPT:s}},rt={width:["Left","Right"],height:["Top","Bottom"]},ot=["marginLeft","marginRight","marginTop","marginBottom"],at=function(t,e,n){if("svg"===(t.nodeName+"").toLowerCase())return(n||K(t))[e]||0;if(t.getCTM&&Ht(t))return t.getBBox()[e]||0;var i=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=rt[e],o=r.length;for(n=n||K(t);--o>-1;)i-=parseFloat(Q(t,"padding"+r[o],n,!0))||0,i-=parseFloat(Q(t,"border"+r[o]+"Width",n,!0))||0;return i},st=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var n,i=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],o=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];if(i.length>3&&!e){for(i=t.split(", ").join(",").split(","),t=[],n=0;n2?" "+i[2]:""),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==o.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===o.charAt(1),e.ox=parseFloat(r.replace(b,"")),e.oy=parseFloat(o.replace(b,"")),e.v=t),e||t},lt=function(t,e){return"function"==typeof t&&(t=t(m,p)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},ut=function(t,e){"function"==typeof t&&(t=t(m,p));var n="string"==typeof t&&"="===t.charAt(1);return"string"==typeof t&&"v"===t.charAt(t.length-2)&&(t=(n?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(n?t.substr(2):t)/100)),null==t?e:n?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ct=function(t,e,n,i){var r,o,a,s;return"function"==typeof t&&(t=t(m,p)),null==t?a=e:"number"==typeof t?a=t:(360,r=t.split("_"),o=((s="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(r[0].substr(2)):parseFloat(r[0]))*(-1===t.indexOf("rad")?1:R)-(s?0:e),r.length&&(i&&(i[n]=e+o),-1!==t.indexOf("short")&&(o%=360)!==o%180&&(o=o<0?o+360:o-360),-1!==t.indexOf("_cw")&&o<0?o=(o+3599999999640)%360-360*(o/360|0):-1!==t.indexOf("ccw")&&o>0&&(o=(o-3599999999640)%360-360*(o/360|0))),a=e+o),a<1e-6&&a>-1e-6&&(a=0),a},dt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ht=function(t,e,n){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)+.5|0},ft=r.parseColor=function(t,e){var n,i,r,o,a,s,l,u,c,d,h;if(t)if("number"==typeof t)n=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),dt[t])n=dt[t];else if("#"===t.charAt(0))4===t.length&&(i=t.charAt(1),r=t.charAt(2),o=t.charAt(3),t="#"+i+i+r+r+o+o),n=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(n=h=t.match(g),e){if(-1!==t.indexOf("="))return t.match(v)}else a=Number(n[0])%360/360,s=Number(n[1])/100,i=2*(l=Number(n[2])/100)-(r=l<=.5?l*(s+1):l+s-l*s),n.length>3&&(n[3]=Number(n[3])),n[0]=ht(a+1/3,i,r),n[1]=ht(a,i,r),n[2]=ht(a-1/3,i,r);else n=t.match(g)||dt.transparent;n[0]=Number(n[0]),n[1]=Number(n[1]),n[2]=Number(n[2]),n.length>3&&(n[3]=Number(n[3]))}else n=dt.black;return e&&!h&&(i=n[0]/255,r=n[1]/255,o=n[2]/255,l=((u=Math.max(i,r,o))+(c=Math.min(i,r,o)))/2,u===c?a=s=0:(d=u-c,s=l>.5?d/(2-u-c):d/(u+c),a=u===i?(r-o)/d+(r0?a[0].replace(g,""):"";return c?r=e?function(t){var e,h,f,p;if("number"==typeof t)t+=d;else if(i&&A.test(t)){for(p=t.replace(A,"|").split("|"),f=0;ff--)for(;++fh--)for(;++h>0];return r.parse(e,s,o,a)}},yt=(H._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,n,i,r,o,a=this.data,s=a.proxy,l=a.firstMPT;l;)e=s[l.v],l.r?e=l.r(e):e<1e-6&&e>-1e-6&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===t||0===t)for(l=a.firstMPT,o=1===t?"e":"b";l;){if((n=l.t).type){if(1===n.type){for(r=n.xs0+n.s+n.xs1,i=1;i0;)l="xn"+a,f[s=i.p+"_"+l]=i.data[l],h[s]=i[l],o||(u=new yt(i,l,s,u,i.rxp[l]));i=i._next}return{proxy:h,end:f,firstMPT:u,pt:c}},H.CSSPropTween=function(e,n,r,o,a,s,l,u,c,d,h){this.t=e,this.p=n,this.s=r,this.c=o,this.n=l||n,e instanceof _t||i.push(this.n),this.r=u?"function"==typeof u?u:Math.round:u,this.type=s||0,c&&(this.pr=c,t=!0),this.b=void 0===d?r:d,this.e=void 0===h?r+o:h,a&&(this._next=a,a._prev=this)}),bt=function(t,e,n,i,r,o){var a=new _t(t,e,n,i-n,r,-1,o);return a.b=n,a.e=a.xs0=i,a},wt=r.parseComplex=function(t,e,n,i,o,a,s,u,c,d){n=n||a||"","function"==typeof i&&(i=i(m,p)),s=new _t(t,e,0,0,s,d?2:1,null,!1,u,n,i),i+="",o&&mt.test(i+n)&&(i=[n,i],r.colorStringFilter(i),n=i[0],i=i[1]);var h,f,y,_,b,w,x,k,C,L,S,M,T,E=n.split(", ").join(",").split(" "),O=i.split(", ").join(",").split(" "),P=E.length,D=!1!==l;for(-1===i.indexOf(",")&&-1===n.indexOf(",")||(-1!==(i+n).indexOf("rgb")||-1!==(i+n).indexOf("hsl")?(E=E.join(" ").replace(A,", ").split(" "),O=O.join(" ").replace(A,", ").split(" ")):(E=E.join(" ").split(",").join(", ").split(" "),O=O.join(" ").split(",").join(", ").split(" ")),P=E.length),P!==O.length&&(P=(E=(a||"").split(" ")).length),s.plugin=c,s.setRatio=d,mt.lastIndex=0,h=0;h6)&&!V&&0===b[3]?(s["xs"+s.l]+=s.l?" transparent":"transparent",s.e=s.e.split(O[h]).join("transparent")):(V||(C=!1),T?s.appendXtra(L.substr(0,L.indexOf("hsl"))+(C?"hsla(":"hsl("),_[0],lt(b[0],_[0]),",",!1,!0).appendXtra("",_[1],lt(b[1],_[1]),"%,",!1).appendXtra("",_[2],lt(b[2],_[2]),C?"%,":"%"+M,!1):s.appendXtra(L.substr(0,L.indexOf("rgb"))+(C?"rgba(":"rgb("),_[0],b[0]-_[0],",",Math.round,!0).appendXtra("",_[1],b[1]-_[1],",",Math.round).appendXtra("",_[2],b[2]-_[2],C?",":M,Math.round),C&&(_=_.length<4?1:_[3],s.appendXtra("",_,(b.length<4?1:b[3])-_,M,!1))),mt.lastIndex=0;else if(w=_.match(g)){if(!(x=b.match(v))||x.length!==w.length)return s;for(y=0,f=0;f0;)s["xn"+xt]=0,s["xs"+xt]="";s.xs0="",s._next=s._prev=s.xfirst=s.data=s.plugin=s.setRatio=s.rxp=null,s.appendXtra=function(t,e,n,i,r,o){var a=this,s=a.l;return a["xs"+s]+=o&&(s||a["xs"+s])?" "+t:t||"",n||0===s||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=i||"",s>0?(a.data["xn"+s]=e+n,a.rxp["xn"+s]=r,a["xn"+s]=e,a.plugin||(a.xfirst=new _t(a,"xn"+s,e,n,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+n},a.rxp={},a.s=e,a.c=n,a.r=r,a)):(a["xs"+s]+=e+(i||""),a)};var kt=function(t,e){e=e||{},this.p=e.prefix&&X(t)||t,a[t]=a[this.p]=this,this.format=e.formatter||gt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.allowFunc=e.allowFunc,this.pr=e.priority||0},Ct=H._registerComplexSpecialProp=function(t,e,n){"object"!=typeof e&&(e={parser:n});var i,r=t.split(","),o=e.defaultValue;for(n=n||[o],i=0;is.length?l.length:s.length,a=0;a-1;)o=Number(r[xt]),r[xt]=(a=o-(o|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+o:o;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},Wt=H.getTransform=function(t,e,n,i){if(t._gsTransform&&n&&!i)return t._gsTransform;var o,a,s,l,u,c,d=n&&t._gsTransform||new Rt,h=d.scaleX<0,f=1e5,p=Nt&&(parseFloat(Q(t,It,e,!1,"0 0 0").split(" ")[2])||d.zOrigin)||0,m=parseFloat(r.defaultTransformPerspective)||0;if(d.svg=!(!t.getCTM||!Ht(t)),d.svg&&(Bt(t,Q(t,It,e,!1,"50% 50%")+"",d,t.getAttribute("data-svg-origin")),St=r.useSVGTransformAttr||Ft),(o=Vt(t))!==Ut){if(16===o.length){var g,v,y,_,b,w=o[0],x=o[1],k=o[2],C=o[3],L=o[4],S=o[5],M=o[6],T=o[7],E=o[8],O=o[9],P=o[10],D=o[12],A=o[13],I=o[14],N=o[11],j=Math.atan2(M,P);d.zOrigin&&(D=E*(I=-d.zOrigin)-o[12],A=O*I-o[13],I=P*I+d.zOrigin-o[14]),d.rotationX=j*R,j&&(g=L*(_=Math.cos(-j))+E*(b=Math.sin(-j)),v=S*_+O*b,y=M*_+P*b,E=L*-b+E*_,O=S*-b+O*_,P=M*-b+P*_,N=T*-b+N*_,L=g,S=v,M=y),j=Math.atan2(-k,P),d.rotationY=j*R,j&&(v=x*(_=Math.cos(-j))-O*(b=Math.sin(-j)),y=k*_-P*b,O=x*b+O*_,P=k*b+P*_,N=C*b+N*_,w=g=w*_-E*b,x=v,k=y),j=Math.atan2(x,w),d.rotation=j*R,j&&(g=w*(_=Math.cos(j))+x*(b=Math.sin(j)),v=L*_+S*b,y=E*_+O*b,x=x*_-w*b,S=S*_-L*b,O=O*_-E*b,w=g,L=v,E=y),d.rotationX&&Math.abs(d.rotationX)+Math.abs(d.rotation)>359.9&&(d.rotationX=d.rotation=0,d.rotationY=180-d.rotationY),j=Math.atan2(L,S),d.scaleX=(Math.sqrt(w*w+x*x+k*k)*f+.5|0)/f,d.scaleY=(Math.sqrt(S*S+M*M)*f+.5|0)/f,d.scaleZ=(Math.sqrt(E*E+O*O+P*P)*f+.5|0)/f,w/=d.scaleX,L/=d.scaleY,x/=d.scaleX,S/=d.scaleY,Math.abs(j)>2e-5?(d.skewX=j*R,L=0,"simple"!==d.skewType&&(d.scaleY*=1/Math.cos(j))):d.skewX=0,d.perspective=N?1/(N<0?-N:N):0,d.x=D,d.y=A,d.z=I,d.svg&&(d.x-=d.xOrigin-(d.xOrigin*w-d.yOrigin*L),d.y-=d.yOrigin-(d.yOrigin*x-d.xOrigin*S))}else if(!Nt||i||!o.length||d.x!==o[4]||d.y!==o[5]||!d.rotationX&&!d.rotationY){var z=o.length>=6,Y=z?o[0]:1,F=o[1]||0,B=o[2]||0,$=z?o[3]:1;d.x=o[4]||0,d.y=o[5]||0,s=Math.sqrt(Y*Y+F*F),l=Math.sqrt($*$+B*B),u=Y||F?Math.atan2(F,Y)*R:d.rotation||0,c=B||$?Math.atan2(B,$)*R+u:d.skewX||0,d.scaleX=s,d.scaleY=l,d.rotation=u,d.skewX=c,Nt&&(d.rotationX=d.rotationY=d.z=0,d.perspective=m,d.scaleZ=1),d.svg&&(d.x-=d.xOrigin-(d.xOrigin*Y+d.yOrigin*B),d.y-=d.yOrigin-(d.xOrigin*F+d.yOrigin*$))}for(a in Math.abs(d.skewX)>90&&Math.abs(d.skewX)<270&&(h?(d.scaleX*=-1,d.skewX+=d.rotation<=0?180:-180,d.rotation+=d.rotation<=0?180:-180):(d.scaleY*=-1,d.skewX+=d.skewX<=0?180:-180)),d.zOrigin=p,d)d[a]<2e-5&&d[a]>-2e-5&&(d[a]=0)}return n&&(t._gsTransform=d,d.svg&&(St&&t.style[Dt]?Jn.f.delayedCall(.001,(function(){Xt(t.style,Dt)})):!St&&t.getAttribute("transform")&&Jn.f.delayedCall(.001,(function(){t.removeAttribute("transform")})))),d},Gt=function(t){var e,n,i=this.data,r=-i.rotation*N,o=r+i.skewX*N,a=1e5,s=(Math.cos(r)*i.scaleX*a|0)/a,l=(Math.sin(r)*i.scaleX*a|0)/a,u=(Math.sin(o)*-i.scaleY*a|0)/a,c=(Math.cos(o)*i.scaleY*a|0)/a,d=this.t.style,h=this.t.currentStyle;if(h){n=l,l=-u,u=-n,e=h.filter,d.filter="";var p,m,g=this.t.offsetWidth,v=this.t.offsetHeight,y="absolute"!==h.position,_="progid:DXImageTransform.Microsoft.Matrix(M11="+s+", M12="+l+", M21="+u+", M22="+c,b=i.x+g*i.xPercent/100,k=i.y+v*i.yPercent/100;if(null!=i.ox&&(b+=(p=(i.oxp?g*i.ox*.01:i.ox)-g/2)-(p*s+(m=(i.oyp?v*i.oy*.01:i.oy)-v/2)*l),k+=m-(p*u+m*c)),_+=y?", Dx="+((p=g/2)-(p*s+(m=v/2)*l)+b)+", Dy="+(m-(p*u+m*c)+k)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?d.filter=e.replace(D,_):d.filter=_+" "+e,0!==t&&1!==t||1===s&&0===l&&0===u&&1===c&&(y&&-1===_.indexOf("Dx=0, Dy=0")||x.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&d.removeAttribute("filter")),!y){var C,L,S,M=f<8?1:-1;for(p=i.ieOffsetX||0,m=i.ieOffsetY||0,i.ieOffsetX=Math.round((g-((s<0?-s:s)*g+(l<0?-l:l)*v))/2+b),i.ieOffsetY=Math.round((v-((c<0?-c:c)*v+(u<0?-u:u)*g))/2+k),xt=0;xt<4;xt++)S=(n=-1!==(C=h[L=ot[xt]]).indexOf("px")?parseFloat(C):tt(this.t,L,parseFloat(C),C.replace(w,""))||0)!==i[L]?xt<2?-i.ieOffsetX:-i.ieOffsetY:xt<2?p-i.ieOffsetX:m-i.ieOffsetY,d[L]=(i[L]=Math.round(n-S*(0===xt||2===xt?1:M)))+"px"}}},qt=H.set3DTransformRatio=H.setTransformRatio=function(t){var e,n,i,r,o,a,s,l,u,c,h,f,p,m,g,v,y,_,b,w,x,k=this.data,C=this.t.style,L=k.rotation,S=k.rotationX,M=k.rotationY,T=k.scaleX,E=k.scaleY,O=k.scaleZ,P=k.x,D=k.y,A=k.z,I=k.svg,R=k.perspective,j=k.force3D,z=k.skewY,Y=k.skewX;if(z&&(Y+=z,L+=z),!((1!==t&&0!==t||"auto"!==j||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&j||A||R||M||S||1!==O)||St&&I||!Nt)L||Y||I?(L*=N,w=Y*N,x=1e5,n=Math.cos(L)*T,o=Math.sin(L)*T,i=Math.sin(L-w)*-E,a=Math.cos(L-w)*E,w&&"simple"===k.skewType&&(e=Math.tan(w-z*N),i*=e=Math.sqrt(1+e*e),a*=e,z&&(e=Math.tan(z*N),n*=e=Math.sqrt(1+e*e),o*=e)),I&&(P+=k.xOrigin-(k.xOrigin*n+k.yOrigin*i)+k.xOffset,D+=k.yOrigin-(k.xOrigin*o+k.yOrigin*a)+k.yOffset,St&&(k.xPercent||k.yPercent)&&(g=this.t.getBBox(),P+=.01*k.xPercent*g.width,D+=.01*k.yPercent*g.height),P<(g=1e-6)&&P>-g&&(P=0),D-g&&(D=0)),b=(n*x|0)/x+","+(o*x|0)/x+","+(i*x|0)/x+","+(a*x|0)/x+","+P+","+D+")",I&&St?this.t.setAttribute("transform","matrix("+b):C[Dt]=(k.xPercent||k.yPercent?"translate("+k.xPercent+"%,"+k.yPercent+"%) matrix(":"matrix(")+b):C[Dt]=(k.xPercent||k.yPercent?"translate("+k.xPercent+"%,"+k.yPercent+"%) matrix(":"matrix(")+T+",0,0,"+E+","+P+","+D+")";else{if(d&&(T<(g=1e-4)&&T>-g&&(T=O=2e-5),E-g&&(E=O=2e-5),!R||k.z||k.rotationX||k.rotationY||(R=0)),L||Y)L*=N,v=n=Math.cos(L),y=o=Math.sin(L),Y&&(L-=Y*N,v=Math.cos(L),y=Math.sin(L),"simple"===k.skewType&&(e=Math.tan((Y-z)*N),v*=e=Math.sqrt(1+e*e),y*=e,k.skewY&&(e=Math.tan(z*N),n*=e=Math.sqrt(1+e*e),o*=e))),i=-y,a=v;else{if(!(M||S||1!==O||R||I))return void(C[Dt]=(k.xPercent||k.yPercent?"translate("+k.xPercent+"%,"+k.yPercent+"%) translate3d(":"translate3d(")+P+"px,"+D+"px,"+A+"px)"+(1!==T||1!==E?" scale("+T+","+E+")":""));n=a=1,i=o=0}c=1,r=s=l=u=h=f=0,p=R?-1/R:0,m=k.zOrigin,g=1e-6,",","0",(L=M*N)&&(v=Math.cos(L),l=-(y=Math.sin(L)),h=p*-y,r=n*y,s=o*y,c=v,p*=v,n*=v,o*=v),(L=S*N)&&(e=i*(v=Math.cos(L))+r*(y=Math.sin(L)),_=a*v+s*y,u=c*y,f=p*y,r=i*-y+r*v,s=a*-y+s*v,c*=v,p*=v,i=e,a=_),1!==O&&(r*=O,s*=O,c*=O,p*=O),1!==E&&(i*=E,a*=E,u*=E,f*=E),1!==T&&(n*=T,o*=T,l*=T,h*=T),(m||I)&&(m&&(P+=r*-m,D+=s*-m,A+=c*-m+m),I&&(P+=k.xOrigin-(k.xOrigin*n+k.yOrigin*i)+k.xOffset,D+=k.yOrigin-(k.xOrigin*o+k.yOrigin*a)+k.yOffset),P-g&&(P="0"),D-g&&(D="0"),A-g&&(A=0)),b=k.xPercent||k.yPercent?"translate("+k.xPercent+"%,"+k.yPercent+"%) matrix3d(":"matrix3d(",b+=(n-g?"0":n)+","+(o-g?"0":o)+","+(l-g?"0":l),b+=","+(h-g?"0":h)+","+(i-g?"0":i)+","+(a-g?"0":a),S||M||1!==O?(b+=","+(u-g?"0":u)+","+(f-g?"0":f)+","+(r-g?"0":r),b+=","+(s-g?"0":s)+","+(c-g?"0":c)+","+(p-g?"0":p)+","):b+=",0,0,0,0,1,0,",b+=P+","+D+","+A+","+(R?1+-A/R:1)+")",C[Dt]=b}};(s=Rt.prototype).x=s.y=s.z=s.skewX=s.skewY=s.rotation=s.rotationX=s.rotationY=s.zOrigin=s.xPercent=s.yPercent=s.xOffset=s.yOffset=0,s.scaleX=s.scaleY=s.scaleZ=1,Ct("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,o,a,s,l){if(o._lastParsedTransform===l)return a;o._lastParsedTransform=l;var u=l.scale&&"function"==typeof l.scale?l.scale:0;u&&(l.scale=u(m,t));var c,d,h,f,g,v,y,_,b,w=t._gsTransform,x=t.style,k=Pt.length,C=l,L={},S=Wt(t,n,!0,C.parseTransform),M=C.transform&&("function"==typeof C.transform?C.transform(m,p):C.transform);if(S.skewType=C.skewType||S.skewType||r.defaultSkewType,o._transform=S,"rotationZ"in C&&(C.rotation=C.rotationZ),M&&"string"==typeof M&&Dt)(d=B.style)[Dt]=M,d.display="block",d.position="absolute",-1!==M.indexOf("%")&&(d.width=Q(t,"width"),d.height=Q(t,"height")),Y.body.appendChild(B),c=Wt(B,null,!1),"simple"===S.skewType&&(c.scaleY*=Math.cos(c.skewX*N)),S.svg&&(v=S.xOrigin,y=S.yOrigin,c.x-=S.xOffset,c.y-=S.yOffset,(C.transformOrigin||C.svgOrigin)&&(M={},Bt(t,st(C.transformOrigin),M,C.svgOrigin,C.smoothOrigin,!0),v=M.xOrigin,y=M.yOrigin,c.x-=M.xOffset-S.xOffset,c.y-=M.yOffset-S.yOffset),(v||y)&&(_=Vt(B,!0),c.x-=v-(v*_[0]+y*_[2]),c.y-=y-(v*_[1]+y*_[3]))),Y.body.removeChild(B),c.perspective||(c.perspective=S.perspective),null!=C.xPercent&&(c.xPercent=ut(C.xPercent,S.xPercent)),null!=C.yPercent&&(c.yPercent=ut(C.yPercent,S.yPercent));else if("object"==typeof C){if(c={scaleX:ut(null!=C.scaleX?C.scaleX:C.scale,S.scaleX),scaleY:ut(null!=C.scaleY?C.scaleY:C.scale,S.scaleY),scaleZ:ut(C.scaleZ,S.scaleZ),x:ut(C.x,S.x),y:ut(C.y,S.y),z:ut(C.z,S.z),xPercent:ut(C.xPercent,S.xPercent),yPercent:ut(C.yPercent,S.yPercent),perspective:ut(C.transformPerspective,S.perspective)},null!=(g=C.directionalRotation))if("object"==typeof g)for(d in g)C[d]=g[d];else C.rotation=g;"string"==typeof C.x&&-1!==C.x.indexOf("%")&&(c.x=0,c.xPercent=ut(C.x,S.xPercent)),"string"==typeof C.y&&-1!==C.y.indexOf("%")&&(c.y=0,c.yPercent=ut(C.y,S.yPercent)),c.rotation=ct("rotation"in C?C.rotation:"shortRotation"in C?C.shortRotation+"_short":S.rotation,S.rotation,"rotation",L),Nt&&(c.rotationX=ct("rotationX"in C?C.rotationX:"shortRotationX"in C?C.shortRotationX+"_short":S.rotationX||0,S.rotationX,"rotationX",L),c.rotationY=ct("rotationY"in C?C.rotationY:"shortRotationY"in C?C.shortRotationY+"_short":S.rotationY||0,S.rotationY,"rotationY",L)),c.skewX=ct(C.skewX,S.skewX),c.skewY=ct(C.skewY,S.skewY)}for(Nt&&null!=C.force3D&&(S.force3D=C.force3D,f=!0),(h=S.force3D||S.z||S.rotationX||S.rotationY||c.z||c.rotationX||c.rotationY||c.perspective)||null==C.scale||(c.scaleZ=1);--k>-1;)((M=c[b=Pt[k]]-S[b])>1e-6||M<-1e-6||null!=C[b]||null!=j[b])&&(f=!0,a=new _t(S,b,S[b],M,a),b in L&&(a.e=L[b]),a.xs0=0,a.plugin=s,o._overwriteProps.push(a.n));return M="function"==typeof C.transformOrigin?C.transformOrigin(m,p):C.transformOrigin,S.svg&&(M||C.svgOrigin)&&(v=S.xOffset,y=S.yOffset,Bt(t,st(M),c,C.svgOrigin,C.smoothOrigin),a=bt(S,"xOrigin",(w?S:c).xOrigin,c.xOrigin,a,"transformOrigin"),a=bt(S,"yOrigin",(w?S:c).yOrigin,c.yOrigin,a,"transformOrigin"),v===S.xOffset&&y===S.yOffset||(a=bt(S,"xOffset",w?v:S.xOffset,S.xOffset,a,"transformOrigin"),a=bt(S,"yOffset",w?y:S.yOffset,S.yOffset,a,"transformOrigin")),M="0px 0px"),(M||Nt&&h&&S.zOrigin)&&(Dt?(f=!0,b=It,M||(M=(M=(Q(t,b,n,!1,"50% 50%")+"").split(" "))[0]+" "+M[1]+" "+S.zOrigin+"px"),M+="",(a=new _t(x,b,0,0,a,-1,"transformOrigin")).b=x[b],a.plugin=s,Nt?(d=S.zOrigin,M=M.split(" "),S.zOrigin=(M.length>2?parseFloat(M[2]):d)||0,a.xs0=a.e=M[0]+" "+(M[1]||"50%")+" 0px",(a=new _t(S,"zOrigin",0,0,a,-1,a.n)).b=d,a.xs0=a.e=S.zOrigin):a.xs0=a.e=M):st(M+"",S)),f&&(o._transformType=S.svg&&St||!h&&3!==this._transformType?2:3),u&&(l.scale=u),a},allowFunc:!0,prefix:!0}),Ct("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ct("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:gt("inset(0% 0% 0% 0%)",!1,!0)}),Ct("borderRadius",{defaultValue:"0px",parser:function(t,i,r,o,a,s){i=this.format(i);var l,u,c,d,h,f,p,m,g,v,y,_,b,w,x,k,C=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],L=t.style;for(g=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),l=i.split(" "),u=0;u-1;)(c=-1!==(g=s[u]).indexOf("%"))!==(-1!==l[u].indexOf("%"))&&(d=0===u?t.offsetWidth-$.width:t.offsetHeight-$.height,s[u]=c?parseFloat(g)/100*d+"px":parseFloat(g)/d*100+"%");g=s.join(" ")}return this.parseComplex(t.style,g,v,o,a)},formatter:st}),Ct("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:st(-1===t.indexOf(" ")?t+" "+t:t)}}),Ct("perspective",{defaultValue:"0px",prefix:!0}),Ct("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ct("transformStyle",{prefix:!0}),Ct("backfaceVisibility",{prefix:!0}),Ct("userSelect",{prefix:!0}),Ct("margin",{parser:vt("marginTop,marginRight,marginBottom,marginLeft")}),Ct("padding",{parser:vt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ct("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,o,a){var s,l,u;return f<9?(l=t.currentStyle,u=f<8?" ":",",s="rect("+l.clipTop+u+l.clipRight+u+l.clipBottom+u+l.clipLeft+")",e=this.format(e).split(",").join(u)):(s=this.format(Q(t,this.p,n,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,s,e,o,a)}}),Ct("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ct("autoRound,strictUnits",{parser:function(t,e,n,i,r){return r}}),Ct("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,o,a){var s=Q(t,"borderTopWidth",n,!1,"0px"),l=this.format(e).split(" "),u=l[0].replace(w,"");return"px"!==u&&(s=parseFloat(s)/tt(t,"borderTopWidth",1,u)+u),this.parseComplex(t.style,this.format(s+" "+Q(t,"borderTopStyle",n,!1,"solid")+" "+Q(t,"borderTopColor",n,!1,"#000")),l.join(" "),o,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(mt)||["#000"])[0]}}),Ct("borderWidth",{parser:vt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ct("float,cssFloat,styleFloat",{parser:function(t,e,n,i,r,o){var a=t.style,s="cssFloat"in a?"cssFloat":"styleFloat";return new _t(a,s,0,0,r,-1,n,!1,0,a[s],e)}});var Zt=function(t){var e,n=this.t,i=n.filter||Q(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===i.indexOf("atrix(")&&-1===i.indexOf("radient(")&&-1===i.indexOf("oader(")?(n.removeAttribute("filter"),e=!Q(this.data,"filter")):(n.filter=i.replace(C,""),e=!0)),e||(this.xn1&&(n.filter=i=i||"alpha(opacity="+r+")"),-1===i.indexOf("pacity")?0===r&&this.xn1||(n.filter=i+" alpha(opacity="+r+")"):n.filter=i.replace(x,"opacity="+r))};Ct("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,o,a){var s=parseFloat(Q(t,"opacity",n,!1,"1")),l=t.style,u="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+s),u&&1===s&&"hidden"===Q(t,"visibility",n)&&0!==e&&(s=0),V?o=new _t(l,"opacity",s,e-s,o):((o=new _t(l,"opacity",100*s,100*(e-s),o)).xn1=u?1:0,l.zoom=1,o.type=2,o.b="alpha(opacity="+o.s+")",o.e="alpha(opacity="+(o.s+o.c)+")",o.data=t,o.plugin=a,o.setRatio=Zt),u&&((o=new _t(l,"visibility",0,0,o,-1,null,!1,0,0!==s?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(o.n),r._overwriteProps.push(i)),o}});var Xt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(S,"-$1").toLowerCase())):t.removeAttribute(e))},Jt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,n=this.t.style;e;)e.v?n[e.p]=e.v:Xt(n,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Ct("className",{parser:function(e,i,r,o,a,s,l){var u,c,d,h,f,p=e.getAttribute("class")||"",m=e.style.cssText;if((a=o._classNamePT=new _t(e,r,0,0,a,2)).setRatio=Jt,a.pr=-11,t=!0,a.b=p,c=nt(e,n),d=e._gsClassPT){for(h={},f=d.data;f;)h[f.p]=1,f=f._next;d.setRatio(1)}return e._gsClassPT=a,a.e="="!==i.charAt(1)?i:p.replace(new RegExp("(?:\\s|^)"+i.substr(2)+"(?![\\w-])"),"")+("+"===i.charAt(0)?" "+i.substr(2):""),e.setAttribute("class",a.e),u=it(e,c,nt(e),l,h),e.setAttribute("class",p),a.data=u.firstMPT,e.style.cssText!==m&&(e.style.cssText=m),a=a.xfirst=o.parse(e,u.difs,a,s)}});var Kt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,n,i,r,o,s=this.t.style,l=a.transform.parse;if("all"===this.e)s.cssText="",r=!0;else for(i=(e=this.e.split(" ").join("").split(",")).length;--i>-1;)n=e[i],a[n]&&(a[n].parse===l?r=!0:n="transformOrigin"===n?It:a[n].p),Xt(s,n);r&&(Xt(s,Dt),(o=this.t._gsTransform)&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Ct("clearProps",{parser:function(e,n,i,r,o){return(o=new _t(e,i,0,0,o,2)).setRatio=Kt,o.e=n,o.pr=-10,o.data=r._tween,t=!0,o}}),s="bezier,throwProps,physicsProps,physics2D".split(","),xt=s.length;xt--;)Lt(s[xt]);(s=r.prototype)._firstPT=s._lastParsedTransform=s._transform=null,s._onInitTween=function(o,s,d,f){if(!o.nodeType)return!1;this._target=p=o,this._tween=d,this._vars=s,m=f,l=s.autoRound,t=!1,e=s.suffixMap||r.suffixMap,n=K(o),i=this._overwriteProps;var g,v,y,_,b,w,x,C,L,S=o.style;if(u&&""===S.zIndex&&("auto"!==(g=Q(o,"zIndex",n))&&""!==g||this._addLazySet(S,"zIndex",0)),"string"==typeof s&&(_=S.cssText,g=nt(o,n),S.cssText=_+";"+s,g=it(o,g,nt(o)).difs,!V&&k.test(s)&&(g.opacity=parseFloat(RegExp.$1)),s=g,S.cssText=_),s.className?this._firstPT=v=a.className.parse(o,s.className,"className",this,null,null,s):this._firstPT=v=this.parse(o,s,null),this._transformType){for(L=3===this._transformType,Dt?c&&(u=!0,""===S.zIndex&&("auto"!==(x=Q(o,"zIndex",n))&&""!==x||this._addLazySet(S,"zIndex",0)),h&&this._addLazySet(S,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(L?"visible":"hidden"))):S.zoom=1,y=v;y&&y._next;)y=y._next;C=new _t(o,"transform",0,0,null,2),this._linkCSSP(C,null,y),C.setRatio=Dt?qt:Gt,C.data=this._transform||Wt(o,n,!0),C.tween=d,C.pr=-1,i.pop()}if(t){for(;v;){for(w=v._next,y=_;y&&y.pr>v.pr;)y=y._next;(v._prev=y?y._prev:b)?v._prev._next=v:_=v,(v._next=y)?y._prev=v:b=v,v=w}this._firstPT=_}return!0},s.parse=function(t,i,r,o){var s,u,c,d,h,f,g,v,y,_,b=t.style;for(s in i){if(f=i[s],u=a[s],"function"!=typeof f||u&&u.allowFunc||(f=f(m,p)),u)r=u.parse(t,f,s,this,r,o,i);else{if("--"===s.substr(0,2)){this._tween._propLookup[s]=this._addTween.call(this._tween,t.style,"setProperty",K(t).getPropertyValue(s)+"",f+"",s,!1,s);continue}h=Q(t,s,n)+"",y="string"==typeof f,"color"===s||"fill"===s||"stroke"===s||-1!==s.indexOf("Color")||y&&L.test(f)?(y||(f=((f=ft(f)).length>3?"rgba(":"rgb(")+f.join(",")+")"),r=wt(b,s,h,f,!0,"transparent",r,0,o)):y&&I.test(f)?r=wt(b,s,h,f,!0,null,r,0,o):(g=(c=parseFloat(h))||0===c?h.substr((c+"").length):"",""!==h&&"auto"!==h||("width"===s||"height"===s?(c=at(t,s,n),g="px"):"left"===s||"top"===s?(c=et(t,s,n),g="px"):(c="opacity"!==s?0:1,g="")),(_=y&&"="===f.charAt(1))?(d=parseInt(f.charAt(0)+"1",10),f=f.substr(2),d*=parseFloat(f),v=f.replace(w,"")):(d=parseFloat(f),v=y?f.replace(w,""):""),""===v&&(v=s in e?e[s]:g),f=d||0===d?(_?d+c:d)+v:i[s],g!==v&&(""===v&&"lineHeight"!==s||(d||0===d)&&c&&(c=tt(t,s,c,g),"%"===v?(c/=tt(t,s,100,"%")/100,!0!==i.strictUnits&&(h=c+"%")):"em"===v||"rem"===v||"vw"===v||"vh"===v?c/=tt(t,s,1,v):"px"!==v&&(d=tt(t,s,d,v),v="px"),_&&(d||0===d)&&(f=d+c+v))),_&&(d+=c),!c&&0!==c||!d&&0!==d?void 0!==b[s]&&(f||f+""!="NaN"&&null!=f)?(r=new _t(b,s,d||c||0,0,r,-1,s,!1,0,h,f)).xs0="none"!==f||"display"!==s&&-1===s.indexOf("Style")?f:h:G(i[s]):(r=new _t(b,s,c,d-c,r,0,s,!1!==l&&("px"===v||"zIndex"===s),0,h,f)).xs0=v)}o&&r&&!r.plugin&&(r.plugin=o)}return r},s.setRatio=function(t){var e,n,i,r=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;r;){if(e=r.c*t+r.s,r.r?e=r.r(e):e<1e-6&&e>-1e-6&&(e=0),r.type)if(1===r.type)if(2===(i=r.l))r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(n=r.xs0+e+r.xs1,i=1;i-1;)te(t[r],e,n);else for(r=(i=t.childNodes).length;--r>-1;)a=(o=i[r]).type,o.style&&(e.push(nt(o)),n&&n.push(o)),1!==a&&9!==a&&11!==a||!o.childNodes.length||te(o,e,n)};return r.cascadeTo=function(t,e,n){var i,r,o,a,s=Jn.f.to(t,e,n),l=[s],u=[],c=[],d=[],h=Jn.f._internals.reservedProps;for(t=s._targets||s.target,te(t,u,d),s.render(e,!0,!0),te(t,c),s.render(0,!0,!0),s._enabled(!0),i=d.length;--i>-1;)if((r=it(d[i],u[i],c[i])).firstMPT){for(o in r=r.difs,n)h[o]&&(r[o]=n[o]);for(o in a={},r)a[o]=u[i][o];l.push(Jn.f.fromTo(d[i],e,a,r))}return l},Jn.d.activate([r]),r}),!0);var Qn=Jn.g.CSSPlugin,ti=Jn.e._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,n,i){var r,o;if("function"!=typeof t.setAttribute)return!1;for(r in e)"function"==typeof(o=e[r])&&(o=o(i,t)),this._addTween(t,"setAttribute",t.getAttribute(r)+"",o+"",r,!1,r),this._overwriteProps.push(r);return!0}}),ei=Jn.e._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,n){return this._tween=n,!0}}),ni=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(n){return(Math.round(n/t)*t*e|0)/e}},ii=function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next},ri=ei.prototype;ri._onInitAllProps=function(){var t,e,n,i,r=this._tween,o=r.vars.roundProps,a={},s=r._propLookup.roundProps;if("object"!=typeof o||o.push)for("string"==typeof o&&(o=o.split(",")),n=o.length;--n>-1;)a[o[n]]=Math.round;else for(i in o)a[i]=ni(o[i]);for(i in a)for(t=r._firstPT;t;)e=t._next,t.pg?t.t._mod(a):t.n===i&&(2===t.f&&t.t?ii(t.t._firstPT,a[i]):(this._add(t.t,i,t.s,t.c,a[i]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:r._firstPT===t&&(r._firstPT=e),t._next=t._prev=null,r._propLookup[i]=s)),t=e;return!1},ri._add=function(t,e,n,i,r){this._addTween(t,e,n,n+i,e,r||Math.round),this._overwriteProps.push(e)};var oi=Jn.e._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,n,i){"object"!=typeof e&&(e={rotation:e}),this.finals={};var r,o,a,s,l,u,c=!0===e.useRadians?2*Math.PI:360;for(r in e)"useRadians"!==r&&("function"==typeof(s=e[r])&&(s=s(i,t)),o=(u=(s+"").split("_"))[0],a=parseFloat("function"!=typeof t[r]?t[r]:t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]()),l=(s=this.finals[r]="string"==typeof o&&"="===o.charAt(1)?a+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0)-a,u.length&&(-1!==(o=u.join("_")).indexOf("short")&&(l%=c)!==l%(c/2)&&(l=l<0?l+c:l-c),-1!==o.indexOf("_cw")&&l<0?l=(l+9999999999*c)%c-(l/c|0)*c:-1!==o.indexOf("ccw")&&l>0&&(l=(l-9999999999*c)%c-(l/c|0)*c)),(l>1e-6||l<-1e-6)&&(this._addTween(t,r,a,a+l,r),this._overwriteProps.push(r)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}});oi._autoCSS=!0,Jn.e._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],(function(){var t=function(t){Jn.c.call(this,t);var e,n,i=this.vars;for(n in this._labels={},this.autoRemoveChildren=!!i.autoRemoveChildren,this.smoothChildTiming=!!i.smoothChildTiming,this._sortChildren=!0,this._onUpdate=i.onUpdate,i)e=i[n],r(e)&&-1!==e.join("").indexOf("{self}")&&(i[n]=this._swapSelfInParams(e));r(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)},e=Jn.f._internals,n=t._internals={},i=e.isSelector,r=e.isArray,o=e.lazyTweens,a=e.lazyRender,s=Jn.e._gsDefine.globals,l=function(t){var e,n={};for(e in t)n[e]=t[e];return n},u=function(t,e,n){var i,r,o=t.cycle;for(i in o)r=o[i],t[i]="function"==typeof r?r(n,e[n],e):r[n%r.length];delete t.cycle},c=n.pauseCallback=function(){},d=function(t,e,n,i){var r="immediateRender";return r in e||(e[r]=!(n&&!1===n[r]||i)),e},h=function(t){if("function"==typeof t)return t;var e="object"==typeof t?t:{each:t},n=e.ease,i=e.from||0,r=e.base||0,o={},a=isNaN(i),s=e.axis,l={center:.5,end:1}[i]||0;return function(t,u,c){var d,h,f,p,m,g,v,y,_,b=(c||e).length,w=o[b];if(!w){if(!(_="auto"===e.grid?0:(e.grid||[1/0])[0])){for(v=-1/0;v<(v=c[_++].getBoundingClientRect().left)&&_v&&(v=m),mb?b-1:s?"y"===s?b/_:_:Math.max(_,b/_))||0,w.b=b<0?r-b:r}return b=(w[t]-w.min)/w.max,w.b+(n?n.getRatio(b):b)*w.v}},f=t.prototype=new Jn.c;return t.version="2.1.3",t.distribute=h,f.constructor=t,f.kill()._gc=f._forcingPlayhead=f._hasPause=!1,f.to=function(t,e,n,i){var r=n.repeat&&s.TweenMax||Jn.f;return e?this.add(new r(t,e,n),i):this.set(t,n,i)},f.from=function(t,e,n,i){return this.add((n.repeat&&s.TweenMax||Jn.f).from(t,e,d(0,n)),i)},f.fromTo=function(t,e,n,i,r){var o=i.repeat&&s.TweenMax||Jn.f;return i=d(0,i,n),e?this.add(o.fromTo(t,e,n,i),r):this.set(t,i,r)},f.staggerTo=function(e,n,r,o,a,s,c,d){var f,p,m=new t({onComplete:s,onCompleteParams:c,callbackScope:d,smoothChildTiming:this.smoothChildTiming}),g=h(r.stagger||o),v=r.startAt,y=r.cycle;for("string"==typeof e&&(e=Jn.f.selector(e)||e),i(e=e||[])&&(e=function(t){var e,n=[],i=t.length;for(e=0;e!==i;n.push(t[e++]));return n}(e)),p=0;p1e-5)&&e.render(a,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duratione._startTime;c._timeline;)d&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},f.remove=function(t){if(t instanceof Jn.a){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?Jn.a._rootFramesTimeline:Jn.a._rootTimeline;return t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&r(t)){for(var n=t.length;--n>-1;)this.remove(t[n]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},f._remove=function(t,e){return Jn.c.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},f.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},f.insert=f.insertMultiple=function(t,e,n,i){return this.add(t,e||0,n,i)},f.appendMultiple=function(t,e,n,i){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),n,i)},f.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},f.addPause=function(t,e,n,i){var r=Jn.f.delayedCall(0,c,n,i||this);return r.vars.onComplete=r.vars.onReverseComplete=e,r.data="isPause",this._hasPause=!0,this.add(r,t)},f.removeLabel=function(t){return delete this._labels[t],this},f.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},f._parseTimeOrLabel=function(t,e,n,i){var o,a;if(i instanceof Jn.a&&i.timeline===this)this.remove(i);else if(i&&(i instanceof Array||i.push&&r(i)))for(a=i.length;--a>-1;)i[a]instanceof Jn.a&&i[a].timeline===this&&this.remove(i[a]);if(o="number"!=typeof t||e?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,n&&"number"==typeof t&&null==this._labels[e]?t-o:0,n);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=o);else{if(-1===(a=t.indexOf("=")))return null==this._labels[t]?n?this._labels[t]=o+e:e:this._labels[t]+e;e=parseInt(t.charAt(a-1)+"1",10)*Number(t.substr(a+1)),t=a>1?this._parseTimeOrLabel(t.substr(0,a-1),0,n):o}return Number(t)+e},f.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},f.stop=function(){return this.paused(!0)},f.gotoAndPlay=function(t,e){return this.play(t,e)},f.gotoAndStop=function(t,e){return this.pause(t,e)},f.render=function(t,e,n){this._gc&&this._enabled(!0,!1);var i,r,s,l,u,c,d,h,f=this._time,p=this._dirty?this.totalDuration():this._totalDuration,m=this._startTime,g=this._timeScale,v=this._paused;if(f!==this._time&&(t+=this._time-f),this._hasPause&&!this._forcingPlayhead&&!e){if(t>f)for(i=this._first;i&&i._startTime<=t&&!c;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===this._rawPrevTime||(c=i),i=i._next;else for(i=this._last;i&&i._startTime>=t&&!c;)i._duration||"isPause"===i.data&&i._rawPrevTime>0&&(c=i),i=i._prev;c&&(this._time=this._totalTime=t=c._startTime,h=this._startTime+(this._reversed?this._duration-t:t)/this._timeScale)}if(t>=p-1e-8&&t>=0)this._totalTime=this._time=p,this._reversed||this._hasPausedChild()||(r=!0,l="onComplete",u=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-8||this._rawPrevTime<0||1e-8===this._rawPrevTime)&&this._rawPrevTime!==t&&this._first&&(u=!0,this._rawPrevTime>1e-8&&(l="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,t=p+1e-4;else if(t<1e-8)if(this._totalTime=this._time=0,t>-1e-8&&(t=0),(0!==f||0===this._duration&&1e-8!==this._rawPrevTime&&(this._rawPrevTime>0||t<0&&this._rawPrevTime>=0))&&(l="onReverseComplete",r=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(u=r=!0,l="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(u=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,0===t&&r)for(i=this._first;i&&0===i._startTime;)i._duration||(r=!1),i=i._next;t=0,this._initted||(u=!0)}else this._totalTime=this._time=this._rawPrevTime=t;if(this._time!==f&&this._first||n||u||c){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&t>0&&(this._active=!0),0===f&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),(d=this._time)>=f)for(i=this._first;i&&(s=i._next,d===this._time&&(!this._paused||v));)(i._active||i._startTime<=d&&!i._paused&&!i._gc)&&(c===i&&(this.pause(),this._pauseTime=h),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,n):i.render((t-i._startTime)*i._timeScale,e,n)),i=s;else for(i=this._last;i&&(s=i._prev,d===this._time&&(!this._paused||v));){if(i._active||i._startTime<=f&&!i._paused&&!i._gc){if(c===i){for(c=i._prev;c&&c.endTime()>this._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,e,n),c=c._prev;c=null,this.pause(),this._pauseTime=h}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,n):i.render((t-i._startTime)*i._timeScale,e,n)}i=s}this._onUpdate&&(e||(o.length&&a(),this._callback("onUpdate"))),l&&(this._gc||m!==this._startTime&&g===this._timeScale||(0===this._time||p>=this.totalDuration())&&(r&&(o.length&&a(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[l]&&this._callback(l)))}},f._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof t&&e._hasPausedChild())return!0;e=e._next}return!1},f.getChildren=function(t,e,n,i){i=i||-9999999999;for(var r=[],o=this._first,a=0;o;)o._startTime-1;)(n[i].timeline===this||e&&this._contains(n[i]))&&(o[a++]=n[i]);return r&&this._enabled(!1,!0),o},f.recent=function(){return this._recent},f._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},f.shiftChildren=function(t,e,n){n=n||0;for(var i,r=this._first,o=this._labels;r;)r._startTime>=n&&(r._startTime+=t),r=r._next;if(e)for(i in o)o[i]>=n&&(o[i]+=t);return this._uncache(!0)},f._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var n=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),i=n.length,r=!1;--i>-1;)n[i]._kill(t,e)&&(r=!0);return r},f.clear=function(t){var e=this.getChildren(!1,!0,!0),n=e.length;for(this._time=this._totalTime=0;--n>-1;)e[n]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},f.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return Jn.a.prototype.invalidate.call(this)},f._enabled=function(t,e){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return Jn.c.prototype._enabled.call(this,t,e)},f.totalTime=function(t,e,n){this._forcingPlayhead=!0;var i=Jn.a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,i},f.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},f.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,n,i=0,r=this,o=r._last,a=999999999999;o;)e=o._prev,o._dirty&&o.totalDuration(),o._startTime>a&&r._sortChildren&&!o._paused&&!r._calculatingDuration?(r._calculatingDuration=1,r.add(o,o._startTime-o._delay),r._calculatingDuration=0):a=o._startTime,o._startTime<0&&!o._paused&&(i-=o._startTime,r._timeline.smoothChildTiming&&(r._startTime+=o._startTime/r._timeScale,r._time-=o._startTime,r._totalTime-=o._startTime,r._rawPrevTime-=o._startTime),r.shiftChildren(-o._startTime,!1,-9999999999),a=0),(n=o._startTime+o._totalDuration/o._timeScale)>i&&(i=n),o=e;r._duration=r._totalDuration=i,r._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},f.paused=function(t){if(!1===t&&this._paused)for(var e=this._first;e;)e._startTime===this._time&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return Jn.a.prototype.paused.apply(this,arguments)},f.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===Jn.a._rootFramesTimeline},f.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},t}),!0);var ai=Jn.g.TimelineLite;Jn.e._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],(function(){var t=function(t){ai.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},e=Jn.f._internals,n=e.lazyTweens,i=e.lazyRender,r=Jn.e._gsDefine.globals,o=new Jn.b(null,null,1,0),a=t.prototype=new ai;return a.constructor=t,a.kill()._gc=!1,t.version="2.1.3",a.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),ai.prototype.invalidate.call(this)},a.addCallback=function(t,e,n,i){return this.add(Jn.f.delayedCall(0,t,n,i),e)},a.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var n=this.getTweensOf(t,!1),i=n.length,r=this._parseTimeOrLabel(e);--i>-1;)n[i]._startTime===r&&n[i]._enabled(!1,!1);return this},a.removePause=function(t){return this.removeCallback(ai._internals.pauseCallback,t)},a.tweenTo=function(t,e){e=e||{};var n,i,a,s={ease:o,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},l=e.repeat&&r.TweenMax||Jn.f;for(i in e)s[i]=e[i];return s.time=this._parseTimeOrLabel(t),n=Math.abs(Number(s.time)-this._time)/this._timeScale||.001,a=new l(this,n,s),s.onStart=function(){a.target.paused(!0),a.vars.time===a.target.time()||n!==a.duration()||a.isFromTo||a.duration(Math.abs(a.vars.time-a.target.time())/a.target._timeScale).render(a.time(),!0,!0),e.onStart&&e.onStart.apply(e.onStartScope||e.callbackScope||a,e.onStartParams||[])},a},a.tweenFromTo=function(t,e,n){n=n||{},t=this._parseTimeOrLabel(t),n.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},n.immediateRender=!1!==n.immediateRender;var i=this.tweenTo(e,n);return i.isFromTo=1,i.duration(Math.abs(i.vars.time-t)/this._timeScale||.001)},a.render=function(t,e,r){this._gc&&this._enabled(!0,!1);var o,a,s,l,u,c,d,h,f,p=this._time,m=this._dirty?this.totalDuration():this._totalDuration,g=this._duration,v=this._totalTime,y=this._startTime,_=this._timeScale,b=this._rawPrevTime,w=this._paused,x=this._cycle;if(p!==this._time&&(t+=this._time-p),t>=m-1e-8&&t>=0)this._locked||(this._totalTime=m,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(a=!0,l="onComplete",u=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-8||b<0||1e-8===b)&&b!==t&&this._first&&(u=!0,b>1e-8&&(l="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,this._yoyo&&1&this._cycle?this._time=t=0:(this._time=g,t=g+1e-4);else if(t<1e-8)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,t>-1e-8&&(t=0),(0!==p||0===g&&1e-8!==b&&(b>0||t<0&&b>=0)&&!this._locked)&&(l="onReverseComplete",a=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(u=a=!0,l="onReverseComplete"):b>=0&&this._first&&(u=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=g||!e||t||this._rawPrevTime===t?t:1e-8,0===t&&a)for(o=this._first;o&&0===o._startTime;)o._duration||(a=!1),o=o._next;t=0,this._initted||(u=!0)}else 0===g&&b<0&&(u=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(c=g+this._repeatDelay,this._cycle=this._totalTime/c>>0,this._cycle&&this._cycle===this._totalTime/c&&v<=t&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&1&this._cycle&&(this._time=g-this._time),this._time>g?(this._time=g,t=g+1e-4):this._time<0?this._time=t=0:t=this._time));if(this._hasPause&&!this._forcingPlayhead&&!e){if((t=this._time)>p||this._repeat&&x!==this._cycle)for(o=this._first;o&&o._startTime<=t&&!d;)o._duration||"isPause"!==o.data||o.ratio||0===o._startTime&&0===this._rawPrevTime||(d=o),o=o._next;else for(o=this._last;o&&o._startTime>=t&&!d;)o._duration||"isPause"===o.data&&o._rawPrevTime>0&&(d=o),o=o._prev;d&&(f=this._startTime+(this._reversed?this._duration-d._startTime:d._startTime)/this._timeScale,d._startTime0&&(this._active=!0),0===v&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),(h=this._time)>=p)for(o=this._first;o&&(s=o._next,h===this._time&&(!this._paused||w));)(o._active||o._startTime<=this._time&&!o._paused&&!o._gc)&&(d===o&&(this.pause(),this._pauseTime=f),o._reversed?o.render((o._dirty?o.totalDuration():o._totalDuration)-(t-o._startTime)*o._timeScale,e,r):o.render((t-o._startTime)*o._timeScale,e,r)),o=s;else for(o=this._last;o&&(s=o._prev,h===this._time&&(!this._paused||w));){if(o._active||o._startTime<=p&&!o._paused&&!o._gc){if(d===o){for(d=o._prev;d&&d.endTime()>this._time;)d.render(d._reversed?d.totalDuration()-(t-d._startTime)*d._timeScale:(t-d._startTime)*d._timeScale,e,r),d=d._prev;d=null,this.pause(),this._pauseTime=f}o._reversed?o.render((o._dirty?o.totalDuration():o._totalDuration)-(t-o._startTime)*o._timeScale,e,r):o.render((t-o._startTime)*o._timeScale,e,r)}o=s}this._onUpdate&&(e||(n.length&&i(),this._callback("onUpdate"))),l&&(this._locked||this._gc||y!==this._startTime&&_===this._timeScale||(0===this._time||m>=this.totalDuration())&&(a&&(n.length&&i(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[l]&&this._callback(l)))}else v!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},a.getActive=function(t,e,n){var i,r,o=[],a=this.getChildren(t||null==t,e||null==t,!!n),s=0,l=a.length;for(i=0;it)return n[e].name;return null},a.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),n=e.length;--n>-1;)if(e[n].timen&&(t=n),this.totalTime(this._yoyo&&1&i?n-t+r:this._repeat?t+r:t,e)},a.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},a.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},a.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},a.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},t}),!0);var si=Jn.g.TimelineMax,li=180/Math.PI,ui=[],ci=[],di=[],hi={},fi=Jn.e._gsDefine.globals,pi=function(t,e,n,i){n===i&&(n=i-(i-e)/1e6),t===e&&(e=t+(n-t)/1e6),this.a=t,this.b=e,this.c=n,this.d=i,this.da=i-t,this.ca=n-t,this.ba=e-t},mi=function(t,e,n,i){var r={a:t},o={},a={},s={c:i},l=(t+e)/2,u=(e+n)/2,c=(n+i)/2,d=(l+u)/2,h=(u+c)/2,f=(h-d)/8;return r.b=l+(t-l)/4,o.b=d+f,r.c=o.a=(r.b+o.b)/2,o.c=a.a=(d+h)/2,a.b=h-f,s.b=c+(i-c)/4,a.c=s.a=(a.b+s.b)/2,[r,o,a,s]},gi=function(t,e,n,i,r){var o,a,s,l,u,c,d,h,f,p,m,g,v,y=t.length-1,_=0,b=t[0].a;for(o=0;o-1;)"string"==typeof(u=t[o][e])&&"="===u.charAt(1)&&(t[o][e]=i[e]+Number(u.charAt(0)+u.substr(2)));if((r=t.length-2)<0)return c[0]=new pi(t[0][e],0,0,t[0][e]),c;for(o=0;o1){for(f=t[t.length-1],h=!0,a=m.length;--a>-1;)if(s=m[a],Math.abs(g[s]-f[s])>.05){h=!1;break}h&&(t=t.concat(),o&&t.unshift(o),t.push(t[1]),o=t[t.length-3])}for(ui.length=ci.length=di.length=0,a=m.length;--a>-1;)s=m[a],hi[s]=-1!==r.indexOf(","+s+","),p[s]=vi(t,s,hi[s],o);for(a=ui.length;--a>-1;)ui[a]=Math.sqrt(ui[a]),ci[a]=Math.sqrt(ci[a]);if(!i){for(a=m.length;--a>-1;)if(hi[s])for(d=(l=p[m[a]]).length-1,u=0;u-1;)di[a]=Math.sqrt(di[a])}for(a=m.length,u=n?4:1;--a>-1;)l=p[s=m[a]],gi(l,e,n,i,hi[s]),h&&(l.splice(0,u),l.splice(l.length-u,u));return p},_i=function(t,e,n){for(var i,r,o,a,s,l,u,c,d,h,f,p=1/n,m=t.length;--m>-1;)for(o=(h=t[m]).a,a=h.d-o,s=h.c-o,l=h.b-o,i=r=0,c=1;c<=n;c++)i=r-(r=((u=p*c)*u*a+3*(d=1-u)*(u*s+d*l))*u),e[f=m*n+c-1]=(e[f]||0)+i*i},bi=Jn.e._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.9",API:2,global:!0,init:function(t,e,n){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var i,r,o,a,s,l=e.values||[],u={},c=l[0],d=e.autoRotate||n.vars.orientToBezier;for(i in this._autoRotate=d?d instanceof Array?d:[["x","y","rotation",!0===d?0:Number(d)||0]]:null,c)this._props.push(i);for(o=this._props.length;--o>-1;)i=this._props[o],this._overwriteProps.push(i),r=this._func[i]="function"==typeof t[i],u[i]=r?t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)]():parseFloat(t[i]),s||u[i]!==l[0][i]&&(s=u);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?yi(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,s):function(t,e,n){var i,r,o,a,s,l,u,c,d,h,f,p={},m="cubic"===(e=e||"soft")?3:2,g="soft"===e,v=[];if(g&&n&&(t=[n].concat(t)),null==t||t.length-1;){for(p[d=v[l]]=s=[],h=0,c=t.length,u=0;u1&&u>0||6)-1,d=[],h=[];for(n in t)_i(t[n],a,e);for(r=a.length,i=0;i>0]=h,s[o]=u,l=0,h=[]);return{length:u,lengths:s,segments:d}}(this._beziers,this._timeRes);this._length=h.length,this._lengths=h.lengths,this._segments=h.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(d=this._autoRotate)for(this._initialRotations=[],d[0]instanceof Array||(this._autoRotate=d=[d]),o=d.length;--o>-1;){for(a=0;a<3;a++)i=d[o][a],this._func[i]="function"==typeof t[i]&&t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)];i=d[o][2],this._initialRotations[o]=(this._func[i]?this._func[i].call(this._target):this._target[i])||0,this._overwriteProps.push(i)}return this._startRatio=n.vars.runBackwards?1:0,!0},set:function(t){var e,n,i,r,o,a,s,l,u,c,d,h=this._segCount,f=this._func,p=this._target,m=t!==this._startRatio;if(this._timeRes){if(u=this._lengths,c=this._curSeg,d=t*this._length,i=this._li,d>this._l2&&i0){for(;i>0&&(this._l1=u[--i])>=d;);0===i&&dthis._s2&&i0){for(;i>0&&(this._s1=c[--i])>=d;);0===i&&d=1?h-1:h*t>>0)*(1/h))*h;for(n=1-a,i=this._props.length;--i>-1;)r=this._props[i],s=(a*a*(o=this._beziers[r][e]).da+3*n*(a*o.ca+n*o.ba))*a+o.a,this._mod[r]&&(s=this._mod[r](s,p)),f[r]?p[r](s):p[r]=s;if(this._autoRotate){var g,v,y,_,b,w,x,k=this._autoRotate;for(i=k.length;--i>-1;)r=k[i][2],w=k[i][3]||0,x=!0===k[i][4]?1:li,o=this._beziers[k[i][0]],g=this._beziers[k[i][1]],o&&g&&(o=o[e],g=g[e],v=o.a+(o.b-o.a)*a,v+=((_=o.b+(o.c-o.b)*a)-v)*a,_+=(o.c+(o.d-o.c)*a-_)*a,y=g.a+(g.b-g.a)*a,y+=((b=g.b+(g.c-g.b)*a)-y)*a,b+=(g.c+(g.d-g.c)*a-b)*a,s=m?Math.atan2(b-y,_-v)*x+w:this._initialRotations[i],this._mod[r]&&(s=this._mod[r](s,p)),f[r]?p[r](s):p[r]=s)}}}),wi=bi.prototype;bi.bezierThrough=yi,bi.cubicToQuadratic=mi,bi._autoCSS=!0,bi.quadraticToCubic=function(t,e,n){return new pi(t,(2*e+t)/3,(2*e+n)/3,n)},bi._cssRegister=function(){var t=fi.CSSPlugin;if(t){var e=t._internals,n=e._parseToProxy,i=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,o,a,s,l){e instanceof Array&&(e={values:e}),l=new bi;var u,c,d,h=e.values,f=h.length-1,p=[],m={};if(f<0)return s;for(u=0;u<=f;u++)d=n(t,h[u],a,s,l,f!==u),p[u]=d.end;for(c in e)m[c]=e[c];return m.values=p,(s=new r(t,"bezier",0,0,d.pt,2)).data=d,s.plugin=l,s.setRatio=i,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(u=!0===m.autoRotate?0:Number(m.autoRotate),m.autoRotate=null!=d.end.left?[["left","top","rotation",u,!1]]:null!=d.end.x&&[["x","y","rotation",u,!1]]),m.autoRotate&&(a._transform||a._enableTransforms(!1),d.autoRotate=a._target._gsTransform,d.proxy.rotation=d.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(d.proxy,m,a._tween),s}})}},wi._mod=function(t){for(var e,n=this._overwriteProps,i=n.length;--i>-1;)(e=t[n[i]])&&"function"==typeof e&&(this._mod[n[i]]=e)},wi._kill=function(t){var e,n,i=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],n=i.length;--n>-1;)i[n]===e&&i.splice(n,1);if(i=this._autoRotate)for(n=i.length;--n>-1;)t[i[n][2]]&&i.splice(n,1);return this._super._kill.call(this,t)},Jn.e._gsDefine("easing.Back",["easing.Ease"],(function(){var t,e,n,i,r=Jn.e.GreenSockGlobals||Jn.e,o=r.com.greensock,a=2*Math.PI,s=Math.PI/2,l=o._class,u=function(t,e){var n=l("easing."+t,(function(){}),!0),i=n.prototype=new Jn.b;return i.constructor=n,i.getRatio=e,n},c=Jn.b.register||function(){},d=function(t,e,n,i,r){var o=l("easing."+t,{easeOut:new e,easeIn:new n,easeInOut:new i},!0);return c(o,t),o},h=function(t,e,n){this.t=t,this.v=e,n&&(this.next=n,n.prev=this,this.c=n.v-e,this.gap=n.t-t)},f=function(t,e){var n=l("easing."+t,(function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1}),!0),i=n.prototype=new Jn.b;return i.constructor=n,i.getRatio=e,i.config=function(t){return new n(t)},n},p=d("Back",f("BackOut",(function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1})),f("BackIn",(function(t){return t*t*((this._p1+1)*t-this._p1)})),f("BackInOut",(function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)}))),m=l("easing.SlowMo",(function(t,e,n){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===n}),!0),g=m.prototype=new Jn.b;return g.constructor=m,g.getRatio=function(t){var e=t+(.5-t)*this._p;return tthis._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),g.config=m.config=function(t,e,n){return new m(t,e,n)},(g=(t=l("easing.SteppedEase",(function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0}),!0)).prototype=new Jn.b).constructor=t,g.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},g.config=t.config=function(e,n){return new t(e,n)},(g=(e=l("easing.ExpoScaleEase",(function(t,e,n){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=n}),!0)).prototype=new Jn.b).constructor=e,g.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},g.config=e.config=function(t,n,i){return new e(t,n,i)},(g=(n=l("easing.RoughEase",(function(t){for(var e,n,i,r,o,a,s=(t=t||{}).taper||"none",l=[],u=0,c=0|(t.points||20),d=c,f=!1!==t.randomize,p=!0===t.clamp,m=t.template instanceof Jn.b?t.template:null,g="number"==typeof t.strength?.4*t.strength:.4;--d>-1;)e=f?Math.random():1/c*d,n=m?m.getRatio(e):e,i="none"===s?g:"out"===s?(r=1-e)*r*g:"in"===s?e*e*g:e<.5?(r=2*e)*r*.5*g:(r=2*(1-e))*r*.5*g,f?n+=Math.random()*i-.5*i:d%2?n+=.5*i:n-=.5*i,p&&(n>1?n=1:n<0&&(n=0)),l[u++]={x:e,y:n};for(l.sort((function(t,e){return t.x-e.x})),a=new h(1,1,null),d=c;--d>-1;)o=l[d],a=new h(o.x,o.y,a);this._prev=new h(0,0,0!==a.t?a:a.next)}),!0)).prototype=new Jn.b).constructor=n,g.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},g.config=function(t){return new n(t)},n.ease=new n,d("Bounce",u("BounceOut",(function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375})),u("BounceIn",(function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)})),u("BounceInOut",(function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}))),d("Circ",u("CircOut",(function(t){return Math.sqrt(1-(t-=1)*t)})),u("CircIn",(function(t){return-(Math.sqrt(1-t*t)-1)})),u("CircInOut",(function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}))),d("Elastic",(i=function(t,e,n){var i=l("easing."+t,(function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(t<1?t:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2}),!0),r=i.prototype=new Jn.b;return r.constructor=i,r.getRatio=e,r.config=function(t,e){return new i(t,e)},i})("ElasticOut",(function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1}),.3),i("ElasticIn",(function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)}),.3),i("ElasticInOut",(function(t){return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1}),.45)),d("Expo",u("ExpoOut",(function(t){return 1-Math.pow(2,-10*t)})),u("ExpoIn",(function(t){return Math.pow(2,10*(t-1))-.001})),u("ExpoInOut",(function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}))),d("Sine",u("SineOut",(function(t){return Math.sin(t*s)})),u("SineIn",(function(t){return 1-Math.cos(t*s)})),u("SineInOut",(function(t){return-.5*(Math.cos(Math.PI*t)-1)}))),l("easing.EaseLookup",{find:function(t){return Jn.b.map[t]}},!0),c(r.SlowMo,"SlowMo","ease,"),c(n,"RoughEase","ease,"),c(t,"SteppedEase","ease,"),p}),!0);var xi=Jn.g.Back,ki=Jn.g.Elastic,Ci=Jn.g.Bounce,Li=Jn.g.RoughEase,Si=Jn.g.SlowMo,Mi=Jn.g.SteppedEase,Ti=Jn.g.Circ,Ei=Jn.g.Expo,Oi=Jn.g.Sine,Pi=Jn.g.ExpoScaleEase;Kn._autoActivated=[ai,si,Qn,ti,bi,ei,oi,xi,ki,Ci,Li,Si,Mi,Ti,Ei,Oi,Pi];var Di={name:"number",props:{from:{type:[Number,String],default:0},to:{type:[Number,String],required:!0,default:0},format:{type:Function,default:t=>parseInt(t)},duration:{type:Number,default:1},easing:{type:String,default:"Power1.easeOut"},delay:{type:Number,default:0},animationPaused:Boolean},data(){return{fromProp:this.from}},computed:{tweenedNumber(){return this.format(this.fromProp)}},methods:{tween(t){const e=this,n=Jn.f.to(e.$data,e.duration,{fromProp:t,paused:e.animationPaused,ease:e.easeCheck(),onStart:()=>e.$emit("start"),onComplete:()=>e.$emit("complete"),onUpdate:()=>e.$emit("update"),delay:e.delay});e.tween.tLite=n},play(){this.tween.tLite.play()},pause(){this.tween.tLite.pause()},restart(){this.tween.tLite.restart()},easeCheck(){if(1!==this.easing.replace(/[^.]/g,"").length)throw new Error('Invalid ease type. (eg. easing="Power1.easeOut")');return this.easing}},watch:{to(t){this.tween(t)}},mounted(){this.tween(this.to)}},Ai=n("KHd+"),Ii=Object(Ai.a)(Di,(function(){var t=this.$createElement;return(this._self._c||t)("span",this._g(this._b({},"span",this.$attrs,!1),this.$listeners),[this._v(this._s(this.tweenedNumber))])}),[],!1,null,null,null).exports;const Ni={install(t,e){t.component("number",Ii)}};var Ri=Ni;"undefined"!=typeof window&&window.Vue&&window.Vue.use(Ni);var ji=n("nOdW"),zi=n.n(ji);function Yi(t){return(Yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function $i(t){for(var e=1;e0?1:0};function Gi(t,e){return(t&e)===e}function qi(t,e){return(t%e+e)%e}function Zi(t,e,n){return Math.max(e,Math.min(n,t))}function Xi(t,e){return e.split(".").reduce((function(t,e){return t?t[e]:null}),t)}function Ji(t,e,n){if(!t)return-1;if(!n||"function"!=typeof n)return t.indexOf(e);for(var i=0;i2&&void 0!==arguments[2]&&arguments[2];if(i||!Object.assign){var r=function(t){return Ki(n[t])&&null!==e&&e.hasOwnProperty(t)&&Ki(e[t])},o=Object.getOwnPropertyNames(n).map((function(o){return Fi({},o,r(o)?t(e[o],n[o],i):n[o])})).reduce((function(t,e){return $i({},t,{},e)}),{});return $i({},e,{},o)}return Object.assign(e,n)},tr={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return tr.Android()||tr.BlackBerry()||tr.iOS()||tr.Opera()||tr.Windows()}};function er(t){void 0!==t.remove?t.remove():void 0!==t.parentNode&&null!==t.parentNode&&t.parentNode.removeChild(t)}function nr(t){var e=document.createElement("div");e.style.position="absolute",e.style.left="0px",e.style.top="0px";var n=document.createElement("div");return e.appendChild(n),n.appendChild(t),document.body.appendChild(e),e}function ir(t){return t&&t._isVue}function rr(t){return t?t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):t}function or(t,e){var n;return JSON.parse(JSON.stringify(t)).sort((n=e,function(t,e){return n.map((function(n){var i=1;return"-"===n[0]&&(i=-1,n=n.substring(1)),t[n]>e[n]?i:t[n]/g).map((function(t){var e=t.match(/<(.+)>/);return!e||e.length<=0?null:t.match(/<(.+)>/)[1]})).reduce((function(t,e,i,r){return n&&n.length>i?t[e]=n[i+1]:t[e]=null,t}),{})}function lr(t){return"shadowRoot"in t.$root.$options}function ur(t,e){var n=[];return function t(e,n,i){for(var r=[],o=e.nextSibling;o;){if(o.tagName){for(var a=[],s=o.childNodes,l=0;l-1:t.computedValue},on:{blur:t.onBlur,focus:t.onFocus,change:function(e){var n=t.computedValue,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.computedValue=n.concat([null])):o>-1&&(t.computedValue=n.slice(0,o).concat(n.slice(o+1)))}else t.computedValue=r}}},"input",t.$attrs,!1)):"radio"===t.newType&&"textarea"!==t.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],attrs:{autocomplete:t.newAutocomplete,maxlength:t.maxlength,type:"radio"},domProps:{checked:t._q(t.computedValue,null)},on:{blur:t.onBlur,focus:t.onFocus,change:function(e){t.computedValue=null}}},"input",t.$attrs,!1)):"textarea"!==t.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],attrs:{autocomplete:t.newAutocomplete,maxlength:t.maxlength,type:t.newType},domProps:{value:t.computedValue},on:{blur:t.onBlur,focus:t.onFocus,input:function(e){e.target.composing||(t.computedValue=e.target.value)}}},"input",t.$attrs,!1)):n("textarea",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"textarea",staticClass:"textarea",class:[t.inputClasses,t.customClass],attrs:{maxlength:t.maxlength},domProps:{value:t.computedValue},on:{blur:t.onBlur,focus:t.onFocus,input:function(e){e.target.composing||(t.computedValue=e.target.value)}}},"textarea",t.$attrs,!1)),t.icon?n("b-icon",{staticClass:"is-left",class:{"is-clickable":t.iconClickable},attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize},nativeOn:{click:function(e){return t.iconClick("icon-click",e)}}}):t._e(),!t.loading&&t.hasIconRight?n("b-icon",{staticClass:"is-right",class:{"is-clickable":t.passwordReveal||t.iconRightClickable},attrs:{icon:t.rightIcon,pack:t.iconPack,size:t.iconSize,type:t.rightIconType,both:""},nativeOn:{click:function(e){return t.rightIconClick(e)}}}):t._e(),t.maxlength&&t.hasCounter&&"number"!==t.type?n("small",{staticClass:"help counter",class:{"is-invisible":!t.isFocused}},[t._v(" "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+" ")]):t._e()],1)},staticRenderFns:[]},void 0,{name:"BInput",components:Fi({},wr.name,wr),mixins:[yr],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:function(){return dr.defaultInputHasCounter}},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||dr.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t),!this.isValid&&this.checkHtml5Validity()}},rootClasses:function(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses:function(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight:function(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon:function(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType:function(){return this.passwordReveal?"is-primary":this.iconRight?null:this.statusType},iconPosition:function(){return this.icon&&this.hasIconRight?"has-icons-left has-icons-right":!this.icon&&this.hasIconRight?"has-icons-right":this.icon?"has-icons-left":void 0},statusTypeIcon:function(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert"}},hasMessage:function(){return!!this.statusMessage},passwordVisibleIcon:function(){return this.isPasswordVisible?"eye-off":"eye"},valueLength:function(){return"string"==typeof this.computedValue?this.computedValue.length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{value:function(t){this.newValue=t}},methods:{togglePasswordVisibility:function(){var t=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((function(){t.focus()}))},iconClick:function(t,e){var n=this;this.$emit(t,e),this.$nextTick((function(){n.focus()}))},rightIconClick:function(t){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",t)}}},void 0,!1,void 0,void 0,void 0);var kr=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"autocomplete control",class:{"is-expanded":t.expanded}},[n("b-input",t._b({ref:"input",attrs:{type:"text",size:t.size,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-right":t.newIconRight,"icon-right-clickable":t.newIconRightClickable,"icon-pack":t.iconPack,maxlength:t.maxlength,autocomplete:t.newAutocomplete,"use-html5-validation":!1},on:{input:t.onInput,focus:t.focused,blur:t.onBlur,"icon-right-click":t.rightIconClick,"icon-click":function(e){return t.$emit("icon-click",e)}},nativeOn:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.preventDefault(),t.isActive=!1},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.tabPressed(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.enterPressed(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.keyArrows("up"))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.keyArrows("down"))}]},model:{value:t.newValue,callback:function(e){t.newValue=e},expression:"newValue"}},"b-input",t.$attrs,!1)),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive&&(t.data.length>0||t.hasEmptySlot||t.hasHeaderSlot),expression:"isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{"is-opened-top":t.isOpenedTop&&!t.appendToBody},style:t.style},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dropdown-content",style:t.contentStyle},[t.hasHeaderSlot?n("div",{staticClass:"dropdown-item"},[t._t("header")],2):t._e(),t._l(t.data,(function(e,i){return n("a",{key:i,staticClass:"dropdown-item",class:{"is-hovered":e===t.hovered},on:{click:function(n){return t.setSelected(e,void 0,n)}}},[t.hasDefaultSlot?t._t("default",null,{option:e,index:i}):n("span",[t._v(" "+t._s(t.getValue(e,!0))+" ")])],2)})),0===t.data.length&&t.hasEmptySlot?n("div",{staticClass:"dropdown-item is-disabled"},[t._t("empty")],2):t._e(),t.hasFooterSlot?n("div",{staticClass:"dropdown-item"},[t._t("footer")],2):t._e()],2)])])],1)},staticRenderFns:[]},void 0,{name:"BAutocomplete",components:Fi({},xr.name,xr),mixins:[yr],inheritAttrs:!1,props:{value:[Number,String],data:{type:Array,default:function(){return[]}},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:Function,checkInfiniteScroll:Boolean,keepOpen:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean},data:function(){return{selected:null,hovered:null,isActive:!1,newValue:this.value,newAutocomplete:this.autocomplete||"off",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0}},computed:{whiteList:function(){var t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),void 0!==this.$refs.dropdown){var e=this.$refs.dropdown.querySelectorAll("*"),n=!0,i=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.push(s)}}catch(t){i=!0,r=t}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}}if(this.$parent.$data._isTaginput){t.push(this.$parent.$el);var l=this.$parent.$el.querySelectorAll("*"),u=!0,c=!1,d=void 0;try{for(var h,f=l[Symbol.iterator]();!(u=(h=f.next()).done);u=!0){var p=h.value;t.push(p)}}catch(t){c=!0,d=t}finally{try{u||null==f.return||f.return()}finally{if(c)throw d}}}return t},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},isOpenedTop:function(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight:function(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable:function(){return!!this.clearable||this.iconRightClickable},contentStyle:function(){return{maxHeight:ar(this.maxHeight)}}},watch:{isActive:function(t){var e=this;"auto"===this.dropdownPosition&&(t?this.calcDropdownInViewportVertical():setTimeout((function(){e.calcDropdownInViewportVertical()}),100)),t&&this.$nextTick((function(){return e.setHovered(null)}))},newValue:function(t){this.$emit("input",t);var e=this.getValue(this.selected);e&&e!==t&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&!t||(this.isActive=!!t)},value:function(t){this.newValue=t},data:function(t){this.keepFirst&&this.selectFirstOption(t)}},methods:{setHovered:function(t){void 0!==t&&(this.hovered=t)},setSelected:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==t&&(this.selected=t,this.$emit("select",this.selected,i),null!==this.selected&&(this.newValue=this.clearOnSelect?"":this.getValue(this.selected),this.setHovered(null)),n&&this.$nextTick((function(){e.isActive=!1})),this.checkValidity())},selectFirstOption:function(t){var e=this;this.$nextTick((function(){t.length?(e.openOnFocus||""!==e.newValue&&e.hovered!==t[0])&&e.setHovered(t[0]):e.setHovered(null)}))},enterPressed:function(t){null!==this.hovered&&this.setSelected(this.hovered,!this.keepOpen,t)},tabPressed:function(t){null!==this.hovered?this.setSelected(this.hovered,!this.keepOpen,t):this.isActive=!1},clickedOutside:function(t){var e=lr(this)?t.composedPath()[0]:t.target;!this.hasFocus&&this.whiteList.indexOf(e)<0&&(this.isActive=!1)},getValue:function(t){if(null!==t)return void 0!==this.customFormatter?this.customFormatter(t):"object"===Yi(t)?Xi(t,this.field):t},checkIfReachedTheEndOfScroll:function(t){t.clientHeight!==t.scrollHeight&&t.scrollTop+t.clientHeight>=t.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical:function(){var t=this;this.$nextTick((function(){if(void 0!==t.$refs.dropdown){var e=t.$refs.dropdown.getBoundingClientRect();t.isListInViewportVertically=e.top>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight),t.appendToBody&&t.updateAppendToBody()}}))},keyArrows:function(t){var e="down"===t?1:-1;if(this.isActive){var n=this.data.indexOf(this.hovered)+e;n=(n=n>this.data.length-1?this.data.length-1:n)<0?0:n,this.setHovered(this.data[n]);var i=this.$refs.dropdown.querySelector(".dropdown-content"),r=i.querySelectorAll("a.dropdown-item:not(.is-disabled)")[n];if(!r)return;var o=i.scrollTop,a=i.scrollTop+i.clientHeight-r.clientHeight;r.offsetTop=a&&(i.scrollTop=r.offsetTop-i.clientHeight+r.clientHeight)}else this.isActive=!0},focused:function(t){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.data)),this.hasFocus=!0,this.$emit("focus",t)},onBlur:function(t){this.hasFocus=!1,this.$emit("blur",t)},onInput:function(t){var e=this.getValue(this.selected);e&&e===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick:function(t){this.clearable?(this.newValue="",this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",t)},checkValidity:function(){var t=this;this.useHtml5Validation&&this.$nextTick((function(){t.checkHtml5Validity()}))},updateAppendToBody:function(){var t=this.$refs.dropdown,e=this.$refs.input.$el;if(t&&e){var n=this.$data._bodyEl;n.classList.forEach((function(t){return n.classList.remove(t)})),n.classList.add("autocomplete"),n.classList.add("control"),this.expandend&&n.classList.add("is-expandend");var i=e.getBoundingClientRect(),r=i.top+window.scrollY,o=i.left+window.scrollX;this.isOpenedTop?r-=t.clientHeight:r+=e.clientHeight,this.style={position:"absolute",top:"".concat(r,"px"),left:"".concat(o,"px"),width:"".concat(e.clientWidth,"px"),maxWidth:"".concat(e.clientWidth,"px"),zIndex:"99"}}}},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical))},mounted:function(){var t=this;if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var e=this.$refs.dropdown.querySelector(".dropdown-content");e.addEventListener("scroll",(function(){return t.checkIfReachedTheEndOfScroll(e)}))}this.appendToBody&&(this.$data._bodyEl=nr(this.$refs.dropdown),this.updateAppendToBody())},beforeDestroy:function(){("undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content"))&&this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll);this.appendToBody&&er(this.$data._bodyEl)}},void 0,!1,void 0,void 0,void 0),Cr={install:function(t){gr(t,kr)}};mr(Cr);var Lr=Cr;var Sr=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.computedTag,t._g(t._b({tag:"component",staticClass:"button",class:[t.size,t.type,{"is-rounded":t.rounded,"is-loading":t.loading,"is-outlined":t.outlined,"is-fullwidth":t.expanded,"is-inverted":t.inverted,"is-focused":t.focused,"is-active":t.active,"is-hovered":t.hovered,"is-selected":t.selected}],attrs:{type:t.nativeType}},"component",t.$attrs,!1),t.$listeners),[t.iconLeft?n("b-icon",{attrs:{pack:t.iconPack,icon:t.iconLeft,size:t.iconSize}}):t._e(),t.label?n("span",[t._v(t._s(t.label))]):t.$slots.default?n("span",[t._t("default")],2):t._e(),t.iconRight?n("b-icon",{attrs:{pack:t.iconPack,icon:t.iconRight,size:t.iconSize}}):t._e()],1)},staticRenderFns:[]},void 0,{name:"BButton",components:Fi({},wr.name,wr),inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:function(){return dr.defaultButtonRounded}},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:function(t){return["button","submit","reset"].indexOf(t)>=0}},tag:{type:String,default:"button",validator:function(t){return dr.defaultLinkTags.indexOf(t)>=0}}},computed:{computedTag:function(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize:function(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}},void 0,!1,void 0,void 0,void 0),Mr={install:function(t){gr(t,Sr)}};mr(Mr);var Tr=Mr,Er=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={provide:function(){return Fi({},"b"+t,this)}};return Gi(e,1)&&(n.data=function(){return{childItems:[]}},n.methods={_registerItem:function(t){this.childItems.push(t)},_unregisterItem:function(t){this.childItems=this.childItems.filter((function(e){return e!==t}))}},Gi(e,3)&&(n.watch={childItems:function(t){if(t.length>0&&this.$scopedSlots.default){var e=t[0].$vnode.tag,n=0;!function i(r){var o=!0,a=!1,s=void 0;try{for(var l,u=function(){var r=l.value;if(r.tag===e){var o=t.find((function(t){return t.$vnode===r}));o&&(o.index=n++)}else if(r.tag){var a=r.componentInstance?r.componentInstance.$scopedSlots.default?r.componentInstance.$scopedSlots.default():r.componentInstance.$children:r.children;Array.isArray(a)&&a.length>0&&i(a.map((function(t){return t.$vnode})))}},c=r[Symbol.iterator]();!(o=(l=c.next()).done);o=!0)u()}catch(t){a=!0,s=t}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}return!1}(this.$scopedSlots.default())}}},n.computed={sortedItems:function(){return this.childItems.slice().sort((function(t,e){return t.index-e.index}))}})),n},Or=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={inject:{parent:{from:"b"+t,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!Gi(e,2))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+t)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return Gi(e,1)&&(n.data=function(){return{index:null}}),n};var Pr=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel",class:{"is-overlay":t.overlay},on:{mouseenter:t.checkPause,mouseleave:t.startTimer}},[t.progress?n("progress",{staticClass:"progress",class:t.progressType,attrs:{max:t.childItems.length-1},domProps:{value:t.activeChild}},[t._v(" "+t._s(t.childItems.length-1)+" ")]):t._e(),n("div",{staticClass:"carousel-items",on:{mousedown:t.dragStart,mouseup:t.dragEnd,touchstart:function(e){return e.stopPropagation(),t.dragStart(e)},touchend:function(e){return e.stopPropagation(),t.dragEnd(e)}}},[t._t("default"),t.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasPrev,expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{pack:t.iconPack,icon:t.iconPrev,size:t.iconSize,both:""},nativeOn:{click:function(e){return t.prev(e)}}}),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasNext,expression:"hasNext"}],staticClass:"has-icons-right",attrs:{pack:t.iconPack,icon:t.iconNext,size:t.iconSize,both:""},nativeOn:{click:function(e){return t.next(e)}}})],1):t._e()],2),t.autoplay&&t.pauseHover&&t.pauseInfo&&t.isPause?n("div",{staticClass:"carousel-pause"},[n("span",{staticClass:"tag",class:t.pauseInfoType},[t._v(" "+t._s(t.pauseText)+" ")])]):t._e(),t.withCarouselList&&!t.indicator?[t._t("list",null,{active:t.activeChild,switch:t.changeActive})]:t._e(),t.indicator?n("div",{staticClass:"carousel-indicator",class:t.indicatorClasses},t._l(t.sortedItems,(function(e,i){return n("a",{key:e._uid,staticClass:"indicator-item",class:{"is-active":e.isActive},on:{mouseover:function(e){return t.modeChange("hover",i)},click:function(e){return t.modeChange("click",i)}}},[t._t("indicators",[n("span",{staticClass:"indicator-style",class:t.indicatorStyle})],{i:i})],2)})),0):t._e(),t.overlay?[t._t("overlay")]:t._e()],2)},staticRenderFns:[]},void 0,{name:"BCarousel",components:Fi({},wr.name,wr),mixins:[Er("carousel",3)],props:{value:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return dr.defaultIconPrev}},iconNext:{type:String,default:function(){return dr.defaultIconNext}},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},data:function(){return{transition:"next",activeChild:this.value||0,isPause:!1,dragX:!1,timer:null}},computed:{indicatorClasses:function(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]},hasPrev:function(){return this.repeat||0!==this.activeChild},hasNext:function(){return this.repeat||this.activeChild=t.length&&this.activeChild>0&&this.changeActive(this.activeChild-1)},autoplay:function(t){t?this.startTimer():this.pauseTimer()},repeat:function(t){t&&this.startTimer()}},methods:{startTimer:function(){var t=this;this.autoplay&&!this.timer&&(this.isPause=!1,this.timer=setInterval((function(){!t.repeat&&t.activeChild>=t.childItems.length-1?t.pauseTimer():t.next()}),this.interval||dr.defaultCarouselInterval))},pauseTimer:function(){this.isPause=!0,this.timer&&(clearInterval(this.timer),this.timer=null)},checkPause:function(){this.pauseHover&&this.autoplay&&this.pauseTimer()},changeActive:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.activeChild===t||isNaN(t)||(e=e||t-this.activeChild,t=this.repeat?qi(t,this.childItems.length):Zi(t,0,this.childItems.length-1),this.transition=e>0?"prev":"next",this.activeChild=t,t!==this.value&&this.$emit("input",t),this.$emit("change",t))},modeChange:function(t,e){if(this.indicatorMode===t)return this.changeActive(e)},prev:function(){this.changeActive(this.activeChild-1,-1)},next:function(){this.changeActive(this.activeChild+1,1)},dragStart:function(t){this.hasDrag&&(t.target.draggable||""!==t.target.textContent.trim())&&(this.dragX=t.touches?t.changedTouches[0].pageX:t.pageX,t.touches?this.pauseTimer():t.preventDefault())},dragEnd:function(t){if(!1!==this.dragX){var e=(t.touches?t.changedTouches[0].pageX:t.pageX)-this.dragX;Math.abs(e)>30?e<0?this.next():this.prev():(t.target.click(),this.sortedItems[this.activeChild].$emit("click"),this.$emit("click")),t.touches&&this.startTimer(),this.dragX=!1}}},mounted:function(){this.startTimer()},beforeDestroy:function(){this.pauseTimer()}},void 0,!1,void 0,void 0,void 0);var Dr=pr({render:function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:this.transition}},[e("div",{directives:[{name:"show",rawName:"v-show",value:this.isActive,expression:"isActive"}],staticClass:"carousel-item"},[this._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BCarouselItem",mixins:[Or("carousel",1)],data:function(){return{transitionName:null}},computed:{transition:function(){return"fade"===this.parent.animated?"fade":this.parent.transition?"slide-"+this.parent.transition:void 0},isActive:function(){return this.parent.activeChild===this.index}}},void 0,!1,void 0,void 0,void 0);var Ar=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel-list",class:{"has-shadow":t.scrollIndex>0},on:{mousedown:function(e){return e.preventDefault(),t.dragStart(e)},touchstart:t.dragStart}},[n("div",{staticClass:"carousel-slides",class:t.listClass,style:"transform:translateX("+t.translation+"px)"},t._l(t.data,(function(e,i){return n("div",{key:i,staticClass:"carousel-slide",class:{"is-active":t.asIndicator?t.activeItem===i:t.scrollIndex===i},style:t.itemStyle,on:{mouseup:function(e){return t.checkAsIndicator(i,e)},touchend:function(e){return t.checkAsIndicator(i,e)}}},[t._t("item",[n("figure",{staticClass:"image"},[n("img",{attrs:{src:e.image,alt:e.alt,title:e.title}})])],{index:i,active:t.activeItem,scroll:t.scrollIndex,list:e},e)],2)})),0),t.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.settings.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasPrev,expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{pack:t.settings.iconPack,icon:t.settings.iconPrev,size:t.settings.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.prev(e)}}}),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasNext,expression:"hasNext"}],staticClass:"has-icons-right",attrs:{pack:t.settings.iconPack,icon:t.settings.iconNext,size:t.settings.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.next(e)}}})],1):t._e()])},staticRenderFns:[]},void 0,{name:"BCarouselList",components:Fi({},wr.name,wr),props:{data:{type:Array,default:function(){return[]}},value:{type:Number,default:0},scrollValue:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return dr.defaultIconPrev}},iconNext:{type:String,default:function(){return dr.defaultIconNext}},breakpoints:{type:Object,default:function(){return{}}}},data:function(){return{activeItem:this.value,scrollIndex:this.asIndicator?this.scrollValue:this.value,delta:0,dragX:!1,hold:0,windowWidth:0,touch:!1,observer:null,refresh_:0}},computed:{dragging:function(){return!1!==this.dragX},listClass:function(){return[{"has-grayscale":this.settings.hasGrayscale,"has-opacity":this.settings.hasOpacity,"is-dragging":this.dragging}]},itemStyle:function(){return"width: ".concat(this.itemWidth,"px;")},translation:function(){return-Zi(this.delta+this.scrollIndex*this.itemWidth,0,(this.data.length-this.settings.itemsToShow)*this.itemWidth)},total:function(){return this.data.length-this.settings.itemsToShow},hasPrev:function(){return this.settings.repeat||this.scrollIndex>0},hasNext:function(){return this.settings.repeat||this.scrollIndex=e)return!0}));return e?$i({},this.$props,{},this.breakpoints[e]):this.$props},itemWidth:function(){return this.windowWidth?(this.refresh_,this.$el.getBoundingClientRect().width/this.settings.itemsToShow):0}},watch:{value:function(t){this.switchTo(this.asIndicator?t-(this.itemsToShow-3)/2:t),this.activeItem!==t&&(this.activeItem=Zi(t,0,this.data.length-1))},scrollValue:function(t){this.switchTo(t)}},methods:{resized:function(){this.windowWidth=window.innerWidth},switchTo:function(t){t===this.scrollIndex||isNaN(t)||(this.settings.repeat&&(t=qi(t,this.total+1)),t=Zi(t,0,this.total),this.scrollIndex=t,this.asIndicator||this.value===t?this.scrollIndex!==t&&this.$emit("updated:scroll",t):this.$emit("input",t))},next:function(){this.switchTo(this.scrollIndex+this.settings.itemsToList)},prev:function(){this.switchTo(this.scrollIndex-this.settings.itemsToList)},checkAsIndicator:function(t,e){if(this.asIndicator){var n=e.touches?e.touches[0].clientX:e.clientX;this.hold-Date.now()>2e3||Math.abs(this.dragX-n)>10||(this.dragX=!1,this.hold=0,e.preventDefault(),this.activeItem=t,this.$emit("switch",t))}},dragStart:function(t){this.dragging||!this.settings.hasDrag||0!==t.button&&"touchstart"!==t.type||(this.hold=Date.now(),this.touch=!!t.touches,this.dragX=this.touch?t.touches[0].clientX:t.clientX,window.addEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.addEventListener(this.touch?"touchend":"mouseup",this.dragEnd))},dragMove:function(t){if(this.dragging){var e=t.touches?t.touches[0].clientX:t.clientX;this.delta=this.dragX-e,t.touches||t.preventDefault()}},dragEnd:function(){if(this.dragging||this.hold){if(this.hold){var t=Wi(this.delta),e=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.scrollIndex+t*e)}this.delta=0,this.dragX=!1,window.removeEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.removeEventListener(this.touch?"touchend":"mouseup",this.dragEnd)}},refresh:function(){var t=this;this.$nextTick((function(){t.refresh_++}))}},mounted:function(){if("undefined"!=typeof window&&(window.ResizeObserver&&(this.observer=new ResizeObserver(this.refresh),this.observer.observe(this.$el)),window.addEventListener("resize",this.resized),this.resized()),this.$attrs.config)throw new Error("The config prop was removed, you need to use v-bind instead")},beforeDestroy:function(){"undefined"!=typeof window&&(window.ResizeObserver&&this.observer.disconnect(),window.removeEventListener("resize",this.resized),this.dragEnd())}},void 0,!1,void 0,void 0,void 0),Ir={install:function(t){gr(t,Pr),gr(t,Dr),gr(t,Ar)}};mr(Ir);var Nr=Ir,Rr={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}};var jr=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,required:t.required,name:t.name,"true-value":t.trueValue,"false-value":t.falseValue},domProps:{indeterminate:t.indeterminate,value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,i=e.target,r=i.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var o=t.nativeValue,a=t._i(n,o);i.checked?a<0&&(t.computedValue=n.concat([o])):a>-1&&(t.computedValue=n.slice(0,a).concat(n.slice(a+1)))}else t.computedValue=r}}}),n("span",{staticClass:"check",class:t.type}),n("span",{staticClass:"control-label"},[t._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BCheckbox",mixins:[Rr],props:{indeterminate:Boolean,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1}}},void 0,!1,void 0,void 0,void 0);var zr=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[n("label",{ref:"label",staticClass:"b-checkbox checkbox button",class:[t.checked?t.type:null,t.size,{"is-disabled":t.disabled,"is-focused":t.isFocused}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())}}},[t._t("default"),n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t.computedValue},on:{click:function(t){t.stopPropagation()},focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1},change:function(e){var n=t.computedValue,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t.nativeValue,a=t._i(n,o);i.checked?a<0&&(t.computedValue=n.concat([o])):a>-1&&(t.computedValue=n.slice(0,a).concat(n.slice(a+1)))}else t.computedValue=r}}})],2)])},staticRenderFns:[]},void 0,{name:"BCheckboxButton",mixins:[Rr],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{checked:function(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}}},void 0,!1,void 0,void 0,void 0),Yr={install:function(t){gr(t,jr),gr(t,zr)}};mr(Yr);var Fr=Yr;var Br=pr({},void 0,{name:"BCollapse",model:{prop:"open",event:"update:open"},props:{open:{type:Boolean,default:!0},animation:{type:String,default:"fade"},ariaId:{type:String,default:""},position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom"].indexOf(t)>-1}}},data:function(){return{isOpen:this.open}},watch:{open:function(t){this.isOpen=t}},methods:{toggle:function(){this.isOpen=!this.isOpen,this.$emit("update:open",this.isOpen),this.$emit(this.isOpen?"open":"close")}},render:function(t){var e=t("div",{staticClass:"collapse-trigger",on:{click:this.toggle}},this.$scopedSlots.trigger?[this.$scopedSlots.trigger({open:this.isOpen})]:[this.$slots.trigger]),n=t("transition",{props:{name:this.animation}},[t("div",{staticClass:"collapse-content",attrs:{id:this.ariaId,"aria-expanded":this.isOpen},directives:[{name:"show",value:this.isOpen}]},this.$slots.default)]);return t("div",{staticClass:"collapse"},"is-top"===this.position?[e,n]:[n,e])}},void 0,void 0,void 0,void 0,void 0),$r={install:function(t){gr(t,Br)}};mr($r);var Hr,Ur=$r,Vr="AM",Wr="PM",Gr={mixins:[yr],inheritAttrs:!1,props:{value:Date,inline:Boolean,minTime:Date,maxTime:Date,placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:function(t){return"24"===t||"12"===t}},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:function(t,e){return"function"==typeof dr.defaultTimeFormatter?dr.defaultTimeFormatter(t):function(t,e){return e.dtf.format(t)}(t,e)}},timeParser:{type:Function,default:function(t,e){return"function"==typeof dr.defaultTimeParser?dr.defaultTimeParser(t):function(t,e){if(t){var n=null;if(e.computedValue&&!isNaN(e.computedValue)?n=new Date(e.computedValue):(n=e.timeCreator()).setMilliseconds(0),e.dtf.formatToParts&&"function"==typeof e.dtf.formatToParts){var i=sr(e.dtf.formatToParts(n).map((function(t){return"literal"===t.type?t.value.replace(/ /g,"\\s?"):"dayPeriod"===t.type?"((?!=<".concat(t.type,">)(").concat(e.amString,"|").concat(e.pmString,"|").concat(Vr,"|").concat(Wr,"|").concat(Vr.toLowerCase(),"|").concat(Wr.toLowerCase(),")?)"):"((?!=<".concat(t.type,">)\\d+)")})).join(""),t);if(i.hour=i.hour?parseInt(i.hour,10):null,i.minute=i.minute?parseInt(i.minute,10):null,i.second=i.second?parseInt(i.second,10):null,i.hour&&i.hour>=0&&i.hour<24&&i.minute&&i.minute>=0&&i.minute<59)return i.dayPeriod&&(i.dayPeriod.toLowerCase()===e.pmString.toLowerCase()||i.dayPeriod.toLowerCase()===Wr.toLowerCase())&&i.hour<12&&(i.hour+=12),n.setHours(i.hour),n.setMinutes(i.minute),n.setSeconds(i.second||0),n}var r=!1;if("12"===e.hourFormat){var o=t.split(" ");t=o[0],r=o[1]===e.amString||o[1]===Vr}var a=t.split(":"),s=parseInt(a[0],10),l=parseInt(a[1],10),u=e.enableSeconds?parseInt(a[2],10):0;return isNaN(s)||s<0||s>23||"12"===e.hourFormat&&(s<1||s>12)||isNaN(l)||l<0||l>59?null:(n.setSeconds(u),n.setMinutes(l),"12"===e.hourFormat&&(r&&12===s?s=0:r||12===s||(s+=12)),n.setHours(s),new Date(n.getTime()))}return null}(t,e)}},mobileNative:{type:Boolean,default:function(){return dr.defaultTimepickerMobileNative}},timeCreator:{type:Function,default:function(){return"function"==typeof dr.defaultTimeCreator?dr.defaultTimeCreator():new Date}},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean,resetOnMeridianChange:{type:Boolean,default:!1}},data:function(){return{dateSelected:this.value,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:Vr,PM:Wr,HOUR_FORMAT_24:"24",HOUR_FORMAT_12:"12"}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){this.dateSelected=t,this.$emit("input",this.dateSelected)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:this.enableSeconds?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds?this.localeOptions.second||"numeric":void 0,hour12:!this.isHourFormat24,timezome:"UTC"})},newHourFormat:function(){return this.hourFormat||(this.localeOptions.hour12?"12":"24")},sampleTime:function(){var t=this.timeCreator();return t.setHours(10),t.setSeconds(0),t.setMinutes(0),t.setMilliseconds(0),t},hourLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var t=this.sampleTime,e=this.dtf.formatToParts(t),n=e.find((function(t,n){return n>0&&"hour"===e[n-1].type}));if(n)return n.value}return":"},minuteLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var t=this.sampleTime,e=this.dtf.formatToParts(t),n=e.find((function(t,n){return n>0&&"minute"===e[n-1].type}));if(n)return n.value}return":"},secondLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var t=this.sampleTime,e=this.dtf.formatToParts(t),n=e.find((function(t,n){return n>0&&"second"===e[n-1].type}));if(n)return n.value}},amString:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var t=this.sampleTime;t.setHours(10);var e=this.dtf.formatToParts(t).find((function(t){return"dayPeriod"===t.type}));if(e)return e.value}return this.AM},pmString:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var t=this.sampleTime;t.setHours(20);var e=this.dtf.formatToParts(t).find((function(t){return"dayPeriod"===t.type}));if(e)return e.value}return this.PM},hours:function(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");for(var t=[],e=this.isHourFormat24?24:12,n=0;n=12?this.pmString:this.amString)},value:{handler:function(t){this.updateInternalState(t),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange:function(t){null!==this.hoursSelected&&this.resetOnMeridianChange?(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.computedValue=null):null!==this.hoursSelected&&(t===this.pmString||t===Wr?this.hoursSelected+=12:t!==this.amString&&t!==Vr||(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,t)},onHoursChange:function(t){this.minutesSelected||void 0===this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||void 0===this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(t,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange:function(t){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(t,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange:function(t){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(t,10),this.meridienSelected)},updateDateSelected:function(t,e,n,i){if(null!=t&&null!=e&&(!this.isHourFormat24&&null!==i||this.isHourFormat24)){var r=null;this.computedValue&&!isNaN(this.computedValue)?r=new Date(this.computedValue):(r=this.timeCreator()).setMilliseconds(0),r.setHours(t),r.setMinutes(e),r.setSeconds(n),this.computedValue=new Date(r.getTime())}},updateInternalState:function(t){t?(this.hoursSelected=t.getHours(),this.minutesSelected=t.getMinutes(),this.secondsSelected=t.getSeconds(),this.meridienSelected=t.getHours()>=12?this.pmString:this.amString):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=this.amString),this.dateSelected=t},isHourDisabled:function(t){var e=this,n=!1;if(this.minTime){var i=this.minTime.getHours(),r=this.minutes.every((function(n){return e.isMinuteDisabledForHour(t,n.value)}));n=to}this.unselectableTimes&&(n||(n=this.unselectableTimes.filter((function(n){return e.enableSeconds&&null!==e.secondsSelected?n.getHours()===t&&n.getMinutes()===e.minutesSelected&&n.getSeconds()===e.secondsSelected:null!==e.minutesSelected&&(n.getHours()===t&&n.getMinutes()===e.minutesSelected)})).length>0||this.minutes.every((function(n){return e.unselectableTimes.filter((function(e){return e.getHours()===t&&e.getMinutes()===n.value})).length>0}))));return n},isMinuteDisabledForHour:function(t,e){var n=!1;if(this.minTime){var i=this.minTime.getHours(),r=this.minTime.getMinutes();n=t===i&&ea}return n},isMinuteDisabled:function(t){var e=this,n=!1;null!==this.hoursSelected&&(n=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,t),this.unselectableTimes&&(n||(n=this.unselectableTimes.filter((function(n){return e.enableSeconds&&null!==e.secondsSelected?n.getHours()===e.hoursSelected&&n.getMinutes()===t&&n.getSeconds()===e.secondsSelected:n.getHours()===e.hoursSelected&&n.getMinutes()===t})).length>0)));return n},isSecondDisabled:function(t){var e=this,n=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))n=!0;else{if(this.minTime){var i=this.minTime.getHours(),r=this.minTime.getMinutes(),o=this.minTime.getSeconds();n=this.hoursSelected===i&&this.minutesSelected===r&&tl}}if(this.unselectableTimes)if(!n)n=this.unselectableTimes.filter((function(n){return n.getHours()===e.hoursSelected&&n.getMinutes()===e.minutesSelected&&n.getSeconds()===t})).length>0}return n},onChange:function(t){var e=this.timeParser(t,this);this.updateInternalState(e),e&&!isNaN(e)?this.computedValue=e:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle:function(t){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"==typeof t?t:!this.$refs.dropdown.isActive)},close:function(){this.toggle(!1)},handleOnFocus:function(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getHours(),i=e.getMinutes(),r=e.getSeconds();return this.formatNumber(n,!0)+":"+this.formatNumber(i,!0)+":"+this.formatNumber(r,!0)}return""},onChangeNativePicker:function(t){var e=t.target.value;if(e){var n=null;this.computedValue&&!isNaN(this.computedValue)?n=new Date(this.computedValue):(n=new Date).setMilliseconds(0);var i=e.split(":");n.setHours(parseInt(i[0],10)),n.setMinutes(parseInt(i[1],10)),n.setSeconds(i[2]?parseInt(i[2],10):0),this.computedValue=new Date(n.getTime())}else this.computedValue=null},formatNumber:function(t,e){return this.isHourFormat24||e?this.pad(t):t},pad:function(t){return(t<10?"0":"")+t},formatValue:function(t){return t&&!isNaN(t)?this.timeFormatter(t,this):null},keyPress:function(t){var e=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.toggle(!1)},onActiveChange:function(t){t||this.onBlur()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},qr=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e?t.querySelectorAll('*[tabindex="-1"]'):t.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null},Zr={bind:function(t,e){var n=e.value;if(void 0===n||n){var i=qr(t),r=qr(t,!0);i&&i.length>0&&(Hr=function(e){i=qr(t),r=qr(t,!0);var n=i[0],o=i[i.length-1];e.target===n&&e.shiftKey&&"Tab"===e.key?(e.preventDefault(),o.focus()):(e.target===o||Array.from(r).indexOf(e.target)>=0)&&!e.shiftKey&&"Tab"===e.key&&(e.preventDefault(),n.focus())},t.addEventListener("keydown",Hr))}},unbind:function(t){t.removeEventListener("keydown",Hr)}},Xr=["escape","outside"];var Jr=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:t.rootClasses},[t.inline?t._e():n("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{role:"button","aria-haspopup":"true"},on:{click:t.onClick,contextmenu:function(e){return e.preventDefault(),t.onContextMenu(e)},mouseenter:t.onHover,"!focus":function(e){return t.onFocus(e)}}},[t._t("trigger",null,{active:t.isActive})],2),n("transition",{attrs:{name:t.animation}},[t.isMobileModal?n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!t.isActive}}):t._e()]),n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&(t.isActive||t.isHoverable)||t.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:t.style,attrs:{"aria-hidden":!t.isActive}},[n("div",{staticClass:"dropdown-content",style:t.contentStyle,attrs:{role:t.ariaRole}},[t._t("default")],2)])])],1)},staticRenderFns:[]},void 0,{name:"BDropdown",directives:{trapFocus:Zr},mixins:[Er("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:function(t){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(t)>-1}},triggers:{type:Array,default:function(){return["click"]}},mobileModal:{type:Boolean,default:function(){return dr.defaultDropdownMobileModal}},ariaRole:{type:String,validator:function(t){return["menu","list","dialog"].indexOf(t)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return dr.defaultTrapFocus}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:!1,_bodyEl:void 0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded}]},isMobileModal:function(){return this.mobileModal&&!this.inline},cancelOptions:function(){return"boolean"==typeof this.canClose?this.canClose?Xr:[]:this.canClose},contentStyle:function(){return{maxHeight:this.scrollable?ar(this.maxHeight):null,overflow:this.scrollable?"auto":null}},hoverable:function(){return this.triggers.indexOf("hover")>=0}},watch:{value:function(t){this.selected=t},isActive:function(t){var e=this;this.$emit("active-change",t),this.appendToBody&&this.$nextTick((function(){e.updateAppendToBody()}))}},methods:{selectItem:function(t){if(this.multiple){if(this.selected){var e=this.selected.indexOf(t);-1===e?this.selected.push(t):this.selected.splice(e,1)}else this.selected=[t];this.$emit("change",this.selected)}else this.selected!==t&&(this.selected=t,this.$emit("change",this.selected));this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(t){if(t===this.$refs.dropdownMenu)return!0;if(t===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var e=this.$refs.dropdownMenu.querySelectorAll("*"),n=!0,i=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){if(t===o.value)return!0}}catch(t){i=!0,r=t}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}}if(void 0!==this.$refs.trigger){var s=this.$refs.trigger.querySelectorAll("*"),l=!0,u=!1,c=void 0;try{for(var d,h=s[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){if(t===d.value)return!0}}catch(t){u=!0,c=t}finally{try{l||null==h.return||h.return()}finally{if(u)throw c}}}return!1},clickedOutside:function(t){if(!(this.cancelOptions.indexOf("outside")<0||this.inline)){var e=lr(this)?t.composedPath()[0]:t.target;this.isInWhiteList(e)||(this.isActive=!1)}},keyPress:function(t){var e=t.key;if(this.isActive&&("Escape"===e||"Esc"===e)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick:function(){this.triggers.indexOf("click")<0||this.toggle()},onContextMenu:function(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover:function(){this.triggers.indexOf("hover")<0||(this.isHoverable=!0)},onFocus:function(){this.triggers.indexOf("focus")<0||this.toggle()},toggle:function(){var t=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick((function(){var e=!t.isActive;t.isActive=e,setTimeout((function(){return t.isActive=e}))})))},updateAppendToBody:function(){var t=this.$refs.dropdownMenu,e=this.$refs.trigger;if(t&&e){var n=this.$data._bodyEl.children[0];if(n.classList.forEach((function(t){return n.classList.remove(t)})),n.classList.add("dropdown"),n.classList.add("dropdown-menu-animation"),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&n.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach((function(t){if(t&&"object"===Yi(t))for(var e in t)t[e]&&n.classList.add(e)})),this.appendToBodyCopyParent){var i=this.$refs.dropdown.parentNode,r=this.$data._bodyEl;r.classList.forEach((function(t){return r.classList.remove(t)})),i.classList.forEach((function(t){r.classList.add(t)}))}var o=e.getBoundingClientRect(),a=o.top+window.scrollY,s=o.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?a+=e.clientHeight:a-=t.clientHeight,this.position&&this.position.indexOf("left")>=0&&(s-=t.clientWidth-e.clientWidth),this.style={position:"absolute",top:"".concat(a,"px"),left:"".concat(s,"px"),zIndex:"99"}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=nr(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&er(this.$data._bodyEl)}},void 0,!1,void 0,void 0,void 0);var Kr=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.separator?n("hr",{staticClass:"dropdown-divider"}):t.custom||t.hasLink?n("div",{class:t.itemClasses,attrs:{role:t.ariaRoleItem,tabindex:t.isFocusable?0:null},on:{click:t.selectItem}},[t._t("default")],2):n("a",{staticClass:"dropdown-item",class:t.anchorClasses,attrs:{role:t.ariaRoleItem,tabindex:t.isFocusable?0:null},on:{click:t.selectItem}},[t._t("default")],2)},staticRenderFns:[]},void 0,{name:"BDropdownItem",mixins:[Or("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!(this.parent.disabled||this.separator||this.disabled||this.custom)},isActive:function(){return null!==this.parent.selected&&(this.parent.multiple?this.parent.selected.indexOf(this.value)>=0:this.value===this.parent.selected)},isFocusable:function(){return!this.hasLink&&this.focusable}},methods:{selectItem:function(){this.isClickable&&(this.parent.selectItem(this.value),this.$emit("click"))}}},void 0,!1,void 0,void 0,void 0);var Qr=pr({},void 0,{name:"BFieldBody",props:{message:{type:[String,Array]},type:{type:[String,Object]}},render:function(t){var e=this,n=!0;return t("div",{attrs:{class:"field-body"}},this.$slots.default.map((function(i){return i.tag?(n&&(r=e.message,n=!1),t("b-field",{attrs:{type:e.type,message:r}},[i])):i;var r})))}},void 0,void 0,void 0,void 0,void 0);var to=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field",class:t.rootClasses},[t.horizontal?n("div",{staticClass:"field-label",class:[t.customClass,t.fieldLabelSize]},[t.hasLabel?n("label",{staticClass:"label",class:t.customClass,attrs:{for:t.labelFor}},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2):t._e()]):[t.hasLabel?n("label",{staticClass:"label",class:t.customClass,attrs:{for:t.labelFor}},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2):t._e()],t.horizontal?n("b-field-body",{attrs:{message:t.newMessage?t.formattedMessage:"",type:t.newType}},[t._t("default")],2):t.grouped||t.groupMultiline||t.hasAddons()?n("div",{staticClass:"field-body"},[n("b-field",{class:t.innerFieldClasses,attrs:{addons:!1,type:t.newType}},[t._t("default")],2)],1):[t._t("default")],t.hasMessage&&!t.horizontal?n("p",{staticClass:"help",class:t.newType},[t.$slots.message?t._t("message"):[t._l(t.formattedMessage,(function(e,i){return[t._v(" "+t._s(e)+" "),i+1=0}))[0];if(t){var e=["has-numberinput"],n=t.componentOptions.propsData.controlsPosition,i=t.componentOptions.propsData.size;return n&&e.push("has-numberinput-".concat(n)),i&&e.push("has-numberinput-".concat(i)),e}}return null}},watch:{type:function(t){this.newType=t},message:function(t){this.newMessage=t}},methods:{fieldType:function(){return this.grouped?"is-grouped":this.hasAddons()?"has-addons":void 0},hasAddons:function(){var t=0;return this.$slots.default&&(t=this.$slots.default.reduce((function(t,e){return e.tag?t+1:t}),0)),t>1&&this.addons&&!this.horizontal}},mounted:function(){this.horizontal&&(this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal"))}},void 0,!1,void 0,void 0,void 0);var eo,no=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-clockpicker-face",on:{mousedown:t.onMouseDown,mouseup:t.onMouseUp,mousemove:t.onDragMove,touchstart:t.onMouseDown,touchend:t.onMouseUp,touchmove:t.onDragMove}},[n("div",{ref:"clock",staticClass:"b-clockpicker-face-outer-ring"},[n("div",{staticClass:"b-clockpicker-face-hand",style:t.handStyle}),t._l(t.faceNumbers,(function(e,i){return n("span",{key:i,staticClass:"b-clockpicker-face-number",class:t.getFaceNumberClasses(e),style:{transform:t.getNumberTranslate(e.value)}},[n("span",[t._v(t._s(e.label))])])}))],2)])},staticRenderFns:[]},void 0,{name:"BClockpickerFace",props:{pickerSize:Number,min:Number,max:Number,double:Boolean,value:Number,faceNumbers:Array,disabledValues:Function},data:function(){return{isDragging:!1,inputValue:this.value,prevAngle:720}},computed:{count:function(){return this.max-this.min+1},countPerRing:function(){return this.double?this.count/2:this.count},radius:function(){return this.pickerSize/2},outerRadius:function(){return this.radius-5-20},innerRadius:function(){return Math.max(.6*this.outerRadius,this.outerRadius-5-40)},degreesPerUnit:function(){return 360/this.countPerRing},degrees:function(){return this.degreesPerUnit*Math.PI/180},handRotateAngle:function(){for(var t=this.prevAngle;t<0;)t+=360;var e=this.calcHandAngle(this.displayedValue),n=this.shortestDistanceDegrees(t,e);return this.prevAngle+n},handScale:function(){return this.calcHandScale(this.displayedValue)},handStyle:function(){return{transform:"rotate(".concat(this.handRotateAngle,"deg) scaleY(").concat(this.handScale,")"),transition:".3s cubic-bezier(.25,.8,.50,1)"}},displayedValue:function(){return null==this.inputValue?this.min:this.inputValue}},watch:{value:function(t){t!==this.inputValue&&(this.prevAngle=this.handRotateAngle),this.inputValue=t}},methods:{isDisabled:function(t){return this.disabledValues&&this.disabledValues(t)},euclidean:function(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)},shortestDistanceDegrees:function(t,e){var n=(e-t)%360,i=180-Math.abs(Math.abs(n)-180);return(n+360)%360<180?1*i:-1*i},coordToAngle:function(t,e){var n=2*Math.atan2(e.y-t.y-this.euclidean(t,e),e.x-t.x);return Math.abs(180*n/Math.PI)},getNumberTranslate:function(t){var e=this.getNumberCoords(t),n=e.x,i=e.y;return"translate(".concat(n,"px, ").concat(i,"px)")},getNumberCoords:function(t){var e=this.isInnerRing(t)?this.innerRadius:this.outerRadius;return{x:Math.round(e*Math.sin((t-this.min)*this.degrees)),y:Math.round(-e*Math.cos((t-this.min)*this.degrees))}},getFaceNumberClasses:function(t){return{active:t.value===this.displayedValue,disabled:this.isDisabled(t.value)}},isInnerRing:function(t){return this.double&&t-this.min>=this.countPerRing},calcHandAngle:function(t){var e=this.degreesPerUnit*(t-this.min);return this.isInnerRing(t)&&(e-=360),e},calcHandScale:function(t){return this.isInnerRing(t)?this.innerRadius/this.outerRadius:1},onMouseDown:function(t){t.preventDefault(),this.isDragging=!0,this.onDragMove(t)},onMouseUp:function(){this.isDragging=!1,this.isDisabled(this.inputValue)||this.$emit("change",this.inputValue)},onDragMove:function(t){if(t.preventDefault(),this.isDragging||"click"===t.type){var e=this.$refs.clock.getBoundingClientRect(),n=e.width,i=e.top,r=e.left,o="touches"in t?t.touches[0]:t,a={x:n/2,y:-n/2},s={x:o.clientX-r,y:i-o.clientY},l=Math.round(this.coordToAngle(a,s)+360)%360,u=this.double&&this.euclidean(a,s)<(this.outerRadius+this.innerRadius)/2-16,c=Math.round(l/this.degreesPerUnit)+this.min+(u?this.countPerRing:0);l>=360-this.degreesPerUnit/2&&(c=u?this.max:this.min),this.update(c)}},update:function(t){this.inputValue===t||this.isDisabled(t)||(this.prevAngle=this.handRotateAngle,this.inputValue=t,this.$emit("input",t))}}},void 0,!1,void 0,void 0,void 0);var io=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-clockpicker control",class:[t.size,t.type,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange},scopedSlots:t._u([t.inline?null:{key:"trigger",fn:function(){return[t._t("trigger",[n("b-input",t._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,disabled:t.disabled,readonly:!t.editable,rounded:t.rounded,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{click:function(e){return e.stopPropagation(),t.toggle(!0)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggle(!0)},change:function(e){return t.onChange(e.target.value)}},slot:"trigger"},"b-input",t.$attrs,!1))])]},proxy:!0}],null,!0)},[n("div",{staticClass:"card",attrs:{disabled:t.disabled,custom:""}},[t.inline?n("header",{staticClass:"card-header"},[n("div",{staticClass:"b-clockpicker-header card-header-title"},[n("div",{staticClass:"b-clockpicker-time"},[n("span",{staticClass:"b-clockpicker-btn",class:{active:t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!0}}},[t._v(t._s(t.hoursDisplay))]),n("span",[t._v(t._s(t.hourLiteral))]),n("span",{staticClass:"b-clockpicker-btn",class:{active:!t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!1}}},[t._v(t._s(t.minutesDisplay))])]),t.isHourFormat24?t._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.amString||t.meridienSelected===t.AM},on:{click:function(e){return t.onMeridienClick(t.amString)}}},[t._v(t._s(t.amString))]),n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.pmString||t.meridienSelected===t.PM},on:{click:function(e){return t.onMeridienClick(t.pmString)}}},[t._v(t._s(t.pmString))])])])]):t._e(),n("div",{staticClass:"card-content"},[n("div",{staticClass:"b-clockpicker-body",style:{width:t.faceSize+"px",height:t.faceSize+"px"}},[t.inline?t._e():n("div",{staticClass:"b-clockpicker-time"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!0}}},[t._v(t._s(t.hoursLabel))]),n("span",{staticClass:"b-clockpicker-btn",class:{active:!t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!1}}},[t._v(t._s(t.minutesLabel))])]),t.isHourFormat24||t.inline?t._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.amString||t.meridienSelected===t.AM},on:{click:function(e){return t.onMeridienClick(t.amString)}}},[t._v(t._s(t.amString))]),n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.pmString||t.meridienSelected===t.PM},on:{click:function(e){return t.onMeridienClick(t.pmString)}}},[t._v(t._s(t.pmString))])]),n("b-clockpicker-face",{attrs:{"picker-size":t.faceSize,min:t.minFaceValue,max:t.maxFaceValue,"face-numbers":t.isSelectingHour?t.hours:t.minutes,"disabled-values":t.faceDisabledValues,double:t.isSelectingHour&&t.isHourFormat24,value:t.isSelectingHour?t.hoursSelected:t.minutesSelected},on:{input:t.onClockInput,change:t.onClockChange}})],1)]),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"b-clockpicker-footer card-footer"},[t._t("default")],2):t._e()])]):n("b-input",t._b({ref:"input",attrs:{type:"time",autocomplete:"off",value:t.formatHHMMSS(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,max:t.formatHHMMSS(t.maxTime),min:t.formatHHMMSS(t.minTime),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{click:function(e){return e.stopPropagation(),t.toggle(!0)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggle(!0)},change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))],1)},staticRenderFns:[]},void 0,{name:"BClockpicker",components:(eo={},Fi(eo,no.name,no),Fi(eo,xr.name,xr),Fi(eo,to.name,to),Fi(eo,wr.name,wr),Fi(eo,Jr.name,Jr),Fi(eo,Kr.name,Kr),eo),mixins:[Gr],props:{pickerSize:{type:Number,default:290},incrementMinutes:{type:Number,default:5},autoSwitch:{type:Boolean,default:!0},type:{type:String,default:"is-primary"},hoursLabel:{type:String,default:function(){return dr.defaultClockpickerHoursLabel||"Hours"}},minutesLabel:{type:String,default:function(){return dr.defaultClockpickerMinutesLabel||"Min"}}},data:function(){return{isSelectingHour:!0,isDragging:!1,_isClockpicker:!0}},computed:{hoursDisplay:function(){if(null==this.hoursSelected)return"--";if(this.isHourFormat24)return this.pad(this.hoursSelected);var t=this.hoursSelected;return this.meridienSelected!==this.pmString&&this.meridienSelected!==this.PM||(t-=12),0===t&&(t=12),t},minutesDisplay:function(){return null==this.minutesSelected?"--":this.pad(this.minutesSelected)},minFaceValue:function(){return!this.isSelectingHour||this.isHourFormat24||this.meridienSelected!==this.pmString&&this.meridienSelected!==this.PM?0:12},maxFaceValue:function(){return this.isSelectingHour?this.isHourFormat24||this.meridienSelected!==this.amString&&this.meridienSelected!==this.AM?23:11:59},faceSize:function(){return this.pickerSize-24},faceDisabledValues:function(){return this.isSelectingHour?this.isHourDisabled:this.isMinuteDisabled}},methods:{onClockInput:function(t){this.isSelectingHour?(this.hoursSelected=t,this.onHoursChange(t)):(this.minutesSelected=t,this.onMinutesChange(t))},onClockChange:function(t){this.autoSwitch&&this.isSelectingHour&&(this.isSelectingHour=!this.isSelectingHour)},onMeridienClick:function(t){this.meridienSelected!==t&&(this.meridienSelected=t,this.onMeridienChange(t))}}},void 0,!1,void 0,void 0,void 0),ro={install:function(t){gr(t,io)}};mr(ro);var oo=ro;var ao=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded,"has-icons-left":t.icon}},[n("span",{staticClass:"select",class:t.spanClasses},[n("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:t.multiple,size:t.nativeSize},on:{blur:function(e){t.$emit("blur",e)&&t.checkHtml5Validity()},focus:function(e){return t.$emit("focus",e)},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.computedValue=e.target.multiple?n:n[0]}}},"select",t.$attrs,!1),[t.placeholder?[null==t.computedValue?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[t._v(" "+t._s(t.placeholder)+" ")]):t._e()]:t._e(),t._t("default")],2)]),t.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize}}):t._e()],1)},staticRenderFns:[]},void 0,{name:"BSelect",components:Fi({},wr.name,wr),mixins:[yr],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(t){this.selected=t,this.$emit("input",t),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{value:function(t){this.selected=t,!this.isValid&&this.checkHtml5Validity()}}},void 0,!1,void 0,void 0,void 0);var so=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"datepicker-row"},[t.showWeekNumber?n("a",{staticClass:"datepicker-cell is-week-number"},[n("span",[t._v(t._s(t.getWeekNumber(t.week[6])))])]):t._e(),t._l(t.week,(function(e,i){return[t.selectableDate(e)&&!t.disabled?n("a",{key:i,ref:"day-"+e.getDate(),refInFor:!0,staticClass:"datepicker-cell",class:[t.classObject(e),{"has-event":t.eventsDateMatch(e)},t.indicators],attrs:{role:"button",href:"#",disabled:t.disabled,tabindex:t.day===e.getDate()?null:-1},on:{click:function(n){return n.preventDefault(),t.emitChosenDate(e)},mouseenter:function(n){return t.setRangeHoverEndDate(e)},keydown:function(n){return n.preventDefault(),t.manageKeydown(n,e)}}},[n("span",[t._v(t._s(e.getDate()))]),t.eventsDateMatch(e)?n("div",{staticClass:"events"},t._l(t.eventsDateMatch(e),(function(t,e){return n("div",{key:e,staticClass:"event",class:t.type})})),0):t._e()]):n("div",{key:i,staticClass:"datepicker-cell",class:t.classObject(e)},[n("span",[t._v(t._s(e.getDate()))])])]}))],2)},staticRenderFns:[]},void 0,{name:"BDatepickerTableRow",props:{selectedDate:{type:[Date,Array]},hoveredDateRange:Array,day:{type:Number},week:{type:Array,required:!0},month:{type:Number,required:!0},minDate:Date,maxDate:Date,disabled:Boolean,unselectableDates:Array,unselectableDaysOfWeek:Array,selectableDates:Array,events:Array,indicators:String,dateCreator:Function,nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:{type:Boolean,default:function(){return!1}},range:Boolean,multiple:Boolean,rulesForFirstWeek:{type:Number,default:function(){return 4}},firstDayOfWeek:Number},watch:{day:function(t){var e=this,n="day-".concat(t);this.$nextTick((function(){e.$refs[n]&&e.$refs[n].length>0&&e.$refs[n][0]&&e.$refs[n][0].focus()}))}},methods:{firstWeekOffset:function(t,e,n){var i=7+e-n;return-((7+new Date(t,0,i).getDay()-e)%7)+i-1},daysInYear:function(t){return this.isLeapYear(t)?366:365},isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getSetDayOfYear:function(t){return Math.round((t-new Date(t.getFullYear(),0,1))/864e5)+1},weeksInYear:function(t,e,n){var i=this.firstWeekOffset(t,e,n),r=this.firstWeekOffset(t+1,e,n);return(this.daysInYear(t)-i+r)/7},getWeekNumber:function(t){var e,n,i=this.firstDayOfWeek,r=this.rulesForFirstWeek,o=this.firstWeekOffset(t.getFullYear(),i,r),a=Math.floor((this.getSetDayOfYear(t)-o-1)/7)+1;return a<1?(n=t.getFullYear()-1,e=a+this.weeksInYear(n,i,r)):a>this.weeksInYear(t.getFullYear(),i,r)?(e=a-this.weeksInYear(t.getFullYear(),i,r),n=t.getFullYear()+1):(n=t.getFullYear(),e=a),e},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&e.push(t.getMonth()===this.month),this.selectableDates)for(var n=0;ne[0]&&tt?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=t):this.selectedEndDate=t,this.$emit("range-end",t),this.$emit("input",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=t,this.$emit("range-start",t))},handleSelectMultipleDates:function(t){this.multipleSelectedDates.filter((function(e){return e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()})).length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(e){return e.getDate()!==t.getDate()||e.getFullYear()!==t.getFullYear()||e.getMonth()!==t.getMonth()})):this.multipleSelectedDates.push(t),this.$emit("input",this.multipleSelectedDates)},weekBuilder:function(t,e,n){for(var i=new Date(n,e),r=[],o=new Date(n,e,t).getDay(),a=o>=this.firstDayOfWeek?o-this.firstDayOfWeek:7-this.firstDayOfWeek+o,s=1,l=0;l=this.minDate),this.maxDate&&e.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&e.push(t.getMonth()===this.focused.month),this.selectableDates)for(var n=0;n0&&this.$nextTick((function(){e.$refs[n][0]&&e.$refs[n][0].focus()}))}},methods:{selectMultipleDates:function(t){this.multipleSelectedDates.filter((function(e){return e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()})).length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(e){return e.getDate()!==t.getDate()||e.getFullYear()!==t.getFullYear()||e.getMonth()!==t.getMonth()})):this.multipleSelectedDates.push(t),this.$emit("input",this.multipleSelectedDates)},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),e.push(t.getFullYear()===this.focused.year),this.selectableDates)for(var n=0;n)\\d+)")})).join(""),t);if(n.year&&4===n.year.length&&n.month&&n.month<=12){if(e.isTypeMonth)return new Date(n.year,n.month-1);if(n.day&&n.day<=31)return new Date(n.year,n.month-1,n.day,12)}}if(!e.isTypeMonth)return new Date(Date.parse(t));if(t){var i=t.split("/"),r=4===i[0].length?i[0]:i[1],o=2===i[0].length?i[0]:i[1];if(r&&o)return new Date(parseInt(r,10),parseInt(o-1,10),1,0,0,0,0)}return null}(t,e)}},dateCreator:{type:Function,default:function(){return"function"==typeof dr.defaultDateCreator?dr.defaultDateCreator():new Date}},mobileNative:{type:Boolean,default:function(){return dr.defaultDatepickerMobileNative}},position:String,events:Array,indicators:{type:String,default:"dots"},openOnFocus:Boolean,iconPrev:{type:String,default:function(){return dr.defaultIconPrev}},iconNext:{type:String,default:function(){return dr.defaultIconNext}},yearsRange:{type:Array,default:function(){return dr.defaultDatepickerYearsRange}},type:{type:String,validator:function(t){return["month"].indexOf(t)>=0}},nearbyMonthDays:{type:Boolean,default:function(){return dr.defaultDatepickerNearbyMonthDays}},nearbySelectableMonthDays:{type:Boolean,default:function(){return dr.defaultDatepickerNearbySelectableMonthDays}},showWeekNumber:{type:Boolean,default:function(){return dr.defaultDatepickerShowWeekNumber}},rulesForFirstWeek:{type:Number,default:function(){return 4}},range:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},mobileModal:{type:Boolean,default:function(){return dr.defaultDatepickerMobileModal}},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:function(){return dr.defaultTrapFocus}},appendToBody:Boolean,ariaNextLabel:String,ariaPreviousLabel:String},data:function(){var t=(Array.isArray(this.value)?this.value[0]:this.value)||this.focusedDate||this.dateCreator();return{dateSelected:this.value,focusedDateData:{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()},_elementRef:"input",_isDatepicker:!0}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){var e=this;this.updateInternalState(t),this.multiple||this.togglePicker(!1),this.$emit("input",t),this.useHtml5Validation&&this.$nextTick((function(){e.checkHtml5Validity()}))}},formattedValue:function(){return this.formatValue(this.computedValue)},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric"}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{timezome:"UTC"})},dtfMonth:function(){return new Intl.DateTimeFormat(this.locale,{year:this.localeOptions.year||"numeric",month:this.localeOptions.month||"2-digit",timezome:"UTC"})},newMonthNames:function(){return Array.isArray(this.monthNames)?this.monthNames:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"long",n=[],i=0;i<12;i++)n.push(new Date(2e3,i,15));var r=new Intl.DateTimeFormat(t,{month:e,timezome:"UTC"});return n.map((function(t){return r.format(t)}))}(this.locale)},newDayNames:function(){return Array.isArray(this.dayNames)?this.dayNames:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"narrow",i=[],r=1,o=0;o<7;r++){var a=new Date(Date.UTC(2e3,0,r)),s=a.getUTCDay();(s===e+1||o>0)&&(i.push(a),o++)}var l=new Intl.DateTimeFormat(t,{weekday:n,timezome:"UTC"});return i.map((function(t){return l.format(t)}))}(this.locale,this.firstDayOfWeek)},listOfMonths:function(){var t=0,e=12;return this.minDate&&this.focusedDateData.year===this.minDate.getFullYear()&&(t=this.minDate.getMonth()),this.maxDate&&this.focusedDateData.year===this.maxDate.getFullYear()&&(e=this.maxDate.getMonth()),this.newMonthNames.map((function(n,i){return{name:n,index:i,disabled:ie}}))},listOfYears:function(){var t=this.focusedDateData.year+this.yearsRange[1];this.maxDate&&this.maxDate.getFullYear()e&&(e=Math.min(this.minDate.getFullYear(),this.focusedDateData.year));for(var n=[],i=e;i<=t;i++)n.push(i);return n.reverse()},showPrev:function(){return!!this.minDate&&(this.isTypeMonth?this.focusedDateData.year<=this.minDate.getFullYear():new Date(this.focusedDateData.year,this.focusedDateData.month)<=new Date(this.minDate.getFullYear(),this.minDate.getMonth()))},showNext:function(){return!!this.maxDate&&(this.isTypeMonth?this.focusedDateData.year>=this.maxDate.getFullYear():new Date(this.focusedDateData.year,this.focusedDateData.month)>=new Date(this.maxDate.getFullYear(),this.maxDate.getMonth()))},isMobile:function(){return this.mobileNative&&tr.any()},isTypeMonth:function(){return"month"===this.type},ariaRole:function(){if(!this.inline)return"dialog"}},watch:{value:function(t){this.updateInternalState(t),this.multiple||this.togglePicker(!1)},focusedDate:function(t){t&&(this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()})},"focusedDateData.month":function(t){this.$emit("change-month",t)},"focusedDateData.year":function(t){this.$emit("change-year",t)}},methods:{onChange:function(t){var e=this.dateParser(t,this);!e||isNaN(e)&&(!Array.isArray(e)||2!==e.length||isNaN(e[0])||isNaN(e[1]))?(this.computedValue=null,this.$refs.input&&(this.$refs.input.newValue=this.computedValue)):this.computedValue=e},formatValue:function(t){return Array.isArray(t)?Array.isArray(t)&&t.every((function(t){return!isNaN(t)}))?this.dateFormatter(Ui(t),this):null:t&&!isNaN(t)?this.dateFormatter(t,this):null},prev:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year-=1:this.focusedDateData.month>0?this.focusedDateData.month-=1:(this.focusedDateData.month=11,this.focusedDateData.year-=1))},next:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year+=1:this.focusedDateData.month<11?this.focusedDateData.month+=1:(this.focusedDateData.month=0,this.focusedDateData.year+=1))},formatNative:function(t){return this.isTypeMonth?this.formatYYYYMM(t):this.formatYYYYMMDD(t)},formatYYYYMMDD:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate();return n+"-"+(i<10?"0":"")+i+"-"+(r<10?"0":"")+r}return""},formatYYYYMM:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),i=e.getMonth()+1;return n+"-"+(i<10?"0":"")+i}return""},onChangeNativePicker:function(t){var e=t.target.value,n=e?e.split("-"):[];if(3===n.length){var i=parseInt(n[0],10),r=parseInt(n[1])-1,o=parseInt(n[2]);this.computedValue=new Date(i,r,o)}else this.computedValue=null},updateInternalState:function(t){var e=Array.isArray(t)?t.length?t[0]:this.dateCreator():t||this.dateCreator();this.focusedDateData={day:e.getDate(),month:e.getMonth(),year:e.getFullYear()},this.dateSelected=t},togglePicker:function(t){this.$refs.dropdown&&this.closeOnClick&&(this.$refs.dropdown.isActive="boolean"==typeof t?t:!this.$refs.dropdown.isActive)},handleOnFocus:function(t){this.onFocus(t),this.openOnFocus&&this.togglePicker(!0)},toggle:function(){if(this.mobileNative&&this.isMobile){var t=this.$refs.input.$refs.input;return t.focus(),void t.click()}this.$refs.dropdown.toggle()},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()},keyPress:function(t){var e=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.togglePicker(!1)},onActiveChange:function(t){t||this.onBlur()},changeFocus:function(t){this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},void 0,!1,void 0,void 0,void 0),po={install:function(t){gr(t,fo)}};mr(po);var mo,go=po;var vo,yo=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timepicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange},scopedSlots:t._u([t.inline?null:{key:"trigger",fn:function(){return[t._t("trigger",[n("b-input",t._b({ref:"input",attrs:{autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,disabled:t.disabled,readonly:!t.editable,rounded:t.rounded,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggle(!0)},change:function(e){return t.onChange(e.target.value)}}},"b-input",t.$attrs,!1))])]},proxy:!0}],null,!0)},[n("b-dropdown-item",{attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("b-field",{attrs:{grouped:"",position:"is-centered"}},[n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){return t.onHoursChange(e.target.value)}},model:{value:t.hoursSelected,callback:function(e){t.hoursSelected=e},expression:"hoursSelected"}},t._l(t.hours,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isHourDisabled(e.value)},domProps:{value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),0),n("span",{staticClass:"control is-colon"},[t._v(t._s(t.hourLiteral))]),n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){return t.onMinutesChange(e.target.value)}},model:{value:t.minutesSelected,callback:function(e){t.minutesSelected=e},expression:"minutesSelected"}},t._l(t.minutes,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isMinuteDisabled(e.value)},domProps:{value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),0),t.enableSeconds?[n("span",{staticClass:"control is-colon"},[t._v(t._s(t.minuteLiteral))]),n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){return t.onSecondsChange(e.target.value)}},model:{value:t.secondsSelected,callback:function(e){t.secondsSelected=e},expression:"secondsSelected"}},t._l(t.seconds,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isSecondDisabled(e.value)},domProps:{value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),0),n("span",{staticClass:"control is-colon"},[t._v(t._s(t.secondLiteral))])]:t._e(),t.isHourFormat24?t._e():n("b-select",{attrs:{disabled:t.disabled},nativeOn:{change:function(e){return t.onMeridienChange(e.target.value)}},model:{value:t.meridienSelected,callback:function(e){t.meridienSelected=e},expression:"meridienSelected"}},t._l(t.meridiens,(function(e){return n("option",{key:e,domProps:{value:e}},[t._v(" "+t._s(e)+" ")])})),0)],2),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"timepicker-footer"},[t._t("default")],2):t._e()],1)],1):n("b-input",t._b({ref:"input",attrs:{type:"time",step:t.nativeStep,autocomplete:"off",value:t.formatHHMMSS(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatHHMMSS(t.maxTime),min:t.formatHHMMSS(t.minTime),disabled:t.disabled,readonly:!1,"reset-on-meridian-change":t.isReset,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{change:function(e){return t.onChange(e.target.value)}}},"b-input",t.$attrs,!1))],1)},staticRenderFns:[]},void 0,{name:"BTimepicker",components:(mo={},Fi(mo,xr.name,xr),Fi(mo,to.name,to),Fi(mo,ao.name,ao),Fi(mo,wr.name,wr),Fi(mo,Jr.name,Jr),Fi(mo,Kr.name,Kr),mo),mixins:[Gr],inheritAttrs:!1,data:function(){return{_isTimepicker:!0}},computed:{nativeStep:function(){if(this.enableSeconds)return"1"}}},void 0,!1,void 0,void 0,void 0);var _o=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.isMobile||t.inline?n("b-datepicker",t._b({ref:"datepicker",attrs:{"open-on-focus":t.openOnFocus,position:t.position,loading:t.loading,inline:t.inline,editable:t.editable,expanded:t.expanded,"close-on-click":!1,"date-formatter":t.defaultDatetimeFormatter,"date-parser":t.defaultDatetimeParser,"min-date":t.minDate,"max-date":t.maxDate,icon:t.icon,"icon-pack":t.iconPack,size:t.datepickerSize,placeholder:t.placeholder,"horizontal-time-picker":t.horizontalTimePicker,range:!1,disabled:t.disabled,"mobile-native":t.isMobileNative,locale:t.locale,focusable:t.focusable,"append-to-body":t.appendToBody},on:{focus:t.onFocus,blur:t.onBlur,"change-month":function(e){return t.$emit("change-month",e)},"change-year":function(e){return t.$emit("change-year",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-datepicker",t.datepicker,!1),[n("nav",{staticClass:"level is-mobile"},[void 0!==t.$slots.left?n("div",{staticClass:"level-item has-text-centered"},[t._t("left")],2):t._e(),n("div",{staticClass:"level-item has-text-centered"},[n("b-timepicker",t._b({ref:"timepicker",attrs:{inline:"",editable:t.editable,"min-time":t.minTime,"max-time":t.maxTime,size:t.timepickerSize,disabled:t.timepickerDisabled,focusable:t.focusable,"mobile-native":t.isMobileNative,locale:t.locale},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-timepicker",t.timepicker,!1))],1),void 0!==t.$slots.right?n("div",{staticClass:"level-item has-text-centered"},[t._t("right")],2):t._e()])]):n("b-input",t._b({ref:"input",attrs:{type:"datetime-local",autocomplete:"off",value:t.formatNative(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatNative(t.maxDate),min:t.formatNative(t.minDate),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.onFocus,blur:t.onBlur},nativeOn:{change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))},staticRenderFns:[]},void 0,{name:"BDatetimepicker",components:(vo={},Fi(vo,fo.name,fo),Fi(vo,yo.name,yo),vo),mixins:[yr],inheritAttrs:!1,props:{value:{type:Date},editable:{type:Boolean,default:!1},placeholder:String,horizontalTimePicker:Boolean,disabled:Boolean,icon:String,iconPack:String,inline:Boolean,openOnFocus:Boolean,position:String,mobileNative:{type:Boolean,default:!0},minDatetime:Date,maxDatetime:Date,datetimeFormatter:{type:Function},datetimeParser:{type:Function},datetimeCreator:{type:Function,default:function(t){return"function"==typeof dr.defaultDatetimeCreator?dr.defaultDatetimeCreator(t):t}},datepicker:Object,timepicker:Object,tzOffset:{type:Number,default:0},focusable:{type:Boolean,default:!0},appendToBody:Boolean},data:function(){return{newValue:this.adjustValue(this.value)}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){if(t){var e=new Date(t.getTime());this.newValue?t.getDate()===this.newValue.getDate()&&t.getMonth()===this.newValue.getMonth()&&t.getFullYear()===this.newValue.getFullYear()||0!==t.getHours()||0!==t.getMinutes()||0!==t.getSeconds()||e.setHours(this.newValue.getHours(),this.newValue.getMinutes(),this.newValue.getSeconds(),0):e=this.datetimeCreator(t),this.minDatetime&&ethis.adjustValue(this.maxDatetime)&&(e=this.adjustValue(this.maxDatetime)),this.newValue=new Date(e.getTime())}else this.newValue=this.adjustValue(this.value);var n=this.adjustValue(this.newValue,!0);this.$emit("input",n)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:this.enableSeconds()?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{year:this.localeOptions.year||"numeric",month:this.localeOptions.month||"numeric",day:this.localeOptions.day||"numeric",hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds()?this.localeOptions.second||"numeric":void 0,hour12:!this.isHourFormat24(),timezome:"UTC"})},isMobileNative:function(){return this.mobileNative&&0===this.tzOffset},isMobile:function(){return this.isMobileNative&&tr.any()},minDate:function(){if(!this.minDatetime)return this.datepicker?this.adjustValue(this.datepicker.minDate):null;var t=this.adjustValue(this.minDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},maxDate:function(){if(!this.maxDatetime)return this.datepicker?this.adjustValue(this.datepicker.maxDate):null;var t=this.adjustValue(this.maxDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},minTime:function(){if(!this.minDatetime||null===this.newValue||void 0===this.newValue)return this.timepicker?this.adjustValue(this.timepicker.minTime):null;var t=this.adjustValue(this.minDatetime);return t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate()?t:void 0},maxTime:function(){if(!this.maxDatetime||null===this.newValue||void 0===this.newValue)return this.timepicker?this.adjustValue(this.timepicker.maxTime):null;var t=this.adjustValue(this.maxDatetime);return t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate()?t:void 0},datepickerSize:function(){return this.datepicker&&this.datepicker.size?this.datepicker.size:this.size},timepickerSize:function(){return this.timepicker&&this.timepicker.size?this.timepicker.size:this.size},timepickerDisabled:function(){return this.timepicker&&this.timepicker.disabled?this.timepicker.disabled:this.disabled}},watch:{value:function(t){this.newValue=this.adjustValue(this.value)},tzOffset:function(t){this.newValue=this.adjustValue(this.value)}},methods:{enableSeconds:function(){return!!this.$refs.timepicker&&this.$refs.timepicker.enableSeconds},isHourFormat24:function(){return this.$refs.timepicker?this.$refs.timepicker.isHourFormat24:!this.localeOptions.hour12},adjustValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e?new Date(t.getTime()-6e4*this.tzOffset):new Date(t.getTime()+6e4*this.tzOffset):t},defaultDatetimeParser:function(t){if("function"==typeof this.datetimeParser)return this.datetimeParser(t);if("function"==typeof dr.defaultDatetimeParser)return dr.defaultDatetimeParser(t);if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=["AM","PM","AM".toLowerCase(),"PM".toLowerCase()];this.$refs.timepicker&&(e.push(this.$refs.timepicker.amString),e.push(this.$refs.timepicker.pmString));var n=this.dtf.formatToParts(new Date),i=sr(n.map((function(t,i){return"literal"===t.type?i+1)(").concat(e.join("|"),")?)"):"((?!=<".concat(t.type,">)\\d+)")})).join(""),t);if(i.year&&4===i.year.length&&i.month&&i.month<=12&&i.day&&i.day<=31&&i.hour&&i.hour>=0&&i.hour<24&&i.minute&&i.minute>=0&&i.minute<59)return new Date(i.year,i.month-1,i.day,i.hour,i.minute,i.second||0)}return new Date(Date.parse(t))},defaultDatetimeFormatter:function(t){return"function"==typeof this.datetimeFormatter?this.datetimeFormatter(t):"function"==typeof dr.defaultDatetimeFormatter?dr.defaultDatetimeFormatter(t):this.dtf.format(t)},onChangeNativePicker:function(t){var e=t.target.value,n=e?e.split(/\D/):[];if(n.length>=5){var i=parseInt(n[0],10),r=parseInt(n[1],10)-1,o=parseInt(n[2],10),a=parseInt(n[3],10),s=parseInt(n[4],10);this.computedValue=new Date(i,r,o,a,s)}else this.computedValue=null},formatNative:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate(),o=e.getHours(),a=e.getMinutes(),s=e.getSeconds();return n+"-"+(i<10?"0":"")+i+"-"+(r<10?"0":"")+r+"T"+(o<10?"0":"")+o+":"+(a<10?"0":"")+a+":"+(s<10?"0":"")+s}return""},toggle:function(){this.$refs.datepicker.toggle()}},mounted:function(){this.isMobile&&!this.inline||this.newValue&&this.$refs.datepicker.$forceUpdate()}},void 0,!1,void 0,void 0,void 0),bo={install:function(t){gr(t,_o)}};mr(bo);var wo=bo;var xo=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation},on:{"after-enter":t.afterEnter,"before-leave":t.beforeLeave,"after-leave":t.afterLeave}},[t.destroyed?t._e():n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],staticClass:"modal is-active",class:[{"is-full-screen":t.fullScreen},t.customClass],attrs:{tabindex:"-1",role:t.ariaRole,"aria-modal":t.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(e){return t.cancel("outside")}}}),n("div",{staticClass:"animation-content",class:{"modal-content":!t.hasModalCard},style:t.customStyle},[t.component?n(t.component,t._g(t._b({tag:"component",attrs:{"can-cancel":t.canCancel},on:{close:t.close}},"component",t.props,!1),t.events)):t.content?n("div",[t._v(" "+t._s(t.content)+" ")]):t._t("default",null,{canCancel:t.canCancel,close:t.close}),t.showX?n("button",{directives:[{name:"show",rawName:"v-show",value:!t.animating,expression:"!animating"}],staticClass:"modal-close is-large",attrs:{type:"button"},on:{click:function(e){return t.cancel("x")}}}):t._e()],2)])])},staticRenderFns:[]},void 0,{name:"BModal",directives:{trapFocus:Zr},model:{prop:"active",event:"update:active"},props:{active:Boolean,component:[Object,Function,String],content:String,programmatic:Boolean,props:Object,events:Object,width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:function(){return dr.defaultModalCanCancel}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return dr.defaultModalScroll?dr.defaultModalScroll:"clip"},validator:function(t){return["clip","keep"].indexOf(t)>=0}},fullScreen:Boolean,trapFocus:{type:Boolean,default:function(){return dr.defaultTrapFocus}},customClass:String,ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean,destroyOnHide:{type:Boolean,default:!0}},data:function(){return{isActive:this.active||!1,savedScrollTop:null,newWidth:"number"==typeof this.width?this.width+"px":this.width,animating:!0,destroyed:!this.active}},computed:{cancelOptions:function(){return"boolean"==typeof this.canCancel?this.canCancel?dr.defaultModalCanCancel:[]:this.canCancel},showX:function(){return this.cancelOptions.indexOf("x")>=0&&!this.hasModalCard},customStyle:function(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{active:function(t){this.isActive=t},isActive:function(t){var e=this;t&&(this.destroyed=!1),this.handleScroll(),this.$nextTick((function(){t&&e.$el&&e.$el.focus&&e.$el.focus()}))}},methods:{handleScroll:function(){"undefined"!=typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},cancel:function(t){this.cancelOptions.indexOf(t)<0||(this.$emit("cancel",arguments),this.onCancel.apply(null,arguments),this.close())},close:function(){var t=this;this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),er(t.$el)}),150))},keyPress:function(t){var e=t.key;!this.isActive||"Escape"!==e&&"Esc"!==e||this.cancel("escape")},afterEnter:function(){this.animating=!1},beforeLeave:function(){this.animating=!0},afterLeave:function(){this.destroyOnHide&&(this.destroyed=!0)}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},mounted:function(){this.programmatic?this.isActive=!0:this.isActive&&this.handleScroll()},beforeDestroy:function(){if("undefined"!=typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");var t=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=t,document.body.style.top=null}}},void 0,!1,void 0,void 0,void 0);var ko,Co=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[t.isActive?n("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],staticClass:"dialog modal is-active",class:t.dialogClass,attrs:{role:t.ariaRole,"aria-modal":t.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(e){return t.cancel("outside")}}}),n("div",{staticClass:"modal-card animation-content"},[t.title?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[t._v(t._s(t.title))])]):t._e(),n("section",{staticClass:"modal-card-body",class:{"is-titleless":!t.title,"is-flex":t.hasIcon}},[n("div",{staticClass:"media"},[t.hasIcon&&(t.icon||t.iconByType)?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:t.icon?t.icon:t.iconByType,pack:t.iconPack,type:t.type,both:!t.icon,size:"is-large"}})],1):t._e(),n("div",{staticClass:"media-content"},[n("p",[t.$slots.default?[t._t("default")]:[t._v(" "+t._s(t.message)+" ")]],2),t.hasInput?n("div",{staticClass:"field"},[n("div",{staticClass:"control"},["checkbox"===t.inputAttrs.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.prompt)?t._i(t.prompt,null)>-1:t.prompt},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},change:function(e){var n=t.prompt,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.prompt=n.concat([null])):o>-1&&(t.prompt=n.slice(0,o).concat(n.slice(o+1)))}else t.prompt=r}}},"input",t.inputAttrs,!1)):"radio"===t.inputAttrs.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:"radio"},domProps:{checked:t._q(t.prompt,null)},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},change:function(e){t.prompt=null}}},"input",t.inputAttrs,!1)):n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:t.inputAttrs.type},domProps:{value:t.prompt},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},input:function(e){e.target.composing||(t.prompt=e.target.value)}}},"input",t.inputAttrs,!1))]),n("p",{staticClass:"help is-danger"},[t._v(t._s(t.validationMessage))])]):t._e()])])]),n("footer",{staticClass:"modal-card-foot"},[t.showCancel?n("button",{ref:"cancelButton",staticClass:"button",on:{click:function(e){return t.cancel("button")}}},[t._v(t._s(t.cancelText))]):t._e(),n("button",{ref:"confirmButton",staticClass:"button",class:t.type,on:{click:t.confirm}},[t._v(t._s(t.confirmText))])])])]):t._e()])},staticRenderFns:[]},void 0,{name:"BDialog",components:Fi({},wr.name,wr),directives:{trapFocus:Zr},extends:xo,props:{title:String,message:String,icon:String,iconPack:String,hasIcon:Boolean,type:{type:String,default:"is-primary"},size:String,confirmText:{type:String,default:function(){return dr.defaultDialogConfirmText?dr.defaultDialogConfirmText:"OK"}},cancelText:{type:String,default:function(){return dr.defaultDialogCancelText?dr.defaultDialogCancelText:"Cancel"}},hasInput:Boolean,inputAttrs:{type:Object,default:function(){return{}}},onConfirm:{type:Function,default:function(){}},closeOnConfirm:{type:Boolean,default:!0},container:{type:String,default:function(){return dr.defaultContainerElement}},focusOn:{type:String,default:"confirm"},trapFocus:{type:Boolean,default:function(){return dr.defaultTrapFocus}},ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean},data:function(){return{prompt:this.hasInput&&this.inputAttrs.value||"",isActive:!1,validationMessage:""}},computed:{dialogClass:function(){return[this.size,{"has-custom-container":null!==this.container}]},iconByType:function(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}},showCancel:function(){return this.cancelOptions.indexOf("button")>=0}},methods:{confirm:function(){var t=this;if(void 0!==this.$refs.input&&!this.$refs.input.checkValidity())return this.validationMessage=this.$refs.input.validationMessage,void this.$nextTick((function(){return t.$refs.input.select()}));this.$emit("confirm",this.prompt),this.onConfirm(this.prompt,this),this.closeOnConfirm&&this.close()},close:function(){var t=this;this.isActive=!1,setTimeout((function(){t.$destroy(),er(t.$el)}),150)}},beforeMount:function(){var t=this;"undefined"!=typeof window&&this.$nextTick((function(){(document.querySelector(t.container)||document.body).appendChild(t.$el)}))},mounted:function(){var t=this;this.isActive=!0,void 0===this.inputAttrs.required&&this.$set(this.inputAttrs,"required",!0),this.$nextTick((function(){t.hasInput?t.$refs.input.focus():"cancel"===t.focusOn&&t.showCancel?t.$refs.cancelButton.focus():t.$refs.confirmButton.focus()}))}},void 0,!1,void 0,void 0,void 0);function Lo(t){var e=t.message;delete t.message;var n=new(("undefined"!=typeof window&&window.Vue?window.Vue:ko||cr).extend(Co))({el:document.createElement("div"),propsData:t});return e&&(n.$slots.default=ur(e,n.$createElement),n.$forceUpdate()),dr.defaultProgrammaticPromise?new Promise((function(t){n.$on("confirm",(function(e){return t({result:e||!0,dialog:n})})),n.$on("cancel",(function(){return t({result:!1,dialog:n})}))})):n}var So={alert:function(t){"string"==typeof t&&(t={message:t});return Lo(Qi({canCancel:!1},t))},confirm:function(t){return Lo(Qi({},t))},prompt:function(t){return Lo(Qi({hasInput:!0,confirmText:"Done"},t))}},Mo={install:function(t){ko=t,gr(t,Co),vr(t,"dialog",So)}};mr(Mo);var To=Mo,Eo={install:function(t){gr(t,Jr),gr(t,Kr)}};mr(Eo);var Oo=Eo,Po={install:function(t){gr(t,to)}};mr(Po);var Do=Po,Ao={install:function(t){gr(t,wr)}};mr(Ao);var Io=Ao;var No=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("figure",{staticClass:"b-image-wrapper",class:t.figureClasses,style:t.figureStyles},[n("transition",{attrs:{name:"fade"}},[t.isDisplayed?n("img",{class:t.imgClasses,attrs:{srcset:t.computedSrcset,src:t.computedSrc,width:t.computedWidth,sizes:t.computedSizes},on:{load:t.onLoad}}):t._e()]),n("transition",{attrs:{name:"fade"}},[t.isPlaceholderDisplayed?t._t("placeholder",[n("img",{staticClass:"placeholder",class:t.imgClasses,attrs:{src:t.computedPlaceholder}})]):t._e()],2)],1)},staticRenderFns:[]},void 0,{name:"BImage",props:{src:String,webpFallback:{type:String,default:function(){return dr.defaultImageWebpFallback}},lazy:{type:Boolean,default:function(){return dr.defaultImageLazy}},responsive:{type:Boolean,default:function(){return dr.defaultImageResponsive}},ratio:{type:String,default:function(){return dr.defaultImageRatio}},placeholder:String,srcset:String,srcsetSizes:Array,srcsetFormatter:{type:Function,default:function(t,e,n){return"function"==typeof dr.defaultImageSrcsetFormatter?dr.defaultImageSrcsetFormatter(t,e):n.formatSrcset(t,e)}},rounded:{type:Boolean,default:!1}},data:function(){return{clientWidth:0,webpSupportVerified:!1,webpSupported:!1,observer:null,inViewPort:!1,bulmaKnownRatio:["square","1by1","5by4","4by3","3by2","5by3","16by9","b2y1","3by1","4by5","3by4","2by3","3by5","9by16","1by2","1by3"],loaded:!1}},computed:{ratioPattern:function(){return new RegExp(/([0-9]+)by([0-9]+)/)},hasRatio:function(){return this.ratio&&this.ratioPattern.test(this.ratio)},figureClasses:function(){var t={image:this.responsive};return this.hasRatio&&this.bulmaKnownRatio.indexOf(this.ratio)>=0&&(t["is-".concat(this.ratio)]=!0),t},figureStyles:function(){if(this.hasRatio&&this.bulmaKnownRatio.indexOf(this.ratio)<0){var t=this.ratioPattern.exec(this.ratio);return{paddingTop:"".concat(t[2]/t[1]*100,"%")}}},imgClasses:function(){return{"is-rounded":this.rounded,"has-ratio":this.hasRatio}},srcExt:function(){return this.getExt(this.src)},isWepb:function(){return"webp"===this.srcExt},computedSrc:function(){return!this.webpSupported&&this.isWepb&&this.webpFallback?this.webpFallback.startsWith(".")?this.src.replace(/\.webp/gi,"".concat(this.webpFallback)):this.webpFallback:this.src},computedWidth:function(){if(this.responsive&&this.clientWidth>0)return this.clientWidth},isDisplayed:function(){return(this.webpSupportVerified||!this.isWepb)&&(this.inViewPort||!this.lazy)},placeholderExt:function(){if(this.placeholder)return this.getExt(this.placeholder)},isPlaceholderWepb:function(){if(this.placeholder)return"webp"===this.placeholderExt},computedPlaceholder:function(){return!this.webpSupported&&this.isPlaceholderWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.placeholder.replace(/\.webp/gi,"".concat(this.webpFallback)):this.placeholder},isPlaceholderDisplayed:function(){return!this.loaded&&(this.$slots.placeholder||this.placeholder&&(this.webpSupportVerified||!this.isPlaceholderWepb))},computedSrcset:function(){var t=this;return this.srcset?!this.webpSupported&&this.isWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.srcset.replace(/\.webp/gi,"".concat(this.webpFallback)):this.srcset:this.srcsetSizes&&Array.isArray(this.srcsetSizes)&&this.srcsetSizes.length>0?this.srcsetSizes.map((function(e){return"".concat(t.srcsetFormatter(t.computedSrc,e,t)," ").concat(e,"w")})).join(","):void 0},computedSizes:function(){if(this.computedSrcset&&this.computedWidth)return"".concat(this.computedWidth,"px")}},methods:{getExt:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t){var n=e?t.split("?")[0]:t;return n.split(".").pop()}return""},setWidth:function(){this.clientWidth=this.$el.clientWidth},formatSrcset:function(t,e){var n=this.getExt(t,!1),i=t.split(".").slice(0,-1).join(".");return"".concat(i,"-").concat(e,".").concat(n)},onLoad:function(t){this.loaded=!0;var e=t.target;this.$emit("load",t,e.currentSrc||e.src||this.computedSrc)}},created:function(){var t=this;this.isWepb&&new Promise((function(t){var e=new Image;e.onerror=function(){return t(!1)},e.onload=function(){return t(1===e.width)},e.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="})).catch((function(){return!1})).then((function(e){t.webpSupportVerified=!0,t.webpSupported=e})),this.lazy&&"undefined"!=typeof window&&"IntersectionObserver"in window&&(this.observer=new IntersectionObserver((function(e){var n=e[0],i=n.target;n.isIntersecting&&!t.inViewPort&&(t.inViewPort=!0,t.observer.unobserve(i))})))},mounted:function(){this.lazy&&this.observer&&this.observer.observe(this.$el),this.setWidth(),"undefined"!=typeof window&&window.addEventListener("resize",this.setWidth)},beforeDestroy:function(){this.observer&&this.observer.disconnect(),"undefined"!=typeof window&&window.removeEventListener("resize",this.setWidth)}},void 0,!1,void 0,void 0,void 0),Ro={install:function(t){gr(t,No)}};mr(Ro);var jo=Ro,zo={install:function(t){gr(t,xr)}};mr(zo);var Yo=zo,Fo="undefined"==typeof window,Bo=Fo?Object:window.HTMLElement,$o=Fo?Object:window.File;var Ho,Uo=pr({render:function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:this.animation}},[this.isActive?e("div",{staticClass:"loading-overlay is-active",class:{"is-full-page":this.displayInFullPage}},[e("div",{staticClass:"loading-background",on:{click:this.cancel}}),this._t("default",[e("div",{staticClass:"loading-icon"})])],2):this._e()])},staticRenderFns:[]},void 0,{name:"BLoading",model:{prop:"active",event:"update:active"},props:{active:Boolean,programmatic:Boolean,container:[Object,Function,Bo],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:function(){}}},data:function(){return{isActive:this.active||!1,displayInFullPage:this.isFullPage}},watch:{active:function(t){this.isActive=t},isFullPage:function(t){this.displayInFullPage=t}},methods:{cancel:function(){this.canCancel&&this.isActive&&this.close()},close:function(){var t=this;this.onCancel.apply(null,arguments),this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),er(t.$el)}),150))},keyPress:function(t){var e=t.key;"Escape"!==e&&"Esc"!==e||this.cancel()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted:function(){this.programmatic&&(this.isActive=!0)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},void 0,!1,void 0,void 0,void 0),Vo={open:function(t){var e=Qi({programmatic:!0},t);return new(("undefined"!=typeof window&&window.Vue?window.Vue:Ho||cr).extend(Uo))({el:document.createElement("div"),propsData:e})}},Wo={install:function(t){Ho=t,gr(t,Uo),vr(t,"loading",Vo)}};mr(Wo);var Go=Wo;var qo=pr({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"menu"},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"BMenu",props:{accordion:{type:Boolean,default:!0},activable:{type:Boolean,default:!0}},data:function(){return{_isMenu:!0}}},void 0,!1,void 0,void 0,void 0);var Zo=pr({},void 0,{name:"BMenuList",functional:!0,props:{label:String,icon:String,iconPack:String,ariaRole:{type:String,default:""},size:{type:String,default:"is-small"}},render:function(t,e){var n=null,i=e.slots();(e.props.label||i.label)&&(n=t("p",{attrs:{class:"menu-label"}},e.props.label?e.props.icon?[t("b-icon",{props:{icon:e.props.icon,pack:e.props.iconPack,size:e.props.size}}),t("span",{},e.props.label)]:e.props.label:i.label));var r=t("ul",{attrs:{class:"menu-list",role:"menu"===e.props.ariaRole?e.props.ariaRole:null}},i.default);return n?[n,r]:r}},void 0,void 0,void 0,void 0,void 0);var Xo=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{attrs:{role:t.ariaRoleMenu}},[n(t.tag,t._g(t._b({tag:"component",class:{"is-active":t.newActive,"is-expanded":t.newExpanded,"is-disabled":t.disabled},on:{click:function(e){return t.onClick(e)}}},"component",t.$attrs,!1),t.$listeners),[t.icon?n("b-icon",{attrs:{icon:t.icon,pack:t.iconPack,size:t.size}}):t._e(),t.label?n("span",[t._v(t._s(t.label))]):t._t("label",null,{expanded:t.newExpanded,active:t.newActive})],2),t.$slots.default?[n("transition",{attrs:{name:t.animation}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.newExpanded,expression:"newExpanded"}]},[t._t("default")],2)])]:t._e()],2)},staticRenderFns:[]},void 0,{name:"BMenuItem",components:Fi({},wr.name,wr),inheritAttrs:!1,model:{prop:"active",event:"update:active"},props:{label:String,active:Boolean,expanded:Boolean,disabled:Boolean,iconPack:String,icon:String,animation:{type:String,default:"slide"},tag:{type:String,default:"a",validator:function(t){return dr.defaultLinkTags.indexOf(t)>=0}},ariaRole:{type:String,default:""},size:{type:String,default:"is-small"}},data:function(){return{newActive:this.active,newExpanded:this.expanded}},computed:{ariaRoleMenu:function(){return"menuitem"===this.ariaRole?this.ariaRole:null}},watch:{active:function(t){this.newActive=t},expanded:function(t){this.newExpanded=t}},methods:{onClick:function(t){if(!this.disabled){var e=this.getMenu();this.reset(this.$parent,e),this.newExpanded=!this.newExpanded,this.$emit("update:expanded",this.newActive),e&&e.activable&&(this.newActive=!0,this.$emit("update:active",this.newActive))}},reset:function(t,e){var n=this;t.$children.filter((function(t){return t.name===n.name})).forEach((function(i){i!==n&&(n.reset(i,e),(!t.$data._isMenu||t.$data._isMenu&&t.accordion)&&(i.newExpanded=!1,i.$emit("update:expanded",i.newActive)),e&&e.activable&&(i.newActive=!1,i.$emit("update:active",i.newActive)))}))},getMenu:function(){for(var t=this.$parent;t&&!t.$data._isMenu;)t=t.$parent;return t}}},void 0,!1,void 0,void 0,void 0),Jo={install:function(t){gr(t,qo),gr(t,Zo),gr(t,Xo)}};mr(Jo);var Ko=Jo,Qo={components:Fi({},wr.name,wr),model:{prop:"active",event:"update:active"},props:{active:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3}},data:function(){return{isActive:this.active}},watch:{active:function(t){this.isActive=t},isActive:function(t){t?this.setAutoClose():this.timer&&clearTimeout(this.timer)}},computed:{computedIcon:function(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},methods:{close:function(){this.isActive=!1,this.$emit("close"),this.$emit("update:active",!1)},setAutoClose:function(){var t=this;this.autoClose&&(this.timer=setTimeout((function(){t.isActive&&t.close()}),this.duration))}},mounted:function(){this.setAutoClose()}};var ta=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[t.isActive?n("article",{staticClass:"message",class:[t.type,t.size]},[t.title?n("header",{staticClass:"message-header"},[n("p",[t._v(t._s(t.title))]),t.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":t.ariaCloseLabel},on:{click:t.close}}):t._e()]):t._e(),t.$slots.default?n("section",{staticClass:"message-body"},[n("div",{staticClass:"media"},[t.computedIcon&&t.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{class:t.type,attrs:{icon:t.computedIcon,pack:t.iconPack,both:"",size:t.newIconSize}})],1):t._e(),n("div",{staticClass:"media-content"},[t._t("default")],2)])]):t._e()]):t._e()])},staticRenderFns:[]},void 0,{name:"BMessage",mixins:[Qo],props:{ariaCloseLabel:String},data:function(){return{newIconSize:this.iconSize||this.size||"is-large"}}},void 0,!1,void 0,void 0,void 0),ea={install:function(t){gr(t,ta)}};mr(ea);var na,ia=ea,ra={open:function(t){var e;"string"==typeof t&&(t={content:t});var n;t.parent&&(e=t.parent,delete t.parent),t.content&&(n=t.content,delete t.content);var i=Qi({programmatic:!0},t),r=new(("undefined"!=typeof window&&window.Vue?window.Vue:na||cr).extend(xo))({parent:e,el:document.createElement("div"),propsData:i});return n&&(r.$slots.default=ur(n,r.$createElement),r.$forceUpdate()),r}},oa={install:function(t){na=t,gr(t,xo),vr(t,"modal",ra)}};mr(oa);var aa=oa,sa={props:{type:{type:String,default:"is-dark"},message:[String,Array],duration:Number,queue:{type:Boolean,default:void 0},position:{type:String,default:"is-top",validator:function(t){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(t)>-1}},container:String},data:function(){return{isActive:!1,parentTop:null,parentBottom:null,newContainer:this.container||dr.defaultContainerElement}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{shouldQueue:function(){return!!(void 0!==this.queue?this.queue:dr.defaultNoticeQueue)&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},close:function(){var t=this;clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout((function(){t.$destroy(),er(t.$el)}),150)},showNotice:function(){var t=this;this.shouldQueue()?setTimeout((function(){return t.showNotice()}),250):(this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout((function(){return t.close()}),this.newDuration)))},setupContainer:function(){if(this.parentTop=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-top"),this.parentBottom=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-bottom"),!this.parentTop||!this.parentBottom){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var t=document.querySelector(this.newContainer)||document.body;t.appendChild(this.parentTop),t.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}};var la=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[n("article",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"notification",class:[t.type,t.position]},[t.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":t.ariaCloseLabel},on:{click:t.close}}):t._e(),t.$slots.default||t.message?n("div",{staticClass:"media"},[t.computedIcon&&t.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:t.computedIcon,pack:t.iconPack,both:"",size:"is-large","aria-hidden":""}})],1):t._e(),n("div",{staticClass:"media-content"},[n("p",{staticClass:"text"},[t.$slots.default?[t._t("default")]:[t._v(" "+t._s(t.message)+" ")]],2)])]):t._e()])])},staticRenderFns:[]},void 0,{name:"BNotification",mixins:[Qo],props:{position:String,ariaCloseLabel:String,animation:{type:String,default:"fade"}}},void 0,!1,void 0,void 0,void 0);var ua,ca=pr({render:function(){var t=this.$createElement;return(this._self._c||t)("b-notification",this._b({on:{close:this.close}},"b-notification",this.$options.propsData,!1),[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"BNotificationNotice",mixins:[sa],props:{indefinite:{type:Boolean,default:!1}},data:function(){return{newDuration:this.duration||dr.defaultNotificationDuration}}},void 0,!1,void 0,void 0,void 0),da={open:function(t){var e;"string"==typeof t&&(t={message:t});var n={position:dr.defaultNotificationPosition||"is-top-right"};t.parent&&(e=t.parent,delete t.parent);var i=t.message;delete t.message,t.active=!1;var r=Qi(n,t),o=new(("undefined"!=typeof window&&window.Vue?window.Vue:ua||cr).extend(ca))({parent:e,el:document.createElement("div"),propsData:r});return i&&(o.$slots.default=ur(i,o.$createElement),o.$forceUpdate()),o.$children[0].isActive=!0,o}},ha={install:function(t){ua=t,gr(t,la),vr(t,"notification",da)}};mr(ha);var fa=ha;var pa=pr({render:function(){var t=this.$createElement,e=this._self._c||t;return e("a",this._g({staticClass:"navbar-burger burger",class:{"is-active":this.isOpened},attrs:{role:"button","aria-label":"menu","aria-expanded":this.isOpened}},this.$listeners),[e("span",{attrs:{"aria-hidden":"true"}}),e("span",{attrs:{"aria-hidden":"true"}}),e("span",{attrs:{"aria-hidden":"true"}})])},staticRenderFns:[]},void 0,{name:"NavbarBurger",props:{isOpened:{type:Boolean,default:!1}}},void 0,!1,void 0,void 0,void 0),ma="undefined"!=typeof window&&("ontouchstart"in window||navigator.msMaxTouchPoints>0)?["touchstart","click"]:["click"],ga=[];function va(t){var e="function"==typeof t;if(!e&&"object"!==Yi(t))throw new Error("v-click-outside: Binding value should be a function or an object, typeof ".concat(t," given"));return{handler:e?t:t.handler,middleware:t.middleware||function(t){return t},events:t.events||ma}}function ya(t){var e=t.el,n=t.event,i=t.handler,r=t.middleware;n.target!==e&&!e.contains(n.target)&&r(n,e)&&i(n,e)}var _a={bind:function(t,e){var n=va(e.value),i=n.handler,r=n.middleware,o=n.events,a={el:t,eventHandlers:o.map((function(e){return{event:e,handler:function(e){return ya({event:e,el:t,handler:i,middleware:r})}}}))};a.eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.addEventListener(e,n)})),ga.push(a)},update:function(t,e){var n=va(e.value),i=n.handler,r=n.middleware,o=n.events,a=ga.filter((function(e){return e.el===t}))[0];a.eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.removeEventListener(e,n)})),a.eventHandlers=o.map((function(e){return{event:e,handler:function(e){return ya({event:e,el:t,handler:i,middleware:r})}}})),a.eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.addEventListener(e,n)}))},unbind:function(t){ga.filter((function(e){return e.el===t}))[0].eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.removeEventListener(e,n)}))},instances:ga};var ba=pr({},void 0,{name:"BNavbar",components:{NavbarBurger:pa},directives:{clickOutside:_a},model:{prop:"active",event:"update:active"},props:{type:[String,Object],transparent:{type:Boolean,default:!1},fixedTop:{type:Boolean,default:!1},fixedBottom:{type:Boolean,default:!1},active:{type:Boolean,default:!1},wrapperClass:{type:String},closeOnClick:{type:Boolean,default:!0},mobileBurger:{type:Boolean,default:!0},spaced:Boolean,shadow:Boolean},data:function(){return{internalIsActive:this.active,_isNavBar:!0}},computed:{isOpened:function(){return this.internalIsActive},computedClasses:function(){var t;return[this.type,(t={},Fi(t,"is-fixed-top",this.fixedTop),Fi(t,"is-fixed-bottom",this.fixedBottom),Fi(t,"is-spaced",this.spaced),Fi(t,"has-shadow",this.shadow),Fi(t,"is-transparent",this.transparent),t)]}},watch:{active:{handler:function(t){this.internalIsActive=t},immediate:!0},fixedTop:{handler:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass("has-navbar-fixed-top"),this.spaced&&this.setBodyClass("has-spaced-navbar-fixed-top")):(this.removeBodyClass("has-navbar-fixed-top"),this.removeBodyClass("has-spaced-navbar-fixed-top"))},immediate:!0},fixedBottom:{handler:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass("has-navbar-fixed-bottom"),this.spaced&&this.setBodyClass("has-spaced-navbar-fixed-bottom")):(this.removeBodyClass("has-navbar-fixed-bottom"),this.removeBodyClass("has-spaced-navbar-fixed-bottom"))},immediate:!0}},methods:{toggleActive:function(){this.internalIsActive=!this.internalIsActive,this.emitUpdateParentEvent()},closeMenu:function(){this.closeOnClick&&(this.internalIsActive=!1,this.emitUpdateParentEvent())},emitUpdateParentEvent:function(){this.$emit("update:active",this.internalIsActive)},setBodyClass:function(t){"undefined"!=typeof window&&document.body.classList.add(t)},removeBodyClass:function(t){"undefined"!=typeof window&&document.body.classList.remove(t)},checkIfFixedPropertiesAreColliding:function(){if(this.fixedTop&&this.fixedBottom)throw new Error("You should choose if the BNavbar is fixed bottom or fixed top, but not both")},genNavbar:function(t){var e=[this.genNavbarBrandNode(t),this.genNavbarSlotsNode(t)];if(!this.wrapperClass)return this.genNavbarSlots(t,e);var n=t("div",{class:this.wrapperClass},e);return this.genNavbarSlots(t,[n])},genNavbarSlots:function(t,e){return t("nav",{staticClass:"navbar",class:this.computedClasses,attrs:{role:"navigation","aria-label":"main navigation"},directives:[{name:"click-outside",value:this.closeMenu}]},e)},genNavbarBrandNode:function(t){return t("div",{class:"navbar-brand"},[this.$slots.brand,this.genBurgerNode(t)])},genBurgerNode:function(t){if(this.mobileBurger){var e=t("navbar-burger",{props:{isOpened:this.isOpened},on:{click:this.toggleActive}});return!!this.$scopedSlots.burger?this.$scopedSlots.burger({isOpened:this.isOpened,toggleActive:this.toggleActive}):e}},genNavbarSlotsNode:function(t){return t("div",{staticClass:"navbar-menu",class:{"is-active":this.isOpened}},[this.genMenuPosition(t,"start"),this.genMenuPosition(t,"end")])},genMenuPosition:function(t,e){return t("div",{staticClass:"navbar-".concat(e)},this.$slots[e])}},beforeDestroy:function(){if(this.fixedTop){var t=this.spaced?"has-spaced-navbar-fixed-top":"has-navbar-fixed-top";this.removeBodyClass(t)}else if(this.fixedBottom){var e=this.spaced?"has-spaced-navbar-fixed-bottom":"has-navbar-fixed-bottom";this.removeBodyClass(e)}},render:function(t,e){return this.genNavbar(t)}},void 0,void 0,void 0,void 0,void 0),wa=["div","span","input"];var xa=pr({render:function(){var t=this.$createElement;return(this._self._c||t)(this.tag,this._g(this._b({tag:"component",staticClass:"navbar-item",class:{"is-active":this.active}},"component",this.$attrs,!1),this.$listeners),[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"BNavbarItem",inheritAttrs:!1,props:{tag:{type:String,default:"a"},active:Boolean},methods:{keyPress:function(t){var e=t.key;"Escape"!==e&&"Esc"!==e||this.closeMenuRecursive(this,["NavBar"])},handleClickEvent:function(t){if(!wa.some((function(e){return e===t.target.localName}))){var e=this.closeMenuRecursive(this,["NavbarDropdown","NavBar"]);e&&e.$data._isNavbarDropdown&&this.closeMenuRecursive(e,["NavBar"])}},closeMenuRecursive:function(t,e){return t.$parent?e.reduce((function(e,n){return t.$parent.$data["_is".concat(n)]?(t.$parent.closeMenu(),t.$parent):e}),null)||this.closeMenuRecursive(t.$parent,e):null}},mounted:function(){"undefined"!=typeof window&&(this.$el.addEventListener("click",this.handleClickEvent),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!=typeof window&&(this.$el.removeEventListener("click",this.handleClickEvent),document.removeEventListener("keyup",this.keyPress))}},void 0,!1,void 0,void 0,void 0);var ka=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeMenu,expression:"closeMenu"}],staticClass:"navbar-item has-dropdown",class:{"is-hoverable":t.isHoverable,"is-active":t.newActive},on:{mouseenter:t.checkHoverable}},[n("a",{staticClass:"navbar-link",class:{"is-arrowless":t.arrowless,"is-active":t.newActive&&t.collapsible},attrs:{role:"menuitem","aria-haspopup":"true",href:"#"},on:{click:function(e){e.preventDefault(),t.newActive=!t.newActive}}},[t.label?[t._v(t._s(t.label))]:t._t("label")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapsible||t.collapsible&&t.newActive,expression:"!collapsible || (collapsible && newActive)"}],staticClass:"navbar-dropdown",class:{"is-right":t.right,"is-boxed":t.boxed}},[t._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BNavbarDropdown",directives:{clickOutside:_a},props:{label:String,hoverable:Boolean,active:Boolean,right:Boolean,arrowless:Boolean,boxed:Boolean,closeOnClick:{type:Boolean,default:!0},collapsible:Boolean},data:function(){return{newActive:this.active,isHoverable:this.hoverable,_isNavbarDropdown:!0}},watch:{active:function(t){this.newActive=t}},methods:{showMenu:function(){this.newActive=!0},closeMenu:function(){this.newActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1)},checkHoverable:function(){this.hoverable&&(this.isHoverable=!0)}}},void 0,!1,void 0,void 0,void 0),Ca={install:function(t){gr(t,ba),gr(t,xa),gr(t,ka)}};mr(Ca);var La,Sa=Ca;var Ma=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-numberinput field",class:t.fieldClasses},[t.controls?n("p",{staticClass:"control minus",on:{mouseup:function(e){return t.onStopLongPress(!1)},mouseleave:function(e){return t.onStopLongPress(!1)},touchend:function(e){return t.onStopLongPress(!1)},touchcancel:function(e){return t.onStopLongPress(!1)}}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.disabled||t.disabledMin},on:{mousedown:function(e){return t.onStartLongPress(e,!1)},touchstart:function(e){return e.preventDefault(),t.onStartLongPress(e,!1)},click:function(e){return t.onControlClick(e,!1)}}},[n("b-icon",{attrs:{icon:"minus",both:"",pack:t.iconPack,size:t.iconSize}})],1)]):t._e(),n("b-input",t._b({ref:"input",attrs:{type:"number",step:t.newStep,max:t.max,min:t.min,size:t.size,disabled:t.disabled,readonly:!t.editable,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-pack":t.iconPack,autocomplete:t.autocomplete,expanded:t.expanded,placeholder:t.placeholder,"use-html5-validation":t.useHtml5Validation},on:{focus:function(e){return t.$emit("focus",e)},blur:function(e){return t.$emit("blur",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=t._n(e)},expression:"computedValue"}},"b-input",t.$attrs,!1)),t.controls?n("p",{staticClass:"control plus",on:{mouseup:function(e){return t.onStopLongPress(!0)},mouseleave:function(e){return t.onStopLongPress(!0)},touchend:function(e){return t.onStopLongPress(!0)},touchcancel:function(e){return t.onStopLongPress(!0)}}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.disabled||t.disabledMax},on:{mousedown:function(e){return t.onStartLongPress(e,!0)},touchstart:function(e){return e.preventDefault(),t.onStartLongPress(e,!0)},click:function(e){return t.onControlClick(e,!0)}}},[n("b-icon",{attrs:{icon:"plus",both:"",pack:t.iconPack,size:t.iconSize}})],1)]):t._e()],1)},staticRenderFns:[]},void 0,{name:"BNumberinput",components:(La={},Fi(La,wr.name,wr),Fi(La,xr.name,xr),La),mixins:[yr],inheritAttrs:!1,props:{value:Number,min:{type:[Number,String]},max:[Number,String],step:[Number,String],exponential:[Boolean,Number],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsRounded:{type:Boolean,default:!1},controlsPosition:String,placeholder:[Number,String]},data:function(){return{newValue:this.value,newStep:this.step||1,timesPressed:1,_elementRef:"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){var e=t;""!==t&&null!=t||(e=this.minNumber||null),this.newValue=e,this.$emit("input",e),!this.isValid&&this.$refs.input.checkHtml5Validity()}},fieldClasses:function(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition},{"is-expanded":this.expanded}]},buttonClasses:function(){return[this.type,this.size,{"is-rounded":this.controlsRounded}]},minNumber:function(){return"string"==typeof this.min?parseFloat(this.min):this.min},maxNumber:function(){return"string"==typeof this.max?parseFloat(this.max):this.max},stepNumber:function(){return"string"==typeof this.newStep?parseFloat(this.newStep):this.newStep},disabledMin:function(){return this.computedValue-this.stepNumberthis.maxNumber},stepDecimals:function(){var t=this.stepNumber.toString(),e=t.indexOf(".");return e>=0?t.substring(e+1).length:0}},watch:{value:{immediate:!0,handler:function(t){this.newValue=t}},step:function(t){this.newStep=t}},methods:{decrement:function(){if(void 0===this.minNumber||this.computedValue-this.stepNumber>=this.minNumber){if(!this.computedValue){if(this.maxNumber)return void(this.computedValue=this.maxNumber);this.computedValue=0}var t=this.computedValue-this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},increment:function(){if(void 0===this.maxNumber||this.computedValue+this.stepNumber<=this.maxNumber){if(!this.computedValue){if(this.minNumber)return void(this.computedValue=this.minNumber);this.computedValue=0}var t=this.computedValue+this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},onControlClick:function(t,e){0===t.detail&&"click"===t.type&&(e?this.increment():this.decrement())},longPressTick:function(t){var e=this;t?this.increment():this.decrement(),this._$intervalRef=setTimeout((function(){e.longPressTick(t)}),this.exponential?250/(this.exponential*this.timesPressed++):250)},onStartLongPress:function(t,e){0!==t.button&&"touchstart"!==t.type||(clearTimeout(this._$intervalRef),this.longPressTick(e))},onStopLongPress:function(){this._$intervalRef&&(this.timesPressed=1,clearTimeout(this._$intervalRef),this._$intervalRef=null)}}},void 0,!1,void 0,void 0,void 0),Ta={install:function(t){gr(t,Ma)}};mr(Ta);var Ea=Ta;var Oa,Pa=pr({render:function(){var t,e=this,n=e.$createElement;return(e._self._c||n)(e.tag,e._b({tag:"component",staticClass:"pagination-link",class:(t={"is-current":e.page.isCurrent},t[e.page.class]=!0,t),attrs:{role:"button",href:e.href,disabled:e.isDisabled,"aria-label":e.page["aria-label"],"aria-current":e.page.isCurrent},on:{click:function(t){return t.preventDefault(),e.page.click(t)}}},"component",e.$attrs,!1),[e._t("default",[e._v(e._s(e.page.number))])],2)},staticRenderFns:[]},void 0,{name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:String,default:"a",validator:function(t){return dr.defaultLinkTags.indexOf(t)>=0}},disabled:{type:Boolean,default:!1}},computed:{href:function(){if("a"===this.tag)return"#"},isDisabled:function(){return this.disabled||this.page.disabled}}},void 0,!1,void 0,void 0,void 0);var Da=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"pagination",class:t.rootClasses},[t.$scopedSlots.previous?t._t("previous",[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],{page:t.getPage(t.current-1,{disabled:!t.hasPrev,class:"pagination-previous","aria-label":t.ariaPreviousLabel})}):n("BPaginationButton",{staticClass:"pagination-previous",attrs:{disabled:!t.hasPrev,page:t.getPage(t.current-1)}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t.$scopedSlots.next?t._t("next",[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],{page:t.getPage(t.current+1,{disabled:!t.hasNext,class:"pagination-next","aria-label":t.ariaNextLabel})}):n("BPaginationButton",{staticClass:"pagination-next",attrs:{disabled:!t.hasNext,page:t.getPage(t.current+1)}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t.simple?n("small",{staticClass:"info"},[1==t.perPage?[t._v(" "+t._s(t.firstItem)+" / "+t._s(t.total)+" ")]:[t._v(" "+t._s(t.firstItem)+"-"+t._s(Math.min(t.current*t.perPage,t.total))+" / "+t._s(t.total)+" ")]],2):n("ul",{staticClass:"pagination-list"},[t.hasFirst?n("li",[t.$scopedSlots.default?t._t("default",null,{page:t.getPage(1)}):n("BPaginationButton",{attrs:{page:t.getPage(1)}})],2):t._e(),t.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._l(t.pagesInRange,(function(e){return n("li",{key:e.number},[t.$scopedSlots.default?t._t("default",null,{page:e}):n("BPaginationButton",{attrs:{page:e}})],2)})),t.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t.hasLast?n("li",[t.$scopedSlots.default?t._t("default",null,{page:t.getPage(t.pageCount)}):n("BPaginationButton",{attrs:{page:t.getPage(t.pageCount)}})],2):t._e()],2)],2)},staticRenderFns:[]},void 0,{name:"BPagination",components:(Oa={},Fi(Oa,wr.name,wr),Fi(Oa,Pa.name,Pa),Oa),model:{prop:"current",event:"update:current"},props:{total:[Number,String],perPage:{type:[Number,String],default:20},current:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:function(){return dr.defaultIconPrev}},iconNext:{type:String,default:function(){return dr.defaultIconNext}},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String},computed:{rootClasses:function(){return[this.order,this.size,{"is-simple":this.simple,"is-rounded":this.rounded}]},beforeCurrent:function(){return parseInt(this.rangeBefore)},afterCurrent:function(){return parseInt(this.rangeAfter)},pageCount:function(){return Math.ceil(this.total/this.perPage)},firstItem:function(){var t=this.current*this.perPage-this.perPage+1;return t>=0?t:0},hasPrev:function(){return this.current>1},hasFirst:function(){return this.current>=2+this.beforeCurrent},hasFirstEllipsis:function(){return this.current>=this.beforeCurrent+4},hasLast:function(){return this.current<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis:function(){return this.currentt&&this.last()}},methods:{prev:function(t){this.changePage(this.current-1,t)},next:function(t){this.changePage(this.current+1,t)},first:function(t){this.changePage(1,t)},last:function(t){this.changePage(this.pageCount,t)},changePage:function(t,e){this.current===t||t<1||t>this.pageCount||(this.$emit("update:current",t),this.$emit("change",t),e&&e.target&&this.$nextTick((function(){return e.target.focus()})))},getPage:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{number:t,isCurrent:this.current===t,click:function(n){return e.changePage(t,n)},disabled:n.disabled||!1,class:n.class||"","aria-label":n["aria-label"]||this.getAriaPageLabel(t,this.current===t)}},getAriaPageLabel:function(t,e){return!this.ariaPageLabel||e&&this.ariaCurrentLabel?this.ariaPageLabel&&e&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+t+".":null:this.ariaPageLabel+" "+t+"."}}},void 0,!1,void 0,void 0,void 0),Aa={install:function(t){gr(t,Da),gr(t,Pa)}};mr(Aa);var Ia=Aa;var Na=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"progress-wrapper"},[n("progress",{ref:"progress",staticClass:"progress",class:t.newType,attrs:{max:t.max},domProps:{value:t.value}},[t._v(t._s(t.newValue))]),t.showValue?n("p",{staticClass:"progress-value"},[t._t("default",[t._v(t._s(t.newValue))])],2):t._e()])},staticRenderFns:[]},void 0,{name:"BProgress",props:{type:{type:[String,Object],default:"is-darkgrey"},size:String,value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:function(){return dr.defaultLocale}}},computed:{isIndeterminate:function(){return void 0===this.value||null===this.value},newType:function(){return[this.size,this.type]},newValue:function(){if(void 0!==this.value&&null!==this.value&&!isNaN(this.value)){var t=this.keepTrailingZeroes?this.precision:0,e=this.precision;return"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:e}).format(this.value/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:t,maximumFractionDigits:e}).format(this.value)}}},watch:{isIndeterminate:function(t){var e=this;this.$nextTick((function(){e.$refs.progress&&(t?e.$refs.progress.removeAttribute("value"):e.$refs.progress.setAttribute("value",e.value))}))}}},void 0,!1,void 0,void 0,void 0),Ra={install:function(t){gr(t,Na)}};mr(Ra);var ja=Ra;var za=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-radio radio",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(t){t.stopPropagation()},change:function(e){t.computedValue=t.nativeValue}}}),n("span",{staticClass:"check",class:t.type}),n("span",{staticClass:"control-label"},[t._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BRadio",mixins:[Rr]},void 0,!1,void 0,void 0,void 0);var Ya=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[n("label",{ref:"label",staticClass:"b-radio radio button",class:[t.newValue===t.nativeValue?t.type:null,t.size,{"is-disabled":t.disabled,"is-focused":t.isFocused}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())}}},[t._t("default"),n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(t){t.stopPropagation()},focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1},change:function(e){t.computedValue=t.nativeValue}}})],2)])},staticRenderFns:[]},void 0,{name:"BRadioButton",mixins:[Rr],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}}},void 0,!1,void 0,void 0,void 0),Fa={install:function(t){gr(t,za),gr(t,Ya)}};mr(Fa);var Ba=Fa;var $a=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rate",class:{"is-disabled":t.disabled,"is-spaced":t.spaced,"is-rtl":t.rtl}},[t._l(t.max,(function(e,i){return n("div",{key:i,staticClass:"rate-item",class:t.rateClass(e),on:{mousemove:function(n){return t.previewRate(e,n)},mouseleave:t.resetNewValue,click:function(n){return n.preventDefault(),t.confirmValue(e)}}},[n("b-icon",{attrs:{pack:t.iconPack,icon:t.icon,size:t.size}}),t.checkHalf(e)?n("b-icon",{staticClass:"is-half",style:t.halfStyle,attrs:{pack:t.iconPack,icon:t.icon,size:t.size}}):t._e()],1)})),t.showText||t.showScore||t.customText?n("div",{staticClass:"rate-text",class:t.size},[n("span",[t._v(t._s(t.showMe))]),t.customText&&!t.showText?n("span",[t._v(t._s(t.customText))]):t._e()]):t._e()],2)},staticRenderFns:[]},void 0,{name:"BRate",components:Fi({},wr.name,wr),props:{value:{type:Number,default:0},max:{type:Number,default:5},icon:{type:String,default:"star"},iconPack:String,size:String,spaced:Boolean,rtl:Boolean,disabled:Boolean,showScore:Boolean,showText:Boolean,customText:String,texts:Array,locale:{type:[String,Array],default:function(){return dr.defaultLocale}}},data:function(){return{newValue:this.value,hoverValue:0}},computed:{halfStyle:function(){return"width:".concat(this.valueDecimal,"%")},showMe:function(){var t="";return this.showScore?t=0===(t=this.disabled?this.value:this.newValue)?"":new Intl.NumberFormat(this.locale).format(this.value):this.showText&&(t=this.texts[Math.ceil(this.newValue)-1]),t},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)}},watch:{value:function(t){this.newValue=t}},methods:{resetNewValue:function(){this.disabled||(this.hoverValue=0)},previewRate:function(t,e){this.disabled||(this.hoverValue=t,e.stopPropagation())},confirmValue:function(t){this.disabled||(this.newValue=t,this.$emit("change",this.newValue),this.$emit("input",this.newValue))},checkHalf:function(t){return this.disabled&&this.valueDecimal>0&&t-1this.value},rateClass:function(t){var e="";return t<=(0!==this.hoverValue?this.hoverValue:this.newValue)?e="set-on":this.disabled&&Math.ceil(this.value)===t&&(e="set-half"),e}}},void 0,!1,void 0,void 0,void 0),Ha={install:function(t){gr(t,$a)}};mr(Ha);var Ua=Ha,Va={install:function(t){gr(t,ao)}};mr(Va);var Wa=Va;var Ga=pr({},void 0,{name:"BSkeleton",functional:!0,props:{active:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:[Number,String],height:[Number,String],circle:Boolean,rounded:{type:Boolean,default:!0},count:{type:Number,default:1},position:{type:String,default:"",validator:function(t){return["","is-centered","is-right"].indexOf(t)>-1}},size:String},render:function(t,e){if(e.props.active){for(var n=[],i=e.props.width,r=e.props.height,o=0;o=0}},fullheight:Boolean,fullwidth:Boolean,right:Boolean,mobile:{type:String},reduce:Boolean,expandOnHover:Boolean,expandOnHoverFixed:Boolean,canCancel:{type:[Array,Boolean],default:function(){return["escape","outside"]}},onCancel:{type:Function,default:function(){}}},data:function(){return{isOpen:this.open,transitionName:null,animating:!0}},computed:{rootClasses:function(){return[this.type,{"is-fixed":this.isFixed,"is-static":this.isStatic,"is-absolute":this.isAbsolute,"is-fullheight":this.fullheight,"is-fullwidth":this.fullwidth,"is-right":this.right,"is-mini":this.reduce,"is-mini-expand":this.expandOnHover,"is-mini-expand-fixed":this.expandOnHover&&this.expandOnHoverFixed,"is-mini-mobile":"reduce"===this.mobile,"is-hidden-mobile":"hide"===this.mobile,"is-fullwidth-mobile":"fullwidth"===this.mobile}]},cancelOptions:function(){return"boolean"==typeof this.canCancel?this.canCancel?["escape","outside"]:[]:this.canCancel},isStatic:function(){return"static"===this.position},isFixed:function(){return"fixed"===this.position},isAbsolute:function(){return"absolute"===this.position},whiteList:function(){var t=[];if(t.push(this.$refs.sidebarContent),void 0!==this.$refs.sidebarContent){var e=this.$refs.sidebarContent.querySelectorAll("*"),n=!0,i=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.push(s)}}catch(t){i=!0,r=t}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}}return t}},watch:{open:{handler:function(t){this.isOpen=t;var e=this.right?!t:t;this.transitionName=e?"slide-next":"slide-prev"},immediate:!0}},methods:{keyPress:function(t){var e=t.key;this.isFixed&&(!this.isOpen||"Escape"!==e&&"Esc"!==e||this.cancel("escape"))},cancel:function(t){this.cancelOptions.indexOf(t)<0||this.isStatic||(this.onCancel.apply(null,arguments),this.close())},close:function(){this.isOpen=!1,this.$emit("close"),this.$emit("update:open",!1)},clickedOutside:function(t){if(this.isFixed&&this.isOpen&&!this.animating){var e=lr(this)?t.composedPath()[0]:t.target;this.whiteList.indexOf(e)<0&&this.cancel("outside")}},beforeEnter:function(){this.animating=!0},afterEnter:function(){this.animating=!1}},created:function(){"undefined"!=typeof window&&(document.addEventListener("keyup",this.keyPress),document.addEventListener("click",this.clickedOutside))},mounted:function(){"undefined"!=typeof window&&this.isFixed&&document.body.appendChild(this.$el)},beforeDestroy:function(){"undefined"!=typeof window&&(document.removeEventListener("keyup",this.keyPress),document.removeEventListener("click",this.clickedOutside)),this.isFixed&&er(this.$el)}},void 0,!1,void 0,void 0,void 0),Ja={install:function(t){gr(t,Xa)}};mr(Ja);var Ka=Ja;var Qa=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{ref:"tooltip",class:t.rootClasses},[n("transition",{attrs:{name:t.newAnimation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.active&&(t.isActive||t.always),expression:"active && (isActive || always)"}],ref:"content",class:["tooltip-content",t.contentClass],style:t.style},[t.label?[t._v(t._s(t.label))]:t.$slots.content?[t._t("content")]:t._e()],2)]),n("div",{ref:"trigger",staticClass:"tooltip-trigger",on:{click:function(e){return e.preventDefault(),t.onClick(e)},mouseenter:t.onHover,"!focus":function(e){return t.onFocus(e)},mouseleave:t.close}},[t._t("default")],2)],1)},staticRenderFns:[]},void 0,{name:"BTooltip",props:{active:{type:Boolean,default:!0},type:{type:String,default:function(){return dr.defaultTooltipType}},label:String,delay:Number,position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom","is-left","is-right"].indexOf(t)>-1}},triggers:{type:Array,default:function(){return["hover"]}},always:Boolean,square:Boolean,dashed:Boolean,multilined:Boolean,size:{type:String,default:"is-medium"},appendToBody:Boolean,animated:{type:Boolean,default:!0},animation:{type:String,default:"fade"},contentClass:String,autoClose:{type:[Array,Boolean],default:!0}},data:function(){return{isActive:!1,style:{},timer:null,_bodyEl:void 0}},computed:{rootClasses:function(){return["b-tooltip",this.type,this.position,this.size,{"is-square":this.square,"is-always":this.always,"is-multiline":this.multilined,"is-dashed":this.dashed}]},newAnimation:function(){return this.animated?this.animation:void 0}},watch:{isActive:function(t){this.appendToBody&&this.updateAppendToBody()}},methods:{updateAppendToBody:function(){var t=this.$refs.tooltip,e=this.$refs.trigger;if(t&&e){var n=this.$data._bodyEl.children[0];n.classList.forEach((function(t){return n.classList.remove(t)})),this.rootClasses.forEach((function(t){if("object"===Yi(t))for(var e in t)t[e]&&n.classList.add(e);else n.classList.add(t)})),n.style.width="".concat(e.clientWidth,"px"),n.style.height="".concat(e.clientHeight,"px");var i=e.getBoundingClientRect(),r=i.top+window.scrollY,o=i.left+window.scrollX,a=this.$data._bodyEl;a.style.position="absolute",a.style.top="".concat(r,"px"),a.style.left="".concat(o,"px"),a.style.zIndex=this.isActive?"99":"-1"}},onClick:function(){var t=this;this.triggers.indexOf("click")<0||this.$nextTick((function(){setTimeout((function(){return t.open()}))}))},onHover:function(){this.triggers.indexOf("hover")<0||this.open()},onFocus:function(){this.triggers.indexOf("focus")<0||this.open()},open:function(){var t=this;this.delay?this.timer=setTimeout((function(){t.isActive=!0,t.timer=null}),this.delay):this.isActive=!0},close:function(){"boolean"==typeof this.autoClose&&(this.isActive=!this.autoClose,this.autoClose&&this.timer&&clearTimeout(this.timer))},clickedOutside:function(t){this.isActive&&Array.isArray(this.autoClose)&&(this.autoClose.indexOf("outside")>=0?this.isInWhiteList(t.target)||(this.isActive=!1):this.autoClose.indexOf("inside")>=0&&this.isInWhiteList(t.target)&&(this.isActive=!1))},keyPress:function(t){var e=t.key;!this.isActive||"Escape"!==e&&"Esc"!==e||Array.isArray(this.autoClose)&&this.autoClose.indexOf("escape")>=0&&(this.isActive=!1)},isInWhiteList:function(t){if(t===this.$refs.content)return!0;if(void 0!==this.$refs.content){var e=this.$refs.content.querySelectorAll("*"),n=!0,i=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){if(t===o.value)return!0}}catch(t){i=!0,r=t}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}}return!1}},mounted:function(){this.appendToBody&&"undefined"!=typeof window&&(this.$data._bodyEl=nr(this.$refs.content),this.updateAppendToBody())},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&er(this.$data._bodyEl)}},void 0,!1,void 0,void 0,void 0);var ts=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider-thumb-wrapper",class:{"is-dragging":t.dragging},style:t.wrapperStyle},[n("b-tooltip",{attrs:{label:t.tooltipLabel,type:t.type,always:t.dragging||t.isFocused,active:!t.disabled&&t.tooltip}},[n("div",t._b({staticClass:"b-slider-thumb",attrs:{tabindex:!t.disabled&&0},on:{mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.onFocus,blur:t.onBlur,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:(e.preventDefault(),t.onRightKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.onRightKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"home",void 0,e.key,void 0)?null:(e.preventDefault(),t.onHomeKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"end",void 0,e.key,void 0)?null:(e.preventDefault(),t.onEndKeyDown(e))}]}},"div",t.$attrs,!1))])],1)},staticRenderFns:[]},void 0,{name:"BSliderThumb",components:Fi({},Qa.name,Qa),inheritAttrs:!1,props:{value:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},customFormatter:Function},data:function(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.disabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},precision:function(){return this.$parent.precision},currentPosition:function(){return"".concat((this.value-this.min)/(this.max-this.min)*100,"%")},wrapperStyle:function(){return{left:this.currentPosition}},tooltipLabel:function(){return void 0!==this.customFormatter?this.customFormatter(this.value):this.value.toString()}},methods:{onFocus:function(){this.isFocused=!0},onBlur:function(){this.isFocused=!1},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),"undefined"!=typeof window&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onRightKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onHomeKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onEndKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onDragStart:function(t){this.dragging=!0,this.$emit("dragstart"),"touchstart"===t.type&&(t.clientX=t.touches[0].clientX),this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){"touchmove"===t.type&&(t.clientX=t.touches[0].clientX);var e=(t.clientX-this.startX)/this.$parent.sliderSize()*100;this.newPosition=this.startPosition+e,this.setPosition(this.newPosition)}},onDragEnd:function(){this.dragging=!1,this.$emit("dragend"),this.value!==this.oldValue&&this.$parent.emitValue("change"),this.setPosition(this.newPosition),"undefined"!=typeof window&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(t){if(null!==t&&!isNaN(t)){t<0?t=0:t>100&&(t=100);var e=100/((this.max-this.min)/this.step),n=Math.round(t/e)*e/100*(this.max-this.min)+this.min;n=parseFloat(n.toFixed(this.precision)),this.$emit("input",n),this.dragging||n===this.oldValue||(this.oldValue=n)}}}},void 0,!1,void 0,void 0,void 0);var es,ns=pr({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"b-slider-tick",class:{"is-tick-hidden":this.hidden},style:this.getTickStyle(this.position)},[this.$slots.default?e("span",{staticClass:"b-slider-tick-label"},[this._t("default")],2):this._e()])},staticRenderFns:[]},void 0,{name:"BSliderTick",props:{value:{type:Number,default:0}},computed:{position:function(){var t=(this.value-this.$parent.min)/(this.$parent.max-this.$parent.min)*100;return t>=0&&t<=100?t:0},hidden:function(){return this.value===this.$parent.min||this.value===this.$parent.max}},methods:{getTickStyle:function(t){return{left:t+"%"}}},created:function(){if(!this.$parent.$data._isSlider)throw this.$destroy(),new Error("You should wrap bSliderTick on a bSlider")}},void 0,!1,void 0,void 0,void 0);var is=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider",class:[t.size,t.type,t.rootClasses],on:{click:t.onSliderClick}},[n("div",{ref:"slider",staticClass:"b-slider-track"},[n("div",{staticClass:"b-slider-fill",style:t.barStyle}),t.ticks?t._l(t.tickValues,(function(t,e){return n("b-slider-tick",{key:e,attrs:{value:t}})})):t._e(),t._t("default"),n("b-slider-thumb",{ref:"button1",attrs:{type:t.newTooltipType,tooltip:t.tooltip,"custom-formatter":t.customFormatter,role:"slider","aria-valuenow":t.value1,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":"horizontal","aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[0]:t.ariaLabel,"aria-disabled":t.disabled},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),t.isRange?n("b-slider-thumb",{ref:"button2",attrs:{type:t.newTooltipType,tooltip:t.tooltip,"custom-formatter":t.customFormatter,role:"slider","aria-valuenow":t.value2,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":"horizontal","aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[1]:"","aria-disabled":t.disabled},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}}):t._e()],2)])},staticRenderFns:[]},void 0,{name:"BSlider",components:(es={},Fi(es,ts.name,ts),Fi(es,ns.name,ns),es),props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"is-primary"},size:String,ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:String,rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:Function,ariaLabel:[String,Array],biggerSliderFocus:{type:Boolean,default:!1}},data:function(){return{value1:null,value2:null,dragging:!1,isRange:!1,_isSlider:!0}},computed:{newTooltipType:function(){return this.tooltipType?this.tooltipType:this.type},tickValues:function(){if(!this.ticks||this.min>this.max||0===this.step)return[];for(var t=[],e=this.min+this.step;ethis.max))if(Array.isArray(t)){this.isRange=!0;var e="number"!=typeof t[0]||isNaN(t[0])?this.min:Zi(t[0],this.min,this.max),n="number"!=typeof t[1]||isNaN(t[1])?this.max:Zi(t[1],this.min,this.max);this.value1=this.isThumbReversed?n:e,this.value2=this.isThumbReversed?e:n}else this.isRange=!1,this.value1=isNaN(t)?this.min:Zi(t,this.min,this.max),this.value2=null},onInternalValueUpdate:function(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),this.lazy&&this.dragging||this.emitValue("input"),this.dragging&&this.emitValue("dragging")},sliderSize:function(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick:function(t){if(!this.disabled&&!this.isTrackClickDisabled){var e=this.$refs.slider.getBoundingClientRect().left,n=(t.clientX-e)/this.sliderSize()*100,i=this.min+n*(this.max-this.min)/100,r=Math.abs(i-this.value1);if(this.isRange){var o=Math.abs(i-this.value2);if(r<=o){if(re.index}]},[n("a",{staticClass:"step-link",class:{"is-clickable":t.isItemClickable(e)},on:{click:function(n){t.isItemClickable(e)&&t.childClick(e)}}},[n("div",{staticClass:"step-marker"},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):e.step?n("span",[t._v(t._s(e.step))]):t._e()],1),n("div",{staticClass:"step-details"},[n("span",{staticClass:"step-title"},[t._v(t._s(e.label))])])])])})),0)]),n("section",{staticClass:"step-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2),t._t("navigation",[t.hasNavigation?n("nav",{staticClass:"step-navigation"},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",disabled:t.navigationProps.previous.disabled,"aria-label":t.ariaPreviousLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.previous.action(e)}}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),n("a",{staticClass:"pagination-next",attrs:{role:"button",disabled:t.navigationProps.next.disabled,"aria-label":t.ariaNextLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.next.action(e)}}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1)]):t._e()],{previous:t.navigationProps.previous,next:t.navigationProps.next})],2)},staticRenderFns:[]},void 0,{name:"BSteps",components:Fi({},wr.name,wr),mixins:[hs("step")],props:{type:[String,Object],iconPack:String,iconPrev:{type:String,default:function(){return dr.defaultIconPrev}},iconNext:{type:String,default:function(){return dr.defaultIconNext}},hasNavigation:{type:Boolean,default:!0},labelPosition:{type:String,validator:function(t){return["bottom","right","left"].indexOf(t)>-1},default:"bottom"},rounded:{type:Boolean,default:!0},mobileMode:{type:String,validator:function(t){return["minimalist","compact"].indexOf(t)>-1},default:"minimalist"},ariaNextLabel:String,ariaPreviousLabel:String},computed:{activeItem:function(){var t=this;return this.childItems.find((function(e){return e.value===t.activeId}))||this.items[0]},wrapperClasses:function(){return[this.size,Fi({"is-vertical":this.vertical},this.position,this.position&&this.vertical)]},mainClasses:function(){return[this.type,Fi({"has-label-right":"right"===this.labelPosition,"has-label-left":"left"===this.labelPosition,"is-animated":this.animated,"is-rounded":this.rounded},"mobile-".concat(this.mobileMode),null!==this.mobileMode)]},hasPrev:function(){return!!this.prevItem},nextItem:function(){for(var t=null,e=this.activeItem?this.items.indexOf(this.activeItem)+1:0;e=0;e--)if(this.items[e].visible){t=this.items[e];break}return t},hasNext:function(){return!!this.nextItem},navigationProps:function(){return{previous:{disabled:!this.hasPrev,action:this.prev},next:{disabled:!this.hasNext,action:this.next}}}},methods:{isItemClickable:function(t){return void 0===t.clickable?t.index-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,i=e.target,r=i.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var o=t.nativeValue,a=t._i(n,o);i.checked?a<0&&(t.computedValue=n.concat([o])):a>-1&&(t.computedValue=n.slice(0,a).concat(n.slice(a+1)))}else t.computedValue=r}}}),n("span",{staticClass:"check",class:t.checkClasses}),n("span",{staticClass:"control-label"},[t._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BSwitch",props:{value:[String,Number,Boolean,Function,Object,Array,Date],nativeValue:[String,Number,Boolean,Function,Object,Array,Date],disabled:Boolean,type:String,passiveType:String,name:String,required:Boolean,size:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!1},rounded:{type:Boolean,default:!0},outlined:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,isMouseDown:!1}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}},newClass:function(){return[this.size,{"is-disabled":this.disabled,"is-rounded":this.rounded,"is-outlined":this.outlined}]},checkClasses:function(){return[{"is-elastic":this.isMouseDown&&!this.disabled},this.passiveType&&"".concat(this.passiveType,"-passive"),this.type]}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}},void 0,!1,void 0,void 0,void 0),_s={install:function(t){gr(t,ys)}};mr(_s);var bs,ws=_s;var xs=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field table-mobile-sort"},[n("div",{staticClass:"field has-addons"},[t.sortMultiple?n("b-select",{attrs:{expanded:""},model:{value:t.sortMultipleSelect,callback:function(e){t.sortMultipleSelect=e},expression:"sortMultipleSelect"}},t._l(t.columns,(function(e,i){return e.sortable?n("option",{key:i,domProps:{value:e}},[t._v(" "+t._s(t.getLabel(e))+" "),t.getSortingObjectOfColumn(e)?[t.columnIsDesc(e)?[t._v(" ↓ ")]:[t._v(" ↑ ")]]:t._e()],2):t._e()})),0):n("b-select",{attrs:{expanded:""},model:{value:t.mobileSort,callback:function(e){t.mobileSort=e},expression:"mobileSort"}},[t.placeholder?[n("option",{directives:[{name:"show",rawName:"v-show",value:t.showPlaceholder,expression:"showPlaceholder"}],attrs:{selected:"",disabled:"",hidden:""},domProps:{value:{}}},[t._v(" "+t._s(t.placeholder)+" ")])]:t._e(),t._l(t.columns,(function(e,i){return e.sortable?n("option",{key:i,domProps:{value:e}},[t._v(" "+t._s(e.label)+" ")]):t._e()}))],2),n("div",{staticClass:"control"},[t.sortMultiple&&t.sortMultipleData.length>0?[n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{class:{"is-desc":t.columnIsDesc(t.sortMultipleSelect)},attrs:{icon:t.sortIcon,pack:t.iconPack,size:t.sortIconSize,both:""}})],1),n("button",{staticClass:"button is-primary",on:{click:t.removePriority}},[n("b-icon",{attrs:{icon:"delete",size:t.sortIconSize,both:""}})],1)]:t.sortMultiple?t._e():n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.currentSortColumn===t.mobileSort,expression:"currentSortColumn === mobileSort"}],class:{"is-desc":!t.isAsc},attrs:{icon:t.sortIcon,pack:t.iconPack,size:t.sortIconSize,both:""}})],1)],2)],1)])},staticRenderFns:[]},void 0,{name:"BTableMobileSort",components:(bs={},Fi(bs,ao.name,ao),Fi(bs,wr.name,wr),bs),props:{currentSortColumn:Object,sortMultipleData:Array,isAsc:Boolean,columns:Array,placeholder:String,iconPack:String,sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1}},data:function(){return{sortMultipleSelect:"",mobileSort:this.currentSortColumn,defaultEvent:{shiftKey:!0,altKey:!0,ctrlKey:!0},ignoreSort:!1}},computed:{showPlaceholder:function(){var t=this;return!this.columns||!this.columns.some((function(e){return e===t.mobileSort}))}},watch:{sortMultipleSelect:function(t){this.ignoreSort?this.ignoreSort=!1:this.$emit("sort",t,this.defaultEvent)},mobileSort:function(t){this.currentSortColumn!==t&&this.$emit("sort",t,this.defaultEvent)},currentSortColumn:function(t){this.mobileSort=t}},methods:{removePriority:function(){var t=this;this.$emit("removePriority",this.sortMultipleSelect),this.ignoreSort=!0;var e=this.sortMultipleData.filter((function(e){return e.field!==t.sortMultipleSelect.field})).map((function(t){return t.field}));this.sortMultipleSelect=this.columns.filter((function(t){return e.includes(t.field)}))[0]},getSortingObjectOfColumn:function(t){return this.sortMultipleData.filter((function(e){return e.field===t.field}))[0]},columnIsDesc:function(t){var e=this.getSortingObjectOfColumn(t);return!e||!(!e.order||"desc"!==e.order)},getLabel:function(t){var e=this.getSortingObjectOfColumn(t);return e?t.label+"("+(this.sortMultipleData.indexOf(e)+1)+")":t.label},sort:function(){this.$emit("sort",this.sortMultiple?this.sortMultipleSelect:this.mobileSort,this.defaultEvent)}}},void 0,!1,void 0,void 0,void 0);var ks=pr({},void 0,{name:"BTableColumn",inject:{$table:{name:"$table",default:!1}},props:{label:String,customKey:[String,Number],field:String,meta:[String,Number,Boolean,Function,Object,Array],width:[Number,String],numeric:Boolean,centered:Boolean,searchable:Boolean,sortable:Boolean,visible:{type:Boolean,default:!0},subheading:[String,Number],customSort:Function,sticky:Boolean,headerSelectable:Boolean,headerClass:String,cellClass:String},data:function(){return{newKey:this.customKey||this.label,_isTableColumn:!0}},computed:{rootClasses:function(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]},style:function(){return{width:ar(this.width)}},hasDefaultSlot:function(){return!!this.$scopedSlots.default},isHeaderUnSelectable:function(){return!this.headerSelectable&&this.sortable}},created:function(){if(!this.$table)throw this.$destroy(),new Error("You should wrap bTableColumn on a bTable");this.$table.refreshSlots()},render:function(t){return null}},void 0,void 0,void 0,void 0,void 0);var Cs,Ls=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"top level"},[n("div",{staticClass:"level-left"},[t._t("default")],2),n("div",{staticClass:"level-right"},[t.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":t.iconPack,total:t.total,"per-page":t.perPage,simple:t.paginationSimple,size:t.paginationSize,current:t.newCurrentPage,rounded:t.rounded,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel},on:{change:t.pageChanged}})],1):t._e()])])},staticRenderFns:[]},void 0,{name:"BTablePagination",props:{paginated:Boolean,total:[Number,String],perPage:[Number,String],currentPage:[Number,String],paginationSimple:Boolean,paginationSize:String,rounded:Boolean,iconPack:String,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String},data:function(){return{newCurrentPage:this.currentPage}},watch:{currentPage:function(t){this.newCurrentPage=t}},methods:{pageChanged:function(t){this.newCurrentPage=t>0?t:1,this.$emit("update:currentPage",this.newCurrentPage),this.$emit("page-change",this.newCurrentPage)}}},void 0,!1,void 0,void 0,void 0);var Ss=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-table"},[t._t("default"),t.mobileCards&&t.hasSortablenewColumns?n("b-table-mobile-sort",{attrs:{"current-sort-column":t.currentSortColumn,"sort-multiple":t.sortMultiple,"sort-multiple-data":t.sortMultipleDataComputed,"is-asc":t.isAsc,columns:t.newColumns,placeholder:t.mobileSortPlaceholder,"icon-pack":t.iconPack,"sort-icon":t.sortIcon,"sort-icon-size":t.sortIconSize},on:{sort:function(e,n){return t.sort(e,null,n)},removePriority:function(e){return t.removeSortingPriority(e)}}}):t._e(),!t.paginated||"top"!==t.paginationPosition&&"both"!==t.paginationPosition?t._e():[t._t("pagination",[n("b-table-pagination",t._b({attrs:{"per-page":t.perPage,paginated:t.paginated,total:t.newDataTotal,"current-page":t.newCurrentPage},on:{"update:currentPage":function(e){t.newCurrentPage=e},"update:current-page":function(e){t.newCurrentPage=e},"page-change":function(e){return t.$emit("page-change",e)}}},"b-table-pagination",t.$attrs,!1),[t._t("top-left")],2)])],n("div",{staticClass:"table-wrapper",class:t.tableWrapperClasses,style:{height:void 0===t.height?null:isNaN(t.height)?t.height:t.height+"px"}},[n("table",{staticClass:"table",class:t.tableClasses,attrs:{tabindex:!!t.focusable&&0},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.target!==e.currentTarget?null:(e.preventDefault(),t.pressedArrow(-1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.target!==e.currentTarget?null:(e.preventDefault(),t.pressedArrow(1))}]}},[t.newColumns.length&&t.showHeader?n("thead",[n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t.checkable&&"left"===t.checkboxPosition?n("th",{staticClass:"checkbox-cell"},[t.headerCheckable?[n("b-checkbox",{attrs:{value:t.isAllChecked,disabled:t.isAllUncheckable},nativeOn:{change:function(e){return t.checkAll(e)}}})]:t._e()],2):t._e(),t._l(t.visibleColumns,(function(e,i){return n("th",{key:e.newKey+i+"header",class:[e.headerClass,{"is-current-sort":!t.sortMultiple&&t.currentSortColumn===e,"is-sortable":e.sortable,"is-sticky":e.sticky,"is-unselectable":e.isHeaderUnSelectable}],style:e.style,on:{click:function(n){return n.stopPropagation(),t.sort(e,null,n)}}},[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[e.$scopedSlots&&e.$scopedSlots.header?[n("b-slot-component",{attrs:{component:e,scoped:"",name:"header",tag:"span",props:{column:e,index:i}}})]:[n("span",{staticClass:"is-relative"},[t._v(" "+t._s(e.label)+" "),t.sortMultiple&&t.sortMultipleDataComputed&&t.sortMultipleDataComputed.length>0&&t.sortMultipleDataComputed.filter((function(t){return t.field===e.field})).length>0?[n("b-icon",{class:{"is-desc":"desc"===t.sortMultipleDataComputed.filter((function(t){return t.field===e.field}))[0].order},attrs:{icon:t.sortIcon,pack:t.iconPack,both:"",size:t.sortIconSize}}),t._v(" "+t._s(t.findIndexOfSortData(e))+" "),n("button",{staticClass:"delete is-small multi-sort-cancel-icon",attrs:{type:"button"},on:{click:function(n){return n.stopPropagation(),t.removeSortingPriority(e)}}})]:n("b-icon",{staticClass:"sort-icon",class:{"is-desc":!t.isAsc,"is-invisible":t.currentSortColumn!==e},attrs:{icon:t.sortIcon,pack:t.iconPack,both:"",size:t.sortIconSize}})],2)]],2)])})),t.checkable&&"right"===t.checkboxPosition?n("th",{staticClass:"checkbox-cell"},[t.headerCheckable?[n("b-checkbox",{attrs:{value:t.isAllChecked,disabled:t.isAllUncheckable},nativeOn:{change:function(e){return t.checkAll(e)}}})]:t._e()],2):t._e()],2),t.hasCustomSubheadings?n("tr",{staticClass:"is-subheading"},[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t.checkable&&"left"===t.checkboxPosition?n("th"):t._e(),t._l(t.visibleColumns,(function(e,i){return n("th",{key:e.newKey+i+"subheading",style:e.style},[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[e.$scopedSlots&&e.$scopedSlots.subheading?[n("b-slot-component",{attrs:{component:e,scoped:"",name:"subheading",tag:"span",props:{column:e,index:i}}})]:[t._v(t._s(e.subheading))]],2)])})),t.checkable&&"right"===t.checkboxPosition?n("th"):t._e()],2):t._e(),t.hasSearchablenewColumns?n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t.checkable&&"left"===t.checkboxPosition?n("th"):t._e(),t._l(t.visibleColumns,(function(e,i){return n("th",{key:e.newKey+i+"searchable",class:{"is-sticky":e.sticky},style:e.style},[n("div",{staticClass:"th-wrap"},[e.searchable?[e.$scopedSlots&&e.$scopedSlots.searchable?[n("b-slot-component",{attrs:{component:e,scoped:!0,name:"searchable",tag:"span",props:{column:e,filters:t.filters}}})]:n("b-input",{attrs:{type:e.numeric?"number":"text"},nativeOn:t._d({},[t.filtersEvent,function(e){return t.onFiltersEvent(e)}]),model:{value:t.filters[e.field],callback:function(n){t.$set(t.filters,e.field,n)},expression:"filters[column.field]"}})]:t._e()],2)])})),t.checkable&&"right"===t.checkboxPosition?n("th"):t._e()],2):t._e()]):t._e(),n("tbody",[t._l(t.visibleData,(function(e,i){return[n("tr",{key:t.customRowKey?e[t.customRowKey]:i,class:[t.rowClass(e,i),{"is-selected":t.isRowSelected(e,t.selected),"is-checked":t.isRowChecked(e)}],attrs:{draggable:t.draggable},on:{click:function(n){return t.selectRow(e)},dblclick:function(n){return t.$emit("dblclick",e)},mouseenter:function(n){t.$listeners.mouseenter&&t.$emit("mouseenter",e)},mouseleave:function(n){t.$listeners.mouseleave&&t.$emit("mouseleave",e)},contextmenu:function(n){return t.$emit("contextmenu",e,n)},dragstart:function(n){return t.handleDragStart(n,e,i)},dragend:function(n){return t.handleDragEnd(n,e,i)},drop:function(n){return t.handleDrop(n,e,i)},dragover:function(n){return t.handleDragOver(n,e,i)},dragleave:function(n){return t.handleDragLeave(n,e,i)}}},[t.showDetailRowIcon?n("td",{staticClass:"chevron-cell"},[t.hasDetailedVisible(e)?n("a",{attrs:{role:"button"},on:{click:function(n){return n.stopPropagation(),t.toggleDetails(e)}}},[n("b-icon",{class:{"is-expanded":t.isVisibleDetailRow(e)},attrs:{icon:"chevron-right",pack:t.iconPack,both:""}})],1):t._e()]):t._e(),t.checkable&&"left"===t.checkboxPosition?n("td",{staticClass:"checkbox-cell"},[n("b-checkbox",{attrs:{disabled:!t.isRowCheckable(e),value:t.isRowChecked(e)},nativeOn:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.checkRow(e,i,n)}}})],1):t._e(),t._l(t.visibleColumns,(function(r,o){return[r.$scopedSlots&&r.$scopedSlots.default?[n("b-slot-component",{key:r.newKey+i+":"+o,class:r.rootClasses,attrs:{component:r,scoped:"",name:"default",tag:"td","data-label":r.label,props:{row:e,column:r,index:i}}})]:t._e()]})),t.checkable&&"right"===t.checkboxPosition?n("td",{staticClass:"checkbox-cell"},[n("b-checkbox",{attrs:{disabled:!t.isRowCheckable(e),value:t.isRowChecked(e)},nativeOn:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.checkRow(e,i,n)}}})],1):t._e()],2),t.isActiveDetailRow(e)?n("tr",{key:(t.customRowKey?e[t.customRowKey]:i)+"detail",staticClass:"detail"},[n("td",{attrs:{colspan:t.columnCount}},[n("div",{staticClass:"detail-container"},[t._t("detail",null,{row:e,index:i})],2)])]):t._e(),t.isActiveCustomDetailRow(e)?t._t("detail",null,{row:e,index:i}):t._e()]})),t.visibleData.length?t._e():n("tr",{staticClass:"is-empty"},[n("td",{attrs:{colspan:t.columnCount}},[t._t("empty")],2)])],2),void 0!==t.$slots.footer?n("tfoot",[n("tr",{staticClass:"table-footer"},[t.hasCustomFooterSlot()?t._t("footer"):n("th",{attrs:{colspan:t.columnCount}},[t._t("footer")],2)],2)]):t._e()]),t.loading?[t._t("loading",[n("b-loading",{attrs:{"is-full-page":!1,active:t.loading},on:{"update:active":function(e){t.loading=e}}})])]:t._e()],2),t.checkable&&t.hasBottomLeftSlot()||t.paginated&&("bottom"===t.paginationPosition||"both"===t.paginationPosition)?[t._t("pagination",[n("b-table-pagination",t._b({attrs:{"per-page":t.perPage,paginated:t.paginated,total:t.newDataTotal,"current-page":t.newCurrentPage},on:{"update:currentPage":function(e){t.newCurrentPage=e},"update:current-page":function(e){t.newCurrentPage=e},"page-change":function(e){return t.$emit("page-change",e)}}},"b-table-pagination",t.$attrs,!1),[t._t("bottom-left")],2)])]:t._e()],2)},staticRenderFns:[]},void 0,{name:"BTable",components:(Cs={},Fi(Cs,jr.name,jr),Fi(Cs,wr.name,wr),Fi(Cs,xr.name,xr),Fi(Cs,Da.name,Da),Fi(Cs,Uo.name,Uo),Fi(Cs,ds.name,ds),Fi(Cs,xs.name,xs),Fi(Cs,ks.name,ks),Fi(Cs,Ls.name,Ls),Cs),inheritAttrs:!1,provide:function(){return{$table:this}},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},bordered:Boolean,striped:Boolean,narrowed:Boolean,hoverable:Boolean,loading:Boolean,detailed:Boolean,checkable:Boolean,headerCheckable:{type:Boolean,default:!0},checkboxPosition:{type:String,default:"left",validator:function(t){return["left","right"].indexOf(t)>=0}},selected:Object,isRowSelectable:{type:Function,default:function(){return!0}},focusable:Boolean,customIsChecked:Function,isRowCheckable:{type:Function,default:function(){return!0}},checkedRows:{type:Array,default:function(){return[]}},mobileCards:{type:Boolean,default:!0},defaultSort:[String,Array],defaultSortDirection:{type:String,default:"asc"},sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1},sortMultipleData:{type:Array,default:function(){return[]}},sortMultipleKey:{type:String,default:null},paginated:Boolean,currentPage:{type:Number,default:1},perPage:{type:[Number,String],default:20},showDetailIcon:{type:Boolean,default:!0},paginationPosition:{type:String,default:"bottom",validator:function(t){return["bottom","top","both"].indexOf(t)>=0}},backendSorting:Boolean,backendFiltering:Boolean,rowClass:{type:Function,default:function(){return""}},openedDetailed:{type:Array,default:function(){return[]}},hasDetailedVisible:{type:Function,default:function(){return!0}},detailKey:{type:String,default:""},customDetailRow:{type:Boolean,default:!1},backendPagination:Boolean,total:{type:[Number,String],default:0},iconPack:String,mobileSortPlaceholder:String,customRowKey:String,draggable:{type:Boolean,default:!1},scrollable:Boolean,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,stickyHeader:Boolean,height:[Number,String],filtersEvent:{type:String,default:""},cardLayout:Boolean,showHeader:{type:Boolean,default:!0},debounceSearch:Number},data:function(){return{sortMultipleDataLocal:[],getValueByPath:Xi,visibleDetailRows:this.openedDetailed,newData:this.data,newDataTotal:this.backendPagination?this.total:this.data.length,newCheckedRows:Ui(this.checkedRows),lastCheckedRowIndex:null,newCurrentPage:this.currentPage,currentSortColumn:{},isAsc:!0,filters:{},defaultSlots:[],firstTimeSort:!0,_isTable:!0}},computed:{sortMultipleDataComputed:function(){return this.backendSorting?this.sortMultipleData:this.sortMultipleDataLocal},tableClasses:function(){return{"is-bordered":this.bordered,"is-striped":this.striped,"is-narrow":this.narrowed,"is-hoverable":(this.hoverable||this.focusable)&&this.visibleData.length}},tableWrapperClasses:function(){return{"has-mobile-cards":this.mobileCards,"has-sticky-header":this.stickyHeader,"is-card-list":this.cardLayout,"table-container":this.isScrollable,"is-relative":this.loading&&!this.$slots.loading}},visibleData:function(){if(!this.paginated)return this.newData;var t=this.newCurrentPage,e=this.perPage;if(this.newData.length<=e)return this.newData;var n=(t-1)*e,i=parseInt(n,10)+parseInt(e,10);return this.newData.slice(n,i)},visibleColumns:function(){return this.newColumns?this.newColumns.filter((function(t){return t.visible||void 0===t.visible})):this.newColumns},isAllChecked:function(){var t=this,e=this.visibleData.filter((function(e){return t.isRowCheckable(e)}));if(0===e.length)return!1;var n=e.some((function(e){return Ji(t.newCheckedRows,e,t.customIsChecked)<0}));return!n},isAllUncheckable:function(){var t=this;return 0===this.visibleData.filter((function(e){return t.isRowCheckable(e)})).length},hasSortablenewColumns:function(){return this.newColumns.some((function(t){return t.sortable}))},hasSearchablenewColumns:function(){return this.newColumns.some((function(t){return t.searchable}))},hasCustomSubheadings:function(){return!(!this.$scopedSlots||!this.$scopedSlots.subheading)||this.newColumns.some((function(t){return t.subheading||t.$scopedSlots&&t.$scopedSlots.subheading}))},columnCount:function(){var t=this.newColumns.length;return t+=this.checkable?1:0,t+=this.detailed&&this.showDetailIcon?1:0},showDetailRowIcon:function(){return this.detailed&&this.showDetailIcon},isScrollable:function(){return!!this.scrollable||!!this.newColumns&&this.newColumns.some((function(t){return t.sticky}))},newColumns:function(){var t=this;return this.columns&&this.columns.length?this.columns.map((function(e){var n=new(cr.extend(ks))({parent:t,propsData:e});return n.$scopedSlots={default:function(t){return[n.$createElement("span",{domProps:{innerHTML:Xi(t.row,e.field)}})]}},n})):this.defaultSlots.filter((function(t){return t.componentInstance&&t.componentInstance.$data&&t.componentInstance.$data._isTableColumn})).map((function(t){return t.componentInstance}))}},watch:{data:function(t){var e=this;this.newData=t,this.backendFiltering||(this.newData=t.filter((function(t){return e.isRowFiltered(t)}))),this.backendSorting||this.sort(this.currentSortColumn,!0),this.backendPagination||(this.newDataTotal=this.newData.length)},total:function(t){this.backendPagination&&(this.newDataTotal=t)},currentPage:function(t){this.newCurrentPage=t},checkedRows:function(t){this.newCheckedRows=Ui(t)},debounceSearch:{handler:function(t){var e,n,i,r;this.debouncedHandleFiltersChange=(e=this.handleFiltersChange,n=t,function(){var t=this,o=arguments,a=function(){r=null,i||e.apply(t,o)},s=i&&!r;clearTimeout(r),r=setTimeout(a,n),s&&e.apply(t,o)})},immediate:!0},filters:{handler:function(t){this.debounceSearch?this.debouncedHandleFiltersChange(t):this.handleFiltersChange(t)},deep:!0},openedDetailed:function(t){this.visibleDetailRows=t}},methods:{onFiltersEvent:function(t){this.$emit("filters-event-".concat(this.filtersEvent),{event:t,filters:this.filters})},handleFiltersChange:function(t){var e=this;this.backendFiltering?this.$emit("filters-change",t):(this.newData=this.data.filter((function(t){return e.isRowFiltered(t)})),this.backendPagination||(this.newDataTotal=this.newData.length),this.backendSorting||(this.sortMultiple&&this.sortMultipleDataLocal&&this.sortMultipleDataLocal.length>0?this.doSortMultiColumn():Object.keys(this.currentSortColumn).length>0&&this.doSortSingleColumn(this.currentSortColumn)))},findIndexOfSortData:function(t){var e=this.sortMultipleDataComputed.filter((function(e){return e.field===t.field}))[0];return this.sortMultipleDataComputed.indexOf(e)+1},removeSortingPriority:function(t){if(this.backendSorting)this.$emit("sorting-priority-removed",t.field);else{this.sortMultipleDataLocal=this.sortMultipleDataLocal.filter((function(e){return e.field!==t.field}));var e=this.sortMultipleDataLocal.map((function(t){return(t.order&&"desc"===t.order?"-":"")+t.field}));this.newData=or(this.newData,e)}},resetMultiSorting:function(){this.sortMultipleDataLocal=[],this.currentSortColumn={},this.newData=this.data},sortBy:function(t,e,n,i){return n&&"function"==typeof n?Ui(t).sort((function(t,e){return n(t,e,i)})):Ui(t).sort((function(t,n){var r=Xi(t,e),o=Xi(n,e);return"boolean"==typeof r&&"boolean"==typeof o?i?r-o:o-r:r||0===r?o||0===o?r===o?0:(r="string"==typeof r?r.toUpperCase():r,o="string"==typeof o?o.toUpperCase():o,i?r>o?1:-1:r>o?-1:1):-1:1}))},sortMultiColumn:function(t){if(this.currentSortColumn={},!this.backendSorting){var e=this.sortMultipleDataLocal.filter((function(e){return e.field===t.field}))[0];e?e.order="desc"===e.order?"asc":"desc":this.sortMultipleDataLocal.push({field:t.field,order:t.isAsc}),this.doSortMultiColumn()}},doSortMultiColumn:function(){var t=this.sortMultipleDataLocal.map((function(t){return(t.order&&"desc"===t.order?"-":"")+t.field}));this.newData=or(this.newData,t)},sort:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this.backendSorting&&this.sortMultiple&&(this.sortMultipleKey&&n[this.sortMultipleKey]||!this.sortMultipleKey))e?this.doSortMultiColumn():this.sortMultiColumn(t);else{if(!t||!t.sortable)return;this.sortMultiple&&(this.sortMultipleDataLocal=[]),e||(this.isAsc=t===this.currentSortColumn?!this.isAsc:"desc"!==this.defaultSortDirection.toLowerCase()),this.firstTimeSort||this.$emit("sort",t.field,this.isAsc?"asc":"desc",n),this.backendSorting||this.doSortSingleColumn(t),this.currentSortColumn=t}},doSortSingleColumn:function(t){this.newData=this.sortBy(this.newData,t.field,t.customSort,this.isAsc)},isRowSelected:function(t,e){return!!e&&(this.customRowKey?t[this.customRowKey]===e[this.customRowKey]:t===e)},isRowChecked:function(t){return Ji(this.newCheckedRows,t,this.customIsChecked)>=0},removeCheckedRow:function(t){var e=Ji(this.newCheckedRows,t,this.customIsChecked);e>=0&&this.newCheckedRows.splice(e,1)},checkAll:function(){var t=this,e=this.isAllChecked;this.visibleData.forEach((function(n){t.isRowCheckable(n)&&t.removeCheckedRow(n),e||t.isRowCheckable(n)&&t.newCheckedRows.push(n)})),this.$emit("check",this.newCheckedRows),this.$emit("check-all",this.newCheckedRows),this.$emit("update:checkedRows",this.newCheckedRows)},checkRow:function(t,e,n){if(this.isRowCheckable(t)){var i=this.lastCheckedRowIndex;this.lastCheckedRowIndex=e,n.shiftKey&&null!==i&&e!==i?this.shiftCheckRow(t,e,i):this.isRowChecked(t)?this.removeCheckedRow(t):this.newCheckedRows.push(t),this.$emit("check",this.newCheckedRows,t),this.$emit("update:checkedRows",this.newCheckedRows)}},shiftCheckRow:function(t,e,n){var i=this,r=this.visibleData.slice(Math.min(e,n),Math.max(e,n)+1),o=!this.isRowChecked(t);r.forEach((function(t){i.removeCheckedRow(t),o&&i.isRowCheckable(t)&&i.newCheckedRows.push(t)}))},selectRow:function(t,e){this.$emit("click",t),this.selected!==t&&this.isRowSelectable(t)&&(this.$emit("select",t,this.selected),this.$emit("update:selected",t))},toggleDetails:function(t){this.isVisibleDetailRow(t)?(this.closeDetailRow(t),this.$emit("details-close",t)):(this.openDetailRow(t),this.$emit("details-open",t)),this.$emit("update:openedDetailed",this.visibleDetailRows)},openDetailRow:function(t){var e=this.handleDetailKey(t);this.visibleDetailRows.push(e)},closeDetailRow:function(t){var e=this.handleDetailKey(t),n=this.visibleDetailRows.indexOf(e);this.visibleDetailRows.splice(n,1)},isVisibleDetailRow:function(t){var e=this.handleDetailKey(t);return this.visibleDetailRows.indexOf(e)>=0},isActiveDetailRow:function(t){return this.detailed&&!this.customDetailRow&&this.isVisibleDetailRow(t)},isActiveCustomDetailRow:function(t){return this.detailed&&this.customDetailRow&&this.isVisibleDetailRow(t)},isRowFiltered:function(t){for(var e in this.filters){if(!this.filters[e])return delete this.filters[e],!0;var n=this.getValueByPath(t,e);if(null==n)return!1;if(Number.isInteger(n)){if(n!==Number(this.filters[e]))return!1}else if(!new RegExp(rr(this.filters[e]),"i").test(n))return!1}return!0},handleDetailKey:function(t){var e=this.detailKey;return e.length&&t?t[e]:t},checkPredefinedDetailedRows:function(){if(this.openedDetailed.length>0&&!this.detailKey.length)throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"')},checkSort:function(){if(this.newColumns.length&&this.firstTimeSort)this.initSort(),this.firstTimeSort=!1;else if(this.newColumns.length&&Object.keys(this.currentSortColumn).length>0)for(var t=0;t1)return!0;var t=this.$slots.footer[0].tag;return"th"===t||"td"===t},hasBottomLeftSlot:function(){return void 0!==this.$slots["bottom-left"]},pressedArrow:function(t){if(this.visibleData.length){var e=this.visibleData.indexOf(this.selected)+t;e=e<0?0:e>this.visibleData.length-1?this.visibleData.length-1:e;var n=this.visibleData[e];if(this.isRowSelectable(n))this.selectRow(n);else{var i=null;if(t>0)for(var r=e;r=0&&null===i;o--)this.isRowSelectable(this.visibleData[o])&&(i=o);i>=0&&this.selectRow(this.visibleData[i])}}},focus:function(){this.focusable&&this.$el.querySelector("table").focus()},initSort:function(){var t=this;if(this.sortMultiple&&this.sortMultipleData)this.sortMultipleData.forEach((function(e){t.sortMultiColumn(e)}));else{if(!this.defaultSort)return;var e="",n=this.defaultSortDirection;Array.isArray(this.defaultSort)?(e=this.defaultSort[0],this.defaultSort[1]&&(n=this.defaultSort[1])):e=this.defaultSort;var i=this.newColumns.filter((function(t){return t.field===e}))[0];i&&(this.isAsc="desc"!==n.toLowerCase(),this.sort(i,!0))}},handleDragStart:function(t,e,n){this.$emit("dragstart",{event:t,row:e,index:n})},handleDragEnd:function(t,e,n){this.$emit("dragend",{event:t,row:e,index:n})},handleDrop:function(t,e,n){this.$emit("drop",{event:t,row:e,index:n})},handleDragOver:function(t,e,n){this.$emit("dragover",{event:t,row:e,index:n})},handleDragLeave:function(t,e,n){this.$emit("dragleave",{event:t,row:e,index:n})},refreshSlots:function(){this.defaultSlots=this.$slots.default||[]}},mounted:function(){this.refreshSlots(),this.checkPredefinedDetailedRows(),this.checkSort()}},void 0,!1,void 0,void 0,void 0),Ms={install:function(t){gr(t,Ss),gr(t,ks)}};mr(Ms);var Ts=Ms;var Es=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-tabs",class:t.mainClasses},[n("nav",{staticClass:"tabs",class:t.navClasses},[n("ul",t._l(t.items,(function(e){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"childItem.visible"}],key:e.value,class:[e.headerClass,{"is-active":e.isActive,"is-disabled":e.disabled}]},[e.$slots.header?n("b-slot-component",{attrs:{component:e,name:"header",tag:"a"},nativeOn:{click:function(n){return t.childClick(e)}}}):n("a",{on:{click:function(n){return t.childClick(e)}}},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):t._e(),n("span",[t._v(t._s(e.label))])],1)],1)})),0)]),n("section",{staticClass:"tab-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BTabs",mixins:[hs("tab")],props:{expanded:{type:Boolean,default:function(){return dr.defaultTabsExpanded}},type:{type:[String,Object],default:function(){return dr.defaultTabsType}},animated:{type:Boolean,default:function(){return dr.defaultTabsAnimated}},multiline:Boolean},computed:{mainClasses:function(){return Fi({"is-fullwidth":this.expanded,"is-vertical":this.vertical,"is-multiline":this.multiline},this.position,this.position&&this.vertical)},navClasses:function(){var t;return[this.type,this.size,(t={},Fi(t,this.position,this.position&&!this.vertical),Fi(t,"is-fullwidth",this.expanded),Fi(t,"is-toggle-rounded is-toggle","is-toggle-rounded"===this.type),t)]}}},void 0,!1,void 0,void 0,void 0);var Os=pr({},void 0,{name:"BTabItem",mixins:[fs("tab")],props:{disabled:Boolean},data:function(){return{elementClass:"tab-item"}}},void 0,void 0,void 0,void 0,void 0),Ps={install:function(t){gr(t,Es),gr(t,Os)}};mr(Ps);var Ds=Ps;var As=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.attached&&t.closable?n("div",{staticClass:"tags has-addons"},[n("span",{staticClass:"tag",class:[t.type,t.size,{"is-rounded":t.rounded}]},[n("span",{class:{"has-ellipsis":t.ellipsis}},[t._t("default")],2)]),n("a",{staticClass:"tag",class:[t.size,t.closeType,{"is-rounded":t.rounded},t.closeIcon?"has-delete-icon":"is-delete"],attrs:{role:"button","aria-label":t.ariaCloseLabel,tabindex:!!t.tabstop&&0,disabled:t.disabled},on:{click:t.close,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.close(e))}}},[t.closeIcon?n("b-icon",{attrs:{"custom-class":"",icon:t.closeIcon,size:t.size,type:t.closeIconType,pack:t.closeIconPack}}):t._e(),n("a")],1)]):n("span",{staticClass:"tag",class:[t.type,t.size,{"is-rounded":t.rounded}]},[n("span",{class:{"has-ellipsis":t.ellipsis}},[t._t("default")],2),t.closable?n("a",{staticClass:"delete is-small",class:t.closeType,attrs:{role:"button","aria-label":t.ariaCloseLabel,disabled:t.disabled,tabindex:!!t.tabstop&&0},on:{click:t.close,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.close(e))}}}):t._e()])},staticRenderFns:[]},void 0,{name:"BTag",props:{attached:Boolean,closable:Boolean,type:String,size:String,rounded:Boolean,disabled:Boolean,ellipsis:Boolean,tabstop:{type:Boolean,default:!0},ariaCloseLabel:String,closeType:String,closeIcon:String,closeIconPack:String,closeIconType:String},methods:{close:function(t){this.disabled||this.$emit("close",t)}}},void 0,!1,void 0,void 0,void 0);var Is=pr({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"tags",class:{"has-addons":this.attached}},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"BTaglist",props:{attached:Boolean}},void 0,!1,void 0,void 0,void 0),Ns={install:function(t){gr(t,As),gr(t,Is)}};mr(Ns);var Rs,js=Ns;var zs=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"taginput control",class:t.rootClasses},[n("div",{staticClass:"taginput-container",class:[t.statusType,t.size,t.containerClasses],attrs:{disabled:t.disabled},on:{click:function(e){t.hasInput&&t.focus(e)}}},[t._t("selected",t._l(t.tags,(function(e,i){return n("b-tag",{key:t.getNormalizedTagText(e)+i,attrs:{type:t.type,"close-type":t.closeType,size:t.size,rounded:t.rounded,attached:t.attached,tabstop:!1,disabled:t.disabled,ellipsis:t.ellipsis,closable:t.closable,title:t.ellipsis&&t.getNormalizedTagText(e)},on:{close:function(e){return t.removeTag(i,e)}}},[t._t("tag",[t._v(" "+t._s(t.getNormalizedTagText(e))+" ")],{tag:e})],2)})),{tags:t.tags}),t.hasInput?n("b-autocomplete",t._b({ref:"autocomplete",attrs:{data:t.data,field:t.field,icon:t.icon,"icon-pack":t.iconPack,maxlength:t.maxlength,"has-counter":!1,size:t.size,disabled:t.disabled,loading:t.loading,autocomplete:t.nativeAutocomplete,"open-on-focus":t.openOnFocus,"keep-open":t.openOnFocus,"keep-first":!t.allowNew,"use-html5-validation":t.useHtml5Validation,"check-infinite-scroll":t.checkInfiniteScroll,"append-to-body":t.appendToBody},on:{typing:t.onTyping,focus:t.onFocus,blur:t.customOnBlur,select:t.onSelect,"infinite-scroll":t.emitInfiniteScroll},nativeOn:{keydown:function(e){return t.keydown(e)}},scopedSlots:t._u([t.hasHeaderSlot?{key:"header",fn:function(){return[t._t("header")]},proxy:!0}:null,t.hasDefaultSlot?{key:"default",fn:function(e){return[t._t("default",null,{option:e.option,index:e.index})]}}:null,t.hasHeaderSlot?{key:"empty",fn:function(){return[t._t("empty")]},proxy:!0}:null,t.hasFooterSlot?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0),model:{value:t.newTag,callback:function(e){t.newTag=e},expression:"newTag"}},"b-autocomplete",t.$attrs,!1)):t._e()],2),t.hasCounter&&(t.maxtags||t.maxlength)?n("small",{staticClass:"help counter"},[t.maxlength&&t.valueLength>0?[t._v(" "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+" ")]:t.maxtags?[t._v(" "+t._s(t.tagsLength)+" / "+t._s(t.maxtags)+" ")]:t._e()],2):t._e()])},staticRenderFns:[]},void 0,{name:"BTaginput",components:(Rs={},Fi(Rs,kr.name,kr),Fi(Rs,As.name,As),Rs),mixins:[yr],inheritAttrs:!1,props:{value:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},type:String,closeType:String,rounded:{type:Boolean,default:!1},attached:{type:Boolean,default:!1},maxtags:{type:[Number,String],required:!1},hasCounter:{type:Boolean,default:function(){return dr.defaultTaginputHasCounter}},field:{type:String,default:"value"},autocomplete:Boolean,nativeAutocomplete:String,openOnFocus:Boolean,disabled:Boolean,ellipsis:Boolean,closable:{type:Boolean,default:!0},confirmKeys:{type:Array,default:function(){return[",","Enter"]}},removeOnKeys:{type:Array,default:function(){return["Backspace"]}},allowNew:Boolean,onPasteSeparators:{type:Array,default:function(){return[","]}},beforeAdding:{type:Function,default:function(){return!0}},allowDuplicates:{type:Boolean,default:!1},checkInfiniteScroll:{type:Boolean,default:!1},createTag:{type:Function,default:function(t){return t}},appendToBody:Boolean},data:function(){return{tags:Array.isArray(this.value)?this.value.slice(0):this.value||[],newTag:"",_elementRef:"autocomplete",_isTaginput:!0}},computed:{rootClasses:function(){return{"is-expanded":this.expanded}},containerClasses:function(){return{"is-focused":this.isFocused,"is-focusable":this.hasInput}},valueLength:function(){return this.newTag.trim().length},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},hasInput:function(){return null==this.maxtags||this.tagsLength0&&this.removeTag(this.tagsLength-1)},keydown:function(t){var e=t.key;-1===this.removeOnKeys.indexOf(e)||this.newTag.length||this.removeLastTag(),this.autocomplete&&!this.allowNew||this.confirmKeys.indexOf(e)>=0&&(t.preventDefault(),this.addTag())},onTyping:function(t){this.$emit("typing",t.trim())},emitInfiniteScroll:function(){this.$emit("infinite-scroll")}}},void 0,!1,void 0,void 0,void 0),Ys={install:function(t){gr(t,zs)}};mr(Ys);var Fs=Ys,Bs={install:function(t){gr(t,yo)}};mr(Bs);var $s=Bs;var Hs,Us=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"toast",class:[t.type,t.position],attrs:{"aria-hidden":!t.isActive,role:"alert"}},[n("div",[t.$slots.default?[t._t("default")]:[t._v(" "+t._s(t.message)+" ")]],2)])])},staticRenderFns:[]},void 0,{name:"BToast",mixins:[sa],data:function(){return{newDuration:this.duration||dr.defaultToastDuration}}},void 0,!1,void 0,void 0,void 0),Vs={open:function(t){var e;"string"==typeof t&&(t={message:t});var n={position:dr.defaultToastPosition||"is-top"};t.parent&&(e=t.parent,delete t.parent);var i=t.message;delete t.message;var r=Qi(n,t),o=new(("undefined"!=typeof window&&window.Vue?window.Vue:Hs||cr).extend(Us))({parent:e,el:document.createElement("div"),propsData:r});return i&&(o.$slots.default=ur(i,o.$createElement),o.$forceUpdate()),o}},Ws={install:function(t){Hs=t,vr(t,"toast",Vs)}};mr(Ws);var Gs=Ws,qs={install:function(t){gr(t,Qa)}};mr(qs);var Zs=qs;var Xs=pr({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"upload control",class:{"is-expanded":t.expanded}},[t.dragDrop?n("div",{staticClass:"upload-draggable",class:[t.type,{"is-loading":t.loading,"is-disabled":t.disabled,"is-hovered":t.dragDropFocus,"is-expanded":t.expanded}],on:{dragover:function(e){return e.preventDefault(),t.updateDragDropFocus(!0)},dragleave:function(e){return e.preventDefault(),t.updateDragDropFocus(!1)},dragenter:function(e){return e.preventDefault(),t.updateDragDropFocus(!0)},drop:function(e){return e.preventDefault(),t.onFileChange(e)}}},[t._t("default")],2):[t._t("default")],n("input",t._b({ref:"input",attrs:{type:"file",multiple:t.multiple,accept:t.accept,disabled:t.disabled},on:{change:t.onFileChange}},"input",t.$attrs,!1))],2)},staticRenderFns:[]},void 0,{name:"BUpload",mixins:[yr],inheritAttrs:!1,props:{value:{type:[Object,Function,$o,Array]},multiple:Boolean,disabled:Boolean,accept:String,dragDrop:Boolean,type:{type:String,default:"is-primary"},native:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,dragDropFocus:!1,_elementRef:"input"}},watch:{value:function(t){this.newValue=t,(!t||Array.isArray(t)&&0===t.length)&&(this.$refs.input.value=null),!this.isValid&&!this.dragDrop&&this.checkHtml5Validity()}},methods:{onFileChange:function(t){if(!this.disabled&&!this.loading){this.dragDrop&&this.updateDragDropFocus(!1);var e=t.target.files||t.dataTransfer.files;if(0===e.length){if(!this.newValue)return;this.native&&(this.newValue=null)}else if(this.multiple){var n=!1;!this.native&&this.newValue||(this.newValue=[],n=!0);for(var i=0;i=0?t.name.substring(o):"").toLowerCase()===r.toLowerCase()&&(n=!0)}else t.type.match(r)&&(n=!0)}return n}}},void 0,!1,void 0,void 0,void 0),Js={install:function(t){gr(t,Xs)}};mr(Js);var Ks=Js,Qs=Object.freeze({Autocomplete:Lr,Button:Tr,Carousel:Nr,Checkbox:Fr,Clockpicker:oo,Collapse:Ur,Datepicker:go,Datetimepicker:wo,Dialog:To,Dropdown:Oo,Field:Do,Icon:Io,Image:jo,Input:Yo,Loading:Go,Menu:Ko,Message:ia,Modal:aa,Navbar:Sa,Notification:fa,Numberinput:Ea,Pagination:Ia,Progress:ja,Radio:Ba,Rate:Ua,Select:Wa,Skeleton:Za,Sidebar:Ka,Slider:os,Snackbar:cs,Steps:vs,Switch:ws,Table:Ts,Tabs:Ds,Tag:js,Taginput:Fs,Timepicker:$s,Toast:Gs,Tooltip:Zs,Upload:Ks}),tl={getOptions:function(){return dr},setOptions:function(t){hr(Qi(dr,t,!0))}},el={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in fr(t),hr(Qi(dr,e,!0)),Qs)t.use(Qs[n]);vr(t,"config",tl)}};mr(el);var nl=el,il=n("A823"),rl=n.n(il),ol={install(t,e){t.prototype.can=function(t){var e=window.Laravel.jsPermissions.permissions,n=!1;return!!Array.isArray(e)&&(t.includes("|")?t.split("|").forEach((function(t){e.includes(t.trim())&&(n=!0)})):t.includes("&")?(n=!0,t.split("&").forEach((function(t){e.includes(t.trim())||(n=!1)}))):n=e.includes(t.trim()),n)},t.prototype.is=function(t){var e=window.Laravel.jsPermissions.roles,n=!1;return!!Array.isArray(e)&&(t.includes("|")?t.split("|").forEach((function(t){e.includes(t.trim())&&(n=!0)})):t.includes("&")?(n=!0,t.split("&").forEach((function(t){e.includes(t.trim())||(n=!1)}))):n=e.includes(t.trim()),n)}}},al={name:"Languages",data:function(){return{button:"dropdown navbar-item pointer",dir:"/assets/icons/flags/",langs:[{url:"en"},{url:"es"},{url:"nl"},{url:"pl"}]}},computed:{checkOpen:function(){return this.$store.state.globalmap.langsOpen?this.button+" is-active":this.button},currentLang:function(){return this.$t("locations.countries."+this.$i18n.locale+".lang")},locale:function(){return this.$i18n.locale}},methods:{getFlag:function(t){return"en"===t?this.dir+"gb.png":"es"===t?this.dir+"es.png":"pl"===t?this.dir+"pl.png":"ms"===t?this.dir+"my.png":"tk"===t?this.dir+"tr.png":this.dir+t.toLowerCase()+".png"},getLang:function(t){return this.$t("locations.countries."+t+".lang")},language:function(t){this.$i18n.locale=t,this.$localStorage.set("lang",t),this.$store.commit("closeLangsButton")},toggleOpen:function(){this.$store.commit("closeDatesButton"),this.$store.commit("toggleLangsButton")}}};n("pzhP");function sl(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var ll={name:"Nav",components:{Languages:Object(Ai.a)(al,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.checkOpen},[n("div",{staticClass:"dropdown-trigger",on:{click:function(e){return e.stopPropagation(),t.toggleOpen(e)}}},[n("button",{staticClass:"button is-small",attrs:{"aria-haspopup":"true"}},[n("img",{staticClass:"lang-flag-small",attrs:{src:t.getFlag(this.$i18n.locale)}}),t._v(" "),n("span",[t._v(t._s(this.currentLang))])])]),t._v(" "),n("div",{staticClass:"dropdown-menu"},[n("div",{staticClass:"dropdown-content",staticStyle:{padding:"0"}},t._l(t.langs,(function(e){return n("div",{staticClass:"dropdown-item hoverable flex p1em",on:{click:function(n){return t.language(e.url)}}},[n("img",{staticClass:"lang-flag",attrs:{src:t.getFlag(e.url)}}),t._v(" "),n("p",[t._v(t._s(t.getLang(e.url)))])])})),0)])])}),[],!1,null,null,null).exports},data:function(){return{open:!1}},computed:{auth:function(){return this.$store.state.user.auth},burger:function(){return this.open?"navbar-burger burger is-active":"navbar-burger burger"},can_bbox:function(){return this.$store.state.user.user.can_bbox},nav:function(){return this.open?"navbar-menu is-active":"navbar-menu"}},methods:{close:function(){this.open=!1},login:function(){this.$store.commit("showModal",{type:"Login",title:"Login",action:"LOGIN"})},logout:function(){var t,e=this;return(t=y.a.mark((function t(){return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("LOGOUT");case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){sl(o,i,r,a,s,"next",t)}function s(t){sl(o,i,r,a,s,"throw",t)}a(void 0)}))})()},toggleOpen:function(){this.open=!this.open}}},ul=(n("su3C"),Object(Ai.a)(ll,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticStyle:{height:"1px","background-color":"#00CBAB"}}),t._v(" "),n("nav",{staticClass:"navbar main-nav"},[n("div",{staticClass:"container"},[n("div",{staticClass:"navbar-brand"},[n("router-link",{staticClass:"navbar-item",attrs:{to:"/"}},[n("h1",{staticClass:"nav-title"},[t._v("#OpenLitterMap")])]),t._v(" "),n("div",{class:t.burger,on:{click:t.toggleOpen}},[n("span",{staticClass:"is-white"}),t._v(" "),n("span",{staticClass:"is-white"}),t._v(" "),n("span",{staticClass:"is-white"})])],1),t._v(" "),n("div",{class:t.nav},[n("div",{staticClass:"navbar-end"},[n("router-link",{staticClass:"navbar-item",attrs:{to:"/about"},nativeOn:{click:function(e){return t.close(e)}}},[t._v("\n "+t._s(t.$t("nav.about"))+"\n ")]),t._v(" "),n("router-link",{staticClass:"navbar-item",attrs:{to:"/global"},nativeOn:{click:function(e){return t.close(e)}}},[t._v("\n "+t._s(t.$t("nav.global-map"))+"\n ")]),t._v(" "),n("router-link",{staticClass:"navbar-item",attrs:{to:"/world"},nativeOn:{click:function(e){return t.close(e)}}},[t._v("\n "+t._s(t.$t("nav.world-cup"))+"\n ")]),t._v(" "),t.auth?n("div",{staticClass:"flex-not-mobile"},[n("router-link",{staticClass:"navbar-item",attrs:{to:"/upload"}},[t._v("\n "+t._s(t.$t("nav.upload"))+"\n ")]),t._v(" "),n("div",{staticClass:"navbar-item has-dropdown is-hoverable"},[n("a",{staticClass:"navbar-item",attrs:{id:"more"}},[t._v(" "+t._s(t.$t("nav.more")))]),t._v(" "),n("div",{staticClass:"navbar-dropdown",staticStyle:{"z-index":"2"}},[t.can("update tags")?n("router-link",{staticClass:"navbar-item drop-item",attrs:{to:"/admin/photos"},nativeOn:{click:function(e){return t.close(e)}}},[t._v("\n "+t._s(t.$t("nav.admin-verify-photos"))+"\n ")]):t._e(),t._v(" "),t.is("superadmin")?n("a",{staticClass:"navbar-item drop-item",attrs:{href:"/horizon",target:"_blank"}},[t._v("\n "+t._s(t.$t("nav.admin-horizon"))+"\n ")]):t._e(),t._v(" "),t.can("verify boxes")?n("a",{staticClass:"navbar-item drop-item",attrs:{href:"/bbox/verify"}},[t._v("\n "+t._s(t.$t("nav.admin-verify-boxes"))+"\n ")]):t._e(),t._v(" "),n("router-link",{staticClass:"navbar-item drop-item",attrs:{to:"/tag"}},[t._v("\n "+t._s(t.$t("nav.tag-litter"))+"\n ")]),t._v(" "),n("router-link",{staticClass:"navbar-item drop-item",attrs:{to:"/profile"}},[t._v("\n "+t._s(t.$t("nav.profile"))+"\n ")]),t._v(" "),n("router-link",{staticClass:"navbar-item drop-item",attrs:{to:"/teams"}},[t._v("\n "+t._s(t.$t("nav.teams"))+"\n ")]),t._v(" "),n("router-link",{staticClass:"navbar-item drop-item",attrs:{to:"/settings/password"}},[t._v("\n "+t._s(t.$t("nav.settings"))+"\n ")]),t._v(" "),t.can("create boxes")?n("router-link",{staticClass:"navbar-item drop-item",attrs:{to:"/bbox"},nativeOn:{click:function(e){return t.close(e)}}},[t._v("\n "+t._s(t.$t("nav.bounding-boxes"))+"\n ")]):t._e(),t._v(" "),n("a",{staticClass:"navbar-item drop-item",on:{click:t.logout}},[t._v(" "+t._s(t.$t("nav.logout")))]),t._v(" "),n("Languages")],1)])],1):n("div",{staticClass:"flex-not-mobile"},[n("a",{staticClass:"navbar-item",on:{click:t.login}},[t._v(t._s(t.$t("nav.login")))]),t._v(" "),n("router-link",{staticClass:"navbar-item",attrs:{to:"/signup"}},[t._v("\n "+t._s(t.$t("nav.signup"))+"\n ")]),t._v(" "),n("Languages")],1)],1)])])])])}),[],!1,null,"1c5b4942",null).exports);function cl(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var dl={name:"Login",data:function(){return{email:"",password:"",processing:!1,btn:"button is-medium is-primary"}},computed:{button:function(){return this.processing?this.btn+" is-loading":this.btn},errorLogin:function(){return this.$store.state.user.errorLogin}},methods:{clearLoginError:function(){this.$store.commit("errorLogin","")},login:function(){var t,e=this;return(t=y.a.mark((function t(){return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.processing=!0,t.next=3,e.$store.dispatch("LOGIN",{email:e.email,password:e.password});case 3:e.processing=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){cl(o,i,r,a,s,"next",t)}function s(t){cl(o,i,r,a,s,"throw",t)}a(void 0)}))})()},clearPwError:function(){this.error=!1,this.errormessage=""}}},hl=(n("Qi36"),Object(Ai.a)(dl,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",{directives:[{name:"show",rawName:"v-show",value:t.errorLogin,expression:"errorLogin"}],staticStyle:{color:"red"}},[t._v(t._s(t.errorLogin))]),t._v(" "),n("form",{staticStyle:{padding:"1em 2em"},attrs:{role:"form",method:"post"},on:{submit:function(e){return e.preventDefault(),t.login(e)}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"input mb1em fs125",attrs:{placeholder:"you@email.com",type:"email",name:"email",required:"",autocomplete:"email"},domProps:{value:t.email},on:{keydown:t.clearLoginError,input:function(e){e.target.composing||(t.email=e.target.value)}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"input mb1em fs125",attrs:{placeholder:"Your Password",type:"password",name:"password",required:"",autocomplete:"current-password"},domProps:{value:t.password},on:{keydown:t.clearPwError,input:function(e){e.target.composing||(t.password=e.target.value)}}}),t._v(" "),n("button",{class:t.button,attrs:{disabled:t.processing}},[t._v(t._s(t.$t("auth.login.login-btn")))])]),t._v(" "),n("footer",{staticClass:"modal-card-foot",staticStyle:{height:"50px"}},[n("div",{staticClass:"column is-half"},[n("a",{attrs:{href:"/signup"}},[t._v(t._s(t.$t("auth.login.signup-text")))])]),t._v(" "),n("div",{staticClass:"column is-half"},[n("a",{staticClass:"has-text-right",attrs:{href:"/password/reset"}},[t._v(t._s(t.$t("auth.login.forgot-password")))])])])])}),[],!1,null,null,null).exports),fl={name:"CreditCard",props:["cardNumber","cardName","cardMonth","cardYear","cardCvv","isCardFlipped","focusElementStyle","currentCardBackground","getCardType","otherCardMask","amexCardMask"],data:function(){return{imgs:"https://raw.githubusercontent.com/muhammederdem/credit-card-form/master/src/assets/images/"}}};n("r1L1");function pl(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var ml={name:"CreditCard",components:{Card:Object(Ai.a)(fl,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card-list"},[n("div",{staticClass:"card-item",class:{"-active":t.isCardFlipped}},[n("div",{staticClass:"card-item__side -front"},[n("div",{ref:"focusElement",staticClass:"card-item__focus",class:{"-active":t.focusElementStyle},style:t.focusElementStyle}),t._v(" "),n("div",{staticClass:"card-item__cover"},[n("img",{staticClass:"card-item__bg",attrs:{src:t.imgs+t.currentCardBackground+".jpeg"}})]),t._v(" "),n("div",{staticClass:"card-item__wrapper"},[n("div",{staticClass:"card-item__top"},[n("img",{staticClass:"card-item__chip",attrs:{src:t.imgs+"chip.png"}}),t._v(" "),n("div",{staticClass:"card-item__type"},[n("transition",{attrs:{name:"slide-fade-up"}},[t.getCardType?n("img",{key:t.getCardType,staticClass:"card-item__typeImg",attrs:{src:t.imgs+t.getCardType+".png"}}):t._e()])],1)]),t._v(" "),"amex"===t.getCardType?n("div",{},[n("div",{staticClass:"card-item__cvv-amex"},t._l(t.cardCvv,(function(e,i){return n("span",{key:i},[t._v("*")])})),0)]):t._e(),t._v(" "),n("label",{ref:"cardNumber",staticClass:"card-item__number",attrs:{for:"cardNumber"}},["amex"===t.getCardType?t._l(t.amexCardMask,(function(e,i){return n("span",{key:i},[n("transition",{attrs:{name:"slide-fade-up"}},[i>4&&i<14&&t.cardNumber.length>i&&""!==e.trim()?n("div",{staticClass:"card-item__numberItem"},[t._v("*")]):t.cardNumber.length>i?n("div",{key:i,staticClass:"card-item__numberItem",class:{"-active":""===e.trim()}},[t._v(t._s(t.cardNumber[i]))]):n("div",{key:i+1,staticClass:"card-item__numberItem",class:{"-active":""===e.trim()}},[t._v(t._s(e))])])],1)})):t._l(t.otherCardMask,(function(e,i){return n("span",{key:i},[n("transition",{attrs:{name:"slide-fade-up"}},[i>4&&i<15&&t.cardNumber.length>i&&""!==e.trim()?n("div",{staticClass:"card-item__numberItem"},[t._v("*")]):t.cardNumber.length>i?n("div",{key:i,staticClass:"card-item__numberItem",class:{"-active":""===e.trim()}},[t._v(t._s(t.cardNumber[i])+" ")]):n("div",{key:i+1,staticClass:"card-item__numberItem",class:{"-active":""===e.trim()}},[t._v(t._s(e))])])],1)}))],2),t._v(" "),n("div",{staticClass:"card-item__content"},[n("label",{ref:"cardName",staticClass:"card-item__info",attrs:{for:"cardName"}},[n("div",{staticClass:"card-item__holder"},[t._v("Card Holder")]),t._v(" "),n("transition",{attrs:{name:"slide-fade-up"}},[t.cardName.length?n("div",{key:"1",staticClass:"card-item__name"},[n("transition-group",{attrs:{name:"slide-fade-right"}},t._l(t.cardName.replace(/\s\s+/g," "),(function(e,i){return i==i?n("span",{key:i+1,staticClass:"card-item__nameItem"},[t._v(t._s(e))]):t._e()})),0)],1):n("div",{key:"2",staticClass:"card-item__name"},[t._v("Full Name")])])],1),t._v(" "),n("div",{ref:"cardDate",staticClass:"card-item__date"},[n("label",{staticClass:"card-item__dateTitle",attrs:{for:"cardMonth"}},[t._v("Expires")]),t._v(" "),n("label",{staticClass:"card-item__dateItem",attrs:{for:"cardMonth"}},[n("transition",{attrs:{name:"slide-fade-up"}},[t.cardMonth?n("span",{key:t.cardMonth},[t._v(t._s(t.cardMonth))]):n("span",{key:"2"},[t._v("MM")])])],1),t._v("\n /\n "),n("label",{staticClass:"card-item__dateItem",attrs:{for:"cardYear"}},[n("transition",{attrs:{name:"slide-fade-up"}},[t.cardYear?n("span",{key:t.cardYear},[t._v(t._s(String(t.cardYear).slice(2,4)))]):n("span",{key:"2"},[t._v("YY")])])],1)])])])]),t._v(" "),n("div",{staticClass:"card-item__side -back"},[n("div",{staticClass:"card-item__cover"},[n("img",{staticClass:"card-item__bg",attrs:{src:this.imgs+t.currentCardBackground+".jpeg"}})]),t._v(" "),n("div",{staticClass:"card-item__band"}),t._v(" "),n("div",{staticClass:"card-item__cvv"},[n("div",{staticClass:"card-item__cvvTitle"},[t._v("CVV")]),t._v(" "),n("div",{staticClass:"card-item__cvvBand"},t._l(t.cardCvv,(function(e,i){return n("span",{key:i},[t._v("*")])})),0),t._v(" "),n("div",{staticClass:"card-item__type"},[t.getCardType?n("img",{staticClass:"card-item__typeImg",attrs:{src:this.imgs+t.getCardType+".png"}}):t._e()])])])])])}),[],!1,null,"03bccacd",null).exports},data:function(){return{btn:"card-form__button button",disabled:!1,processing:!1,currentCardBackground:Math.floor(25*Math.random()+1),cardName:"",cardNumber:"",cardMonth:"",cardYear:"",cardCvv:"",minCardYear:(new Date).getFullYear(),amexCardMask:"#### ###### #####",otherCardMask:"#### #### #### ####",cardNumberTemp:"",isCardFlipped:!1,focusElementStyle:null,isInputFocused:!1,stripe:"",elements:"",card:"",intentToken:""}},mounted:function(){this.includeStripe("js.stripe.com/v3/",function(){this.configureStripe()}.bind(this)),this.loadIntent(),this.cardNumberTemp=this.otherCardMask,document.getElementById("cardNumber").focus()},computed:{button:function(){return this.processing?this.btn+" is-loading":this.btn},errors:function(){return this.$store.state.payments.errors},generateCardNumberMask:function(){return"amex"===this.getCardType?this.amexCardMask:this.otherCardMask},getCardType:function(){var t=this.cardNumber,e=new RegExp("^4");return null!=t.match(e)?"visa":(e=new RegExp("^(34|37)"),null!=t.match(e)?"amex":(e=new RegExp("^5[1-5]"),null!=t.match(e)?"mastercard":(e=new RegExp("^6011"),null!=t.match(e)?"discover":(e=new RegExp("^9792"),null!=t.match(e)?"troy":"visa"))))},minCardMonth:function(){return this.cardYear===this.minCardYear?(new Date).getMonth()+1:1}},watch:{cardYear:function(){this.cardMonth0&&void 0===this.errors.main?this.disabled=!0:this.disabled=!1},clearErrors:function(t){this.$store.commit("clearCustomerCenterErrors",t),this.checkForErrors()},close:function(){this.$store.commit("hideModal")},configureStripe:function(){this.stripe=Stripe("pk_live_4UlurKvAigejhIQ3t8wBbttC"),this.elements=this.stripe.elements(),this.card=this.elements.create("card"),this.card.mount("#card-element")},errorsExist:function(t){return this.errors.hasOwnProperty(t)},flipCard:function(t){"amex"!==this.getCardType&&(this.isCardFlipped=t)},focusInput:function(t){this.isInputFocused=!0;var e=t.target.dataset.ref,n=this.$refs[e];this.focusElementStyle={width:"".concat(n.offsetWidth,"px"),height:"".concat(n.offsetHeight,"px"),transform:"translateX(".concat(n.offsetLeft,"px) translateY(").concat(n.offsetTop,"px)")}},getFirstError:function(t){return this.errors[t][0]},hasError:function(t){return void 0!==this.errors[t]},includeStripe:function(t,e){var n=document,i=n.createElement("script"),r=n.getElementsByTagName("script")[0];i.src="//"+t,e&&i.addEventListener("load",(function(t){e(null,t)}),!1),r.parentNode.insertBefore(i,r)},loadIntent:function(){var t,e=this;return(t=y.a.mark((function t(){return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,axios.get("/api/v1/user/setup-intent").then((function(t){e.intentToken=t.data}));case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){pl(o,i,r,a,s,"next",t)}function s(t){pl(o,i,r,a,s,"throw",t)}a(void 0)}))})()},submit:function(){Stripe("pk_live_4UlurKvAigejhIQ3t8wBbttC").redirectToCheckout({lineItems:[{price:"plan_E579ju4xamcU41",quantity:1}],mode:"subscription",successUrl:"https://www.example.com/success",cancelUrl:"https://www.example.com/cancel"})}}},gl=(n("sE6M"),Object(Ai.a)(ml,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cc-wrapper"},[n("div",{staticClass:"card-form"},[n("Card",{attrs:{cardNumber:t.cardNumber,cardName:t.cardName,cardMonth:t.cardMonth,cardYear:t.cardYear,cardCvv:t.cardCvv,isCardFlipped:t.isCardFlipped,focusElementStyle:t.focusElementStyle,currentCardBackground:t.currentCardBackground,getCardType:t.getCardType,otherCardMask:t.otherCardMask,amexCardMask:t.amexCardMask}}),t._v(" "),n("div",{attrs:{id:"card-element"}}),t._v(" "),n("div",{staticClass:"card-form__inner"},[Object.keys(this.errors).length>0&&void 0!==this.errors.main?n("div",{staticClass:"notification is-danger",staticStyle:{"margin-bottom":"20px","margin-top":"-40px"}},[n("p",[t._v(t._s(this.errors.main))])]):t._e(),t._v(" "),n("div",{staticClass:"card-input margin-mobile"},[n("label",{staticClass:"card-input__label",class:t.errorsExist("cc_number")?"label-danger":"",attrs:{for:"cardNumber"}},[t._v(t._s(t.$t("creditcard.card-number")))]),t._v(" "),n("input",{directives:[{name:"mask",rawName:"v-mask",value:t.generateCardNumberMask,expression:"generateCardNumberMask"},{name:"model",rawName:"v-model",value:t.cardNumber,expression:"cardNumber"}],staticClass:"card-input__input",class:t.errorsExist("cc_number")?"border-danger":"",attrs:{type:"text",id:"cardNumber",focus:t.focusInput,blur:t.blurInput,"data-ref":"cardNumber",autocomplete:"off",placeholder:this.$t("creditcard.placeholders.card-number")},domProps:{value:t.cardNumber},on:{input:[function(e){e.target.composing||(t.cardNumber=e.target.value)},function(e){return t.clearErrors("cc_number")}]}}),t._v(" "),t.hasError("cc_number")?n("div",{class:t.errorsExist("cc_number")?"error-message":""},[n("span",[t._v(t._s(t.getFirstError("cc_number")))])]):t._e()]),t._v(" "),n("div",{staticClass:"card-input"},[n("label",{staticClass:"card-input__label",class:t.errorsExist("cc_name")?"label-danger":"",attrs:{for:"cardName"}},[t._v(t._s(t.$t("creditcard.card-holder")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.cardName,expression:"cardName"}],staticClass:"card-input__input",class:t.errorsExist("cc_name")?"border-danger":"",attrs:{type:"text",id:"cardName",focus:t.focusInput,blur:t.blurInput,"data-ref":"cardName",autocomplete:"off",placeholder:this.$t("creditcard.placeholders.card-holder")},domProps:{value:t.cardName},on:{input:[function(e){e.target.composing||(t.cardName=e.target.value)},function(e){return t.clearErrors("cc_name")}]}}),t._v(" "),t.hasError("cc_name")?n("div",{class:t.errorsExist("cc_name")?"error-message":""},[n("span",[t._v(t._s(t.getFirstError("cc_name")))])]):t._e()]),t._v(" "),n("div",{staticClass:"card-form__row"},[n("div",{staticClass:"card-form__col"},[n("div",{staticClass:"card-form__group"},[n("label",{staticClass:"card-input__label",attrs:{for:"cardMonth"}},[t._v(t._s(t.$t("creditcard.exp")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.cardMonth,expression:"cardMonth"}],staticClass:"card-input__input -select",attrs:{id:"cardMonth",focus:t.focusInput,"data-ref":"cardDate"},on:{blur:t.blurInput,change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cardMonth=e.target.multiple?n:n[0]},function(e){return t.clearErrors("cc_exp_month")}]}},[n("option",{attrs:{value:"",disabled:"",selected:""}},[t._v(t._s(t.$t("creditcard.placeholders.exp-month")))]),t._v(" "),t._l(12,(function(e){return n("option",{key:e,attrs:{disabled:e0},header:function(){return"CreditCard"===this.type?"":"modal-card-head"},inner_container:function(){return"Login"===this.type?"inner-login-container":"inner-modal-container"},showIcon:function(){return"CreditCard"!==this.type},title:function(){return this.$store.state.modal.title},type:function(){return this.$store.state.modal.type}},methods:{action:function(){var t,e=this;return(t=y.a.mark((function t(){return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.processing=!0,t.next=3,e.$store.dispatch(e.$store.state.modal.action);case 3:e.processing=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){Ol(o,i,r,a,s,"next",t)}function s(t){Ol(o,i,r,a,s,"throw",t)}a(void 0)}))})()},close:function(){this.$store.commit("hideModal")}}},Dl=(n("4SqR"),Object(Ai.a)(Pl,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"modal"}},[n("div",{staticClass:"modal-mask modal-flex",on:{click:t.close}},[n("div",{class:t.container,on:{click:function(t){t.stopPropagation()}}},[n("header",{class:t.header},[n("p",{directives:[{name:"show",rawName:"v-show",value:t.hasSelected,expression:"hasSelected"}],staticClass:"top-left"},[t._v(t._s(t.getSelectedCount))]),t._v(" "),n("p",{staticClass:"modal-card-title"},[t._v(t._s(t.title))]),t._v(" "),n("i",{directives:[{name:"show",rawName:"v-show",value:t.showIcon,expression:"showIcon"}],staticClass:"fa fa-times close-login",on:{click:t.close}})]),t._v(" "),n(t.type,{tag:"component",class:t.inner_container})],1)])])}),[],!1,null,"6427d010",null).exports),Al={props:["showEmailConfirmed"],methods:{hideEmailConfirmedBanner:function(){this.showEmailConfirmed=!1}}},Il=(n("meck"),Object(Ai.a)(Al,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{directives:[{name:"show",rawName:"v-show",value:this.showEmailConfirmed,expression:"showEmailConfirmed"}],staticClass:"notification is-success",attrs:{id:"emaildiv"}},[e("div",{staticClass:"welcome-msg"},[this._v(this._s(this.$t("home.welcome.verified")))]),this._v(" "),e("div",[e("span",{staticClass:"icon is-small mt-1",on:{click:this.hideEmailConfirmedBanner}},[e("a",{staticClass:"delete"})])])])}),[],!1,null,"e1811b0a",null).exports),Nl={name:"Unsubscribed",props:["showUnsubscribed"],methods:{hide:function(){this.showUnsubscribed=!1}}},Rl=(n("jiCS"),{name:"RootContainer",props:["auth","user","verified","unsub"],components:{Nav:ul,Modal:Dl,WelcomeBanner:Il,Unsubscribed:Object(Ai.a)(Nl,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{directives:[{name:"show",rawName:"v-show",value:this.showUnsubscribed,expression:"showUnsubscribed"}],staticClass:"notification is-success",attrs:{id:"emaildiv"}},[e("div",{staticClass:"welcome-msg"},[this._v("You have unsubscribed from the good news! Hope you check back again soon.")]),this._v(" "),e("div",[e("span",{staticClass:"icon is-small mt-1",on:{click:this.hide}},[e("a",{staticClass:"delete"})])])])}),[],!1,null,"079ce05b",null).exports},data:function(){return{showEmailConfirmed:!1,showUnsubscribed:!1}},created:function(){if(this.$localStorage.get("lang")&&(this.$i18n.locale=this.$localStorage.get("lang")),this.auth){if(this.$store.commit("login"),this.user){var t=JSON.parse(this.user);this.$store.commit("initUser",t),this.$store.commit("set_default_litter_presence",t.items_remaining)}}else this.$store.commit("resetState");this.verified&&(this.showEmailConfirmed=!0),this.unsub&&(this.showUnsubscribed=!0)},computed:{modal:function(){return this.$store.state.modal.show}}}),jl=(n("N8X+"),Object(Ai.a)(Rl,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"root-container"},[e("Nav"),this._v(" "),e("WelcomeBanner",{attrs:{showEmailConfirmed:this.showEmailConfirmed}}),this._v(" "),e("Unsubscribed",{attrs:{showUnsubscribed:this.showUnsubscribed}}),this._v(" "),e("Modal",{directives:[{name:"show",rawName:"v-show",value:this.modal,expression:"modal"}]}),this._v(" "),e("router-view")],1)}),[],!1,null,"0a8e9974",null).exports);n("9Wh1"),window.axios=a.a,r.a.use(nl),r.a.use(fe),r.a.use(Vn.a),r.a.use(qn),r.a.use(Xn.a,{theme:"dark",errorDuration:5e3}),r.a.use(Ri),r.a.use(zi.a,window.Echo),r.a.use(rl.a),r.a.use(ol),r.a.filter("commas",(function(t){return parseInt(t).toLocaleString()}));new r.a({el:"#app",store:Hn,router:ke,i18n:_.a,components:{RootContainer:jl}})},bXm7:function(t,e,n){!function(t){"use strict";var e={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};t.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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},bYM6:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},bZU1:function(t,e,n){"use strict";var i=n("wfSq");n.n(i).a},bpih:function(t,e,n){!function(t){"use strict";t.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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",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}})}(n("wd/R"))},bvo4:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.medal-container[data-v-ec586d62] {\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative\n}\n.medal[data-v-ec586d62] {\n height: 1em;\n position: absolute;\n left: 2em;\n}\n.my-teams-container[data-v-ec586d62] {\n padding: 0 1em;\n}\n.team-active[data-v-ec586d62] {\n background-color: #2ecc71;\n padding: 0.5em 1em;\n border-radius: 10px;\n}\n.team-inactive[data-v-ec586d62] {\n background-color: #e67e22;\n padding: 0.5em 1em;\n border-radius: 10px;\n}\n\n",""])},bxKX:function(t,e,n){!function(t){"use strict";t.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(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(n("wd/R"))},c8dv:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"#hexmap[data-v-6a8ffb7c] {\n height: 100%;\n margin: 0;\n position: relative;\n z-index: 0;\n}\n.leaflet-popup-content[data-v-6a8ffb7c] {\n margin: 0 20px !important;\n}\n.lim[data-v-6a8ffb7c] {\n max-width: 100%;\n padding-top: 1em;\n}",""])},cJYt:function(t){t.exports=JSON.parse('{"toggle-email":"Modificar suscripción de correo electrónico","we-send-updates":"De vez en cuando, enviamos correos electrónicos con actualizaciones y buenas noticias.","subscribe":"Puedes suscribirte o darte de baja de nuestros correos aquí.","current-status":"Estado Actual","change-status":"Cambiar estado"}')},cN6q:function(t,e,n){"use strict";var i=n("EL+l");n.n(i).a},cRix:function(t,e,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},cVA9:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.ref-title[data-v-9dc83494] {\n font-size: 2em;\n font-weight: 600;\n}\n\n",""])},cVq0:function(t,e,n){"use strict";var i=n("CJub");n.n(i).a},cXOZ:function(t){t.exports=JSON.parse('{"delete-account":"Verwijder mijn account","delete-account?":"Wil je je account verwijderen?","enter-password":"Geef je wachtwoord"}')},czMo:function(t,e,n){!function(t){"use strict";t.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",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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(n("wd/R"))},"d+iy":function(t,e,n){"use strict";var i=n("W6Pv");n.n(i).a},dNwA:function(t,e,n){!function(t){"use strict";t.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 A",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:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("wd/R"))},diqR:function(t){t.exports=JSON.parse('{"allowed-to-create":"You are allowed to create {teams} team(s)","what-kind-of-team":"What kind of Team would you like to create?","team-type":"Team Type","team-name":"Team Name","my-awesome-team-placeholder":"My Awesome Team","unique-team-id":"Unique Team Identifier","id-to-join-team":"Anyone with this ID will be able to join your team.","create-team":"Create Team","created":"Congratulations! Your new team has been created.","fail":"There was an error creating your Team","max-created":"You are not allowed to create any more teams."}')},dvjZ:function(t,e,n){var i=n("oUSK");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},dxLh:function(t){t.exports=JSON.parse('{"enter-team-identifier":"Wprowadź identyfikator, aby dołączyć do drużyny.","team-identifier":"Dołącz do drużyny przez jej identyfikator","enter-id-to-join-placeholder":"Wpisz identyfikator, aby dołączyć do drużyny","join-team":"Dołącz do drużyny"}')},"e+ae":function(t,e,n){!function(t){"use strict";var e="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(t){return t>1&&t<5}function r(t,e,n,r){var o=t+" ";switch(n){case"s":return e||r?"pár sekúnd":"pár sekundami";case"ss":return e||r?o+(i(t)?"sekundy":"sekúnd"):o+"sekundami";case"m":return e?"minúta":r?"minútu":"minútou";case"mm":return e||r?o+(i(t)?"minúty":"minút"):o+"minútami";case"h":return e?"hodina":r?"hodinu":"hodinou";case"hh":return e||r?o+(i(t)?"hodiny":"hodín"):o+"hodinami";case"d":return e||r?"deň":"dňom";case"dd":return e||r?o+(i(t)?"dni":"dní"):o+"dňami";case"M":return e||r?"mesiac":"mesiacom";case"MM":return e||r?o+(i(t)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return e||r?"rok":"rokom";case"yy":return e||r?o+(i(t)?"roky":"rokov"):o+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:n,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}})}(n("wd/R"))},e7o3:function(t){t.exports=JSON.parse('{"allowed-to-create":"Je mag {teams} team(s) aanmaken","what-kind-of-team":"Wat voor soort team wil je aanmaken?","team-type":"Team Type","team-name":"Team Naam","my-awesome-team-placeholder":"Mijn Geweldige Team","unique-team-id":"Uniek Kenmerk van het team","id-to-join-team":"Iedereen met dit kenmerk kan zich aansluiten bij jouw team.","create-team":"Maak Team Aan","created":"Gefeliciteerd! Je nieuwe team is aangemaakt.","fail":"Er ging iets mis bij het aanmaken van jouw Team","max-created":"Het maximum aantal teams dat je kunt aanmaken is bereikt."}')},eC5B:function(t,e,n){var i;i=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){"use strict";var i=n(1);t.exports=i.default},function(t,e,n){"use strict";var i=n(2),r=n(9),o=n(24),a=n(39),s=n(40),l=n(41),u=n(12),c=n(5),d=n(71),h=n(8),f=n(43),p=n(14),m=function(){function t(e,n){var u=this;if(function(t){if(null==t)throw"You must pass your app key when you instantiate Pusher."}(e),!(n=n||{}).cluster&&!n.wsHost&&!n.httpHost){var m=p.default.buildLogSuffix("javascriptQuickStart");h.default.warn("You should always specify a cluster when connecting. "+m)}this.key=e,this.config=r.extend(d.getGlobalConfig(),n.cluster?d.getClusterConfig(n.cluster):{},n),this.channels=f.default.createChannels(),this.global_emitter=new o.default,this.sessionID=Math.floor(1e9*Math.random()),this.timeline=new a.default(this.key,this.sessionID,{cluster:this.config.cluster,features:t.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:s.default.INFO,version:c.default.VERSION}),this.config.disableStats||(this.timelineSender=f.default.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+i.default.TimelineTransport.name})),this.connection=f.default.createConnectionManager(this.key,r.extend({getStrategy:function(t){var e=r.extend({},u.config,t);return l.build(i.default.getDefaultStrategy(e),e)},timeline:this.timeline,activityTimeout:this.config.activity_timeout,pongTimeout:this.config.pong_timeout,unavailableTimeout:this.config.unavailable_timeout},this.config,{useTLS:this.shouldUseTLS()})),this.connection.bind("connected",(function(){u.subscribeAll(),u.timelineSender&&u.timelineSender.send(u.connection.isUsingTLS())})),this.connection.bind("message",(function(t){var e=0===t.event.indexOf("pusher_internal:");if(t.channel){var n=u.channel(t.channel);n&&n.handleEvent(t)}e||u.global_emitter.emit(t.event,t.data)})),this.connection.bind("connecting",(function(){u.channels.disconnect()})),this.connection.bind("disconnected",(function(){u.channels.disconnect()})),this.connection.bind("error",(function(t){h.default.warn("Error",t)})),t.instances.push(this),this.timeline.info({instances:t.instances.length}),t.isReady&&this.connect()}return t.ready=function(){t.isReady=!0;for(var e=0,n=t.instances.length;e0)i.loading[t].push(n);else{i.loading[t]=[n];var o=r.default.createScriptRequest(i.getPath(t,e)),a=i.receivers.create((function(e){if(i.receivers.remove(a),i.loading[t]){var n=i.loading[t];delete i.loading[t];for(var r=function(t){t||o.cleanup()},s=0;s>>6)+i(128|63&e):i(224|e>>>12&15)+i(128|e>>>6&63)+i(128|63&e)},u=function(t){return t.replace(/[^\x00-\x7F]/g,l)},c=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[r.charAt(n>>>18),r.charAt(n>>>12&63),e>=2?"=":r.charAt(n>>>6&63),e>=1?"=":r.charAt(63&n)].join("")},d=window.btoa||function(t){return t.replace(/[\s\S]{1,3}/g,c)}},function(t,e,n){"use strict";var i=n(12),r={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(t){return new i.OneOffTimer(0,t)},method:function(t){for(var e=[],n=1;n0)for(i=0;i0&&t.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText),t.emit("finished",200),t.close()},e},abortRequest:function(t){t.ontimeout=t.onerror=t.onprogress=t.onload=null,t.abort()}};e.__esModule=!0,e.default=r},function(t,e){"use strict";var n=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function i(){this.constructor=t}t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},i=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(Error);e.BadEventName=i;var r=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(Error);e.RequestTimedOut=r;var o=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(Error);e.TransportPriorityTooLow=o;var a=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(Error);e.TransportClosed=a;var s=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(Error);e.UnsupportedFeature=s;var l=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(Error);e.UnsupportedTransport=l;var u=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(Error);e.UnsupportedStrategy=u},function(t,e,n){"use strict";var i=n(33),r=n(34),o=n(36),a=n(37),s=n(38),l={createStreamingSocket:function(t){return this.createSocket(o.default,t)},createPollingSocket:function(t){return this.createSocket(a.default,t)},createSocket:function(t,e){return new r.default(t,e)},createXHR:function(t,e){return this.createRequest(s.default,t,e)},createRequest:function(t,e,n){return new i.default(t,e,n)}};e.__esModule=!0,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function i(){this.constructor=t}t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},r=n(2),o=n(24),a=function(t){function e(e,n,i){t.call(this),this.hooks=e,this.method=n,this.url=i}return i(e,t),e.prototype.start=function(t){var e=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){e.close()},r.default.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(t)},e.prototype.close=function(){this.unloader&&(r.default.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},e.prototype.onChunk=function(t,e){for(;;){var n=this.advanceBuffer(e);if(!n)break;this.emit("chunk",{status:t,data:n})}this.isBufferTooLong(e)&&this.emit("buffer_too_long")},e.prototype.advanceBuffer=function(t){var e=t.slice(this.position),n=e.indexOf("\n");return-1!==n?(this.position+=n+1,e.slice(0,n)):null},e.prototype.isBufferTooLong=function(t){return this.position===t.length&&t.length>262144},e}(o.default);e.__esModule=!0,e.default=a},function(t,e,n){"use strict";var i=n(35),r=n(11),o=n(2),a=1,s=function(){function t(t,e){this.hooks=t,this.session=u(1e3)+"/"+function(t){for(var e=[],n=0;n0&&t.onChunk(e.status,e.responseText);break;case 4:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText),t.emit("finished",e.status),t.close()}},e},abortRequest:function(t){t.onreadystatechange=null,t.abort()}};e.__esModule=!0,e.default=r},function(t,e,n){"use strict";var i=n(9),r=n(11),o=n(40),a=function(){function t(t,e,n){this.key=t,this.session=e,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}return t.prototype.log=function(t,e){t<=this.options.level&&(this.events.push(i.extend({},e,{timestamp:r.default.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},t.prototype.error=function(t){this.log(o.default.ERROR,t)},t.prototype.info=function(t){this.log(o.default.INFO,t)},t.prototype.debug=function(t){this.log(o.default.DEBUG,t)},t.prototype.isEmpty=function(){return 0===this.events.length},t.prototype.send=function(t,e){var n=this,r=i.extend({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],t(r,(function(t,i){t||n.sent++,e&&e(t,i)})),!0},t.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},t}();e.__esModule=!0,e.default=a},function(t,e){"use strict";var n;!function(t){t[t.ERROR=3]="ERROR",t[t.INFO=6]="INFO",t[t.DEBUG=7]="DEBUG"}(n||(n={})),e.__esModule=!0,e.default=n},function(t,e,n){"use strict";var i=n(9),r=n(11),o=n(42),a=n(31),s=n(64),l=n(65),u=n(66),c=n(67),d=n(68),h=n(69),f=n(70),p=n(2).default.Transports;e.build=function(t,e){return w(t,i.extend({},v,e))[1].strategy};var m={isSupported:function(){return!1},connect:function(t,e){var n=r.default.defer((function(){e(new a.UnsupportedStrategy)}));return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}};function g(t){return function(e){return[t.apply(this,arguments),e]}}var v={extend:function(t,e,n){return[i.extend({},e,n),t]},def:function(t,e,n){if(void 0!==t[e])throw"Redefining symbol "+e;return t[e]=n,[void 0,t]},def_transport:function(t,e,n,r,o,l){var u,c=p[n];if(!c)throw new a.UnsupportedTransport(n);u=t.enabledTransports&&-1===i.arrayIndexOf(t.enabledTransports,e)||t.disabledTransports&&-1!==i.arrayIndexOf(t.disabledTransports,e)?m:new s.default(e,r,l?l.getAssistant(c):c,i.extend({key:t.key,useTLS:t.useTLS,timeline:t.timeline,ignoreNullOrigin:t.ignoreNullOrigin},o));var d=t.def(t,e,u)[1];return d.Transports=t.Transports||{},d.Transports[e]=u,[void 0,d]},transport_manager:g((function(t,e){return new o.default(e)})),sequential:g((function(t,e){var n=Array.prototype.slice.call(arguments,2);return new l.default(n,e)})),cached:g((function(t,e,n){return new c.default(n,t.Transports,{ttl:e,timeline:t.timeline,useTLS:t.useTLS})})),first_connected:g((function(t,e){return new f.default(e)})),best_connected_ever:g((function(){var t=Array.prototype.slice.call(arguments,1);return new u.default(t)})),delayed:g((function(t,e,n){return new d.default(n,{delay:e})})),if:g((function(t,e,n,i){return new h.default(e,n,i)})),is_supported:g((function(t,e){return function(){return e.isSupported()}}))};function y(t){return"string"==typeof t&&":"===t.charAt(0)}function _(t,e){return e[t.slice(1)]}function b(t,e){if(y(t[0])){var n=_(t[0],e);if(t.length>1){if("function"!=typeof n)throw"Calling non-function "+t[0];var r=[i.extend({},e)].concat(i.map(t.slice(1),(function(t){return w(t,i.extend({},e))[0]})));return n.apply(this,r)}return[n,e]}return function t(e,n){if(0===e.length)return[[],n];var i=w(e[0],n),r=t(e.slice(1),i[1]);return[[i[0]].concat(r[0]),r[1]]}(t,e)}function w(t,e){return"string"==typeof t?function(t,e){if(!y(t))return[t,e];var n=_(t,e);if(void 0===n)throw"Undefined symbol "+t;return[n,e]}(t,e):"object"==typeof t&&t instanceof Array&&t.length>0?b(t,e):[t,e]}},function(t,e,n){"use strict";var i=n(43),r=function(){function t(t){this.options=t||{},this.livesLeft=this.options.lives||1/0}return t.prototype.getAssistant=function(t){return i.default.createAssistantToTheTransportManager(this,t,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},t.prototype.isAlive=function(){return this.livesLeft>0},t.prototype.reportDeath=function(){this.livesLeft-=1},t}();e.__esModule=!0,e.default=r},function(t,e,n){"use strict";var i=n(44),r=n(45),o=n(48),a=n(49),s=n(50),l=n(51),u=n(54),c=n(52),d=n(62),h=n(63),f={createChannels:function(){return new h.default},createConnectionManager:function(t,e){return new d.default(t,e)},createChannel:function(t,e){return new c.default(t,e)},createPrivateChannel:function(t,e){return new l.default(t,e)},createPresenceChannel:function(t,e){return new s.default(t,e)},createEncryptedChannel:function(t,e){return new u.default(t,e)},createTimelineSender:function(t,e){return new a.default(t,e)},createAuthorizer:function(t,e){return e.authorizer?e.authorizer(t,e):new o.default(t,e)},createHandshake:function(t,e){return new r.default(t,e)},createAssistantToTheTransportManager:function(t,e,n){return new i.default(t,e,n)}};e.__esModule=!0,e.default=f},function(t,e,n){"use strict";var i=n(11),r=n(9),o=function(){function t(t,e,n){this.manager=t,this.transport=e,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}return t.prototype.createConnection=function(t,e,n,o){var a=this;o=r.extend({},o,{activityTimeout:this.pingDelay});var s=this.transport.createConnection(t,e,n,o),l=null,u=function(){s.unbind("open",u),s.bind("closed",c),l=i.default.now()},c=function(t){if(s.unbind("closed",c),1002===t.code||1003===t.code)a.manager.reportDeath();else if(!t.wasClean&&l){var e=i.default.now()-l;e<2*a.maxPingDelay&&(a.manager.reportDeath(),a.pingDelay=Math.max(e/2,a.minPingDelay))}};return s.bind("open",u),s},t.prototype.isSupported=function(t){return this.manager.isAlive()&&this.transport.isSupported(t)},t}();e.__esModule=!0,e.default=o},function(t,e,n){"use strict";var i=n(9),r=n(46),o=n(47),a=function(){function t(t,e){this.transport=t,this.callback=e,this.bindListeners()}return t.prototype.close=function(){this.unbindListeners(),this.transport.close()},t.prototype.bindListeners=function(){var t=this;this.onMessage=function(e){var n;t.unbindListeners();try{n=r.processHandshake(e)}catch(e){return t.finish("error",{error:e}),void t.transport.close()}"connected"===n.action?t.finish("connected",{connection:new o.default(n.id,t.transport),activityTimeout:n.activityTimeout}):(t.finish(n.action,{error:n.error}),t.transport.close())},this.onClosed=function(e){t.unbindListeners();var n=r.getCloseAction(e)||"backoff",i=r.getCloseError(e);t.finish(n,{error:i})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},t.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},t.prototype.finish=function(t,e){this.callback(i.extend({transport:this.transport,action:t},e))},t}();e.__esModule=!0,e.default=a},function(t,e){"use strict";e.decodeMessage=function(t){try{var e=JSON.parse(t.data),n=e.data;if("string"==typeof n)try{n=JSON.parse(e.data)}catch(t){}var i={event:e.event,channel:e.channel,data:n};return e.user_id&&(i.user_id=e.user_id),i}catch(e){throw{type:"MessageParseError",error:e,data:t.data}}},e.encodeMessage=function(t){return JSON.stringify(t)},e.processHandshake=function(t){var n=e.decodeMessage(t);if("pusher:connection_established"===n.event){if(!n.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:n.data.socket_id,activityTimeout:1e3*n.data.activity_timeout}}if("pusher:error"===n.event)return{action:this.getCloseAction(n.data),error:this.getCloseError(n.data)};throw"Invalid handshake"},e.getCloseAction=function(t){return t.code<4e3?t.code>=1002&&t.code<=1004?"backoff":null:4e3===t.code?"tls_only":t.code<4100?"refused":t.code<4200?"backoff":t.code<4300?"retry":"refused"},e.getCloseError=function(t){return 1e3!==t.code&&1001!==t.code?{type:"PusherError",data:{code:t.code,message:t.reason||t.message}}:null}},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function i(){this.constructor=t}t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},r=n(9),o=n(24),a=n(46),s=n(8),l=function(t){function e(e,n){t.call(this),this.id=e,this.transport=n,this.activityTimeout=n.activityTimeout,this.bindListeners()}return i(e,t),e.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},e.prototype.send=function(t){return this.transport.send(t)},e.prototype.send_event=function(t,e,n){var i={event:t,data:e};return n&&(i.channel=n),s.default.debug("Event sent",i),this.send(a.encodeMessage(i))},e.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},e.prototype.close=function(){this.transport.close()},e.prototype.bindListeners=function(){var t=this,e={message:function(e){var n;try{n=a.decodeMessage(e)}catch(n){t.emit("error",{type:"MessageParseError",error:n,data:e.data})}if(void 0!==n){switch(s.default.debug("Event recd",n),n.event){case"pusher:error":t.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":t.emit("ping");break;case"pusher:pong":t.emit("pong")}t.emit("message",n)}},activity:function(){t.emit("activity")},error:function(e){t.emit("error",{type:"WebSocketError",error:e})},closed:function(e){n(),e&&e.code&&t.handleCloseEvent(e),t.transport=null,t.emit("closed")}},n=function(){r.objectApply(e,(function(e,n){t.transport.unbind(n,e)}))};r.objectApply(e,(function(e,n){t.transport.bind(n,e)}))},e.prototype.handleCloseEvent=function(t){var e=a.getCloseAction(t),n=a.getCloseError(t);n&&this.emit("error",n),e&&this.emit(e,{action:e,error:n})},e}(o.default);e.__esModule=!0,e.default=l},function(t,e,n){"use strict";var i=n(2),r=function(){function t(t,e){this.channel=t;var n=e.authTransport;if(void 0===i.default.getAuthorizers()[n])throw"'"+n+"' is not a recognized auth transport";this.type=n,this.options=e,this.authOptions=(e||{}).auth||{}}return t.prototype.composeQuery=function(t){var e="socket_id="+encodeURIComponent(t)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)e+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return e},t.prototype.authorize=function(e,n){return t.authorizers=t.authorizers||i.default.getAuthorizers(),t.authorizers[this.type].call(this,i.default,e,n)},t}();e.__esModule=!0,e.default=r},function(t,e,n){"use strict";var i=n(2),r=function(){function t(t,e){this.timeline=t,this.options=e||{}}return t.prototype.send=function(t,e){this.timeline.isEmpty()||this.timeline.send(i.default.TimelineTransport.getAgent(this,t),e)},t}();e.__esModule=!0,e.default=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function i(){this.constructor=t}t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},r=n(51),o=n(8),a=n(53),s=n(14),l=function(t){function e(e,n){t.call(this,e,n),this.members=new a.default}return i(e,t),e.prototype.authorize=function(e,n){var i=this;t.prototype.authorize.call(this,e,(function(t,e){if(!t){if(void 0===e.channel_data){var r=s.default.buildLogSuffix("authenticationEndpoint");return o.default.warn("Invalid auth response for channel '"+i.name+"',expected 'channel_data' field. "+r),void n("Invalid auth response")}var a=JSON.parse(e.channel_data);i.members.setMyID(a.user_id)}n(t,e)}))},e.prototype.handleEvent=function(t){var e=t.event;if(0===e.indexOf("pusher_internal:"))this.handleInternalEvent(t);else{var n=t.data,i={};t.user_id&&(i.user_id=t.user_id),this.emit(e,n,i)}},e.prototype.handleInternalEvent=function(t){var e=t.event,n=t.data;switch(e){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(t);break;case"pusher_internal:member_added":var i=this.members.addMember(n);this.emit("pusher:member_added",i);break;case"pusher_internal:member_removed":var r=this.members.removeMember(n);r&&this.emit("pusher:member_removed",r)}},e.prototype.handleSubscriptionSucceededEvent=function(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(t.data),this.emit("pusher:subscription_succeeded",this.members))},e.prototype.disconnect=function(){this.members.reset(),t.prototype.disconnect.call(this)},e}(r.default);e.__esModule=!0,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function i(){this.constructor=t}t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},r=n(43),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.authorize=function(t,e){return r.default.createAuthorizer(this,this.pusher.config).authorize(t,e)},e}(n(52).default);e.__esModule=!0,e.default=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function i(){this.constructor=t}t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},r=n(24),o=n(31),a=n(8),s=n(14),l=function(t){function e(e,n){t.call(this,(function(t,n){a.default.debug("No callbacks on "+e+" for "+t)})),this.name=e,this.pusher=n,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}return i(e,t),e.prototype.authorize=function(t,e){return e(!1,{})},e.prototype.trigger=function(t,e){if(0!==t.indexOf("client-"))throw new o.BadEventName("Event '"+t+"' does not start with 'client-'");if(!this.subscribed){var n=s.default.buildLogSuffix("triggeringClientEvents");a.default.warn("Client event triggered before channel 'subscription_succeeded' event . "+n)}return this.pusher.send_event(t,e,this.name)},e.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},e.prototype.handleEvent=function(t){var e=t.event,n=t.data;"pusher_internal:subscription_succeeded"===e?this.handleSubscriptionSucceededEvent(t):0!==e.indexOf("pusher_internal:")&&this.emit(e,n,{})},e.prototype.handleSubscriptionSucceededEvent=function(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",t.data)},e.prototype.subscribe=function(){var t=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(function(e,n){e?t.emit("pusher:subscription_error",n):t.pusher.send_event("pusher:subscribe",{auth:n.auth,channel_data:n.channel_data,channel:t.name})})))},e.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},e.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},e.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},e}(r.default);e.__esModule=!0,e.default=l},function(t,e,n){"use strict";var i=n(9),r=function(){function t(){this.reset()}return t.prototype.get=function(t){return Object.prototype.hasOwnProperty.call(this.members,t)?{id:t,info:this.members[t]}:null},t.prototype.each=function(t){var e=this;i.objectApply(this.members,(function(n,i){t(e.get(i))}))},t.prototype.setMyID=function(t){this.myID=t},t.prototype.onSubscription=function(t){this.members=t.presence.hash,this.count=t.presence.count,this.me=this.get(this.myID)},t.prototype.addMember=function(t){return null===this.get(t.user_id)&&this.count++,this.members[t.user_id]=t.user_info,this.get(t.user_id)},t.prototype.removeMember=function(t){var e=this.get(t.user_id);return e&&(delete this.members[t.user_id],this.count--),e},t.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},t}();e.__esModule=!0,e.default=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function i(){this.constructor=t}t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},r=n(51),o=n(31),a=n(8),s=n(55),l=n(57),u=function(t){function e(){t.apply(this,arguments),this.key=null}return i(e,t),e.prototype.authorize=function(e,n){var i=this;t.prototype.authorize.call(this,e,(function(t,e){if(t)n(!0,e);else{var r=e.shared_secret;if(!r){var o="No shared_secret key in auth payload for encrypted channel: "+i.name;return n(!0,o),void a.default.warn("Error: "+o)}i.key=l.decodeBase64(r),delete e.shared_secret,n(!1,e)}}))},e.prototype.trigger=function(t,e){throw new o.UnsupportedFeature("Client events are not currently supported for encrypted channels")},e.prototype.handleEvent=function(e){var n=e.event,i=e.data;0!==n.indexOf("pusher_internal:")&&0!==n.indexOf("pusher:")?this.handleEncryptedEvent(n,i):t.prototype.handleEvent.call(this,e)},e.prototype.handleEncryptedEvent=function(t,e){var n=this;if(this.key)if(e.ciphertext&&e.nonce){var i=l.decodeBase64(e.ciphertext);if(i.length>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n,t[e+4]=i>>24&255,t[e+5]=i>>16&255,t[e+6]=i>>8&255,t[e+7]=255&i}function m(t,e,n,i,r){var o,a=0;for(o=0;o>>8)-1}function g(t,e,n,i){return m(t,e,n,i,16)}function v(t,e,n,i){return m(t,e,n,i,32)}function y(t,e,n,i){!function(t,e,n,i){for(var r,o=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,d=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,f=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,m=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,_=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,b=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,w=o,x=a,k=s,C=l,L=u,S=c,M=d,T=h,E=f,O=p,P=m,D=g,A=v,I=y,N=_,R=b,j=0;j<20;j+=2)w^=(r=(A^=(r=(E^=(r=(L^=(r=w+A|0)<<7|r>>>25)+w|0)<<9|r>>>23)+L|0)<<13|r>>>19)+E|0)<<18|r>>>14,S^=(r=(x^=(r=(I^=(r=(O^=(r=S+x|0)<<7|r>>>25)+S|0)<<9|r>>>23)+O|0)<<13|r>>>19)+I|0)<<18|r>>>14,P^=(r=(M^=(r=(k^=(r=(N^=(r=P+M|0)<<7|r>>>25)+P|0)<<9|r>>>23)+N|0)<<13|r>>>19)+k|0)<<18|r>>>14,R^=(r=(D^=(r=(T^=(r=(C^=(r=R+D|0)<<7|r>>>25)+R|0)<<9|r>>>23)+C|0)<<13|r>>>19)+T|0)<<18|r>>>14,w^=(r=(C^=(r=(k^=(r=(x^=(r=w+C|0)<<7|r>>>25)+w|0)<<9|r>>>23)+x|0)<<13|r>>>19)+k|0)<<18|r>>>14,S^=(r=(L^=(r=(T^=(r=(M^=(r=S+L|0)<<7|r>>>25)+S|0)<<9|r>>>23)+M|0)<<13|r>>>19)+T|0)<<18|r>>>14,P^=(r=(O^=(r=(E^=(r=(D^=(r=P+O|0)<<7|r>>>25)+P|0)<<9|r>>>23)+D|0)<<13|r>>>19)+E|0)<<18|r>>>14,R^=(r=(N^=(r=(I^=(r=(A^=(r=R+N|0)<<7|r>>>25)+R|0)<<9|r>>>23)+A|0)<<13|r>>>19)+I|0)<<18|r>>>14;w=w+o|0,x=x+a|0,k=k+s|0,C=C+l|0,L=L+u|0,S=S+c|0,M=M+d|0,T=T+h|0,E=E+f|0,O=O+p|0,P=P+m|0,D=D+g|0,A=A+v|0,I=I+y|0,N=N+_|0,R=R+b|0,t[0]=w>>>0&255,t[1]=w>>>8&255,t[2]=w>>>16&255,t[3]=w>>>24&255,t[4]=x>>>0&255,t[5]=x>>>8&255,t[6]=x>>>16&255,t[7]=x>>>24&255,t[8]=k>>>0&255,t[9]=k>>>8&255,t[10]=k>>>16&255,t[11]=k>>>24&255,t[12]=C>>>0&255,t[13]=C>>>8&255,t[14]=C>>>16&255,t[15]=C>>>24&255,t[16]=L>>>0&255,t[17]=L>>>8&255,t[18]=L>>>16&255,t[19]=L>>>24&255,t[20]=S>>>0&255,t[21]=S>>>8&255,t[22]=S>>>16&255,t[23]=S>>>24&255,t[24]=M>>>0&255,t[25]=M>>>8&255,t[26]=M>>>16&255,t[27]=M>>>24&255,t[28]=T>>>0&255,t[29]=T>>>8&255,t[30]=T>>>16&255,t[31]=T>>>24&255,t[32]=E>>>0&255,t[33]=E>>>8&255,t[34]=E>>>16&255,t[35]=E>>>24&255,t[36]=O>>>0&255,t[37]=O>>>8&255,t[38]=O>>>16&255,t[39]=O>>>24&255,t[40]=P>>>0&255,t[41]=P>>>8&255,t[42]=P>>>16&255,t[43]=P>>>24&255,t[44]=D>>>0&255,t[45]=D>>>8&255,t[46]=D>>>16&255,t[47]=D>>>24&255,t[48]=A>>>0&255,t[49]=A>>>8&255,t[50]=A>>>16&255,t[51]=A>>>24&255,t[52]=I>>>0&255,t[53]=I>>>8&255,t[54]=I>>>16&255,t[55]=I>>>24&255,t[56]=N>>>0&255,t[57]=N>>>8&255,t[58]=N>>>16&255,t[59]=N>>>24&255,t[60]=R>>>0&255,t[61]=R>>>8&255,t[62]=R>>>16&255,t[63]=R>>>24&255}(t,e,n,i)}function _(t,e,n,i){!function(t,e,n,i){for(var r,o=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,d=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,f=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,m=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,_=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,b=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,w=0;w<20;w+=2)o^=(r=(v^=(r=(f^=(r=(u^=(r=o+v|0)<<7|r>>>25)+o|0)<<9|r>>>23)+u|0)<<13|r>>>19)+f|0)<<18|r>>>14,c^=(r=(a^=(r=(y^=(r=(p^=(r=c+a|0)<<7|r>>>25)+c|0)<<9|r>>>23)+p|0)<<13|r>>>19)+y|0)<<18|r>>>14,m^=(r=(d^=(r=(s^=(r=(_^=(r=m+d|0)<<7|r>>>25)+m|0)<<9|r>>>23)+_|0)<<13|r>>>19)+s|0)<<18|r>>>14,b^=(r=(g^=(r=(h^=(r=(l^=(r=b+g|0)<<7|r>>>25)+b|0)<<9|r>>>23)+l|0)<<13|r>>>19)+h|0)<<18|r>>>14,o^=(r=(l^=(r=(s^=(r=(a^=(r=o+l|0)<<7|r>>>25)+o|0)<<9|r>>>23)+a|0)<<13|r>>>19)+s|0)<<18|r>>>14,c^=(r=(u^=(r=(h^=(r=(d^=(r=c+u|0)<<7|r>>>25)+c|0)<<9|r>>>23)+d|0)<<13|r>>>19)+h|0)<<18|r>>>14,m^=(r=(p^=(r=(f^=(r=(g^=(r=m+p|0)<<7|r>>>25)+m|0)<<9|r>>>23)+g|0)<<13|r>>>19)+f|0)<<18|r>>>14,b^=(r=(_^=(r=(y^=(r=(v^=(r=b+_|0)<<7|r>>>25)+b|0)<<9|r>>>23)+v|0)<<13|r>>>19)+y|0)<<18|r>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=c>>>0&255,t[5]=c>>>8&255,t[6]=c>>>16&255,t[7]=c>>>24&255,t[8]=m>>>0&255,t[9]=m>>>8&255,t[10]=m>>>16&255,t[11]=m>>>24&255,t[12]=b>>>0&255,t[13]=b>>>8&255,t[14]=b>>>16&255,t[15]=b>>>24&255,t[16]=d>>>0&255,t[17]=d>>>8&255,t[18]=d>>>16&255,t[19]=d>>>24&255,t[20]=h>>>0&255,t[21]=h>>>8&255,t[22]=h>>>16&255,t[23]=h>>>24&255,t[24]=f>>>0&255,t[25]=f>>>8&255,t[26]=f>>>16&255,t[27]=f>>>24&255,t[28]=p>>>0&255,t[29]=p>>>8&255,t[30]=p>>>16&255,t[31]=p>>>24&255}(t,e,n,i)}var b=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(t,e,n,i,r,o,a){var s,l,u=new Uint8Array(16),c=new Uint8Array(64);for(l=0;l<16;l++)u[l]=0;for(l=0;l<8;l++)u[l]=o[l];for(;r>=64;){for(y(c,u,a,b),l=0;l<64;l++)t[e+l]=n[i+l]^c[l];for(s=1,l=8;l<16;l++)s=s+(255&u[l])|0,u[l]=255&s,s>>>=8;r-=64,e+=64,i+=64}if(r>0)for(y(c,u,a,b),l=0;l=64;){for(y(l,s,r,b),a=0;a<64;a++)t[e+a]=l[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;n-=64,e+=64}if(n>0)for(y(l,s,r,b),a=0;a>>13|n<<3),i=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(n>>>10|i<<6),r=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(i>>>7|r<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(r>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function S(t,e,n,i,r,o){var a=new L(o);return a.update(n,i,r),a.finish(t,e),0}function M(t,e,n,i,r,o){var a=new Uint8Array(16);return S(a,0,n,i,r,o),g(t,e,a,0)}function T(t,e,n,i,r){var o;if(n<32)return-1;for(C(t,0,e,0,n,i,r),S(t,16,t,32,n-32,t),o=0;o<16;o++)t[o]=0;return 0}function E(t,e,n,i,r){var o,a=new Uint8Array(32);if(n<32)return-1;if(k(a,0,32,i,r),0!==M(e,16,e,32,n-32,a))return-1;for(C(t,0,e,0,n,i,r),o=0;o<32;o++)t[o]=0;return 0}function O(t,e){var n;for(n=0;n<16;n++)t[n]=0|e[n]}function P(t){var e,n,i=1;for(e=0;e<16;e++)n=t[e]+i+65535,i=Math.floor(n/65536),t[e]=n-65536*i;t[0]+=i-1+37*(i-1)}function D(t,e,n){for(var i,r=~(n-1),o=0;o<16;o++)i=r&(t[o]^e[o]),t[o]^=i,e[o]^=i}function A(t,n){var i,r,o,a=e(),s=e();for(i=0;i<16;i++)s[i]=n[i];for(P(s),P(s),P(s),r=0;r<2;r++){for(a[0]=s[0]-65517,i=1;i<15;i++)a[i]=s[i]-65535-(a[i-1]>>16&1),a[i-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,D(s,a,1-o)}for(i=0;i<16;i++)t[2*i]=255&s[i],t[2*i+1]=s[i]>>8}function I(t,e){var n=new Uint8Array(32),i=new Uint8Array(32);return A(n,t),A(i,e),v(n,0,i,0)}function N(t){var e=new Uint8Array(32);return A(e,t),1&e[0]}function R(t,e){var n;for(n=0;n<16;n++)t[n]=e[2*n]+(e[2*n+1]<<8);t[15]&=32767}function j(t,e,n){for(var i=0;i<16;i++)t[i]=e[i]+n[i]}function z(t,e,n){for(var i=0;i<16;i++)t[i]=e[i]-n[i]}function Y(t,e,n){var i,r,o=0,a=0,s=0,l=0,u=0,c=0,d=0,h=0,f=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,w=0,x=0,k=0,C=0,L=0,S=0,M=0,T=0,E=0,O=0,P=0,D=0,A=0,I=0,N=0,R=n[0],j=n[1],z=n[2],Y=n[3],F=n[4],B=n[5],$=n[6],H=n[7],U=n[8],V=n[9],W=n[10],G=n[11],q=n[12],Z=n[13],X=n[14],J=n[15];o+=(i=e[0])*R,a+=i*j,s+=i*z,l+=i*Y,u+=i*F,c+=i*B,d+=i*$,h+=i*H,f+=i*U,p+=i*V,m+=i*W,g+=i*G,v+=i*q,y+=i*Z,_+=i*X,b+=i*J,a+=(i=e[1])*R,s+=i*j,l+=i*z,u+=i*Y,c+=i*F,d+=i*B,h+=i*$,f+=i*H,p+=i*U,m+=i*V,g+=i*W,v+=i*G,y+=i*q,_+=i*Z,b+=i*X,w+=i*J,s+=(i=e[2])*R,l+=i*j,u+=i*z,c+=i*Y,d+=i*F,h+=i*B,f+=i*$,p+=i*H,m+=i*U,g+=i*V,v+=i*W,y+=i*G,_+=i*q,b+=i*Z,w+=i*X,x+=i*J,l+=(i=e[3])*R,u+=i*j,c+=i*z,d+=i*Y,h+=i*F,f+=i*B,p+=i*$,m+=i*H,g+=i*U,v+=i*V,y+=i*W,_+=i*G,b+=i*q,w+=i*Z,x+=i*X,k+=i*J,u+=(i=e[4])*R,c+=i*j,d+=i*z,h+=i*Y,f+=i*F,p+=i*B,m+=i*$,g+=i*H,v+=i*U,y+=i*V,_+=i*W,b+=i*G,w+=i*q,x+=i*Z,k+=i*X,C+=i*J,c+=(i=e[5])*R,d+=i*j,h+=i*z,f+=i*Y,p+=i*F,m+=i*B,g+=i*$,v+=i*H,y+=i*U,_+=i*V,b+=i*W,w+=i*G,x+=i*q,k+=i*Z,C+=i*X,L+=i*J,d+=(i=e[6])*R,h+=i*j,f+=i*z,p+=i*Y,m+=i*F,g+=i*B,v+=i*$,y+=i*H,_+=i*U,b+=i*V,w+=i*W,x+=i*G,k+=i*q,C+=i*Z,L+=i*X,S+=i*J,h+=(i=e[7])*R,f+=i*j,p+=i*z,m+=i*Y,g+=i*F,v+=i*B,y+=i*$,_+=i*H,b+=i*U,w+=i*V,x+=i*W,k+=i*G,C+=i*q,L+=i*Z,S+=i*X,M+=i*J,f+=(i=e[8])*R,p+=i*j,m+=i*z,g+=i*Y,v+=i*F,y+=i*B,_+=i*$,b+=i*H,w+=i*U,x+=i*V,k+=i*W,C+=i*G,L+=i*q,S+=i*Z,M+=i*X,T+=i*J,p+=(i=e[9])*R,m+=i*j,g+=i*z,v+=i*Y,y+=i*F,_+=i*B,b+=i*$,w+=i*H,x+=i*U,k+=i*V,C+=i*W,L+=i*G,S+=i*q,M+=i*Z,T+=i*X,E+=i*J,m+=(i=e[10])*R,g+=i*j,v+=i*z,y+=i*Y,_+=i*F,b+=i*B,w+=i*$,x+=i*H,k+=i*U,C+=i*V,L+=i*W,S+=i*G,M+=i*q,T+=i*Z,E+=i*X,O+=i*J,g+=(i=e[11])*R,v+=i*j,y+=i*z,_+=i*Y,b+=i*F,w+=i*B,x+=i*$,k+=i*H,C+=i*U,L+=i*V,S+=i*W,M+=i*G,T+=i*q,E+=i*Z,O+=i*X,P+=i*J,v+=(i=e[12])*R,y+=i*j,_+=i*z,b+=i*Y,w+=i*F,x+=i*B,k+=i*$,C+=i*H,L+=i*U,S+=i*V,M+=i*W,T+=i*G,E+=i*q,O+=i*Z,P+=i*X,D+=i*J,y+=(i=e[13])*R,_+=i*j,b+=i*z,w+=i*Y,x+=i*F,k+=i*B,C+=i*$,L+=i*H,S+=i*U,M+=i*V,T+=i*W,E+=i*G,O+=i*q,P+=i*Z,D+=i*X,A+=i*J,_+=(i=e[14])*R,b+=i*j,w+=i*z,x+=i*Y,k+=i*F,C+=i*B,L+=i*$,S+=i*H,M+=i*U,T+=i*V,E+=i*W,O+=i*G,P+=i*q,D+=i*Z,A+=i*X,I+=i*J,b+=(i=e[15])*R,a+=38*(x+=i*z),s+=38*(k+=i*Y),l+=38*(C+=i*F),u+=38*(L+=i*B),c+=38*(S+=i*$),d+=38*(M+=i*H),h+=38*(T+=i*U),f+=38*(E+=i*V),p+=38*(O+=i*W),m+=38*(P+=i*G),g+=38*(D+=i*q),v+=38*(A+=i*Z),y+=38*(I+=i*X),_+=38*(N+=i*J),o=(i=(o+=38*(w+=i*j))+(r=1)+65535)-65536*(r=Math.floor(i/65536)),a=(i=a+r+65535)-65536*(r=Math.floor(i/65536)),s=(i=s+r+65535)-65536*(r=Math.floor(i/65536)),l=(i=l+r+65535)-65536*(r=Math.floor(i/65536)),u=(i=u+r+65535)-65536*(r=Math.floor(i/65536)),c=(i=c+r+65535)-65536*(r=Math.floor(i/65536)),d=(i=d+r+65535)-65536*(r=Math.floor(i/65536)),h=(i=h+r+65535)-65536*(r=Math.floor(i/65536)),f=(i=f+r+65535)-65536*(r=Math.floor(i/65536)),p=(i=p+r+65535)-65536*(r=Math.floor(i/65536)),m=(i=m+r+65535)-65536*(r=Math.floor(i/65536)),g=(i=g+r+65535)-65536*(r=Math.floor(i/65536)),v=(i=v+r+65535)-65536*(r=Math.floor(i/65536)),y=(i=y+r+65535)-65536*(r=Math.floor(i/65536)),_=(i=_+r+65535)-65536*(r=Math.floor(i/65536)),b=(i=b+r+65535)-65536*(r=Math.floor(i/65536)),o=(i=(o+=r-1+37*(r-1))+(r=1)+65535)-65536*(r=Math.floor(i/65536)),a=(i=a+r+65535)-65536*(r=Math.floor(i/65536)),s=(i=s+r+65535)-65536*(r=Math.floor(i/65536)),l=(i=l+r+65535)-65536*(r=Math.floor(i/65536)),u=(i=u+r+65535)-65536*(r=Math.floor(i/65536)),c=(i=c+r+65535)-65536*(r=Math.floor(i/65536)),d=(i=d+r+65535)-65536*(r=Math.floor(i/65536)),h=(i=h+r+65535)-65536*(r=Math.floor(i/65536)),f=(i=f+r+65535)-65536*(r=Math.floor(i/65536)),p=(i=p+r+65535)-65536*(r=Math.floor(i/65536)),m=(i=m+r+65535)-65536*(r=Math.floor(i/65536)),g=(i=g+r+65535)-65536*(r=Math.floor(i/65536)),v=(i=v+r+65535)-65536*(r=Math.floor(i/65536)),y=(i=y+r+65535)-65536*(r=Math.floor(i/65536)),_=(i=_+r+65535)-65536*(r=Math.floor(i/65536)),b=(i=b+r+65535)-65536*(r=Math.floor(i/65536)),o+=r-1+37*(r-1),t[0]=o,t[1]=a,t[2]=s,t[3]=l,t[4]=u,t[5]=c,t[6]=d,t[7]=h,t[8]=f,t[9]=p,t[10]=m,t[11]=g,t[12]=v,t[13]=y,t[14]=_,t[15]=b}function F(t,e){Y(t,e,e)}function B(t,n){var i,r=e();for(i=0;i<16;i++)r[i]=n[i];for(i=253;i>=0;i--)F(r,r),2!==i&&4!==i&&Y(r,r,n);for(i=0;i<16;i++)t[i]=r[i]}function $(t,n,i){var r,o,a=new Uint8Array(32),s=new Float64Array(80),u=e(),c=e(),d=e(),h=e(),f=e(),p=e();for(o=0;o<31;o++)a[o]=n[o];for(a[31]=127&n[31]|64,a[0]&=248,R(s,i),o=0;o<16;o++)c[o]=s[o],h[o]=u[o]=d[o]=0;for(u[0]=h[0]=1,o=254;o>=0;--o)D(u,c,r=a[o>>>3]>>>(7&o)&1),D(d,h,r),j(f,u,d),z(u,u,d),j(d,c,h),z(c,c,h),F(h,f),F(p,u),Y(u,d,u),Y(d,c,f),j(f,u,d),z(u,u,d),F(c,u),z(d,h,p),Y(u,d,l),j(u,u,h),Y(d,d,u),Y(u,h,p),Y(h,c,s),F(c,f),D(u,c,r),D(d,h,r);for(o=0;o<16;o++)s[o+16]=u[o],s[o+32]=d[o],s[o+48]=c[o],s[o+64]=h[o];var m=s.subarray(32),g=s.subarray(16);return B(m,m),Y(g,g,m),A(t,g),0}function H(t,e){return $(t,e,o)}function U(t,e){return i(e,32),H(t,e)}function V(t,e,n){var i=new Uint8Array(32);return $(i,n,e),_(t,r,i,b)}L.prototype.blocks=function(t,e,n){for(var i,r,o,a,s,l,u,c,d,h,f,p,m,g,v,y,_,b,w,x=this.fin?0:2048,k=this.h[0],C=this.h[1],L=this.h[2],S=this.h[3],M=this.h[4],T=this.h[5],E=this.h[6],O=this.h[7],P=this.h[8],D=this.h[9],A=this.r[0],I=this.r[1],N=this.r[2],R=this.r[3],j=this.r[4],z=this.r[5],Y=this.r[6],F=this.r[7],B=this.r[8],$=this.r[9];n>=16;)h=d=0,h+=(k+=8191&(i=255&t[e+0]|(255&t[e+1])<<8))*A,h+=(C+=8191&(i>>>13|(r=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*$),h+=(L+=8191&(r>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*B),h+=(S+=8191&(o>>>7|(a=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*F),d=(h+=(M+=8191&(a>>>4|(s=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*Y))>>>13,h&=8191,h+=(T+=s>>>1&8191)*(5*z),h+=(E+=8191&(s>>>14|(l=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*j),h+=(O+=8191&(l>>>11|(u=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*R),h+=(P+=8191&(u>>>8|(c=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*N),f=d+=(h+=(D+=c>>>5|x)*(5*I))>>>13,f+=k*I,f+=C*A,f+=L*(5*$),f+=S*(5*B),d=(f+=M*(5*F))>>>13,f&=8191,f+=T*(5*Y),f+=E*(5*z),f+=O*(5*j),f+=P*(5*R),d+=(f+=D*(5*N))>>>13,f&=8191,p=d,p+=k*N,p+=C*I,p+=L*A,p+=S*(5*$),d=(p+=M*(5*B))>>>13,p&=8191,p+=T*(5*F),p+=E*(5*Y),p+=O*(5*z),p+=P*(5*j),m=d+=(p+=D*(5*R))>>>13,m+=k*R,m+=C*N,m+=L*I,m+=S*A,d=(m+=M*(5*$))>>>13,m&=8191,m+=T*(5*B),m+=E*(5*F),m+=O*(5*Y),m+=P*(5*z),g=d+=(m+=D*(5*j))>>>13,g+=k*j,g+=C*R,g+=L*N,g+=S*I,d=(g+=M*A)>>>13,g&=8191,g+=T*(5*$),g+=E*(5*B),g+=O*(5*F),g+=P*(5*Y),v=d+=(g+=D*(5*z))>>>13,v+=k*z,v+=C*j,v+=L*R,v+=S*N,d=(v+=M*I)>>>13,v&=8191,v+=T*A,v+=E*(5*$),v+=O*(5*B),v+=P*(5*F),y=d+=(v+=D*(5*Y))>>>13,y+=k*Y,y+=C*z,y+=L*j,y+=S*R,d=(y+=M*N)>>>13,y&=8191,y+=T*I,y+=E*A,y+=O*(5*$),y+=P*(5*B),_=d+=(y+=D*(5*F))>>>13,_+=k*F,_+=C*Y,_+=L*z,_+=S*j,d=(_+=M*R)>>>13,_&=8191,_+=T*N,_+=E*I,_+=O*A,_+=P*(5*$),b=d+=(_+=D*(5*B))>>>13,b+=k*B,b+=C*F,b+=L*Y,b+=S*z,d=(b+=M*j)>>>13,b&=8191,b+=T*R,b+=E*N,b+=O*I,b+=P*A,w=d+=(b+=D*(5*$))>>>13,w+=k*$,w+=C*B,w+=L*F,w+=S*Y,d=(w+=M*z)>>>13,w&=8191,w+=T*j,w+=E*R,w+=O*N,w+=P*I,k=h=8191&(d=(d=((d+=(w+=D*A)>>>13)<<2)+d|0)+(h&=8191)|0),C=f+=d>>>=13,L=p&=8191,S=m&=8191,M=g&=8191,T=v&=8191,E=y&=8191,O=_&=8191,P=b&=8191,D=w&=8191,e+=16,n-=16;this.h[0]=k,this.h[1]=C,this.h[2]=L,this.h[3]=S,this.h[4]=M,this.h[5]=T,this.h[6]=E,this.h[7]=O,this.h[8]=P,this.h[9]=D},L.prototype.finish=function(t,e){var n,i,r,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,i=(1^n)-1,o=0;o<10;o++)a[o]&=i;for(i=~i,o=0;o<10;o++)this.h[o]=this.h[o]&i|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),r=this.h[0]+this.pad[0],this.h[0]=65535&r,o=1;o<8;o++)r=(this.h[o]+this.pad[o]|0)+(r>>>16)|0,this.h[o]=65535&r;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},L.prototype.update=function(t,e,n){var i,r;if(this.leftover){for((r=16-this.leftover)>n&&(r=n),i=0;i=16&&(r=n-n%16,this.blocks(t,e,r),e+=r,n-=r),n){for(i=0;i=128;){for(x=0;x<16;x++)k=8*x+Z,O[x]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],P[x]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(x=0;x<80;x++)if(r=D,o=A,a=I,s=N,l=R,u=j,c=z,h=F,f=B,p=$,m=H,g=U,v=V,y=W,S=65535&(L=G),M=L>>>16,T=65535&(C=Y),E=C>>>16,S+=65535&(L=(U>>>14|R<<18)^(U>>>18|R<<14)^(R>>>9|U<<23)),M+=L>>>16,T+=65535&(C=(R>>>14|U<<18)^(R>>>18|U<<14)^(U>>>9|R<<23)),E+=C>>>16,S+=65535&(L=U&V^~U&W),M+=L>>>16,T+=65535&(C=R&j^~R&z),E+=C>>>16,S+=65535&(L=q[2*x+1]),M+=L>>>16,T+=65535&(C=q[2*x]),E+=C>>>16,C=O[x%16],M+=(L=P[x%16])>>>16,T+=65535&C,E+=C>>>16,T+=(M+=(S+=65535&L)>>>16)>>>16,S=65535&(L=w=65535&S|M<<16),M=L>>>16,T=65535&(C=b=65535&T|(E+=T>>>16)<<16),E=C>>>16,S+=65535&(L=(F>>>28|D<<4)^(D>>>2|F<<30)^(D>>>7|F<<25)),M+=L>>>16,T+=65535&(C=(D>>>28|F<<4)^(F>>>2|D<<30)^(F>>>7|D<<25)),E+=C>>>16,M+=(L=F&B^F&$^B&$)>>>16,T+=65535&(C=D&A^D&I^A&I),E+=C>>>16,d=65535&(T+=(M+=(S+=65535&L)>>>16)>>>16)|(E+=T>>>16)<<16,_=65535&S|M<<16,S=65535&(L=m),M=L>>>16,T=65535&(C=s),E=C>>>16,M+=(L=w)>>>16,T+=65535&(C=b),E+=C>>>16,A=r,I=o,N=a,R=s=65535&(T+=(M+=(S+=65535&L)>>>16)>>>16)|(E+=T>>>16)<<16,j=l,z=u,Y=c,D=d,B=h,$=f,H=p,U=m=65535&S|M<<16,V=g,W=v,G=y,F=_,x%16==15)for(k=0;k<16;k++)C=O[k],S=65535&(L=P[k]),M=L>>>16,T=65535&C,E=C>>>16,C=O[(k+9)%16],S+=65535&(L=P[(k+9)%16]),M+=L>>>16,T+=65535&C,E+=C>>>16,b=O[(k+1)%16],S+=65535&(L=((w=P[(k+1)%16])>>>1|b<<31)^(w>>>8|b<<24)^(w>>>7|b<<25)),M+=L>>>16,T+=65535&(C=(b>>>1|w<<31)^(b>>>8|w<<24)^b>>>7),E+=C>>>16,b=O[(k+14)%16],M+=(L=((w=P[(k+14)%16])>>>19|b<<13)^(b>>>29|w<<3)^(w>>>6|b<<26))>>>16,T+=65535&(C=(b>>>19|w<<13)^(w>>>29|b<<3)^b>>>6),E+=C>>>16,E+=(T+=(M+=(S+=65535&L)>>>16)>>>16)>>>16,O[k]=65535&T|E<<16,P[k]=65535&S|M<<16;S=65535&(L=F),M=L>>>16,T=65535&(C=D),E=C>>>16,C=t[0],M+=(L=e[0])>>>16,T+=65535&C,E+=C>>>16,E+=(T+=(M+=(S+=65535&L)>>>16)>>>16)>>>16,t[0]=D=65535&T|E<<16,e[0]=F=65535&S|M<<16,S=65535&(L=B),M=L>>>16,T=65535&(C=A),E=C>>>16,C=t[1],M+=(L=e[1])>>>16,T+=65535&C,E+=C>>>16,E+=(T+=(M+=(S+=65535&L)>>>16)>>>16)>>>16,t[1]=A=65535&T|E<<16,e[1]=B=65535&S|M<<16,S=65535&(L=$),M=L>>>16,T=65535&(C=I),E=C>>>16,C=t[2],M+=(L=e[2])>>>16,T+=65535&C,E+=C>>>16,E+=(T+=(M+=(S+=65535&L)>>>16)>>>16)>>>16,t[2]=I=65535&T|E<<16,e[2]=$=65535&S|M<<16,S=65535&(L=H),M=L>>>16,T=65535&(C=N),E=C>>>16,C=t[3],M+=(L=e[3])>>>16,T+=65535&C,E+=C>>>16,E+=(T+=(M+=(S+=65535&L)>>>16)>>>16)>>>16,t[3]=N=65535&T|E<<16,e[3]=H=65535&S|M<<16,S=65535&(L=U),M=L>>>16,T=65535&(C=R),E=C>>>16,C=t[4],M+=(L=e[4])>>>16,T+=65535&C,E+=C>>>16,E+=(T+=(M+=(S+=65535&L)>>>16)>>>16)>>>16,t[4]=R=65535&T|E<<16,e[4]=U=65535&S|M<<16,S=65535&(L=V),M=L>>>16,T=65535&(C=j),E=C>>>16,C=t[5],M+=(L=e[5])>>>16,T+=65535&C,E+=C>>>16,E+=(T+=(M+=(S+=65535&L)>>>16)>>>16)>>>16,t[5]=j=65535&T|E<<16,e[5]=V=65535&S|M<<16,S=65535&(L=W),M=L>>>16,T=65535&(C=z),E=C>>>16,C=t[6],M+=(L=e[6])>>>16,T+=65535&C,E+=C>>>16,E+=(T+=(M+=(S+=65535&L)>>>16)>>>16)>>>16,t[6]=z=65535&T|E<<16,e[6]=W=65535&S|M<<16,S=65535&(L=G),M=L>>>16,T=65535&(C=Y),E=C>>>16,C=t[7],M+=(L=e[7])>>>16,T+=65535&C,E+=C>>>16,E+=(T+=(M+=(S+=65535&L)>>>16)>>>16)>>>16,t[7]=Y=65535&T|E<<16,e[7]=G=65535&S|M<<16,Z+=128,i-=128}return i}function X(t,e,n){var i,r=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=n;for(r[0]=1779033703,r[1]=3144134277,r[2]=1013904242,r[3]=2773480762,r[4]=1359893119,r[5]=2600822924,r[6]=528734635,r[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Z(r,o,e,n),n%=128,i=0;i=0;--r)K(t,e,i=n[r/8|0]>>(7&r)&1),J(e,t),J(t,t),K(t,e,i)}function et(t,n){var i=[e(),e(),e(),e()];O(i[0],d),O(i[1],h),O(i[2],s),Y(i[3],d,h),tt(t,i,n)}function nt(t,n,r){var o,a=new Uint8Array(64),s=[e(),e(),e(),e()];for(r||i(n,32),X(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,et(s,a),Q(t,s),o=0;o<32;o++)n[o+32]=t[o];return 0}var it=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function rt(t,e){var n,i,r,o;for(i=63;i>=32;--i){for(n=0,r=i-32,o=i-12;r>8,e[r]-=256*n;e[r]+=n,e[i]=0}for(n=0,r=0;r<32;r++)e[r]+=n-(e[31]>>4)*it[r],n=e[r]>>8,e[r]&=255;for(r=0;r<32;r++)e[r]-=n*it[r];for(i=0;i<32;i++)e[i+1]+=e[i]>>8,t[i]=255&e[i]}function ot(t){var e,n=new Float64Array(64);for(e=0;e<64;e++)n[e]=t[e];for(e=0;e<64;e++)t[e]=0;rt(t,n)}function at(t,n,i,r){var o,a,s=new Uint8Array(64),l=new Uint8Array(64),u=new Uint8Array(64),c=new Float64Array(64),d=[e(),e(),e(),e()];X(s,r,32),s[0]&=248,s[31]&=127,s[31]|=64;var h=i+64;for(o=0;o=0;i--)F(r,r),1!==i&&Y(r,r,n);for(i=0;i<16;i++)t[i]=r[i]}(i,i),Y(i,i,o),Y(i,i,l),Y(i,i,l),Y(t[0],i,l),F(r,t[0]),Y(r,r,l),I(r,o)&&Y(t[0],t[0],f),F(r,t[0]),Y(r,r,l),I(r,o)?-1:(N(t[0])===n[31]>>7&&z(t[0],a,t[0]),Y(t[3],t[0],t[1]),0)}function lt(t,n,i,r){var o,a=new Uint8Array(32),s=new Uint8Array(64),l=[e(),e(),e(),e()],u=[e(),e(),e(),e()];if(i<64)return-1;if(st(u,r))return-1;for(o=0;o=0},t.sign.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(64);return nt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(ct(t),64!==t.length)throw new Error("bad secret key size");for(var e=new Uint8Array(32),n=0;n=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(i)return Y(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return E(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return M(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return L(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function v(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:y(t,e,n,i,r);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,i,r){var o,a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;hr&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function L(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r239?4:u>223?3:u>191?2:1;if(r+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=d}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",i=0;ir)&&(n=r);for(var o="",a=e;an)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,i,r,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function A(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function I(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function N(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,i,o){return o||N(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function j(t,e,n,i,o){return o||N(t,0,n,8),r.write(t,e,n,i,52,8),n+8}e.Buffer=l,e.SlowBuffer=function(t){return+t!=t&&(t=0),l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==window.TYPED_ARRAY_SUPPORT?window.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,i){return c(e),e<=0?s(t,e):void 0!==n?"string"==typeof i?s(t,e).fill(n,i):s(t,e).fill(n):s(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return d(null,t)},l.allocUnsafeSlow=function(t){return d(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},l.prototype.compare=function(t,e,n,i,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(i,r),c=t.slice(e,n),d=0;dr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e0&&(r*=256);)i+=this[t+--e]*r;return i},l.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=this[t],r=1,o=0;++o=(r*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||D(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+r]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):I(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):I(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function B(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}},function(t,e){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){for(var e,n=l(t),o=n[0],a=n[1],s=new r(function(t,e,n){return 3*(e+n)/4-n}(0,o,a)),u=0,c=a>0?o-4:o,d=0;d>16&255,s[u++]=e>>8&255,s[u++]=255&e;return 2===a&&(e=i[t.charCodeAt(d)]<<2|i[t.charCodeAt(d+1)]>>4,s[u++]=255&e),1===a&&(e=i[t.charCodeAt(d)]<<10|i[t.charCodeAt(d+1)]<<4|i[t.charCodeAt(d+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e),s},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],a=0,s=i-r;as?s:a+16383));return 1===r?(e=t[i-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,i){for(var r,o,a=[],s=e;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<>1,c=-7,d=n?r-1:0,h=n?-1:1,f=t[e+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+t[e+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=u}return(f?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,c=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(e*l-1)*Math.pow(2,r),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;t[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,u-=8);t[n+f-p]|=128*m}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function i(){this.constructor=t}t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},r=n(24),o=n(12),a=n(8),s=n(9),l=n(2),u=function(t){function e(e,n){var i=this;t.call(this),this.key=e,this.options=n||{},this.state="initialized",this.connection=null,this.usingTLS=!!n.useTLS,this.timeline=this.options.timeline,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var r=l.default.getNetwork();r.bind("online",(function(){i.timeline.info({netinfo:"online"}),"connecting"!==i.state&&"unavailable"!==i.state||i.retryIn(0)})),r.bind("offline",(function(){i.timeline.info({netinfo:"offline"}),i.connection&&i.sendActivityCheck()})),this.updateStrategy()}return i(e,t),e.prototype.connect=function(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))},e.prototype.send=function(t){return!!this.connection&&this.connection.send(t)},e.prototype.send_event=function(t,e,n){return!!this.connection&&this.connection.send_event(t,e,n)},e.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},e.prototype.isUsingTLS=function(){return this.usingTLS},e.prototype.startConnecting=function(){var t=this,e=function(n,i){n?t.runner=t.strategy.connect(0,e):"error"===i.action?(t.emit("error",{type:"HandshakeError",error:i.error}),t.timeline.error({handshakeError:i.error})):(t.abortConnecting(),t.handshakeCallbacks[i.action](i))};this.runner=this.strategy.connect(0,e)},e.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},e.prototype.disconnectInternally=function(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()},e.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})},e.prototype.retryIn=function(t){var e=this;this.timeline.info({action:"retry",delay:t}),t>0&&this.emit("connecting_in",Math.round(t/1e3)),this.retryTimer=new o.OneOffTimer(t||0,(function(){e.disconnectInternally(),e.connect()}))},e.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},e.prototype.setUnavailableTimer=function(){var t=this;this.unavailableTimer=new o.OneOffTimer(this.options.unavailableTimeout,(function(){t.updateState("unavailable")}))},e.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},e.prototype.sendActivityCheck=function(){var t=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new o.OneOffTimer(this.options.pongTimeout,(function(){t.timeline.error({pong_timed_out:t.options.pongTimeout}),t.retryIn(0)}))},e.prototype.resetActivityCheck=function(){var t=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new o.OneOffTimer(this.activityTimeout,(function(){t.sendActivityCheck()})))},e.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},e.prototype.buildConnectionCallbacks=function(t){var e=this;return s.extend({},t,{message:function(t){e.resetActivityCheck(),e.emit("message",t)},ping:function(){e.send_event("pusher:pong",{})},activity:function(){e.resetActivityCheck()},error:function(t){e.emit("error",{type:"WebSocketError",error:t})},closed:function(){e.abandonConnection(),e.shouldRetry()&&e.retryIn(1e3)}})},e.prototype.buildHandshakeCallbacks=function(t){var e=this;return s.extend({},t,{connected:function(t){e.activityTimeout=Math.min(e.options.activityTimeout,t.activityTimeout,t.connection.activityTimeout||1/0),e.clearUnavailableTimer(),e.setConnection(t.connection),e.socket_id=e.connection.id,e.updateState("connected",{socket_id:e.socket_id})}})},e.prototype.buildErrorCallbacks=function(){var t=this,e=function(e){return function(n){n.error&&t.emit("error",{type:"WebSocketError",error:n.error}),e(n)}};return{tls_only:e((function(){t.usingTLS=!0,t.updateStrategy(),t.retryIn(0)})),refused:e((function(){t.disconnect()})),backoff:e((function(){t.retryIn(1e3)})),retry:e((function(){t.retryIn(0)}))}},e.prototype.setConnection=function(t){for(var e in this.connection=t,this.connectionCallbacks)this.connection.bind(e,this.connectionCallbacks[e]);this.resetActivityCheck()},e.prototype.abandonConnection=function(){if(this.connection){for(var t in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(t,this.connectionCallbacks[t]);var e=this.connection;return this.connection=null,e}},e.prototype.updateState=function(t,e){var n=this.state;if(this.state=t,n!==t){var i=t;"connected"===i&&(i+=" with new socket ID "+e.socket_id),a.default.debug("State changed",n+" -> "+i),this.timeline.info({state:t,params:e}),this.emit("state_change",{previous:n,current:t}),this.emit(t,e)}},e.prototype.shouldRetry=function(){return"connecting"===this.state||"connected"===this.state},e}(r.default);e.__esModule=!0,e.default=u},function(t,e,n){"use strict";var i=n(9),r=n(43),o=n(31),a=function(){function t(){this.channels={}}return t.prototype.add=function(t,e){return this.channels[t]||(this.channels[t]=function(t,e){if(0===t.indexOf("private-encrypted-")){if("ReactNative"==navigator.product)throw new o.UnsupportedFeature("Encrypted channels are not yet supported when using React Native builds.");return r.default.createEncryptedChannel(t,e)}return 0===t.indexOf("private-")?r.default.createPrivateChannel(t,e):0===t.indexOf("presence-")?r.default.createPresenceChannel(t,e):r.default.createChannel(t,e)}(t,e)),this.channels[t]},t.prototype.all=function(){return i.values(this.channels)},t.prototype.find=function(t){return this.channels[t]},t.prototype.remove=function(t){var e=this.channels[t];return delete this.channels[t],e},t.prototype.disconnect=function(){i.objectApply(this.channels,(function(t){t.disconnect()}))},t}();e.__esModule=!0,e.default=a},function(t,e,n){"use strict";var i=n(43),r=n(11),o=n(31),a=n(9),s=function(){function t(t,e,n,i){this.name=t,this.priority=e,this.transport=n,this.options=i||{}}return t.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},t.prototype.connect=function(t,e){var n=this;if(!this.isSupported())return l(new o.UnsupportedStrategy,e);if(this.priority0&&(r=new o.OneOffTimer(n.timeout,(function(){a.abort(),i(!0)}))),a=t.connect(e,(function(t,e){t&&r&&r.isRunning()&&!n.failFast||(r&&r.ensureAborted(),i(t,e))})),{abort:function(){r&&r.ensureAborted(),a.abort()},forceMinPriority:function(t){a.forceMinPriority(t)}}},t}();e.__esModule=!0,e.default=a},function(t,e,n){"use strict";var i=n(9),r=n(11),o=function(){function t(t){this.strategies=t}return t.prototype.isSupported=function(){return i.any(this.strategies,r.default.method("isSupported"))},t.prototype.connect=function(t,e){return function(t,e,n){var r=i.map(t,(function(t,i,r,o){return t.connect(e,n(i,o))}));return{abort:function(){i.apply(r,a)},forceMinPriority:function(t){i.apply(r,(function(e){e.forceMinPriority(t)}))}}}(this.strategies,t,(function(t,n){return function(r,o){n[t].error=r,r?function(t){return i.all(t,(function(t){return Boolean(t.error)}))}(n)&&e(!0):(i.apply(n,(function(t){t.forceMinPriority(o.transport.priority)})),e(null,o))}}))},t}();function a(t){t.error||t.aborted||(t.abort(),t.aborted=!0)}e.__esModule=!0,e.default=o},function(t,e,n){"use strict";var i=n(11),r=n(2),o=n(65),a=n(9),s=function(){function t(t,e,n){this.strategy=t,this.transports=e,this.ttl=n.ttl||18e5,this.usingTLS=n.useTLS,this.timeline=n.timeline}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n=this.usingTLS,s=function(t){var e=r.default.getLocalStorage();if(e)try{var n=e[l(t)];if(n)return JSON.parse(n)}catch(e){u(t)}return null}(n),c=[this.strategy];if(s&&s.timestamp+this.ttl>=i.default.now()){var d=this.transports[s.transport];d&&(this.timeline.info({cached:!0,transport:s.transport,latency:s.latency}),c.push(new o.default([d],{timeout:2*s.latency+1e3,failFast:!0})))}var h=i.default.now(),f=c.pop().connect(t,(function o(s,d){s?(u(n),c.length>0?(h=i.default.now(),f=c.pop().connect(t,o)):e(s)):(function(t,e,n){var o=r.default.getLocalStorage();if(o)try{o[l(t)]=a.safeJSONStringify({timestamp:i.default.now(),transport:e,latency:n})}catch(t){}}(n,d.transport.name,i.default.now()-h),e(null,d))}));return{abort:function(){f.abort()},forceMinPriority:function(e){t=e,f&&f.forceMinPriority(e)}}},t}();function l(t){return"pusherTransport"+(t?"TLS":"NonTLS")}function u(t){var e=r.default.getLocalStorage();if(e)try{delete e[l(t)]}catch(t){}}e.__esModule=!0,e.default=s},function(t,e,n){"use strict";var i=n(12),r=function(){function t(t,e){var n=e.delay;this.strategy=t,this.options={delay:n}}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n,r=this.strategy,o=new i.OneOffTimer(this.options.delay,(function(){n=r.connect(t,e)}));return{abort:function(){o.ensureAborted(),n&&n.abort()},forceMinPriority:function(e){t=e,n&&n.forceMinPriority(e)}}},t}();e.__esModule=!0,e.default=r},function(t,e){"use strict";var n=function(){function t(t,e,n){this.test=t,this.trueBranch=e,this.falseBranch=n}return t.prototype.isSupported=function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()},t.prototype.connect=function(t,e){return(this.test()?this.trueBranch:this.falseBranch).connect(t,e)},t}();e.__esModule=!0,e.default=n},function(t,e){"use strict";var n=function(){function t(t){this.strategy=t}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n=this.strategy.connect(t,(function(t,i){i&&n.abort(),e(t,i)}));return n},t}();e.__esModule=!0,e.default=n},function(t,e,n){"use strict";var i=n(5);e.getGlobalConfig=function(){return{wsHost:i.default.host,wsPort:i.default.ws_port,wssPort:i.default.wss_port,wsPath:i.default.ws_path,httpHost:i.default.sockjs_host,httpPort:i.default.sockjs_http_port,httpsPort:i.default.sockjs_https_port,httpPath:i.default.sockjs_path,statsHost:i.default.stats_host,authEndpoint:i.default.channel_auth_endpoint,authTransport:i.default.channel_auth_transport,activity_timeout:i.default.activity_timeout,pong_timeout:i.default.pong_timeout,unavailable_timeout:i.default.unavailable_timeout}},e.getClusterConfig=function(t){return{wsHost:"ws-"+t+".pusher.com",httpHost:"sockjs-"+t+".pusher.com"}}}])},t.exports=i()},"eJw/":function(t){t.exports=JSON.parse('{"enter-team-identifier":"Geef het unieke kenmerk om je aan te sluiten bij een team.","team-identifier":"Doe mee met een team dmv kenmerk","enter-id-to-join-placeholder":"Geef kenmerk om aan te sluiten bij een team","join-team":"Sluit aan bij Team"}')},ePAn:function(t){t.exports=JSON.parse('{"categories":{"alcohol":"Alcohol","art":"Art","brands":"Brands","coastal":"Coastal","coffee":"Coffee","dumping":"Dumping","food":"Food","industrial":"Industrial","sanitary":"Sanitary","softdrinks":"Soft Drinks","smoking":"Smoking","other":"Other","dogshit":"Pets"},"smoking":{"butts":"Cigarettes/Butts","lighters":"Lighters","cigaretteBox":"Cigarette Box","tobaccoPouch":"Tobacco Pouch","skins":"Rolling Papers","smoking_plastic":"Plastic Packaging","filters":"Filters","filterbox":"Filter Box","vape_pen":"Vape pen","vape_oil":"Vape oil","smokingOther":"Smoking-Other"},"alcohol":{"beerBottle":"Beer Bottles","spiritBottle":"Spirit Bottles","wineBottle":"Wine Bottles","beerCan":"Beer Cans","brokenGlass":"Broken Glass","bottleTops":"Beer bottle tops","paperCardAlcoholPackaging":"Paper Packaging","plasticAlcoholPackaging":"Plastic Packaging","pint":"Pint Glass","six_pack_rings":"Six-pack rings","alcohol_plastic_cups":"Plastic Cups","alcoholOther":"Alcohol-Other"},"art":{"item":"Item"},"coffee":{"coffeeCups":"Coffee Cups","coffeeLids":"Coffee Lids","coffeeOther":"Coffee-Other"},"food":{"sweetWrappers":"Sweet Wrappers","paperFoodPackaging":"Paper/Cardboard Packaging","plasticFoodPackaging":"Plastic Packaging","plasticCutlery":"Plastic Cutlery","crisp_small":"Crisp/Chip Packet (small)","crisp_large":"Crisp/Chip Packet (large)","styrofoam_plate":"Styrofoam Plate","napkins":"Napkins","sauce_packet":"Sauce Packet","glass_jar":"Glass Jar","glass_jar_lid":"Glass Jar Lid","aluminium_foil":"Aluminium Foil","pizza_box":"Pizza Box","foodOther":"Food-Other"},"softdrinks":{"waterBottle":"Plastic Water bottle","fizzyDrinkBottle":"Plastic Fizzy Drink bottle","tinCan":"Can","bottleLid":"Bottle Tops","bottleLabel":"Bottle Labels","sportsDrink":"Sports Drink bottle","straws":"Straws","plastic_cups":"Plastic Cups","plastic_cup_tops":"Plastic Cup Tops","milk_bottle":"Milk Bottle","milk_carton":"Milk Carton","paper_cups":"Paper Cups","juice_cartons":"Juice Cartons","juice_bottles":"Juice Bottles","juice_packet":"Juice Packet","ice_tea_bottles":"Ice Tea Bottles","ice_tea_can":"Ice Tea Can","energy_can":"Energy Can","pullring":"Pull-ring","strawpacket":"Straw Packaging","styro_cup":"Styrofoam Cup","broken_glass":"Broken Glass","softDrinkOther":"Soft Drink-Other"},"sanitary":{"gloves":"Gloves","facemask":"Facemask","condoms":"Condoms","nappies":"Nappies","menstral":"Menstral","deodorant":"Deodorant","ear_swabs":"Ear Swabs","tooth_pick":"Tooth Pick","tooth_brush":"Tooth Brush","wetwipes":"Wet Wipes","hand_sanitiser":"Hand Sanitiser","sanitaryOther":"Sanitary-Other"},"dumping":{"small":"Small","medium":"Medium","large":"Large"},"industrial":{"oil":"Oil","industrial_plastic":"Plastic","chemical":"Chemical","bricks":"Bricks","tape":"Tape","industrial_other":"Industrial-Other"},"coastal":{"microplastics":"Microplastics","mediumplastics":"Mediumplastics","macroplastics":"Macroplastics","rope_small":"Rope small","rope_medium":"Rope medium","rope_large":"Rope large","fishing_gear_nets":"Fishing gear/nets","ghost_nets":"Ghost nets","buoys":"Buoys","degraded_plasticbottle":"Degraded Plastic Bottle","degraded_plasticbag":"Degraded Plastic Bag","degraded_straws":"Degraded Drinking Straws","degraded_lighters":"Degraded Lighters","balloons":"Balloons","lego":"Lego","shotgun_cartridges":"Shotgun Cartridges","styro_small":"Styrofoam small","styro_medium":"Styrofoam medium","styro_large":"Styrofoam large","coastal_other":"Coastal-Other"},"brands":{"adidas":"Adidas","aldi":"Aldi","amazon":"Amazon","apple":"Apple","applegreen":"Applegreen","asahi":"Asahi","avoca":"Avoca","ballygowan":"Ballygowan","bewleys":"Bewleys","brambles":"Brambles","budweiser":"Budweiser","bulmers":"Bulmers","burgerking":"Burgerking","butlers":"Butlers","cadburys":"Cadburys","cafenero":"Cafenero","camel":"Camel","carlsberg":"Carlsberg","centra":"Centra","circlek":"Circlek","coke":"Coca-Cola","coles":"Coles","colgate":"Colgate","corona":"Corona","costa":"Costa","doritos":"Doritos","drpepper":"DrPepper","dunnes":"Dunnes","duracell":"Duracell","durex":"Durex","esquires":"Esquires","evian":"Evian","fosters":"Fosters","frank_and_honest":"Frank-and-Honest","fritolay":"Frito-Lay","gatorade":"Gatorade","gillette":"Gillette","guinness":"Guinness","haribo":"Haribo","heineken":"Heineken","insomnia":"Insomnia","kellogs":"Kellogs","kfc":"KFC","lego":"Lego","lidl":"Lidl","lindenvillage":"Lindenvillage","lolly_and_cookes":"Lolly-and-cookes","loreal":"Loreal","lucozade":"Lucozade","marlboro":"Marlboro","mars":"Mars","mcdonalds":"McDonalds","nero":"Nero","nescafe":"Nescafe","nestle":"Nestle","nike":"Nike","obriens":"O-Briens","pepsi":"Pepsi","powerade":"Powerade","redbull":"Redbull","ribena":"Ribena","sainsburys":"Sainsburys","samsung":"Samsung","spar":"Spar","starbucks":"Starbucks","stella":"Stella","subway":"Subway","supermacs":"Supermacs","supervalu":"Supervalu","tayto":"Tayto","tesco":"Tesco","thins":"Thins","volvic":"Volvic","waitrose":"Waitrose","walkers":"Walkers","wilde_and_greene":"Wilde-and-Greene","woolworths":"Woolworths","wrigleys":"Wrigleys"},"trashdog":{"trashdog":"TrashDog","littercat":"LitterCat","duck":"LitterDuck"},"other":{"dogshit":"Dog Poo","pooinbag":"Dog Poo In Bag","automobile":"Automobile","clothing":"Clothing","traffic_cone":"Traffic cone","life_buoy":"Life Buoy","plastic":"Unidentified Plastic","dump":"Illegal Dumping","metal":"Metal Object","plastic_bags":"Plastic Bags","election_posters":"Election Posters","forsale_posters":"For Sale Posters","books":"Books","magazine":"Magazines","paper":"Paper","stationary":"Stationery","washing_up":"Washing-up Bottle","hair_tie":"Hair Tie","ear_plugs":"Ear Plugs (music)","batteries":"Batteries","elec_small":"Electric small","elec_large":"Electric large","random_litter":"Random Litter","balloons":"Balloons","bags_litter":"Bags of Litter","overflowing_bins":"Overflowing Bins","tyre":"Tyre","cable_tie":"Cable Tie","other":"Other-Other"},"presence":{"picked-up":"I picked it up!","still-there":"It\'s still there.","picked-up-text":"It\'s gone.","still-there-text":"The litter is still there!"},"no-tags":"No Tags","not-verified":"Awaiting verification","dogshit":{"poo":"Surprise!","poo_in_bag":"Surprise in a bag!"}}')},eSK7:function(t){t.exports=JSON.parse('{"littercoin-header":"Littercoin (LTRX)","back-later":"This will be back later","claim-tokens":"If you want to just claim your tokens and access your wallet from elsewhere, enter your wallet ID and you will be sent your earnings."}')},eXIN:function(t,e,n){"use strict";n.r(e);var i={name:"Privacy"},r=n("KHd+"),o=Object(r.a)(i,(function(){var t=this.$createElement;this._self._c;return this._m(0)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[n("h1",[t._v("PLEASE READ CAREFULLY BEFORE USING OPENLITTERMAP.COM:")]),t._v(" "),n("p",[n("i",[t._v("\n Last updated: 14"),n("sup",[t._v("th")]),t._v("\n April 2017\n ")])]),t._v(" "),n("br"),t._v(" "),n("h1",[t._v("Privacy Policy of OpenLitterMap.com")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("Our Services provide volunteers (Citizen Scientists) with a means to share information on occurrences of litter through geotagged imagery. Geotagged images have a spatial (a specific, typically centimeter-accurate GPS Lat/Long position) reference as well as a specific time-stamp (Year-month-day HH:MM:SS), which can be used to determine exactly where and when an occurrence of litter was identified- thus showing the location of a contributor at any point in time and potentially revealing information about the spatial patterns of a contributor or many contributors and revealing the location of hotspots and irregular occurrences of hazardous material such as drug-related litter (eg. needles, injecting equipment). A specific litter item can be shown individually and/or abstracted to a dynamically-sized hexagonal grid to analytically characterize the presence of litter, or abstractively perhaps even the illicit consumption of toxic substances. Once these images are shared with us, and only geotagged images can pass, the volunteer must properly attribute each image (eg. Determine x items of litter in x number of photos through the user of their Profile (https://openlittermap.com/profile) and once the image and its’ contents are attributed, each image must be submitted for crowdsourced verification. The verified images, their location and the time the image was captured will be mapped, spatially analyzed and the results, the images, the make/model of the device (which is an indication of spatial accuracy eg. iPhones (5+) are currently typically superior in spatial accuracy and temporal GPS-revisit frequency to Android) and their contents will be made public for guests or authenticated users of the website. Each image can account for only 1 point on the map which when clicked, will show the image which can be viewed in high-resolution, as well as its contents, the make and/or model of the device and although all images will be submitted anonymously by default, each contributor has the option to credit either their full name and/or unique Username or Organisation on the verifiable geotagged images they provide. We will maintain the images at our own discretion in accordance with our limited server capacity. However, images that are verified by an Admin and reach stage two verification will be deleted, allowing us to resolve greater volumes of data and keep our costs as low as possible.\n "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v("\n This Privacy Policy describes how and when we collect, share and use your information across the website. By using this website, you authorize us to store and use your information in accordance with this privacy policy. This policy will change from time to time and we will do our best to notify you of these changes and updates once you log into the website and through our social media campaigns @OpenLitterMap (Twitter).")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("People under the age of 13")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("We do not allow for people under the age of 13 to use or register with our Services. If we discover there is personal information from or about children below this age category, we will permanently delete that information and any other associate records immediately.")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("People aged 13-17")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("Only with parental or guardian supervision may a person aged 13-17 use this website for educational purposes. With proper supervision a person in this age category may be able to involve themselves with challenging the destructive paradigm of plastic pollution and contribute to the production of geospatial knowledge that has the potential to transform public and institutional behaviour however users should take particular caution when sharing their information online or when collecting data on litter which may be detrimental to personal health. For example, drug-related litter is a highly dangerous public-health hazard and if mishandled or stepped on accidentally, could result in a life-long physical, sexual and mentally-debilitating illness, disease, infection and/or scar, which will require urgent medical treatment from a medical professional- something this website claims to hold no knowledge of. Parents may choose to show the information on drug-related litter to their adolescent children to raise awareness about the harms caused by drug-related littering the public so that further accidents can be avoided.")]),t._v(" "),n("br"),t._v(" "),n("h3",{staticStyle:{color:"red"}},[t._v("If you require urgent medical treatment")]),t._v(" "),n("br"),t._v(" "),n("p",[n("b",[t._v("Please call 112, 999 or your appropriate emergency line and ask for an ambulance.")])]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("We collect the following information:")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("- Information you provide when you register for an account (eg. Full Name, legitimate and verifiable email address, a unique username or the organisation you are legally entitled to represent)\n "),n("br"),t._v("\n - The images you submit.\n "),n("br"),t._v("\n - The metadata associated with the images.\n "),n("br"),t._v("\n - The attribute information associated with each image.\n "),n("br"),t._v("\n - Cumulate statistics and geostatistics based on the analysis of each and all images.\n ")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("We do not collect the following information:")]),t._v(" "),n("p",[n("br"),t._v("\n - Cookies.\n "),n("br"),t._v("\n - Your IP address.\n "),n("br"),t._v("\n - The website you have come for, or are going to.\n "),n("br"),t._v("\n - The type of browser you are using.\n "),n("br"),t._v("\n - “Clickstream” data.\n "),n("br"),t._v("\n - How you use this website.\n "),n("br")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("Other people including 3rd parties may use the information you decide to make public accessible.")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("By submitting data to this Service, you accept and understand that the images, their contents, their location in time and space and potentially on your allowance, you may wish to be represented as the contributor of the image by full name and/or your unique username. By default, all images will be contributed anonymously. ")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("Security and your Password")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("You must choose a strong password at least 6 characters long that contains upper and lower case characters, a number and a symbol. Your password will be encrypted using the best available encryption methods and stored securely on our server. With the one exception of the map on Firefox which requires partial encryption, all of our website runs on an encrypted HTTPS network so the information you provide, including for example credit card information, is fully encrypted with SSL. In fact for credit cards we never touch your card details as we use Stripe for payments. www.stripe.com")]),t._v(" "),n("br"),t._v(" "),n("h3",[t._v("Feedback")]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("This is a new service. We are happy to hear feedback on this service or privacy policy if you think you can offer us some advice please contact us at info@openlittermap.com")])])}],!1,null,"9a72d7c4",null);e.default=o.exports},endd:function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},eqC4:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n#super {\n height: 100%;\n margin: 0;\n position: relative;\n}\n.leaflet-marker-icon {\n border-radius: 20px;\n}\n.mb5p {\n margin-bottom: 5px;\n}\n.mw100 {\n max-width: 100%;\n}\n.mi {\n height: 100%;\n margin: auto;\n display: flex;\n justify-content: center;\n border-radius: 20px;\n}\n.leaflet-pop-content-wrapper {\n padding: 0 !important;\n}\n.leaflet-popup-content {\n margin: 0 !important;\n}\n.litter-img-container {\n padding: 0 1em 1em 1em;\n}\n.litter-img {\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n max-width: 100%;\n}\n.art-litter-image {\n}\n\n",""])},eqyj:function(t,e,n){"use strict";var i=n("xTJ+");t.exports=i.isStandardBrowserEnv()?{write:function(t,e,n,r,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},fIXd:function(t){t.exports=JSON.parse('{"categories":{"alcohol":"Alcohol","art":"Arte","brands":"Marcas","coastal":"Costa","coffee":"Café","dumping":"Vertedero","food":"Comida","industrial":"Industrial","sanitary":"Sanitario","softdrinks":"Refrescos","smoking":"Fumar","other":"Otros","dogshit":"Mascotas"},"smoking":{"butts":"Cigarrillos/Colillas","lighters":"Mecheros","cigaretteBox":"Caja de cigarros","tobaccoPouch":"Bolsa de tabaco","skins":"Papel de liar","smoking_plastic":"Embalaje de plástico","filters":"Filtros","filterbox":"Caja de filtros","vape_pen":"Vapeador (cigarrillo electrónico)","vape_oil":"Líquido para vapear","smokingOther":"Fumar-Otros"},"alcohol":{"beerBottle":"Botellas de cerveza","spiritBottle":"Botellas de alcohol","wineBottle":"Botellas de vino","beerCan":"Latas de cerveza","brokenGlass":"Vidrio roto","bottleTops":"Tapas de botellas de cerveza","paperCardAlcoholPackaging":"Embalaje de papel","plasticAlcoholPackaging":"Embajale de plástico","pint":"Vaso de cerveza","six_pack_rings":"Anillos para latas de cerveza","alcohol_plastic_cups":"Vasos de plástico","alcoholOther":"Alcohol-Otros"},"art":{"item":"Articulo"},"coffee":{"coffeeCups":"Vasos de café","coffeeLids":"Tapas de café","coffeeOther":"Café-Otros"},"food":{"sweetWrappers":"Envoltorios de dulces","paperFoodPackaging":"Embalaje de papel/cartón","plasticFoodPackaging":"Embalaje de plástico","plasticCutlery":"Cubiertos de plástico","crisp_small":"Paquete de patatas fritas (pequeño)","crisp_large":"Paquete de patatas fritas (grande)","styrofoam_plate":"Plato de poliestireno desechable","napkins":"Servilletas","sauce_packet":"Paquete de salsa","glass_jar":"Jarra de vidrio","glass_jar_lid":"Tapa de jarra de vidrio","aluminium_foil":"Papel aluminio","pizza_box":"Caja de pizza","foodOther":"Comida-Otros"},"softdrinks":{"waterBottle":"Botella de plástico de agua","fizzyDrinkBottle":"Botella de plástico de bebida gaseosa","tinCan":"Lata","bottleLid":"Tapas de botellas","bottleLabel":"Etiquetas de botellas","sportsDrink":"Botella de bebida deportiva","straws":"Pajitas/Popotes","plastic_cups":"Vasos de plástico","plastic_cup_tops":"Tapas de vasos de plástico","milk_bottle":"Botella de leche","milk_carton":"Cartón de leche","paper_cups":"Vasos de papel","juice_cartons":"Cartones de zumo/jugo","juice_bottles":"Botellas de zumo/jugo","juice_packet":"Paquete de zumos/jugos","ice_tea_bottles":"Botellas de té helado","ice_tea_can":"Lata de té helado","energy_can":"Lata de bebida energética","pullring":"Anillas","strawpacket":"Embalaje pajitas","styro_cup":"Vaso de poliestireno","broken_glass":"Vidrio roto","softDrinkOther":"Bebidas-Otras"},"sanitary":{"gloves":"Guantes","facemask":"Mascarillas","condoms":"Preservativos","nappies":"Pañales","menstral":"Menstral","deodorant":"Desodorante","ear_swabs":"Bastoncillos para los oídos","tooth_pick":"Palillo de dientes","tooth_brush":"Cepillo de dientes","wetwipes":"Toallitas húmedas","hand_sanitiser":"Higienizante de manos","sanitaryOther":"Sanitario-Otros"},"dumping":{"small":"Pequeño","medium":"Mediano","large":"Grande"},"industrial":{"oil":"Aceite","industrial_plastic":"Plástico","chemical":"Químicos","bricks":"Ladrillos","tape":"Cinta","industrial_other":"Industrial-Otros"},"coastal":{"microplastics":"Microplásticos","mediumplastics":"Mesoplásticos","macroplastics":"Macroplásticos","rope_small":"Cuerda pequeña","rope_medium":"Cuerda mediana","rope_large":"Cuerda larga","fishing_gear_nets":"Equipo de pesca/redes","ghost_nets":"Redes fantasma","buoys":"Boyas","degraded_plasticbottle":"Botella de plástico degradada","degraded_plasticbag":"Bolsa de plástico degradada","degraded_straws":"Pajitas para beber degradadas","degraded_lighters":"Mecheros degradados","balloons":"Globos","lego":"Lego","shotgun_cartridges":"Cartuchos de escopeta","styro_small":"Espuma de poliestireno pequeña","styro_medium":"Espuma de poliestireno mediana","styro_large":"Espuma de poliestireno grande","coastal_other":"Costa-Otros"},"brands":{"adidas":"Adidas","aldi":"Aldi","amazon":"Amazon","apple":"Apple","applegreen":"Applegreen","asahi":"Asahi","avoca":"Avoca","ballygowan":"Ballygowan","bewleys":"Bewleys","brambles":"Brambles","budweiser":"Budweiser","bulmers":"Bulmers","burgerking":"Burgerking","butlers":"Butlers","cadburys":"Cadburys","cafenero":"Cafenero","camel":"Camel","carlsberg":"Carlsberg","centra":"Centra","circlek":"Circlek","coke":"Coca-Cola","coles":"Coles","colgate":"Colgate","corona":"Corona","costa":"Costa","doritos":"Doritos","drpepper":"DrPepper","dunnes":"Dunnes","duracell":"Duracell","durex":"Durex","esquires":"Esquires","evian":"Evian","fosters":"Fosters","frank_and_honest":"Frank-and-Honest","fritolay":"Frito-Lay","gatorade":"Gatorade","gillette":"Gillette","guinness":"Guinness","haribo":"Haribo","heineken":"Heineken","insomnia":"Insomnia","kellogs":"Kellogs","kfc":"KFC","lego":"Lego","lidl":"Lidl","lindenvillage":"Lindenvillage","lolly_and_cookes":"Lolly-and-cookes","loreal":"Loreal","lucozade":"Lucozade","marlboro":"Marlboro","mars":"Mars","mcdonalds":"McDonalds","nero":"Nero","nescafe":"Nescafe","nestle":"Nestle","nike":"Nike","obriens":"O-Briens","pepsi":"Pepsi","powerade":"Powerade","redbull":"Redbull","ribena":"Ribena","sainsburys":"Sainsburys","samsung":"Samsung","spar":"Spar","starbucks":"Starbucks","stella":"Stella","subway":"Subway","supermacs":"Supermacs","supervalu":"Supervalu","tayto":"Tayto","tesco":"Tesco","thins":"Thins","volvic":"Volvic","waitrose":"Waitrose","walkers":"Walkers","wilde_and_greene":"Wilde-and-Greene","woolworths":"Woolworths","wrigleys":"Wrigleys"},"trashdog":{"trashdog":"TrashDog","littercat":"LitterCat","duck":"LitterDuck"},"other":{"dogshit":"Heces de perro","pooinbag":"Heces de perro en una bolsa","automobile":"Automóvil","clothing":"Ropa","traffic_cone":"Cono de tráfico","life_buoy":"Boya salvavidas","plastic":"Plástico no identificado","dump":"Vertedero ilegal","metal":"Objeto de metal","plastic_bags":"Bolsas de plástico","election_posters":"Carteles electoráles","forsale_posters":"Carteles de \'en venta\'","books":"Libros","magazine":"Revistas","paper":"Papel","stationary":"Papelería","washing_up":"Botella lavavajillas","hair_tie":"Gomas para cabello","ear_plugs":"Tapones para los oídos","batteries":"Pilas","elec_small":"Electrónica pequeña","elec_large":"Electrónica grande","random_litter":"Basura aleatoría","balloons":"Globos","bags_litter":"Bolsas de basura","overflowing_bins":"Contenedores de basura desbordados","tyre":"Neumáticos","cable_tie":"Sujetacables","other":"Otros-Otros"},"presence":{"picked-up":"¡La he recogido!","still-there":"Todavía sigue ahí.","picked-up-text":"Ya no está.","still-there-text":"¡La basura sigue ahí!"},"no-tags":"Sin etiquetas","not-verified":"Esperando verificación","dogshit":{"poo":"¡Sorpresa!","poo_in_bag":"¡Sorpresa dentro de la bolsa!"}}')},feLt:function(t){t.exports=JSON.parse('{"welcome":"Welkom bij je nieuwe Profiel","out-of":"Van de {total} gebruikers","rank":"Sta jij op plek {rank}","have-uploaded":"Je hebt ge-upload","photos":"Foto\'s","tags":"Kenmerken","all-photos":"alle foto\'s","all-tags":"alle kenmerken","your-level":"Jouw niveau","reached-level":"Jouw bereikte niveau","have-xp":"en je heb","need-xp":"je hebt nodig","to-reach-level":"om het volgende niveau te bereiken.","total-categories":"Totaal Categorieën","calendar-load-data":"Ophalen Data","download-data":"Download Mijn Data","email-send-msg":"Een e-mail wordt gestuurd naar het adres dat je gebruikt om in te loggen.","timeseries-verified-photos":"Gecontroleerde Foto\'s","manage-my-photos":"Bekijk mijn foto\'s, selecteer meerdere, verwijder ze of voeg kenmerken toe!","view-my-photos":"Bekijk mijn Foto\'s","my-photos":"Mijn Foto\'s","add-tags":"Voeg kenmerken toe"}')},fzPg:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},g1lL:function(t){t.exports=JSON.parse('{"change-details":"Zmień dane osobowe","your-name":"Twoje imie","unique-id":"Unikatowy Identyfikator","email":"E-mail","update-details":"Aktualizuj dane"}')},g7np:function(t,e,n){"use strict";var i=n("2SVd"),r=n("5oMp");t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},gCZh:function(t,e,n){var i=n("9Qla");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"gGk+":function(t){t.exports=JSON.parse('{"title":"Are you ready?","subtitle":"Sign up to become an expert litter mapper and help us defeat plastic pollution.","crowdfunding-message":"Please consider supporting our work by crowdfunding OpenLitterMap with as little as 6 cents a day with a monthly subscription to help grow and develop this important platform.","form-create-account":"Create your account","form-field-name":"Name","form-field-unique-id":"Unique Identifier","form-field-email":"E-Mail Address","form-field-password":"Password. Must contain Uppercase, lowercase and a number.","form-field-pass-confirm":"Confirm Password","form-account-conditions":"I have read and agree to the Terms and Conditions of use and Privacy Policy","form-btn":"Sign up","create-account-note":"Note: If you do not recieve the verification e-mail in your inbox, please check your spam/junk folder."}')},gMnw:function(t){t.exports=JSON.parse('{"olm-dependent-on-donations":"OpenLitterMap jest obecnie całkowicie zależny od dotacji","its-important":"Jest to ważne"}')},gUen:function(t){t.exports=JSON.parse('{"what-about-litter":"¿Qué pasa con la basura?","about2":"En este momento, billones de colillas de cigarro con filtro de plástico están filtrando productos químicos tóxicos y microplásticos al medio ambiente.","about3":"¿El resultado?","about4":"Se liberan cantidades masivas de nicotina y otras sustancias químicas tóxicas.","about5":"Estos productos químicos tóxicos se bioacumulan en varias plantas y animales. Algunos de los cuales comemos.","about6":"Una emergencia ambiental que está al alcance de nuestra mano.","about7":"Puedes ayudarnos a solucionar esto contribuyendo a OpenLitterMap.","about8":"Sólo tienes que hacer una foto, etiquetarla y subirla.","about9":"¡Quiero ayudar!","about9a":"Sólo toma una foto","about9b":"Etiqueta la basura","about9c":"Súbela","about10":"Cada año, millones de toneladas de plástico encuentran su camino desde tierra firme hasta el mar.","about11":"Donde se vuelve significativamente más dañino, más difícil y más caro de eliminar.","about12":"La ilusión de la \\"limpieza urbana\\"","about13":"se ve facilitada por el diseño de la infraestructura.","about14":"Los datos de OpenLitterMap son","about14a":"Datos Abiertos","about14b":"Esto significa que cualquiera puede descargar los datos de forma gratuita y utilizarlos para cualquier propósito, sin permiso.","about15":"Los datos abiertos son esenciales para brindar transparencia, democracia y seguimiento a la ciencia sobre la contaminación. De lo contrario, ¿quién podrá utilizar los datos?","about16":"OpenLitterMap te empodera con las herramientas para convertirte en un científico ciudadano.","about17":"Ahora tienes el poder de contribuir a la producción de conocimiento geoespacial sobre nuestro mundo. Esto tiene el potencial de transformar el comportamiento público e institucional.","about17a":"Nuestros datos están mapeados por Espacio, Tiempo, Localización y Comportamientos.","about17b":"Echa un vistazo a este increíble tramo de Datos Abiertos sobre la contaminación causada por los productos de un puñado de corporaciones globales.","about17c":"¿Quieres descargar los datos?","about18":"La producción de conocimiento geográfico estuvo en su día en manos exclusivamente de las grandes instituciones y personas de poder.","about19":"Como Científico Ciudadano, ","about20":"tu puedes crear conocimiento. ","about21":"Se trata de un cambio de paradigma en cómo se crea la información geográfica que conocemos sobre nuestro mundo.","about22":"Cómo ayudar:","about23":"¡Únete hoy mismo!","about24":"Activa el geoetiquetado en tu dispositivo. Las instrucciones sobre cómo hacerlo se envían en un correo electrónico de bienvenida cuando te registras.","about25":"Puedes mapear cualquier cosa, desde tan solo una colilla de cigarrillo hasta el contenido de toda una playa o calle limpia en 1 foto.","about26":"Si hay demasiada basura y es difícil de calcular, simplemente use la categoría \\"Vertedero\\" y califica el área del 1 al 100 o elija \\"Basura aleatoria\\" en la categoría \\"Otros\\".","about27":"Si quieres crear mapas realmente impactantes, haz todas las fotos que puedas. O si no tienes tiempo, puedes registrar cualquier número de elementos en una sola foto.","about28":"¡Las imágenes y el contenido verificados se agregarán automáticamente a la base de datos, analizadas cuantitativa y geoespacialmente, y estarán disponibles públicamente para que el mundo las vea!","about29":"Ayúdanos a comunicar los problemas y las soluciones para evitar que el plástico llegue al océano.","about29a":"Si te gusta nuestro trabajo y te gustarppia apoyar, por favor únete al crowdfunding.","about30":"Únete a OpenLitterMap para crear un mundo con menos de","about301":"esto","about302":"y esto...","about31":"Sólo en 2010, se calcula que al menos 8 millones de toneladas de plástico fueron a parar al océano. Eso supone una media de 916 toneladas por hora.","about32":"Una muestra de lo que flota en los océanos","about33":"Actualmente, la contaminación por plásticos es responsable de la muerte de alrededor de 1 millón de aves y 100 mil mamíferos marinos al año.","about34":"Para 2025, se espera que la cantidad de plástico que ingresa al océano aumente a 70 millones de toneladas, suponiendo que continúen las tendencias actuales.","about35":"¡Quiero ayudar!"}')},gVVK:function(t,e,n){!function(t){"use strict";function e(t,e,n,i){var r=t+" ";switch(n){case"s":return e||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===t?e?"sekundo":"sekundi":2===t?e||i?"sekundi":"sekundah":t<5?e||i?"sekunde":"sekundah":"sekund";case"m":return e?"ena minuta":"eno minuto";case"mm":return r+=1===t?e?"minuta":"minuto":2===t?e||i?"minuti":"minutama":t<5?e||i?"minute":"minutami":e||i?"minut":"minutami";case"h":return e?"ena ura":"eno uro";case"hh":return r+=1===t?e?"ura":"uro":2===t?e||i?"uri":"urama":t<5?e||i?"ure":"urami":e||i?"ur":"urami";case"d":return e||i?"en dan":"enim dnem";case"dd":return r+=1===t?e||i?"dan":"dnem":2===t?e||i?"dni":"dnevoma":e||i?"dni":"dnevi";case"M":return e||i?"en mesec":"enim mesecem";case"MM":return r+=1===t?e||i?"mesec":"mesecem":2===t?e||i?"meseca":"mesecema":t<5?e||i?"mesece":"meseci":e||i?"mesecev":"meseci";case"y":return e||i?"eno leto":"enim letom";case"yy":return r+=1===t?e||i?"leto":"letom":2===t?e||i?"leti":"letoma":t<5?e||i?"leta":"leti":e||i?"let":"leti"}}t.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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},gaDp:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=["alcohol","art","brands","coastal","coffee","dogshit","dumping","food","industrial","other","sanitary","softdrinks","smoking"]},gekB:function(t,e,n){!function(t){"use strict";var e="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",e[7],e[8],e[9]];function i(t,i,r,o){var a="";switch(r){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":a=o?"sekunnin":"sekuntia";break;case"m":return o?"minuutin":"minuutti";case"mm":a=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":a=o?"tunnin":"tuntia";break;case"d":return o?"päivän":"päivä";case"dd":a=o?"päivän":"päivää";break;case"M":return o?"kuukauden":"kuukausi";case"MM":a=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":a=o?"vuoden":"vuotta"}return a=function(t,i){return t<10?i?n[t]:e[t]:t}(t,o)+" "+a}t.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: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}})}(n("wd/R"))},gjCT:function(t,e,n){!function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.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(t){return"م"===t},meridiem:function(t,e,n){return t<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(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n("wd/R"))},gtXK:function(t){t.exports=JSON.parse('{"what-about-litter":"Co ze śmieciami","about2":"W tej chwili biliony niedopałków po papierosach z plastikowymi końcówkami wysysają toksyczne chemikalia i mikroplastiki do środowiska.","about3":"Jaki jest rezultat?","about4":"Uwalniają się ogromne ilości nikotyny i innych toksycznych chemikaliów.","about5":"Te toksyczne chemikalia gromadzą się biologicznie w różnych roślinach i zwierzętach. Niektóre z nich jemy.","about6":"Stan zagrożenia środowiska jest na wyciągnięcie ręki.","about7":"Możesz pomóc nam to naprawić, współtworząc OpenLitterMap.","about8":"Po prostu zrób zdjęcie, otaguj je i prześlij.","about9":"Chce pomóc!","about9a":"Zrób zdjęcie","about9b":"Oznacz śmieci","about9c":"Wyślij je","about10":"Każdego roku miliony ton plastiku przedostają się z lądu do morza.","about11":"Tam, gdzie jest znacznie bardziej szkodliwy, trudniejszy i droższy do usunięcia.","about12":"Iluzja \\"miejskiego sprzątania\\"","about13":"ułatwia projektowanie infrastruktury.","about14":"Dane OpenLitterMap są","about14a":"Danymi otwartymi","about14b":"Oznacza to, że każdy może bezpłatnie pobierać dane i wykorzystywać je w dowolnym celu bez pozwolenia.","about15":"Otwarte dane mają zasadnicze znaczenie dla zapewnienia przejrzystości, demokracji i odpowiedzialności nauce w zakresie zanieczyszczeń. W przeciwnym razie kto będzie mógł korzystać z danych?","about16":"OpenLitterMap daje Ci narzędzia, dzięki którym możesz zostać naukowym obywatelem.","about17":"Masz teraz możliwość przyczynienia się do tworzenia wiedzy geoprzestrzennej o naszym świecie. Ma to potencjał do zmiany zachowań publicznych i instytucjonalnych.","about17a":"Nasze dane są mapowane według przestrzeni, czasu, lokalizacji i zachowania.","about17b":"Sprawdź ten niesamowity fragment bezpłatnych i otwartych danych na temat zanieczyszczenia powodowanego przez produkty kilku globalnych korporacji","about17c":"Chcesz pobrać dane?","about18":"Produkcja wiedzy geoprzestrzennej była kiedyś prowadzona wyłącznie przez główne instytucje i osoby posiadające władzę.","about19":"Jako obywatelski naukowiec, ","about20":"ty tworzysz wiedzę. ","about21":"To jest zmiana paradygmatu w sposobie tworzenia znanych informacji geograficznych o naszym świecie.","about22":"Jak pomóc:","about23":"Dołącz dziś!","about24":"Włącz geotagowanie na swoim urządzeniu. Instrukcje, jak to zrobić, są wysyłane w powitalnej wiadomości e-mail podczas rejestracji.","about25":"Na jednym zdjęciu możesz zmapować wszystko, od jednego niedopałka papierosa po zawartość całej plaży lub ulicy.","about26":"Jeśli jest zbyt dużo śmieci i jest to nieobliczalne, po prostu użyj kategorii Zaśmiecanie i oceń obszar od 1 do 100 lub wybierz \\"Losowe śmieci\\" w kategorii \\"Inne\\"","about27":"Jeśli chcesz tworzyć naprawdę potężne mapy, zrób jak najwięcej zdjęć. Jeśli nie masz czasu, możesz zarejestrować dowolną liczbę odpadów na jednym zdjęciu.","about28":"Zweryfikowane zdjęcia i treści zostaną automatycznie dodane do bazy danych, poddane analizie ilościowej i geoprzestrzennej oraz udostępnione publicznie, aby świat mógł je zobaczyć!","about29":"Pomóż nam informować o problemach i rozwiązaniach - aby plastik nie dostawał się do oceanu.","about29a":"Jeśli podoba Ci się nasza praca i chciałbyś nas wesprzeć, dołącz do crowdfundingu","about30":"Dołącz do Open Litter Map, aby stworzyć świat z mniejszą ilością","about301":"tego","about302":"i tego...","about31":"Szacuje się, że w samym 2010 roku co najmniej 8 milionów ton plastiku trafiło do oceanu. To średnio 916 ton na godzinę.","about32":"Próbka tego, co unosi się w oceanach","about33":"Zanieczyszczenie tworzywami sztucznymi jest obecnie odpowiedzialne za roczną śmierć około 1 miliona ptaków i 100 000 ssaków morskich.","about34":"Oczekuje się, że do 2025 roku. Ilość plastiku wprowadzanego do oceanu wzrośnie do 70 milionów ton, zakładając kontynuację obecnych trendów.","about35":"Chcę pomóc!"}')},hFN5:function(t,e,n){var i=n("rD38");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},hKrs:function(t,e,n){!function(t){"use strict";t.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(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(n("wd/R"))},hZxf:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.dash-time[data-v-09bd7714] {\n width: 25%;\n}\n.mobile-teams-select[data-v-09bd7714] {\n display: flex;\n justify-content: center;\n}\n.tdc[data-v-09bd7714] {\n padding-left: 2em;\n padding-right: 2em;\n}\n.teams-card[data-v-09bd7714] {\n background: white;\n text-align: center;\n margin: 1em;\n padding: 5em;\n}\n.teams-dashboard-subtitle[data-v-09bd7714] {\n margin-bottom: 1em;\n}\n@media screen and (max-width: 768px)\n{\n.dash-time[data-v-09bd7714] {\n width: 100%;\n margin-bottom: 1em;\n}\n.mobile-teams-select[data-v-09bd7714] {\n display: block;\n justify-content: center;\n}\n.teams-card[data-v-09bd7714] {\n padding: 3em;\n}\n.teams-dashboard-subtitle[data-v-09bd7714] {\n margin-bottom: 2em;\n}\n}\n\n\n",""])},hfun:function(t,e,n){"use strict";n.r(e);var i={name:"Credits"},r=n("KHd+"),o=Object(r.a)(i,(function(){var t=this.$createElement;this._self._c;return this._m(0)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",[t._v("Icons made by "),n("a",{attrs:{href:"https://www.flaticon.com/authors/pixel-buddha",title:"Pixel Buddha"}},[t._v("Pixel Buddha")]),t._v(" from "),n("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),t._v(" "),n("div",[t._v("Icons made by "),n("a",{attrs:{href:"https://www.freepik.com",title:"Freepik"}},[t._v("Freepik")]),t._v(" from "),n("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),t._v(" "),n("div",[t._v("Icons made by "),n("a",{attrs:{href:"https://www.flaticon.com/authors/smashicons",title:"Smashicons"}},[t._v("Smashicons")]),t._v(" from "),n("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),t._v(" "),n("div",[t._v("Icons made by "),n("a",{attrs:{href:"https://www.flaticon.com/authors/alfredo-hernandez",title:"Alfredo Hernandez"}},[t._v("Alfredo Hernandez")]),t._v(" from "),n("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])])])}],!1,null,"b041e56a",null);e.default=o.exports},honF:function(t,e,n){!function(t){"use strict";var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.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(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(n("wd/R"))},hqZl:function(t){t.exports=JSON.parse('{"address":"Adres","add-tag":"Dodaj tag","coordinates":"Współrzędne","device":"Urządzenie","next":"Następne zdjęcie","no-tags":"W tej chwili nie masz nic do oznaczenia.","picked-up-title":"Zebrane?","please-upload":"Prześlij więcej zdjęć","previous":"poprzednie zdjęcie","removed":"Śmieci zostały usunięte","still-there":"Śmieci nadal tam są","taken":"zebrane","to-tag":"Zdjęcia pozostawione do oznaczenia","total-uploaded":"Wszystkie przesłane zdjęcia","uploaded":"Przesłane","confirm-delete":"Czy chcesz usunąć to zdjęcie? Tego nie da się cofnąć.","recently-tags":"Ostatnio używane tagi: ","clear-tags":"Wyczyścić ostatnie tagi?","clear-tags-btn":"Wyczyść ostatnie tagi"}')},iAFQ:function(t,e,n){"use strict";n.r(e);var i={name:"About",methods:{android:function(){window.open("https://play.google.com/store/apps/details?id=com.geotech.openlittermap","_blank")},ios:function(){window.open("https://apps.apple.com/us/app/openlittermap/id1475982147","_blank")}}},r=(n("STDh"),n("KHd+")),o=Object(r.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("section",{staticClass:"section"},[n("div",{staticClass:"columns"},[t._m(0),t._v(" "),n("div",{staticClass:"column cig-2"},[n("h2",{staticClass:"title is-2",staticStyle:{color:"red","text-align":"center"},attrs:{id:"butts1txt"}},[n("strong",[t._v(t._s(t.$t("home.about.about2")))])])])]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-one-third is-offset-1"},[n("h1",{staticClass:"title is-1",staticStyle:{"text-align":"center"}},[n("strong",[t._v(t._s(t.$t("home.about.about3")))])]),t._v(" "),n("br"),t._v(" "),n("h1",{staticClass:"subtitle is-3"},[t._v(t._s(t.$t("home.about.about4")))]),t._v(" "),n("br"),t._v(" "),n("h1",{staticClass:"subtitle is-3"},[t._v(t._s(t.$t("home.about.about5")))]),t._v(" "),n("br"),t._v(" "),n("p",{staticClass:"subtitle is-3"},[t._v(t._s(t.$t("home.about.about6")))])]),t._v(" "),t._m(1)])]),t._v(" "),n("section",{staticClass:"hero is-success"},[n("div",{staticClass:"hero-body"},[n("div",{staticClass:"container has-text-centered"},[n("h1",{staticClass:"title"},[n("strong",[t._v("\n "+t._s(t.$t("home.about.about7"))+"\n ")])])]),t._v(" "),n("div",{staticClass:"has-text-centered",staticStyle:{"padding-top":"2em"}},[n("router-link",{attrs:{to:"/signup"}},[n("button",{staticClass:"button is-large is-info hov"},[t._v(t._s(t.$t("home.about.about9")))])])],1)])]),t._v(" "),n("div",{staticClass:"has-text-centered pt3"},[n("h1",{staticClass:"title is-1"},[t._v("1. "+t._s(t.$t("home.about.about9a")))]),t._v(" "),n("img",{attrs:{src:"/assets/about/iphone.PNG"}})]),t._v(" "),n("div",{staticClass:"has-text-centered pt3"},[n("h1",{staticClass:"title is-1"},[t._v("2. "+t._s(t.$t("home.about.about9b")))]),t._v(" "),n("img",{attrs:{src:"/assets/about/facemask-tag.PNG"}})]),t._v(" "),n("div",{staticClass:"has-text-centered pt3"},[n("h1",{staticClass:"title is-1"},[t._v("3. "+t._s(t.$t("home.about.about9c")))]),t._v(" "),n("img",{attrs:{src:"/assets/about/facemask-map.PNG"}})]),t._v(" "),n("div",{staticClass:"flex jc pt3"},[n("img",{staticClass:"app-icon",staticStyle:{"margin-right":"1em"},attrs:{src:"/assets/icons/ios.png"},on:{click:t.ios}}),t._v(" "),n("img",{staticClass:"app-icon",attrs:{src:"/assets/icons/android.png"},on:{click:t.android}})]),t._v(" "),n("section",[n("div",{staticClass:"columns",staticStyle:{"padding-top":"4em","padding-bottom":"4em"}},[n("div",{staticClass:"column is-one-third is-offset-1",staticStyle:{"padding-left":"2em",margin:"auto"}},[n("h1",{staticClass:"title is-2",staticStyle:{"text-align":"center"}},[n("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about10")))])]),t._v(" "),n("br"),t._v(" "),n("h1",{staticClass:"title is-2",staticStyle:{"text-align":"center"}},[n("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about11")))])])]),t._v(" "),t._m(2)])]),t._v(" "),n("section",{staticClass:"hero is-warning"},[n("div",{staticClass:"hero-body"},[n("div",{staticClass:"container"},[n("h1",{staticClass:"title is-1"},[t._v("\n "+t._s(t.$t("home.about.about12"))+"\n ")]),t._v(" "),n("img",{attrs:{src:"/assets/cigbutts.jpg"}}),t._v(" "),n("h1",{staticClass:"title is-1 has-text-right"},[t._v("\n "+t._s(t.$t("home.about.about13"))+"\n ")])])])]),t._v(" "),n("div",{staticClass:"hero-body"},[n("div",{staticClass:"container"},[n("div",{staticClass:"tile is-ancestor"},[n("div",{staticClass:"tile is-vertical is-8"},[n("div",{staticClass:"tile"},[n("div",{staticClass:"tile is-parent is-vertical"},[n("article",{staticClass:"tile is-child notification is-primary"},[n("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about14"))+" "),n("b",{staticStyle:{color:"black"}},[t._v(t._s(t.$t("home.about.about14a")))])]),t._v(" "),n("p",{staticClass:"title",staticStyle:{"padding-bottom":"1em"}},[t._v(t._s(t.$t("home.about.about14b")))]),t._v(" "),n("p",{staticClass:"subtitle",staticStyle:{"text-align":"right",color:"red"}},[n("strong",[t._v(t._s(t.$t("home.about.about15")))])])]),t._v(" "),n("article",{staticClass:"tile is-child notification is-warning"},[n("p",{staticClass:"title",staticStyle:{"padding-bottom":"1em"}},[t._v(t._s(t.$t("home.about.about16")))]),t._v(" "),n("p",{staticClass:"subtitle",staticStyle:{"text-align":"right",color:"red","padding-bottom":"1em"}},[n("b",[t._v(t._s(t.$t("home.about.about17")))])])])]),t._v(" "),n("div",{staticClass:"tile is-parent"},[n("article",{staticClass:"tile is-child notification is-info"},[n("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about17a")))]),t._v(" "),n("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("home.about.about17b")))]),t._v(" "),n("a",{attrs:{href:"https://openlittermap.com/maps/The%20Netherlands/Zuid-Holland/Wassenaar/map"}},[t._v("https://openlittermap.com/maps/The%20Netherlands/Zuid-Holland/Wassenaar/map")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("img",{attrs:{src:"/assets/nlbrands.png"}}),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("home.about.about17c")))]),t._v(" "),n("a",{attrs:{href:"https://openlittermap.com/maps/The%20Netherlands/Zuid-Holland/Wassenaar/download"}},[t._v("https://openlittermap.com/maps/The%20Netherlands/Zuid-Holland/Wassenaar/download")]),t._v(" "),n("br")])])]),t._v(" "),n("div",{staticClass:"tile is-parent"},[n("article",{staticClass:"tile is-child notification is-danger"},[n("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about18")))]),t._v(" "),n("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("home.about.about19"))),n("strong",[t._v(t._s(t.$t("home.about.about20")))]),t._v(" "+t._s(t.$t("home.about.about21")))]),t._v(" "),n("div",{staticClass:"content"})])])]),t._v(" "),n("div",{staticClass:"tile is-parent is-5"},[n("article",{staticClass:"tile is-child is-10 notification is-success"},[n("div",{staticClass:"content"},[n("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about22")))]),t._v(" "),n("div",{staticClass:"content"},[n("ul",[n("li",[t._v(t._s(t.$t("home.about.about24")))]),t._v(" "),n("li",[t._v(t._s(t.$t("home.about.about25")))]),t._v(" "),n("li",[t._v(t._s(t.$t("home.about.about26")))]),t._v(" "),n("li",[t._v(t._s(t.$t("home.about.about27")))]),t._v(" "),n("li",[t._v(t._s(t.$t("home.about.about28")))]),t._v(" "),n("li",[t._v(t._s(t.$t("home.about.about29")))]),t._v(" "),n("li",[t._v(t._s(t.$t("home.about.about29a")))])])])])])])])])]),t._v(" "),n("div",[n("br"),t._v(" "),n("h1",{staticClass:"title is-1",staticStyle:{color:"black","text-align":"center"}},[n("strong",[t._v(t._s(t.$t("home.about.about30")))]),t._v(" "),n("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about301")))])]),t._v(" "),n("br")]),t._v(" "),n("div",{staticClass:"container",staticStyle:{"padding-bottom":"5em","text-align":"center"}},[n("img",{attrs:{src:"/assets/marinelitter.jpg"}}),t._v(" "),n("p",{staticStyle:{"padding-bottom":"3em"}},[t._v("Dublin, Ireland.")]),t._v(" "),n("h1",{staticClass:"title is-1",staticStyle:{color:"black","text-align":"center"}},[n("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about302")))])]),t._v(" "),n("img",{attrs:{src:"/assets/microplastics_oranmore.JPG"}}),t._v(" "),n("p",[t._v("Microplastics in Oranmore, Co. Galway.")])]),t._v(" "),n("div",{staticClass:"container"},[n("h1",{staticClass:"title is-1"},[t._v("\n "+t._s(t.$t("home.about.about31"))+"\n ")]),t._v(" "),n("br"),t._v(" "),n("br")]),t._v(" "),n("img",{staticStyle:{"padding-bottom":"1em"},attrs:{src:"/assets/urban.JPG"}}),t._v(" "),n("p",{staticStyle:{"padding-bottom":"5em","text-align":"center"}},[t._v("Penrose Wharf, Cork City, Ireland (above)")]),t._v(" "),n("div",{staticStyle:{"text-align":"center"}},[n("img",{staticStyle:{"padding-bottom":"2em"},attrs:{src:"/assets/IMG_0554.JPG"}}),t._v(" "),t._m(3),t._v(" "),n("img",{staticStyle:{"padding-bottom":"2em"},attrs:{src:"/assets/IMG_0556.JPG"}}),t._v(" "),n("p",{staticStyle:{"padding-bottom":"5em"}},[t._v(t._s(t.$t("home.about.about32")))])]),t._v(" "),n("div",{staticClass:"container"},[n("h1",{staticClass:"title is-1 has-text-left"},[t._v("\n "+t._s(t.$t("home.about.about33"))+"\n ")])]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"container"},[n("h1",{staticClass:"title is-1 has-text-left"},[t._v("\n "+t._s(t.$t("home.about.about34"))+"\n ")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"has-text-centered",staticStyle:{"padding-top":"2em"}},[n("form",{attrs:{action:"/signup"}},[n("button",{staticClass:"button is-large is-primary hov"},[t._v(t._s(t.$t("home.about.about35")))])])]),t._v(" "),n("br"),t._v(" "),n("br")]),t._v(" "),t._m(4)])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"column is-one-third is-offset-1",staticStyle:{"text-align":"center"}},[e("img",{attrs:{src:"/assets/butts.jpg"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"column is-offset-1 butts-img"},[e("img",{staticStyle:{height:"600px"},attrs:{src:"/assets/cigbutts_jar.jpg"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"column is-one-third is-offset-1",staticStyle:{"padding-top":"4em","padding-bottom":"4em",margin:"auto"}},[e("img",{attrs:{src:"/assets/plastic_bottles.jpg"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticStyle:{"padding-bottom":"5em","text-align":"center"}},[this._v("Accra, Capital of Ghana, North-Western Coast of Africa "),e("a",{attrs:{href:"https://www.facebook.com/nshorena/posts/1652239435009949"}},[this._v("more photos on facebook")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("footer",{staticClass:"footer"},[e("div",{staticClass:"container"},[e("div",{staticClass:"content has-text-centered"},[e("p",[e("strong",[this._v("OpenLitterMap")]),this._v(" by "),e("a",{attrs:{href:"https://ie.linkedin.com/in/seanlynchgis"}},[this._v("Seán Lynch, M.Sc, M.Sc., B.A.")]),this._v(" "),e("br")]),e("p",[this._v("info@openlittermap.com")])])])])}],!1,null,"d8d31e7c",null);e.default=o.exports},iEDd:function(t,e,n){!function(t){"use strict";t.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(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}})}(n("wd/R"))},iYuL:function(t,e,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^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;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},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:i,longMonthsParse:i,shortMonthsParse:i,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},invalidDate:"Fecha invalida"})}(n("wd/R"))},ilIf:function(t,e,n){"use strict";var i=n("Wpz3");n.n(i).a},jR8y:function(t){t.exports=JSON.parse('{"change-privacy":"Verander mijn Privacy","maps":"Kaarten","credit-name":"Noem mijn naam","credit-username":"Noem mijn gebruikersnaam","name-imgs-yes":"Je naam is ingesteld om te tonen bij elke foto die je upload naar de kaarten.","username-imgs-yes":"Je gebruikersnaam is ingesteld om te tonen bij elke foto die je upload naar de kaarten.","name-username-map-no":"Je naam en gebruikersnaam worden niet getoond op de kaarten.","leaderboards":"Scoreboard","credit-my-name":"Noem mijn naam","credit-my-username":"Noem mijn gebruikersnaam","name-leaderboards-yes":"Je naam is ingesteld om te tonen bij elk scoreboard waar je voor in aanmerking komt.","username-leaderboards-yes":"Je gebruikersnaam is ingesteld om te tonen bij elk scoreboard waar je voor in aanmerking komt.","name-username-leaderboards-no":"Je naam en gebruikersnaam worden niet getoond op de scoreboards.","created-by":"Gemaakt Door","name-locations-yes":"Je naam is ingesteld om te tonen bij elke locatie die je maakt.","username-locations-yes":"Je gebruikersnaam is ingesteld om te tonen bij elke locatie die je maakt","name-username-locations-yes":"Je naam en gebruikersnaam worden niet getoond in de Gemaakt Door sectie van welke locatie je dan ook toevoegt aan de database","update":"Bijwerken"}')},jRYP:function(t,e,n){"use strict";var i=n("YWwG");n.n(i).a},jUeY:function(t,e,n){!function(t){"use strict";t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,n){return t>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").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(t,e){var n,i=this._calendarEl[t],r=e&&e.hours();return n=i,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(e)),i.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}})}(n("wd/R"))},jVdC:function(t,e,n){!function(t){"use strict";var e="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function i(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function r(t,e,n){var r=t+" ";switch(n){case"ss":return r+(i(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return r+(i(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return r+(i(t)?"godziny":"godzin");case"MM":return r+(i(t)?"miesiące":"miesięcy");case"yy":return r+(i(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,i){return t?""===i?"("+n[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(i)?n[t.month()]:e[t.month()]:e},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}})}(n("wd/R"))},"jfS+":function(t,e,n){"use strict";var i=n("endd");function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r((function(e){t=e})),cancel:t}},t.exports=r},jfSC:function(t,e,n){!function(t){"use strict";var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.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(t){return/بعد از ظهر/.test(t)},meridiem:function(t,e,n){return t<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(t){return t.replace(/[۰-۹]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n("wd/R"))},jiCS:function(t,e,n){"use strict";var i=n("praq");n.n(i).a},jnO4:function(t,e,n){!function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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 عام"]},o=function(t){return function(e,n,o,a){var s=i(e),l=r[t][i(e)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,e)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar",{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(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("wd/R"))},jsOg:function(t,e){t.exports="/images/vendor/leaflet/dist/layers-2x.png?4f0283c6ce28e888000e978e537a6a56"},kEOa:function(t,e,n){!function(t){"use strict";var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.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(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e&&t>=4||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,n){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n("wd/R"))},kGIl:function(t,e,n){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){},function(t,e,n){"use strict";n.r(e);const i="undefined"!=typeof window?window.HTMLElement:Object;var r={mounted(){this.enforceFocus&&document.addEventListener("focusin",this.focusIn)},methods:{focusIn(t){if(!this.isActive)return;if(t.target===this.$el||this.$el.contains(t.target))return;let e=this.container?this.container:this.isFullPage?null:this.$el.parentElement;(this.isFullPage||e&&e.contains(t.target))&&(t.preventDefault(),this.$el.focus())}},beforeDestroy(){document.removeEventListener("focusin",this.focusIn)}};function o(t,e,n,i,r,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}var a=o({name:"spinner",props:{color:{type:String,default:"#000"},height:{type:Number,default:64},width:{type:Number,default:64}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,stroke:this.color}},[e("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[e("g",{attrs:{transform:"translate(1 1)","stroke-width":"2"}},[e("circle",{attrs:{"stroke-opacity":".25",cx:"18",cy:"18",r:"18"}}),e("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[e("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.8s",repeatCount:"indefinite"}})],1)])])])}),[],!1,null,null,null).exports,s=o({name:"dots",props:{color:{type:String,default:"#000"},height:{type:Number,default:240},width:{type:Number,default:60}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:this.color,width:this.width,height:this.height}},[e("circle",{attrs:{cx:"15",cy:"15",r:"15"}},[e("animate",{attrs:{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}}),e("animate",{attrs:{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}})]),e("circle",{attrs:{cx:"60",cy:"15",r:"9","fill-opacity":"0.3"}},[e("animate",{attrs:{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}}),e("animate",{attrs:{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"}})]),e("circle",{attrs:{cx:"105",cy:"15",r:"15"}},[e("animate",{attrs:{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}}),e("animate",{attrs:{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}})])])}),[],!1,null,null,null).exports,l=o({name:"bars",props:{color:{type:String,default:"#000"},height:{type:Number,default:40},width:{type:Number,default:40}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:this.height,width:this.width,fill:this.color}},[e("rect",{attrs:{x:"0",y:"13",width:"4",height:"5"}},[e("animate",{attrs:{attributeName:"height",attributeType:"XML",values:"5;21;5",begin:"0s",dur:"0.6s",repeatCount:"indefinite"}}),e("animate",{attrs:{attributeName:"y",attributeType:"XML",values:"13; 5; 13",begin:"0s",dur:"0.6s",repeatCount:"indefinite"}})]),e("rect",{attrs:{x:"10",y:"13",width:"4",height:"5"}},[e("animate",{attrs:{attributeName:"height",attributeType:"XML",values:"5;21;5",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"}}),e("animate",{attrs:{attributeName:"y",attributeType:"XML",values:"13; 5; 13",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"}})]),e("rect",{attrs:{x:"20",y:"13",width:"4",height:"5"}},[e("animate",{attrs:{attributeName:"height",attributeType:"XML",values:"5;21;5",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}}),e("animate",{attrs:{attributeName:"y",attributeType:"XML",values:"13; 5; 13",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}})])])}),[],!1,null,null,null).exports,u=o({name:"vue-loading",mixins:[r],props:{active:Boolean,programmatic:Boolean,container:[Object,Function,i],isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},transition:{type:String,default:"fade"},canCancel:Boolean,onCancel:{type:Function,default:()=>{}},color:String,backgroundColor:String,opacity:Number,width:Number,height:Number,zIndex:Number,loader:{type:String,default:"spinner"}},data(){return{isActive:this.active}},components:{Spinner:a,Dots:s,Bars:l},beforeMount(){this.programmatic&&(this.container?(this.isFullPage=!1,this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted(){this.programmatic&&(this.isActive=!0),document.addEventListener("keyup",this.keyPress)},methods:{cancel(){this.canCancel&&this.isActive&&(this.hide(),this.onCancel.apply(null,arguments))},hide(){this.$emit("hide"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(()=>{var t;this.$destroy(),void 0!==(t=this.$el).remove?t.remove():t.parentNode.removeChild(t)},150))},keyPress(t){27===t.keyCode&&this.cancel()}},watch:{active(t){this.isActive=t}},beforeDestroy(){document.removeEventListener("keyup",this.keyPress)}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.transition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"vld-overlay is-active",class:{"is-full-page":t.isFullPage},style:{zIndex:t.zIndex},attrs:{tabindex:"0","aria-busy":t.isActive,"aria-label":"Loading"}},[n("div",{staticClass:"vld-background",style:{background:t.backgroundColor,opacity:t.opacity},on:{click:function(e){return e.preventDefault(),t.cancel(e)}}}),n("div",{staticClass:"vld-icon"},[t._t("before"),t._t("default",[n(t.loader,{tag:"component",attrs:{color:t.color,width:t.width,height:t.height}})]),t._t("after")],2)])])}),[],!1,null,null,null).exports;n(0),u.install=(t,e={},n={})=>{let i=((t,e={},n={})=>({show(i=e,r=n){const o=Object.assign({},e,i,{programmatic:!0}),a=new(t.extend(u))({el:document.createElement("div"),propsData:o}),s=Object.assign({},n,r);return Object.keys(s).map(t=>{a.$slots[t]=s[t]}),a}}))(t,e,n);t.$loading=i,t.prototype.$loading=i},e.default=u}]).default},kOpN:function(t,e,n){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},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 年"}})}(n("wd/R"))},kg4N:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.butts-img[data-v-d8d31e7c] {\n text-align: center;\n padding-right: 5em;\n}\n.cig-2[data-v-d8d31e7c] {\n align-items: center;\n display: flex;\n padding: 5em;\n}\n@media screen and (max-width: 768px)\n{\n.butts-img[data-v-d8d31e7c] {\n padding-right: 0;\n}\n.cig-2[data-v-d8d31e7c] {\n padding: 1em;\n}\n}\n",""])},kkFm:function(t,e,n){var i=n("c8dv");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},ksP6:function(t,e,n){t.exports=function(){"use strict";var t,e=(function(t){var e=function(){function t(t,e){for(var n=0;n1?n-1:0),r=1;r=a.length);)a[o++].apply(this,i)}return this}},{key:"off",value:function(t,e){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1===arguments.length)return delete this._callbacks[t],this;for(var i=0;i=n.length);){var i=n[e++];if(/(^| )dz-message($| )/.test(i.className)){t=i,i.className="dz-message";break}}t||(t=o.createElement('
    '),this.element.appendChild(t));var r=t.getElementsByTagName("span")[0];return r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(t,e,n,i){var r={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},o=t.width/t.height;null==e&&null==n?(e=r.srcWidth,n=r.srcHeight):null==e?e=n*o:null==n&&(n=e/o);var a=(e=Math.min(e,r.srcWidth))/(n=Math.min(n,r.srcHeight));if(r.srcWidth>e||r.srcHeight>n)if("crop"===i)o>a?(r.srcHeight=t.height,r.srcWidth=r.srcHeight*a):(r.srcWidth=t.width,r.srcHeight=r.srcWidth/a);else{if("contain"!==i)throw new Error("Unknown resizeMethod '"+i+"'");o>a?n=e/o:e=n*o}return r.srcX=(t.width-r.srcWidth)/2,r.srcY=(t.height-r.srcHeight)/2,r.trgWidth=e,r.trgHeight=n,r},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},previewTemplate:'
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n
    ',drop:function(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var e=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=o.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);for(var n=0,i=i=t.previewElement.querySelectorAll("[data-dz-name]");!(n>=i.length);){var r=i[n++];r.textContent=t.name}for(var a=0,s=s=t.previewElement.querySelectorAll("[data-dz-size]");!(a>=s.length);)(r=s[a++]).innerHTML=this.filesize(t.size);this.options.addRemoveLinks&&(t._removeLink=o.createElement(''+this.options.dictRemoveFile+""),t.previewElement.appendChild(t._removeLink));for(var l=function(n){return n.preventDefault(),n.stopPropagation(),t.status===o.UPLOADING?o.confirm(e.options.dictCancelUploadConfirmation,(function(){return e.removeFile(t)})):e.options.dictRemoveFileConfirmation?o.confirm(e.options.dictRemoveFileConfirmation,(function(){return e.removeFile(t)})):e.removeFile(t)},u=0,c=c=t.previewElement.querySelectorAll("[data-dz-remove]");!(u>=c.length);)c[u++].addEventListener("click",l)}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");for(var n=0,i=i=t.previewElement.querySelectorAll("[data-dz-thumbnail]");!(n>=i.length);){var r=i[n++];r.alt=t.name,r.src=e}return setTimeout((function(){return t.previewElement.classList.add("dz-image-preview")}),1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"String"!=typeof e&&e.error&&(e=e.error);for(var n=0,i=i=t.previewElement.querySelectorAll("[data-dz-errormessage]");!(n>=i.length);)i[n++].textContent=e}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,n){if(t.previewElement)for(var i=0,r=r=t.previewElement.querySelectorAll("[data-dz-uploadprogress]");!(i>=r.length);){var o=r[i++];"PROGRESS"===o.nodeName?o.value=e:o.style.width=e+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.innerHTML=this.options.dictRemoveFile),t.previewElement)return t.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i=o.length);){var a=o[r++];for(var s in a){var l=a[s];t[s]=l}}return t}}]),e(o,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(t){return t.accepted})).map((function(t){return t}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(t){return!t.accepted})).map((function(t){return t}))}},{key:"getFilesWithStatus",value:function(t){return this.files.filter((function(e){return e.status===t})).map((function(t){return t}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(o.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(o.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(o.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(t){return t.status===o.UPLOADING||t.status===o.QUEUED})).map((function(t){return t}))}},{key:"init",value:function(){var t=this;"form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(o.createElement('
    '+this.options.dictDefaultMessage+"
    ")),this.clickableElements.length&&function e(){return t.hiddenFileInput&&t.hiddenFileInput.parentNode.removeChild(t.hiddenFileInput),t.hiddenFileInput=document.createElement("input"),t.hiddenFileInput.setAttribute("type","file"),(null===t.options.maxFiles||t.options.maxFiles>1)&&t.hiddenFileInput.setAttribute("multiple","multiple"),t.hiddenFileInput.className="dz-hidden-input",null!==t.options.acceptedFiles&&t.hiddenFileInput.setAttribute("accept",t.options.acceptedFiles),null!==t.options.capture&&t.hiddenFileInput.setAttribute("capture",t.options.capture),t.hiddenFileInput.style.visibility="hidden",t.hiddenFileInput.style.position="absolute",t.hiddenFileInput.style.top="0",t.hiddenFileInput.style.left="0",t.hiddenFileInput.style.height="0",t.hiddenFileInput.style.width="0",o.getElement(t.options.hiddenInputContainer,"hiddenInputContainer").appendChild(t.hiddenFileInput),t.hiddenFileInput.addEventListener("change",(function(){var n=t.hiddenFileInput.files;if(n.length)for(var i=0,r=r=n;!(i>=r.length);){var o=r[i++];t.addFile(o)}return t.emit("addedfiles",n),e()}))}(),this.URL=null!==window.URL?window.URL:window.webkitURL;for(var e=0,n=n=this.events;!(e>=n.length);){var i=n[e++];this.on(i,this.options[i])}this.on("uploadprogress",(function(){return t.updateTotalUploadProgress()})),this.on("removedfile",(function(){return t.updateTotalUploadProgress()})),this.on("canceled",(function(e){return t.emit("complete",e)})),this.on("complete",(function(e){if(0===t.getAddedFiles().length&&0===t.getUploadingFiles().length&&0===t.getQueuedFiles().length)return setTimeout((function(){return t.emit("queuecomplete")}),0)}));var r=function(t){return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(e){return t.emit("dragstart",e)},dragenter:function(e){return r(e),t.emit("dragenter",e)},dragover:function(e){var n=void 0;try{n=e.dataTransfer.effectAllowed}catch(t){}return e.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",r(e),t.emit("dragover",e)},dragleave:function(e){return t.emit("dragleave",e)},drop:function(e){return r(e),t.drop(e)},dragend:function(e){return t.emit("dragend",e)}}}],this.clickableElements.forEach((function(e){return t.listeners.push({element:e,events:{click:function(n){return(e!==t.element||n.target===t.element||o.elementInside(n.target,t.element.querySelector(".dz-message")))&&t.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,o.instances.splice(o.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var t=void 0,e=0,n=0;if(this.getActiveFiles().length){for(var i=0,r=r=this.getActiveFiles();!(i>=r.length);){var o=r[i++];e+=o.upload.bytesSent,n+=o.upload.total}t=100*e/n}else t=100;return this.emit("totaluploadprogress",t,n,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):this.options.paramName+(this.options.uploadMultiple?"["+t+"]":"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t,e=void 0;if(t=this.getExistingFallback())return t;var n='
    ';this.options.dictFallbackText&&(n+="

    "+this.options.dictFallbackText+"

    "),n+='
    ';var i=o.createElement(n);return"FORM"!==this.element.tagName?(e=o.createElement('
    ')).appendChild(i):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=e?e:i}},{key:"getExistingFallback",value:function(){for(var t=function(t){for(var e=0,n=n=t;!(e>=n.length);){var i=n[e++];if(/(^| )fallback($| )/.test(i.className))return i}},e=["div","form"],n=0;n0){for(var i=["tb","gb","mb","kb","b"],r=0;r=Math.pow(this.options.filesizeBase,4-r)/10){e=t/Math.pow(this.options.filesizeBase,4-r),n=o;break}}e=Math.round(10*e)/10}return""+e+" "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],n=0;n=n.length);){var i=n[e++];this.addFile(i)}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){for(var n=[],i=0,r=r=t;!(i>=r.length);){var o,a=r[i++];null!=a.webkitGetAsEntry&&(o=a.webkitGetAsEntry())?o.isFile?n.push(e.addFile(a.getAsFile())):o.isDirectory?n.push(e._addFilesFromDirectory(o,o.name)):n.push(void 0):null==a.getAsFile||null!=a.kind&&"file"!==a.kind?n.push(void 0):n.push(e.addFile(a.getAsFile()))}return n}()}},{key:"_addFilesFromDirectory",value:function(t,e){var n=this,i=t.createReader(),r=function(t){return n=function(e){return e.log(t)},null!=(e=console)&&"function"==typeof e.log?n(e):void 0;var e,n};return function t(){return i.readEntries((function(i){if(i.length>0){for(var r=0,o=o=i;!(r>=o.length);){var a=o[r++];a.isFile?a.file((function(t){if(!n.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath=e+"/"+t.name,n.addFile(t)})):a.isDirectory&&n._addFilesFromDirectory(a,e+"/"+a.name)}t()}return null}),r)}()}},{key:"accept",value:function(t,e){return this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):o.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var e=this;return t.upload={uuid:o.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t),chunked:this.options.chunking&&(this.options.forceChunking||t.size>this.options.chunkSize),totalChunkCount:Math.ceil(t.size/this.options.chunkSize)},this.files.push(t),t.status=o.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(function(n){return n?(t.accepted=!1,e._errorProcessing([t],n)):(t.accepted=!0,e.options.autoQueue&&e.enqueueFile(t)),e._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(t){for(var e=0,n=n=t;!(e>=n.length);){var i=n[e++];this.enqueueFile(i)}return null}},{key:"enqueueFile",value:function(t){var e=this;if(t.status!==o.ADDED||!0!==t.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=o.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return e.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(t){var e=this;if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(t),setTimeout((function(){return e._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return t.emit("thumbnail",e,n),t._processingThumbnail=!1,t._processThumbnailQueue()}))}}},{key:"removeFile",value:function(t){if(t.status===o.UPLOADING&&this.cancelUpload(t),this.files=a(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);for(var e=0,n=n=this.files.slice();!(e>=n.length);){var i=n[e++];(i.status!==o.UPLOADING||t)&&this.removeFile(i)}return null}},{key:"resizeImage",value:function(t,e,n,i,r){var a=this;return this.createThumbnail(t,e,n,i,!0,(function(e,n){if(null==n)return r(t);var i=a.options.resizeMimeType;null==i&&(i=t.type);var s=n.toDataURL(i,a.options.resizeQuality);return"image/jpeg"!==i&&"image/jpg"!==i||(s=u.restore(t.dataURL,s)),r(o.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(t,e,n,i,r,o){var a=this,s=new FileReader;return s.onload=function(){if(t.dataURL=s.result,"image/svg+xml"!==t.type)return a.createThumbnailFromUrl(t,e,n,i,r,o);null!=o&&o(s.result)},s.readAsDataURL(t)}},{key:"createThumbnailFromUrl",value:function(t,e,n,i,r,o,a){var s=this,u=document.createElement("img");return a&&(u.crossOrigin=a),u.onload=function(){var a=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&r&&(a=function(t){return EXIF.getData(u,(function(){return t(EXIF.getTag(this,"Orientation"))}))}),a((function(r){t.width=u.width,t.height=u.height;var a=s.options.resize.call(s,t,e,n,i),c=document.createElement("canvas"),d=c.getContext("2d");switch(c.width=a.trgWidth,c.height=a.trgHeight,r>4&&(c.width=a.trgHeight,c.height=a.trgWidth),r){case 2:d.translate(c.width,0),d.scale(-1,1);break;case 3:d.translate(c.width,c.height),d.rotate(Math.PI);break;case 4:d.translate(0,c.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-c.width);break;case 7:d.rotate(.5*Math.PI),d.translate(c.height,-c.width),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-c.height,0)}l(d,u,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var h=c.toDataURL("image/png");if(null!=o)return o(h,c)}))},null!=o&&(u.onerror=o),u.src=t.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,n=e;if(!(e>=t)){var i=this.getQueuedFiles();if(i.length>0){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-e));for(;n=n.length);){var i=n[e++];i.processing=!0,i.status=o.UPLOADING,this.emit("processing",i)}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter((function(e){return e.xhr===t})).map((function(t){return t}))}},{key:"cancelUpload",value:function(t){if(t.status===o.UPLOADING){for(var e=this._getFilesWithXhr(t.xhr),n=0,i=i=e;!(n>=i.length);)i[n++].status=o.CANCELED;void 0!==t.xhr&&t.xhr.abort();for(var r=0,a=a=e;!(r>=a.length);){var s=a[r++];this.emit("canceled",s)}this.options.uploadMultiple&&this.emit("canceledmultiple",e)}else t.status!==o.ADDED&&t.status!==o.QUEUED||(t.status=o.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){if("function"==typeof t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i=i.upload.totalChunkCount)){var a=n*e.options.chunkSize,s=Math.min(a+e.options.chunkSize,i.size),l={name:e._getParamName(0),data:r.webkitSlice?r.webkitSlice(a,s):r.slice(a,s),filename:i.upload.filename,chunkIndex:n};i.upload.chunks[n]={file:i,index:n,dataBlock:l,status:o.UPLOADING,progress:0,retries:0},e._uploadData(t,[l])}};if(i.upload.finishedChunkUpload=function(n){var r=!0;n.status=o.SUCCESS,n.dataBlock=null,n.xhr=null;for(var s=0;s=a.length);)a[r++].xhr=i;t[0].upload.chunked&&(t[0].upload.chunks[e[0].chunkIndex].xhr=i);var s=this.resolveOption(this.options.method,t),l=this.resolveOption(this.options.url,t);i.open(s,l,!0),i.timeout=this.resolveOption(this.options.timeout,t),i.withCredentials=!!this.options.withCredentials,i.onload=function(e){n._finishedUploading(t,i,e)},i.onerror=function(){n._handleUploadError(t,i)},(null!=i.upload?i.upload:i).onprogress=function(e){return n._updateFilesUploadProgress(t,i,e)};var u={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var c in this.options.headers&&o.extend(u,this.options.headers),u){var d=u[c];d&&i.setRequestHeader(c,d)}var h=new FormData;if(this.options.params){var f=this.options.params;for(var p in"function"==typeof f&&(f=f.call(this,t,i,t[0].upload.chunked?this._getChunk(t[0],i):null)),f){var m=f[p];h.append(p,m)}}for(var g=0,v=v=t;!(g>=v.length);){var y=v[g++];this.emit("sending",y,i,h)}this.options.uploadMultiple&&this.emit("sendingmultiple",t,i,h),this._addFormElementData(h);for(var _=0;_=n.length);){var i=n[e++],r=i.getAttribute("name"),o=i.getAttribute("type");if(o&&(o=o.toLowerCase()),null!=r)if("SELECT"===i.tagName&&i.hasAttribute("multiple"))for(var a=0,s=s=i.options;!(a>=s.length);){var l=s[a++];l.selected&&t.append(r,l.value)}else(!o||"checkbox"!==o&&"radio"!==o||i.checked)&&t.append(r,i.value)}}},{key:"_updateFilesUploadProgress",value:function(t,e,n){var i=void 0;if(void 0!==n){if(i=100*n.loaded/n.total,t[0].upload.chunked){var r=t[0],o=this._getChunk(r,e);o.progress=i,o.total=n.total,o.bytesSent=n.loaded,r.upload.progress=0,r.upload.total=0,r.upload.bytesSent=0;for(var a=0;a=l.length);){var u=l[s++];u.upload.progress=i,u.upload.total=n.total,u.upload.bytesSent=n.loaded}for(var c=0,d=d=t;!(c>=d.length);){var h=d[c++];this.emit("uploadprogress",h,h.upload.progress,h.upload.bytesSent)}}else{var f=!0;i=100;for(var p=0,m=m=t;!(p>=m.length);){var g=m[p++];100===g.upload.progress&&g.upload.bytesSent===g.upload.total||(f=!1),g.upload.progress=i,g.upload.bytesSent=g.upload.total}if(f)return;for(var v=0,y=y=t;!(v>=y.length);){var _=y[v++];this.emit("uploadprogress",_,i,_.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(t,e,n){var i=void 0;if(t[0].status!==o.CANCELED&&4===e.readyState){if("arraybuffer"!==e.responseType&&"blob"!==e.responseType&&(i=e.responseText,e.getResponseHeader("content-type")&&~e.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(t){n=t,i="Invalid JSON response from server."}this._updateFilesUploadProgress(t),200<=e.status&&e.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],e)):this._finished(t,i,n):this._handleUploadError(t,e,i)}}},{key:"_handleUploadError",value:function(t,e,n){if(t[0].status!==o.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(t[0],e);if(i.retries++=a.length);)a[r++],this._errorProcessing(t,n||this.options.dictResponseError.replace("{{statusCode}}",e.status),e)}}},{key:"submitRequest",value:function(t,e,n){t.send(e)}},{key:"_finished",value:function(t,e,n){for(var i=0,r=r=t;!(i>=r.length);){var a=r[i++];a.status=o.SUCCESS,this.emit("success",a,e,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,e,n){for(var i=0,r=r=t;!(i>=r.length);){var a=r[i++];a.status=o.ERROR,this.emit("error",a,e,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}}]),o}();o.initClass(),o.version="5.5.1",o.options={},o.optionsForElement=function(t){return t.getAttribute("id")?o.options[s(t.getAttribute("id"))]:void 0},o.instances=[],o.forElement=function(t){if("string"==typeof t&&(t=document.querySelector(t)),null==(null!=t?t.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return t.dropzone},o.autoDiscover=!0,o.discover=function(){var t=void 0;if(document.querySelectorAll)t=document.querySelectorAll(".dropzone");else{t=[];var e=function(e){return function(){for(var n=[],i=0,r=r=e;!(i>=r.length);){var o=r[i++];/(^| )dropzone($| )/.test(o.className)?n.push(t.push(o)):n.push(void 0)}return n}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){for(var e=[],n=0,i=i=t;!(n>=i.length);){var r=i[n++];!1!==o.optionsForElement(r)?e.push(new o(r)):e.push(void 0)}return e}()},o.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],o.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var e=0,n=n=o.blacklistedBrowsers;!(e>=n.length);)n[e++].test(navigator.userAgent)&&(t=!1);else t=!1;else t=!1;return t},o.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i),o=0,a=e.length,s=0<=a;s?o<=a:o>=a;s?o++:o--)r[o]=e.charCodeAt(o);return new Blob([i],{type:n})};var a=function(t,e){return t.filter((function(t){return t!==e})).map((function(t){return t}))},s=function(t){return t.replace(/[\-_](\w)/g,(function(t){return t.charAt(1).toUpperCase()}))};o.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},o.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},o.getElement=function(t,e){var n=void 0;if("string"==typeof t?n=document.querySelector(t):null!=t.nodeType&&(n=t),null==n)throw new Error("Invalid `"+e+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},o.getElements=function(t,e){var n=void 0,i=void 0;if(t instanceof Array){i=[];try{for(var r=0,o=o=t;!(r>=o.length);)n=o[r++],i.push(this.getElement(n,e))}catch(t){i=null}}else if("string"==typeof t){i=[];for(var a=0,s=s=document.querySelectorAll(t);!(a>=s.length);)n=s[a++],i.push(n)}else null!=t.nodeType&&(i=[t]);if(null==i||!i.length)throw new Error("Invalid `"+e+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return i},o.confirm=function(t,e,n){return window.confirm(t)?e():null!=n?n():void 0},o.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");for(var n=t.type,i=n.replace(/\/.*$/,""),r=0,o=o=e;!(r>=o.length);){var a=o[r++];if("."===(a=a.trim()).charAt(0)){if(-1!==t.name.toLowerCase().indexOf(a.toLowerCase(),t.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(i===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each((function(){return new o(this,t)}))}),null!==t?t.exports=o:window.Dropzone=o,o.ADDED="added",o.QUEUED="queued",o.ACCEPTED=o.QUEUED,o.UPLOADING="uploading",o.PROCESSING=o.UPLOADING,o.CANCELED="canceled",o.ERROR="error",o.SUCCESS="success";var l=function(t,e,n,i,r,o,a,s,l,u){var c=function(t){t.naturalWidth;var e=t.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=e;var i=n.getContext("2d");i.drawImage(t,0,0);for(var r=i.getImageData(1,0,1,e).data,o=0,a=e,s=e;s>o;)0===r[4*(s-1)+3]?a=s:o=s,s=a+o>>1;var l=s/e;return 0===l?1:l}(e);return t.drawImage(e,n,i,r,o,a,s,l,u/c)},u=function(){function t(){i(this,t)}return e(t,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e="",n=void 0,i=void 0,r="",o=void 0,a=void 0,s=void 0,l="",u=0;o=(n=t[u++])>>2,a=(3&n)<<4|(i=t[u++])>>4,s=(15&i)<<2|(r=t[u++])>>6,l=63&r,isNaN(i)?s=l=64:isNaN(r)&&(l=64),e=e+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(l),n=i=r="",o=a=s=l="",ut.length)break}return n}},{key:"decode64",value:function(t){var e=void 0,n=void 0,i="",r=void 0,o=void 0,a="",s=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(t),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");e=this.KEY_STR.indexOf(t.charAt(s++))<<2|(r=this.KEY_STR.indexOf(t.charAt(s++)))>>4,n=(15&r)<<4|(o=this.KEY_STR.indexOf(t.charAt(s++)))>>2,i=(3&o)<<6|(a=this.KEY_STR.indexOf(t.charAt(s++))),l.push(e),64!==o&&l.push(n),64!==a&&l.push(i),e=n=i="",r=o=a="",s{var o=new FormData;let a=new XMLHttpRequest,s="function"==typeof e.signingURL?e.signingURL(t):e.signingURL;a.open("POST",s),a.onload=function(){200==a.status?i(JSON.parse(a.response)):r(a.statusText)},a.onerror=function(t){r(t)},!0===e.withCredentials&&(a.withCredentials=!0),Object.entries(e.headers||{}).forEach(([t,e])=>{a.setRequestHeader(t,e)}),n=Object.assign(n,e.params||{}),Object.entries(n).forEach(([t,e])=>{o.append(t,e)}),a.send(o)})},sendFile(t,e,n){var i=n?this.setResponseHandler:this.sendS3Handler;return this.getSignedURL(t,e).then(e=>i(e,t)).catch(t=>t)},setResponseHandler(t,e){e.s3Signature=t.signature,e.s3Url=t.postEndpoint},sendS3Handler(t,e){let n=new FormData,i=t.signature;return Object.keys(i).forEach((function(t){n.append(t,i[t])})),n.append("file",e),new Promise((e,i)=>{let r=new XMLHttpRequest;r.open("POST",t.postEndpoint),r.onload=function(){if(201==r.status){var t=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[0].innerHTML;e({success:!0,message:t})}else{var n=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[0].innerHTML;i({success:!1,message:n+". Request is marked as resolved when returns as status 201"})}},r.onerror=function(t){var e=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[1].innerHTML;i({success:!1,message:e})},r.send(n)})}};return e.autoDiscover=!1,function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"dropzoneElement",class:{"vue-dropzone dropzone":this.includeStyling},attrs:{id:this.id}},[this.useCustomSlot?e("div",{staticClass:"dz-message"},[this._t("default",[this._v("Drop files here to upload")])],2):this._e()])},staticRenderFns:[]},0,{props:{id:{type:String,required:!0,default:"dropzone"},options:{type:Object,required:!0},includeStyling:{type:Boolean,default:!0,required:!1},awss3:{type:Object,required:!1,default:null},destroyDropzone:{type:Boolean,default:!0,required:!1},duplicateCheck:{type:Boolean,default:!1,required:!1},useCustomSlot:{type:Boolean,default:!1,required:!1}},data:()=>({isS3:!1,isS3OverridesServerPropagation:!1,wasQueueAutoProcess:!0}),computed:{dropzoneSettings(){let t={thumbnailWidth:200,thumbnailHeight:200};return Object.keys(this.options).forEach((function(e){t[e]=this.options[e]}),this),null!==this.awss3&&(t.autoProcessQueue=!1,this.isS3=!0,this.isS3OverridesServerPropagation=!1===this.awss3.sendFileToServer,void 0!==this.options.autoProcessQueue&&(this.wasQueueAutoProcess=this.options.autoProcessQueue),this.isS3OverridesServerPropagation&&(t.url=t=>t[0].s3Url)),t}},mounted(){if(this.$isServer&&this.hasBeenMounted)return;this.hasBeenMounted=!0,this.dropzone=new e(this.$refs.dropzoneElement,this.dropzoneSettings);let t=this;this.dropzone.on("thumbnail",(function(e,n){t.$emit("vdropzone-thumbnail",e,n)})),this.dropzone.on("addedfile",(function(e){var n,i;if(t.duplicateCheck&&this.files.length)for(n=0,i=this.files.length;n-1||e.indexOf(".png")>-1||e.indexOf(".jpg")>-1||e.indexOf(".jpeg")>-1||e.indexOf(".gif")>-1||e.indexOf(".webp")>-1)&&(n=!0),this.dropzone.options.createImageThumbnails&&n&&t.size<=1024*this.dropzone.options.maxThumbnailFilesize*1024){e&&this.dropzone.emit("thumbnail",t,e);for(var i=t.previewElement.querySelectorAll("[data-dz-thumbnail]"),r=0;r{this.getSignedAndUploadToS3(t)}):this.dropzone.processQueue(),this.dropzone.on("success",(function(){t.options.autoProcessQueue=!0})),this.dropzone.on("queuecomplete",(function(){t.options.autoProcessQueue=!1}))},init:function(){return this.dropzone.init()},destroy:function(){return this.dropzone.destroy()},updateTotalUploadProgress:function(){return this.dropzone.updateTotalUploadProgress()},getFallbackForm:function(){return this.dropzone.getFallbackForm()},getExistingFallback:function(){return this.dropzone.getExistingFallback()},setupEventListeners:function(){return this.dropzone.setupEventListeners()},removeEventListeners:function(){return this.dropzone.removeEventListeners()},disable:function(){return this.dropzone.disable()},enable:function(){return this.dropzone.enable()},filesize:function(t){return this.dropzone.filesize(t)},accept:function(t,e){return this.dropzone.accept(t,e)},addFile:function(t){return this.dropzone.addFile(t)},removeFile:function(t){this.dropzone.removeFile(t)},getAcceptedFiles:function(){return this.dropzone.getAcceptedFiles()},getRejectedFiles:function(){return this.dropzone.getRejectedFiles()},getFilesWithStatus:function(){return this.dropzone.getFilesWithStatus()},getQueuedFiles:function(){return this.dropzone.getQueuedFiles()},getUploadingFiles:function(){return this.dropzone.getUploadingFiles()},getAddedFiles:function(){return this.dropzone.getAddedFiles()},getActiveFiles:function(){return this.dropzone.getActiveFiles()},getSignedAndUploadToS3(t){var e=n.sendFile(t,this.awss3,this.isS3OverridesServerPropagation);this.isS3OverridesServerPropagation?e.then(()=>{setTimeout(()=>this.dropzone.processFile(t))}):e.then(e=>{e.success?(t.s3ObjectLocation=e.message,setTimeout(()=>this.dropzone.processFile(t)),this.$emit("vdropzone-s3-upload-success",e.message)):void 0!==e.message?this.$emit("vdropzone-s3-upload-error",e.message):this.$emit("vdropzone-s3-upload-error","Network Error : Could not send request to AWS. (Maybe CORS error)")}),e.catch(t=>{alert(t)})},setAWSSigningURL(t){this.isS3&&(this.awss3.signingURL=t)}}},0,0,0,void 0)}()},kv4v:function(t){t.exports=JSON.parse('{"de":{"name":"Germany","lang":"German"},"en":{"name":"UK","lang":"English"},"es":{"name":"Spain","lang":"Español"},"fr":{"name":"France","lang":"French"},"ie":{"name":"Ireland","lang":"Irish"},"it":{"name":"Italy","lang":"Italian"},"ms":{"name":"Malaysia","lang":"Malay"},"nl":{"name":"Nederland","lang":"Nederlands"},"tk":{"name":"Turkey","lang":"Turkish"},"uk":{"name":"UK","lang":"English"},"pl":{"name":"Poland","lang":"Polski"}}')},"l+Pr":function(t){t.exports=JSON.parse('{"change-details":"Modificar datos personales","your-name":"Tu nombre","unique-id":"Identificador único","email":"Correo electrónico","update-details":"Actualizar datos"}')},l5ep:function(t,e,n){!function(t){"use strict";t.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(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(n("wd/R"))},lF28:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("sTxc"),a=n("kGIl"),s=n.n(a);n("5A0h");function l(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var u={name:"States",created:function(){var t,e=this;return(t=r.a.mark((function t(){var n;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,window.scroll({top:0,left:0}),n=window.location.href.split("/")[4],t.next=5,e.$store.dispatch("GET_STATES",n);case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){l(o,i,r,a,s,"next",t)}function s(t){l(o,i,r,a,s,"throw",t)}a(void 0)}))})()},components:{Loading:s.a,SortLocations:o.a},data:function(){return{loading:!0}},computed:{backButtonText:function(){return this.$store.state.locations.countryName}},methods:{goBack:function(){this.$store.commit("setLocations",[]),this.$router.push({path:"/world"})}}},c=n("KHd+"),d=Object(c.a)(u,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"locations-container"},[e("section",{staticClass:"hero is-info is-medium"},[e("div",{staticClass:"hero-body"},[e("div",{staticClass:"container"},[e("div",{staticClass:"columns"},[e("div",{staticClass:"column is-4"},[e("h1",{staticClass:"title is-1 flex pointer",on:{click:this.goBack}},[e("i",{directives:[{name:"show",rawName:"v-show",value:!this.loading,expression:"!loading"}],staticClass:"fa fa-chevron-left country-back"}),this._v("\n "+this._s(this.backButtonText)+"\n ")])])])])])]),this._v(" "),e("sort-locations",{attrs:{locationType:"state"}})],1)}),[],!1,null,"2a1d6ad0",null);e.default=d.exports},lL9X:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.box[data-v-713cf557] {\n min-height: 100%;\n}\n\n",""])},lXzo:function(t,e,n){!function(t){"use strict";function e(t,e,n){var i,r;return"m"===n?e?"минута":"минуту":t+" "+(i=+t,r={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.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(t){if(t.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(t){if(t.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:e,m:e,mm:e,h:"час",hh:e,d:"день",dd:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})}(n("wd/R"))},lYtQ:function(t,e,n){!function(t){"use strict";function e(t,e,n,i){switch(n){case"s":return e?"хэдхэн секунд":"хэдхэн секундын";case"ss":return t+(e?" секунд":" секундын");case"m":case"mm":return t+(e?" минут":" минутын");case"h":case"hh":return t+(e?" цаг":" цагийн");case"d":case"dd":return t+(e?" өдөр":" өдрийн");case"M":case"MM":return t+(e?" сар":" сарын");case"y":case"yy":return t+(e?" жил":" жилийн");default:return t}}t.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(t){return"ҮХ"===t},meridiem:function(t,e,n){return t<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" өдөр";default:return t}}})}(n("wd/R"))},lbgl:function(t){t.exports=JSON.parse('{"welcome":"Bienvenido a tu nuevo Perfil","out-of":"De {total} usuarios","rank":"Actualmente estas en la {rank} posición","have-uploaded":"Has subido","photos":"Fotos","tags":"Etiquetas","all-photos":"de todas las fotos","all-tags":"de todas las etiquetas","your-level":"Tu nivel","reached-level":"Has alcanzado el nivel","have-xp":"y tienes","need-xp":"Necesitas","to-reach-level":"para alcanzar el siguiente nivel.","total-categories":"Total categorías","calendar-load-data":"Cargar datos","download-data":"Descargar mis datos","email-send-msg":"Se enviará un correo electrónico a la dirección que utilizas para iniciar sesión.","timeseries-verified-photos":"Fotos verificadas","manage-my-photos":"¡Ve tus fotos, selecciona varias, elimínalas o añade etiquetas!","view-my-photos":"Ver mis fotos","my-photos":"Mis fotos","add-tags":"Anadir etiquetas"}')},leKr:function(t){t.exports=JSON.parse('{"general":"General","password":"Contraseña","details":"Datos personales","account":"Mi cuenta","payments":"Mis pagos","privacy":"Privacidad","littercoin":"Littercoin (LTRX)","presence":"Presencia","emails":"Corres electrónicos","show-flag":"Mostrar bandera","teams":"Equipos"}')},lgnt:function(t,e,n){!function(t){"use strict";var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};t.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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},ls82:function(t,e,n){var i=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),a=new k(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return L()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var c={};function d(){}function h(){}function f(){}var p={};p[r]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==e&&n.call(g,r)&&(p=g);var v=f.prototype=d.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var i;this._invoke=function(r,o){function a(){return new e((function(i,a){!function i(r,o,a,s){var l=u(t[r],t,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var i=u(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,c;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function C(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=i}catch(t){Function("r","regeneratorRuntime = r")(i)}},lsr1:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.root-container[data-v-0a8e9974] {\n height: calc(100vh - 10px);\n}\n\n",""])},ltXA:function(t,e,n){"use strict";var i=n("XuX8"),r=n.n(i),o=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"];var a=Array.isArray;function s(t){return null!==t&&"object"==typeof t}function l(t){return"string"==typeof t}var u=Object.prototype.toString;function c(t){return"[object Object]"===u.call(t)}function d(t){return null==t}function h(t){return"function"==typeof t}function f(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=null,i=null;return 1===t.length?s(t[0])||a(t[0])?i=t[0]:"string"==typeof t[0]&&(n=t[0]):2===t.length&&("string"==typeof t[0]&&(n=t[0]),(s(t[1])||a(t[1]))&&(i=t[1])),{locale:n,params:i}}function p(t){return JSON.parse(JSON.stringify(t))}function m(t,e){return!!~t.indexOf(e)}var g=Object.prototype.hasOwnProperty;function v(t,e){return g.call(t,e)}function y(t){for(var e=arguments,n=Object(t),i=1;i0;)e[n]=arguments[n+1];var i=this.$i18n;return i._t.apply(i,[t,i.locale,i._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){for(var n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];var r=this.$i18n;return r._tc.apply(r,[t,r.locale,r._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){for(var e,n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){for(var e,n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}})(L),L.mixin(b),L.directive("t",{bind:M,update:T,unbind:E}),L.component(w.name,w),L.component(S.name,S),L.config.optionMergeStrategies.i18n=function(t,e){return void 0===e?t:e}}var I=function(){this._caches=Object.create(null)};I.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=function(t){var e=[],n=0,i="";for(;n0)d--,c=4,h[0]();else{if(d=0,void 0===n)return!1;if(!1===(n=F(n)))return!1;h[1]()}};null!==c;)if(u++,"\\"!==(e=t[u])||!f()){if(r=Y(e),8===(o=(s=j[c])[r]||s.else||8))return;if(c=o[0],(a=h[o[1]])&&(i=void 0===(i=o[2])?e:i,!1===a()))return;if(7===c)return l}}(t))&&(this._cache[t]=e),e||[]},B.prototype.getPathValue=function(t,e){if(!s(t))return null;var n=this.parsePath(e);if(0===n.length)return null;for(var i=n.length,r=t,o=0;o/,U=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,V=/^@(?:\.([a-z]+))?:/,W=/[()]/g,G={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},q=new I,Z=function(t){var e=this;void 0===t&&(t={}),!L&&"undefined"!=typeof window&&window.Vue&&A(window.Vue);var n=t.locale||"en-US",i=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),r=t.messages||{},o=t.dateTimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||q,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new B,this._dataListeners=[],this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this.getChoiceIndex=function(t,n){var i=Object.getPrototypeOf(e);if(i&&i.getChoiceIndex)return i.getChoiceIndex.call(e,t,n);var r,o;return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):(r=t,o=n,r=Math.abs(r),2===o?r?r>1?1:0:1:r?Math.min(r,2):0)},this._exist=function(t,n){return!(!t||!n)&&(!d(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])})),this._initVM({locale:n,fallbackLocale:i,messages:r,dateTimeFormats:o,numberFormats:a})},X={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};Z.prototype._checkLocaleMessage=function(t,e,n){var i=function(t,e,n,r){if(c(n))Object.keys(n).forEach((function(o){var a=n[o];c(a)?(r.push(o),r.push("."),i(t,e,a,r),r.pop(),r.pop()):(r.push(o),i(t,e,a,r),r.pop())}));else if(a(n))n.forEach((function(n,o){c(n)?(r.push("["+o+"]"),r.push("."),i(t,e,n,r),r.pop(),r.pop()):(r.push("["+o+"]"),i(t,e,n,r),r.pop())}));else if(l(n)){if(H.test(n))r.join("")}};i(e,t,n,[])},Z.prototype._initVM=function(t){var e=L.config.silent;L.config.silent=!0,this._vm=new L({data:t}),L.config.silent=e},Z.prototype.destroyVM=function(){this._vm.$destroy()},Z.prototype.subscribeDataChanging=function(t){this._dataListeners.push(t)},Z.prototype.unsubscribeDataChanging=function(t){!function(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)t.splice(n,1)}}(this._dataListeners,t)},Z.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",(function(){for(var e=t._dataListeners.length;e--;)L.nextTick((function(){t._dataListeners[e]&&t._dataListeners[e].$forceUpdate()}))}),{deep:!0})},Z.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){t.$set(t,"locale",e),t.$forceUpdate()}),{immediate:!0})},Z.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},X.vm.get=function(){return this._vm},X.messages.get=function(){return p(this._getMessages())},X.dateTimeFormats.get=function(){return p(this._getDateTimeFormats())},X.numberFormats.get=function(){return p(this._getNumberFormats())},X.availableLocales.get=function(){return Object.keys(this.messages).sort()},X.locale.get=function(){return this._vm.locale},X.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},X.fallbackLocale.get=function(){return this._vm.fallbackLocale},X.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},X.formatFallbackMessages.get=function(){return this._formatFallbackMessages},X.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},X.missing.get=function(){return this._missing},X.missing.set=function(t){this._missing=t},X.formatter.get=function(){return this._formatter},X.formatter.set=function(t){this._formatter=t},X.silentTranslationWarn.get=function(){return this._silentTranslationWarn},X.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},X.silentFallbackWarn.get=function(){return this._silentFallbackWarn},X.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},X.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},X.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},X.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},X.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var i=this._getMessages();Object.keys(i).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])}))}},X.postTranslation.get=function(){return this._postTranslation},X.postTranslation.set=function(t){this._postTranslation=t},Z.prototype._getMessages=function(){return this._vm.messages},Z.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Z.prototype._getNumberFormats=function(){return this._vm.numberFormats},Z.prototype._warnDefault=function(t,e,n,i,r,o){if(!d(n))return n;if(this._missing){var a=this._missing.apply(null,[t,e,i,r]);if(l(a))return a}else 0;if(this._formatFallbackMessages){var s=f.apply(void 0,r);return this._render(e,o,s.params,e)}return e},Z.prototype._isFallbackRoot=function(t){return!t&&!d(this._root)&&this._fallbackRoot},Z.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},Z.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},Z.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},Z.prototype._interpolate=function(t,e,n,i,r,o,s){if(!e)return null;var u,f=this._path.getPathValue(e,n);if(a(f)||c(f))return f;if(d(f)){if(!c(e))return null;if(!l(u=e[n])&&!h(u))return null}else{if(!l(f)&&!h(f))return null;u=f}return l(u)&&(u.indexOf("@:")>=0||u.indexOf("@.")>=0)&&(u=this._link(t,e,u,i,"raw",o,s)),this._render(u,r,o,n)},Z.prototype._link=function(t,e,n,i,r,o,s){var l=n,u=l.match(U);for(var c in u)if(u.hasOwnProperty(c)){var d=u[c],h=d.match(V),f=h[0],p=h[1],g=d.replace(f,"").replace(W,"");if(m(s,g))return l;s.push(g);var v=this._interpolate(t,e,g,i,"raw"===r?"string":r,"raw"===r?void 0:o,s);if(this._isFallbackRoot(v)){if(!this._root)throw Error("unexpected error");var y=this._root.$i18n;v=y._translate(y._getMessages(),y.locale,y.fallbackLocale,g,i,r,o)}v=this._warnDefault(t,g,v,i,a(o)?o:[o],r),this._modifiers.hasOwnProperty(p)?v=this._modifiers[p](v):G.hasOwnProperty(p)&&(v=G[p](v)),s.pop(),l=v?l.replace(d,v):l}return l},Z.prototype._createMessageContext=function(t){var e=a(t)?t:[],n=s(t)?t:{};return{list:function(t){return e[t]},named:function(t){return n[t]}}},Z.prototype._render=function(t,e,n,i){if(h(t))return t(this._createMessageContext(n));var r=this._formatter.interpolate(t,n,i);return r||(r=q.interpolate(t,n,i)),"string"!==e||l(r)?r:r.join("")},Z.prototype._appendItemToChain=function(t,e,n){var i=!1;return m(t,e)||(i=!0,e&&(i="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(i=n[e]))),i},Z.prototype._appendLocaleToChain=function(t,e,n){var i,r=e.split("-");do{var o=r.join("-");i=this._appendItemToChain(t,o,n),r.splice(-1,1)}while(r.length&&!0===i);return i},Z.prototype._appendBlockToChain=function(t,e,n){for(var i=!0,r=0;r0;)o[a]=arguments[a+4];if(!t)return"";var s=f.apply(void 0,o),l=s.locale||e,u=this._translate(n,l,this.fallbackLocale,t,i,"string",s.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[t].concat(o))}return u=this._warnDefault(l,t,u,i,o,"string"),this._postTranslation&&null!=u&&(u=this._postTranslation(u,t)),u},Z.prototype.t=function(t){for(var e,n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},Z.prototype._i=function(t,e,n,i,r){var o=this._translate(n,e,this.fallbackLocale,t,i,"raw",r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,r)}return this._warnDefault(e,t,o,i,[r],"raw")},Z.prototype.i=function(t,e,n){return t?(l(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},Z.prototype._tc=function(t,e,n,i,r){for(var o,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!t)return"";void 0===r&&(r=1);var l={count:r,n:r},u=f.apply(void 0,a);return u.params=Object.assign(l,u.params),a=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[t,e,n,i].concat(a)),r)},Z.prototype.fetchChoice=function(t,e){if(!t&&!l(t))return null;var n=t.split("|");return n[e=this.getChoiceIndex(e,n.length)]?n[e].trim():t},Z.prototype.tc=function(t,e){for(var n,i=[],r=arguments.length-2;r-- >0;)i[r]=arguments[r+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(i))},Z.prototype._te=function(t,e,n){for(var i=[],r=arguments.length-3;r-- >0;)i[r]=arguments[r+3];var o=f.apply(void 0,i).locale||e;return this._exist(n[o],t)},Z.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},Z.prototype.getLocaleMessage=function(t){return p(this._vm.messages[t]||{})},Z.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},Z.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,y({},this._vm.messages[t]||{},e))},Z.prototype.getDateTimeFormat=function(t){return p(this._vm.dateTimeFormats[t]||{})},Z.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},Z.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,y(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},Z.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(i)&&delete this._dateTimeFormatters[i]}},Z.prototype._localizeDateTime=function(t,e,n,i,r){for(var o=e,a=i[o],s=this._getLocaleChain(e,n),l=0;l0;)e[n]=arguments[n+1];var i=this.locale,r=null;return 1===e.length?l(e[0])?r=e[0]:s(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(r=e[0].key)):2===e.length&&(l(e[0])&&(r=e[0]),l(e[1])&&(i=e[1])),this._d(t,i,r)},Z.prototype.getNumberFormat=function(t){return p(this._vm.numberFormats[t]||{})},Z.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},Z.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,y(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},Z.prototype._clearNumberFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._numberFormatters.hasOwnProperty(i)&&delete this._numberFormatters[i]}},Z.prototype._getNumberFormatter=function(t,e,n,i,r,o){for(var a=e,s=i[a],l=this._getLocaleChain(e,n),u=0;u0;)e[n]=arguments[n+1];var i=this.locale,r=null,a=null;return 1===e.length?l(e[0])?r=e[0]:s(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(r=e[0].key),a=Object.keys(e[0]).reduce((function(t,n){var i;return m(o,n)?Object.assign({},t,((i={})[n]=e[0][n],i)):t}),null)):2===e.length&&(l(e[0])&&(r=e[0]),l(e[1])&&(i=e[1])),this._n(t,i,r,a)},Z.prototype._ntp=function(t,e,n,i){if(!Z.availabilities.numberFormat)return[];if(!n)return(i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e)).formatToParts(t);var r=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,i),o=r&&r.formatToParts(t);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,i)}return o||[]},Object.defineProperties(Z.prototype,X),Object.defineProperty(Z,"availabilities",{get:function(){if(!$){var t="undefined"!=typeof Intl;$={dateTimeFormat:t&&void 0!==Intl.DateTimeFormat,numberFormat:t&&void 0!==Intl.NumberFormat}}return $}}),Z.install=A,Z.version="8.21.0";var J=Z,K={en:{auth:{login:n("TH7d"),signup:n("9FWL"),subscribe:n("gGk+")},common:n("HOht"),creditcard:n("2Uk4"),home:{about:n("Hc5j"),donate:n("IKhi"),footer:n("1O6V"),welcome:n("+7PB")},litter:n("ePAn"),location:n("1rbm"),locations:{cityVueMap:n("5S+d"),countries:n("kv4v")},nav:n("T7To"),notifications:n("Zhs0"),profile:{dashboard:n("pAip")},settings:{account:n("V2N6"),common:n("GGJd"),details:n("6mC8"),emails:n("94G+"),globalFlag:n("u8o6"),littercoin:n("eSK7"),password:n("qrWs"),payments:n("BDmR"),presence:n("4loq"),privacy:n("Xlqv")},signup:n("RRYh"),tags:n("15wQ"),teams:{create:n("diqR"),dashboard:n("1rPI"),join:n("EDOO"),leaderboard:n("sIYV"),myteams:n("PT26"),settings:n("B8Gz")},upload:n("SFi8")},es:{auth:{login:n("7VP3"),signup:n("0NR4"),subscribe:n("E6oU")},common:n("wEH+"),creditcard:n("tIw/"),home:{about:n("gUen"),donate:n("VRB9"),footer:n("N+wP"),welcome:n("09JO")},litter:n("fIXd"),location:n("tulk"),locations:{cityVueMap:n("XqNS"),countries:n("0Ajk")},nav:n("+4ci"),notifications:n("oFPX"),profile:{dashboard:n("lbgl")},settings:{account:n("56Dk"),common:n("leKr"),details:n("l+Pr"),emails:n("cJYt"),globalFlag:n("sG1D"),littercoin:n("1lel"),password:n("QoU/"),payments:n("JumI"),presence:n("nMp1"),privacy:n("vsSR")},signup:n("VPXm"),tags:n("CO0D"),teams:{create:n("sX8j"),dashboard:n("1SYZ"),join:n("s2Pw"),leaderboard:n("Hw7p"),myteams:n("TFCV"),settings:n("1FiT")},upload:n("p+ct")},nl:{auth:{login:n("15/P"),signup:n("TW6y"),subscribe:n("DIPp")},common:n("QLhK"),creditcard:n("GvbF"),home:{about:n("nAEM"),donate:n("BGUB"),footer:n("p5/b"),welcome:n("KNCH")},litter:n("4CRn"),location:n("A85c"),locations:{cityVueMap:n("7QOT"),countries:n("nSSA")},nav:n("rhOw"),notifications:n("uvWH"),profile:{dashboard:n("feLt")},settings:{account:n("cXOZ"),common:n("GKyZ"),details:n("61Kv"),emails:n("YytN"),globalFlag:n("Sn/w"),littercoin:n("uFkq"),password:n("xoeU"),payments:n("+7ij"),presence:n("Tsbz"),privacy:n("jR8y")},signup:n("ILJX"),tags:n("NEqZ"),teams:{create:n("e7o3"),dashboard:n("+0tX"),join:n("eJw/"),leaderboard:n("pwP9"),myteams:n("Td1u"),settings:n("PeV8")},upload:n("Kb5C")},pl:{auth:{login:n("t2E5"),signup:n("/HxI"),subscribe:n("PCBF")},common:n("Sl6+"),creditcard:n("AYZs"),home:{about:n("gtXK"),donate:n("gMnw"),footer:n("8ClP"),welcome:n("ssMp")},litter:n("HpQ/"),location:n("OBXI"),locations:{cityVueMap:n("syxb"),countries:n("Bj9c")},nav:n("uWY9"),notifications:n("rJdF"),profile:{dashboard:n("AElL")},settings:{account:n("9Q6N"),common:n("G6KL"),details:n("g1lL"),emails:n("BE1l"),globalFlag:n("zNTn"),littercoin:n("P8nw"),password:n("P+KS"),payments:n("VigF"),presence:n("30qX"),privacy:n("Xs+J")},signup:n("TGU/"),tags:n("hqZl"),teams:{create:n("R7ON"),dashboard:n("4Plr"),join:n("dxLh"),leaderboard:n("b4WK"),myteams:n("o4on"),settings:n("E+4Y")},upload:n("BqL+")}};r.a.use(J);e.a=new J({locale:"en",fallbackLocale:"en",messages:K})},lyxo:function(t,e,n){!function(t){"use strict";function e(t,e,n){var i=" ";return(t%100>=20||t>=100&&t%100==0)&&(i=" de "),t+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._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:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(n("wd/R"))},m7SO:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.cmc[data-v-5b5ada14] {\n height: calc(100vh - 82px);\n}\n",""])},meck:function(t,e,n){"use strict";var i=n("CASQ");n.n(i).a},mfkC:function(t,e,n){"use strict";var i=n("nwui");n.n(i).a},mtZm:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {\r\n\t-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;\r\n\t-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;\r\n\t-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;\r\n\ttransition: transform 0.3s ease-out, opacity 0.3s ease-in;\r\n}\r\n\r\n.leaflet-cluster-spider-leg {\r\n\t/* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */\r\n\t-webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;\r\n\t-moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;\r\n\t-o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;\r\n\ttransition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;\r\n}\r\n",""])},myLu:function(t,e,n){(function(t,n){var i="[object Arguments]",r="[object Map]",o="[object Object]",a="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,u=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[i]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[r]=p["[object Number]"]=p[o]=p["[object RegExp]"]=p[a]=p["[object String]"]=p["[object WeakMap]"]=!1;var m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,v=m||g||Function("return this")(),y=e&&!e.nodeType&&e,_=y&&"object"==typeof n&&n&&!n.nodeType&&n,b=_&&_.exports===y&&m.process,w=function(){try{return b&&b.binding("util")}catch(t){}}(),x=w&&w.isTypedArray;function k(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function C(t,e){for(var n=-1,i=t?t.length:0,r=Array(i);++n-1},dt.prototype.set=function(t,e){var n=this.__data__,i=gt(n,t);return i<0?n.push([t,e]):n[i][1]=e,this},ht.prototype.clear=function(){this.__data__={hash:new ct,map:new(J||dt),string:new ct}},ht.prototype.delete=function(t){return Pt(this,t).delete(t)},ht.prototype.get=function(t){return Pt(this,t).get(t)},ht.prototype.has=function(t){return Pt(this,t).has(t)},ht.prototype.set=function(t,e){return Pt(this,t).set(t,e),this},ft.prototype.add=ft.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ft.prototype.has=function(t){return this.__data__.has(t)},pt.prototype.clear=function(){this.__data__=new dt},pt.prototype.delete=function(t){return this.__data__.delete(t)},pt.prototype.get=function(t){return this.__data__.get(t)},pt.prototype.has=function(t){return this.__data__.has(t)},pt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof dt){var i=n.__data__;if(!J||i.length<199)return i.push([t,e]),this;n=this.__data__=new ht(i)}return n.set(t,e),this};var vt,yt,_t=(vt=function(t,e){return t&&bt(t,e,ee)},function(t,e){if(null==t)return t;if(!qt(t))return vt(t,e);for(var n=t.length,i=yt?n:-1,r=Object(t);(yt?i--:++i=s)return l;var u=n[i];return l*("desc"==u?-1:1)}}return t.index-e.index}(t,e,n)}))}function Tt(t){return Gt(t)?t:Ft(t)}function Et(t,e){if(t!==e){var n=void 0!==t,i=null===t,r=t==t,o=Qt(t),a=void 0!==e,s=null===e,l=e==e,u=Qt(e);if(!s&&!u&&!o&&t>e||o&&a&&l&&!s&&!u||i&&a&&l||!n&&l||!r)return 1;if(!i&&!o&&!u&&ts))return!1;var u=o.get(t);if(u&&o.get(e))return u==e;var c=-1,d=!0,h=1&r?new ft:void 0;for(o.set(t,e),o.set(e,t);++c-1&&t%1==0&&t1&&Rt(t,e[0],e[1])?e=[]:n>2&&Rt(e[0],e[1],e[2])&&(e=[e[0]]),Mt(t,function t(e,n,i,r,o){var a=-1,s=e.length;for(i||(i=It),o||(o=[]);++a0&&i(l)?n>1?t(l,n-1,i,r,o):L(o,l):r||(o[o.length]=l)}return o}(e,1),[])}));function Ut(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a),a};return n.cache=new(Ut.Cache||ht),n}function Vt(t,e){return t===e||t!=t&&e!=e}function Wt(t){return function(t){return Kt(t)&&qt(t)}(t)&&F.call(t,"callee")&&(!V.call(t,"callee")||B.call(t)==i)}Ut.Cache=ht;var Gt=Array.isArray;function qt(t){return null!=t&&Xt(t.length)&&!Zt(t)}function Zt(t){var e=Jt(t)?B.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Xt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Jt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Kt(t){return!!t&&"object"==typeof t}function Qt(t){return"symbol"==typeof t||Kt(t)&&"[object Symbol]"==B.call(t)}var te=x?M(x):function(t){return Kt(t)&&Xt(t.length)&&!!p[B.call(t)]};function ee(t){return qt(t)?mt(t):St(t)}function ne(t){return t}n.exports=Ht}).call(this,n("yLpj"),n("YuTi")(t))},n2md:function(t,e,n){"use strict";var i=n("o0o1"),r=n.n(i),o=n("vne5"),a=n("/yRl"),s=n("Whpc"),l=n("URHZ"),u=(n("xMlF"),n("gaDp")),c=n("ZoWG"),d=n("5n2/"),h=n.n(d);function f(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function p(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&!0!==this.annotations&&0!==this.id?n("div",{staticClass:"mb-5"},[n("p",{staticClass:"mb-05"},[t._v(t._s(t.$t("tags.recently-tags")))]),t._v(" "),t._l(Object.keys(t.recentTags),(function(e){return n("div",[n("p",[t._v(t._s(t.getCategoryName(e)))]),t._v(" "),n("transition-group",{key:e,staticClass:"recent-tags",attrs:{name:"list",tag:"div"}},t._l(Object.keys(t.recentTags[e]),(function(i){return n("div",{key:i,staticClass:"litter-tag",on:{click:function(n){return t.addRecentTag(e,i)}}},[n("p",[t._v(t._s(t.getTagName(e,i)))])])})),0)],1)}))],2):t._e(),t._v(" "),n("div",[n("button",{staticClass:"button is-medium is-danger",attrs:{disabled:t.checkDecr},on:{click:t.decr}},[t._v("-")]),t._v(" "),n("button",{staticClass:"button is-medium is-info",on:{click:t.addTag}},[t._v(t._s(t.$t("tags.add-tag")))]),t._v(" "),n("button",{staticClass:"button is-medium is-dark",attrs:{disabled:t.checkIncr},on:{click:t.incr}},[t._v("+")])]),t._v(" "),n("br"),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:!t.admin&&0!==this.id,expression:"! admin && this.id !== 0"}],class:t.button,attrs:{disabled:t.checkTags},on:{click:t.submit}},[t._v(t._s(t.$t("common.submit")))]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:0!==this.id,expression:"this.id !== 0"}],staticClass:"show-mobile"},[n("br"),t._v(" "),n("tags",{attrs:{"photo-id":t.id}}),t._v(" "),n("div",{staticClass:"custom-buttons"},[n("profile-delete",{attrs:{photoid:t.id}}),t._v(" "),n("presence",{attrs:{itemsr:!0}})],1)],1)])])}),[],!1,null,"3a284a4c",null);e.a=y.exports},n9CN:function(t,e,n){var i=n("lsr1");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},nAEM:function(t){t.exports=JSON.parse('{"what-about-litter":"En zwerfafval dan?","about2":"Op dit moment lekken miljoenen, met plastic gevulde, sigarettenfilters gif in de grond.","about3":"Het resultaat?","about4":"Ongelovelijke hoeveelheden nicotine en andere giftige chemicaliën komen vrij.","about5":"Deze giftige chemicaliën hopen zich op in verschillende planten en dieren. Sommige hiervan eten we.","about6":"Een milieuramp ligt op de loer.","about7":"Jij kunt helpen deze te voorkomen door bij te dragen aan OpenLitterMap","about8":"Neem een foto, geef het een label en upload hem.","about9":"Ik wil helpen!","about9a":"Neem een foto","about9b":"Geef het een label","about9c":"Upload hem","about10":"Elk jaar vinden miljoenen tonnen plastic hun weg van land naar zee.","about11":"Waar het aanzienlijk schadelijker, moeilijker en duurder wordt om te verwijderen.","about12":"De illusie van \\"stadsreiniging\\"","about13":"wordt mogelijk gemaakt door infrastructureel ontwerp","about14":"OpenLitterMap data is","about14a":"Open Data","about14b":"Dit betekent dat iedereen de data gratis kan downloaden en kan gebruiken voor elk doel, zonder toestemming te hoeven vragen.","about15":"Open data is essentieel om transparantie, democratie en verantwoordingsplicht over vervuiling aan de wetenschap te brengen. Wie mag anders de data gebruiken?","about16":"OpenLitterMap geeft jou de middelen om een burgerweterschapper te worden","about17":"Je bent nu in staat om bij te dragen aan de productie van geospatiale kennis over onze wereld. Hiermee kan het publieke en institutionele gedrag gewijzigd worden.","about17a":"Onze gegevens worden in kaart gebracht door ruimte, tijd, locatie en gedrag","about17b":"Bekijk dit ongelooflijke stuk Gratis en Open data over de vervuiling die wordt veroorzaakt door de producten van een handvol wereldwijde bedrijven","about17c":"Wil je de data downloaden??","about18":"De productie van geospatiale kennis was ooit voorbehouden aan grote instituten en machthebbers.","about19":"Als Burger Wetenschapper, ","about20":"kan jij kennis creëren. ","about21":"Dit is een verschuiving in de manier waarop geografische informatie over onze wereld wordt gemaakt.","about22":"Hoe je kunt helpen:","about23":"Meld je vandaag nog aan!","about24":"Zet locatiegegevens aan in je telefoon. Uitleg hoe je dat doet, staat in de mail die je ontvangt als je je aanmeldt.","about25":"Je kunt alles in kaart brengen, van iets kleins als een sigarettenpeuk tot de inhoud van een heel strand of straat in 1 foto","about26":"Als er teveel afval ligt en het is niet te berekenen, dan kan je kiezen voor de categorie \'Dumping\' en geef een score van 1-100 of kies bijvoorbeeld \\"Willekeurig afval\\" in de \\"Anders\\" categorie","about27":"Als je veelzeggende plattegronden wilt maken, maak dan zoveel mogelijk foto\'s. Of, als je niet zoveel tijd hebt, maak dan 1 foto en label zoveel mogelijk items daarin.","about28":"Gecontroleerde foto\'s worden automatisch toegevoegd aan de database, voorzien van aantallen en locaties en worden beschikbaar gesteld aan iedereen om te kunnen gebruiken!","about29":"Help ons om de problemen én oplossingen te communiceren zodat we kunnen voorkomen dat plastic de oceaan bereikt.","about29a":"Als je ons werk waardeert en ons zou willen steunen, sluit je dan ook aan bij onze fondsenwervingscampagne","about30":"Sluit je aan bij Open Litter Map om een wereld te creëren met minder van","about301":"dit","about302":"en dit...","about31":"Er wordt geschat, dat alleen al in 2010, 8 miljard kilo plastic in de zee is beland. Dat is gemiddeld 916.000 kilo per uur.","about32":"Een voorbeeld van wat er in de oceanen drijft","about33":"Plastic vervuiling is op dit moment verantwoordelijk voor de dood van ongeveer 1 miljoen vogels en 100.000 zeedieren per jaar","about34":"Als de huidige trend zich voortzet, wordt verwacht dat in het jaar 2025, 70 miljard kilo plastic in de oceaan verdwijnt","about35":"Ik wil helpen!"}')},nMp1:function(t){t.exports=JSON.parse('{"do-you-pickup":"¿Recoges la basura o la dejas ahí?","save-def-settings":"Aquí puedes guardar tu configuración por defecto.","change-value-of-litter":"También puedes cambiar el valor de cada artículo de basura a medida que los etiquetas.","status":"Estado Actual","toggle-presence":"Alternar presencia","pickup?":"¿Recoger?"}')},nOdW:function(t,e,n){"undefined"!=typeof self&&self,t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t){return t&&t.__esModule?t:{default:t}}(n(2));e.default={install:function(t,e){if(!e)throw new Error("[Vue-Echo] cannot locate options");if("object"!==(void 0===e?"undefined":i(e)))throw new Error("[Vue-Echo] cannot initiate options");"function"==typeof e.socketId?t.prototype.$echo=e:t.prototype.$echo=new r.default(e),t.mixin({created:function(){var t=this.$options.channel;if(t){t.startsWith("private:")?this.channel=this.$echo.private(t.replace("private:","")):t.startsWith("presence:")?this.channel=this.$echo.join(t.replace("presence:","")):this.channel=this.$echo.channel(t);var e=this.$options.echo;e&&Object.keys(e).forEach((function(t){var n=this;this.channel.listen(t,(function(i){e[t](i,n)}))}),this)}},beforeDestroy:function(){this.$options.channel&&this.channel.unsubscribe()}})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},r=function(){function t(t,e){for(var n=0;n=3&&t%100<=10?3:t%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 عام"]},i=function(t){return function(i,r,o,a){var s=e(i),l=n[t][e(i)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,i)}},r=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-dz",{months:r,monthsShort:r,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(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n("wd/R"))},o4on:function(t){t.exports=JSON.parse('{"title":"Moje drużyny","currently-joined-team":"Jesteś obecnie członkiem drużyny","currently-not-joined-team":"Nie jesteś obecnie członkiem drużyny","no-joined-team":"Nie dołączyłeś jeszcze do drużyny","leader-of-team":"Jesteś liderem tej drużyny","join-team":"Dołącz do drużyny","change-active-team":"Zmień aktywną drużynę","download-team-data":"Pobierz dane drużyny","hide-from-leaderboards":"Ukryj w rankingach","show-on-leaderboards":"Pokaż w rankingach","position-header":"Pozycja","name-header":"Nazwa","username-header":"Nazwa Użytkownika","status-header":"Status","photos-header":"Zdjęcia","litter-header":"Odpady","last-activity-header":"Ostatnia aktywność"}')},oFPX:function(t){t.exports=JSON.parse('{"success":"Todo correcto","error":"¡Error!","tags-added":"¡Éxito! Tus etiquetas han sido añadidas","subscription-cancelled":"Tu suscripción ha sido cancelada","privacy-updated":"Se ha guardado tu configuración de privacidad","litter-toggled":"Valor sobre recogida de basura actualizado","settings":{"subscribed":"¡Te has suscrito a las actualizaciones y buenas noticias!","unsubscribed":"Te has dado de baja. ¡Ya no recibirás las buenas noticias!","flag-updated":"Tu bandera ha sido actualizada"}}')},oUSK:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.is-box[data-v-4bd574db] {\n border: 1px solid #ccc;\n padding: 1em;\n margin-bottom: 1em;\n max-width: 20em;\n position: relative;\n}\n.is-box.is-active[data-v-4bd574db] {\n border: 1px solid green;\n}\n.box-label[data-v-4bd574db] {\n margin-bottom: 0.25em;\n}\n.box-categories[data-v-4bd574db] {\n display: grid;\n}\n.duplicate-box[data-v-4bd574db] {\n position: absolute;\n right: 1em;\n}\n.toggle-box[data-v-4bd574db] {\n position: absolute;\n top: 7em;\n right: 1em;\n}\n.rotate-box[data-v-4bd574db] {\n position: absolute;\n top: 10em;\n right: 1em;\n}\n",""])},oVpI:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("kGIl"),a=n.n(o),s=(n("5A0h"),{name:"GlobalLeaders",data:function(){return{dir:"/assets/icons/flags/",positions:["1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th"]}},computed:{leaders:function(){return this.$store.state.locations.globalLeaders}},methods:{getCountryFlag:function(t){return t?(t=t.toLowerCase(),this.dir+t+".png"):""}}}),l=(n("viBP"),n("KHd+")),u={name:"ProgressBar",props:["currentxp","xpneeded","startingxp"],computed:{currentValue:function(){var t=this.xpneeded-this.startingxp;return 100*(this.currentxp-this.startingxp)/t}}},c={name:"GlobalMetaData",props:["loading"],components:{GlobalLeaders:Object(l.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"columns is-centered"},[n("div",{staticClass:"column is-half"},[n("table",{staticClass:"table is-fullwidth",staticStyle:{"background-color":"transparent"}},[n("thead",[n("tr",[n("th",[t._v(t._s(t.$t("location.position")))]),t._v(" "),n("th",[t._v(t._s(t.$t("location.name")))]),t._v(" "),n("th",[t._v(t._s(t.$t("location.xp")))])])]),t._v(" "),n("tbody",t._l(t.leaders,(function(e,i){return n("tr",{staticClass:"wow slideInLeft"},[n("td",{staticStyle:{color:"white",position:"relative",width:"20%"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.positions[i])+"\n\t\t\t\t\t\t\t"),t._v(" "),n("img",{directives:[{name:"show",rawName:"v-show",value:e.flag,expression:"leader.flag"}],staticClass:"leader-flag",attrs:{src:t.getCountryFlag(e.flag)}})]),t._v(" "),n("td",{staticStyle:{color:"white"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t")]),t._v(" "),n("td",{staticStyle:{color:"white",width:"20%"}},[t._v(t._s(e.xp))])])})),0)])])])}),[],!1,null,"74b6a90b",null).exports,ProgressBar:Object(l.a)(u,(function(){var t=this.$createElement;return(this._self._c||t)("progress",{staticClass:"progress is-large is-success",attrs:{max:100},domProps:{value:this.currentValue}})}),[],!1,null,null,null).exports},channel:"main",echo:{ImageUploaded:function(t,e){t.isUserVerified&&e.$store.commit("incrementTotalPhotos")},ImageDeleted:function(t,e){t.isUserVerified&&e.$store.commit("decrementTotalPhotos")},TagsVerifiedByAdmin:function(t,e){e.$store.commit("incrementTotalLitter",t.total_litter_all_categories),t.isUserVerified||e.$store.commit("incrementTotalPhotos")},TagsDeletedByAdmin:function(t,e){e.$store.commit("decrementTotalLitter",t.totalLitter)}},computed:{littercoin:function(){return this.$store.state.locations.littercoin},nextXp:function(){return this.$store.state.locations.level.nextXp},previous_littercoin:function(){var t=0;return this.$localStorage.get("littercoin_owed")&&(t=this.$localStorage.get("littercoin_owed")),this.$localStorage.set("littercoin_owed",this.littercoin),t},previous_total_litter:function(){var t=0;return this.$localStorage.get("total_litter")&&(t=this.$localStorage.get("total_litter")),this.$localStorage.set("total_litter",this.total_litter),t},previous_total_photos:function(){var t=0;return this.$localStorage.get("total_photos")&&(t=this.$localStorage.get("total_photos")),this.$localStorage.set("total_photos",this.total_photos),t},previousXp:function(){return this.$store.state.locations.level.previousXp},progress:function(){var t=this.nextXp-this.previousXp;return(100*(this.total_litter-this.previousXp)/t).toFixed(2)},total_litter:function(){return this.$store.state.locations.total_litter},total_photos:function(){return this.$store.state.locations.total_photos}},methods:{commas:function(t){return parseInt(t).toLocaleString()}}},d=Object(l.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"hero is-link is-bold"},[n("section",{staticClass:"section is-link is-bold"},[n("div",{staticClass:"container"},[n("h3",{staticClass:"title is-2 has-text-centered"},[t._v(t._s(t.$t("location.global-leaderboard")))]),t._v(" "),n("GlobalLeaders")],1),t._v(" "),n("div",{staticClass:"container mt2"},[n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-half is-offset-3 px-0"},[n("div",{staticClass:"columns"},[n("div",{staticClass:"column flex"},[n("h4",{staticClass:"flex-1"},[t._v("\n "+t._s(t.$t("location.previous-target"))+":\n "),n("br"),t._v(" "),n("strong",{staticClass:"has-text-white"},[t._v("\n "+t._s(t._f("commas")(this.previousXp))+" "+t._s(t.$t("location.litter"))+"\n ")])]),t._v(" "),n("h4",[t._v(t._s(t.$t("location.next-target"))+":\n "),n("br"),t._v(" "),n("strong",{staticClass:"has-text-white"},[t._v("\n "+t._s(t._f("commas")(this.nextXp))+" "+t._s(t.$t("location.litter"))+"\n ")])])])]),t._v(" "),n("ProgressBar",{staticClass:"mb1em",attrs:{currentxp:t.total_litter,startingxp:t.previousXp,xpneeded:t.nextXp}}),t._v(" "),t.loading?n("p",{staticClass:"has-text-centered mb2"},[t._v("...%")]):n("p",{staticClass:"has-text-centered mb2"},[t._v(t._s(this.progress)+"%")])],1)]),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-half is-offset-3"},[n("div",{staticClass:"columns is-desktop"},[n("div",{staticClass:"column"},[n("h1",{staticClass:"subtitle is-5 has-text-centered"},[n("strong",{staticClass:"has-text-black"},[t._v("\n "+t._s(t.$t("location.total-verified-litter"))+"\n ")])]),t._v(" "),n("h1",{staticClass:"title is-2 has-text-centered"},[n("strong",[t.loading?n("span",[t._v("...")]):n("number",{attrs:{from:t.previous_total_litter,to:t.total_litter,duration:3,delay:1,easing:"Power1.easeOut",format:t.commas}})],1)])]),t._v(" "),n("div",{staticClass:"column"},[n("h1",{staticClass:"subtitle is-5 has-text-centered"},[n("strong",{staticClass:"has-text-black"},[t._v("\n "+t._s(t.$t("location.total-verified-photos"))+"\n ")])]),t._v(" "),n("h1",{staticClass:"title is-2 has-text-centered"},[n("strong",[t.loading?n("span",[t._v("...")]):n("number",{attrs:{from:t.previous_total_photos,to:t.total_photos,duration:3,delay:1,easing:"Power1.easeOut",format:t.commas}})],1)])]),t._v(" "),n("div",{staticClass:"column"},[n("h1",{staticClass:"subtitle is-5 has-text-centered"},[n("strong",{staticClass:"has-text-black"},[t._v("\n "+t._s(t.$t("location.total-littercoin-issued"))+"\n ")])]),t._v(" "),n("h1",{staticClass:"title is-2 has-text-centered"},[n("strong",[t.loading?n("span",[t._v("...")]):n("number",{attrs:{from:t.previous_littercoin,to:t.littercoin,duration:3,delay:1,easing:"Power1.easeOut",format:t.commas}})],1)])])])])])])])])}),[],!1,null,"bb0a64fa",null).exports,h=n("sTxc");function f(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var p={name:"Countries",components:{Loading:a.a,GlobalMetaData:d,SortLocations:h.a},created:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.$store.dispatch("GET_COUNTRIES");case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){f(o,i,r,a,s,"next",t)}function s(t){f(o,i,r,a,s,"throw",t)}a(void 0)}))})()},data:function(){return{loading:!0}}},m=Object(l.a)(p,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(e){t.loading=e}}}),t._v(" "),n("GlobalMetaData",{attrs:{loading:t.loading}}),t._v(" "),n("SortLocations",{attrs:{locationType:"country"}})],1)}),[],!1,null,null,null);e.default=m.exports},"p+ct":function(t){t.exports=JSON.parse('{"click-to-upload":"Haz clic para subir tus fotos o arrastra y sueltas aquí","thank-you":"¡Gracias!","need-tag-litter":"A continuación, hay que etiquetar la basura","tag-litter":"Etiquetar basura"}')},"p/rL":function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},"p5/b":function(t){t.exports=JSON.parse('{"email-you":"Wil je dat we je zo nu en dan voorzien van goed nieuws","subscribe":"Abonneer","subscribed-success-msg":"Je bent nu geabonneerd op goed nieuws! Je kunt je abonnement op elk moment opzeggen","need-your-help":"We hebben jouw hulp nodig om \'s werelds meest geavanceerde en toegankelijke database over zwerfafval te maken","read":"LEES","blog":"Blog","research-paper":"Onderzoeksrapport","watch":"KIJK","help":"HELP","join-the-team":"Sluit je aan bij het Team","join-slack":"Sluit je aan bij Slack","create-account":"Maak een Account","fb-group":"Facebook Groep","single-donation":"Eenmalige donatie","crowdfunding":"Fondsenwerving","olm-is-flagship":"OpenLitterMap is het vlaggenschip product van GeoTech Innovations Ltd., een startup in Ierland, baanbrekend op het gebied van burgerwetenschap #650323","enter-email":"Voer je email adres in","references":"Referenties","credits":"Credits"}')},p6Vx:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("JpmB"),a=n("pArE"),s=n("Tith"),l=n("9g/y"),u=n("yp/A"),c=n.n(u),d=n("ltXA"),h=n("wd/R"),f=n.n(h),p={name:"TeamMap",components:{LMap:o.a,LTileLayer:a.a,LMarker:s.a,LPopup:l.a,"v-marker-cluster":c.a},created:function(){this.attribution+=(new Date).getFullYear()},data:function(){return{zoom:2,center:L.latLng(0,0),url:"https://{s}.tile.osm.org/{z}/{x}/{y}.png",attribution:'Map Data © OpenStreetMap contributors, Litter data © OpenLitterMap & Contributors ',loading:!0}},computed:{geojson:function(){return this.$store.state.teams.geojson.features}},methods:{content:function(t,e,n){var i=e.split(",");i.pop();var r="";return i.forEach((function(t){var e=t.split(" ");r+=d.a.t("litter."+e[0])+": "+e[1]+"
    "})),'

    '+r+'

    Taken on '+f()(n).format("LLL")+"

    "}}},m=(n("Rv3/"),n("KHd+"));function g(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function v(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){g(o,i,r,a,s,"next",t)}function s(t){g(o,i,r,a,s,"throw",t)}a(void 0)}))}}var y={name:"TeamsDashboard",components:{TeamMap:Object(m.a)(p,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"team-map-container"},[n("l-map",{attrs:{zoom:t.zoom,center:t.center,minZoom:1}},[n("l-tile-layer",{attrs:{url:t.url,attribution:t.attribution}}),t._v(" "),t.geojson.length>0?n("v-marker-cluster",t._l(t.geojson,(function(e){return n("l-marker",{key:e.properties.id,attrs:{"lat-lng":e.properties.latlng}},[n("l-popup",{attrs:{content:t.content(e.properties.img,e.properties.text,e.properties.datetime)}})],1)})),1):t._e()],1)],1)}),[],!1,null,null,null).exports},created:function(){var t=this;return v(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.changeTeamOrTime();case 3:t.loading=!1;case 4:case"end":return e.stop()}}),e)})))()},data:function(){return{period:"all",timePeriods:["today","week","month","year","all"],loading:!0,viewTeam:0}},computed:{litter_count:function(){return this.$store.state.teams.allTeams.litter_count},photos_count:function(){return this.$store.state.teams.allTeams.photos_count},members_count:function(){return this.$store.state.teams.allTeams.members_count},teams:function(){return this.$store.state.teams.teams}},methods:{changeTeamOrTime:function(){var t=this;return v(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("GET_TEAM_DASHBOARD_DATA",{period:t.period,team_id:t.viewTeam});case 2:case"end":return e.stop()}}),e)})))()},getPeriod:function(t){return t||(t=this.period),this.$t("teams.dashboard.times."+t)}}},_=(n("KTUv"),Object(m.a)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"tdc"},[n("p",{staticClass:"subtitle is-centered is-3"},[t._v(t._s(t.$t("teams.dashboard.teams-dashboard")))]),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column teams-card"},[n("span",{staticClass:"title is-2",staticStyle:{color:"#7b848e"}},[t._v(t._s(t.photos_count))]),t._v(" "),n("br"),t._v("\n "+t._s(t.$t("teams.dashboard.photos-uploaded"))+" "+t._s(this.getPeriod())+"\n ")]),t._v(" "),n("div",{staticClass:"column teams-card"},[n("span",{staticClass:"title is-2",staticStyle:{color:"#7b848e"}},[t._v(t._s(t.litter_count))]),t._v(" "),n("br"),t._v("\n "+t._s(t.$t("teams.dashboard.litter-tagged"))+" "+t._s(this.getPeriod())+"\n ")]),t._v(" "),n("div",{staticClass:"column teams-card"},[n("span",{staticClass:"title is-2",staticStyle:{color:"#7b848e"}},[t._v(t._s(t.members_count))]),t._v(" "),n("br"),t._v("\n "+t._s(t.$t("teams.dashboard.members-uploaded"))+" "+t._s(this.getPeriod())+"\n ")])]),t._v(" "),n("div",{staticClass:"mobile-teams-select"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.period,expression:"period"}],staticClass:"input dash-time",on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.period=e.target.multiple?n:n[0]},t.changeTeamOrTime]}},t._l(t.timePeriods,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(t.getPeriod(e)))])})),0),t._v(" "),n("div",{staticStyle:{flex:"0.1"}}),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.viewTeam,expression:"viewTeam"}],staticClass:"input dash-time",on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.viewTeam=e.target.multiple?n:n[0]},t.changeTeamOrTime]}},[n("option",{attrs:{value:"0",selected:""}},[t._v(t._s(t.$t("teams.dashboard.all-teams")))]),t._v(" "),t._l(t.teams,(function(e){return n("option",{domProps:{value:e.id}},[t._v(t._s(e.name))])}))],2)]),t._v(" "),t.loading?n("p",[t._v(t._s(t.$t("common.loading")))]):n("TeamMap")],1)}),[],!1,null,"09bd7714",null).exports);function b(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var w={name:"CreateTeam",data:function(){return{btn:"button is-medium is-primary",processing:!1,identifier:"",name:"",teamType:1}},computed:{button:function(){return this.processing?this.btn+" is-loading":this.btn},errors:function(){return this.$store.state.teams.errors},remaining:function(){return this.user.remaining_teams},teamTypes:function(){return this.$store.state.teams.types},user:function(){return this.$store.state.user.user}},methods:{clearError:function(t){this.errors[t]&&this.$store.commit("clearTeamsError",t)},create:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.processing=!0,t.next=3,e.$store.dispatch("CREATE_NEW_TEAM",{name:e.name,identifier:e.identifier,teamType:e.teamType});case 3:e.processing=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){b(o,i,r,a,s,"next",t)}function s(t){b(o,i,r,a,s,"throw",t)}a(void 0)}))})()},errorExists:function(t){return this.errors.hasOwnProperty(t)},getFirstError:function(t){return this.errors[t][0]}}},x=(n("1VgY"),Object(m.a)(w,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ctc"},[n("h1",{staticClass:"title is-2"},[t._v(t._s(t.$t("teams.dashboard.create-a-team")))]),t._v(" "),n("p",{staticClass:"mb2"},[t._v(t._s(t.$t("teams.create.allowed-to-create",{teams:this.remaining})))]),t._v(" "),n("div",{staticClass:"columns mt3"},[n("div",{staticClass:"column is-one-third"},[n("p",{staticClass:"mb1"},[t._v(t._s(t.$t("teams.create.what-kind-of-team")))])]),t._v(" "),n("div",{staticClass:"column is-half card p2"},[n("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.create(e)}}},[n("div",{staticClass:"control pb2"},[n("p",[t._v(t._s(t.$t("teams.create.team-type")))]),t._v(" "),n("div",{staticClass:"select"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.teamType,expression:"teamType"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.teamType=e.target.multiple?n:n[0]}}},t._l(t.teamTypes,(function(e){return n("option",{domProps:{value:e.id}},[t._v(t._s(e.team))])})),0)])]),t._v(" "),n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("teams.create.team-name")))]),t._v(" "),t.errorExists("name")?n("span",{staticClass:"is-danger",domProps:{textContent:t._s(t.getFirstError("name"))}}):t._e(),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],staticClass:"input mb2",attrs:{name:"name",placeholder:t.$t("teams.create.my-awesome-team-placeholder"),type:"text",required:""},domProps:{value:t.name},on:{keydown:function(e){return t.clearError("name")},input:function(e){e.target.composing||(t.name=e.target.value)}}}),t._v(" "),n("label",{attrs:{for:"identifier"}},[t._v(t._s(t.$t("teams.create.unique-team-id")))]),t._v(" "),n("p",[t._v(t._s(t.$t("teams.create.id-to-join-team")))]),t._v(" "),t.errorExists("identifier")?n("span",{staticClass:"is-danger",domProps:{textContent:t._s(t.getFirstError("identifier"))}}):t._e(),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.identifier,expression:"identifier"}],staticClass:"input mb2",attrs:{name:"identifier",placeholder:"Awesome2020",required:""},domProps:{value:t.identifier},on:{keydown:function(e){return t.clearError("identifier")},input:function(e){e.target.composing||(t.identifier=e.target.value)}}}),t._v(" "),n("div",[n("button",{class:t.button,attrs:{disabled:t.processing}},[t._v(t._s(t.$t("teams.create.create-team")))])])])])])])}),[],!1,null,"3a1dae60",null).exports);function k(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var C={name:"JoinTeam",data:function(){return{btn:"button is-medium is-primary",identifier:"",processing:!1}},computed:{button:function(){return this.processing?this.btn+" is-loading":this.btn},errors:function(){return this.$store.state.teams.errors}},methods:{clearError:function(t){this.errors[t]&&this.$store.commit("clearTeamsError",t)},errorExists:function(t){return this.errors.hasOwnProperty(t)},getFirstError:function(t){return this.errors[t][0]},submit:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.processing=!0,t.next=3,e.$store.dispatch("JOIN_TEAM",e.identifier);case 3:e.processing=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){k(o,i,r,a,s,"next",t)}function s(t){k(o,i,r,a,s,"throw",t)}a(void 0)}))})()}}},S=(n("vgJ4"),Object(m.a)(C,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"jtc"},[n("h1",{staticClass:"title is-2"},[t._v(t._s(t.$t("teams.dashboard.join-a-team")))]),t._v(" "),n("div",{staticClass:"columns mt3"},[n("div",{staticClass:"column is-one-third"},[n("p",{staticClass:"mb1"},[t._v(t._s(t.$t("teams.join.enter-team-identifier")))])]),t._v(" "),n("div",{staticClass:"column is-half card p2"},[n("form",{on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[n("label",{attrs:{for:"join"}},[t._v(t._s(t.$t("teams.join.team-identifier")))]),t._v(" "),t.errorExists("identifier")?n("span",{staticClass:"is-danger",domProps:{textContent:t._s(t.getFirstError("identifier"))}}):t._e(),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.identifier,expression:"identifier"}],staticClass:"input mb2",attrs:{name:"join",placeholder:t.$t("teams.join.enter-id-to-join-placeholder"),required:""},domProps:{value:t.identifier},on:{input:[function(e){e.target.composing||(t.identifier=e.target.value)},t.clearError]}}),t._v(" "),n("div",{staticClass:"has-text-right"},[n("button",{class:t.button,attrs:{disabled:t.processing}},[t._v(t._s(t.$t("teams.join.join-team")))])])])])])])}),[],!1,null,"515f6940",null).exports);function M(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function T(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){M(o,i,r,a,s,"next",t)}function s(t){M(o,i,r,a,s,"throw",t)}a(void 0)}))}}var E={name:"MyTeams",data:function(){return{btn:"button is-medium is-primary ml1",loading:!1,processing:!1,changing:!1,viewTeam:null,dlProcessing:!1,dlButtonClass:"button is-medium is-info ml1",leaderboardClass:"button is-medium is-warning ml1",leaderboardProcessing:!1}},created:function(){var t=this;return T(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.loading=!0,!t.user.active_team){e.next=5;break}return t.viewTeam=t.activeTeam,e.next=5,t.$store.dispatch("GET_TEAM_MEMBERS",t.viewTeam);case 5:t.loading=!1;case 6:case"end":return e.stop()}}),e)})))()},computed:{activeTeam:function(){return this.user.active_team},button:function(){return this.processing?this.btn+" is-loading":this.btn},current_page:function(){return this.members.current_page},disabled:function(){return!!this.processing||(!this.viewTeam||this.viewTeam===this.activeTeam)},downloadClass:function(){return this.dlProcessing?this.dlButtonClass+" is-loading":this.dlButtonClass},isLeader:function(){var t=this;return this.teams.find((function(e){return e.id===t.viewTeam})).leader===this.user.id},members:function(){return this.$store.state.teams.members},show_current_page:function(){return this.members.current_page>1},show_next_page:function(){return this.members.next_page_url},showLeaderboard:function(){var t=this;return this.teams.find((function(e){return e.id===t.viewTeam})).leaderboards?this.$t("teams.myteams.hide-from-leaderboards"):this.$t("teams.myteams.show-on-leaderboards")},teams:function(){return this.$store.state.teams.teams},user:function(){return this.$store.state.user.user}},methods:{changeActiveTeam:function(){var t=this;return T(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.processing=!0,e.next=3,t.$store.dispatch("CHANGE_ACTIVE_TEAM",t.viewTeam);case 3:t.viewTeam=t.activeTeam,t.processing=!1;case 5:case"end":return e.stop()}}),e)})))()},changeViewedTeam:function(){var t=this;return T(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.changing=!0,e.next=3,t.$store.dispatch("GET_TEAM_MEMBERS",t.viewTeam);case 3:t.changing=!1;case 4:case"end":return e.stop()}}),e)})))()},checkActiveTeam:function(t){return t===this.viewTeam?"team-active":"team-inactive"},checkActiveTeamText:function(t){return this.changing?"...":t===this.viewTeam?this.$t("common.active"):this.$t("common.inactive")},download:function(){var t=this;return T(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.dlProcessing=!0,e.next=3,t.$store.dispatch("DOWNLOAD_DATA_FOR_TEAM",t.viewTeam);case 3:t.dlProcessing=!1;case 4:case"end":return e.stop()}}),e)})))()},getRank:function(t){return 1===this.members.current_page?t+1:t+1+10*(this.members.current_page-1)},icon:function(t){return t===this.viewTeam?"fa fa-check":"fa fa-ban"},medal:function(t){if(1===this.members.current_page){if(0===t)return"/assets/icons/gold-medal.png";if(1===t)return"/assets/icons/silver-medal.png";if(2===t)return"/assets/icons/bronze-medal.svg"}return""},previousPage:function(){this.$store.dispatch("PREVIOUS_MEMBERS_PAGE",this.viewTeam)},nextPage:function(){this.$store.dispatch("NEXT_MEMBERS_PAGE",this.viewTeam)},toggleLeaderboardVis:function(){var t=this;return T(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("TOGGLE_LEADERBOARD_VISIBILITY",t.viewTeam);case 2:case"end":return e.stop()}}),e)})))()}}},O=(n("cN6q"),Object(m.a)(E,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",[n("div",{staticClass:"my-teams-container"},[n("h1",{staticClass:"title is-2"},[t._v(t._s(t.$t("teams.myteams.title")))]),t._v(" "),t.loading?n("p",[t._v(t._s(t.$t("common.loading")))]):n("div",[t.user.active_team?n("div",{key:t.user.team.id,staticClass:"mb2"},[n("p",[t._v(t._s(t.$t("teams.myteams.currently-joined-team"))+" "+t._s(t.user.team.name))])]):n("p",[t._v(t._s(t.$t("teams..myteams.no-joined-team")))]),t._v(" "),t.isLeader?n("div",{staticClass:"mb2"},[n("p",[t._v(t._s(t.$t("teams.myteams.leader-of-team")))])]):t._e(),t._v(" "),t.teams?n("div",[n("div",{staticClass:"flex mb1"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.viewTeam,expression:"viewTeam"}],staticClass:"input mtba",staticStyle:{"max-width":"30em"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.viewTeam=e.target.multiple?n:n[0]},t.changeViewedTeam]}},[n("option",{attrs:{disabled:""},domProps:{selected:!t.viewTeam,value:null}},[t._v(t._s(t.$t("teams.myteams.join-team")))]),t._v(" "),t._l(t.teams,(function(e){return n("option",{domProps:{value:e.id}},[t._v(t._s(e.name))])}))],2),t._v(" "),n("button",{class:t.button,attrs:{disabled:t.disabled},on:{click:t.changeActiveTeam}},[t._v(t._s(t.$t("teams.myteams.change-active-team")))]),t._v(" "),n("button",{class:t.downloadClass,attrs:{disabled:t.dlProcessing},on:{click:t.download}},[t._v(t._s(t.$t("teams.myteams.download-team-data")))]),t._v(" "),t.isLeader?n("button",{class:t.leaderboardClass,attrs:{disabled:t.leaderboardProcessing},on:{click:t.toggleLeaderboardVis}},[t._v(t._s(t.showLeaderboard))]):t._e()]),t._v(" "),n("table",{staticClass:"table is-fullwidth is-hoverable has-text-centered"},[n("thead",[n("th",[t._v(t._s(t.$t("teams.myteams.position-header")))]),t._v(" "),n("th",[t._v(t._s(t.$t("teams.myteams.name-header")))]),t._v(" "),n("th",[t._v(t._s(t.$t("teams.myteams.username-header")))]),t._v(" "),n("th",[t._v(t._s(t.$t("teams.myteams.status-header")))]),t._v(" "),n("th",[t._v(t._s(t.$t("teams.myteams.photos-header")))]),t._v(" "),n("th",[t._v(t._s(t.$t("teams.myteams.litter-header")))]),t._v(" "),n("th",[t._v(t._s(t.$t("teams.myteams.last-activity-header")))])]),t._v(" "),n("tbody",t._l(t.members.data,(function(e,i){return n("tr",[n("td",[n("div",{staticClass:"medal-container"},[n("img",{directives:[{name:"show",rawName:"v-show",value:i<3,expression:"index < 3"}],staticClass:"medal",attrs:{src:t.medal(i)}}),t._v(" "),n("span",[t._v(t._s(t.getRank(i)))])])]),t._v(" "),n("td",[t._v(t._s(e.name?e.name:"-"))]),t._v(" "),n("td",[t._v(t._s(e.username?e.username:"-"))]),t._v(" "),n("td",{staticStyle:{width:"9em"}},[n("span",{class:t.checkActiveTeam(e.active_team)},[n("i",{class:t.icon(e.active_team)}),t._v("\n "+t._s(t.checkActiveTeamText(e.active_team))+"\n ")])]),t._v(" "),n("td",[t._v(t._s(e.pivot.total_photos))]),t._v(" "),n("td",[t._v(t._s(e.pivot.total_litter))]),t._v(" "),n("td",[t._v(t._s(e.pivot.updated_at?e.pivot.updated_at:"-"))])])})),0)]),t._v(" "),n("div",{staticClass:"has-text-centered"},[n("a",{directives:[{name:"show",rawName:"v-show",value:this.current_page>1,expression:"this.current_page > 1"}],staticClass:"pagination-previous",on:{click:t.previousPage}},[t._v(t._s(t.$t("common.previous")))]),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:this.show_next_page,expression:"this.show_next_page"}],staticClass:"pagination-next",on:{click:t.nextPage}},[t._v(t._s(t.$t("common.next-page")))])])]):n("div",{staticClass:"mb2"},[n("p",[t._v(t._s(t.$t("teams.myteams.currently-not-joined-team")))])])])])])}),[],!1,null,"ec586d62",null).exports);function P(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function D(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){P(o,i,r,a,s,"next",t)}function s(t){P(o,i,r,a,s,"throw",t)}a(void 0)}))}}var A={name:"TeamSettings",data:function(){return{loading:!0,viewTeam:0,allProcessing:!1,submitProcessing:!1,btnAll:"button is-medium is-primary mt1",btn:"button is-medium is-warning mt1 mr1"}},created:function(){var t=this;return D(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.loading=!0,0!==t.teams.length){e.next=4;break}return e.next=4,t.$store.dispatch("GET_USERS_TEAMS");case 4:t.viewTeam=t.teams[0].id,t.loading=!1;case 6:case"end":return e.stop()}}),e)})))()},computed:{allButton:function(){return this.allProcessing?this.btnAll+" is-loading":this.btnAll},disabled:function(){return this.allProcessing||this.submitProcessing},submitButton:function(){return this.submitProcessing?this.btn+" is-loading":this.btn},show_name_leaderboards:{get:function(){return this.team.pivot.show_name_leaderboards},set:function(t){this.$store.commit("team_settings",{team_id:this.viewTeam,key:"show_name_leaderboards",v:t})}},show_username_leaderboards:{get:function(){return this.team.pivot.show_username_leaderboards},set:function(t){this.$store.commit("team_settings",{team_id:this.viewTeam,key:"show_username_leaderboards",v:t})}},show_name_maps:{get:function(){return this.team.pivot.show_name_maps},set:function(t){this.$store.commit("team_settings",{team_id:this.viewTeam,key:"show_name_maps",v:t})}},show_username_maps:{get:function(){return this.team.pivot.show_username_maps},set:function(t){this.$store.commit("team_settings",{team_id:this.viewTeam,key:"show_username_maps",v:t})}},team:function(){var t=this;return this.teams.find((function(e){return e.id===t.viewTeam}))},teams:function(){return this.$store.state.teams.teams}},methods:{submit:function(t){var e=this;return D(r.a.mark((function n(){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t?e.allProcessing=!0:e.submitProcessing=!0,n.next=3,e.$store.dispatch("SAVE_TEAM_SETTINGS",{all:t,team_id:e.viewTeam});case 3:e.submitProcessing=!1,e.allProcessing=!1;case 5:case"end":return n.stop()}}),n)})))()}}},I=(n("wbmy"),Object(m.a)(A,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tsc"},[n("h1",{staticClass:"title is-2"},[t._v(t._s(t.$t("teams.settings.privacy-title")))]),t._v(" "),n("div",{staticClass:"columns mt3"},[n("div",{staticClass:"column is-one-third"},[n("p",{staticClass:"mb1"},[t._v(t._s(t.$t("teams.settings.privacy-text")))])]),t._v(" "),n("div",{staticClass:"column is-half card p2"},[t.loading?n("p",[t._v("Loading...")]):n("div",[n("select",{directives:[{name:"model",rawName:"v-model",value:t.viewTeam,expression:"viewTeam"}],staticClass:"input mb2",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.viewTeam=e.target.multiple?n:n[0]}}},t._l(t.teams,(function(e){return n("option",{domProps:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),0),t._v(" "),n("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("teams.settings.maps.team-map"))+":")]),t._v(" "),n("label",{staticClass:"checkbox mb1"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.show_name_maps,expression:"show_name_maps"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.show_name_maps)?t._i(t.show_name_maps,null)>-1:t.show_name_maps},on:{change:function(e){var n=t.show_name_maps,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.show_name_maps=n.concat([null])):o>-1&&(t.show_name_maps=n.slice(0,o).concat(n.slice(o+1)))}else t.show_name_maps=r}}}),t._v("\n "+t._s(t.$t("settings.privacy.credit-name"))+"\n ")]),t._v(" "),n("br"),t._v(" "),n("label",{staticClass:"checkbox mb1"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.show_username_maps,expression:"show_username_maps"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.show_username_maps)?t._i(t.show_username_maps,null)>-1:t.show_username_maps},on:{change:function(e){var n=t.show_username_maps,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.show_username_maps=n.concat([null])):o>-1&&(t.show_username_maps=n.slice(0,o).concat(n.slice(o+1)))}else t.show_username_maps=r}}}),t._v("\n "+t._s(t.$t("settings.privacy.credit-username"))+"\n ")]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.show_name_maps,expression:"show_name_maps"}],staticClass:"is-green"},[t._v(t._s(t.$t("teams.settings.maps.name-will-appear")))]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.show_username_maps,expression:"show_username_maps"}],staticClass:"is-green"},[t._v(t._s(t.$t("teams.settings.maps.username-will-appear")))]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:!t.show_name_maps&&!t.show_username_maps,expression:"! show_name_maps && ! show_username_maps"}],staticClass:"is-red"},[t._v(t._s(t.$t("teams.settings.maps.will-not-appear")))]),t._v(" "),n("h1",{staticClass:"title is-4 mt1"},[t._v(t._s(t.$t("teams.settings.leaderboards.team-leaderboard"))+":")]),t._v(" "),n("label",{staticClass:"checkbox mb1"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.show_name_leaderboards,expression:"show_name_leaderboards"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.show_name_leaderboards)?t._i(t.show_name_leaderboards,null)>-1:t.show_name_leaderboards},on:{change:function(e){var n=t.show_name_leaderboards,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.show_name_leaderboards=n.concat([null])):o>-1&&(t.show_name_leaderboards=n.slice(0,o).concat(n.slice(o+1)))}else t.show_name_leaderboards=r}}}),t._v(" "),t._v("\n "+t._s(t.$t("settings.privacy.credit-name"))+"\n ")]),t._v(" "),n("br"),t._v(" "),n("label",{staticClass:"checkbox mb1"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.show_username_leaderboards,expression:"show_username_leaderboards"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.show_username_leaderboards)?t._i(t.show_username_leaderboards,null)>-1:t.show_username_leaderboards},on:{change:function(e){var n=t.show_username_leaderboards,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.show_username_leaderboards=n.concat([null])):o>-1&&(t.show_username_leaderboards=n.slice(0,o).concat(n.slice(o+1)))}else t.show_username_leaderboards=r}}}),t._v("\n "+t._s(t.$t("settings.privacy.credit-username"))+"\n ")]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.show_name_leaderboards,expression:"show_name_leaderboards"}],staticClass:"is-green"},[t._v(t._s(t.$t("teams.settings.leaderboards.name-will-appear")))]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.show_username_leaderboards,expression:"show_username_leaderboards"}],staticClass:"is-green"},[t._v(t._s(t.$t("teams.settings.leaderboards.username-will-appear")))]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:!t.show_name_leaderboards&&!t.show_username_leaderboards,expression:"! show_name_leaderboards && ! show_username_leaderboards"}],staticClass:"is-red"},[t._v(t._s(t.$t("teams.settings.leaderboards.will-not-appear")))]),t._v(" "),n("div",{staticClass:"flex"},[n("button",{class:t.submitButton,attrs:{disabled:t.disabled},on:{click:function(e){return t.submit(!1)}}},[t._v(t._s(t.$t("teams.settings.submit-one-team")))]),t._v(" "),n("button",{class:t.allButton,attrs:{disabled:t.disabled},on:{click:function(e){return t.submit(!0)}}},[t._v(t._s(t.$t("teams.settings.apply-all-teams")))])])])])])])}),[],!1,null,"f7f3a0bc",null).exports);function N(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var R={name:"TeamsLeaderboard",data:function(){return{loading:!0}},created:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("GET_TEAMS_LEADERBOARD");case 2:e.loading=!1;case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){N(o,i,r,a,s,"next",t)}function s(t){N(o,i,r,a,s,"throw",t)}a(void 0)}))})()},computed:{teams:function(){return this.$store.state.teams.leaderboard}},methods:{getDate:function(t){return f()(t).format("LL")},medal:function(t){return 0===t?"/assets/icons/gold-medal.png":1===t?"/assets/icons/silver-medal.png":2===t?"/assets/icons/bronze-medal.svg":""}}};n("t5Ox");function j(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var z={name:"Teams",components:{TeamsDashboard:_,CreateTeam:x,JoinTeam:S,MyTeams:O,TeamSettings:I,TeamsLeaderboard:Object(m.a)(R,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",[n("div",{staticClass:"my-teams-container"},[n("h1",{staticClass:"title is-2"},[t._v(t._s(t.$t("teams.leaderboard.title")))]),t._v(" "),t.loading?n("p",[t._v(t._s(t.$t("common.loading")))]):n("table",{staticClass:"table is-fullwidth is-hoverable has-text-centered"},[n("thead",[n("th",[t._v(t._s(t.$t("teams.leaderboard.position-header")))]),t._v(" "),n("th",[t._v(t._s(t.$t("teams.leaderboard.name-header")))]),t._v(" "),n("th",[t._v(t._s(t.$t("teams.leaderboard.litter-header")))]),t._v(" "),n("th",[t._v(t._s(t.$t("teams.leaderboard.photos-header")))]),t._v(" "),n("th",[t._v(t._s(t.$t("teams.leaderboard.created-at-header")))])]),t._v(" "),n("tbody",t._l(t.teams,(function(e,i){return n("tr",[n("td",[n("div",{staticClass:"medal-container"},[n("img",{directives:[{name:"show",rawName:"v-show",value:i<3,expression:"index < 3"}],staticClass:"medal",attrs:{src:t.medal(i)}}),t._v(" "),n("span",[t._v(t._s(i+1))])])]),t._v(" "),n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[t._v(t._s(e.total_litter))]),t._v(" "),n("td",[t._v(t._s(e.total_images))]),t._v(" "),n("td",[t._v(t._s(t.getDate(e.created_at)))])])})),0)])])])}),[],!1,null,"f4da4910",null).exports},created:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.$store.dispatch("GET_TEAM_TYPES");case 3:if(0!==e.teams.length){t.next=6;break}return t.next=6,e.$store.dispatch("GET_USERS_TEAMS");case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){j(o,i,r,a,s,"next",t)}function s(t){j(o,i,r,a,s,"throw",t)}a(void 0)}))})()},data:function(){return{loading:!0,items:[{name:this.$t("teams.dashboard.dashboard"),icon:"fa fa-home teams-icon",component:"TeamsDashboard"},{name:this.$t("teams.dashboard.join-a-team"),icon:"fa fa-sign-in teams-icon",component:"JoinTeam"},{name:this.$t("teams.dashboard.create-a-team"),icon:"fa fa-plus teams-icon",component:"CreateTeam"},{name:this.$t("teams.dashboard.your-teams"),icon:"fa fa-users teams-icon",component:"MyTeams"},{name:this.$t("teams.dashboard.leaderboard"),icon:"fa fa-trophy teams-icon",component:"TeamsLeaderboard"},{name:this.$t("teams.dashboard.settings"),icon:"fa fa-gear teams-icon",component:"TeamSettings"}]}},computed:{teams:function(){return this.$store.state.teams.teams},type:function(){return this.$store.state.teams.component_type}},methods:{goto:function(t){this.$store.commit("teamComponent",t)}}},Y=(n("Ydyl"),Object(m.a)(z,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",[n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-one-fifth teams-left-col"},[n("p",{staticClass:"teams-title"},[t._v(t._s(t.$t("teams.dashboard.olm-teams")))]),t._v(" "),t._l(t.items,(function(e){return n("div",{staticClass:"team-flex",on:{click:function(n){return t.goto(e.component)}}},[n("i",{class:e.icon}),t._v(" "),n("p",{staticClass:"mtba"},[t._v(t._s(e.name))])])}))],2),t._v(" "),n("div",{staticClass:"column pt3 mobile-teams-padding",staticStyle:{"background-color":"#edf1f4"}},[t.loading?n("p",[t._v(t._s(t.$t("common.loading")))]):n(t.type,{tag:"component"})],1)])])}),[],!1,null,null,null));e.default=Y.exports},pAip:function(t){t.exports=JSON.parse('{"welcome":"Welcome to your new Profile","out-of":"Out of {total} users","rank":"You are in {rank} place","have-uploaded":"You have uploaded","photos":"photos","tags":"tags","all-photos":"all photos","all-tags":"all tags","your-level":"Your Level","reached-level":"You have reached level","have-xp":"and you have","need-xp":"You need","to-reach-level":"to reach the next level.","total-categories":"Total Categories","calendar-load-data":"Load Data","download-data":"Download My Data","email-send-msg":"An email will be sent to the address you use to login.","timeseries-verified-photos":"Verified Photos","manage-my-photos":"View your photos, select multiple, delete them or add tags!","view-my-photos":"View my Photos","my-photos":"My Photos","add-tags":"Add Tags"}')},pArE:function(t,e,n){"use strict";var i=n("4R65"),r=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},o={name:"LTileLayer",mixins:[{mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}}],props:{tms:{type:Boolean,default:!1},subdomains:{type:String,default:"abc"},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{url:{type:String,default:null},tileLayerClass:{type:Function,default:i.tileLayer}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=r(n);t=r(t);var o=e.$options.props;for(var a in t){var s=o[a]?o[a].default:Symbol("unique");i[a]&&s!==t[a]?i[a]=t[a]:i[a]||(i[a]=t[a])}return i}(this.tileLayerOptions,this);this.mapObject=this.tileLayerClass(this.url,e),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var a=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]},void 0,o,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=a},pISp:function(t,e,n){"use strict";var i=n("OR/N");n.n(i).a},pj1R:function(t,e,n){var i=n("aS5V");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},pkeX:function(t,e,n){"use strict";var i=n("pw+C");n.n(i).a},praq:function(t,e,n){var i=n("5t4f");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"pw+C":function(t,e,n){var i=n("NMrW");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},pwP9:function(t){t.exports=JSON.parse('{"title":"Team Scorebord","position-header":"Positie","name-header":"Naam","photos-header":"Totaal Foto\'s","litter-header":"Totaal Afval","created-at-header":"Gemaakt op"}')},pyCd:function(t,e){},pybT:function(t,e,n){var i=n("78c4");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},pzhP:function(t,e,n){"use strict";var i=n("ZfPz");n.n(i).a},qG1z:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i),o=n("kGIl"),a=n.n(o);n("5A0h");function s(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var l={name:"DonateButtons",components:{Loading:a.a},data:function(){return{stripeEmail:"",stripeToken:"",amount:"",loading:!0}},created:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.$store.dispatch("GET_DONATION_AMOUNTS");case 3:e.$emit("donations-loaded"),e.loading=!1;case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){s(o,i,r,a,l,"next",t)}function l(t){s(o,i,r,a,l,"throw",t)}a(void 0)}))})()},computed:{amounts:function(){return this.$store.state.donate.amounts}},methods:{donate:function(t){var e=this;this.amount=100*this.prices[t],this.stripe=StripeCheckout.configure({key:OLM.stripeKey,image:"https://stripe.com/img/documentation/checkout/marketplace.png",locale:"auto",panelLabel:"One-time Donation",token:function(t){e.stripeToken=t.id,e.stripeEmail=t.email,axios.post("/donate",e.$data).then((function(t){alert("Congratulations! Your payment was successful. Thanks!")})).catch((function(t){alert("Sorry, there was an error processing your card! You have not been charged. Please try again")}))}}),this.stripe.open({name:"€"+this.prices[t],description:"OpenLitterMap",zipCode:!1,amount:100*this.prices[t]})}}},u=(n("O5P5"),n("KHd+")),c={name:"Donate",components:{DonateButtons:Object(u.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.loading?n("loading",{attrs:{active:t.loading,"is-full-page":!1},on:{"update:active":function(e){t.loading=e}}}):n("div",{staticClass:"box"},[n("h3",{staticClass:"title is-2 mb1em"},[n("strong",{staticStyle:{color:"#363636"}},[t._v("Select an amount:")])]),t._v(" "),n("div",{staticClass:"grid-container has-text-centered"},t._l(t.amounts,(function(e){return n("div",[n("div",{staticClass:"box",staticStyle:{"background-color":"lightgreen"}},[n("h3",{staticClass:"title is-3 mb1em"},[n("strong",[t._v("€"+t._s(e.amount/100))])]),t._v(" "),n("button",{staticClass:"button is-medium is-primary",on:{click:function(n){return t.donate(e.id)}}},[t._v("Donate now")])])])})),0),t._v(" "),n("h3",{staticClass:"title is-1",staticStyle:{"text-align":"right"}},[n("strong",{staticStyle:{color:"#363636"}},[t._v("Thank you.")])])])],1)}),[],!1,null,"65329fa1",null).exports},data:function(){return{loading:!0}}},d=Object(u.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"section hero is-fullheight is-primary is-bold"},[n("div",{staticClass:"container"},[n("h3",{staticClass:"title is-3"},[t._v(t._s(t.$t("home.donate.olm-dependent-on-donations")))]),t._v(" "),n("br"),t._v(" "),n("img",{staticStyle:{height:"450px",display:"block",margin:"auto","object-fit":"cover"},attrs:{src:"/assets/IMG_0556.JPG",alt:"It's important",title:"It's important"}}),t._v(" "),n("p",{staticStyle:{"text-align":"center","margin-top":"12px"}},[t._v(t._s(t.$t("home.donate.its-important")))]),t._v(" "),n("br"),t._v(" "),n("div",{staticStyle:{"word-break":"break-all"}},[n("p",[t._v("Bitcoin: 3Cvyhhec777Dnc6a5QHZ1S8DZpL3nodZ2K")]),t._v(" "),n("p",[t._v("Bitcoin Cash: 14FEA8ckGiTf5HvYhANBAEpmvawdJpFFU6")]),t._v(" "),n("p",[t._v("Ethereum: 0x43DbD68771cEDad272dcC78c4108B543DDF8a449")]),t._v(" "),n("p",[t._v("Dash: XfLLMTKeSwXhaoUGpUJVTV9KrtGTXiMoAG")]),t._v(" "),t.loading?n("p",[t._v("Updating....")]):t._e()]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"container"},[n("donate-buttons",{on:{"donations-loaded":function(e){t.loading=!1}}})],1)])])}),[],!1,null,"225d4ccf",null);e.default=d.exports},qL8O:function(t,e,n){"use strict";var i=n("Ncgf");n.n(i).a},qrWs:function(t){t.exports=JSON.parse('{"change-password":"Change My Password","enter-old-password":"Enter old password","enter-new-password":"Enter new password","enter-strong-password":"Enter a strong password","confirm-new-password":"Confirm your new password","repeat-strong-password":"Repeat your strong password","update-password":"Update Password"}')},qrmX:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".green {\n color: #2ecc71;\n}\n.strong {\n font-weight: 600;\n}\n.width-50 {\n width: 50%;\n}",""])},qvJo:function(t,e,n){!function(t){"use strict";function e(t,e,n,i){var r={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[t+" सॅकंडांनी",t+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[t+" मिणटांनी",t+" मिणटां"],h:["एका वरान","एक वर"],hh:[t+" वरांनी",t+" वरां"],d:["एका दिसान","एक दीस"],dd:[t+" दिसांनी",t+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[t+" म्हयन्यानी",t+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[t+" वर्सांनी",t+" वर्सां"]};return i?r[n][0]:r[n][1]}t.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},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, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM 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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(t,e){switch(e){case"D":return t+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(t,e){return 12===t&&(t=0),"राती"===e?t<4?t:t+12:"सकाळीं"===e?t:"दनपारां"===e?t>12?t:t+12:"सांजे"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"राती":t<12?"सकाळीं":t<16?"दनपारां":t<20?"सांजे":"राती"}})}(n("wd/R"))},r1L1:function(t,e,n){"use strict";var i=n("pj1R");n.n(i).a},rD38:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".about-icon[data-v-16293954] {\n height: 10em;\n text-align: center;\n}\n.c-1[data-v-16293954] {\n margin-bottom: 3em;\n}\n.home-container[data-v-16293954] {\n padding-top: 5em;\n}\n.home-img-padding[data-v-16293954] {\n padding-right: 2em;\n}\n.main-title[data-v-16293954] {\n font-size: 4rem;\n font-weight: 800;\n color: #363636;\n line-height: 1.125;\n margin-bottom: 1em;\n}\n.icon-center[data-v-16293954] {\n margin: auto;\n}\n.welcome-mb[data-v-16293954] {\n margin-bottom: 5em;\n}\n.main-subtitle[data-v-16293954] {\n font-size: 2rem;\n color: #4a4a4a;\n font-weight: 700;\n line-height: 1.5;\n margin-bottom: 0.5em;\n}\n.welcome-subtitle[data-v-16293954] {\n color: #4a4a4a;\n font-size: 2rem;\n font-weight: 400;\n line-height: 1.5;\n}\n\n/* Smaller screens */\n@media (max-width: 1024px) {\n.home-container[data-v-16293954] {\n padding-left: 2em;\n padding-right: 2em;\n}\n}\n/* Mobile view */\n@media (max-width: 768px) {\n.home-container[data-v-16293954] {\n padding-top: 3em !important;\n}\n.home-img-padding[data-v-16293954] {\n padding: 0;\n}\n.main-title[data-v-16293954] {\n font-size: 3rem;\n}\n.icon-center[data-v-16293954] {\n text-align: center;\n margin-bottom: 2em;\n}\n.welcome-mb[data-v-16293954] {\n margin-bottom: 1em;\n}\n.why-container[data-v-16293954] {\n margin-bottom: 5em;\n}\n}",""])},rJdF:function(t){t.exports=JSON.parse('{"success":"Sukces","error":"Błąd!","tags-added":"Sukces! Twoje tagi zostały dodane ","subscription-cancelled":"Twoja subskrypcja została anulowana ","privacy-updated":"Twoje ustawienia prywatności zostały zapisane ","litter-toggled":"podniesione śmieci - Wartość zaktualizowana","settings":{"subscribed":"Subskrybujesz teraz aktualizacje i dobre wieści! ","unsubscribed":"Zrezygnowałeś z subskrypcji. Nie będziesz już otrzymywać dobrych wiadomości!","flag-updated":"Twoja flaga została zaktualizowana"}}')},raLr:function(t,e,n){!function(t){"use strict";function e(t,e,n){var i,r;return"m"===n?e?"хвилина":"хвилину":"h"===n?e?"година":"годину":t+" "+(i=+t,r={ss:e?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:e?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:e?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2])}function n(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(t,e){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===t?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):t?n[/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:n.nominative},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:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:e,m:e,mm:e,h:"годину",hh:e,d:"день",dd:e,M:"місяць",MM:e,y:"рік",yy:e},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})}(n("wd/R"))},rhOw:function(t){t.exports=JSON.parse('{"admin":"Admin","admin-verify-photos":"ADMIN - Controleer Foto\'s","admin-horizon":"ADMIN - Horizon","admin-verify-boxes":"ADMIN - Controleer Rechthoeken","about":"Over","global-map":"Wereld Kaart","world-cup":"Wereld Cup","upload":"Upload","more":"Meer","tag-litter":"Label het Afval","profile":"Profiel","settings":"Instellingen","bounding-boxes":"Rechthoeken","logout":"Uitloggen","login":"Inloggen","signup":"Aanmelden"}')},"s+uk":function(t,e,n){!function(t){"use strict";function e(t,e,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[n][0]:r[n][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},s2Pw:function(t){t.exports=JSON.parse('{"enter-team-identifier":"Introduce un identificador para unirte a un equipo.","team-identifier":"Unirse a un equipo usando un identificador","enter-id-to-join-placeholder":"Introduce un ID para unirse a un equipo","join-team":"Unirme al equipo"}')},sE6M:function(t,e,n){"use strict";var i=n("tsbo");n.n(i).a},sEG9:function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},sG1D:function(t){t.exports=JSON.parse('{"show-flag":"Mostrar la bandera del país","top-10":"¡Solamente los 10 líderes globales de OpenLitterMap!","top-10-challenge":"Si consigues estar entre los 10 primeros, podrás representar a tu país.","action-select":"Escribe o desplázate para seleccionar de la lista","select-country":"Selecciona tu país","save-flag":"Guardar bandera"}')},sIYV:function(t){t.exports=JSON.parse('{"title":"Team Leaderboard","position-header":"Position","name-header":"Name","photos-header":"Total Photos","litter-header":"Total Litter","created-at-header":"Created At"}')},sTxc:function(t,e,n){"use strict";var i={name:"LocationNavbar",data:function(){return{category:this.$t("location.most-data"),catnames:["A-Z",this.$t("location.most-data"),this.$t("location.most-data-person")]}},methods:{onChange:function(){this.$emit("selectedCategory",this.category)}}},r=(n("1WXE"),n("KHd+")),o=Object(r.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container w100"},[n("br"),t._v(" "),n("div",{staticClass:"control locations-control"},[n("div",{staticClass:"select"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.category,expression:"category"}],on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.category=e.target.multiple?n:n[0]},function(e){return t.onChange(t.category)}]}},t._l(t.catnames,(function(e){return n("option",{key:e},[t._v(t._s(e))])})),0)])])])}),[],!1,null,"9cb3586c",null).exports,a=n("wd/R"),s=n.n(a),l={name:"LocationMetadata",props:["index","location","locationType","category"],data:function(){return{dir:"/assets/icons/flags/"}},computed:{country:function(){return this.$store.state.locations.country},countryName:function(){return this.$store.state.locations.countryName},stateName:function(){return this.$store.state.locations.stateName},state:function(){return this.$store.state.locations.state},textSize:function(){return"A-Z"===this.category?"title is-1 flex-1 ma":"title is-3 flex-1 ma"}},methods:{getCountryFlag:function(t){if(t)return t=t.toLowerCase(),this.dir+t+".png"},getDataForLocation:function(t){if(this.$store.commit("setLocations",[]),"country"===this.locationType){var e=t.country;this.$store.commit("countryName",e),this.$router.push({path:"/world/"+e})}else if("state"===this.locationType){var n=this.countryName,i=t.state;this.$store.commit("stateName",i),this.$router.push({path:"/world/"+n+"/"+i})}else if("city"===this.locationType){var r=this.countryName,o=this.stateName,a=t.city;t.hasOwnProperty("hex")&&this.$router.push({path:"/world/"+r+"/"+o+"/"+a+"/map/"}),this.$router.push({path:"/world/"+r+"/"+o+"/"+a+"/map"})}},getLocationName:function(t){return t[this.locationType]},positions:function(t){return s.a.localeData().ordinal(t+1)}}},u=(n("mfkC"),Object(r.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"column is-3"},[n("div",{staticClass:"flex pb1"},["country"===t.locationType?n("img",{staticClass:"img-flag",attrs:{height:"15",src:t.getCountryFlag(t.location.shortcode)}}):t._e(),t._v(" "),n("h2",{class:t.textSize},[n("a",{staticClass:"is-link has-text-centered location-title",attrs:{id:t.location[t.locationType]},on:{click:function(e){return t.getDataForLocation(t.location)}}},[n("span",{directives:[{name:"show",rawName:"v-show",value:"A-Z"!==t.category&&t.index<100,expression:"category !== 'A-Z' && index < 100"}]},[t._v(t._s(t.positions(t.index))+" -")]),t._v(" "),n("span",[t._v(t._s(t.getLocationName(t.location)))])])])]),t._v(" "),n("div",{staticClass:"panel"},[n("div",{staticClass:"panel-block"},[t._v(t._s(t.$t("location.total-verified-litter"))+":\n "),n("strong",{staticClass:"green flex-1"},[t._v(" \n "+t._s(t.location.total_litter_redis.toLocaleString())+"\n ")]),t._v(" "),"country"===t.locationType?n("p",{staticClass:"total-photos-percentage"},[t._v("\n "+t._s((t.location.total_litter_redis/this.$store.state.locations.total_litter*100).toFixed(2)+"% Total")+"\n ")]):t._e()]),t._v(" "),n("div",{staticClass:"panel-block"},[t._v("\n "+t._s(t.$t("location.total-verified-photos"))+":\n "),n("strong",{staticClass:"green flex-1"},[t._v(" \n "+t._s(t.location.total_photos_redis.toLocaleString())+"\n ")]),t._v(" "),"country"===t.locationType?n("p",{staticClass:"total-photos-percentage"},[t._v("\n "+t._s((t.location.total_photos_redis/this.$store.state.locations.total_photos*100).toFixed(2)+"% Total")+"\n ")]):t._e()]),t._v(" "),n("div",{staticClass:"panel-block"},[t._v(t._s(t.$t("common.created"))+": "),n("strong",{staticClass:"green"},[t._v("  "+t._s(t.location.diffForHumans))])]),t._v(" "),n("div",{staticClass:"panel-block"},[t._v(t._s(t.$t("location.number-of-contributors"))+": "),n("strong",{staticClass:"green"},[t._v("  "+t._s(t.location.total_contributors_redis.toLocaleString()))])]),t._v(" "),n("div",{staticClass:"panel-block"},[t._v(t._s(t.$t("location.avg-img-per-person"))+": "),n("strong",{staticClass:"green"},[t._v("  "+t._s(t.location.avg_photo_per_user.toLocaleString()))])]),t._v(" "),n("div",{staticClass:"panel-block"},[t._v(t._s(t.$t("location.avg-litter-per-person"))+": "),n("strong",{staticClass:"green"},[t._v("  "+t._s(t.location.avg_litter_per_user.toLocaleString()))])]),t._v(" "),n("div",{staticClass:"panel-block"},[t._v(t._s(t.$t("common.created-by"))+": "),n("strong",{staticClass:"green"},[t._v("  "+t._s(t.location.created_by_name)+" "+t._s(t.location.created_by_username))])])])])}),[],!1,null,"a04a649c",null).exports),c=n("H8ri"),d={extends:c.b,name:"LitterChart",props:["litter"],data:function(){return{litterData:[],litterValues:[],colors:["#C28535","#8AAE56","#B66C46","#EAE741","#BFE5A6","#FFFFFF","#BF00FE","#add8e6"]}},mounted:function(){var t=this;Object.keys(this.litter).map((function(e){t.litter[e]&&(t.litterData.push(e),t.litterValues.push(t.litter[e]))})),this.renderChart({labels:this.litterData,datasets:[{label:"Collected",backgroundColor:this.litterValues.map((function(e,n){return t.colors[n]})),data:this.litterValues}]},{responsive:!0,maintainAspectRatio:!0,legend:{labels:{fontColor:"#ffffff"}}})}},h=Object(r.a)(d,void 0,void 0,!1,null,null,null).exports,f={extends:c.b,name:"BrandsChart",props:["brands"],data:function(){return{myArray:[],top10keys:[],top10values:[]}},mounted:function(){var t=this;for(var e in Object.keys(this.brands).map((function(e,n){t.brands[e]&&t.myArray.push({key:e,value:t.brands[e]})})),this.myArray.sort((function(t,e){return e.value-t.value})),this.myArray)e<9&&this.myArray[e].value>0&&(this.top10keys.push(this.myArray[e].key),this.top10values.push(this.myArray[e].value));this.renderChart({labels:this.top10keys,datasets:[{label:"Collected",backgroundColor:this.myComputedBackgrounds,data:this.top10values}]},{responsive:!1,maintainAspectRatio:!0,legend:{labels:{fontColor:"#ffffff"}}})},computed:{myComputedBackgrounds:function(){return 0==this.top10keys.length?["#C28535"]:1==this.top10keys.length?["#C28535","#8AAE56"]:2==this.top10keys.length?["#C28535","#8AAE56","#B66C46"]:3==this.top10keys.length?["#C28535","#8AAE56","#B66C46","#EAE741"]:4==this.top10keys.length?["#C28535","#8AAE56","#B66C46","#EAE741","#FF0000"]:5==this.top10keys.length?["#C28535","#8AAE56","#B66C46","#EAE741","#FF0000","#BFE5A6"]:6==this.top10keys.length?["#C28535","#8AAE56","#B66C46","#EAE741","#FF0000","#BFE5A6","#FFFFFF"]:7==this.top10keys.length?["#C28535","#8AAE56","#B66C46","#EAE741","#FF0000","#BFE5A6","#FFFFFF","#BF00FE"]:8==this.top10keys.length?["#C28535","#8AAE56","#B66C46","#EAE741","#FF0000","#BFE5A6","#FFFFFF","#BF00FE","#ccc"]:9==this.top10keys.length?["#C28535","#8AAE56","#B66C46","#EAE741","#FF0000","#BFE5A6","#FFFFFF","#BF00FE","#000000"]:void 0}}},p={name:"ChartsContainer",components:{LitterChart:h,BrandsChart:Object(r.a)(f,void 0,void 0,!1,null,null,null).exports},props:["litter_data","brands_data","total_brands"]},m=Object(r.a)(p,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("nav",{staticClass:"level"},[e("div",{staticClass:"level-item"},[e("litter-chart",{attrs:{width:300,height:300,litter:this.litter_data}})],1),this._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:this.total_brands,expression:"this.total_brands"}],staticClass:"level-item"},[e("brands-chart",{attrs:{width:300,height:300,brands:this.brands_data}})],1)])])}),[],!1,null,null,null).exports,g={extends:c.a,name:"TimeSeries",props:["ppm"],data:function(){return{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}},mounted:function(){var t=JSON.parse(this.ppm),e=[],n=[];for(var i in t)e.push(this.months[parseInt(i.substring(0,2))-1]+i.substring(2,5)),n.push(t[i]);this.renderChart({labels:e,datasets:[{label:"Verified Photos",backgroundColor:"#FF0000",data:n,fill:!1,borderColor:"red",maxBarThickness:"50"}]},{responsive:!0,maintainAspectRatio:!1,legend:{labels:{fontColor:"#000000"}},scales:{xAxes:[{gridLines:{color:"rgba(255,255,255,0.5)",display:!0,drawBorder:!0,drawOnChartArea:!1},ticks:{fontColor:"#000000"}}],yAxes:[{gridLines:{color:"rgba(255,255,255,0.5)",display:!0,drawBorder:!0,drawOnChartArea:!1},ticks:{fontColor:"#000000"}}]}})}},v={props:["ppm"],name:"TimeSeriesContainer",components:{TimeSeries:Object(r.a)(g,void 0,void 0,!1,null,null,null).exports},computed:{checkWidth:function(){return window.screen.width>1e3?600:300}}},y=Object(r.a)(v,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"container has-text-center"},[e("time-series",{attrs:{width:this.checkWidth,height:500,ppm:this.ppm}})],1)}),[],!1,null,null,null).exports,_={name:"Leaderboard",props:["leaderboard"],mounted:function(){for(var t=JSON.parse(this.leaderboard),e=["1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th"],n=0;n0,expression:"location.total_litter_redis > 0"}],key:i},[n("div",{directives:[{name:"show",rawName:"v-show",value:"A-Z"!==t.category,expression:"category !== 'A-Z'"}]},[n("br"),t._v(" "),n("h1",{staticClass:"title is-1 has-text-centered world-cup-title"},[t._v("\n\t\t\t\t\t#LitterWorldCup\n\t\t\t\t")])]),t._v(" "),n("div",{staticClass:"hero-body location-container"},[n("div",{staticClass:"columns"},[n("LocationMetadata",{attrs:{index:i,location:e,locationType:t.locationType,category:t.category}}),t._v(" "),n("div",{staticClass:"column is-half is-offset-1"},[n("p",{staticClass:"show-mobile"},[t._v("Drag these across for more options")]),t._v(" "),n("div",{staticClass:"tabs is-center"},t._l(t.tabs,(function(e,i){return n("a",{directives:[{name:"show",rawName:"v-show",value:t.showTab(e.in_location),expression:"showTab(tab.in_location)"}],key:i,class:t.tabClass(e),on:{click:function(n){return t.loadTab(e.component)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t\t\t\t")])})),0),t._v(" "),n(t.tab,{tag:"component",attrs:{litter_data:e.litter_data,brands_data:e.brands_data,total_brands:e.total_brands,ppm:e.photos_per_month,leaderboard:e.leaderboard,time:e.time,index:i,locationType:t.locationType,locationId:e.id},on:{dateschanged:t.updateUrl}})],1)],1)])])}))],2)}),[],!1,null,"51f93aea",null));e.a=D.exports},sX8j:function(t){t.exports=JSON.parse('{"allowed-to-create":"Tienes permito crear {teams} equipo(s)","what-kind-of-team":"¿Qué clase de equipo te gustaría crear?","team-type":"Tipo de equipo","team-name":"Nombre del equipo","my-awesome-team-placeholder":"Mi Super Equipo","unique-team-id":"Identificador de Equipo Único","id-to-join-team":"Cualquiera con este identificador podrá unirse a tu equipo.","create-team":"Crear equipo","created":"¡Enhorabuena! Se ha creado tu nuevo equipo.","fail":"Hubo un error al crear tu equipo","max-created":"No tienes permitido crear más equipos."}')},sp3z:function(t,e,n){!function(t){"use strict";t.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(t){return"ຕອນແລງ"===t},meridiem:function(t,e,n){return t<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(t){return"ທີ່"+t}})}(n("wd/R"))},ssMp:function(t){t.exports=JSON.parse('{"plastic-pollution-out-of-control":"Zanieczyszczenie plastikiem wymknęło się spod kontroli","help-us":"Pomóż nam stworzyć najbardziej zaawansowaną na świecie otwartą bazę danych o śmieciach, markach i zanieczyszczeniu plastikiem","why-collect-data":"Dlaczego powinniśmy zbierać dane","visibility":"Widoczność","our-maps-reveal-litter-normality":"Dla wielu ludzi śmieci stały się normalne i niewidoczne. Mapy są potężne, ponieważ przekazują to, czego zwykle nie możemy zobaczyć","science":"Rozwiązywanie problemów","our-data-open-source":"Nasze dane są otwarte i dostępne. Każdy ma równe, otwarte i nieograniczone prawa do pobierania wszystkich naszych danych i wykorzystywania ich w dowolnym celu","community":"Społeczność","must-work-together":"Potrzebujemy Twojej pomocy, aby zmienić paradygmat w sposobie, w jaki rozumiemy zanieczyszczenie i reagujemy na nie","how-does-it-work":"Jak to działa","take-a-photo":"Zrób zdjęcie","device-captures-info":"Twoje urządzenie może przechwytywać cenne informacje o lokalizacji, czasie, przedmiocie, materiale i marce.","tag-the-litter":"Oznacz śmieci","tag-litter-you-see":"Po prostu oznacz, jaki śmieć widzisz na zdjęciu. Możesz oznaczyć, czy śmieci zostały zebrane, czy nadal tam są. Możesz również przesłać swoje zdjęcia w dowolnym momencie","share-results":"Podziel się wynikami","share":"Udostępnij mapy lub pobierz nasze dane. Pokażmy wszystkim, jak bardzo zanieczyszczony jest świat","verified":"Twój email został potwierdzony! Możesz się teraz zalogować.","close":"Zamknij"}')},su3C:function(t,e,n){"use strict";var i=n("v+/S");n.n(i).a},syxb:function(t){t.exports=JSON.parse('{"taken-on":"Zrobione","with-a":"Przy użyciu","by":"Przez","meter-hex-grids":"metrowe siatki sześciokątne","hover-to-count":"Najedź kursorem, aby policzyć","pieces-of-litter":"Kawałki śmieci","hover-polygons-to-count":"Najedź kursorem na wielokąty, aby policzyć"}')},"t+mt":function(t,e,n){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},t2E5:function(t){t.exports=JSON.parse('{"login-btn":"Zaloguj się","signup-text":"Załóż Konto","forgot-password":"Zapomniane hasło?"}')},t5Ox:function(t,e,n){"use strict";var i=n("gCZh");n.n(i).a},"tB/O":function(t,e,n){"use strict";var i=n("kkFm");n.n(i).a},tGlX:function(t,e,n){!function(t){"use strict";function e(t,e,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[n][0]:r[n][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},tITq:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.select-all-photos[data-v-6269ec67] {\n min-width: 9em;\n margin-right: 1em;\n}\n\n",""])},"tIw/":function(t){t.exports=JSON.parse('{"card-number":"Número de tarjeta","card-holder":"Nombre del titular","exp":"Fecha de caducidad","cvv":"CVV (código de seguridad)","placeholders":{"card-number":"Tu número de tarjeta de 16 dígitos","card-holder":"Nombre del titular de la tarjeta","exp-month":"Mes","exp-year":"Año","cvv":"***"}}')},tQ2B:function(t,e,n){"use strict";var i=n("xTJ+"),r=n("Rn+g"),o=n("eqyj"),a=n("MLWZ"),s=n("g7np"),l=n("w0Vi"),u=n("OTTw"),c=n("LYNF");t.exports=function(t){return new Promise((function(e,n){var d=t.data,h=t.headers;i.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(p+":"+m)}var g=s(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:i,config:t,request:f};r(e,n,o),f=null}},f.onabort=function(){f&&(n(c("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(c("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||u(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in f&&i.forEach(h,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete h[e]:f.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),n(t),f=null)})),d||(d=null),f.send(d)}))}},tT3J:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},tUCv:function(t,e,n){!function(t){"use strict";t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"enjing":t<15?"siyang":t<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}})}(n("wd/R"))},tmUW:function(t,e){L.Map.mergeOptions({smoothWheelZoom:!0,smoothSensitivity:1}),L.Map.SmoothWheelZoom=L.Handler.extend({addHooks:function(){L.DomEvent.on(this._map._container,"wheel",this._onWheelScroll,this)},removeHooks:function(){L.DomEvent.off(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){this._isWheeling||this._onWheelStart(t),this._onWheeling(t)},_onWheelStart:function(t){var e=this._map;this._isWheeling=!0,this._wheelMousePosition=e.mouseEventToContainerPoint(t),this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),this._wheelStartLatLng=e.containerPointToLatLng(this._wheelMousePosition),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),e._panAnim&&e._panAnim.stop(),this._goalZoom=e.getZoom(),this._prevCenter=e.getCenter(),this._prevZoom=e.getZoom(),this._zoomAnimationId=requestAnimationFrame(this._updateWheelZoom.bind(this))},_onWheeling:function(t){var e=this._map;this._goalZoom=this._goalZoom+.003*L.DomEvent.getWheelDelta(t)*e.options.smoothSensitivity,(this._goalZoome.getMaxZoom())&&(this._goalZoom=e._limitZoom(this._goalZoom)),clearTimeout(this._timeoutId),this._timeoutId=setTimeout(this._onWheelEnd.bind(this),200),L.DomEvent.preventDefault(t),L.DomEvent.stopPropagation(t)},_onWheelEnd:function(t){this._isWheeling=!1,cancelAnimationFrame(this._zoomAnimationId),this._map._moveEnd(!0)},_updateWheelZoom:function(){var t=this._map;if(t.getCenter().equals(this._prevCenter)&&t.getZoom()==this._prevZoom){this._zoom=t.getZoom()+.3*(this._goalZoom-t.getZoom()),this._zoom=Math.floor(100*this._zoom)/100;var e=this._wheelMousePosition.subtract(this._centerPoint);0===e.x&&0===e.y||("center"===t.options.smoothWheelZoom?this._center=this._startLatLng:this._center=t.unproject(t.project(this._wheelStartLatLng,this._zoom).subtract(e),this._zoom),this._moved||(t._moveStart(!0,!1),this._moved=!0),t._move(this._center,this._zoom),this._prevCenter=t.getCenter(),this._prevZoom=t.getZoom(),this._zoomAnimationId=requestAnimationFrame(this._updateWheelZoom.bind(this)))}}}),L.Map.addInitHook("addHandler","smoothWheelZoom",L.Map.SmoothWheelZoom)},toXO:function(t,e,n){"use strict";var i=n("Q+hE");n.n(i).a},trfT:function(t,e,n){var i=n("eqC4");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},tsbo:function(t,e,n){var i=n("Jqpr");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},tulk:function(t){t.exports=JSON.parse('{"maps1":"Estamos creando Datos Abiertos sobre la contaminación por plásticos","maps2":"Cualquiera puede descargar los datos y utilizarlos.","maps3":"Mapa Global","global-leaderboard":"Tabla de Clasificación Global","position":"Posición","name":"Nombre","xp":"XP","previous-target":"Objetivo previo","next-target":"Próximo objetivo","litter":"Basura","total-verified-litter":"Total de basura verificada","total-verified-photos":"Total de fotos verificadas","total-littercoin-issued":"Total de Littercoin emitidos","number-of-contributors":"Número de colaboradores","avg-img-per-person":"Media de imágenes por persona","avg-litter-per-person":"Media de basura por persona","leaderboard":"Tabla de clasificación","time-series":"Series temporales","options":"Opciones","most-data":"Con más datos abiertos","most-data-person":"Con más datos abiertos por persona","download-open-verified-data":"Datos verificados, libres y abiertos de ciencia ciudadana sobre la contaminación por plásticos.","stop-plastic-ocean":"Evitemos que el plástico llegue al océano.","enter-email-sent-data":"Indica una dirección de correo electrónico a la que se enviarán los datos:"}')},u3GI:function(t,e,n){!function(t){"use strict";function e(t,e,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[n][0]:r[n][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},u5mE:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),r=n.n(i);function o(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var a={name:"Presence",data:function(){return{processing:!1}},methods:{toggle:function(){var t,e=this;return(t=r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.processing=!0,t.next=3,e.$store.dispatch("TOGGLE_LITTER_PICKED_UP_SETTING");case 3:e.processing=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,l,"next",t)}function l(t){o(a,i,r,s,l,"throw",t)}s(void 0)}))})()}},computed:{button:function(){return this.processing?"button is-info is-loading":"button is-info"},picked_up:function(){return!this.$store.state.user.user.items_remaining},text:function(){return this.picked_up?"Your litter will be logged as picked up.":"Your litter is logged as not picked up."}}},s=n("KHd+"),l=Object(s.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[n("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.presence.do-you-pickup")))]),t._v(" "),n("hr"),t._v(" "),n("p",{staticClass:"mb1"},[t._v(t._s(t.$t("settings.presence.save-def-settings")))]),t._v(" "),n("p",{staticClass:"mb1"},[t._v(t._s(t.$t("settings.presence.change-value-of-litter")))]),t._v(" "),n("p",[t._v(t._s(t.$t("settings.presence.status")))]),t._v(" "),n("br"),t._v(" "),n("p",[n("b",[t._v(t._s(t.$t("settings.presence.toggle-presence"))+":")])]),t._v(" "),n("p",[n("b",{style:t.picked_up?"color: green":"color: red"},[t._v(t._s(this.text))])]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-one-third is-offset-1"},[n("div",{staticClass:"row"},[n("button",{class:t.button,attrs:{disabled:t.processing},on:{click:t.toggle}},[t._v(t._s(t.$t("settings.presence.pickup?")))])])])])])}),[],!1,null,null,null);e.default=l.exports},u8o6:function(t){t.exports=JSON.parse('{"show-flag":"Show Country Flag","top-10":"Top 10 Global OpenLitterMap Leaders only!","top-10-challenge":"If you can make the top 10, you can represent your country!","action-select":"Type or scroll to select from the list","select-country":"Select your country","save-flag":"Save Flag"}')},uCbU:function(t,e,n){var i=n("EHpN");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},uEye:function(t,e,n){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,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}})}(n("wd/R"))},uFkq:function(t){t.exports=JSON.parse('{"littercoin-header":"Littercoin (LTRX)","back-later":"Dit komt later terug","claim-tokens":"Als je je tokens wilt claimen en je portemonnee vanuit andere locaties benaderen, voer dan je portemonnee-id in en je krijgt je verdiensten toegestuurd."}')},uWY9:function(t){t.exports=JSON.parse('{"admin":"Admin","admin-verify-photos":"ADMIN - Weryfikacja zdjęć","admin-horizon":"ADMIN - Horizon","admin-verify-boxes":"ADMIN - Zweryfikuj ramki","about":"O nas","global-map":"Globalna Mapa","world-cup":"Mistrzostwa Świata","upload":"Prześlij dane","more":"Więcej","tag-litter":"Taguj Śmieci","profile":"Profile","settings":"Ustawienia","bounding-boxes":"ramki ograniczające","logout":"Wyloguj","login":"Zaloguj","signup":"Załóż konto","teams":"Drużyny"}')},uXwI:function(t,e,n){!function(t){"use strict";var e={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 n(t,e,n){return n?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function i(t,i,r){return t+" "+n(e[r],t,i)}function r(t,i,r){return n(e[r],t,i)}t.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:function(t,e){return e?"dažas sekundes":"dažām sekundēm"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uszs:function(t,e,n){"use strict";var i=n("trfT");n.n(i).a},uvWH:function(t){t.exports=JSON.parse('{"success":"Gelukt","error":"Fout!","tags-added":"Gelukt! Je foto labels zijn toegevoegd","subscription-cancelled":"Je abonnement is beëindigd","privacy-updated":"Je Privacy Instellingen zijn opgeslagen","litter-toggled":"Opgeruimd schakelaar bijgewerkt","settings":{"subscribed":"Je bent geabonneerd op aanpassingen en goed-nieuws-berichten!","unsubscribed":"Je bent niet langer geabonneerd. Je zult geen goed-nieuws-berichten meer ontvangen!","flag-updated":"Je vlag is aangepast"}}')},uvx2:function(t,e,n){var i=n("cVA9");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},uz8j:function(t,e,n){"use strict";n.r(e),n.d(e,"capitalizeFirstLetter",(function(){return o})),n.d(e,"collectionCleaner",(function(){return s})),n.d(e,"debounce",(function(){return r})),n.d(e,"findRealParent",(function(){return u})),n.d(e,"optionsMerger",(function(){return l})),n.d(e,"propsBinder",(function(){return a})),n.d(e,"CircleMixin",(function(){return c})),n.d(e,"ControlMixin",(function(){return d})),n.d(e,"GridLayerMixin",(function(){return h})),n.d(e,"ImageOverlayMixin",(function(){return f})),n.d(e,"InteractiveLayerMixin",(function(){return p})),n.d(e,"LayerMixin",(function(){return m})),n.d(e,"LayerGroupMixin",(function(){return g})),n.d(e,"OptionsMixin",(function(){return v})),n.d(e,"PathMixin",(function(){return y})),n.d(e,"PolygonMixin",(function(){return _})),n.d(e,"PolylineMixin",(function(){return b})),n.d(e,"PopperMixin",(function(){return w})),n.d(e,"TileLayerMixin",(function(){return x})),n.d(e,"TileLayerWMSMixin",(function(){return k})),n.d(e,"LCircle",(function(){return S})),n.d(e,"LCircleMarker",(function(){return E})),n.d(e,"LControl",(function(){return D})),n.d(e,"LControlAttribution",(function(){return N})),n.d(e,"LControlLayers",(function(){return z})),n.d(e,"LControlScale",(function(){return B})),n.d(e,"LControlZoom",(function(){return U})),n.d(e,"LFeatureGroup",(function(){return W})),n.d(e,"LGeoJson",(function(){return Z})),n.d(e,"LGridLayer",(function(){return tt})),n.d(e,"LIcon",(function(){return it})),n.d(e,"LIconDefault",(function(){return ot})),n.d(e,"LImageOverlay",(function(){return lt})),n.d(e,"LLayerGroup",(function(){return ct})),n.d(e,"LMap",(function(){return dt.a})),n.d(e,"LMarker",(function(){return ht.a})),n.d(e,"LPolygon",(function(){return mt})),n.d(e,"LPolyline",(function(){return yt})),n.d(e,"LPopup",(function(){return _t.a})),n.d(e,"LRectangle",(function(){return xt})),n.d(e,"LTileLayer",(function(){return kt.a})),n.d(e,"LTooltip",(function(){return St})),n.d(e,"LWMSTileLayer",(function(){return Et}));var i=n("4R65"),r=function(t,e){var n;return function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];var o=this;n&&clearTimeout(n),n=setTimeout((function(){t.apply(o,i),n=null}),e)}},o=function(t){return t&&"function"==typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},a=function(t,e,n,r){var a=function(r){var a="set"+o(r),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var s in n)a(s)},s=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},l=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=s(n);t=s(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i},u=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t},c={mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer&&this.parentContainer.removeLayer(this)},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}}],props:{fill:{type:Boolean,custom:!0,default:!0},radius:{type:Number,default:null}},mounted:function(){this.circleOptions=Object.assign({},this.pathOptions,{radius:this.radius})}},d={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},h={mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},f={mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{url:{type:String,custom:!0},bounds:{custom:!0},opacity:{type:Number,custom:!0,default:1},alt:{type:String,default:""},interactive:{type:Boolean,default:!1},crossOrigin:{type:Boolean,default:!1},errorOverlayUrl:{type:String,custom:!0,default:""},zIndex:{type:Number,custom:!0,default:1},className:{type:String,default:""}},mounted:function(){this.imageOverlayOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{opacity:this.opacity,alt:this.alt,interactive:this.interactive,crossOrigin:this.crossOrigin,errorOverlayUrl:this.errorOverlayUrl,zIndex:this.zIndex,className:this.className})},methods:{setOpacity:function(t){return this.mapObject.setOpacity(t)},setUrl:function(t){return this.mapObject.setUrl(t)},setBounds:function(t){return this.mapObject.setBounds(t)},getBounds:function(){return this.mapObject.getBounds()},getElement:function(){return this.mapObject.getElement()},bringToFront:function(){return this.mapObject.bringToFront()},bringToBack:function(){return this.mapObject.bringToBack()}},render:function(){return null}},p={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},m={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},g={mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}},v={props:{options:{type:Object,default:function(){return{}}}}},y={mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer&&this.parentContainer.removeLayer(this)},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},_={mixins:[{mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer&&this.parentContainer.removeLayer(this)},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}}],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}}],props:{fill:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.polygonOptions=this.polyLineOptions},methods:{getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}},b={mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer&&this.parentContainer.removeLayer(this)},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}}],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},w={props:{content:{type:String,default:null,custom:!0}},mounted:function(){this.popperOptions={}},methods:{setContent:function(t){this.mapObject&&null!=t&&this.mapObject.setContent(t)}},render:function(t){return this.$slots.default?t("div",this.$slots.default):null}},x={mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}}],props:{tms:{type:Boolean,default:!1},subdomains:{type:String,default:"abc"},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}},k={mixins:[{mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}}],props:{tms:{type:Boolean,default:!1},subdomains:{type:String,default:"abc"},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}}],props:{layers:{type:String,default:""},styles:{type:String,default:""},format:{type:String,default:"image/jpeg"},transparent:{type:Boolean,custom:!1},version:{type:String,default:"1.1.1"},crs:{default:null},upperCase:{type:Boolean,default:!1}},mounted:function(){this.tileLayerWMSOptions=Object.assign({},this.tileLayerOptions,{layers:this.layers,styles:this.styles,format:this.format,transparent:this.transparent,version:this.version,crs:this.crs,upperCase:this.upperCase})}},C=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},L={name:"LCircle",mixins:[{mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer&&this.parentContainer.removeLayer(this)},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}}],props:{fill:{type:Boolean,custom:!0,default:!0},radius:{type:Number,default:null}},mounted:function(){this.circleOptions=Object.assign({},this.pathOptions,{radius:this.radius})}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{latLng:{type:[Object,Array],default:function(){return[0,0]}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=C(n);t=C(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(this.circleOptions,this);this.mapObject=Object(i.circle)(this.latLng,e),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},methods:{}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var S=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)},staticRenderFns:[]},void 0,L,void 0,!1,void 0,!1,void 0,void 0,void 0),M=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},T={name:"LCircleMarker",mixins:[{mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer&&this.parentContainer.removeLayer(this)},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}}],props:{fill:{type:Boolean,custom:!0,default:!0},radius:{type:Number,default:null}},mounted:function(){this.circleOptions=Object.assign({},this.pathOptions,{radius:this.radius})}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{latLng:{type:[Object,Array],default:function(){return[0,0]}},pane:{type:String,default:"markerPane"}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=M(n);t=M(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(this.circleOptions,this);this.mapObject=Object(i.circleMarker)(this.latLng,e),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var E=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)},staticRenderFns:[]},void 0,T,void 0,!1,void 0,!1,void 0,void 0,void 0),O=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},P={name:"LControl",mixins:[{props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{disableClickPropagation:{type:Boolean,custom:!0,default:!0}},mounted:function(){var t=this,e=i.Control.extend({element:void 0,onAdd:function(){return this.element},setElement:function(t){this.element=t}}),n=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=O(n);t=O(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(this.controlOptions,this);this.mapObject=new e(n),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.mapObject.setElement(this.$el),this.disableClickPropagation&&i.DomEvent.disableClickPropagation(this.$el),this.mapObject.addTo(this.parentContainer.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var D=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)},staticRenderFns:[]},void 0,P,void 0,!1,void 0,!1,void 0,void 0,void 0),A=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},I={name:"LControlAttribution",mixins:[{props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{prefix:{type:[String,Boolean],default:null}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=A(n);t=A(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(Object.assign({},this.controlOptions,{prefix:this.prefix}),this);this.mapObject=i.control.attribution(e),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var N=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({},void 0,I,void 0,void 0,void 0,!1,void 0,void 0,void 0),R=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},j={name:"LControlLayers",mixins:[{props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{collapsed:{type:Boolean,default:!0},autoZIndex:{type:Boolean,default:!0},hideSingleBase:{type:Boolean,default:!1},sortLayers:{type:Boolean,default:!1},sortFunction:{type:Function,default:void 0}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=R(n);t=R(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(Object.assign({},this.controlOptions,{collapsed:this.collapsed,autoZIndex:this.autoZIndex,hideSingleBase:this.hideSingleBase,sortLayers:this.sortLayers,sortFunction:this.sortFunction}),this);this.mapObject=i.control.layers(null,null,e),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.$parent.registerLayerControl(this),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},methods:{addLayer:function(t){"base"===t.layerType?this.mapObject.addBaseLayer(t.mapObject,t.name):"overlay"===t.layerType&&this.mapObject.addOverlay(t.mapObject,t.name)},removeLayer:function(t){this.mapObject.removeLayer(t.mapObject)}},render:function(){return null}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var z=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({},void 0,j,void 0,void 0,void 0,!1,void 0,void 0,void 0),Y=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},F={name:"LControlScale",mixins:[{props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{maxWidth:{type:Number,default:100},metric:{type:Boolean,default:!0},imperial:{type:Boolean,default:!0},updateWhenIdle:{type:Boolean,default:!1}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=Y(n);t=Y(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(Object.assign({},this.controlOptions,{maxWidth:this.maxWidth,metric:this.metric,imperial:this.imperial,updateWhenIdle:this.updateWhenIdle}),this);this.mapObject=i.control.scale(e),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var B=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({},void 0,F,void 0,void 0,void 0,!1,void 0,void 0,void 0),$=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},H={name:"LControlZoom",mixins:[{props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{zoomInText:{type:String,default:"+"},zoomInTitle:{type:String,default:"Zoom in"},zoomOutText:{type:String,default:"-"},zoomOutTitle:{type:String,default:"Zoom out"}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=$(n);t=$(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(Object.assign({},this.controlOptions,{zoomInText:this.zoomInText,zoomInTitle:this.zoomInTitle,zoomOutText:this.zoomOutText,zoomOutTitle:this.zoomOutTitle}),this);this.mapObject=i.control.zoom(e),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var U=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({},void 0,H,void 0,void 0,void 0,!1,void 0,void 0,void 0),V={name:"LFeatureGroup",mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}},{props:{options:{type:Object,default:function(){return{}}}}}],data:function(){return{ready:!1}},mounted:function(){var t=this;this.mapObject=Object(i.featureGroup)(),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),i.DomEvent.on(this.mapObject,this.$listeners),this.ready=!0,this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.visible&&this.parentContainer.addLayer(this),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var W=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)},staticRenderFns:[]},void 0,V,void 0,!1,void 0,!1,void 0,void 0,void 0),G=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},q={name:"LGeoJson",mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{geojson:{type:[Object,Array],custom:!0,default:function(){return{}}},options:{type:Object,custom:!0,default:function(){return{}}},optionsStyle:{type:[Object,Function],custom:!0,default:null}},computed:{mergedOptions:function(){return function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=G(n);t=G(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(Object.assign({},this.layerGroupOptions,{style:this.optionsStyle}),this)}},mounted:function(){var t=this;this.mapObject=Object(i.geoJSON)(this.geojson,this.mergedOptions),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer.mapObject.removeLayer(this.mapObject)},methods:{setGeojson:function(t){this.mapObject.clearLayers(),this.mapObject.addData(t)},getGeoJSONData:function(){return this.mapObject.toGeoJSON()},getBounds:function(){return this.mapObject.getBounds()},setOptions:function(t,e){this.mapObject.clearLayers(),Object(i.setOptions)(this.mapObject,this.mergedOptions),this.mapObject.addData(this.geojson)},setOptionsStyle:function(t,e){this.mapObject.setStyle(t)}},render:function(){return null}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var Z=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({},void 0,q,void 0,void 0,void 0,!1,void 0,void 0,void 0),X=n("XuX8"),J=n.n(X),K=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},Q={name:"LGridLayer",mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{tileComponent:{type:Object,custom:!0,required:!0}},data:function(){return{tileComponents:{}}},computed:{TileConstructor:function(){return J.a.extend(this.tileComponent)}},mounted:function(){var t=this,e=i.GridLayer.extend({}),n=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=K(n);t=K(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(this.gridLayerOptions,this);this.mapObject=new e(n),i.DomEvent.on(this.mapObject,this.$listeners),this.mapObject.on("tileunload",this.onUnload,this),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.mapObject.createTile=this.createTile,this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer.removeLayer(this.mapObject),this.mapObject.off("tileunload",this.onUnload),this.mapObject=null},methods:{createTile:function(t){var e=i.DomUtil.create("div"),n=i.DomUtil.create("div");e.appendChild(n);var r=new this.TileConstructor({el:n,parent:this,propsData:{coords:t}}),o=this.mapObject._tileCoordsToKey(t);return this.tileComponents[o]=r,e},onUnload:function(t){var e=this.mapObject._tileCoordsToKey(t.coords);void 0!==this.tileComponents[e]&&(this.tileComponents[e].$destroy(),this.tileComponents[e].$el.remove(),delete this.tileComponents[e])},setTileComponent:function(t){this.mapObject.redraw()}}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var tt=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]},void 0,Q,void 0,!1,void 0,!1,void 0,void 0,void 0),et=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},nt={name:"LIcon",props:{iconUrl:{type:String,custom:!0,default:null},iconRetinaUrl:{type:String,custom:!0,default:null},iconSize:{type:[Object,Array],custom:!0,default:null},iconAnchor:{type:[Object,Array],custom:!0,default:null},popupAnchor:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},tooltipAnchor:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},shadowUrl:{type:String,custom:!0,default:null},shadowRetinaUrl:{type:String,custom:!0,default:null},shadowSize:{type:[Object,Array],custom:!0,default:null},shadowAnchor:{type:[Object,Array],custom:!0,default:null},bgPos:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},className:{type:String,custom:!0,default:""},options:{type:Object,custom:!0,default:function(){return{}}}},data:function(){return{parentContainer:null,observer:null,recreationNeeded:!1,swapHtmlNeeded:!1}},mounted:function(){var t=this;this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.$parent.mapObject,this.$options.props),this.observer=new MutationObserver((function(){t.scheduleHtmlSwap()})),this.observer.observe(this.$el,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),this.scheduleCreateIcon()},beforeDestroy:function(){this.parentContainer.mapObject&&this.parentContainer.mapObject.setIcon(this.parentContainer.$props.icon),this.observer.disconnect()},methods:{scheduleCreateIcon:function(){this.recreationNeeded=!0,this.$nextTick(this.createIcon)},scheduleHtmlSwap:function(){this.htmlSwapNeeded=!0,this.$nextTick(this.createIcon)},createIcon:function(){if(this.htmlSwapNeeded&&!this.recreationNeeded&&this.iconObject&&this.parentContainer.mapObject.getElement())return this.parentContainer.mapObject.getElement().innerHTML=this.$el.innerHTML,void(this.htmlSwapNeeded=!1);if(this.recreationNeeded){this.iconObject&&i.DomEvent.off(this.iconObject,this.$listeners);var t=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=et(n);t=et(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}({iconUrl:this.iconUrl,iconRetinaUrl:this.iconRetinaUrl,iconSize:this.iconSize,iconAnchor:this.iconAnchor,popupAnchor:this.popupAnchor,tooltipAnchor:this.tooltipAnchor,shadowUrl:this.shadowUrl,shadowRetinaUrl:this.shadowRetinaUrl,shadowSize:this.shadowSize,shadowAnchor:this.shadowAnchor,bgPos:this.bgPos,className:this.className,html:this.$el.innerHTML||this.html},this);t.html?this.iconObject=Object(i.divIcon)(t):this.iconObject=Object(i.icon)(t),i.DomEvent.on(this.iconObject,this.$listeners),this.parentContainer.mapObject.setIcon(this.iconObject),this.recreationNeeded=!1,this.htmlSwapNeeded=!1}},setIconUrl:function(){this.scheduleCreateIcon()},setIconRetinaUrl:function(){this.scheduleCreateIcon()},setIconSize:function(){this.scheduleCreateIcon()},setIconAnchor:function(){this.scheduleCreateIcon()},setPopupAnchor:function(){this.scheduleCreateIcon()},setTooltipAnchor:function(){this.scheduleCreateIcon()},setShadowUrl:function(){this.scheduleCreateIcon()},setShadowRetinaUrl:function(){this.scheduleCreateIcon()},setShadowAnchor:function(){this.scheduleCreateIcon()},setBgPos:function(){this.scheduleCreateIcon()},setClassName:function(){this.scheduleCreateIcon()},setHtml:function(){this.scheduleCreateIcon()}},render:function(){return null}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var it=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)},staticRenderFns:[]},void 0,nt,void 0,!1,void 0,!1,void 0,void 0,void 0),rt={name:"LIconDefault",props:{imagePath:{type:String,custom:!0,default:""}},mounted:function(){i.Icon.Default.imagePath=this.imagePath,function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,{},this.$options.props)},methods:{setImagePath:function(t){i.Icon.Default.imagePath=t}},render:function(){return null}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var ot=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({},void 0,rt,void 0,void 0,void 0,!1,void 0,void 0,void 0),at=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},st={name:"LImageOverlay",mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{url:{type:String,custom:!0},bounds:{custom:!0},opacity:{type:Number,custom:!0,default:1},alt:{type:String,default:""},interactive:{type:Boolean,default:!1},crossOrigin:{type:Boolean,default:!1},errorOverlayUrl:{type:String,custom:!0,default:""},zIndex:{type:Number,custom:!0,default:1},className:{type:String,default:""}},mounted:function(){this.imageOverlayOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{opacity:this.opacity,alt:this.alt,interactive:this.interactive,crossOrigin:this.crossOrigin,errorOverlayUrl:this.errorOverlayUrl,zIndex:this.zIndex,className:this.className})},methods:{setOpacity:function(t){return this.mapObject.setOpacity(t)},setUrl:function(t){return this.mapObject.setUrl(t)},setBounds:function(t){return this.mapObject.setBounds(t)},getBounds:function(){return this.mapObject.getBounds()},getElement:function(){return this.mapObject.getElement()},bringToFront:function(){return this.mapObject.bringToFront()},bringToBack:function(){return this.mapObject.bringToBack()}},render:function(){return null}},{props:{options:{type:Object,default:function(){return{}}}}}],mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=at(n);t=at(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(this.imageOverlayOptions,this);this.mapObject=Object(i.imageOverlay)(this.url,this.bounds,e),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var lt=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({},void 0,st,void 0,void 0,void 0,!1,void 0,void 0,void 0),ut={name:"LLayerGroup",mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}},{props:{options:{type:Object,default:function(){return{}}}}}],data:function(){return{ready:!1}},mounted:function(){var t=this;this.mapObject=Object(i.layerGroup)(),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),i.DomEvent.on(this.mapObject,this.$listeners),this.ready=!0,this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.visible&&this.parentContainer.addLayer(this),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var ct=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)},staticRenderFns:[]},void 0,ut,void 0,!1,void 0,!1,void 0,void 0,void 0),dt=n("JpmB"),ht=n("Tith"),ft=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},pt={name:"LPolygon",mixins:[{mixins:[{mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer&&this.parentContainer.removeLayer(this)},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}}],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}}],props:{fill:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.polygonOptions=this.polyLineOptions},methods:{getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{latLngs:{type:Array,default:function(){return[]}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=ft(n);t=ft(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(this.polygonOptions,this);this.mapObject=Object(i.polygon)(this.latLngs,e),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var mt=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)},staticRenderFns:[]},void 0,pt,void 0,!1,void 0,!1,void 0,void 0,void 0),gt=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},vt={name:"LPolyline",mixins:[{mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer&&this.parentContainer.removeLayer(this)},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}}],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{latLngs:{type:Array,default:function(){return[]}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=gt(n);t=gt(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(this.polyLineOptions,this);this.mapObject=Object(i.polyline)(this.latLngs,e),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var yt=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)},staticRenderFns:[]},void 0,vt,void 0,!1,void 0,!1,void 0,void 0,void 0),_t=n("9g/y"),bt=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},wt={name:"LRectangle",mixins:[{mixins:[{mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}}],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer&&this.parentContainer.removeLayer(this)},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}}],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}}],props:{fill:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.polygonOptions=this.polyLineOptions},methods:{getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{bounds:{type:Array,default:function(){return[]}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=bt(n);t=bt(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(this.polygonOptions,this);this.mapObject=Object(i.rectangle)(this.bounds,e),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var xt=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)},staticRenderFns:[]},void 0,wt,void 0,!1,void 0,!1,void 0,void 0,void 0),kt=n("pArE"),Ct=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},Lt={name:"LTooltip",mixins:[{props:{content:{type:String,default:null,custom:!0}},mounted:function(){this.popperOptions={}},methods:{setContent:function(t){this.mapObject&&null!=t&&this.mapObject.setContent(t)}},render:function(t){return this.$slots.default?t("div",this.$slots.default):null}},{props:{options:{type:Object,default:function(){return{}}}}}],mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=Ct(n);t=Ct(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(this.popperOptions,this);this.mapObject=Object(i.tooltip)(e),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.mapObject.setContent(this.content||this.$el),this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.mapObject.bindTooltip(this.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer&&(this.parentContainer.unbindTooltip?this.parentContainer.unbindTooltip():this.parentContainer.mapObject&&this.parentContainer.mapObject.unbindTooltip&&this.parentContainer.mapObject.unbindTooltip())}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var St=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({},void 0,Lt,void 0,void 0,void 0,!1,void 0,void 0,void 0),Mt=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},Tt={name:"LWMSTileLayer",mixins:[{mixins:[{mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}}],props:{tms:{type:Boolean,default:!1},subdomains:{type:String,default:"abc"},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}}],props:{layers:{type:String,default:""},styles:{type:String,default:""},format:{type:String,default:"image/jpeg"},transparent:{type:Boolean,custom:!1},version:{type:String,default:"1.1.1"},crs:{default:null},upperCase:{type:Boolean,default:!1}},mounted:function(){this.tileLayerWMSOptions=Object.assign({},this.tileLayerOptions,{layers:this.layers,styles:this.styles,format:this.format,transparent:this.transparent,version:this.version,crs:this.crs,upperCase:this.upperCase})}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{baseUrl:{type:String,default:null}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=Mt(n);t=Mt(t);var r=e.$options.props;for(var o in t){var a=r[o]?r[o].default:Symbol("unique");i[o]&&a!==t[o]?i[o]=t[o]:i[o]||(i[o]=t[o])}return i}(this.tileLayerWMSOptions,this);this.mapObject=i.tileLayer.wms(this.baseUrl,e),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,r){var o=function(r){var o,a="set"+((o=r)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[r].type===Object||n[r].type===Array||Array.isArray(n[r].type);n[r].custom&&t[a]?t.$watch(r,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(r,(function(t,n){Object(i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(r,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var Et=function(t,e,n,i,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var h=d.render;d.render=function(t,e){return c.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}({},void 0,Tt,void 0,void 0,void 0,!1,void 0,void 0,void 0)},"v+/S":function(t,e,n){var i=n("zOPP");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},vDqi:function(t,e,n){t.exports=n("zuR4")},vaEP:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,'/* component style */\n.vue-slider-disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* rail style */\n.vue-slider-rail {\n background-color: #ccc;\n border-radius: 15px;\n}\n\n/* process style */\n.vue-slider-process {\n background-color: #3498db;\n border-radius: 15px;\n}\n\n/* mark style */\n.vue-slider-mark {\n z-index: 4;\n}\n.vue-slider-mark:first-child .vue-slider-mark-step, .vue-slider-mark:last-child .vue-slider-mark-step {\n display: none;\n}\n.vue-slider-mark-step {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.16);\n}\n.vue-slider-mark-label {\n font-size: 14px;\n white-space: nowrap;\n}\n/* dot style */\n.vue-slider-dot-handle {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #fff;\n box-sizing: border-box;\n box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);\n}\n.vue-slider-dot-handle-focus {\n box-shadow: 0px 0px 1px 2px rgba(52, 152, 219, 0.36);\n}\n\n.vue-slider-dot-handle-disabled {\n cursor: not-allowed;\n background-color: #ccc;\n}\n\n.vue-slider-dot-tooltip-inner {\n font-size: 14px;\n white-space: nowrap;\n padding: 2px 5px;\n min-width: 20px;\n text-align: center;\n color: #fff;\n border-radius: 5px;\n border-color: #3498db;\n background-color: #3498db;\n box-sizing: content-box;\n}\n.vue-slider-dot-tooltip-inner::after {\n content: "";\n position: absolute;\n}\n.vue-slider-dot-tooltip-inner-top::after {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-top-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-bottom::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-bottom-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-left::after {\n left: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-left-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-right::after {\n right: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-right-color: inherit;\n}\n\n.vue-slider-dot-tooltip-wrapper {\n opacity: 0;\n transition: all 0.3s;\n}\n.vue-slider-dot-tooltip-wrapper-show {\n opacity: 1;\n}\n',""])},vgJ4:function(t,e,n){"use strict";var i=n("5/+K");n.n(i).a},viBP:function(t,e,n){"use strict";var i=n("4LkY");n.n(i).a},vne5:function(t,e,n){"use strict";var i={name:"Tags",props:["admin","photoId"],computed:{categories:function(){var t=[];return Object.entries(this.$store.state.litter.tags[this.photoId]||{}).map((function(e){Object.keys(e[1]).length>0&&t.push({category:e[0],tags:e[1]})})),t}},methods:{getCategory:function(t){return this.$i18n.t("litter.categories."+t)},getTags:function(t,e){return this.$i18n.t("litter."+e+"."+t[0])+": "+t[1]+"
    "},removeTag:function(t,e){var n="";n=this.admin?"resetTag":"removeTag",this.$store.commit(n,{photoId:this.photoId,category:t,tag_key:e})}}},r=(n("YTrc"),n("KHd+")),o=Object(r.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("ul",{staticClass:"container"},t._l(t.categories,(function(e){return n("li",{staticClass:"admin-item"},[n("span",{staticClass:"category"},[t._v(t._s(t.getCategory(e.category)))]),t._v(" "),t._l(Object.entries(e.tags),(function(i){return n("span",{staticClass:"tag is-medium is-info litter-tag",domProps:{innerHTML:t._s(t.getTags(i,e.category))},on:{click:function(n){return t.removeTag(e.category,i[0])}}})}))],2)})),0)])}),[],!1,null,"3c63ab1d",null);e.a=o.exports},"vs+l":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".inner-locations-container[data-v-51f93aea] {\n flex: 1;\n background-color: #23d160;\n}\n.l-tab.is-active[data-v-51f93aea] {\n border-bottom: 2px solid white !important;\n}\n.h65pc[data-v-51f93aea] {\n height: 65%;\n}\n.world-cup-title[data-v-51f93aea] {\n color: #34495e;\n}",""])},vsSR:function(t){t.exports=JSON.parse('{"change-privacy":"Cambiar mi privacidad","maps":"Mapas","credit-name":"Acreditar mi nombre","credit-username":"Acreditar mi nombre de usuario","name-imgs-yes":"Tu nombre está configurado para aparecer en cada una de las imágenes que subas a los mapas.","username-imgs-yes":"Tu nombre de usuario está configurado para aparecer en cada una de las imágenes que subas a los mapas.","name-username-map-no":"Tu nombre y tu nombre de usuario no aparecerán en los mapas.","leaderboards":"Tablas de Clasificación","credit-my-name":"Acreditar mi nombre","credit-my-username":"Acreditar mi nombre de usuario","name-leaderboards-yes":"Tu nombre está configurado para aparecer en cualquier tabla de clasificación para la que califiques.","username-leaderboards-yes":"Tu nombre de usuario está configurado para aparecer en cualquier tabla de clasificación para la que califiques.","name-username-leaderboards-no":"Tu nombre y tu nombre de usuario no aparecerán en las tablas de clasificación.","created-by":"Creada por","name-locations-yes":"Tu nombre está configurado para aparecer en cualquier ubicación creada por ti.","username-locations-yes":"Tu nombre de usuartio está configurado para aparecer en cualquier ubicación creada por ti.","name-username-locations-yes":"Tu nombre y tu nombre de usuario no aparecerán en la sección \'Creada por\' de las ubicaciones que añadas a la base de datos.","update":"Actualizar"}')},"w/Vo":function(t,e,n){var i=n("hZxf");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},w0Vi:function(t,e,n){"use strict";var i=n("xTJ+"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},"wEH+":function(t){t.exports=JSON.parse('{"cancel":"Cancelar","submit":"Enviar","download":"Descargar","delete":"Eliminar","delete-image":"¿Eliminar imagen?","confirm-delete":"Confirmar eliminar","loading":"Cargando...","created_at":"Subida el","created":"Creado","created-by":"Creado por","datetime":"Tomada el","day-names":["lu.","ma.","mi.","ju.","vi.","sá.","do."],"month-names":["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agusto","Septiembre","Octobre","Noviembre","Diciembre"],"short-month-names":["en.","febr.","mzo.","abr.","my.","jun.","jul.","ag.","sept.","oct.","nov.","dic."],"next":"Siguiente","previous":"Previa","next-page":"Siguiente página","add-tags":"Añadir etiquetas","add-many-tags":"Añadir varias etiquetas","select-all":"Seleccionar todo","de-select-all":"Deselecionar todo","choose-dates":"Escoger fechas","not-verified":"No verificada","verified":"Verificada","search-by-id":"Busquea por ID","active":"Activo","inactive":"Inactivo","your-email":"tu@correoelectronico.com"}')},wQk9:function(t,e,n){!function(t){"use strict";t.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}})}(n("wd/R"))},wa5x:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.tsc[data-v-f7f3a0bc] {\n margin-top: 1em;\n margin-left: 5em;\n}\n@media screen and (max-width: 768px)\n{\n.tsc[data-v-f7f3a0bc] {\n margin-top: 0;\n margin-left: 0;\n}\n}\n\n",""])},wbmy:function(t,e,n){"use strict";var i=n("4Cft");n.n(i).a},"wd/R":function(t,e,n){(function(t){t.exports=function(){"use strict";var e,i;function r(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(s(t,e))return!1;return!0}function u(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function d(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var n,i=[];for(n=0;n>>0;for(e=0;e0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,L=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)s(t,e)&&n.push(e);return n};var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},N={};function R(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(N[t]=r),e&&(N[e[0]]=function(){return P(r.apply(this,arguments),e[1],e[2])}),n&&(N[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function j(t,e){return t.isValid()?(e=z(e,t.localeData()),I[e]=I[e]||function(t){var e,n,i,r=t.match(D);for(e=0,n=r.length;e=0&&A.test(t);)t=t.replace(A,i),A.lastIndex=0,n-=1;return t}var Y={};function F(t,e){var n=t.toLowerCase();Y[n]=Y[n+"s"]=Y[e]=t}function B(t){return"string"==typeof t?Y[t]||Y[t.toLowerCase()]:void 0}function $(t){var e,n,i={};for(n in t)s(t,n)&&(e=B(n))&&(i[e]=t[n]);return i}var H={};function U(t,e){H[t]=e}function V(t){return t%4==0&&t%100!=0||t%400==0}function W(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function G(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=W(e)),n}function q(t,e){return function(n){return null!=n?(X(this,t,n),r.updateOffset(this,e),this):Z(this,t)}}function Z(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function X(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&V(t.year())&&1===t.month()&&29===t.date()?(n=G(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),xt(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var J,K=/\d/,Q=/\d\d/,tt=/\d{3}/,et=/\d{4}/,nt=/[+-]?\d{6}/,it=/\d\d?/,rt=/\d\d\d\d?/,ot=/\d\d\d\d\d\d?/,at=/\d{1,3}/,st=/\d{1,4}/,lt=/[+-]?\d{1,6}/,ut=/\d+/,ct=/[+-]?\d+/,dt=/Z|[+-]\d\d:?\d\d/gi,ht=/Z|[+-]\d\d(?::?\d\d)?/gi,ft=/[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;function pt(t,e,n){J[t]=T(e)?e:function(t,i){return t&&n?n:e}}function mt(t,e){return s(J,t)?J[t](e._strict,e._locale):new RegExp(gt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function gt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var vt,yt={};function _t(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),c(e)&&(i=function(t,n){n[e]=G(t)}),n=0;n68?1900:2e3)};var At=q("FullYear",!0);function It(t,e,n,i,r,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,r,o,a),s}function Nt(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Rt(t,e,n){var i=7+e-n;return-(7+Nt(t,0,i).getUTCDay()-e)%7+i-1}function jt(t,e,n,i,r){var o,a,s=1+7*(e-1)+(7+n-i)%7+Rt(t,i,r);return s<=0?a=Dt(o=t-1)+s:s>Dt(t)?(o=t+1,a=s-Dt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function zt(t,e,n){var i,r,o=Rt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?i=a+Yt(r=t.year()-1,e,n):a>Yt(t.year(),e,n)?(i=a-Yt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Yt(t,e,n){var i=Rt(t,e,n),r=Rt(t+1,e,n);return(Dt(t)-i+r)/7}function Ft(t,e){return t.slice(e,7).concat(t.slice(0,e))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),U("week",5),U("isoWeek",5),pt("w",it),pt("ww",it,Q),pt("W",it),pt("WW",it,Q),bt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=G(t)})),R("d",0,"do","day"),R("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),R("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),R("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),pt("d",it),pt("e",it),pt("E",it),pt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),pt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),pt("dddd",(function(t,e){return e.weekdaysRegex(t)})),bt(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:m(n).invalidWeekday=t})),bt(["d","e","E"],(function(t,e,n,i){e[i]=G(t)}));var Bt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ut=ft,Vt=ft,Wt=ft;function Gt(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=vt.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=vt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=vt.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=vt.call(this._weekdaysParse,a))||-1!==(r=vt.call(this._shortWeekdaysParse,a))||-1!==(r=vt.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=vt.call(this._shortWeekdaysParse,a))||-1!==(r=vt.call(this._weekdaysParse,a))||-1!==(r=vt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=vt.call(this._minWeekdaysParse,a))||-1!==(r=vt.call(this._weekdaysParse,a))||-1!==(r=vt.call(this._shortWeekdaysParse,a))?r:null}function qt(){function t(t,e){return e.length-t.length}var e,n,i,r,o,a=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=gt(this.weekdaysMin(n,"")),r=gt(this.weekdaysShort(n,"")),o=gt(this.weekdays(n,"")),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);a.sort(t),s.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Xt(t,e){R(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Jt(t,e){return e._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Zt),R("k",["kk",2],0,(function(){return this.hours()||24})),R("hmm",0,0,(function(){return""+Zt.apply(this)+P(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+Zt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),Xt("a",!0),Xt("A",!1),F("hour","h"),U("hour",13),pt("a",Jt),pt("A",Jt),pt("H",it),pt("h",it),pt("k",it),pt("HH",it,Q),pt("hh",it,Q),pt("kk",it,Q),pt("hmm",rt),pt("hmmss",ot),pt("Hmm",rt),pt("Hmmss",ot),_t(["H","HH"],3),_t(["k","kk"],(function(t,e,n){var i=G(t);e[3]=24===i?0:i})),_t(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),_t(["h","hh"],(function(t,e,n){e[3]=G(t),m(n).bigHour=!0})),_t("hmm",(function(t,e,n){var i=t.length-2;e[3]=G(t.substr(0,i)),e[4]=G(t.substr(i)),m(n).bigHour=!0})),_t("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[3]=G(t.substr(0,i)),e[4]=G(t.substr(i,2)),e[5]=G(t.substr(r)),m(n).bigHour=!0})),_t("Hmm",(function(t,e,n){var i=t.length-2;e[3]=G(t.substr(0,i)),e[4]=G(t.substr(i))})),_t("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[3]=G(t.substr(0,i)),e[4]=G(t.substr(i,2)),e[5]=G(t.substr(r))}));var Kt,Qt=q("Hours",!0),te={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:kt,monthsShort:Ct,week:{dow:0,doy:6},weekdays:Bt,weekdaysMin:Ht,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},ee={},ne={};function ie(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n0;){if(i=oe(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&ie(r,n)>=e-1)break;e--}o++}return Kt}(t)}function ue(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[1]<0||n[1]>11?1:n[2]<1||n[2]>xt(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),m(t)._overflowWeeks&&-1===e&&(e=7),m(t)._overflowWeekday&&-1===e&&(e=8),m(t).overflow=e),t}var ce=/^\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)?)?$/,de=/^\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)?)?$/,he=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pe=[["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/]],me=/^\/?Date\((-?\d+)/i,ge=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ve={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ye(t){var e,n,i,r,o,a,s=t._i,l=ce.exec(s)||de.exec(s);if(l){for(m(t).iso=!0,e=0,n=fe.length;e7)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,u=zt(Se(),o,a),n=we(e.gg,t._a[0],u.year),i=we(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o),i<1||i>Yt(n,o,a)?m(t)._overflowWeeks=!0:null!=l?m(t)._overflowWeekday=!0:(s=jt(n,i,r,o,a),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=we(t._a[0],i[0]),(t._dayOfYear>Dt(a)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=Nt(a,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Nt:It).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(m(t).weekdayMismatch=!0)}}function ke(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],m(t).empty=!0;var e,n,i,o,a,s,l=""+t._i,u=l.length,c=0;for(i=z(t._f,t._locale).match(D)||[],e=0;e0&&m(t).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),c+=n.length),N[o]?(n?m(t).empty=!1:m(t).unusedTokens.push(o),wt(o,n,t)):t._strict&&!n&&m(t).unusedTokens.push(o);m(t).charsLeftOver=u-c,l.length>0&&m(t).unusedInput.push(l),t._a[3]<=12&&!0===m(t).bigHour&&t._a[3]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),null!==(s=m(t).era)&&(t._a[0]=t._locale.erasConvertYear(s,t._a[0])),xe(t),ue(t)}else be(t);else ye(t)}function Ce(t){var e=t._i,n=t._f;return t._locale=t._locale||le(t._l),null===e||void 0===n&&""===e?v({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new w(ue(e)):(d(e)?t._d=e:o(n)?function(t){var e,n,i,r,o,a,s=!1;if(0===t._f.length)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:v()}));function Ee(t,e){var n,i;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Se();for(n=e[0],i=1;i=0?new Date(t+400,e,n)-126227808e5:new Date(t,e,n).valueOf()}function on(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-126227808e5:Date.UTC(t,e,n)}function an(t,e){return e.erasAbbrRegex(t)}function sn(){var t,e,n=[],i=[],r=[],o=[],a=this.eras();for(t=0,e=a.length;t(o=Yt(t,i,r))&&(e=o),cn.call(this,t,e,n,i,r))}function cn(t,e,n,i,r){var o=jt(t,e,n,i,r),a=Nt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),pt("N",an),pt("NN",an),pt("NNN",an),pt("NNNN",(function(t,e){return e.erasNameRegex(t)})),pt("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),_t(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?m(n).era=r:m(n).invalidEra=t})),pt("y",ut),pt("yy",ut),pt("yyy",ut),pt("yyyy",ut),pt("yo",(function(t,e){return e._eraYearOrdinalRegex||ut})),_t(["y","yy","yyy","yyyy"],0),_t(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[0]=n._locale.eraYearOrdinalParse(t,r):e[0]=parseInt(t,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),pt("G",ct),pt("g",ct),pt("GG",it,Q),pt("gg",it,Q),pt("GGGG",st,et),pt("gggg",st,et),pt("GGGGG",lt,nt),pt("ggggg",lt,nt),bt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=G(t)})),bt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),R("Q",0,"Qo","quarter"),F("quarter","Q"),U("quarter",7),pt("Q",K),_t("Q",(function(t,e){e[1]=3*(G(t)-1)})),R("D",["DD",2],"Do","date"),F("date","D"),U("date",9),pt("D",it),pt("DD",it,Q),pt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),_t(["D","DD"],2),_t("Do",(function(t,e){e[2]=G(t.match(it)[0])}));var dn=q("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),U("dayOfYear",4),pt("DDD",at),pt("DDDD",tt),_t(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=G(t)})),R("m",["mm",2],0,"minute"),F("minute","m"),U("minute",14),pt("m",it),pt("mm",it,Q),_t(["m","mm"],4);var hn=q("Minutes",!1);R("s",["ss",2],0,"second"),F("second","s"),U("second",15),pt("s",it),pt("ss",it,Q),_t(["s","ss"],5);var fn,pn,mn=q("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),U("millisecond",16),pt("S",at,K),pt("SS",at,Q),pt("SSS",at,tt),fn="SSSS";fn.length<=9;fn+="S")pt(fn,ut);function gn(t,e){e[6]=G(1e3*("0."+t))}for(fn="S";fn.length<=9;fn+="S")_t(fn,gn);pn=q("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var vn=w.prototype;function yn(t){return t}vn.add=Ge,vn.calendar=function(t,e){1===arguments.length&&(Xe(arguments[0])?(t=arguments[0],e=void 0):Je(arguments[0])&&(e=arguments[0],t=void 0));var n=t||Se(),i=je(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=e&&(T(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,Se(n)))},vn.clone=function(){return new w(this)},vn.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=je(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=B(e)){case"year":o=Ke(this,i)/12;break;case"month":o=Ke(this,i);break;case"quarter":o=Ke(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:W(o)},vn.endOf=function(t){var e,n;if(void 0===(t=B(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?on:rn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-nn(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-nn(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-nn(e,1e3)-1}return this._d.setTime(e),r.updateOffset(this,!0),this},vn.format=function(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=j(this,t);return this.localeData().postformat(e)},vn.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Se(t).isValid())?$e({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},vn.fromNow=function(t){return this.from(Se(),t)},vn.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Se(t).isValid())?$e({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},vn.toNow=function(t){return this.to(Se(),t)},vn.get=function(t){return T(this[t=B(t)])?this[t]():this},vn.invalidAt=function(){return m(this).overflow},vn.isAfter=function(t,e){var n=x(t)?t:Se(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=B(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?j(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=Ye,vn.isUTC=Ye,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=C("dates accessor is deprecated. Use date instead.",dn),vn.months=C("months accessor is deprecated. Use month instead",Ot),vn.years=C("years accessor is deprecated. Use year instead",At),vn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),vn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=Ce(e))._a?(t=e._isUTC?p(e._a):Se(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var _n=O.prototype;function bn(t,e,n,i){var r=le(),o=p().set(i,e);return r[n](o,t)}function wn(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return bn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=bn(t,i,n,"month");return r}function xn(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,o=le(),a=t?o._week.dow:0,s=[];if(null!=n)return bn(e,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=bn(e,(r+a)%7,i,"day");return s}_n.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return T(i)?i.call(e,n):i},_n.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(D).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},_n.invalidDate=function(){return this._invalidDate},_n.ordinal=function(t){return this._ordinal.replace("%d",t)},_n.preparse=yn,_n.postformat=yn,_n.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return T(r)?r(t,e,n,i):r.replace(/%d/i,t)},_n.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return T(n)?n(e):n.replace(/%s/i,e)},_n.set=function(t){var e,n;for(n in t)s(t,n)&&(T(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},_n.eras=function(t,e){var n,i,o,a=this._eras||le("en")._eras;for(n=0,i=a.length;n=0)return l[i]},_n.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?r(t.since).year():r(t.since).year()+(e-t.offset)*n},_n.erasAbbrRegex=function(t){return s(this,"_erasAbbrRegex")||sn.call(this),t?this._erasAbbrRegex:this._erasRegex},_n.erasNameRegex=function(t){return s(this,"_erasNameRegex")||sn.call(this),t?this._erasNameRegex:this._erasRegex},_n.erasNarrowRegex=function(t){return s(this,"_erasNarrowRegex")||sn.call(this),t?this._erasNarrowRegex:this._erasRegex},_n.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Lt).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},_n.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Lt.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},_n.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return Tt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},_n.monthsRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Pt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Mt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},_n.monthsShortRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Pt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=St),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},_n.week=function(t){return zt(t,this._week.dow,this._week.doy).week},_n.firstDayOfYear=function(){return this._week.doy},_n.firstDayOfWeek=function(){return this._week.dow},_n.weekdays=function(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ft(n,this._week.dow):t?n[t.day()]:n},_n.weekdaysMin=function(t){return!0===t?Ft(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},_n.weekdaysShort=function(t){return!0===t?Ft(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},_n.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return Gt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},_n.weekdaysRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},_n.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Vt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},_n.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Wt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},_n.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},_n.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},ae("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===G(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=C("moment.lang is deprecated. Use moment.locale instead.",ae),r.langData=C("moment.langData is deprecated. Use moment.localeData instead.",le);var kn=Math.abs;function Cn(t,e,n,i){var r=$e(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Ln(t){return t<0?Math.floor(t):Math.ceil(t)}function Sn(t){return 4800*t/146097}function Mn(t){return 146097*t/4800}function Tn(t){return function(){return this.as(t)}}var En=Tn("ms"),On=Tn("s"),Pn=Tn("m"),Dn=Tn("h"),An=Tn("d"),In=Tn("w"),Nn=Tn("M"),Rn=Tn("Q"),jn=Tn("y");function zn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Yn=zn("milliseconds"),Fn=zn("seconds"),Bn=zn("minutes"),$n=zn("hours"),Hn=zn("days"),Un=zn("months"),Vn=zn("years"),Wn=Math.round,Gn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qn(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var Zn=Math.abs;function Xn(t){return(t>0)-(t<0)||+t}function Jn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,o,a,s,l=Zn(this._milliseconds)/1e3,u=Zn(this._days),c=Zn(this._months),d=this.asSeconds();return d?(t=W(l/60),e=W(t/60),l%=60,t%=60,n=W(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=Xn(this._months)!==Xn(d)?"-":"",a=Xn(this._days)!==Xn(d)?"-":"",s=Xn(this._milliseconds)!==Xn(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+i+"S":"")):"P0D"}var Kn=Pe.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var t=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),t.milliseconds=kn(t.milliseconds),t.seconds=kn(t.seconds),t.minutes=kn(t.minutes),t.hours=kn(t.hours),t.months=kn(t.months),t.years=kn(t.years),this},Kn.add=function(t,e){return Cn(this,t,e,1)},Kn.subtract=function(t,e){return Cn(this,t,e,-1)},Kn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=B(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Sn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Mn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Kn.asMilliseconds=En,Kn.asSeconds=On,Kn.asMinutes=Pn,Kn.asHours=Dn,Kn.asDays=An,Kn.asWeeks=In,Kn.asMonths=Nn,Kn.asQuarters=Rn,Kn.asYears=jn,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},Kn._bubble=function(){var t,e,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Ln(Mn(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=W(o/1e3),l.seconds=t%60,e=W(t/60),l.minutes=e%60,n=W(e/60),l.hours=n%24,a+=W(n/24),r=W(Sn(a)),s+=r,a-=Ln(Mn(r)),i=W(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},Kn.clone=function(){return $e(this)},Kn.get=function(t){return t=B(t),this.isValid()?this[t+"s"]():NaN},Kn.milliseconds=Yn,Kn.seconds=Fn,Kn.minutes=Bn,Kn.hours=$n,Kn.days=Hn,Kn.weeks=function(){return W(this.days()/7)},Kn.months=Un,Kn.years=Vn,Kn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=Gn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},Gn,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),n=this.localeData(),i=function(t,e,n,i){var r=$e(t).abs(),o=Wn(r.as("s")),a=Wn(r.as("m")),s=Wn(r.as("h")),l=Wn(r.as("d")),u=Wn(r.as("M")),c=Wn(r.as("w")),d=Wn(r.as("y")),h=o<=n.ss&&["s",o]||o0,h[4]=i,qn.apply(null,h)}(this,!r,o,n),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},Kn.toISOString=Jn,Kn.toString=Jn,Kn.toJSON=Jn,Kn.locale=Qe,Kn.localeData=en,Kn.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jn),Kn.lang=tn,R("X",0,0,"unix"),R("x",0,0,"valueOf"),pt("x",ct),pt("X",/[+-]?\d+(\.\d{1,3})?/),_t("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),_t("x",(function(t,e,n){n._d=new Date(G(t))})),r.version="2.27.0",e=Se,r.fn=vn,r.min=function(){var t=[].slice.call(arguments,0);return Ee("isBefore",t)},r.max=function(){var t=[].slice.call(arguments,0);return Ee("isAfter",t)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(t){return Se(1e3*t)},r.months=function(t,e){return wn(t,e,"months")},r.isDate=d,r.locale=ae,r.invalid=v,r.duration=$e,r.isMoment=x,r.weekdays=function(t,e,n){return xn(t,e,n,"weekdays")},r.parseZone=function(){return Se.apply(null,arguments).parseZone()},r.localeData=le,r.isDuration=De,r.monthsShort=function(t,e){return wn(t,e,"monthsShort")},r.weekdaysMin=function(t,e,n){return xn(t,e,n,"weekdaysMin")},r.defineLocale=se,r.updateLocale=function(t,e){if(null!=e){var n,i,r=te;null!=ee[t]&&null!=ee[t].parentLocale?ee[t].set(E(ee[t]._config,e)):(null!=(i=oe(t))&&(r=i._config),e=E(r,e),null==i&&(e.abbr=t),(n=new O(e)).parentLocale=ee[t],ee[t]=n),ae(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?(ee[t]=ee[t].parentLocale,t===ae()&&ae(t)):null!=ee[t]&&delete ee[t]);return ee[t]},r.locales=function(){return L(ee)},r.weekdaysShort=function(t,e,n){return xn(t,e,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(t){return void 0===t?Wn:"function"==typeof t&&(Wn=t,!0)},r.relativeTimeThreshold=function(t,e){return void 0!==Gn[t]&&(void 0===e?Gn[t]:(Gn[t]=e,"s"===t&&(Gn.ss=e-1),!0))},r.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=vn,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,n("YuTi")(t))},wfSq:function(t,e,n){var i=n("KSRL");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},x6pH:function(t,e,n){!function(t){"use strict";t.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(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10==0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(t){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(t)},meridiem:function(t,e,n){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?n?'לפנה"צ':"לפני הצהריים":t<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n("wd/R"))},xAGQ:function(t,e,n){"use strict";var i=n("xTJ+");t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},xMlF:function(t,e,n){var i=n("73T2");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},"xTJ+":function(t,e,n){"use strict";var i=n("HSsa"),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===r.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n11?n?"d'o":"D'O":n?"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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},z3Vd:function(t,e,n){!function(t){"use strict";var e="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(t,n,i,r){var o=function(t){var n=Math.floor(t%1e3/100),i=Math.floor(t%100/10),r=t%10,o="";return n>0&&(o+=e[n]+"vatlh"),i>0&&(o+=(""!==o?" ":"")+e[i]+"maH"),r>0&&(o+=(""!==o?" ":"")+e[r]),""===o?"pagh":o}(t);switch(i){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}t.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:function(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},zH9V:function(t,e,n){"use strict";var i=n("uCbU");n.n(i).a},zLNj:function(t,e,n){var i=n("7kWm");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},zNTn:function(t){t.exports=JSON.parse('{"show-flag":"Pokaż flagę kraju","top-10":"Top 10 najlepszych globalnych liderów OpenLitterMap!","top-10-challenge":"Jeśli uda ci się znaleźć się w pierwszej dziesiątce, możesz reprezentować swój kraj!","action-select":"Wpisz lub przewiń, aby wybrać z listy","select-country":"Wybierz swój kraj","save-flag":"Zapisz flagę"}')},zOPP:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.burger[data-v-1c5b4942] {\n align-self: center;\n}\n.drop-item[data-v-1c5b4942] {\n color: black;\n font-weight: 500;\n}\n.flex-not-mobile[data-v-1c5b4942] {\n display: flex;\n}\n.main-nav[data-v-1c5b4942] {\n background-color: black;\n padding-top: 10px;\n padding-bottom: 10px;\n}\n.nav-title[data-v-1c5b4942] {\n color: white;\n font-size: 2.5rem;\n font-weight: 600;\n line-height: 1.125;\n}\n.is-white[data-v-1c5b4942] {\n color: white;\n}\n@media (max-width: 768px)\n{\n.flex-not-mobile[data-v-1c5b4942] {\n display: block;\n}\n.nav-title[data-v-1c5b4942] {\n font-size: 2rem;\n padding-left: 0.25em;\n}\n}\n\n",""])},zrUC:function(t,e,n){var i=n("IlGX");"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,r);i.locals&&(t.exports=i.locals)},zuR4:function(t,e,n){"use strict";var i=n("xTJ+"),r=n("HSsa"),o=n("CgaS"),a=n("SntB");function s(t){var e=new o(t),n=r(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var l=s(n("JEQr"));l.Axios=o,l.create=function(t){return s(a(l.defaults,t))},l.Cancel=n("endd"),l.CancelToken=n("jfS+"),l.isCancel=n("Lmem"),l.all=function(t){return Promise.all(t)},l.spread=n("DfZB"),l.isAxiosError=n("XwJu"),t.exports=l,t.exports.default=l},zx6S:function(t,e,n){!function(t){"use strict";var e={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(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,i){var r=e.words[i];return 1===i.length?n?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}};t.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(){return["[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"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))}}); \ No newline at end of file +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = "/"; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 0); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./node_modules/@babel/runtime/regenerator/index.js": +/*!**********************************************************!*\ + !*** ./node_modules/@babel/runtime/regenerator/index.js ***! + \**********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js"); + + +/***/ }), + +/***/ "./node_modules/axios/index.js": +/*!*************************************!*\ + !*** ./node_modules/axios/index.js ***! + \*************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js"); + +/***/ }), + +/***/ "./node_modules/axios/lib/adapters/xhr.js": +/*!************************************************!*\ + !*** ./node_modules/axios/lib/adapters/xhr.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js"); +var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js"); +var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); +var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js"); +var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js"); +var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); +var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js"); + +module.exports = function xhrAdapter(config) { + return new Promise(function dispatchXhrRequest(resolve, reject) { + var requestData = config.data; + var requestHeaders = config.headers; + + if (utils.isFormData(requestData)) { + delete requestHeaders['Content-Type']; // Let the browser set it + } + + var request = new XMLHttpRequest(); + + // HTTP basic authentication + if (config.auth) { + var username = config.auth.username || ''; + var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; + requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); + } + + var fullPath = buildFullPath(config.baseURL, config.url); + request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); + + // Set the request timeout in MS + request.timeout = config.timeout; + + // Listen for ready state + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } + + // The request errored out and we didn't get a response, this will be + // handled by onerror instead + // With one exception: request that using file: protocol, most browsers + // will return status as 0 even though it's a successful request + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { + return; + } + + // Prepare the response + var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; + var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; + var response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config: config, + request: request + }; + + settle(resolve, reject, response); + + // Clean up request + request = null; + }; + + // Handle browser request cancellation (as opposed to a manual cancellation) + request.onabort = function handleAbort() { + if (!request) { + return; + } + + reject(createError('Request aborted', config, 'ECONNABORTED', request)); + + // Clean up request + request = null; + }; + + // Handle low level network errors + request.onerror = function handleError() { + // Real errors are hidden from us by the browser + // onerror should only fire if it's a network error + reject(createError('Network Error', config, null, request)); + + // Clean up request + request = null; + }; + + // Handle timeout + request.ontimeout = function handleTimeout() { + var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', + request)); + + // Clean up request + request = null; + }; + + // Add xsrf header + // This is only done if running in a standard browser environment. + // Specifically not if we're in a web worker, or react-native. + if (utils.isStandardBrowserEnv()) { + // Add xsrf header + var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? + cookies.read(config.xsrfCookieName) : + undefined; + + if (xsrfValue) { + requestHeaders[config.xsrfHeaderName] = xsrfValue; + } + } + + // Add headers to the request + if ('setRequestHeader' in request) { + utils.forEach(requestHeaders, function setRequestHeader(val, key) { + if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { + // Remove Content-Type if data is undefined + delete requestHeaders[key]; + } else { + // Otherwise add header to the request + request.setRequestHeader(key, val); + } + }); + } + + // Add withCredentials to request if needed + if (!utils.isUndefined(config.withCredentials)) { + request.withCredentials = !!config.withCredentials; + } + + // Add responseType to request if needed + if (config.responseType) { + try { + request.responseType = config.responseType; + } catch (e) { + // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. + // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. + if (config.responseType !== 'json') { + throw e; + } + } + } + + // Handle progress if needed + if (typeof config.onDownloadProgress === 'function') { + request.addEventListener('progress', config.onDownloadProgress); + } + + // Not all browsers support upload events + if (typeof config.onUploadProgress === 'function' && request.upload) { + request.upload.addEventListener('progress', config.onUploadProgress); + } + + if (config.cancelToken) { + // Handle cancellation + config.cancelToken.promise.then(function onCanceled(cancel) { + if (!request) { + return; + } + + request.abort(); + reject(cancel); + // Clean up request + request = null; + }); + } + + if (!requestData) { + requestData = null; + } + + // Send the request + request.send(requestData); + }); +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/axios.js": +/*!*****************************************!*\ + !*** ./node_modules/axios/lib/axios.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); +var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); +var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js"); +var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); +var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js"); + +/** + * Create an instance of Axios + * + * @param {Object} defaultConfig The default config for the instance + * @return {Axios} A new instance of Axios + */ +function createInstance(defaultConfig) { + var context = new Axios(defaultConfig); + var instance = bind(Axios.prototype.request, context); + + // Copy axios.prototype to instance + utils.extend(instance, Axios.prototype, context); + + // Copy context to instance + utils.extend(instance, context); + + return instance; +} + +// Create the default instance to be exported +var axios = createInstance(defaults); + +// Expose Axios class to allow class inheritance +axios.Axios = Axios; + +// Factory for creating new instances +axios.create = function create(instanceConfig) { + return createInstance(mergeConfig(axios.defaults, instanceConfig)); +}; + +// Expose Cancel & CancelToken +axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); +axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js"); +axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); + +// Expose all/spread +axios.all = function all(promises) { + return Promise.all(promises); +}; +axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js"); + +// Expose isAxiosError +axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js"); + +module.exports = axios; + +// Allow use of default import syntax in TypeScript +module.exports.default = axios; + + +/***/ }), + +/***/ "./node_modules/axios/lib/cancel/Cancel.js": +/*!*************************************************!*\ + !*** ./node_modules/axios/lib/cancel/Cancel.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/** + * A `Cancel` is an object that is thrown when an operation is canceled. + * + * @class + * @param {string=} message The message. + */ +function Cancel(message) { + this.message = message; +} + +Cancel.prototype.toString = function toString() { + return 'Cancel' + (this.message ? ': ' + this.message : ''); +}; + +Cancel.prototype.__CANCEL__ = true; + +module.exports = Cancel; + + +/***/ }), + +/***/ "./node_modules/axios/lib/cancel/CancelToken.js": +/*!******************************************************!*\ + !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); + +/** + * A `CancelToken` is an object that can be used to request cancellation of an operation. + * + * @class + * @param {Function} executor The executor function. + */ +function CancelToken(executor) { + if (typeof executor !== 'function') { + throw new TypeError('executor must be a function.'); + } + + var resolvePromise; + this.promise = new Promise(function promiseExecutor(resolve) { + resolvePromise = resolve; + }); + + var token = this; + executor(function cancel(message) { + if (token.reason) { + // Cancellation has already been requested + return; + } + + token.reason = new Cancel(message); + resolvePromise(token.reason); + }); +} + +/** + * Throws a `Cancel` if cancellation has been requested. + */ +CancelToken.prototype.throwIfRequested = function throwIfRequested() { + if (this.reason) { + throw this.reason; + } +}; + +/** + * Returns an object that contains a new `CancelToken` and a function that, when called, + * cancels the `CancelToken`. + */ +CancelToken.source = function source() { + var cancel; + var token = new CancelToken(function executor(c) { + cancel = c; + }); + return { + token: token, + cancel: cancel + }; +}; + +module.exports = CancelToken; + + +/***/ }), + +/***/ "./node_modules/axios/lib/cancel/isCancel.js": +/*!***************************************************!*\ + !*** ./node_modules/axios/lib/cancel/isCancel.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = function isCancel(value) { + return !!(value && value.__CANCEL__); +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/core/Axios.js": +/*!**********************************************!*\ + !*** ./node_modules/axios/lib/core/Axios.js ***! + \**********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); +var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js"); +var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js"); +var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); + +/** + * Create a new instance of Axios + * + * @param {Object} instanceConfig The default config for the instance + */ +function Axios(instanceConfig) { + this.defaults = instanceConfig; + this.interceptors = { + request: new InterceptorManager(), + response: new InterceptorManager() + }; +} + +/** + * Dispatch a request + * + * @param {Object} config The config specific for this request (merged with this.defaults) + */ +Axios.prototype.request = function request(config) { + /*eslint no-param-reassign:0*/ + // Allow for axios('example/url'[, config]) a la fetch API + if (typeof config === 'string') { + config = arguments[1] || {}; + config.url = arguments[0]; + } else { + config = config || {}; + } + + config = mergeConfig(this.defaults, config); + + // Set config.method + if (config.method) { + config.method = config.method.toLowerCase(); + } else if (this.defaults.method) { + config.method = this.defaults.method.toLowerCase(); + } else { + config.method = 'get'; + } + + // Hook up interceptors middleware + var chain = [dispatchRequest, undefined]; + var promise = Promise.resolve(config); + + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + chain.unshift(interceptor.fulfilled, interceptor.rejected); + }); + + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + chain.push(interceptor.fulfilled, interceptor.rejected); + }); + + while (chain.length) { + promise = promise.then(chain.shift(), chain.shift()); + } + + return promise; +}; + +Axios.prototype.getUri = function getUri(config) { + config = mergeConfig(this.defaults, config); + return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); +}; + +// Provide aliases for supported request methods +utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function(url, config) { + return this.request(mergeConfig(config || {}, { + method: method, + url: url, + data: (config || {}).data + })); + }; +}); + +utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function(url, data, config) { + return this.request(mergeConfig(config || {}, { + method: method, + url: url, + data: data + })); + }; +}); + +module.exports = Axios; + + +/***/ }), + +/***/ "./node_modules/axios/lib/core/InterceptorManager.js": +/*!***********************************************************!*\ + !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +function InterceptorManager() { + this.handlers = []; +} + +/** + * Add a new interceptor to the stack + * + * @param {Function} fulfilled The function to handle `then` for a `Promise` + * @param {Function} rejected The function to handle `reject` for a `Promise` + * + * @return {Number} An ID used to remove interceptor later + */ +InterceptorManager.prototype.use = function use(fulfilled, rejected) { + this.handlers.push({ + fulfilled: fulfilled, + rejected: rejected + }); + return this.handlers.length - 1; +}; + +/** + * Remove an interceptor from the stack + * + * @param {Number} id The ID that was returned by `use` + */ +InterceptorManager.prototype.eject = function eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; + } +}; + +/** + * Iterate over all the registered interceptors + * + * This method is particularly useful for skipping over any + * interceptors that may have become `null` calling `eject`. + * + * @param {Function} fn The function to call for each interceptor + */ +InterceptorManager.prototype.forEach = function forEach(fn) { + utils.forEach(this.handlers, function forEachHandler(h) { + if (h !== null) { + fn(h); + } + }); +}; + +module.exports = InterceptorManager; + + +/***/ }), + +/***/ "./node_modules/axios/lib/core/buildFullPath.js": +/*!******************************************************!*\ + !*** ./node_modules/axios/lib/core/buildFullPath.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); +var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js"); + +/** + * Creates a new URL by combining the baseURL with the requestedURL, + * only when the requestedURL is not already an absolute URL. + * If the requestURL is absolute, this function returns the requestedURL untouched. + * + * @param {string} baseURL The base URL + * @param {string} requestedURL Absolute or relative URL to combine + * @returns {string} The combined full path + */ +module.exports = function buildFullPath(baseURL, requestedURL) { + if (baseURL && !isAbsoluteURL(requestedURL)) { + return combineURLs(baseURL, requestedURL); + } + return requestedURL; +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/core/createError.js": +/*!****************************************************!*\ + !*** ./node_modules/axios/lib/core/createError.js ***! + \****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); + +/** + * Create an Error with the specified message, config, error code, request and response. + * + * @param {string} message The error message. + * @param {Object} config The config. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * @returns {Error} The created error. + */ +module.exports = function createError(message, config, code, request, response) { + var error = new Error(message); + return enhanceError(error, config, code, request, response); +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/core/dispatchRequest.js": +/*!********************************************************!*\ + !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js"); +var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); +var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js"); + +/** + * Throws a `Cancel` if cancellation has been requested. + */ +function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); + } +} + +/** + * Dispatch a request to the server using the configured adapter. + * + * @param {object} config The config that is to be used for the request + * @returns {Promise} The Promise to be fulfilled + */ +module.exports = function dispatchRequest(config) { + throwIfCancellationRequested(config); + + // Ensure headers exist + config.headers = config.headers || {}; + + // Transform request data + config.data = transformData( + config.data, + config.headers, + config.transformRequest + ); + + // Flatten headers + config.headers = utils.merge( + config.headers.common || {}, + config.headers[config.method] || {}, + config.headers + ); + + utils.forEach( + ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], + function cleanHeaderConfig(method) { + delete config.headers[method]; + } + ); + + var adapter = config.adapter || defaults.adapter; + + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); + + // Transform response data + response.data = transformData( + response.data, + response.headers, + config.transformResponse + ); + + return response; + }, function onAdapterRejection(reason) { + if (!isCancel(reason)) { + throwIfCancellationRequested(config); + + // Transform response data + if (reason && reason.response) { + reason.response.data = transformData( + reason.response.data, + reason.response.headers, + config.transformResponse + ); + } + } + + return Promise.reject(reason); + }); +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/core/enhanceError.js": +/*!*****************************************************!*\ + !*** ./node_modules/axios/lib/core/enhanceError.js ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/** + * Update an Error with the specified config, error code, and response. + * + * @param {Error} error The error to update. + * @param {Object} config The config. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * @returns {Error} The error. + */ +module.exports = function enhanceError(error, config, code, request, response) { + error.config = config; + if (code) { + error.code = code; + } + + error.request = request; + error.response = response; + error.isAxiosError = true; + + error.toJSON = function toJSON() { + return { + // Standard + message: this.message, + name: this.name, + // Microsoft + description: this.description, + number: this.number, + // Mozilla + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + // Axios + config: this.config, + code: this.code + }; + }; + return error; +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/core/mergeConfig.js": +/*!****************************************************!*\ + !*** ./node_modules/axios/lib/core/mergeConfig.js ***! + \****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); + +/** + * Config-specific merge-function which creates a new config-object + * by merging two configuration objects together. + * + * @param {Object} config1 + * @param {Object} config2 + * @returns {Object} New object resulting from merging config2 to config1 + */ +module.exports = function mergeConfig(config1, config2) { + // eslint-disable-next-line no-param-reassign + config2 = config2 || {}; + var config = {}; + + var valueFromConfig2Keys = ['url', 'method', 'data']; + var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; + var defaultToConfig2Keys = [ + 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', + 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', + 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', + 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', + 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' + ]; + var directMergeKeys = ['validateStatus']; + + function getMergedValue(target, source) { + if (utils.isPlainObject(target) && utils.isPlainObject(source)) { + return utils.merge(target, source); + } else if (utils.isPlainObject(source)) { + return utils.merge({}, source); + } else if (utils.isArray(source)) { + return source.slice(); + } + return source; + } + + function mergeDeepProperties(prop) { + if (!utils.isUndefined(config2[prop])) { + config[prop] = getMergedValue(config1[prop], config2[prop]); + } else if (!utils.isUndefined(config1[prop])) { + config[prop] = getMergedValue(undefined, config1[prop]); + } + } + + utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { + if (!utils.isUndefined(config2[prop])) { + config[prop] = getMergedValue(undefined, config2[prop]); + } + }); + + utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties); + + utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { + if (!utils.isUndefined(config2[prop])) { + config[prop] = getMergedValue(undefined, config2[prop]); + } else if (!utils.isUndefined(config1[prop])) { + config[prop] = getMergedValue(undefined, config1[prop]); + } + }); + + utils.forEach(directMergeKeys, function merge(prop) { + if (prop in config2) { + config[prop] = getMergedValue(config1[prop], config2[prop]); + } else if (prop in config1) { + config[prop] = getMergedValue(undefined, config1[prop]); + } + }); + + var axiosKeys = valueFromConfig2Keys + .concat(mergeDeepPropertiesKeys) + .concat(defaultToConfig2Keys) + .concat(directMergeKeys); + + var otherKeys = Object + .keys(config1) + .concat(Object.keys(config2)) + .filter(function filterAxiosKeys(key) { + return axiosKeys.indexOf(key) === -1; + }); + + utils.forEach(otherKeys, mergeDeepProperties); + + return config; +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/core/settle.js": +/*!***********************************************!*\ + !*** ./node_modules/axios/lib/core/settle.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js"); + +/** + * Resolve or reject a Promise based on response status. + * + * @param {Function} resolve A function that resolves the promise. + * @param {Function} reject A function that rejects the promise. + * @param {object} response The response. + */ +module.exports = function settle(resolve, reject, response) { + var validateStatus = response.config.validateStatus; + if (!response.status || !validateStatus || validateStatus(response.status)) { + resolve(response); + } else { + reject(createError( + 'Request failed with status code ' + response.status, + response.config, + null, + response.request, + response + )); + } +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/core/transformData.js": +/*!******************************************************!*\ + !*** ./node_modules/axios/lib/core/transformData.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +/** + * Transform the data for a request or a response + * + * @param {Object|String} data The data to be transformed + * @param {Array} headers The headers for the request or response + * @param {Array|Function} fns A single function or Array of functions + * @returns {*} The resulting transformed data + */ +module.exports = function transformData(data, headers, fns) { + /*eslint no-param-reassign:0*/ + utils.forEach(fns, function transform(fn) { + data = fn(data, headers); + }); + + return data; +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/defaults.js": +/*!********************************************!*\ + !*** ./node_modules/axios/lib/defaults.js ***! + \********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) { + +var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); +var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js"); + +var DEFAULT_CONTENT_TYPE = { + 'Content-Type': 'application/x-www-form-urlencoded' +}; + +function setContentTypeIfUnset(headers, value) { + if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { + headers['Content-Type'] = value; + } +} + +function getDefaultAdapter() { + var adapter; + if (typeof XMLHttpRequest !== 'undefined') { + // For browsers use XHR adapter + adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js"); + } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { + // For node use HTTP adapter + adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js"); + } + return adapter; +} + +var defaults = { + adapter: getDefaultAdapter(), + + transformRequest: [function transformRequest(data, headers) { + normalizeHeaderName(headers, 'Accept'); + normalizeHeaderName(headers, 'Content-Type'); + if (utils.isFormData(data) || + utils.isArrayBuffer(data) || + utils.isBuffer(data) || + utils.isStream(data) || + utils.isFile(data) || + utils.isBlob(data) + ) { + return data; + } + if (utils.isArrayBufferView(data)) { + return data.buffer; + } + if (utils.isURLSearchParams(data)) { + setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); + return data.toString(); + } + if (utils.isObject(data)) { + setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); + return JSON.stringify(data); + } + return data; + }], + + transformResponse: [function transformResponse(data) { + /*eslint no-param-reassign:0*/ + if (typeof data === 'string') { + try { + data = JSON.parse(data); + } catch (e) { /* Ignore */ } + } + return data; + }], + + /** + * A timeout in milliseconds to abort a request. If set to 0 (default) a + * timeout is not created. + */ + timeout: 0, + + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', + + maxContentLength: -1, + maxBodyLength: -1, + + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + } +}; + +defaults.headers = { + common: { + 'Accept': 'application/json, text/plain, */*' + } +}; + +utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { + defaults.headers[method] = {}; +}); + +utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); +}); + +module.exports = defaults; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) + +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/bind.js": +/*!************************************************!*\ + !*** ./node_modules/axios/lib/helpers/bind.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = function bind(fn, thisArg) { + return function wrap() { + var args = new Array(arguments.length); + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i]; + } + return fn.apply(thisArg, args); + }; +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/buildURL.js": +/*!****************************************************!*\ + !*** ./node_modules/axios/lib/helpers/buildURL.js ***! + \****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +function encode(val) { + return encodeURIComponent(val). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%20/g, '+'). + replace(/%5B/gi, '['). + replace(/%5D/gi, ']'); +} + +/** + * Build a URL by appending params to the end + * + * @param {string} url The base of the url (e.g., http://www.google.com) + * @param {object} [params] The params to be appended + * @returns {string} The formatted url + */ +module.exports = function buildURL(url, params, paramsSerializer) { + /*eslint no-param-reassign:0*/ + if (!params) { + return url; + } + + var serializedParams; + if (paramsSerializer) { + serializedParams = paramsSerializer(params); + } else if (utils.isURLSearchParams(params)) { + serializedParams = params.toString(); + } else { + var parts = []; + + utils.forEach(params, function serialize(val, key) { + if (val === null || typeof val === 'undefined') { + return; + } + + if (utils.isArray(val)) { + key = key + '[]'; + } else { + val = [val]; + } + + utils.forEach(val, function parseValue(v) { + if (utils.isDate(v)) { + v = v.toISOString(); + } else if (utils.isObject(v)) { + v = JSON.stringify(v); + } + parts.push(encode(key) + '=' + encode(v)); + }); + }); + + serializedParams = parts.join('&'); + } + + if (serializedParams) { + var hashmarkIndex = url.indexOf('#'); + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); + } + + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; + } + + return url; +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/combineURLs.js": +/*!*******************************************************!*\ + !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/** + * Creates a new URL by combining the specified URLs + * + * @param {string} baseURL The base URL + * @param {string} relativeURL The relative URL + * @returns {string} The combined URL + */ +module.exports = function combineURLs(baseURL, relativeURL) { + return relativeURL + ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') + : baseURL; +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/cookies.js": +/*!***************************************************!*\ + !*** ./node_modules/axios/lib/helpers/cookies.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +module.exports = ( + utils.isStandardBrowserEnv() ? + + // Standard browser envs support document.cookie + (function standardBrowserEnv() { + return { + write: function write(name, value, expires, path, domain, secure) { + var cookie = []; + cookie.push(name + '=' + encodeURIComponent(value)); + + if (utils.isNumber(expires)) { + cookie.push('expires=' + new Date(expires).toGMTString()); + } + + if (utils.isString(path)) { + cookie.push('path=' + path); + } + + if (utils.isString(domain)) { + cookie.push('domain=' + domain); + } + + if (secure === true) { + cookie.push('secure'); + } + + document.cookie = cookie.join('; '); + }, + + read: function read(name) { + var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return (match ? decodeURIComponent(match[3]) : null); + }, + + remove: function remove(name) { + this.write(name, '', Date.now() - 86400000); + } + }; + })() : + + // Non standard browser env (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return { + write: function write() {}, + read: function read() { return null; }, + remove: function remove() {} + }; + })() +); + + +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": +/*!*********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! + \*********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/** + * Determines whether the specified URL is absolute + * + * @param {string} url The URL to test + * @returns {boolean} True if the specified URL is absolute, otherwise false + */ +module.exports = function isAbsoluteURL(url) { + // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). + // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed + // by any combination of letters, digits, plus, period, or hyphen. + return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/isAxiosError.js": +/*!********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/** + * Determines whether the payload is an error thrown by Axios + * + * @param {*} payload The value to test + * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false + */ +module.exports = function isAxiosError(payload) { + return (typeof payload === 'object') && (payload.isAxiosError === true); +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": +/*!***********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +module.exports = ( + utils.isStandardBrowserEnv() ? + + // Standard browser envs have full support of the APIs needed to test + // whether the request URL is of the same origin as current location. + (function standardBrowserEnv() { + var msie = /(msie|trident)/i.test(navigator.userAgent); + var urlParsingNode = document.createElement('a'); + var originURL; + + /** + * Parse a URL to discover it's components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function resolveURL(url) { + var href = url; + + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } + + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') ? + urlParsingNode.pathname : + '/' + urlParsingNode.pathname + }; + } + + originURL = resolveURL(window.location.href); + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestURL The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + return function isURLSameOrigin(requestURL) { + var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; + return (parsed.protocol === originURL.protocol && + parsed.host === originURL.host); + }; + })() : + + // Non standard browser envs (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + })() +); + + +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js": +/*!***************************************************************!*\ + !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); + +module.exports = function normalizeHeaderName(headers, normalizedName) { + utils.forEach(headers, function processHeader(value, name) { + if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { + headers[normalizedName] = value; + delete headers[name]; + } + }); +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": +/*!********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +// Headers whose duplicates are ignored by node +// c.f. https://nodejs.org/api/http.html#http_message_headers +var ignoreDuplicateOf = [ + 'age', 'authorization', 'content-length', 'content-type', 'etag', + 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', + 'last-modified', 'location', 'max-forwards', 'proxy-authorization', + 'referer', 'retry-after', 'user-agent' +]; + +/** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} headers Headers needing to be parsed + * @returns {Object} Headers parsed into an object + */ +module.exports = function parseHeaders(headers) { + var parsed = {}; + var key; + var val; + var i; + + if (!headers) { return parsed; } + + utils.forEach(headers.split('\n'), function parser(line) { + i = line.indexOf(':'); + key = utils.trim(line.substr(0, i)).toLowerCase(); + val = utils.trim(line.substr(i + 1)); + + if (key) { + if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { + return; + } + if (key === 'set-cookie') { + parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); + } else { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + } + }); + + return parsed; +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/spread.js": +/*!**************************************************!*\ + !*** ./node_modules/axios/lib/helpers/spread.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * @returns {Function} + */ +module.exports = function spread(callback) { + return function wrap(arr) { + return callback.apply(null, arr); + }; +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/utils.js": +/*!*****************************************!*\ + !*** ./node_modules/axios/lib/utils.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); + +/*global toString:true*/ + +// utils is a library of generic helper functions non-specific to axios + +var toString = Object.prototype.toString; + +/** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an Array, otherwise false + */ +function isArray(val) { + return toString.call(val) === '[object Array]'; +} + +/** + * Determine if a value is undefined + * + * @param {Object} val The value to test + * @returns {boolean} True if the value is undefined, otherwise false + */ +function isUndefined(val) { + return typeof val === 'undefined'; +} + +/** + * Determine if a value is a Buffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Buffer, otherwise false + */ +function isBuffer(val) { + return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) + && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); +} + +/** + * Determine if a value is an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ +function isArrayBuffer(val) { + return toString.call(val) === '[object ArrayBuffer]'; +} + +/** + * Determine if a value is a FormData + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an FormData, otherwise false + */ +function isFormData(val) { + return (typeof FormData !== 'undefined') && (val instanceof FormData); +} + +/** + * Determine if a value is a view on an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ +function isArrayBufferView(val) { + var result; + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + result = ArrayBuffer.isView(val); + } else { + result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); + } + return result; +} + +/** + * Determine if a value is a String + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a String, otherwise false + */ +function isString(val) { + return typeof val === 'string'; +} + +/** + * Determine if a value is a Number + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Number, otherwise false + */ +function isNumber(val) { + return typeof val === 'number'; +} + +/** + * Determine if a value is an Object + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an Object, otherwise false + */ +function isObject(val) { + return val !== null && typeof val === 'object'; +} + +/** + * Determine if a value is a plain Object + * + * @param {Object} val The value to test + * @return {boolean} True if value is a plain Object, otherwise false + */ +function isPlainObject(val) { + if (toString.call(val) !== '[object Object]') { + return false; + } + + var prototype = Object.getPrototypeOf(val); + return prototype === null || prototype === Object.prototype; +} + +/** + * Determine if a value is a Date + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Date, otherwise false + */ +function isDate(val) { + return toString.call(val) === '[object Date]'; +} + +/** + * Determine if a value is a File + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a File, otherwise false + */ +function isFile(val) { + return toString.call(val) === '[object File]'; +} + +/** + * Determine if a value is a Blob + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Blob, otherwise false + */ +function isBlob(val) { + return toString.call(val) === '[object Blob]'; +} + +/** + * Determine if a value is a Function + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Function, otherwise false + */ +function isFunction(val) { + return toString.call(val) === '[object Function]'; +} + +/** + * Determine if a value is a Stream + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Stream, otherwise false + */ +function isStream(val) { + return isObject(val) && isFunction(val.pipe); +} + +/** + * Determine if a value is a URLSearchParams object + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a URLSearchParams object, otherwise false + */ +function isURLSearchParams(val) { + return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; +} + +/** + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * @returns {String} The String freed of excess whitespace + */ +function trim(str) { + return str.replace(/^\s*/, '').replace(/\s*$/, ''); +} + +/** + * Determine if we're running in a standard browser environment + * + * This allows axios to run in a web worker, and react-native. + * Both environments support XMLHttpRequest, but not fully standard globals. + * + * web workers: + * typeof window -> undefined + * typeof document -> undefined + * + * react-native: + * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' + */ +function isStandardBrowserEnv() { + if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || + navigator.product === 'NativeScript' || + navigator.product === 'NS')) { + return false; + } + return ( + typeof window !== 'undefined' && + typeof document !== 'undefined' + ); +} + +/** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + */ +function forEach(obj, fn) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; + } + + // Force an array if not already something iterable + if (typeof obj !== 'object') { + /*eslint no-param-reassign:0*/ + obj = [obj]; + } + + if (isArray(obj)) { + // Iterate over array values + for (var i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj); + } + } else { + // Iterate over object keys + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + fn.call(null, obj[key], key, obj); + } + } + } +} + +/** + * Accepts varargs expecting each argument to be an object, then + * immutably merges the properties of each object and returns result. + * + * When multiple objects contain the same key the later object in + * the arguments list will take precedence. + * + * Example: + * + * ```js + * var result = merge({foo: 123}, {foo: 456}); + * console.log(result.foo); // outputs 456 + * ``` + * + * @param {Object} obj1 Object to merge + * @returns {Object} Result of all merge properties + */ +function merge(/* obj1, obj2, obj3, ... */) { + var result = {}; + function assignValue(val, key) { + if (isPlainObject(result[key]) && isPlainObject(val)) { + result[key] = merge(result[key], val); + } else if (isPlainObject(val)) { + result[key] = merge({}, val); + } else if (isArray(val)) { + result[key] = val.slice(); + } else { + result[key] = val; + } + } + + for (var i = 0, l = arguments.length; i < l; i++) { + forEach(arguments[i], assignValue); + } + return result; +} + +/** + * Extends object a by mutably adding to it the properties of object b. + * + * @param {Object} a The object to be extended + * @param {Object} b The object to copy properties from + * @param {Object} thisArg The object to bind function to + * @return {Object} The resulting value of object a + */ +function extend(a, b, thisArg) { + forEach(b, function assignValue(val, key) { + if (thisArg && typeof val === 'function') { + a[key] = bind(val, thisArg); + } else { + a[key] = val; + } + }); + return a; +} + +/** + * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) + * + * @param {string} content with BOM + * @return {string} content value without BOM + */ +function stripBOM(content) { + if (content.charCodeAt(0) === 0xFEFF) { + content = content.slice(1); + } + return content; +} + +module.exports = { + isArray: isArray, + isArrayBuffer: isArrayBuffer, + isBuffer: isBuffer, + isFormData: isFormData, + isArrayBufferView: isArrayBufferView, + isString: isString, + isNumber: isNumber, + isObject: isObject, + isPlainObject: isPlainObject, + isUndefined: isUndefined, + isDate: isDate, + isFile: isFile, + isBlob: isBlob, + isFunction: isFunction, + isStream: isStream, + isURLSearchParams: isURLSearchParams, + isStandardBrowserEnv: isStandardBrowserEnv, + forEach: forEach, + merge: merge, + extend: extend, + trim: trim, + stripBOM: stripBOM +}; + + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Admin/Bbox/BrandsBox.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Admin/Bbox/BrandsBox.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'BrandsBox', + computed: { + /** + * Array of brand tags that were applied to the image + */ + brands: { + get: function get() { + return this.$store.state.bbox.brands; + }, + set: function set(v) { + this.$store.commit('setBrandsBox', v); + } + }, + + /** + * Shortcut + */ + selectedBrandIndex: function selectedBrandIndex() { + return this.$store.state.bbox.selectedBrandIndex; + } + }, + methods: { + /** + * Turn brand on if its selected + */ + brandClass: function brandClass(index) { + return this.selectedBrandIndex === index ? 'is-brand-card selected' : 'is-brand-card'; + }, + + /** + * Add "- selected" text if this brand is selected + */ + isSelected: function isSelected(index) { + return this.selectedBrandIndex === index ? ' - selected' : ''; + }, + + /** + * Select a brand + */ + select: function select(index) { + this.$store.commit('selectBrandBoxIndex', index); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Admin/Boxes.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Admin/Boxes.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Bbox_BrandsBox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Bbox/BrandsBox */ "./resources/js/components/Admin/Bbox/BrandsBox.vue"); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Boxes', + components: { + BrandsBox: _Bbox_BrandsBox__WEBPACK_IMPORTED_MODULE_0__["default"] + }, + computed: { + /** + * Array of bounding boxes + */ + boxes: function boxes() { + return this.$store.state.bbox.boxes; + }, + + /** + * One of the boxes is hidden + */ + boxHidden: function boxHidden() { + return this.$store.state.bbox.boxes.find(function (box) { + return box.hidden; + }); + }, + + /** + * There are more than 1 boxes + */ + manyBoxes: function manyBoxes() { + return this.$store.state.bbox.boxes.length > 1; + } + }, + methods: { + /** + * Activate a box + * + * Check if we need to add brand to this box + */ + activateAndCheckBox: function activateAndCheckBox(box_id) { + this.$store.commit('activateBox', box_id); + + if (this.$store.state.bbox.selectedBrandIndex !== null) { + this.$store.commit('addSelectedBrandToBox', box_id); + } + }, + + /** + * Normal or active class + */ + boxClass: function boxClass(bool) { + return bool ? 'is-box is-active' : 'is-box'; + }, + + /** + * Todo - Duplicate a box + tags + * + * Bug: position should be relative to the image container. + * It is duplicating relative to previous box + * + * Position starts (0,0) + */ + duplicate: function duplicate(id) { + this.$store.commit('duplicateBox', id); + }, + + /** + * Categories from the tags object the user has created + */ + getCategories: function getCategories(keys) { + var categories = []; + Object.entries(keys).map(function (entries) { + if (Object.keys(entries[1]).length > 0) { + categories.push({ + category: entries[0], + tags: entries[1] + }); + } + }); + return categories; + }, + + /** + * Return translated value for category key + */ + getCategory: function getCategory(category) { + return this.$i18n.t('litter.categories.' + category); + }, + + /** + * Return translated text for box.category, box.tag. Quantity => 1 + */ + getTags: function getTags(category, tag) { + return this.$i18n.t('litter.' + category + '.' + tag) + ': 1'; + }, + + /** + * Hide non-active boxes or show all + */ + hideInactive: function hideInactive() { + this.$store.commit('toggleHiddenBoxes'); + }, + + /** + * Remove tag from this category + * If all tags have been removed, delete the category + * + * If Admin, we want to reset the tag.quantity to 0 instead of deleting it + * This is used to pick up the change on the backend + */ + removeTag: function removeTag(category, tag_key) { + this.$store.commit('removeBboxTag', { + category: category, + tag_key: tag_key + }); + }, + + /** + * Temp - rotate the box + */ + rotate: function rotate(box_id) { + this.$store.commit('rotateBox', box_id); + }, + + /** + * Show all the boxes + */ + showAll: function showAll() { + this.$store.commit('showAllBoxes'); + }, + + /** + * Switch between box.id and box.category + */ + toggleLabel: function toggleLabel(box_id) { + this.$store.commit('toggleBoxLabel', box_id); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Charts/Radar.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Charts/Radar.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var vue_chartjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-chartjs */ "./node_modules/vue-chartjs/es/index.js"); +/* harmony import */ var _extra_categories__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../extra/categories */ "./resources/js/extra/categories.js"); + + +/* harmony default export */ __webpack_exports__["default"] = ({ + "extends": vue_chartjs__WEBPACK_IMPORTED_MODULE_0__["Radar"], + name: 'Radar', + props: ['categories'], + mounted: function mounted() { + var _this = this; + + var labels = []; //temp fix - we need to add art and dogshit + + _extra_categories__WEBPACK_IMPORTED_MODULE_1__["categories"].filter(function (category) { + return category !== 'art' && category !== 'dogshit'; + }).map(function (category) { + labels.push(_this.$t('litter.categories.' + category)); + }); + this.renderChart({ + labels: labels, + datasets: [{ + label: this.$t('profile.dashboard.total-categories'), + backgroundColor: '#1DD3B0', + data: this.categories, + fill: true, + borderColor: '#1DD3B0', + maxBarThickness: '10' + }] + }, { + // options + responsive: true, + maintainAspectRatio: false, + legend: { + labels: { + fontColor: '#1DD3B0' + } + }, + scale: { + pointLabels: { + fontColor: 'white' + } + }, + tooltips: { + callbacks: { + title: function title(tooltipItem, data) { + return data.labels[tooltipItem[0].index]; + } + } + } + }); + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Charts/TimeSeriesLine.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Charts/TimeSeriesLine.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var vue_chartjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-chartjs */ "./node_modules/vue-chartjs/es/index.js"); + +/* harmony default export */ __webpack_exports__["default"] = ({ + "extends": vue_chartjs__WEBPACK_IMPORTED_MODULE_0__["Line"], + name: 'TimeSeriesLine', + props: ['ppm'], + data: function data() { + return { + months: this.$t('common.short-month-names') //['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] + + }; + }, + mounted: function mounted() { + // Convert string into array + var arr = JSON.parse(this.ppm); + var dates = []; + var values = []; // convert label month to text + // todo - translate this.months + + for (var k in arr) { + dates.push(this.months[parseInt(k.substring(0, 2)) - 1] + k.substring(2, 5)); + values.push(arr[k]); + } + + this.renderChart({ + labels: dates, + datasets: [{ + label: this.$t('profile.dashboard.timeseries-verified-photos'), + backgroundColor: '#1DD3B0', + data: values, + fill: false, + borderColor: '#1DD3B0', + maxBarThickness: '50' + }] + }, { + // options + responsive: true, + maintainAspectRatio: false, + legend: { + labels: { + fontColor: '#1DD3B0' + } + }, + scales: { + xAxes: [{ + gridLines: { + color: "rgba(255,255,255,0.5)", + display: true, + drawBorder: true, + drawOnChartArea: false + }, + ticks: { + fontColor: '#1DD3B0' + } + }], + yAxes: [{ + gridLines: { + color: "rgba(255,255,255,0.5)", + display: true, + drawBorder: true, + drawOnChartArea: false + }, + ticks: { + fontColor: '#1DD3B0' + } + }] + } + }); + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/CreateAccount.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/CreateAccount.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_recaptcha__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-recaptcha */ "./node_modules/vue-recaptcha/dist/vue-recaptcha.es.js"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'CreateAccount', + props: ['plan'], + components: { + VueRecaptcha: vue_recaptcha__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + created: function created() { + if (this.plan) { + if (this.plan === 'startup') this.planInt = 2;else if (this.plan === 'basic') this.planInt = 3;else if (this.plan === 'advanced') this.planInt = 4;else if (this.plan === 'pro') this.planInt = 5; + } + }, + data: function data() { + return { + btn: 'button is-medium is-primary mb1', + planInt: 1, + processing: false, + // REGISTRATION + name: '', + username: '', + email: '', + password: '', + checkbox: false, + password_confirmation: '', + g_recaptcha_response: '' + }; + }, + computed: { + /** + * Add spinner when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * Return true to disable the button + */ + checkDisabled: function checkDisabled() { + if (this.processing) return true; // todo - disable the button when there are errors + // and disable it when all errors have been cleared + // if (Object.keys(this.errors).length > 0) return true; + + return false; + }, + + /** + * Key to return for google-recaptcha + * @olmbulma.test (old) 6Lfd4HMUAAAAAMZBVUIpBJI7OfwtPcbqR6kGndSE + * @olm.test (new) 6LcvHsIZAAAAAOG0q9-1vY3uWqu0iFvUC3tCNhID + * @production 6LciihwUAAAAADsZr0CYUoLPSMOIiwKvORj8AD9m // todo - put this on .env + */ + computedKey: function computedKey() { + if (true) { + return "6LcvHsIZAAAAAOG0q9-1vY3uWqu0iFvUC3tCNhID"; // olm.test + } + + return "6LciihwUAAAAADsZr0CYUoLPSMOIiwKvORj8AD9m"; // production + }, + + /** + * Errors object from plans + */ + errors: function errors() { + return this.$store.state.plans.errors; + }, + + /** + * Array of plans from the database + */ + plans: function plans() { + return this.$store.state.plans.plans; + } + }, + methods: { + /** + * Clear an error with this key + */ + clearError: function clearError(key) { + if (this.errors[key]) this.$store.commit('clearCreateAccountError', key); + }, + + /** + * Update query string in the url bar + */ + changeUrl: function changeUrl(e) { + var plan = this.plans[e.target.value - 1].name.toLowerCase(); + this.$router.push({ + path: 'join', + query: { + plan: plan + } + }); + }, + + /** + * Get the first error from errors object + */ + getFirstError: function getFirstError(key) { + return this.errors[key][0]; + }, + + /** + * Check if any errors exist for this key + */ + errorExists: function errorExists(key) { + return this.errors.hasOwnProperty(key); + }, + + /** + * Google re-captcha has been verified + */ + recaptcha: function recaptcha(response) { + this.g_recaptcha_response = response; + }, + showStripe: function showStripe() { + this.$store.commit('showModal', { + type: 'CreditCard' + }); + }, + + /** + * Post request to sign a user up + * Load stripe if a plan is selected + */ + submit: function submit() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + var plan_id; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (_this.checkbox) { + _context.next = 3; + break; + } + + alert('Please accept the terms and conditions, and privacy policy to continue'); + return _context.abrupt("return"); + + case 3: + _this.processing = true; + plan_id = _this.plans[_this.planInt - 1].plan_id; + _context.next = 7; + return _this.$store.dispatch('CREATE_ACCOUNT', { + name: _this.name, + username: _this.username, + email: _this.email, + password: _this.password, + password_confirmation: _this.password_confirmation, + recaptcha: _this.g_recaptcha_response, + plan: _this.planInt, + plan_id: plan_id + }); + + case 7: + _this.name = ''; + _this.username = ''; + _this.email = ''; + _this.password = ''; + _this.processing = false; + + case 12: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/DonateButtons.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/DonateButtons.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'DonateButtons', + components: { + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default.a + }, + data: function data() { + return { + stripeEmail: '', + stripeToken: '', + amount: '', + loading: true + }; + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + _context.next = 3; + return _this.$store.dispatch('GET_DONATION_AMOUNTS'); + + case 3: + _this.$emit('donations-loaded'); + + _this.loading = false; + + case 5: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + computed: { + /** + * The options to donate in cents (500 = €5) + */ + amounts: function amounts() { + return this.$store.state.donate.amounts; + } + }, + methods: { + /** + * + */ + donate: function donate(price) { + var _this2 = this; + + this.amount = this.prices[price] * 100; + this.stripe = StripeCheckout.configure({ + key: OLM.stripeKey, + image: "https://stripe.com/img/documentation/checkout/marketplace.png", + locale: "auto", + panelLabel: "One-time Donation", + // email: this.email, + token: function token(_token) { + // use the arrow ES15 syntax to make this local + // input the token id into the form for submission + _this2.stripeToken = _token.id, _this2.stripeEmail = _token.email; + axios.post('/donate', _this2.$data).then(function (response) { + alert('Congratulations! Your payment was successful. Thanks!'); + })["catch"](function (error) { + alert('Sorry, there was an error processing your card! You have not been charged. Please try again'); + }); + } + }); + this.stripe.open({ + name: '€' + this.prices[price], + description: 'OpenLitterMap', + zipCode: false, + amount: this.prices[price] * 100 + }); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/General/Nav.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/General/Nav.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _global_Languages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../global/Languages */ "./resources/js/components/global/Languages.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Nav', + components: { + Languages: _global_Languages__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + data: function data() { + return { + open: false + }; + }, + computed: { + /** + * Return true if the user is logged in + */ + auth: function auth() { + return this.$store.state.user.auth; + }, + + /** + * + */ + burger: function burger() { + return this.open ? 'navbar-burger burger is-active' : 'navbar-burger burger'; + }, + + /** + * Some users are able to add bounding boxes to images + */ + can_bbox: function can_bbox() { + return this.$store.state.user.user.can_bbox; + }, + + /** + * + */ + nav: function nav() { + return this.open ? 'navbar-menu is-active' : 'navbar-menu'; + } + }, + methods: { + /** + * Mobile - Close the nav + */ + close: function close() { + this.open = false; + }, + + /** + * Show modal to log the user in + */ + login: function login() { + this.$store.commit('showModal', { + type: 'Login', + title: 'Login', + action: 'LOGIN' + }); + }, + + /** + * Log the user out + */ + logout: function logout() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this.$store.dispatch('LOGOUT'); + + case 2: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + + /** + * Mobile - toggle the nav + */ + toggleOpen: function toggleOpen() { + this.open = !this.open; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/GlobalLeaders.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/GlobalLeaders.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'GlobalLeaders', + data: function data() { + return { + dir: '/assets/icons/flags/', + positions: ['1st', '2nd', '3rd', '4th', '5th', '6th', '7th', '8th', '9th', '10th'] + }; + }, + computed: { + /** + * Top-10 leaderboard + */ + leaders: function leaders() { + return this.$store.state.locations.globalLeaders; + } + }, + methods: { + /** + * Show flag for a leader if they have country set + */ + getCountryFlag: function getCountryFlag(country) { + if (country) { + country = country.toLowerCase(); + return this.dir + country + '.png'; + } + + return ''; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Litter/AddTags.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Litter/AddTags.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _Tags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Tags */ "./resources/js/components/Litter/Tags.vue"); +/* harmony import */ var _Presence__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Presence */ "./resources/js/components/Litter/Presence.vue"); +/* harmony import */ var _ProfileDelete__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ProfileDelete */ "./resources/js/components/Litter/ProfileDelete.vue"); +/* harmony import */ var vue_simple_suggest__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-simple-suggest */ "./node_modules/vue-simple-suggest/dist/es6.js"); +/* harmony import */ var vue_simple_suggest_dist_styles_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue-simple-suggest/dist/styles.css */ "./node_modules/vue-simple-suggest/dist/styles.css"); +/* harmony import */ var vue_simple_suggest_dist_styles_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue_simple_suggest_dist_styles_css__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _extra_categories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../extra/categories */ "./resources/js/extra/categories.js"); +/* harmony import */ var _extra_litterkeys__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../extra/litterkeys */ "./resources/js/extra/litterkeys.js"); +/* harmony import */ var vue_click_outside__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vue-click-outside */ "./node_modules/vue-click-outside/index.js"); +/* harmony import */ var vue_click_outside__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vue_click_outside__WEBPACK_IMPORTED_MODULE_8__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } + +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } + +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } + +function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } + +function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } + +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + + + + + // When this.id === 0, we are using MyPhotos && AddManyTagsToManyPhotos + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'AddTags', + components: { + Tags: _Tags__WEBPACK_IMPORTED_MODULE_1__["default"], + Presence: _Presence__WEBPACK_IMPORTED_MODULE_2__["default"], + ProfileDelete: _ProfileDelete__WEBPACK_IMPORTED_MODULE_3__["default"], + VueSimpleSuggest: vue_simple_suggest__WEBPACK_IMPORTED_MODULE_4__["default"] + }, + directives: { + ClickOutside: vue_click_outside__WEBPACK_IMPORTED_MODULE_8___default.a + }, + props: { + 'id': { + type: Number, + required: true + }, + 'admin': Boolean, + 'annotations': { + type: Boolean, + required: false + }, + 'isVerifying': { + type: Boolean, + required: false + } + }, + created: function created() { + var _this = this; + + if (this.$localStorage.get('recentTags')) { + this.$store.commit('initRecentTags', JSON.parse(this.$localStorage.get('recentTags'))); + } // If the user hits Ctrl + Spacebar, search all tags + + + window.addEventListener('keydown', function (e) { + if (e.ctrlKey && e.key.toLowerCase() === ' ') { + _this.$refs.search.input.focus(); + + e.preventDefault(); + } + }); + this.$nextTick(function () { + this.$refs.search.input.focus(); + }); + }, + data: function data() { + return { + btn: 'button is-medium is-success', + quantity: 1, + processing: false, + integers: Array.from({ + length: 100 + }, function (_, i) { + return i + 1; + }), + autoCompleteStyle: { + vueSimpleSuggest: 'position-relative', + inputWrapper: '', + defaultInput: 'input', + suggestions: 'position-absolute list-group search-fixed-height', + suggestItem: 'list-group-item' + } + }; + }, + computed: { + /** + * Litter tags for all categories, used by the Search field + */ + allTags: function allTags() { + var _this2 = this; + + var results = []; + + _extra_categories__WEBPACK_IMPORTED_MODULE_6__["categories"].forEach(function (cat) { + if (_extra_litterkeys__WEBPACK_IMPORTED_MODULE_7__["litterkeys"].hasOwnProperty(cat)) { + results = [].concat(_toConsumableArray(results), _toConsumableArray(_extra_litterkeys__WEBPACK_IMPORTED_MODULE_7__["litterkeys"][cat].map(function (tag) { + return { + key: cat + ':' + tag, + title: _this2.$i18n.t('litter.categories.' + cat) + ': ' + _this2.$i18n.t("litter.".concat(cat, ".").concat(tag)) + }; + }))); + } + }); + + return results; + }, + + /** + * Show spinner when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * Get / Set the current category + * + * @value category (smoking) + */ + category: { + get: function get() { + return { + key: this.$store.state.litter.category, + title: this.$i18n.t('litter.categories.' + this.$store.state.litter.category) + }; + }, + set: function set(cat) { + if (cat) { + this.$store.commit('changeCategory', cat.key); + this.$store.commit('changeTag', _extra_litterkeys__WEBPACK_IMPORTED_MODULE_7__["litterkeys"][cat.key][0]); + this.quantity = 1; + } + } + }, + + /** + * Categories is imported and the key is used to return the translated title + */ + categories: function categories() { + var _this3 = this; + + return _extra_categories__WEBPACK_IMPORTED_MODULE_6__["categories"].map(function (cat) { + return { + key: cat, + title: _this3.$i18n.t('litter.categories.' + cat) + }; + }); + }, + + /** + * Disable decrement if true + */ + checkDecr: function checkDecr() { + return this.quantity === 1; + }, + + /** + * Disable increment if true + */ + checkIncr: function checkIncr() { + return this.quantity === 100; + }, + // /** + // * When adding tags to a bounding box, + // * + // * We should disable the addTag button if a box is not selected + // */ + // disabled () + // { + // if (! this.annotations) return false; + // + // let disable = true; + // + // this.$store.state.bbox.boxes.forEach(box => { + // if (box.active) disable = false; + // }); + // + // return disable; + // }, + + /** + * Disable button if true + */ + checkTags: function checkTags() { + if (this.processing) return true; + return Object.keys(this.$store.state.litter.tags[this.id] || {}).length === 0; + }, + + /** + * Has the litter been picked up, or is it still there? + */ + presence: function presence() { + return this.$store.state.litter.presence; + }, + + /** + * The most recent tags the user has applied + */ + recentTags: function recentTags() { + return this.$store.state.litter.recentTags; + }, + + /** + * Get / Set the current tag (category -> tag) + */ + tag: { + get: function get() { + return { + key: this.$store.state.litter.tag, + title: this.$i18n.t("litter.".concat(this.category.key, ".").concat(this.$store.state.litter.tag)) + }; + }, + set: function set(i) { + if (i) { + this.$store.commit('changeTag', i.key); + } + } + }, + + /** + * Litter tags for the selected category + */ + tags: function tags() { + var _this4 = this; + + return _extra_litterkeys__WEBPACK_IMPORTED_MODULE_7__["litterkeys"][this.category.key].map(function (tag) { + return { + key: tag, + title: _this4.$i18n.t("litter.".concat(_this4.category.key, ".").concat(tag)) + }; + }); + } + }, + methods: { + /** + * When a recent tag was applied, we update the category + tag + * + * Todo - Persist this to local browser cache with this.$localStorage.set('recentTags', keys) + * Todo - Click and hold recent tag to update this.category and this.tag + * Todo - Allow the user to pick their top tags in Settings and load them on this page by default + * (New - PopularTags, bottom-left) + */ + addRecentTag: function addRecentTag(category, tag) { + var quantity = 1; + + if (this.$store.state.litter.tags.hasOwnProperty(category)) { + if (this.$store.state.litter.tags[category].hasOwnProperty(tag)) { + quantity = this.$store.state.litter.tags[category][tag] + 1; + } + } + + this.$store.commit('addTag', { + photoId: this.id, + category: category, + tag: tag, + quantity: quantity + }); + }, + + /** + * Add or increment a tag + * + * Also used by Admin/BBox to add annotations to an image + * + * tags: { + * smoking: { + * butts: 1 + * } + * } + */ + addTag: function addTag() { + this.$store.commit('addTag', { + photoId: this.id, + category: this.category.key, + tag: this.tag.key, + quantity: this.quantity + }); + this.quantity = 1; + this.$store.commit('addRecentTag', { + category: this.category.key, + tag: this.tag.key + }); + this.$localStorage.set('recentTags', JSON.stringify(this.recentTags)); + }, + + /** + * When we click on the category input, the text is removed + * + * When we click outside, we reset it + */ + clickOutsideCategory: function clickOutsideCategory() { + this.$refs.categories.setText(this.$i18n.t("litter.categories.".concat(this.category.key))); + }, + + /** + * When we click on the category input, the text is removed + * + * When we click outside, we reset it + */ + clickOutsideTag: function clickOutsideTag() { + this.$refs.tags.setText(this.$i18n.t("litter.".concat(this.category.key, ".").concat(this.$store.state.litter.tag))); + }, + + /** + * Increment the quantity + */ + incr: function incr() { + this.quantity++; + }, + + /** + * Decrement the quantity + */ + decr: function decr() { + this.quantity--; + }, + + /** + * Return translated category name for recent tags + */ + getCategoryName: function getCategoryName(category) { + return this.$i18n.t("litter.categories.".concat(category)); + }, + + /** + * Return translated litter.key name for recent tags + */ + getTagName: function getTagName(category, tag) { + return this.$i18n.t("litter.".concat(category, ".").concat(tag)); + }, + + /** + * Clear the input field to allow the user to begin typing + */ + onFocusSearch: function onFocusSearch() { + this.$refs.search.setText(''); + }, + + /** + * The input field has been selected. + * Show all suggestions, not just those limited by text. + * + * Clear the input field to allow the user to begin typing + */ + onFocusCategories: function onFocusCategories() { + this.$refs.categories.suggestions = this.$refs.categories.list; + this.$refs.categories.setText(''); + }, + + /** + * The input field has been selected. + * Show all suggestions, not just those limited by text. + * + * Clear the input field to allow the user to begin typing + */ + onFocusTags: function onFocusTags() { + this.$refs.tags.suggestions = this.$refs.tags.list; + this.$refs.tags.setText(''); + }, + + /** + * Hacky solution. Waiting on fix. https://github.com/KazanExpress/vue-simple-suggest/issues/311 + * + * An item has been selected from the list. Blur the input focus. + */ + onSuggestion: function onSuggestion() { + this.$nextTick(function () { + Array.prototype.forEach.call(document.getElementsByClassName('input'), function (el) { + el.blur(); + }); + }); + }, + + /** + * + */ + search: function search(input) { + var searchValues = input.key.split(':'); + this.category = { + key: searchValues[0] + }; + this.tag = { + key: searchValues[1] + }; + this.addTag(); + this.$nextTick(function () { + this.onFocusSearch(); + }); + }, + + /** + * Submit the image for verification + * + * add_tags_to_image => users + * add_boxes_to_image => admins + * verify_boxes => admins + * + * litter/actions.js + */ + submit: function submit() { + var _this5 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + var action; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this5.processing = true; + action = ''; + + if (_this5.annotations) { + action = _this5.isVerifying ? 'VERIFY_BOXES' : 'ADD_BOXES_TO_IMAGE'; + } else { + action = 'ADD_TAGS_TO_IMAGE'; + } + + _context.next = 5; + return _this5.$store.dispatch(action); + + case 5: + _this5.processing = false; + + case 6: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Litter/Presence.vue?vue&type=script&lang=js&": +/*!**************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Litter/Presence.vue?vue&type=script&lang=js& ***! + \**************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Presence', + computed: { + /** + * Change setting name to "picked_up" + */ + remaining: function remaining() { + return this.$store.state.litter.presence; + }, + + /** + * + */ + remainingText: function remainingText() { + return this.$store.state.litter.presence ? this.$t('litter.presence.picked-up-text') : this.$t('litter.presence.still-there-text'); + }, + + /** + * Class to show if litter is still there, or picked up + */ + toggle_class: function toggle_class() { + return this.remaining ? 'button is-danger' : 'button is-success'; + } + }, + methods: { + /** + * Toggle the presense of the litter + */ + toggle: function toggle() { + this.$store.commit('togglePresence'); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Litter/ProfileDelete.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Litter/ProfileDelete.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + props: ['photoid'], + methods: { + /** + * Todo - make this work + */ + confirmDelete: function confirmDelete() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!confirm("Do you want to delete this image? This cannot be undone.")) { + _context.next = 5; + break; + } + + _context.next = 3; + return axios.post('/profile/photos/delete', { + photoid: _this.photoid + }).then(function (response) { + console.log(response); + + if (response.status === 200) { + window.location.href = window.location.href; + } + })["catch"](function (error) { + console.log(error); + }); + + case 3: + _context.next = 6; + break; + + case 5: + console.log("Not deleted"); + + case 6: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Litter/Tags.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Litter/Tags.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/*** Tags (previously AddedItems) is quite similar to AdminItems except here we remove the tag, on AdminItems we reset the tag.*/ +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Tags', + props: ['admin', 'photoId'], + // bool + computed: { + /** + * Categories from the tags object the user has created + */ + categories: function categories() { + var categories = []; + Object.entries(this.$store.state.litter.tags[this.photoId] || {}).map(function (entries) { + if (Object.keys(entries[1]).length > 0) { + categories.push({ + category: entries[0], + tags: entries[1] + }); + } + }); + return categories; + } + }, + methods: { + /** + * Return translated value for category key + */ + getCategory: function getCategory(category) { + return this.$i18n.t('litter.categories.' + category); + }, + + /** + * Return Translated key: value from tags[0]: tags[1] + */ + getTags: function getTags(tags, category) { + return this.$i18n.t('litter.' + category + '.' + tags[0]) + ': ' + tags[1] + '
    '; + }, + + /** + * Remove tag from this category + * If all tags have been removed, delete the category + * + * If Admin, we want to reset the tag.quantity to 0 instead of deleting it + * This is used to pick up the change on the backend + */ + removeTag: function removeTag(category, tag_key) { + var commit = ''; + if (this.admin) commit = 'resetTag';else commit = 'removeTag'; + this.$store.commit(commit, { + photoId: this.photoId, + category: category, + tag_key: tag_key + }); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/LiveEvents.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/LiveEvents.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var laravel_echo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! laravel-echo */ "./node_modules/laravel-echo/dist/echo.js"); +/* harmony import */ var pusher_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! pusher-js */ "./node_modules/pusher-js/dist/web/pusher.js"); +/* harmony import */ var pusher_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(pusher_js__WEBPACK_IMPORTED_MODULE_1__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'live-events', + channel: 'main', + echo: { + 'ImageUploaded': function ImageUploaded(payload, vm) { + document.title = "OpenLitterMap (" + (vm.events.length + 1) + ")"; + vm.events.unshift({ + type: 'image', + city: payload.city, + state: payload.state, + country: payload.country, + imageName: payload.imageName, + teamName: payload.teamName, + countryCode: payload.countryCode + }); + }, + 'NewCountryAdded': function NewCountryAdded(payload, vm) { + document.title = "OpenLitterMap (" + (vm.events.length + 1) + ")"; + vm.events.unshift({ + type: 'country', + country: payload.country, + countryId: payload.countryId + }); + }, + 'NewStateAdded': function NewStateAdded(payload, vm) { + document.title = "OpenLitterMap (" + (vm.events.length + 1) + ")"; + vm.events.unshift({ + type: 'state', + state: payload.state, + stateId: payload.stateId + }); + }, + 'NewCityAdded': function NewCityAdded(payload, vm) { + document.title = "OpenLitterMap (" + (vm.events.length + 1) + ")"; + vm.events.unshift({ + type: 'city', + city: payload.city, + cityId: payload.cityId + }); + }, + 'UserSignedUp': function UserSignedUp(payload, vm) { + document.title = "OpenLitterMap (" + (vm.events.length + 1) + ")"; + vm.events.unshift({ + type: 'new-user', + now: payload.now + }); + }, + 'TeamCreated': function TeamCreated(payload, vm) { + document.title = "OpenLitterMap (" + (vm.events.length + 1) + ")"; + vm.events.unshift({ + type: 'team-created', + name: payload.name + }); + }, + '.App\\Events\\Littercoin\\LittercoinMined': function AppEventsLittercoinLittercoinMined(payload, vm) { + document.title = "OpenLitterMap (" + (vm.events.length + 1) + ")"; + vm.events.unshift({ + type: 'littercoin-mined', + reason: payload.reason, + userId: payload.userId + }); + } + }, + data: function data() { + return { + dir: '/assets/icons/flags/', + events: [] + }; + }, + methods: { + /** + * Return location of country_flag.png + */ + countryFlag: function countryFlag(iso) { + if (iso) { + iso = iso.toLowerCase(); + return this.dir + iso + '.png'; + } + + return ''; + }, + + /** + * Return a unique key for each event + */ + getKey: function getKey(event) { + if (event.type === 'image') return event.type + event.imageName;else if (event.type === 'country') return event.type + event.countryId;else if (event.type === 'state') return event.type + event.stateId;else if (event.type === 'city') return event.type + event.cityId;else if (event.type === 'new-user') return event.type + event.now;else if (event.type === 'team-created') return event.type + event.name;else if (event.type === 'littercoin-mined') return event.type + event.userId + event.now; + return this.events.length; + }, + + /** + * Using the LittercoinMined event key, + * + * Todo - return translated string + */ + getLittercoinReason: function getLittercoinReason(reason) { + if (reason === 'verified-box') { + return '100 OpenLitterAI boxes verified'; + } else if (reason === '100-images-verified') { + return '100 images verified'; + } + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/Charts/Download/Download.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/Charts/Download/Download.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Download', + props: ['locationType', 'locationId'], + // country, state or city + data: function data() { + return { + email: '', + emailEntered: false + }; + }, + methods: { + /** + * Download request + * + * Todo - Add translation strings + * Todo - Send csv file to email address and dispatch download event via horizon + * Todo - add filters to download options + * Todo - open up more options for downloads (geojson, shapefile, etc) + */ + download: function download() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this.$store.dispatch('DOWNLOAD_DATA', { + locationType: _this.locationType, + locationId: _this.locationId, + email: _this.email + }); + + case 2: + // Clean email input field after requesting download + _this.email = ''; + _this.emailEntered = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + textEntered: function textEntered() { + var regexEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; + this.emailEntered = !!this.email.match(regexEmail); + } + }, + computed: { + isAuth: function isAuth() { + return this.$store.state.user.auth; + }, + disableDownloadButton: function disableDownloadButton() { + if (this.isAuth) { + return false; + } else { + return !this.emailEntered; + } + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/Charts/Leaderboard/Leaderboard.vue?vue&type=script&lang=js&": +/*!***************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/Charts/Leaderboard/Leaderboard.vue?vue&type=script&lang=js& ***! + \***************************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Leaderboard', + props: ['leaderboard'], + mounted: function mounted() { + var arr = JSON.parse(this.leaderboard); + var positions = ['1st', '2nd', '3rd', '4th', '5th', '6th', '7th', '8th', '9th', '10th']; + + for (var i = 0; i < Object.keys(arr).length; i++) { + arr[i]['position'] = positions[i]; + } + + ; + this.leaders = arr; + }, + data: function data() { + return { + leaders: [] + }; + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/Charts/Options/Options.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/Charts/Options/Options.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var vue_slider_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-slider-component */ "./node_modules/vue-slider-component/dist/vue-slider-component.umd.min.js"); +/* harmony import */ var vue_slider_component__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_slider_component__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-slider-component/theme/default.css */ "./node_modules/vue-slider-component/theme/default.css"); +/* harmony import */ var vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_1__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Options', + components: { + vueSlider: vue_slider_component__WEBPACK_IMPORTED_MODULE_0___default.a + }, + props: ['time', 'index'], + mounted: function mounted() { + var time = JSON.parse(this.time); + this.dates = Object.keys(time); + this.min = this.dates[0]; + this.max = this.dates[this.dates.length - 1]; + }, + data: function data() { + return { + dates: [], + min: '', + max: '', + hexValue: 100 + }; + }, + computed: { + /** + * Not sure if we need this anymore + */ + getSliderId: function getSliderId() { + return 'slider_' + this.index; + } + }, + methods: { + /** + * When a slider moves, update the min-date, max-date and hex size + */ + update: function update() { + var dates = this.$refs.dates.getValue(); + var hex = this.$refs.hex.getValue(); + this.$store.commit('updateCitySlider', { + dates: dates, + hex: hex, + index: this.index + }); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/Charts/PieCharts/BrandsChart.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/Charts/PieCharts/BrandsChart.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var vue_chartjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-chartjs */ "./node_modules/vue-chartjs/es/index.js"); + +/* harmony default export */ __webpack_exports__["default"] = ({ + "extends": vue_chartjs__WEBPACK_IMPORTED_MODULE_0__["Doughnut"], + name: 'BrandsChart', + props: ['brands'], + data: function data() { + return { + myArray: [], + top10keys: [], + top10values: [] + }; + }, + mounted: function mounted() { + var _this = this; + + // Step 1 - Map object to array + Object.keys(this.brands).map(function (key, index) { + if (_this.brands[key]) { + _this.myArray.push({ + key: key, + value: _this.brands[key] + }); + } + }); // Step 2 - Sort Array ( todo - stop at 10 ) + + this.myArray.sort(function (a, b) { + return b.value - a.value; + }); + + for (var x in this.myArray) { + if (x < 9) { + if (this.myArray[x].value > 0) { + this.top10keys.push(this.myArray[x]["key"]); + this.top10values.push(this.myArray[x]["value"]); + } + } + } // Overwriting base render method with actual data. + + + this.renderChart({ + labels: this.top10keys, + datasets: [{ + label: 'Collected', + backgroundColor: this.myComputedBackgrounds, + data: this.top10values + }] + }, { + responsive: false, + maintainAspectRatio: true, + legend: { + labels: { + fontColor: '#ffffff' + } + } // tooltips: { + // mode: 'single', // this is the Chart.js default, no need to set + // callbacks: { + // label: function (tooltipItems, percentArray) { + // console.log(tooltipItems), + // console.log(percentArray) + // } + // } + // }, + + }); + }, + computed: { + /** + * Refactor this. + */ + myComputedBackgrounds: function myComputedBackgrounds() { + if (this.top10keys.length == 0) return ['#C28535']; + if (this.top10keys.length == 1) return ['#C28535', '#8AAE56']; + if (this.top10keys.length == 2) return ['#C28535', '#8AAE56', '#B66C46']; + if (this.top10keys.length == 3) return ['#C28535', '#8AAE56', '#B66C46', '#EAE741']; + if (this.top10keys.length == 4) return ['#C28535', '#8AAE56', '#B66C46', '#EAE741', '#FF0000']; + if (this.top10keys.length == 5) return ['#C28535', '#8AAE56', '#B66C46', '#EAE741', '#FF0000', '#BFE5A6']; + if (this.top10keys.length == 6) return ['#C28535', '#8AAE56', '#B66C46', '#EAE741', '#FF0000', '#BFE5A6', '#FFFFFF']; + if (this.top10keys.length == 7) return ['#C28535', '#8AAE56', '#B66C46', '#EAE741', '#FF0000', '#BFE5A6', '#FFFFFF', '#BF00FE']; + if (this.top10keys.length == 8) return ['#C28535', '#8AAE56', '#B66C46', '#EAE741', '#FF0000', '#BFE5A6', '#FFFFFF', '#BF00FE', '#ccc']; + if (this.top10keys.length == 9) return ['#C28535', '#8AAE56', '#B66C46', '#EAE741', '#FF0000', '#BFE5A6', '#FFFFFF', '#BF00FE', '#000000']; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/Charts/PieCharts/ChartsContainer.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/Charts/PieCharts/ChartsContainer.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _LitterChart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LitterChart */ "./resources/js/components/Locations/Charts/PieCharts/LitterChart.vue"); +/* harmony import */ var _BrandsChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BrandsChart */ "./resources/js/components/Locations/Charts/PieCharts/BrandsChart.vue"); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ChartsContainer', + components: { + LitterChart: _LitterChart__WEBPACK_IMPORTED_MODULE_0__["default"], + BrandsChart: _BrandsChart__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + props: ['litter_data', 'brands_data', 'total_brands'] +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/Charts/PieCharts/LitterChart.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/Charts/PieCharts/LitterChart.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var vue_chartjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-chartjs */ "./node_modules/vue-chartjs/es/index.js"); + +/* harmony default export */ __webpack_exports__["default"] = ({ + "extends": vue_chartjs__WEBPACK_IMPORTED_MODULE_0__["Doughnut"], + name: 'LitterChart', + props: ['litter'], + data: function data() { + return { + litterData: [], + litterValues: [], + colors: ['#C28535', '#8AAE56', '#B66C46', '#EAE741', '#BFE5A6', '#FFFFFF', '#BF00FE', '#add8e6'] + }; + }, + mounted: function mounted() { + var _this = this; + + Object.keys(this.litter).map(function (key) { + // if value exists, then push + if (_this.litter[key]) { + _this.litterData.push(key); + + _this.litterValues.push(_this.litter[key]); + } + }); + this.renderChart({ + labels: this.litterData, + datasets: [{ + label: 'Collected', + backgroundColor: this.litterValues.map(function (key, index) { + return _this.colors[index]; + }), + data: this.litterValues + }] + }, // options + { + responsive: true, + maintainAspectRatio: true, + legend: { + labels: { + fontColor: '#ffffff' + } + } // tooltips: { + // mode: 'single', // this is the Chart.js default, no need to set + // callbacks: { + // label: function (tooltipItems, percentArray) { + // console.log(tooltipItems), + // console.log(percentArray) + // } + // } + // }, + + }); + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/Charts/TimeSeries/TimeSeries.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/Charts/TimeSeries/TimeSeries.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var vue_chartjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-chartjs */ "./node_modules/vue-chartjs/es/index.js"); + +/* harmony default export */ __webpack_exports__["default"] = ({ + "extends": vue_chartjs__WEBPACK_IMPORTED_MODULE_0__["Bar"], + name: 'TimeSeries', + props: ['ppm'], + data: function data() { + return { + months: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] + }; + }, + mounted: function mounted() { + // Convert string into array + var arr = JSON.parse(this.ppm); + var dates = []; + var values = []; // convert label month to text + // todo - translate this.months + + for (var k in arr) { + dates.push(this.months[parseInt(k.substring(0, 2)) - 1] + k.substring(2, 5)); + values.push(arr[k]); + } + + this.renderChart({ + labels: dates, + datasets: [{ + label: 'Verified Photos', + backgroundColor: '#FF0000', + data: values, + fill: false, + borderColor: 'red', + maxBarThickness: '50' + }] + }, { + // options + responsive: true, + maintainAspectRatio: false, + legend: { + labels: { + fontColor: '#000000' + } + }, + scales: { + xAxes: [{ + gridLines: { + color: "rgba(255,255,255,0.5)", + display: true, + drawBorder: true, + drawOnChartArea: false + }, + ticks: { + fontColor: '#000000' + } + }], + yAxes: [{ + gridLines: { + color: "rgba(255,255,255,0.5)", + display: true, + drawBorder: true, + drawOnChartArea: false + }, + ticks: { + fontColor: '#000000' + } + }] + } + }); + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/Charts/TimeSeries/TimeSeriesContainer.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/Charts/TimeSeries/TimeSeriesContainer.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _TimeSeries__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TimeSeries */ "./resources/js/components/Locations/Charts/TimeSeries/TimeSeries.vue"); +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + props: ['ppm'], + name: 'TimeSeriesContainer', + components: { + TimeSeries: _TimeSeries__WEBPACK_IMPORTED_MODULE_0__["default"] + }, + computed: { + /** + * This component has a different width depending on screen width + */ + checkWidth: function checkWidth() { + return window.screen.width > 1000 ? 600 : 300; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/GlobalMetaData.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/GlobalMetaData.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _components_GlobalLeaders__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../components/GlobalLeaders */ "./resources/js/components/GlobalLeaders.vue"); +/* harmony import */ var _components_ProgressBar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/ProgressBar */ "./resources/js/components/ProgressBar.vue"); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: "GlobalMetaData", + props: ['loading'], + components: { + GlobalLeaders: _components_GlobalLeaders__WEBPACK_IMPORTED_MODULE_0__["default"], + ProgressBar: _components_ProgressBar__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + channel: 'main', + echo: { + 'ImageUploaded': function ImageUploaded(payload, vm) { + if (payload.isUserVerified) { + vm.$store.commit('incrementTotalPhotos'); + } + }, + 'ImageDeleted': function ImageDeleted(payload, vm) { + if (payload.isUserVerified) { + vm.$store.commit('decrementTotalPhotos'); + } + }, + 'TagsVerifiedByAdmin': function TagsVerifiedByAdmin(payload, vm) { + vm.$store.commit('incrementTotalLitter', payload.total_litter_all_categories); // If the user is verified + // totalPhotos has been incremented during ImageUploaded + + if (!payload.isUserVerified) { + vm.$store.commit('incrementTotalPhotos'); + } + }, + 'TagsDeletedByAdmin': function TagsDeletedByAdmin(payload, vm) { + vm.$store.commit('decrementTotalLitter', payload.totalLitter); + } + }, + computed: { + /** + * Total littercoin owed to users for proof of citizen science + */ + littercoin: function littercoin() { + return this.$store.state.locations.littercoin; + }, + + /** + * The amount of XP we need to reach the next level + */ + nextXp: function nextXp() { + return this.$store.state.locations.level.nextXp; + }, + + /** + * The last littercoin the user has seen (saved in browser cache) + * + * Update to latest value once called + */ + previous_littercoin: function previous_littercoin() { + var littercoin = 0; + + if (this.$localStorage.get('littercoin_owed')) { + littercoin = this.$localStorage.get('littercoin_owed'); + } + + this.$localStorage.set('littercoin_owed', this.littercoin); + return littercoin; + }, + + /** + * The last total_litter the user has seen (saved in browser cache) + * Update to latest value once called + */ + previous_total_litter: function previous_total_litter() { + var prev_total = 0; + + if (this.$localStorage.get('total_litter')) { + prev_total = this.$localStorage.get('total_litter'); + } + + this.$localStorage.set('total_litter', this.total_litter); + return prev_total; + }, + + /** + * The last total_photos the user has seen (saved in browser cache) + * Update to latest value once called + */ + previous_total_photos: function previous_total_photos() { + var prev_photos = 0; + + if (this.$localStorage.get('total_photos')) { + prev_photos = this.$localStorage.get('total_photos'); + } + + this.$localStorage.set('total_photos', this.total_photos); + return prev_photos; + }, + + /** + * The amount of XP we achieved at the current level + */ + previousXp: function previousXp() { + return this.$store.state.locations.level.previousXp; + }, + + /** + * % between currentLevel and nextLevel + */ + progress: function progress() { + var range = this.nextXp - this.previousXp; + var startVal = this.total_litter - this.previousXp; + return (startVal * 100 / range).toFixed(2); // percentage + }, + + /** + * The total amount of verified litter all users have uploaded + */ + total_litter: function total_litter() { + return this.$store.state.locations.total_litter; + }, + + /** + * The total number of verified photos all users have uploaded + */ + total_photos: function total_photos() { + return this.$store.state.locations.total_photos; + } + }, + methods: { + /** + * Format number value + */ + commas: function commas(n) { + return parseInt(n).toLocaleString(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/LocationMetadata.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/LocationMetadata.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'LocationMetadata', + props: ['index', 'location', 'locationType', 'category'], + data: function data() { + return { + dir: '/assets/icons/flags/' + }; + }, + computed: { + /** + * Name of the country (if we are viewing States, Cities) + */ + country: function country() { + return this.$store.state.locations.country; + }, + + /** + * Name of the Country we are viewing the states of + */ + countryName: function countryName() { + return this.$store.state.locations.countryName; + }, + + /** + * Name of the State we are viewing the cities of + */ + stateName: function stateName() { + return this.$store.state.locations.stateName; + }, + + /** + * Name of the state (if we are viewing cities) + */ + state: function state() { + return this.$store.state.locations.state; + }, + + /** + * We have a smaller font-size when a flag is present + */ + textSize: function textSize() { + return this.category === 'A-Z' ? 'title is-1 flex-1 ma' : 'title is-3 flex-1 ma'; + } + }, + methods: { + /** + * On Countries.vue, each country gets a flag when sorted by most open data + */ + getCountryFlag: function getCountryFlag(iso) { + if (iso) { + iso = iso.toLowerCase(); + return this.dir + iso + '.png'; + } + }, + + /** + * When user clicks on a location name + * + * @param location Location + */ + getDataForLocation: function getDataForLocation(location) { + this.$store.commit('setLocations', []); + + if (this.locationType === 'country') { + // Get States for this Country + var countryName = location.country; + this.$store.commit('countryName', countryName); + this.$router.push({ + path: '/world/' + countryName + }); + } else if (this.locationType === 'state') { + // Get Cities for this State + Country + var _countryName = this.countryName; + var stateName = location.state; + this.$store.commit('stateName', stateName); + this.$router.push({ + path: '/world/' + _countryName + '/' + stateName + }); + } else if (this.locationType === 'city') { + var _countryName2 = this.countryName; + var _stateName = this.stateName; + var cityName = location.city; // if the object has "hex" key, the slider has updated + + if (location.hasOwnProperty('hex')) { + this.$router.push({ + path: '/world/' + _countryName2 + '/' + _stateName + '/' + cityName + '/map/' + }); // + location.minDate + '/' + location.maxDate + '/' + location.hex + } + + this.$router.push({ + path: '/world/' + _countryName2 + '/' + _stateName + '/' + cityName + '/map' + }); + } + }, + + /** + * Name of a location + */ + getLocationName: function getLocationName(location) { + return location[this.locationType]; + }, + + /** + * Get the number's ordinal from the position index + */ + positions: function positions(i) { + return moment__WEBPACK_IMPORTED_MODULE_0___default.a.localeData().ordinal(i + 1); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Locations/LocationNavBar.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Locations/LocationNavBar.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'LocationNavbar', + data: function data() { + return { + 'category': this.$t('location.most-data'), + 'catnames': ['A-Z', this.$t('location.most-data'), this.$t('location.most-data-person')] + }; + }, + methods: { + onChange: function onChange() { + this.$emit('selectedCategory', this.category); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Modal/Auth/Login.vue?vue&type=script&lang=js&": +/*!***************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Modal/Auth/Login.vue?vue&type=script&lang=js& ***! + \***************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Login', + data: function data() { + return { + email: '', + password: '', + processing: false, + btn: 'button is-medium is-primary' + }; + }, + computed: { + /** + * Add ' is-loading' when processing is true + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * Get errors from login (email) + */ + errorLogin: function errorLogin() { + return this.$store.state.user.errorLogin; + } + }, + methods: { + /** + * + */ + clearLoginError: function clearLoginError() { + this.$store.commit('errorLogin', ''); + }, + + /** + * Try to log the user in + */ + login: function login() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('LOGIN', { + email: _this.email, + password: _this.password + }); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + + /** + * Remove password errors + */ + clearPwError: function clearPwError() { + this.error = false; + this.errormessage = ''; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Modal/Modal.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Modal/Modal.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _Auth_Login__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Auth/Login */ "./resources/js/components/Modal/Auth/Login.vue"); +/* harmony import */ var _Payments_CreditCard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Payments/CreditCard */ "./resources/js/components/Modal/Payments/CreditCard.vue"); +/* harmony import */ var _Profile_MyPhotos__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Profile/MyPhotos */ "./resources/js/components/Modal/Profile/MyPhotos.vue"); +/* harmony import */ var _Photos_AddManyTagsToManyPhotos__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Photos/AddManyTagsToManyPhotos */ "./resources/js/components/Modal/Photos/AddManyTagsToManyPhotos.vue"); +/* harmony import */ var _Photos_ConfirmDeleteManyPhotos__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Photos/ConfirmDeleteManyPhotos */ "./resources/js/components/Modal/Photos/ConfirmDeleteManyPhotos.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* Auth */ + +/* Payments */ + + +/* Profile */ + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Modal', + components: { + Login: _Auth_Login__WEBPACK_IMPORTED_MODULE_1__["default"], + CreditCard: _Payments_CreditCard__WEBPACK_IMPORTED_MODULE_2__["default"], + MyPhotos: _Profile_MyPhotos__WEBPACK_IMPORTED_MODULE_3__["default"], + AddManyTagsToManyPhotos: _Photos_AddManyTagsToManyPhotos__WEBPACK_IMPORTED_MODULE_4__["default"], + ConfirmDeleteManyPhotos: _Photos_ConfirmDeleteManyPhotos__WEBPACK_IMPORTED_MODULE_5__["default"] + }, + mounted: function mounted() { + var _this = this; + + // Close modal with 'esc' key + document.addEventListener('keydown', function (e) { + if (e.keyCode === 27) { + _this.close(); + } + }); + }, + data: function data() { + return { + btn: 'button is-medium is-primary', + processing: false + }; + }, + computed: { + /** + * Show spinner when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * What container class to return + */ + container: function container() { + if (this.type === 'CreditCard') return 'transparent-container';else if (this.type === 'MyPhotos') return 'wide-modal-container'; + return 'modal-container'; + }, + + /** + * When selecting photos from the MyPhotos table, + * + * Show x / total + */ + getSelectedCount: function getSelectedCount() { + if (this.type === 'MyPhotos') { + return "".concat(this.$store.state.photos.selectedCount, " / ").concat(this.$store.state.photos.total); + } + + return ''; + }, + + /** + * The user can select data. + * + * Show selected / total + * + * Used by MyPhotos.vue + */ + hasSelected: function hasSelected() { + return this.type === 'MyPhotos' && this.$store.state.photos.selectedCount > 0; + }, + + /** + * What header class to show + */ + header: function header() { + if (this.type === 'CreditCard') return ''; + return 'modal-card-head'; + }, + + /** + * What inner-modal-container class to show + */ + inner_container: function inner_container() { + if (this.type === 'Login') return 'inner-login-container'; + return 'inner-modal-container'; + }, + + /** + * Return false to hide the X close icon + */ + showIcon: function showIcon() { + if (this.type === 'CreditCard') return false; + return true; + }, + + /** + * Get the title for the modal + */ + title: function title() { + return this.$store.state.modal.title; + }, + + /** + * Shortcut for modal.type + */ + type: function type() { + return this.$store.state.modal.type; + } + }, + methods: { + /** + * Action to dispatch when primary button is pressed + */ + action: function action() { + var _this2 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this2.processing = true; + _context.next = 3; + return _this2.$store.dispatch(_this2.$store.state.modal.action); + + case 3: + _this2.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + + /** + * Close the modal + */ + close: function close() { + this.$store.commit('hideModal'); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Modal/Payments/Card.vue?vue&type=script&lang=js&": +/*!******************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Modal/Payments/Card.vue?vue&type=script&lang=js& ***! + \******************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'CreditCard', + props: ['cardNumber', 'cardName', 'cardMonth', 'cardYear', 'cardCvv', 'isCardFlipped', 'focusElementStyle', 'currentCardBackground', 'getCardType', 'otherCardMask', 'amexCardMask'], + data: function data() { + return { + imgs: 'https://raw.githubusercontent.com/muhammederdem/credit-card-form/master/src/assets/images/' + }; + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Modal/Payments/CreditCard.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Modal/Payments/CreditCard.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Card */ "./resources/js/components/Modal/Payments/Card.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'CreditCard', + components: { + Card: _Card__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + data: function data() { + return { + btn: 'card-form__button button', + disabled: false, + processing: false, + currentCardBackground: Math.floor(Math.random() * 25 + 1), + // just for fun :D + cardName: "", + cardNumber: "", + cardMonth: "", + cardYear: "", + cardCvv: "", + minCardYear: new Date().getFullYear(), + amexCardMask: "#### ###### #####", + otherCardMask: "#### #### #### ####", + cardNumberTemp: "", + isCardFlipped: false, + focusElementStyle: null, + isInputFocused: false, + stripe: '', + elements: '', + card: '', + intentToken: '' + }; + }, + mounted: function mounted() { + /** Includes Stripe.js dynamically */ + this.includeStripe('js.stripe.com/v3/', function () { + this.configureStripe(); + }.bind(this)); + this.loadIntent(); + this.cardNumberTemp = this.otherCardMask; + document.getElementById("cardNumber").focus(); + }, + computed: { + /** + * Add ' is-loading' when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * Any errors from backend form validation + */ + errors: function errors() { + return this.$store.state.payments.errors; + }, + + /** + * + */ + generateCardNumberMask: function generateCardNumberMask() { + return this.getCardType === "amex" ? this.amexCardMask : this.otherCardMask; + }, + + /** + * Return card issuer depending on first few digits + */ + getCardType: function getCardType() { + var number = this.cardNumber; + var re = new RegExp("^4"); + if (number.match(re) != null) return "visa"; + re = new RegExp("^(34|37)"); + if (number.match(re) != null) return "amex"; + re = new RegExp("^5[1-5]"); + if (number.match(re) != null) return "mastercard"; + re = new RegExp("^6011"); + if (number.match(re) != null) return "discover"; + re = new RegExp('^9792'); + if (number.match(re) != null) return 'troy'; + return "visa"; // default type + }, + + /** + * + */ + minCardMonth: function minCardMonth() { + if (this.cardYear === this.minCardYear) return new Date().getMonth() + 1; + return 1; + } + }, + watch: { + /** + * + */ + cardYear: function cardYear() { + if (this.cardMonth < this.minCardMonth) { + this.cardMonth = ""; + } + } + }, + methods: { + /** + * + */ + blurInput: function blurInput() { + var vm = this; + setTimeout(function () { + if (!vm.isInputFocused) { + vm.focusElementStyle = null; + } + }, 300); + vm.isInputFocused = false; + }, + + /** + * Disable the submit button if errors exist + */ + checkForErrors: function checkForErrors() { + // Checking for (typeof this.errors.main == 'undefined') because we don't want to disable submit if card declined + // In case user wants to try the same card again + if (Object.keys(this.errors).length > 0 && typeof this.errors.main == 'undefined') this.disabled = true;else this.disabled = false; + }, + + /** + * Clear any errors + */ + clearErrors: function clearErrors(key) { + this.$store.commit('clearCustomerCenterErrors', key); + this.checkForErrors(); + }, + + /** + * Close the modal + */ + close: function close() { + this.$store.commit('hideModal'); + }, + + /** + * Configures Stripe by setting up the elements and + * creating the card element. + */ + configureStripe: function configureStripe() { + // stripe public key + this.stripe = Stripe("pk_live_4UlurKvAigejhIQ3t8wBbttC"); + this.elements = this.stripe.elements(); + this.card = this.elements.create('card'); // accepts 2nd arg for styles object https://stripe.com/docs/stripe-js#elements + + this.card.mount('#card-element'); + }, + + /** + * Check if any errors exist for this key + */ + errorsExist: function errorsExist(key) { + return this.errors.hasOwnProperty(key); + }, + + /** + * + */ + flipCard: function flipCard(status) { + if (this.getCardType !== "amex") this.isCardFlipped = status; + }, + + /** + * + */ + focusInput: function focusInput(e) { + this.isInputFocused = true; + var targetRef = e.target.dataset.ref; + var target = this.$refs[targetRef]; + this.focusElementStyle = { + width: "".concat(target.offsetWidth, "px"), + height: "".concat(target.offsetHeight, "px"), + transform: "translateX(".concat(target.offsetLeft, "px) translateY(").concat(target.offsetTop, "px)") + }; + }, + + /** + * Get specific errors for this error key + */ + getFirstError: function getFirstError(key) { + return this.errors[key][0]; + }, + + /** + * Boolean result for if a given key has an error + */ + hasError: function hasError(key) { + return typeof this.errors[key] !== 'undefined'; + }, + + /** + * Include stripe.js dynamically + */ + includeStripe: function includeStripe(URL, callback) { + var documentTag = document, + tag = 'script', + object = documentTag.createElement(tag), + scriptTag = documentTag.getElementsByTagName(tag)[0]; + object.src = '//' + URL; + + if (callback) { + object.addEventListener('load', function (e) { + callback(null, e); + }, false); + } + + scriptTag.parentNode.insertBefore(object, scriptTag); + }, + + /** + * Loads the payment intent key for the user to pay. + */ + loadIntent: function loadIntent() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return axios.get('/api/v1/user/setup-intent').then(function (response) { + _this.intentToken = response.data; + }); + + case 2: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + + /** + * The user wants to save these card details + */ + submit: function submit() { + var stripe = Stripe("pk_live_4UlurKvAigejhIQ3t8wBbttC"); + stripe.redirectToCheckout({ + lineItems: [{ + // Define the product and price in the Dashboard first, and use the price + // ID in your client-side code. + price: 'plan_E579ju4xamcU41', + quantity: 1 + }], + mode: 'subscription', + successUrl: 'https://www.example.com/success', + cancelUrl: 'https://www.example.com/cancel' + }); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Modal/Photos/AddManyTagsToManyPhotos.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Modal/Photos/AddManyTagsToManyPhotos.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _Litter_AddTags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Litter/AddTags */ "./resources/js/components/Litter/AddTags.vue"); +/* harmony import */ var _Litter_Tags__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Litter/Tags */ "./resources/js/components/Litter/Tags.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'AddManyTagsToManyPhotos', + components: { + AddTags: _Litter_AddTags__WEBPACK_IMPORTED_MODULE_1__["default"], + Tags: _Litter_Tags__WEBPACK_IMPORTED_MODULE_2__["default"] + }, + data: function data() { + return { + processing: false, + btn: 'button is-medium is-primary' + }; + }, + computed: { + /** + * Add spinner when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + } + }, + methods: { + /** + * Dispatch request + */ + submit: function submit() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('ADD_MANY_TAGS_TO_MANY_PHOTOS'); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Modal/Photos/ConfirmDeleteManyPhotos.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Modal/Photos/ConfirmDeleteManyPhotos.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ConfirmDeleteManyPhotos', + methods: { + confirm: function confirm() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this.$store.dispatch('DELETE_SELECTED_PHOTOS'); + + case 2: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Modal/Profile/MyPhotos.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Modal/Profile/MyPhotos.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _Profile_bottom_MyPhotos_FilterMyPhotos__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Profile/bottom/MyPhotos/FilterMyPhotos */ "./resources/js/components/Profile/bottom/MyPhotos/FilterMyPhotos.vue"); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'MyPhotos', + components: { + FilterMyPhotos: _Profile_bottom_MyPhotos_FilterMyPhotos__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + data: function data() { + return { + loading: true + }; + }, + computed: { + /** + * Class to show when calender is open + */ + calendar: function calendar() { + return this.showCalendar ? 'dropdown is-active mr1' : 'dropdown mr1'; + }, + + /** + * Shortcut to pagination object + */ + paginate: function paginate() { + return this.$store.state.photos.paginate; + }, + + /** + * Array of paginated photos + */ + photos: function photos() { + return this.paginate.data; + }, + + /** + * Number of photos that have been selected + */ + selectedCount: function selectedCount() { + return this.$store.state.photos.selectedCount; + } + }, + methods: { + /** + * Load a modal to add 1 or more tags to the selected photos + */ + addTags: function addTags() { + this.$store.commit('showModal', { + type: 'AddManyTagsToManyPhotos', + title: this.$t('common.add-many-tags') //'Add Many Tags' + + }); + }, + + /** + * Load a modal to confirm delete of the selected photos + */ + deletePhotos: function deletePhotos() { + this.$store.commit('showModal', { + type: 'ConfirmDeleteManyPhotos', + title: this.$t('common.confirm-delete') //'Confirm Delete' + + }); + }, + + /** + * Return formatted date + */ + getDate: function getDate(date) { + return moment__WEBPACK_IMPORTED_MODULE_0___default()(date).format('LL'); + }, + + /** + * Load the previous page of photos + */ + previous: function previous() { + this.$store.dispatch('PREVIOUS_PHOTOS_PAGE'); + }, + + /** + * Load the next page of photos + */ + next: function next() { + this.$store.dispatch('NEXT_PHOTOS_PAGE'); + }, + + /** + * A photo was was selected or de-selected + */ + select: function select(photo_id) { + this.$store.commit('togglePhotoSelected', photo_id); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Notifications/Unsubscribed.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Notifications/Unsubscribed.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Unsubscribed', + props: ['showUnsubscribed'], + // todo, this this. + methods: { + /** + * Delete the welcome div when a user verifies their email address + * + * todo - animate the close with a transition + */ + hide: function hide() { + this.showUnsubscribed = false; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Profile/bottom/MyPhotos/FilterMyPhotos.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile/bottom/MyPhotos/FilterMyPhotos.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_functional_calendar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-functional-calendar */ "./node_modules/vue-functional-calendar/index.js"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'FilterMyPhotos', + components: { + FunctionalCalendar: vue_functional_calendar__WEBPACK_IMPORTED_MODULE_1__["FunctionalCalendar"] + }, + data: function data() { + return { + periods: ['created_at', 'datetime'], + processing: false, + showCalendar: false // verifiedIndices: [ + // 0,1 + // ] + + }; + }, + computed: { + /** + * Class to show when calender is open + */ + calendar: function calendar() { + return this.showCalendar ? 'dropdown is-active mr1' : 'dropdown mr1'; + }, + + /** + * Shortcut to filters object + */ + filters: function filters() { + return this.$store.state.photos.filters; + }, + + /** + * Filter by calendar dates + */ + filter_by_calendar: { + get: function get() { + return this.filters.calendar; + }, + set: function set(v) { + this.$store.commit('filter_photos_calendar', { + min: v.dateRange.start, + max: v.dateRange.end + }); + if (v.dateRange.end) this.getPhotos(); + } + }, + + /** + * Filter photos by ID + */ + filter_by_id: { + get: function get() { + return this.filters.id; + }, + set: function set(v) { + this.$store.commit('filter_photos', { + key: 'id', + v: v + }); + } + }, + + /** + * + */ + getSelectAllText: function getSelectAllText() { + return this.selectAll ? this.$t('common.de-select-all') : this.$t('common.select-all'); + }, + + /** + * Filter the photos by created_at or datetime + * + * Created_at = when the photo was uploaded + * Datetime = when the photo was taken + */ + period: { + get: function get() { + return this.filters.period; + }, + set: function set(v) { + this.$store.commit('filter_photos', { + key: 'period', + v: v + }); + } + }, + + /** + * Toggle the selected-all checkbox, and all photo.selected values + */ + selectAll: { + get: function get() { + return this.$store.state.photos.selectAll; + }, + set: function set(v) { + this.$store.commit('selectAllPhotos', v); + } + }, + + /** + * Text to load calendar dropdown, + * + * Or if dates exist, show dates. + */ + showCalendarDates: function showCalendarDates() { + return this.filters.dateRange.start && this.filters.dateRange.end ? "".concat(this.filters.dateRange.start, " - ").concat(this.filters.dateRange.end) : this.$t('common.choose-dates'); + }, + + /** + * Animate the spinner when searching by id + */ + spinner: function spinner() { + return this.processing ? 'fa fa-refresh fa-spin' : 'fa fa-refresh'; + }, + + /** + * Stage of verification to filter photos by + */ + verifiedIndex: { + get: function get() { + return this.filters.verified; + }, + set: function set(v) { + this.$store.commit('filter_photos', { + key: 'verified', + v: v + }); + } + } + }, + methods: { + /** + * Return translated time period + */ + getPeriod: function getPeriod(period) { + if (!period) period = this.period; + return this.$t('teams.dashboard.times.' + period); + }, + + /** + * Return the users photos based on the current filters + */ + getPhotos: function getPhotos() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this.$store.dispatch('GET_USERS_FILTERED_PHOTOS'); + + case 2: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + + /** + * + */ + getVerifiedText: function getVerifiedText(i) { + return i === 0 ? this.$t('common.not-verified') : this.$t('common.verified'); + }, + + /** + * Filter photos by ID + */ + search: function search() { + var _this2 = this; + + this.processing = true; + if (this.timeout) clearTimeout(this.timeout); + this.timeout = setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return _this2.getPhotos(); + + case 2: + _this2.processing = false; + + case 3: + case "end": + return _context2.stop(); + } + } + }, _callee2); + })), 500); + }, + + /** + * + */ + toggleAll: function toggleAll() { + this.$store.commit('selectAllPhotos', this.selectAll); + }, + + /** + * Show or Hide the dropdown calendar + */ + toggleCalendar: function toggleCalendar() { + this.showCalendar = !this.showCalendar; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Profile/bottom/ProfileDownload.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile/bottom/ProfileDownload.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ProfileDownload', + data: function data() { + return { + btn: 'button is-medium is-purp', + processing: false + }; + }, + computed: { + /** + * Add spinner when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + } + }, + methods: { + /** + * Dispatch a request to download a users data + */ + download: function download() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('DOWNLOAD_MY_DATA'); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Profile/bottom/ProfilePhotos.vue?vue&type=script&lang=js&": +/*!***************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile/bottom/ProfilePhotos.vue?vue&type=script&lang=js& ***! + \***************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: "ProfilePhotos", + methods: { + /** + * Load a modal to view the users photos + */ + load: function load() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.$store.commit('resetPhotoState'); + + _context.next = 3; + return _this.$store.dispatch('LOAD_MY_PHOTOS'); + + case 3: + _this.$store.commit('showModal', { + type: 'MyPhotos', + title: _this.$t('profile.dashboard.my-photos') //'My Photos' + + }); + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Profile/bottom/ProfileTimeSeries.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile/bottom/ProfileTimeSeries.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Charts_TimeSeriesLine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Charts/TimeSeriesLine */ "./resources/js/components/Charts/TimeSeriesLine.vue"); +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ProfileTimeSeries', + components: { + TimeSeriesLine: _Charts_TimeSeriesLine__WEBPACK_IMPORTED_MODULE_0__["default"] + }, + computed: { + /** + * The users photos per month, as a string. Saved as metadata because CPU. + */ + ppm: function ppm() { + return this.$store.state.user.user.photos_per_month; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Profile/middle/ProfileCalendar.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile/middle/ProfileCalendar.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_functional_calendar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-functional-calendar */ "./node_modules/vue-functional-calendar/index.js"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ProfileCalendar', + components: { + FunctionalCalendar: vue_functional_calendar__WEBPACK_IMPORTED_MODULE_1__["FunctionalCalendar"] + }, + data: function data() { + return { + btn: 'button long-purp', + calendarData: {}, + period: 'created_at', + periods: ['created_at', 'datetime'] + }; + }, + computed: { + /** + * Add spinner when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * Return true to disable the button + */ + disabled: function disabled() { + if (this.processing) return true; + if (!this.calendarData.hasOwnProperty('dateRange')) return true; + if (!this.calendarData.dateRange.hasOwnProperty('start') && !this.calendarData.dateRange.hasOwnProperty('end')) return true; + return false; + } + }, + methods: { + /** + * Get map data + */ + changePeriod: function changePeriod() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!_this.disabled) { + _context.next = 2; + break; + } + + return _context.abrupt("return"); + + case 2: + _context.next = 4; + return _this.$store.dispatch('GET_USERS_PROFILE_MAP_DATA', { + period: _this.period, + start: _this.calendarData.dateRange.start, + end: _this.calendarData.dateRange.end + }); + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + + /** + * Return translated time period + */ + getPeriod: function getPeriod(period) { + if (!period) period = this.period; + return this.$t('teams.dashboard.times.' + period); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Profile/middle/ProfileCategories.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile/middle/ProfileCategories.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Charts_Radar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Charts/Radar */ "./resources/js/components/Charts/Radar.vue"); +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ProfileCategories', + components: { + Radar: _Charts_Radar__WEBPACK_IMPORTED_MODULE_0__["default"] + }, + computed: { + /** + * The users photos per month, as a string. Saved as metadata because CPU. + */ + categories: function categories() { + return [this.user.total_categories.alcohol, this.user.total_brands_redis, this.user.total_categories.coastal, this.user.total_categories.coffee, this.user.total_categories.dumping, this.user.total_categories.food, this.user.total_categories.industrial, this.user.total_categories.other, this.user.total_categories.sanitary, this.user.total_categories.softdrinks, this.user.total_categories.smoking]; + }, + + /** + * Currently authenticated user + */ + user: function user() { + return this.$store.state.user.user; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Profile/middle/ProfileMap.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile/middle/ProfileMap.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue2_leaflet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue2-leaflet */ "./node_modules/vue2-leaflet/dist/vue2-leaflet.es.js"); +/* harmony import */ var vue2_leaflet_markercluster__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue2-leaflet-markercluster */ "./node_modules/vue2-leaflet-markercluster/dist/Vue2LeafletMarkercluster.js"); +/* harmony import */ var vue2_leaflet_markercluster__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue2_leaflet_markercluster__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../i18n */ "./resources/js/i18n.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ProfileMap', + components: { + LMap: vue2_leaflet__WEBPACK_IMPORTED_MODULE_1__["LMap"], + LTileLayer: vue2_leaflet__WEBPACK_IMPORTED_MODULE_1__["LTileLayer"], + LMarker: vue2_leaflet__WEBPACK_IMPORTED_MODULE_1__["LMarker"], + LPopup: vue2_leaflet__WEBPACK_IMPORTED_MODULE_1__["LPopup"], + 'v-marker-cluster': vue2_leaflet_markercluster__WEBPACK_IMPORTED_MODULE_2___default.a + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.attribution += new Date().getFullYear(); // Todo - we need to add back a way to get data by string eg "today" or "this year", etc. + // await this.$store.dispatch('GET_USERS_PROFILE_MAP_DATA', 'today'); + + case 1: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + zoom: 2, + center: L.latLng(0, 0), + url: 'https://{s}.tile.osm.org/{z}/{x}/{y}.png', + attribution: 'Map Data © OpenStreetMap contributors, Litter data © OpenLitterMap & Contributors ', + loading: true, + fullscreen: false + }; + }, + computed: { + /** + * From backend api request + */ + geojson: function geojson() { + return this.$store.state.user.geojson.features; + } + }, + methods: { + /** + * Return html content for each popup + * + * Translate tags + * + * Format datetime (time image was taken) + */ + content: function content(img, text, date) { + if (text) { + var a = text.split(','); + a.pop(); + var z = ''; + a.forEach(function (i) { + var b = i.split(' '); + z += _i18n__WEBPACK_IMPORTED_MODULE_3__["default"].t('litter.' + b[0]) + ': ' + b[1] + '
    '; + }); + return '

    ' + z + '

    Taken on ' + moment__WEBPACK_IMPORTED_MODULE_4___default()(date).format('LLL') + '

    '; + } + }, + + /** + * + */ + fullscreenChange: function fullscreenChange(fullscreen) { + this.fullscreen = fullscreen; + }, + + /** + * + */ + toggle: function toggle() { + this.$refs['fullscreen'].toggle(); // recommended + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Profile/top/ProfileNextTarget.vue?vue&type=script&lang=js&": +/*!****************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile/top/ProfileNextTarget.vue?vue&type=script&lang=js& ***! + \****************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ProfileNextTarget', + computed: { + /** + * The users current level, based on their XP + */ + currentLevel: function currentLevel() { + return this.user.level; + }, + + /** + * The users current XP + */ + currentXp: function currentXp() { + return this.user.xp; + }, + + /** + * Remaining xp until the user Levels Up + */ + neededXp: function neededXp() { + return this.$store.state.user.requiredXp; + }, + + /** + * Currently authenticated user + */ + user: function user() { + return this.$store.state.user.user; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Profile/top/ProfileStats.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile/top/ProfileStats.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ProfileStats', + computed: { + /** + * + */ + photoPercent: function photoPercent() { + return this.user.photoPercent; + }, + + /** + * + */ + tagPercent: function tagPercent() { + return this.user.tagPercent; + }, + + /** + * Total number of tags the user has submitted + */ + userTagsCount: function userTagsCount() { + return this.user.user.total_tags; + }, + + /** + * Total number of photos the user has uploaded + */ + userPhotoCount: function userPhotoCount() { + return this.user.user.total_images; + }, + + /** + * The currently active user + */ + user: function user() { + return this.$store.state.user; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Profile/top/ProfileWelcome.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Profile/top/ProfileWelcome.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__); +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ProfileWelcome', + computed: { + /** + * The users name + */ + name: function name() { + return this.user.user.name; + }, + + /** + * The total number of accounts on OLM + */ + totalUsers: function totalUsers() { + return this.user.totalUsers; + }, + + /** + * The users position out of all users, based on their XP + */ + usersPosition: function usersPosition() { + return moment__WEBPACK_IMPORTED_MODULE_0___default.a.localeData().ordinal(this.user.position); + }, + + /** + * The currently active user + */ + user: function user() { + return this.$store.state.user; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ProgressBar.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/ProgressBar.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'ProgressBar', + props: ['currentxp', 'xpneeded', 'startingxp'], + computed: { + currentValue: function currentValue() { + var range = this.xpneeded - this.startingxp; + var startVal = this.currentxp - this.startingxp; + return startVal * 100 / range; // percentage + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Teams/TeamMap.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Teams/TeamMap.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var vue2_leaflet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue2-leaflet */ "./node_modules/vue2-leaflet/dist/vue2-leaflet.es.js"); +/* harmony import */ var vue2_leaflet_markercluster__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue2-leaflet-markercluster */ "./node_modules/vue2-leaflet-markercluster/dist/Vue2LeafletMarkercluster.js"); +/* harmony import */ var vue2_leaflet_markercluster__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue2_leaflet_markercluster__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../i18n */ "./resources/js/i18n.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__); +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'TeamMap', + components: { + LMap: vue2_leaflet__WEBPACK_IMPORTED_MODULE_0__["LMap"], + LTileLayer: vue2_leaflet__WEBPACK_IMPORTED_MODULE_0__["LTileLayer"], + LMarker: vue2_leaflet__WEBPACK_IMPORTED_MODULE_0__["LMarker"], + LPopup: vue2_leaflet__WEBPACK_IMPORTED_MODULE_0__["LPopup"], + 'v-marker-cluster': vue2_leaflet_markercluster__WEBPACK_IMPORTED_MODULE_1___default.a + }, + created: function created() { + this.attribution += new Date().getFullYear(); + }, + data: function data() { + return { + zoom: 2, + center: L.latLng(0, 0), + url: 'https://{s}.tile.osm.org/{z}/{x}/{y}.png', + attribution: 'Map Data © OpenStreetMap contributors, Litter data © OpenLitterMap & Contributors ', + loading: true + }; + }, + computed: { + /** + * From backend api request + */ + geojson: function geojson() { + return this.$store.state.teams.geojson.features; + } + }, + methods: { + /** + * Return html content for each popup + * + * Translate tags + * + * Format datetime (time image was taken) + */ + content: function content(img, text, date) { + var a = text.split(','); + a.pop(); + var z = ''; + a.forEach(function (i) { + var b = i.split(' '); + z += _i18n__WEBPACK_IMPORTED_MODULE_2__["default"].t('litter.' + b[0]) + ': ' + b[1] + '
    '; + }); + return '

    ' + z + '

    Taken on ' + moment__WEBPACK_IMPORTED_MODULE_3___default()(date).format('LLL') + '

    '; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'SocialMediaIntegration', + data: function data() { + return { + processing: false + }; + }, + computed: { + /** + * Array of available social medias that can be linked to a Username + */ + availableSocialMediaLinks: function availableSocialMediaLinks() { + var x = []; + if (this.twitter) x.push('twitter'); + if (this.instagram) x.push('instagram'); + return x; + }, + + /** + * If there are any social media links, + * + * The user can link their Username to one of the social media platforms. + */ + canLinkSocialMediaToUsername: function canLinkSocialMediaToUsername() { + return this.twitter || this.instagram; + }, + download: { + get: function get() { + return true; + }, + set: function set(v) {} + }, + map: { + get: function get() { + return true; + }, + set: function set(v) {} + }, + instagram: { + get: function get() { + return ''; + }, + set: function set(v) {} + }, + twitter: { + get: function get() { + return ''; + }, + set: function set(v) {} + } + }, + methods: { + /** + * Change what components are visible on a Public Profile + */ + update: function update() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('UPDATE_PUBLIC_PROFILE_SETTINGS', { + map: _this.map, + download: _this.download, + twitter: _this.twitter, + instagram: _this.instagram + }); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/WelcomeBanner.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/WelcomeBanner.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + props: ['showEmailConfirmed'], + // todo - fix this. + methods: { + /** + * Delete the welcome div when a user verifies their email address + * + * todo - animate the close with a transition + */ + hideEmailConfirmedBanner: function hideEmailConfirmedBanner() { + this.showEmailConfirmed = false; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/global/Languages.vue?vue&type=script&lang=js&": +/*!***************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/global/Languages.vue?vue&type=script&lang=js& ***! + \***************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Languages', + data: function data() { + return { + button: 'dropdown navbar-item pointer', + dir: '/assets/icons/flags/', + langs: [{ + url: 'en' + }, // We have these languages mostly done but they are in php code with the old keys + { + url: 'es' + }, { + url: 'nl' + }, { + url: 'pl' + }] + }; + }, + computed: { + /** + * Todo - change where langsOpen lives + * We need it on vuex to close it whenever we click outside of this component + * Todo - close when click outside of this component + */ + checkOpen: function checkOpen() { + return this.$store.state.globalmap.langsOpen ? this.button + ' is-active' : this.button; + }, + + /** + * + */ + currentLang: function currentLang() { + return this.$t('locations.countries.' + this.$i18n.locale + '.lang'); + }, + + /** + * Current locale @en + */ + locale: function locale() { + return this.$i18n.locale; + } + }, + methods: { + /** + * Return filepath for country flag + */ + getFlag: function getFlag(lang) { + if (lang === 'en') return this.dir + 'gb.png'; // english + + if (lang === 'es') return this.dir + 'es.png'; // spanish + + if (lang === 'pl') return this.dir + 'pl.png'; + if (lang === 'ms') return this.dir + 'my.png'; // malaysian + + if (lang === 'tk') return this.dir + 'tr.png'; // turkish + + return this.dir + lang.toLowerCase() + '.png'; + }, + + /** + * Return translated country string + */ + getLang: function getLang(lang) { + return this.$t('locations.countries.' + lang + '.lang'); + }, + + /** + * Change the currently active language + */ + language: function language(lang) { + this.$i18n.locale = lang; + this.$localStorage.set('lang', lang); + this.$store.commit('closeLangsButton'); + }, + + /** + * + */ + toggleOpen: function toggleOpen() { + this.$store.commit('closeDatesButton'); + this.$store.commit('toggleLangsButton'); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Auth/Subscribe.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Auth/Subscribe.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _components_CreateAccount__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/CreateAccount */ "./resources/js/components/CreateAccount.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Subscribe', + components: { + CreateAccount: _components_CreateAccount__WEBPACK_IMPORTED_MODULE_3__["default"], + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default.a + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + var status, title, subtitle; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + // Get query string from url if it exists + if (window.location.href.includes('?')) { + _this.plan = window.location.href.split('?')[1].split('=')[1]; + } // Success or Fail response from Stripe Checkout + + + if (window.location.href.includes('&')) { + // 'success', or 'error' + status = window.location.href.split('&')[1].split('=')[1]; + title = _this.$t('signup.' + status + '-title'); + subtitle = _this.$t('signup.' + status + '-subtitle'); + + _this.$swal(title, subtitle, status); + } + + _context.next = 4; + return _this.$store.dispatch('GET_PLANS'); + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + loading: true, + plan: '' + }; + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Locations/Cities.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Locations/Cities.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _SortLocations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SortLocations */ "./resources/js/views/Locations/SortLocations.vue"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_3__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Cities', + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + _context.next = 3; + return _this.$store.dispatch('GET_CITIES', { + country: window.location.href.split('/')[4], + state: window.location.href.split('/')[5] + }); + + case 3: + _this.loading = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + components: { + SortLocations: _SortLocations__WEBPACK_IMPORTED_MODULE_1__["default"], + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2___default.a + }, + data: function data() { + return { + loading: true + }; + }, + computed: { + /** + * The parent Country + */ + countryName: function countryName() { + return this.$store.state.locations.countryName; + }, + + /** + * The parent State + */ + stateName: function stateName() { + return this.$store.state.locations.stateName; + } + }, + methods: { + /** + * Go to country and load States + */ + goBack: function goBack() { + this.$store.commit('setLocations', []); + return this.$router.push({ + path: '/world/' + this.countryName + }); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Locations/CityMap.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Locations/CityMap.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! leaflet */ "./node_modules/leaflet/dist/leaflet-src.js"); +/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(leaflet__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _public_js_turf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../public/js/turf.js */ "./public/js/turf.js"); +/* harmony import */ var _public_js_turf_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_public_js_turf_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _extra_categories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../extra/categories */ "./resources/js/extra/categories.js"); +/* harmony import */ var _extra_litterkeys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../extra/litterkeys */ "./resources/js/extra/litterkeys.js"); +/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../constants */ "./resources/js/constants/index.js"); +// +// +// +// + // error when importing Turf from '@turf/turf' and using bbox + aggregate +// https://github.com/Turfjs/turf/issues/1952 + + + + + + +var map; +var info; +var hexFiltered; +var smokingGroup; +var foodGroup; +var coffeeGroup; +var alcoholGroup; +var softdrinksGroup; +var sanitaryGroup; +var otherGroup; +var coastalGroup; +var brandsGroup; +var dogshitGroup; +var dumpingGroup; +var industrialGroup; +/** + * The colour for each hex grid + * This should become proportional to the range of data + */ + +function getColor(n) { + return n > 60 ? '#800026' : n > 20 ? '#BD0026' : n > 10 ? '#E31A1C' : n > 4 ? '#FD8D3C' : n > 2 ? '#FED976' : '#FFEDA0'; +} +/** + * Outer-style to give each hex grid + */ + + +function style(feature) { + return { + weight: 2, + opacity: 1, + color: 'white', + dashArray: '3', + fillOpacity: 0.7, + fillColor: getColor(feature.properties.total) + }; +} +/** + * Apply these to each hexgrid + */ + + +function onEachFeature(feature, layer) { + layer.on({ + mouseover: highlightFeature, + mouseout: resetHighlight, + click: zoomToFeature + }); +} +/** + * Applied when a hex-grid is hovered + */ + + +function highlightFeature(e) { + var layer = e.target; + layer.setStyle({ + weight: 5, + color: '#666', + dashArray: '', + fillOpacity: 0.7 + }); + + if (!leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.Browser.ie && !leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.Browser.opera && !leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.Browser.edge) { + layer.bringToFront(); + } + + info.update(layer.feature.properties); +} +/** + * When mouseleave on hex-grid + */ + + +function resetHighlight(e) { + hexFiltered.resetStyle(e.target); + info.update(); +} +/** + * A hexgrid has been pressed + * Instead of zoom, lets open a dialog box with stats. + */ + + +function zoomToFeature(e) {// map.fitBounds(e.target.getBounds()); +} + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'CityMap', + mounted: function mounted() { + /** 1. Create map object */ + map = leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.map(this.$refs.map, { + center: this.$store.state.citymap.center, + // center_map, + zoom: this.$store.state.citymap.zoom, + scrollWheelZoom: false, + smoothWheelZoom: true, + smoothSensitivity: 1 + }); + /** 2. Add attribution to the map */ + + var date = new Date(); + var year = date.getFullYear(); + var mapLink = 'OpenStreetMap'; + leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: 'Map data © ' + mapLink + ' & Contributors', + maxZoom: 20, + minZoom: 1 // todo: maxBounds: bounds -> import from MapController -> not yet configured + + }).addTo(map); + map.attributionControl.addAttribution('Litter data © OpenLitterMap & Contributors ' + year); + /** 3. Create hex grid using aggregated data */ + + if (this.geojson) { + hexFiltered = leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.geoJson(this.aggregate, { + style: style, + onEachFeature: onEachFeature, + filter: function filter(feature, layer) { + if (feature.properties.values.length > 0) { + var sum = 0; + + for (var i = 0; i < feature.properties.values.length; i++) { + sum += feature.properties.values[i]; + } + + feature.properties.total = sum; + } + + return feature.properties.values.length > 0; + } + }).addTo(map); + /** 4. Add info/control to the Top-Right */ + + info = leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.control(); + + info.onAdd = function (map) { + this._div = leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.DomUtil.create('div', 'info'); + this.update(); + return this._div; + }; // Get Counts + + + var meterHexGrids = this.$t('locations.cityVueMap.meter-hex-grids'); + var hoverToCount = this.$t('locations.cityVueMap.hover-to-count'); + var piecesOfLitter = this.$t('locations.cityVueMap.pieces-of-litter'); + var hoverOverPolygonsToCount = this.$t('locations.cityVueMap.hover-polygons-to-count'); + var hex = this.hex; + + info.update = function (props) { + this._div.innerHTML = '

    ' + hex + " ".concat(meterHexGrids, "

    ") + (props ? "".concat(hoverToCount, "
    ") + props.total + " ".concat(piecesOfLitter) : "".concat(hoverOverPolygonsToCount, ".")); + }; + + info.addTo(map); + /** 5. Style the legend */ + // Todo - we need to dynamically and statistically reflect the range of available values + + var legend = leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.control({ + position: 'bottomleft' + }); + + legend.onAdd = function (map) { + var div = leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.DomUtil.create('div', 'info legend'), + grades = [1, 3, 6, 10, 20], + labels = [], + from, + to; + + for (var i = 0; i < grades.length; i++) { + from = grades[i]; + to = grades[i + 1]; + labels.push(' ' + from + (to ? '–' + to : '+')); + } + + div.innerHTML = labels.join('
    '); + return div; + }; + + legend.addTo(map); + } + /** 6. Loop over geojson data and add to groups */ + + + this.addDataToLayerGroups(); + /** 7. TODO - Timeslider */ + }, + computed: { + /** + * From our input geojson object, + * 1. Create bounding box + * 2. Create hexgrid within bounding box + * 3. Count point-in-polygon to filter out empty values + */ + aggregate: function aggregate() { + // Create a bounding box from our set of features + var bbox = _public_js_turf_js__WEBPACK_IMPORTED_MODULE_1__["bbox"](this.geojson); // Create a hexgrid from our data. This needs to be filtered to only show relevant data. + + var hexgrid = _public_js_turf_js__WEBPACK_IMPORTED_MODULE_1__["hexGrid"](bbox, this.hex, 'meters'); // we need to parse here to avoid copying the object as shallow copies + // see https://github.com/Turfjs/turf/issues/1914 + + hexgrid = JSON.parse(JSON.stringify(hexgrid)); // To filter the hexgrid, we need to find hex values with point in polygon and remove 0 values + // "values" will be appended to the hexgrid + + return _public_js_turf_js__WEBPACK_IMPORTED_MODULE_1__["collect"](hexgrid, this.geojson, 'total_litter', 'values'); + }, + + /** + * Where to center the map (on page load) + */ + center: function center() { + return this.$store.state.citymap.center; + }, + + /** + * Return geojson data for map + */ + geojson: function geojson() { + return this.$store.state.citymap.data; + }, + + /** + * The size of the hex units + */ + hex: function hex() { + return this.$store.state.citymap.hex; + }, + + /** + * The current level of zoom + */ + zoom: function zoom() { + return this.$store.state.citymap.zoom; + } + }, + methods: { + /** + * Loop over the geojson + */ + addDataToLayerGroups: function addDataToLayerGroups() { + var _this = this; + + /** 6. Create Groups */ + smokingGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + foodGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + coffeeGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + alcoholGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + softdrinksGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup().addTo(map); + sanitaryGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + otherGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + coastalGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + brandsGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + dogshitGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + dumpingGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + industrialGroup = new leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.LayerGroup(); + var groups = { + smoking: smokingGroup, + food: foodGroup, + coffee: coffeeGroup, + alcohol: alcoholGroup, + softdrinks: softdrinksGroup, + sanitary: sanitaryGroup, + other: otherGroup, + coastal: coastalGroup, + brands: brandsGroup, + dogshit: dogshitGroup, + industrial: industrialGroup, + dumping: dumpingGroup + }; + this.geojson.features.map(function (i) { + var name = ''; + var username = ''; + if (i.properties.hasOwnProperty('name') && name) name = i.properties.name; + if (i.properties.hasOwnProperty('username') && username) username = ' @' + i.properties.username; + if (name === '' && username === '') name = 'Anonymous'; // Dynamically add items to the groups + add markers + + _extra_categories__WEBPACK_IMPORTED_MODULE_3__["categories"].map(function (category) { + if (i.properties[category]) { + var string = ''; + _extra_litterkeys__WEBPACK_IMPORTED_MODULE_4__["litterkeys"][category].map(function (item) { + if (i.properties[category][item]) { + string += _this.$t('litter.' + [category] + '.' + [item]) + ': ' + i.properties[category][item] + '
    '; + leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.marker([i.properties.lat, i.properties.lon]).addTo(groups[category]).bindPopup(string + '' + '

    ' + _this.$t('locations.cityVueMap.taken-on') + ' ' + moment__WEBPACK_IMPORTED_MODULE_2___default()(i.properties.datetime).format('LLL') + ' ' + _this.$t('locations.cityVueMap.with-a') + ' ' + i.properties.model + '

    ' + '

    ' + _this.$t('locations.cityVueMap.by') + ': ' + name + username + '

    '); + } + }); + } + }); + }); + /** 8. Create overlays toggle menu */ + + var overlays = { + Alcohol: alcoholGroup, + Brands: brandsGroup, + Coastal: coastalGroup, + Coffee: coffeeGroup, + Dumping: dumpingGroup, + Food: foodGroup, + Industrial: industrialGroup, + Other: otherGroup, + PetSurprise: dogshitGroup, + Sanitary: sanitaryGroup, + Smoking: smokingGroup, + SoftDrinks: softdrinksGroup + }; + /** 9- Add null basemaps and overlays to the map */ + + leaflet__WEBPACK_IMPORTED_MODULE_0___default.a.control.layers(null, overlays).addTo(map); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Locations/CityMapContainer.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Locations/CityMapContainer.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _CityMap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CityMap */ "./resources/js/views/Locations/CityMap.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'CityMapContainer', + components: { + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default.a, + CityMap: _CityMap__WEBPACK_IMPORTED_MODULE_3__["default"] + }, + data: function data() { + return { + loading: true + }; + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + var split, min, max, hex; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + split = window.location.href.split('/'); // [6]; + + min = null; + max = null; + hex = null; + + if (split.length === 11) { + min = split[8]; + max = split[9]; + hex = split[10]; + } + + _context.next = 8; + return _this.$store.dispatch('GET_CITY_DATA', { + city: split[6], + min: min, + max: max, + hex: hex + }); + + case 8: + _this.loading = false; + + case 9: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Locations/Countries.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Locations/Countries.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _components_Locations_GlobalMetaData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/Locations/GlobalMetaData */ "./resources/js/components/Locations/GlobalMetaData.vue"); +/* harmony import */ var _SortLocations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SortLocations */ "./resources/js/views/Locations/SortLocations.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Countries', + components: { + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default.a, + GlobalMetaData: _components_Locations_GlobalMetaData__WEBPACK_IMPORTED_MODULE_3__["default"], + SortLocations: _SortLocations__WEBPACK_IMPORTED_MODULE_4__["default"] + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + _context.next = 3; + return _this.$store.dispatch('GET_COUNTRIES'); + + case 3: + _this.loading = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + loading: true + }; + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Locations/SortLocations.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Locations/SortLocations.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _components_Locations_LocationNavBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../components/Locations/LocationNavBar */ "./resources/js/components/Locations/LocationNavBar.vue"); +/* harmony import */ var _components_Locations_LocationMetadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/Locations/LocationMetadata */ "./resources/js/components/Locations/LocationMetadata.vue"); +/* harmony import */ var _components_Locations_Charts_PieCharts_ChartsContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../components/Locations/Charts/PieCharts/ChartsContainer */ "./resources/js/components/Locations/Charts/PieCharts/ChartsContainer.vue"); +/* harmony import */ var _components_Locations_Charts_TimeSeries_TimeSeriesContainer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/Locations/Charts/TimeSeries/TimeSeriesContainer */ "./resources/js/components/Locations/Charts/TimeSeries/TimeSeriesContainer.vue"); +/* harmony import */ var _components_Locations_Charts_Leaderboard_Leaderboard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/Locations/Charts/Leaderboard/Leaderboard */ "./resources/js/components/Locations/Charts/Leaderboard/Leaderboard.vue"); +/* harmony import */ var _components_Locations_Charts_Options_Options__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/Locations/Charts/Options/Options */ "./resources/js/components/Locations/Charts/Options/Options.vue"); +/* harmony import */ var _components_Locations_Charts_Download_Download__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/Locations/Charts/Download/Download */ "./resources/js/components/Locations/Charts/Download/Download.vue"); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +var sortBy = __webpack_require__(/*! lodash.sortby */ "./node_modules/lodash.sortby/index.js"); + + + + + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + props: ['locationType'], + name: 'SortLocations', + components: { + LocationNavbar: _components_Locations_LocationNavBar__WEBPACK_IMPORTED_MODULE_0__["default"], + LocationMetadata: _components_Locations_LocationMetadata__WEBPACK_IMPORTED_MODULE_1__["default"], + ChartsContainer: _components_Locations_Charts_PieCharts_ChartsContainer__WEBPACK_IMPORTED_MODULE_2__["default"], + TimeSeriesContainer: _components_Locations_Charts_TimeSeries_TimeSeriesContainer__WEBPACK_IMPORTED_MODULE_3__["default"], + Leaderboard: _components_Locations_Charts_Leaderboard_Leaderboard__WEBPACK_IMPORTED_MODULE_4__["default"], + Options: _components_Locations_Charts_Options_Options__WEBPACK_IMPORTED_MODULE_5__["default"], + Download: _components_Locations_Charts_Download_Download__WEBPACK_IMPORTED_MODULE_6__["default"] + }, + data: function data() { + return { + 'category': this.$t('location.most-data'), + tab: '', + tabs: [{ + title: this.$t('location.litter'), + component: 'ChartsContainer', + in_location: 'all' + }, { + title: this.$t('location.time-series'), + component: 'TimeSeriesContainer', + in_location: 'all' + }, { + title: this.$t('location.leaderboard'), + component: 'Leaderboard', + in_location: 'all' + }, { + title: this.$t('location.options'), + component: 'Options', + in_location: 'city' + }, { + title: this.$t('common.download'), + component: 'Download', + in_location: 'all' + }] + }; + }, + computed: { + /** + * Expand container to fullscreen when orderedBy is empty/loading + */ + container: function container() { + return this.orderedBy.length === 0 ? 'vh65' : ''; + }, + + /** + * Is the user authenticated? + */ + isAuth: function isAuth() { + return this.$store.state.user.auth; + }, + + /** + * We can sort all locations A-Z, Most Open Data, or Most Open Data Per Person + * + * Todo: add new options: created_at, etc. + */ + orderedBy: function orderedBy() { + if (this.category === "A-Z") { + return this.locations; + } else if (this.category === this.$t('location.most-data')) { + return sortBy(this.locations, 'total_litter_redis').reverse(); + } else if (this.category === this.$t('location.most-data-person')) { + return sortBy(this.locations, 'avg_litter_per_user').reverse(); + } + }, + + /** + * Array of Countries, States, or Cities + */ + locations: function locations() { + return this.$store.state.locations.locations; + } + }, + methods: { + /** + * Load a tab component: Litter, Leaderboard, Time-series + */ + loadTab: function loadTab(tab) { + this.tab = tab; + }, + + /** + * Class to return for tab + */ + tabClass: function tabClass(tab) { + return tab === this.tab ? 'l-tab is-active' : 'l-tab'; + }, + + /** + * Show tab depending on location locationType + * + * @return boolean + */ + showTab: function showTab(tab) { + return tab === 'all' || this.locationType === tab; + }, + + /** + * todo? + */ + updateUrl: function updateUrl(url) { + console.log({ + url: url + }); + }, + + /** + * Update selected category from LocationNavBar component + */ + updateCategory: function updateCategory(updatedCategory) { + this.category = updatedCategory; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Locations/States.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Locations/States.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _SortLocations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SortLocations */ "./resources/js/views/Locations/SortLocations.vue"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_3__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'States', + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + var countryText; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + window.scroll({ + top: 0, + left: 0 + }); + countryText = window.location.href.split('/')[4]; + _context.next = 5; + return _this.$store.dispatch('GET_STATES', countryText); + + case 5: + _this.loading = false; + + case 6: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + components: { + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2___default.a, + SortLocations: _SortLocations__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + data: function data() { + return { + loading: true + }; + }, + computed: { + /** + * The parent country for these States + */ + backButtonText: function backButtonText() { + return this.$store.state.locations.countryName; + } + }, + methods: { + /** + * Return to countries + */ + goBack: function goBack() { + this.$store.commit('setLocations', []); + this.$router.push({ + path: '/world' + }); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/RootContainer.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/RootContainer.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _components_General_Nav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/General/Nav */ "./resources/js/components/General/Nav.vue"); +/* harmony import */ var _components_Modal_Modal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Modal/Modal */ "./resources/js/components/Modal/Modal.vue"); +/* harmony import */ var _components_WelcomeBanner__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/WelcomeBanner */ "./resources/js/components/WelcomeBanner.vue"); +/* harmony import */ var _components_Notifications_Unsubscribed__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/Notifications/Unsubscribed */ "./resources/js/components/Notifications/Unsubscribed.vue"); +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'RootContainer', + props: ['auth', 'user', 'verified', 'unsub'], + components: { + Nav: _components_General_Nav__WEBPACK_IMPORTED_MODULE_0__["default"], + Modal: _components_Modal_Modal__WEBPACK_IMPORTED_MODULE_1__["default"], + WelcomeBanner: _components_WelcomeBanner__WEBPACK_IMPORTED_MODULE_2__["default"], + Unsubscribed: _components_Notifications_Unsubscribed__WEBPACK_IMPORTED_MODULE_3__["default"] + }, + data: function data() { + return { + showEmailConfirmed: false, + showUnsubscribed: false + }; + }, + created: function created() { + if (this.$localStorage.get('lang')) { + this.$i18n.locale = this.$localStorage.get('lang'); + } + + if (this.auth) { + this.$store.commit('login'); // user object is passed when the page is refreshed + + if (this.user) { + var user = JSON.parse(this.user); + console.log('RootContainer.user', user); + this.$store.commit('initUser', user); + this.$store.commit('set_default_litter_presence', user.items_remaining); + } + } // This is needed to invalidate user.auth = true + // which is persisted and not updated if the authenticated user forgets to manually log out + else this.$store.commit('resetState'); // If Account Verified + + + if (this.verified) this.showEmailConfirmed = true; + if (this.unsub) this.showUnsubscribed = true; + }, + computed: { + /** + * Boolean to show or hide the modal + */ + modal: function modal() { + return this.$store.state.modal.show; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings.vue?vue&type=script&lang=js&": +/*!**************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings.vue?vue&type=script&lang=js& ***! + \**************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _Settings_Password__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Settings/Password */ "./resources/js/views/Settings/Password.vue"); +/* harmony import */ var _Settings_Details__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Settings/Details */ "./resources/js/views/Settings/Details.vue"); +/* harmony import */ var _Settings_Account__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Settings/Account */ "./resources/js/views/Settings/Account.vue"); +/* harmony import */ var _Settings_Payments__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Settings/Payments */ "./resources/js/views/Settings/Payments.vue"); +/* harmony import */ var _Settings_Privacy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Settings/Privacy */ "./resources/js/views/Settings/Privacy.vue"); +/* harmony import */ var _Settings_Littercoin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Settings/Littercoin */ "./resources/js/views/Settings/Littercoin.vue"); +/* harmony import */ var _Settings_Presence__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Settings/Presence */ "./resources/js/views/Settings/Presence.vue"); +/* harmony import */ var _Settings_Emails__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Settings/Emails */ "./resources/js/views/Settings/Emails.vue"); +/* harmony import */ var _Settings_GlobalFlag__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Settings/GlobalFlag */ "./resources/js/views/Settings/GlobalFlag.vue"); +/* harmony import */ var _Settings_PublicProfile__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Settings/PublicProfile */ "./resources/js/views/Settings/PublicProfile.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + + + + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Settings', + components: { + Password: _Settings_Password__WEBPACK_IMPORTED_MODULE_1__["default"], + Details: _Settings_Details__WEBPACK_IMPORTED_MODULE_2__["default"], + Account: _Settings_Account__WEBPACK_IMPORTED_MODULE_3__["default"], + Payments: _Settings_Payments__WEBPACK_IMPORTED_MODULE_4__["default"], + Privacy: _Settings_Privacy__WEBPACK_IMPORTED_MODULE_5__["default"], + Littercoin: _Settings_Littercoin__WEBPACK_IMPORTED_MODULE_6__["default"], + Presence: _Settings_Presence__WEBPACK_IMPORTED_MODULE_7__["default"], + Emails: _Settings_Emails__WEBPACK_IMPORTED_MODULE_8__["default"], + GlobalFlag: _Settings_GlobalFlag__WEBPACK_IMPORTED_MODULE_9__["default"], + PublicProfile: _Settings_PublicProfile__WEBPACK_IMPORTED_MODULE_10__["default"] + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (window.location.href.split('/')[4]) { + _this.link = window.location.href.split('/')[4]; + } + + case 1: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + links: ['password', 'details', 'account', 'payments', 'privacy', 'littercoin', 'presence', 'emails', 'show-flag', 'public-profile'], + link: 'password', + types: { + 'password': 'Password', + 'details': 'Details', + 'account': 'Account', + 'payments': 'Payments', + 'privacy': 'Privacy', + 'littercoin': 'Littercoin', + 'presence': 'Presence', + 'emails': 'Emails', + 'show-flag': 'GlobalFlag', + 'public-profile': 'PublicProfile' + } + }; + }, + methods: { + /** + * Change link = view different component + */ + change: function change(link) { + this.link = link; + }, + + /** + * Get translated text for this link + */ + translate: function translate(link) { + return this.$t('settings.common.' + link); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/Account.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/Account.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Account', + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this.$store.dispatch('GET_PLANS'); + + case 2: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + btn: 'button is-danger', + processing: false, + password: '' + }; + }, + computed: { + /** + * Add ' is-loading' when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * Errors object from user.js + */ + errors: function errors() { + return this.$store.state.user.errors; + }, + + /** + * Array of plans from the database + */ + plans: function plans() { + return this.$store.state.createaccount.plans; + } + }, + methods: { + /** + * Clear an error with this key + */ + clearError: function clearError(key) { + if (this.errors[key]) this.$store.commit('deleteUserError', key); + }, + + /** + * Get the first error from errors object + */ + getFirstError: function getFirstError(key) { + return this.errors[key][0]; + }, + + /** + * Check if any errors exist for this key + */ + errorExists: function errorExists(key) { + return this.errors.hasOwnProperty(key); + }, + + /** + * Submit a request to delete the users account + */ + submit: function submit() { + var _this2 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _this2.processing = true; + _context2.next = 3; + return _this2.$store.dispatch('DELETE_ACCOUNT', _this2.password); + + case 3: + _this2.processing = false; + _this2.password = ''; + + case 5: + case "end": + return _context2.stop(); + } + } + }, _callee2); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/Details.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/Details.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Details', + data: function data() { + return { + btn: 'button is-medium is-info', + processing: false + }; + }, + computed: { + /** + * Add ' is-loading' when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * The users email address + */ + email: { + get: function get() { + return this.user.email; + }, + set: function set(v) { + this.$store.commit('changeUserEmail', v); + } + }, + + /** + * Errors object created from failed request + */ + errors: function errors() { + return this.$store.state.user.errors; + }, + + /** + * The users name + */ + name: { + get: function get() { + return this.user.name; + }, + set: function set(v) { + this.$store.commit('changeUserName', v); + } + }, + + /** + * The currently authenticated user + */ + user: function user() { + return this.$store.state.user.user; + }, + + /** + * The users username + */ + username: { + get: function get() { + return this.user.username; + }, + set: function set(v) { + this.$store.commit('changeUserUsername', v); + } + } + }, + methods: { + /** + * Clear an error with this key + */ + clearError: function clearError(key) { + if (this.errors[key]) this.$store.commit('deleteUserError', key); + }, + + /** + * Get the first error from errors object + */ + getFirstError: function getFirstError(key) { + return this.errors[key][0]; + }, + + /** + * Check if any errors exist for this key + */ + errorExists: function errorExists(key) { + return this.errors.hasOwnProperty(key); + }, + + /** + * Update the users personal details (Name, Username, Email) + */ + submit: function submit() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('UPDATE_DETAILS'); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/Emails.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/Emails.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Emails', + data: function data() { + return { + processing: false + }; + }, + computed: { + /** + * Dynamic button class + */ + button: function button() { + return this.processing ? 'button is-info is-loading' : 'button is-info'; + }, + + /** + * + */ + color: function color() { + return this.$store.state.user.user.emailsub ? "color: green" : "color: red"; + }, + + /** + * + */ + computedPresence: function computedPresence() { + return this.$store.state.user.user.emailsub ? "Subscribed" : "Unsubscribed"; + } + }, + methods: { + /** + * + */ + toggle: function toggle() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + + _this.$store.dispatch('TOGGLE_EMAIL_SUBSCRIPTION'); + + _this.processing = false; + + case 3: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/GlobalFlag.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/GlobalFlag.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var vue_simple_suggest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-simple-suggest */ "./node_modules/vue-simple-suggest/dist/es6.js"); +/* harmony import */ var vue_simple_suggest_dist_styles_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-simple-suggest/dist/styles.css */ "./node_modules/vue-simple-suggest/dist/styles.css"); +/* harmony import */ var vue_simple_suggest_dist_styles_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_simple_suggest_dist_styles_css__WEBPACK_IMPORTED_MODULE_4__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'GlobalFlag', + components: { + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default.a, + VueSimpleSuggest: vue_simple_suggest__WEBPACK_IMPORTED_MODULE_3__["default"] + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + _context.next = 3; + return _this.$store.dispatch('GET_COUNTRIES_FOR_FLAGS'); + + case 3: + _this.loading = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + btn: 'button mt1 is-primary is-medium', + country: '', + processing: false, + loading: true, + autoCompleteStyle: { + vueSimpleSuggest: "position-relative width-50", + inputWrapper: "", + defaultInput: "input", + suggestions: "position-absolute list-group z-1000 custom-class-overflow width-50", + suggestItem: "list-group-item" + } + }; + }, + computed: { + /** + * Dynamic button class + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * + */ + countries: function countries() { + return this.$store.state.user.countries; + } + }, + methods: { + /** + * List of available countries to choose flag from + */ + getCountries: function getCountries() { + return Object.values(this.countries); + }, + + /** + * Currently selected flag, if choosen + */ + getSelected: function getSelected() { + if (this.$store.state.user.user.global_flag) return this.countries[this.$store.state.user.user.global_flag]; + return false; + }, + + /** + * Show all suggestions (not just ones filtered by text input) + */ + onFocus: function onFocus() { + this.$refs.vss.suggestions = this.$refs.vss.list; + }, + + /** + * Hacky solution. Waiting on fix. https://github.com/KazanExpress/vue-simple-suggest/issues/311 + * An item has been selected from the list. Blur the input focus. + */ + onSuggestion: function onSuggestion() { + this.$nextTick(function () { + Array.prototype.forEach.call(document.getElementsByClassName('input'), function (el) { + el.blur(); + }); + }); + }, + + /** + * Dispatch request to save selected flag + */ + save: function save() { + var _this2 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + var selected; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _this2.processing = true; + selected = Object.keys(_this2.countries).find(function (key) { + return _this2.countries[key] === _this2.country; + }); + _context2.next = 4; + return _this2.$store.dispatch('UPDATE_GLOBAL_FLAG', selected); + + case 4: + _this2.processing = false; + + case 5: + case "end": + return _context2.stop(); + } + } + }, _callee2); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/Littercoin.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/Littercoin.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// if (typeof web3 !== 'undefined') { +// this.web3exists = true; +// // console.log('does web3 exist'); +// // console.log(this.web3exists); +// web3 = new Web3(web3.currentProvider); +// // console.log(web3); +// +// var contract_address = "0xDA99A3329362220d7305e4C7071F7165abC34181"; +// var contract_abi = [ { "constant": false, "inputs": [ { "name": "newSellPrice", "type": "uint256" }, { "name": "newBuyPrice", "type": "uint256" } ], "name": "setPrices", "outputs": [], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "Littercoin" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "approve", "outputs": [ { "name": "success", "type": "bool" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256", "value": "100000020000" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "name": "success", "type": "bool" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "name": "", "type": "uint8", "value": "4" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "sellPrice", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "standard", "outputs": [ { "name": "", "type": "string", "value": "Littercoin" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "target", "type": "address" }, { "name": "mintedAmount", "type": "uint256" } ], "name": "mintToken", "outputs": [], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "buyPrice", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "name": "", "type": "address", "value": "0x770ea08d3c609e0e37ffdf443fd3842e426e7eb0" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string", "value": "LTRX" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [], "name": "buy", "outputs": [], "payable": true, "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "transfer", "outputs": [], "payable": false, "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "frozenAccount", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" }, { "name": "_extraData", "type": "bytes" } ], "name": "approveAndCall", "outputs": [ { "name": "success", "type": "bool" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" }, { "name": "", "type": "address" } ], "name": "allowance", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "amount", "type": "uint256" } ], "name": "sell", "outputs": [], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "target", "type": "address" }, { "name": "freeze", "type": "bool" } ], "name": "freezeAccount", "outputs": [], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "payable": false, "type": "function" }, { "inputs": [ { "name": "initialSupply", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "initial Supply", "template": "elements_input_uint", "value": "100000000000" }, { "name": "tokenName", "type": "string", "index": 1, "typeShort": "string", "bits": "", "displayName": "token Name", "template": "elements_input_string", "value": "Littercoin" }, { "name": "decimalUnits", "type": "uint8", "index": 2, "typeShort": "uint", "bits": "8", "displayName": "decimal Units", "template": "elements_input_uint", "value": "4" }, { "name": "tokenSymbol", "type": "string", "index": 3, "typeShort": "string", "bits": "", "displayName": "token Symbol", "template": "elements_input_string", "value": "LTRX" } ], "payable": false, "type": "constructor" }, { "payable": false, "type": "fallback" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "target", "type": "address" }, { "indexed": false, "name": "frozen", "type": "bool" } ], "name": "FrozenFunds", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" } ]; +// +// var contract_instance = web3.eth.contract(contract_abi).at(contract_address); +// +// // console.log(contract_instance); +// +// // var version = web3.version.network; +// // console.log(version); // 54 +// +// var accounts = web3.eth.accounts; +// // console.log(accounts); +// +// } else { +// // set the provider you want from Web3.providers +// // alert("Sorry, the web3js object is not available right now. Please configure MetaMask and try again."); +// // web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); +// } +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Littercoin', + created: function created() {// if (typeof web3 !== 'undefined') this.web3exists = true; + // + // if (this.user.eth_wallet.length > 40) + // { + // if (contract_instance !== undefined) + // { + // contract_instance.balanceOf(this.user.eth_wallet, function(err, res) { + // if(err) { + // // console.error(err); + // } else { + // // console.log('success'); + // // console.log(res['c'][0]); + // var littercoin = res['c'][0] / 10000; + // var ltrxCoin = littercoin.toLocaleString(undefined, { maximumFractionDigits: 4 }); + // document.getElementById('myLtrx').innerText = ltrxCoin; + // } + // }); + // // console.log(web3); + // web3.eth.getBalance(this.user.eth_wallet, web3.eth.defaultBlock, function(error, result) { + // if(error) { + // console.error(error); + // } else { + // var balance = web3.fromWei(result.toNumber()); + // // console.log(balance); + // // console.log(typeof(balance)); + // document.getElementById('mybal').innerText = balance; + // // this.$data.myBal = balance; + // } + // }) + // } + // } + }, + data: function data() { + return { + userwallet: '', + myBal: '', + inputltrx: '', + web3exists: false, + amountltrx: '0.0000' + }; + }, + methods: { + /** + * + */ + addWallet: function addWallet() { + // Validate input + if (this.userwallet.length < 40) { + return alert('Sorry, that doesnt look like a valid wallet ID. Please try again'); + } + + axios({ + method: 'post', + url: '/en/settings/littercoin/update', + data: { + wallet: this.userwallet + } + }).then(function (response) { + alert('You have submitted a wallet id'); + window.location.href = window.location.href; + })["catch"](function (error) { + // console.log(error); + alert('Error! Please try again'); + }); + }, + + /** + * + */ + sendltrx: function sendltrx() { + if (this.inputltrx.length < 10) { + alert('Please enter a valid wallet id. If you are unable to please contact @ info@openlittermap.com'); + } else { + contract_instance.transfer(this.inputltrx, this.amountltrx, function (error, result) { + if (error) { + alert(error); + } else { + // console.log(result); + alert('Success! Your transaction # is :' + result); + } + }); + } + }, + + /** + * + */ + deleteWallet: function deleteWallet() { + axios({ + method: 'post', + url: '/en/settings/littercoin/removewallet', + data: { + wallet: this.userwallet + } + }).then(function (response) { + alert('Your wallet ID has been deleted.'); + window.location.href = window.location.href; + })["catch"](function (error) { + // console.log(error); + alert('Error! Please try again'); + }); + } + }, + watch: { + inputltrx: function inputltrx() { + if (this.inputltrx.length > 10) { + // console.log('over 10'); + document.getElementById('sendcoinbutton').disabled = false; + } + + if (this.inputltrx.length < 10) { + // console.log('less than 10'); + document.getElementById('sendcoinbutton').disabled = true; + } + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/Password.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/Password.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Password', + data: function data() { + return { + processing: false, + oldpassword: '', + password: '', + password_confirmation: '', + btn: 'button is-medium is-info' + }; + }, + computed: { + /** + * Add ' is-loading' when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * + */ + errors: function errors() { + return this.$store.state.user.errors; + } + }, + methods: { + /** + * Clear an error with this key + */ + clearError: function clearError(key) { + if (this.errors[key]) this.$store.commit('deleteUserError', key); + }, + + /** + * Get the first error from errors object + */ + getFirstError: function getFirstError(key) { + return this.errors[key][0]; + }, + + /** + * Check if any errors exist for this key + */ + errorExists: function errorExists(key) { + return this.errors.hasOwnProperty(key); + }, + + /** + * Request to update the users password + */ + submit: function submit() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('CHANGE_PASSWORD', { + oldpassword: _this.oldpassword, + password: _this.password, + password_confirmation: _this.password_confirmation + }); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + + /** + * Get translated text + */ + translate: function translate(text) { + return this.$t('settings.' + text); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/Payments.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/Payments.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Payments', + components: { + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default.a + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + + if (!(_this.$store.state.plans.plans.length === 0)) { + _context.next = 4; + break; + } + + _context.next = 4; + return _this.$store.dispatch('GET_PLANS'); + + case 4: + if (!_this.$store.state.user.user.stripe_id) { + _context.next = 7; + break; + } + + _context.next = 7; + return _this.$store.dispatch('GET_USERS_SUBSCRIPTIONS'); + + case 7: + _this.loading = false; + + case 8: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + loading: true, + plan: 'Startup' + }; + }, + computed: { + /** + * Check for stripe_id on user + */ + check_for_stripe_id: function check_for_stripe_id() { + return this.$store.state.user.user.stripe_id; + }, + + /** + * The current plan the user is subscribed to, if any + */ + current_plan: function current_plan() { + var _this2 = this; + + return this.plans.find(function (plan) { + return plan.name === _this2.subscription.name; + }); + }, + + /** + * Array of plans from the database + */ + plans: function plans() { + return this.$store.state.plans.plans; + }, + + /** + * If user.stripe_id exists, the active/inactive plan is here + */ + subscription: function subscription() { + return this.$store.state.subscriber.subscription; + } + }, + methods: { + /** + * The user wants to cancel their monthly subscription + */ + cancel_active_subscription: function cancel_active_subscription() { + var _this3 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return _this3.$store.dispatch('DELETE_ACTIVE_SUBSCRIPTION'); + + case 2: + case "end": + return _context2.stop(); + } + } + }, _callee2); + }))(); + }, + + /** + * The user already has a Stripe customer account / user.stripe_id and wants to resubscribe + */ + resubscribe: function resubscribe() { + var _this4 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return _this4.$store.dispatch('RESUBSCRIBE', _this4.plan); + + case 2: + case "end": + return _context3.stop(); + } + } + }, _callee3); + }))(); + }, + + /** + * The user wants to sign up for a monthly subscription + */ + subscribe: function subscribe() { + console.log('todo - load stripe'); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/Presence.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/Presence.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Presence', + data: function data() { + return { + processing: false + }; + }, + methods: { + /** + * Dispatch action to save default setting value + */ + toggle: function toggle() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('TOGGLE_LITTER_PICKED_UP_SETTING'); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + }, + computed: { + /** + * Dynamic button class + */ + button: function button() { + return this.processing ? 'button is-info is-loading' : 'button is-info'; + }, + + /** + * Todo: move the value to the new user_settings table and use the column "picked_up" + * + * if items_remaining is true, the litter is not picked up + */ + picked_up: function picked_up() { + return !this.$store.state.user.user.items_remaining; + }, + + /** + * + */ + text: function text() { + return this.picked_up ? "Your litter will be logged as picked up." : "Your litter is logged as not picked up."; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/Privacy.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/Privacy.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Privacy', + data: function data() { + return { + btn: 'button is-medium is-info', + processing: false + }; + }, + computed: { + /** + * Add ' is-loading' when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * Show personal name on the createdBy sections of any locations the user added + */ + createdby_name: { + get: function get() { + return this.user.show_name_createdby; + }, + set: function set(v) { + this.$store.commit('privacy', { + column: 'show_name_createdby', + v: v + }); + } + }, + + /** + * Show username on the createdBy sections of any locations the user added + */ + createdby_username: { + get: function get() { + return this.user.show_username_createdby; + }, + set: function set(v) { + this.$store.commit('privacy', { + column: 'show_username_createdby', + v: v + }); + } + }, + + /** + * Show personal name on any leaderboard the user qualifies for + */ + leaderboard_name: { + get: function get() { + return this.user.show_name; + }, + set: function set(v) { + this.$store.commit('privacy', { + column: 'show_name', + v: v + }); + } + }, + + /** + * Show username on any leaderboard the user qualifies for + */ + leaderboard_username: { + get: function get() { + return this.user.show_username; + }, + set: function set(v) { + this.$store.commit('privacy', { + column: 'show_username', + v: v + }); + } + }, + + /** + * Show personal name on any datapoints on any maps the user uploads data to + */ + maps_name: { + get: function get() { + return this.user.show_name_maps; + }, + set: function set(v) { + this.$store.commit('privacy', { + column: 'show_name_maps', + v: v + }); + } + }, + + /** + * Show username on any datapoints on any maps the user uploads data to + */ + maps_username: { + get: function get() { + return this.user.show_username_maps; + }, + set: function set(v) { + this.$store.commit('privacy', { + column: 'show_username_maps', + v: v + }); + } + }, + + /** + * Currently authenticated user + */ + user: function user() { + return this.$store.state.user.user; + } + }, + methods: { + /** + * Dispatch request to save all settings + */ + submit: function submit() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('SAVE_PRIVACY_SETTINGS'); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/PublicProfile.vue?vue&type=script&lang=js&": +/*!****************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/PublicProfile.vue?vue&type=script&lang=js& ***! + \****************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _components_User_Settings_PublicProfile_SocialMediaIntegration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/User/Settings/PublicProfile/SocialMediaIntegration */ "./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'PublicProfile', + components: { + SocialMediaIntegration: _components_User_Settings_PublicProfile_SocialMediaIntegration__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + data: function data() { + return { + processing: false // download: true, + // map: true, + // twitter: '', + // instagram: '', + // socialMediaLink: null + + }; + }, + computed: { + /** + * CSS class to show to style button + */ + getButtonClass: function getButtonClass() { + var c = this.show_public_profile ? 'is-danger' : 'is-primary'; + return this.processing ? c + ' is-loading' : c; + }, + + /** + * Text to show when toggling public status + */ + getButtonText: function getButtonText() { + return this.show_public_profile ? 'Make My Profile Private' : 'Make My Profile Public'; + }, + + /** + * Color to show for public/private status + */ + getColor: function getColor() { + return this.show_public_profile ? 'color: green;' : 'color: red;'; + }, + + /** + * More information to show about the current privacy status + */ + getInfoText: function getInfoText() { + return this.show_public_profile ? 'Your profile is public. Anyone can visit it and see the data you allow.' : 'Your profile is private. Only you can access it.'; + }, + + /** + * Text to show for public/private status + */ + getStatusText: function getStatusText() { + return this.show_public_profile ? 'Public' : 'Private'; + }, + + /** + * Return True to make the Profile Public + * + * Return False if UserSettings does not exist yet + */ + show_public_profile: function show_public_profile() { + var _this$$store$state$us; + + return (_this$$store$state$us = this.$store.state.user.user.settings) === null || _this$$store$state$us === void 0 ? void 0 : _this$$store$state$us.show_public_profile; + } + }, + methods: { + /** + * Change the privacy value of the users public profile + */ + toggle: function toggle() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('TOGGLE_PUBLIC_PROFILE'); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Teams/CreateTeam.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Teams/CreateTeam.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* Todo - translations */ +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'CreateTeam', + data: function data() { + return { + btn: 'button is-medium is-primary', + processing: false, + identifier: '', + name: '', + teamType: 1 + }; + }, + computed: { + /** + * Add spinner when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * Errors object from teams + */ + errors: function errors() { + return this.$store.state.teams.errors; + }, + + /** + * Number of teams the user is allowed to create + */ + remaining: function remaining() { + return this.user.remaining_teams; + }, + + /** + * Types of teams from the database + */ + teamTypes: function teamTypes() { + return this.$store.state.teams.types; + }, + + /** + * Currently authenticated user + */ + user: function user() { + return this.$store.state.user.user; + } + }, + methods: { + /** + * Clear an error with this key + */ + clearError: function clearError(key) { + if (this.errors[key]) this.$store.commit('clearTeamsError', key); + }, + + /** + * Create a new team + */ + create: function create() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('CREATE_NEW_TEAM', { + name: _this.name, + identifier: _this.identifier, + teamType: _this.teamType + }); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + + /** + * Check if any errors exist for this key + */ + errorExists: function errorExists(key) { + return this.errors.hasOwnProperty(key); + }, + + /** + * Get the first error from errors object + */ + getFirstError: function getFirstError(key) { + return this.errors[key][0]; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Teams/JoinTeam.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Teams/JoinTeam.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'JoinTeam', + data: function data() { + return { + btn: 'button is-medium is-primary', + identifier: '', + processing: false + }; + }, + computed: { + /** + * Show spinner when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * Error object from TeamsController + */ + errors: function errors() { + return this.$store.state.teams.errors; + } + }, + methods: { + /** + * Clear an error with this key + */ + clearError: function clearError(key) { + if (this.errors[key]) this.$store.commit('clearTeamsError', key); + }, + + /** + * Check if any errors exist for this key + */ + errorExists: function errorExists(key) { + return this.errors.hasOwnProperty(key); + }, + + /** + * Get the first error from errors object + */ + getFirstError: function getFirstError(key) { + return this.errors[key][0]; + }, + + /** + * Dispatch action to join a team by identifier + */ + submit: function submit() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('JOIN_TEAM', _this.identifier); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Teams/MyTeams.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Teams/MyTeams.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'MyTeams', + data: function data() { + return { + btn: 'button is-medium is-primary ml1', + loading: false, + processing: false, + changing: false, + viewTeam: null, + // the team the user is currently looking at. Different team = load different list of members + dlProcessing: false, + dlButtonClass: 'button is-medium is-info ml1', + leaderboardClass: 'button is-medium is-warning ml1', + leaderboardProcessing: false + }; + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; // if (this.teams.length === 0) await this.$store.dispatch('GET_USERS_TEAMS'); + + if (!_this.user.active_team) { + _context.next = 5; + break; + } + + _this.viewTeam = _this.activeTeam; + _context.next = 5; + return _this.$store.dispatch('GET_TEAM_MEMBERS', _this.viewTeam); + + case 5: + _this.loading = false; + + case 6: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + computed: { + /** + * Users currently active team + */ + activeTeam: function activeTeam() { + return this.user.active_team; + }, + + /** + * Add spinner when processing + */ + button: function button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * Get the current page the user is on + */ + current_page: function current_page() { + return this.members.current_page; + }, + + /** + * Return true to disable the JoinTeam button + */ + disabled: function disabled() { + if (this.processing) return true; + if (!this.viewTeam) return true; + if (this.viewTeam === this.activeTeam) return true; + return false; + }, + + /** + * Add spinner to download button class when processing + */ + downloadClass: function downloadClass() { + return this.dlProcessing ? this.dlButtonClass + ' is-loading' : this.dlButtonClass; + }, + + /** + * Check if the user.id + */ + isLeader: function isLeader() { + var _this2 = this; + + var team = this.teams.find(function (team) { + return team.id === _this2.viewTeam; + }); + return team.leader === this.user.id; + }, + + /** + * Paginated object for the team currently in view + * + * Array of team members exist at members.data + */ + members: function members() { + return this.$store.state.teams.members; + }, + + /** + * Only show Previous button if current page is greater than 1 + * If current page is 1, then we don't need to show the previous page button. + */ + show_current_page: function show_current_page() { + return this.members.current_page > 1; + }, + + /** + * Only show Previous button if next_page_url exists + */ + show_next_page: function show_next_page() { + return this.members.next_page_url; + }, + + /** + * Return bool for current team being looked at + */ + showLeaderboard: function showLeaderboard() { + var _this3 = this; + + return this.teams.find(function (team) { + return team.id === _this3.viewTeam; + }).leaderboards ? this.$t('teams.myteams.hide-from-leaderboards') : this.$t('teams.myteams.show-on-leaderboards'); + }, + + /** + * Array of all teams the user has joined + */ + teams: function teams() { + return this.$store.state.teams.teams; + }, + + /** + * Current user + */ + user: function user() { + return this.$store.state.user.user; + } + }, + methods: { + /** + * Change currently active team + */ + changeActiveTeam: function changeActiveTeam() { + var _this4 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _this4.processing = true; + _context2.next = 3; + return _this4.$store.dispatch('CHANGE_ACTIVE_TEAM', _this4.viewTeam); + + case 3: + _this4.viewTeam = _this4.activeTeam; + _this4.processing = false; + + case 5: + case "end": + return _context2.stop(); + } + } + }, _callee2); + }))(); + }, + + /** + * Change what team members the user is currently looking at + */ + changeViewedTeam: function changeViewedTeam() { + var _this5 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _this5.changing = true; + _context3.next = 3; + return _this5.$store.dispatch('GET_TEAM_MEMBERS', _this5.viewTeam); + + case 3: + _this5.changing = false; + + case 4: + case "end": + return _context3.stop(); + } + } + }, _callee3); + }))(); + }, + + /** + * Return class to show if user is currently joined this team or not + */ + checkActiveTeam: function checkActiveTeam(active_team_id) { + return active_team_id === this.viewTeam ? 'team-active' : 'team-inactive'; + }, + + /** + * Return text if the user is joined the team or not + * + * Todo - translate + */ + checkActiveTeamText: function checkActiveTeamText(active_team_id) { + if (this.changing) return '...'; + return active_team_id === this.viewTeam ? this.$t('common.active') : this.$t('common.inactive'); + }, + + /** + * Download the data from this Team + */ + download: function download() { + var _this6 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + _this6.dlProcessing = true; + _context4.next = 3; + return _this6.$store.dispatch('DOWNLOAD_DATA_FOR_TEAM', _this6.viewTeam); + + case 3: + _this6.dlProcessing = false; + + case 4: + case "end": + return _context4.stop(); + } + } + }, _callee4); + }))(); + }, + + /** + * Return the correct position for every rank in the leaderboard + */ + getRank: function getRank(index) { + if (this.members.current_page === 1) return index + 1; // 1-10 + + return index + 1 + (this.members.current_page - 1) * 10; // 11-19 + }, + + /** + * Return icon class for active/inactive team + */ + icon: function icon(active_team_id) { + return active_team_id === this.viewTeam ? 'fa fa-check' : 'fa fa-ban'; + }, + + /** + * Return medal for 1st, 2nd and 3rd + */ + medal: function medal(i) { + if (this.members.current_page === 1) { + if (i === 0) return '/assets/icons/gold-medal.png'; + if (i === 1) return '/assets/icons/silver-medal.png'; + if (i === 2) return '/assets/icons/bronze-medal.svg'; + } + + return ''; + }, + + /** + * Load the previous page of members + */ + previousPage: function previousPage() { + this.$store.dispatch('PREVIOUS_MEMBERS_PAGE', this.viewTeam); + }, + + /** + * Load the next page of members + */ + nextPage: function nextPage() { + this.$store.dispatch('NEXT_MEMBERS_PAGE', this.viewTeam); + }, + + /** + * + */ + toggleLeaderboardVis: function toggleLeaderboardVis() { + var _this7 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + _context5.next = 2; + return _this7.$store.dispatch('TOGGLE_LEADERBOARD_VISIBILITY', _this7.viewTeam); + + case 2: + case "end": + return _context5.stop(); + } + } + }, _callee5); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Teams/TeamSettings.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Teams/TeamSettings.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'TeamSettings', + data: function data() { + return { + loading: true, + viewTeam: 0, + allProcessing: false, + submitProcessing: false, + btnAll: 'button is-medium is-primary mt1', + btn: 'button is-medium is-warning mt1 mr1' + }; + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + + if (!(_this.teams.length === 0)) { + _context.next = 4; + break; + } + + _context.next = 4; + return _this.$store.dispatch('GET_USERS_TEAMS'); + + case 4: + _this.viewTeam = _this.teams[0].id; + _this.loading = false; + + case 6: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + computed: { + /** + * Add spinner when processing + */ + allButton: function allButton() { + return this.allProcessing ? this.btnAll + ' is-loading' : this.btnAll; + }, + + /** + * Return true to disable the buttons + */ + disabled: function disabled() { + return this.allProcessing || this.submitProcessing; + }, + + /** + * Add spinner when processing + */ + submitButton: function submitButton() { + return this.submitProcessing ? this.btn + ' is-loading' : this.btn; + }, + + /** + * + */ + show_name_leaderboards: { + get: function get() { + return this.team.pivot.show_name_leaderboards; + }, + set: function set(v) { + this.$store.commit('team_settings', { + team_id: this.viewTeam, + key: 'show_name_leaderboards', + v: v + }); + } + }, + + /** + * + */ + show_username_leaderboards: { + get: function get() { + return this.team.pivot.show_username_leaderboards; + }, + set: function set(v) { + this.$store.commit('team_settings', { + team_id: this.viewTeam, + key: 'show_username_leaderboards', + v: v + }); + } + }, + + /** + * + */ + show_name_maps: { + get: function get() { + return this.team.pivot.show_name_maps; + }, + set: function set(v) { + this.$store.commit('team_settings', { + team_id: this.viewTeam, + key: 'show_name_maps', + v: v + }); + } + }, + + /** + * + */ + show_username_maps: { + get: function get() { + return this.team.pivot.show_username_maps; + }, + set: function set(v) { + this.$store.commit('team_settings', { + team_id: this.viewTeam, + key: 'show_username_maps', + v: v + }); + } + }, + + /** + * Current team we are viewing + */ + team: function team() { + var _this2 = this; + + return this.teams.find(function (team) { + return team.id === _this2.viewTeam; + }); + }, + + /** + * Array of the users teams + */ + teams: function teams() { + return this.$store.state.teams.teams; + } + }, + methods: { + /** + * Apply these settings to this team for this user + */ + submit: function submit(all) { + var _this3 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + all ? _this3.allProcessing = true : _this3.submitProcessing = true; + _context2.next = 3; + return _this3.$store.dispatch('SAVE_TEAM_SETTINGS', { + all: all, + team_id: _this3.viewTeam + }); + + case 3: + _this3.submitProcessing = false; + _this3.allProcessing = false; + + case 5: + case "end": + return _context2.stop(); + } + } + }, _callee2); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Teams/Teams.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Teams/Teams.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _TeamsDashboard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TeamsDashboard */ "./resources/js/views/Teams/TeamsDashboard.vue"); +/* harmony import */ var _CreateTeam__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateTeam */ "./resources/js/views/Teams/CreateTeam.vue"); +/* harmony import */ var _JoinTeam__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./JoinTeam */ "./resources/js/views/Teams/JoinTeam.vue"); +/* harmony import */ var _MyTeams__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MyTeams */ "./resources/js/views/Teams/MyTeams.vue"); +/* harmony import */ var _TeamSettings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TeamSettings */ "./resources/js/views/Teams/TeamSettings.vue"); +/* harmony import */ var _TeamsLeaderboard__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TeamsLeaderboard */ "./resources/js/views/Teams/TeamsLeaderboard.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Teams', + components: { + TeamsDashboard: _TeamsDashboard__WEBPACK_IMPORTED_MODULE_1__["default"], + CreateTeam: _CreateTeam__WEBPACK_IMPORTED_MODULE_2__["default"], + JoinTeam: _JoinTeam__WEBPACK_IMPORTED_MODULE_3__["default"], + MyTeams: _MyTeams__WEBPACK_IMPORTED_MODULE_4__["default"], + TeamSettings: _TeamSettings__WEBPACK_IMPORTED_MODULE_5__["default"], + TeamsLeaderboard: _TeamsLeaderboard__WEBPACK_IMPORTED_MODULE_6__["default"] + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + _context.next = 3; + return _this.$store.dispatch('GET_TEAM_TYPES'); + + case 3: + if (!(_this.teams.length === 0)) { + _context.next = 6; + break; + } + + _context.next = 6; + return _this.$store.dispatch('GET_USERS_TEAMS'); + + case 6: + _this.loading = false; + + case 7: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + loading: true, + items: [{ + name: this.$t('teams.dashboard.dashboard'), + icon: 'fa fa-home teams-icon', + component: 'TeamsDashboard' + }, { + name: this.$t('teams.dashboard.join-a-team'), + icon: 'fa fa-sign-in teams-icon', + component: 'JoinTeam' + }, { + name: this.$t('teams.dashboard.create-a-team'), + icon: 'fa fa-plus teams-icon', + component: 'CreateTeam' + }, { + name: this.$t('teams.dashboard.your-teams'), + icon: 'fa fa-users teams-icon', + component: 'MyTeams' + }, { + name: this.$t('teams.dashboard.leaderboard'), + icon: 'fa fa-trophy teams-icon', + component: 'TeamsLeaderboard' + }, // todo - sub routes = Team members, Team charts, Team map + { + name: this.$t('teams.dashboard.settings'), + icon: 'fa fa-gear teams-icon', + component: 'TeamSettings' + }] + }; + }, + computed: { + /** + * Array of teams the user has joined + */ + teams: function teams() { + return this.$store.state.teams.teams; + }, + + /** + * What component to show + */ + type: function type() { + return this.$store.state.teams.component_type; + } + }, + methods: { + /** + * Change component + */ + "goto": function goto(type) { + this.$store.commit('teamComponent', type); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Teams/TeamsDashboard.vue?vue&type=script&lang=js&": +/*!**************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Teams/TeamsDashboard.vue?vue&type=script&lang=js& ***! + \**************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _components_Teams_TeamMap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/Teams/TeamMap */ "./resources/js/components/Teams/TeamMap.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'TeamsDashboard', + components: { + TeamMap: _components_Teams_TeamMap__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + _context.next = 3; + return _this.changeTeamOrTime(); + + case 3: + _this.loading = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + period: 'all', + timePeriods: ['today', 'week', 'month', 'year', 'all'], + loading: true, + viewTeam: 0 + }; + }, + computed: { + /** + * Total litter uploaded during this period + */ + litter_count: function litter_count() { + return this.$store.state.teams.allTeams.litter_count; + }, + + /** + * Total photos uploaded during this period + */ + photos_count: function photos_count() { + return this.$store.state.teams.allTeams.photos_count; + }, + + /** + * Total number of members who uploaded photos during this period + */ + members_count: function members_count() { + return this.$store.state.teams.allTeams.members_count; + }, + + /** + * Teams the user has joined + * + * Show active team + */ + teams: function teams() { + return this.$store.state.teams.teams; + } + }, + methods: { + /** + * Change the time period for what data is visible on the dashboard + */ + changeTeamOrTime: function changeTeamOrTime() { + var _this2 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return _this2.$store.dispatch('GET_TEAM_DASHBOARD_DATA', { + period: _this2.period, + team_id: _this2.viewTeam + }); + + case 2: + case "end": + return _context2.stop(); + } + } + }, _callee2); + }))(); + }, + + /** + * Return translated time period + */ + getPeriod: function getPeriod(period) { + if (!period) period = this.period; + return this.$t('teams.dashboard.times.' + period); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Teams/TeamsLeaderboard.vue?vue&type=script&lang=js&": +/*!****************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Teams/TeamsLeaderboard.vue?vue&type=script&lang=js& ***! + \****************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: "TeamsLeaderboard", + data: function data() { + return { + loading: true + }; + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this.$store.dispatch('GET_TEAMS_LEADERBOARD'); + + case 2: + _this.loading = false; + + case 3: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + computed: { + /** + * Array of teams in the leaderboard + */ + teams: function teams() { + return this.$store.state.teams.leaderboard; + } + }, + methods: { + /** + * + */ + getDate: function getDate(date) { + return moment__WEBPACK_IMPORTED_MODULE_1___default()(date).format('LL'); + }, + + /** + * Return medal for 1st, 2nd and 3rd + */ + medal: function medal(i) { + if (i === 0) return '/assets/icons/gold-medal.png'; + if (i === 1) return '/assets/icons/silver-medal.png'; + if (i === 2) return '/assets/icons/bronze-medal.svg'; + return ''; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/admin/VerifyPhotos.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/admin/VerifyPhotos.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _components_Litter_AddTags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/Litter/AddTags */ "./resources/js/components/Litter/AddTags.vue"); +/* harmony import */ var _components_Litter_Tags__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/Litter/Tags */ "./resources/js/components/Litter/Tags.vue"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'VerifyPhotos', + components: { + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default.a, + AddTags: _components_Litter_AddTags__WEBPACK_IMPORTED_MODULE_3__["default"], + Tags: _components_Litter_Tags__WEBPACK_IMPORTED_MODULE_4__["default"] + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + _context.next = 3; + return _this.$store.dispatch('GET_NEXT_ADMIN_PHOTO'); + + case 3: + _this.loading = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + loading: true, + processing: false, + btn: 'button is-large is-success', + // button classes + deleteButton: 'button is-large is-danger mb1', + deleteVerify: 'button is-large is-warning mb1', + verifyClass: 'button is-large is-success mb1' + }; + }, + computed: { + /** + * Return true to disable when processing or if no new tags exist + */ + checkUpdateTagsDisabled: function checkUpdateTagsDisabled() { + if (this.processing || this.$store.state.litter.hasAddedNewTag === false) return true; + return false; + }, + + /** + * + */ + delete_button: function delete_button() { + return this.processing ? this.deleteButton + ' is-loading' : this.deleteButton; + }, + + /** + * + */ + delete_verify_button: function delete_verify_button() { + return this.processing ? this.deleteVerify + ' is-loading' : this.deleteVerify; + }, + + /** + * The photo we are verifying + */ + photo: function photo() { + return this.$store.state.admin.photo; + }, + + /** + * Total number of photos that are uploaded and not tagged + */ + photosNotProcessed: function photosNotProcessed() { + return this.$store.state.admin.not_processed; + }, + + /** + * Total number of photos that are waiting to be verified + */ + photosAwaitingVerification: function photosAwaitingVerification() { + return this.$store.state.admin.awaiting_verification; + }, + + /** + * + */ + update_new_tags_button: function update_new_tags_button() { + return this.processing ? this.verifyClass + ' is-loading' : this.verifyClass; + }, + + /** + * + */ + uploadedTime: function uploadedTime() { + return moment__WEBPACK_IMPORTED_MODULE_5___default()(this.photo.created_at).format('LLL'); + }, + + /** + * + */ + verify_correct_button: function verify_correct_button() { + return this.processing ? this.btn + ' is-loading' : this.btn; + } + }, + methods: { + /** + * Delete the image and its records + */ + adminDelete: function adminDelete(id) { + var _this2 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _this2.processing = true; + _context2.next = 3; + return _this2.$store.dispatch('ADMIN_DELETE_IMAGE'); + + case 3: + _this2.processing = false; + + case 4: + case "end": + return _context2.stop(); + } + } + }, _callee2); + }))(); + }, + + /** + * Reset the tags the user has submitted + */ + clearTags: function clearTags() { + this.$store.commit('setAllTagsToZero', this.photo.id); + }, + + /** + * Remove the users recent tags + */ + clearRecentTags: function clearRecentTags() { + this.$store.commit('initRecentTags', {}); + this.$localStorage.remove('recentTags'); + }, + + /** + * Send the image back to the use + */ + incorrect: function incorrect() { + var _this3 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _this3.processing = true; + _context3.next = 3; + return _this3.$store.dispatch('ADMIN_RESET_TAGS'); + + case 3: + _this3.processing = false; + + case 4: + case "end": + return _context3.stop(); + } + } + }, _callee3); + }))(); + }, + + /** + * The users tags were correct ! + */ + verifyCorrect: function verifyCorrect() { + var _this4 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + _this4.processing = true; + _context4.next = 3; + return _this4.$store.dispatch('ADMIN_VERIFY_CORRECT'); + + case 3: + _this4.processing = false; + + case 4: + case "end": + return _context4.stop(); + } + } + }, _callee4); + }))(); + }, + // Verify an updated image and delete the image + verifyDelete: function verifyDelete() { + var _this5 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + _this5.processing = true; + _context5.next = 3; + return _this5.$store.dispatch('ADMIN_VERIFY_DELETE'); + + case 3: + _this5.processing = false; + + case 4: + case "end": + return _context5.stop(); + } + } + }, _callee5); + }))(); + }, + + /** + * Update the data and keep the image + */ + updateNewTags: function updateNewTags() { + var _this6 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _this6.processing = true; + _context6.next = 3; + return _this6.$store.dispatch('ADMIN_UPDATE_WITH_NEW_TAGS'); + + case 3: + _this6.processing = false; + + case 4: + case "end": + return _context6.stop(); + } + } + }, _callee6); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/bbox/BoundingBox.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/bbox/BoundingBox.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _components_Admin_Boxes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/Admin/Boxes */ "./resources/js/components/Admin/Boxes.vue"); +/* harmony import */ var _components_Litter_Tags__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/Litter/Tags */ "./resources/js/components/Litter/Tags.vue"); +/* harmony import */ var _components_Litter_AddTags__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/Litter/AddTags */ "./resources/js/components/Litter/AddTags.vue"); +/* harmony import */ var _components_Admin_Bbox_BrandsBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/Admin/Bbox/BrandsBox */ "./resources/js/components/Admin/Bbox/BrandsBox.vue"); +/* harmony import */ var vue_drag_resize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue-drag-resize */ "./node_modules/vue-drag-resize/dist/index.js"); +/* harmony import */ var vue_drag_resize__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue_drag_resize__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var vue_click_outside__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vue-click-outside */ "./node_modules/vue-click-outside/index.js"); +/* harmony import */ var vue_click_outside__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vue_click_outside__WEBPACK_IMPORTED_MODULE_8__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'BoundingBox', + components: { + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default.a, + Tags: _components_Litter_Tags__WEBPACK_IMPORTED_MODULE_4__["default"], + AddTags: _components_Litter_AddTags__WEBPACK_IMPORTED_MODULE_5__["default"], + Boxes: _components_Admin_Boxes__WEBPACK_IMPORTED_MODULE_3__["default"], + VueDragResize: vue_drag_resize__WEBPACK_IMPORTED_MODULE_7___default.a, + BrandsBox: _components_Admin_Bbox_BrandsBox__WEBPACK_IMPORTED_MODULE_6__["default"] + }, + directives: { + ClickOutside: vue_click_outside__WEBPACK_IMPORTED_MODULE_8___default.a + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (window.innerWidth < 1000) { + _this.isMobile = true; + _this.stickSize = 30; + } + + if (window.location.href.includes('verify')) { + _this.isVerifying = true; + + _this.$store.dispatch('GET_NEXT_BOXES_TO_VERIFY'); + } else { + _this.$store.dispatch('GET_NEXT_BBOX'); + } + + case 2: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + stickSize: 6, + skip_processing: false, + update_processing: false, + wrong_tags_processing: false, + isMobile: false, + isVerifying: false + }; + }, + mounted: function mounted() { + var _this2 = this; + + document.addEventListener("keydown", function (e) { + var key = e.key; // dont need this anymore? + // if (key === "Backspace") + // { + // this.$store.commit('removeActiveBox'); + // } + + if (key === "ArrowUp") { + e.preventDefault(); + + _this2.$store.commit('moveBoxUp'); + } else if (key === "ArrowRight") { + e.preventDefault(); + + _this2.$store.commit('moveBoxRight'); + } else if (key === "ArrowDown") { + e.preventDefault(); + + _this2.$store.commit('moveBoxDown'); + } else if (key === "ArrowLeft") { + e.preventDefault(); + + _this2.$store.commit('moveBoxLeft'); + } + }); + }, + computed: { + /** + * Array of bounding boxes + */ + boxes: function boxes() { + return this.$store.state.bbox.boxes; + }, + + /** + * Return true to disable all buttons + */ + disabled: function disabled() { + return this.skip_processing || this.update_processing || this.wrong_tags_processing; + }, + + /** + * Return main title + */ + getTitle: function getTitle() { + return this.isVerifying ? "Verify boxes for image # ".concat(this.imageId) : "Add bounding box to image # ".concat(this.imageId); + }, + + /** + * Filename of the image from the database + */ + image: function image() { + return 'backgroundImage: url(' + this.$store.state.admin.filename + ')'; + }, + + /** + * The ID of the image being edited + */ + imageId: function imageId() { + return this.$store.state.admin.id; + }, + + /** + * Boolean + */ + isAdmin: function isAdmin() { + return this.$store.state.user.admin || this.$store.state.user.helper; + }, + + /** + * Total number of Littercoins the user has earned + */ + littercoinEarned: function littercoinEarned() { + return this.$store.state.user.user.littercoin_owed + this.$store.state.user.user.littercoin_allowance; + }, + + /** + * Number of boxes the user has left to verify to earn a Littercoin + */ + littercoinProgress: function littercoinProgress() { + return this.$store.state.user.user.bbox_verification_count + "%"; + }, + + /** + * Boolean + */ + loading: function loading() { + return this.$store.state.admin.loading; + }, + + /** + * Add spinner when processing + */ + skipButton: function skipButton() { + var str = 'button is-medium is-warning mt1 '; + return this.skip_processing ? str + ' is-loading' : str; + }, + + /** + * Total count of all boxes submitted by all users + */ + totalBoxCount: function totalBoxCount() { + return this.$store.state.bbox.totalBoxCount; + }, + + /** + * Total number of boxes submitted by the current user + */ + usersBoxCount: function usersBoxCount() { + return this.$store.state.bbox.usersBoxCount; + }, + + /** + * Add spinner when processing + */ + updateButton: function updateButton() { + var str = 'button is-medium is-primary mt1 '; + return this.update_processing ? str + 'is-loading' : str; + }, + + /** + * Add spinner when processing + */ + wrongTagsButton: function wrongTagsButton() { + var str = 'button is-medium is-primary mt1 '; + return this.wrong_tags_processing ? str + 'is-loading' : str; + } + }, + methods: { + /** + * Box.active => True + */ + activated: function activated(id) { + this.$store.commit('activateBox', id); + }, + + /** + * + */ + boxText: function boxText(id, showLabel, category, tag) { + return showLabel ? this.$t("litter.".concat(category, ".").concat(tag)) : id; + }, + + /** + * Deactivate all boxes + */ + deactivate: function deactivate() { + this.$store.commit('deactivateBoxes'); + }, + + /** + * Dragging active box + */ + dragging: function dragging(newRect) { + this.$store.commit('updateBoxPosition', newRect); + }, + + /** + * Resize active box + */ + resize: function resize(newRect) { + this.stickSize = 1; + this.$store.commit('updateBoxPosition', newRect); + }, + + /** + * When resizing stops, reset the sticks-size + */ + resizestop: function resizestop() { + this.stickSize = this.isMobile ? 30 : 6; + }, + + /** + * Skip this image + * + * Mark as cannot be used for bounding boxes + */ + skip: function skip() { + var _this3 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _this3.skip_processing = true; + _context2.next = 3; + return _this3.$store.dispatch('BBOX_SKIP_IMAGE', _this3.isVerifying); + + case 3: + _this3.skip_processing = false; + + case 4: + case "end": + return _context2.stop(); + } + } + }, _callee2); + }))(); + }, + + /** + * Update the tags for this image + */ + update: function update() { + var _this4 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _this4.update_processing = true; + _context3.next = 3; + return _this4.$store.dispatch('BBOX_UPDATE_TAGS'); + + case 3: + _this4.update_processing = false; + + case 4: + case "end": + return _context3.stop(); + } + } + }, _callee3); + }))(); + }, + + /** + * For a non-admin, they can mark the image with wrong tags + * + * Only admin can update Tags at stage 2 + */ + wrongTags: function wrongTags() { + this.wrong_tags_processing = true; + this.$store.dispatch('BBOX_WRONG_TAGS'); + this.wrong_tags_processing = false; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/general/Credits.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/general/Credits.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Credits' +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/general/Privacy.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/general/Privacy.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Privacy' +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/general/Profile.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/general/Profile.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _components_Profile_top_ProfileWelcome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/Profile/top/ProfileWelcome */ "./resources/js/components/Profile/top/ProfileWelcome.vue"); +/* harmony import */ var _components_Profile_top_ProfileStats__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../components/Profile/top/ProfileStats */ "./resources/js/components/Profile/top/ProfileStats.vue"); +/* harmony import */ var _components_Profile_top_ProfileNextTarget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/Profile/top/ProfileNextTarget */ "./resources/js/components/Profile/top/ProfileNextTarget.vue"); +/* harmony import */ var _components_Profile_middle_ProfileCategories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/Profile/middle/ProfileCategories */ "./resources/js/components/Profile/middle/ProfileCategories.vue"); +/* harmony import */ var _components_Profile_middle_ProfileMap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/Profile/middle/ProfileMap */ "./resources/js/components/Profile/middle/ProfileMap.vue"); +/* harmony import */ var _components_Profile_middle_ProfileCalendar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/Profile/middle/ProfileCalendar */ "./resources/js/components/Profile/middle/ProfileCalendar.vue"); +/* harmony import */ var _components_Profile_bottom_ProfileDownload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../components/Profile/bottom/ProfileDownload */ "./resources/js/components/Profile/bottom/ProfileDownload.vue"); +/* harmony import */ var _components_Profile_bottom_ProfileTimeSeries__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../components/Profile/bottom/ProfileTimeSeries */ "./resources/js/components/Profile/bottom/ProfileTimeSeries.vue"); +/* harmony import */ var _components_Profile_bottom_ProfilePhotos__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../components/Profile/bottom/ProfilePhotos */ "./resources/js/components/Profile/bottom/ProfilePhotos.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + + + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Profile', + components: { + ProfileWelcome: _components_Profile_top_ProfileWelcome__WEBPACK_IMPORTED_MODULE_1__["default"], + ProfileTimeSeries: _components_Profile_bottom_ProfileTimeSeries__WEBPACK_IMPORTED_MODULE_8__["default"], + ProfileStats: _components_Profile_top_ProfileStats__WEBPACK_IMPORTED_MODULE_2__["default"], + ProfileNextTarget: _components_Profile_top_ProfileNextTarget__WEBPACK_IMPORTED_MODULE_3__["default"], + ProfileCategories: _components_Profile_middle_ProfileCategories__WEBPACK_IMPORTED_MODULE_4__["default"], + ProfileMap: _components_Profile_middle_ProfileMap__WEBPACK_IMPORTED_MODULE_5__["default"], + ProfileCalendar: _components_Profile_middle_ProfileCalendar__WEBPACK_IMPORTED_MODULE_6__["default"], + ProfileDownload: _components_Profile_bottom_ProfileDownload__WEBPACK_IMPORTED_MODULE_7__["default"], + ProfilePhotos: _components_Profile_bottom_ProfilePhotos__WEBPACK_IMPORTED_MODULE_9__["default"] + }, + mounted: function mounted() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this.$store.dispatch('GET_CURRENT_USER'); + + case 2: + _context.next = 4; + return _this.$store.dispatch('GET_USERS_PROFILE_DATA'); + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/general/References.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/general/References.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'References', + created: function created() { + window.scrollTo(0, 0); + }, + data: function data() { + return { + items: [{ + date: '2018/06/25', + title: 'OpenLitterMap.com – Open Data on Plastic Pollution with Blockchain Rewards (Littercoin)', + link: 'https://opengeospatialdata.springeropen.com/articles/10.1186/s40965-018-0050-y', + author: 'Lynch, S.' + }, { + date: '2018/12/21', + title: 'A Review of the Applicability of Gamification and Game-based Learning to Improve Household-level Waste Management Practices among Schoolchildren', + link: 'https://ijtech.eng.ui.ac.id/article/view/2644', + author: 'Magista et al.' + }, { + date: '2019/01/05', + title: 'Needs, drivers, participants and engagement actions: a framework for motivating contributions to volunteered geographic information systems', + link: 'https://link.springer.com/article/10.1007/s10109-018-00289-5', + author: 'Gómez-Barrón, et al.' + }, { + date: '2019/10/08', + title: 'CITIZEN SCIENCE AND DATA INTEGRATION FOR UNDERSTANDING MARINE LITTER', + link: 'http://pure.iiasa.ac.at/id/eprint/16095/1/22_Camera_ready_paper.pdf', + author: 'Campbell et al.' + }, { + date: '2019/10/09', + title: 'Citizen science and the United Nations Sustainable Development Goals', + link: 'https://www.nature.com/articles/s41893-019-0390-3', + author: 'Fritz et al.' + }, { + date: '2019/12/04', + title: 'Citizen Science - International Encyclopedia of Human Geography (Second Edition, Pages 209-214)', + link: 'https://www.sciencedirect.com/science/article/pii/B9780081022955106018', + author: 'Fast, V. and Haworth, B.' + }, { + date: null, + title: 'Workflows and Spatial Analysis in the Age of GeoBlockchain: A Land Ownership Example', + link: 'https://cartogis.org/docs/autocarto/2020/docs/abstracts/3e%20Workflows%20and%20Spatial%20Analysis%20in%20the%20Age%20of%20GeoBlockchain%20A%20Land.pdf', + author: 'Papantonioua, C. and Hilton, B.' + }, { + date: '2020/06/09', + title: 'Open data and its peers: understanding promising harbingers from Nordic Europe', + link: 'https://www.emerald.com/insight/content/doi/10.1108/AJIM-12-2019-0364/full/html', + author: 'Kessen, M.' + }, { + date: '2020/06/13', + title: 'Volunteered geographic information systems: Technological design patterns', + link: 'https://onlinelibrary.wiley.com/doi/abs/10.1111/tgis.12544', + author: 'Gómez-Barrón, et al.' + }, { + date: '2020/07/02', + title: 'Mapping citizen science contributions to the UN sustainable development goals', + link: 'https://link.springer.com/article/10.1007/s11625-020-00833-7', + author: 'Fraisl et al.' + }, { + date: '2020/08/27', + title: 'Official Survey Data and Virtual Worlds—Designing an Integrative and Economical Open Source Production Pipeline for xR-Applications in Small and Medium-Sized Enterprises', + link: 'file:///Users/sean/Documents/BDCC-04-00026-v2.pdf', + author: 'Höhl, W.' + }, { + date: '2020/11/02', + title: 'Citizen science and marine conservation: a global review', + link: 'https://royalsocietypublishing.org/doi/full/10.1098/rstb.2019.0461', + author: 'Kelly et al.' + }, { + date: '2020/11/04', + title: 'Towards fair and efficient task allocation in blockchain-based crowdsourcing', + link: 'https://link.springer.com/article/10.1007/s42045-020-00043-w', + author: 'Pang et al.' + }, { + date: '2020/12/21', + title: 'Open-source geospatial tools and technologies for urban and environmental studies', + link: 'https://opengeospatialdata.springeropen.com/articles/10.1186/s40965-020-00078-2', + author: 'Mobasheri et al.' + }, { + date: '2021/02/01', + title: 'Analysis of plastic water pollution data', + link: 'https://dspace.lib.uom.gr/bitstream/2159/25376/1/BesiouEleutheriaMsc2021.pdf', + author: 'ΜΠΕΣΙΟΥ, E.' + }, { + date: '2021/03/04', + title: 'Autonomous, Onboard Vision-Based Trash and Litter Detection in Low Altitude Aerial Images Collected by an Unmanned Aerial Vehicle', + link: 'https://www.researchgate.net/profile/Mateusz-Piechocki-2/publication/349869848_Autonomous_Onboard_Vision-Based_Trash_and_Litter_Detection_in_Low_Altitude_Aerial_Images_Collected_by_an_Unmanned_Aerial_Vehicle/links/60450db2a6fdcc9c781dc33b/Autonomous-Onboard-Vision-Based-Trash-and-Litter-Detection-in-Low-Altitude-Aerial-Images-Collected-by-an-Unmanned-Aerial-Vehicle.pdf', + author: 'Kraft et al.' + }, { + date: '2021/05/06', + title: 'Blockchain technologies to address smart city and society challenges', + link: 'https://www.sciencedirect.com/science/article/abs/pii/S0747563221001771', + author: 'Mora et al.' + }, { + date: '2021/05/17', + title: 'Waste detection in Pomerania: Non-profit project for detecting waste in environment', + link: 'https://arxiv.org/pdf/2105.06808.pdf', + author: 'Majchrowska et al.' + }, { + date: '2021/05/17', + title: 'This city is not a bin: Crowdmapping the distribution of urban litter', + link: 'https://github.com/andrea-ballatore/litter-dynamics/blob/885de9c61d0b669d007ad871c8494851ce43da9a/publications/ballatore_et_al-2021-city_not_a_bin_crowdmapping.pdf', + author: 'Ballatore et al.' + }, { + date: '2021/08/23', + title: 'Using citizen science data to monitor the Sustainable Development Goals: a bottom-up analysis', + link: 'https://link.springer.com/article/10.1007/s11625-021-01001-1', + author: 'Ballerini & Bergh' + }, { + date: '2021/09/30', + title: 'Is Downloading this App Consistent with my Values?', + link: 'https://arxiv.org/pdf/2106.12458.pdf', + author: 'Carter, S.' + }] + }; + }, + methods: { + /** + * Return formatted date if it exists + */ + getDate: function getDate(date) { + return date ? moment__WEBPACK_IMPORTED_MODULE_0___default()(date).format('LL') : 'unknown'; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/general/Tag.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/general/Tag.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _components_Litter_AddTags__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/Litter/AddTags */ "./resources/js/components/Litter/AddTags.vue"); +/* harmony import */ var _components_Litter_Presence__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/Litter/Presence */ "./resources/js/components/Litter/Presence.vue"); +/* harmony import */ var _components_Litter_Tags__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/Litter/Tags */ "./resources/js/components/Litter/Tags.vue"); +/* harmony import */ var _components_Litter_ProfileDelete__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../components/Litter/ProfileDelete */ "./resources/js/components/Litter/ProfileDelete.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Tag', + components: { + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_2___default.a, + AddTags: _components_Litter_AddTags__WEBPACK_IMPORTED_MODULE_4__["default"], + Presence: _components_Litter_Presence__WEBPACK_IMPORTED_MODULE_5__["default"], + Tags: _components_Litter_Tags__WEBPACK_IMPORTED_MODULE_6__["default"], + ProfileDelete: _components_Litter_ProfileDelete__WEBPACK_IMPORTED_MODULE_7__["default"] + }, + mounted: function mounted() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.loading = true; + _context.next = 3; + return _this.$store.dispatch('GET_CURRENT_USER'); + + case 3: + _context.next = 5; + return _this.$store.dispatch('GET_PHOTOS_FOR_TAGGING'); + + case 5: + _this.loading = false; + + case 6: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + data: function data() { + return { + loading: true + }; + }, + computed: { + /** + * Get the current page the user is on + */ + current_page: function current_page() { + return this.$store.state.photos.paginate.current_page; + }, + + /** + * Return true and show Clear Recent Tags button if the user has recent tags + */ + hasRecentTags: function hasRecentTags() { + return Object.keys(this.$store.state.litter.recentTags).length > 0; + }, + + /** + * Paginated array of the users photos where verification = 0 + */ + photos: function photos() { + var _this$$store$state, _this$$store$state$ph, _this$$store$state$ph2; + + return (_this$$store$state = this.$store.state) === null || _this$$store$state === void 0 ? void 0 : (_this$$store$state$ph = _this$$store$state.photos) === null || _this$$store$state$ph === void 0 ? void 0 : (_this$$store$state$ph2 = _this$$store$state$ph.paginate) === null || _this$$store$state$ph2 === void 0 ? void 0 : _this$$store$state$ph2.data; + }, + + /** + * URL for the previous page, if it exists. + */ + previous_page: function previous_page() { + var _this$$store$state$ph3; + + return (_this$$store$state$ph3 = this.$store.state.photos.paginate) === null || _this$$store$state$ph3 === void 0 ? void 0 : _this$$store$state$ph3.prev_page_url; + }, + + /** + * Number of photos the user has left to verify. Verification = 0 + */ + remaining: function remaining() { + return this.$store.state.photos.remaining; + }, + + /** + * Only show Previous button if current page is greater than 1 + * If current page is 1, then we don't need to show the previous page button. + */ + show_current_page: function show_current_page() { + return this.$store.state.photos.paginate.current_page > 1; + }, + + /** + * Only show Previous button if next_page_url exists + */ + show_next_page: function show_next_page() { + return this.$store.state.photos.paginate.next_page_url; + }, + + /** + * Currently authenticated user + */ + user: function user() { + return this.$store.state.user.user; + } + }, + methods: { + /** + * Remove the users recent tags + */ + clearRecentTags: function clearRecentTags() { + this.$store.commit('initRecentTags', {}); + this.$localStorage.remove('recentTags'); + }, + + /** + * Format date + */ + getDate: function getDate(date) { + return moment__WEBPACK_IMPORTED_MODULE_1___default()(date).format('LLL'); + }, + + /** + * Load a specific page + */ + goToPage: function goToPage(i) { + this.$store.dispatch('SELECT_IMAGE', i); + }, + + /** + * Load the next image + */ + nextImage: function nextImage() { + this.$store.dispatch('NEXT_IMAGE'); + }, + + /** + * Load the previous page + */ + previousImage: function previousImage() { + this.$store.dispatch('PREVIOUS_IMAGE'); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/general/Terms.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/general/Terms.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Terms' +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/general/Upload.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/general/Upload.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue2_dropzone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue2-dropzone */ "./node_modules/vue2-dropzone/dist/vue2Dropzone.js"); +/* harmony import */ var vue2_dropzone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue2_dropzone__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); +/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Upload', + components: { + vueDropzone: vue2_dropzone__WEBPACK_IMPORTED_MODULE_1___default.a + }, + data: function data() { + return { + options: { + url: '/submit', + thumbnailWidth: 150, + maxFilesize: 20, + headers: { + 'X-CSRF-TOKEN': window.axios.defaults.headers.common['X-CSRF-TOKEN'] + }, + includeStyling: true, + duplicateCheck: true, + paramName: 'file' + }, + showTagLitterButton: true + }; + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!Object.keys(_this.$store.state.user.user.length === 0)) { + _context.next = 3; + break; + } + + _context.next = 3; + return _this.$store.dispatch('GET_CURRENT_USER'); + + case 3: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + methods: { + /** + * Show the error when the user hovers over the X + * + * Todo: Show the error without having to hover over the X. + */ + failed: function failed(file, message) { + var elements = document.querySelectorAll('.dz-error-message span'); + var lastElement = elements[elements.length - 1]; + lastElement.textContent = message.message; + var title = this.$t('notifications.error'); + var body = message.message; + vue__WEBPACK_IMPORTED_MODULE_2___default.a.$vToastify.error({ + title: title, + body: body, + position: 'top-right', + type: 'error' + }); + }, + + /** + * A file has been added to the Dropzone + */ + uploadStarted: function uploadStarted(file) { + this.showTagLitterButton = false; + }, + + /** + * All file uploads have finished + */ + uploadCompleted: function uploadCompleted(response) { + this.showTagLitterButton = true; + }, + + /** + * Redirect the user to /tag + */ + tag: function tag() { + this.$router.push({ + path: '/tag' + }); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/global/GlobalMapContainer.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/global/GlobalMapContainer.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-loading-overlay */ "./node_modules/vue-loading-overlay/dist/vue-loading.min.js"); +/* harmony import */ var vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-loading-overlay/dist/vue-loading.css */ "./node_modules/vue-loading-overlay/dist/vue-loading.css"); +/* harmony import */ var vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_loading_overlay_dist_vue_loading_css__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _Supercluster__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Supercluster */ "./resources/js/views/global/Supercluster.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'GlobalMapContainer', + components: { + Loading: vue_loading_overlay__WEBPACK_IMPORTED_MODULE_1___default.a, + Supercluster: _Supercluster__WEBPACK_IMPORTED_MODULE_3__["default"] + }, + data: function data() { + return { + mapHeight: window.outerHeight - 72 + }; + }, + created: function created() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (_this.isMobile) _this.addEventListenerIfMobile(); + _context.next = 3; + return _this.$store.dispatch('GET_CLUSTERS', 2); + + case 3: + _context.next = 5; + return _this.$store.dispatch('GET_ART_DATA'); + + case 5: + _this.$store.commit('globalLoading', false); + + case 6: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + destroyed: function destroyed() { + var _this2 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + window.removeEventListener("resize", _this2.resizeHandler); + + case 1: + case "end": + return _context2.stop(); + } + } + }, _callee2); + }))(); + }, + computed: { + /** + * Show loading when changing dates + */ + loading: function loading() { + return this.$store.state.globalmap.loading; + }, + + /** + * Return true if the device is mobile + */ + isMobile: function isMobile() { + return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); + } + }, + methods: { + /** + * + */ + addEventListenerIfMobile: function addEventListenerIfMobile() { + this.mapHeight = window.innerHeight - 72 + "px"; + window.addEventListener("resize", this.resizeHandler); + }, + + /** + * Sets the display height for mobile devices + */ + resizeHandler: function resizeHandler() { + this.mapHeight = window.innerHeight - 72 + "px"; + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/global/Supercluster.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/global/Supercluster.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _components_LiveEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/LiveEvents */ "./resources/js/components/LiveEvents.vue"); +/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../constants */ "./resources/js/constants/index.js"); +/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! leaflet */ "./node_modules/leaflet/dist/leaflet-src.js"); +/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(leaflet__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _SmoothWheelZoom_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SmoothWheelZoom.js */ "./resources/js/views/global/SmoothWheelZoom.js"); +/* harmony import */ var _SmoothWheelZoom_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_SmoothWheelZoom_js__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../i18n */ "./resources/js/i18n.js"); +/* harmony import */ var leaflet_glify__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! leaflet.glify */ "./node_modules/leaflet.glify/dist/glify-browser.js"); +/* harmony import */ var leaflet_glify__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(leaflet_glify__WEBPACK_IMPORTED_MODULE_7__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// + // import GlobalDates from '../../components/global/GlobalDates' + + + + + + // Todo - fix this export bug (The request of a dependency is an expression...) + + +var map; +var clusters; +var litterArtPoints; +var points; +var prevZoom = _constants__WEBPACK_IMPORTED_MODULE_2__["MIN_ZOOM"]; +var pointsLayerController; +var globalLayerController; +var pointsControllerShowing = false; +var globalControllerShowing = false; +var green_dot = leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.icon({ + iconUrl: './images/vendor/leaflet/dist/dot.png', + iconSize: [10, 10] +}); +var grey_dot = leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.icon({ + iconUrl: './images/vendor/leaflet/dist/grey-dot.jpg', + iconSize: [13, 10] +}); +/** + * Create the point to display for each piece of Litter Art + */ + +function createArtIcon(feature, latlng) { + var x = [latlng.lng, latlng.lat]; + return feature.properties.verified === 2 ? leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.marker(x, { + icon: green_dot + }) : leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.marker(x, { + icon: grey_dot + }); +} +/** + * Create the cluster or point icon to display for each feature + */ + + +function createClusterIcon(feature, latlng) { + if (!feature.properties.cluster) { + return feature.properties.verified === 2 ? leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.marker(latlng, { + icon: green_dot + }) : leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.marker(latlng, { + icon: grey_dot + }); + } + + var count = feature.properties.point_count; + var size = count < _constants__WEBPACK_IMPORTED_MODULE_2__["MEDIUM_CLUSTER_SIZE"] ? 'small' : count < _constants__WEBPACK_IMPORTED_MODULE_2__["LARGE_CLUSTER_SIZE"] ? 'medium' : 'large'; + var icon = leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.divIcon({ + html: '
    ' + feature.properties.point_count_abbreviated + '
    ', + className: 'marker-cluster-' + size, + iconSize: leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.point(40, 40) + }); + return leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.marker(latlng, { + icon: icon + }); +} +/** + * Layer controller when below ZOOM_CLUSTER_THRESHOLD + */ + + +function createGlobalGroups() { + if (pointsControllerShowing) { + map.removeControl(pointsLayerController); + pointsControllerShowing = false; + } + + if (!globalControllerShowing) { + globalLayerController = leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.control.layers(null, null).addTo(map); + globalLayerController.addOverlay(clusters, 'Global'); + globalLayerController.addOverlay(litterArtPoints, 'Litter Art'); + globalControllerShowing = true; + } +} +/** + * Layer Controller when above ZOOM_CLUSTER_THRESHOLD + */ + + +function createPointGroups() { + if (globalControllerShowing) { + map.removeControl(globalLayerController); + globalControllerShowing = false; + } + + if (!pointsControllerShowing) { + /** 8. Create overlays toggle menu */ + var overlays = { + Alcohol: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + Brands: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + Coastal: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + Coffee: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + Dumping: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + Food: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + Industrial: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + Other: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + PetSurprise: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + Sanitary: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + Smoking: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup(), + SoftDrinks: new leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.LayerGroup() + }; + pointsLayerController = leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.control.layers(null, overlays).addTo(map); + pointsControllerShowing = true; + } +} +/** + * Zoom to a cluster when it is clicked + */ + + +function onEachFeature(feature, layer) { + if (feature.properties.cluster) { + layer.on('click', function (e) { + var zoomTo = map.getZoom() + _constants__WEBPACK_IMPORTED_MODULE_2__["ZOOM_STEP"] > _constants__WEBPACK_IMPORTED_MODULE_2__["MAX_ZOOM"] ? _constants__WEBPACK_IMPORTED_MODULE_2__["MAX_ZOOM"] : map.getZoom() + _constants__WEBPACK_IMPORTED_MODULE_2__["ZOOM_STEP"]; + map.flyTo(e.latlng, zoomTo, { + animate: true, + duration: 2 + }); + }); + } +} +/** + * On each art point... + * + * Todo: Smooth zoom to that piece + */ + + +function onEachArtFeature(feature, layer) { + layer.on('click', function (e) { + map.flyTo(feature.geometry.coordinates, 14, { + animate: true, + duration: 10 + }); + var user = feature.properties.name || feature.properties.username ? "By ".concat(feature.properties.name ? feature.properties.name : '', " ").concat(feature.properties.username ? '@' + feature.properties.username : '') : ""; + var team = feature.properties.team ? "\nTeam ".concat(feature.properties.team) : ""; // todo - increase the dimensions of each art image + + leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.popup().setLatLng(feature.geometry.coordinates).setContent('' + '
    ' + '

    Taken on ' + moment__WEBPACK_IMPORTED_MODULE_4___default()(feature.properties.datetime).format('LLL') + '

    ' + user + team + '
    ').openOn(map); + }); +} +/** + * The user dragged or zoomed the map, or changed a category + */ + + +function update() { + return _update.apply(this, arguments); +} +/** + * Get any active layers + * + * @return layers|null + */ + + +function _update() { + _update = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + var bounds, bbox, zoom, layers; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + bounds = map.getBounds(); + bbox = { + 'left': bounds.getWest(), + 'bottom': bounds.getSouth(), + 'right': bounds.getEast(), + 'top': bounds.getNorth() + }; + zoom = Math.round(map.getZoom()); // We don't want to make a request at zoom level 2-5 if the user is just panning the map. + // At these levels, we just load all global data for now + + if (!(zoom === 2 && zoom === prevZoom)) { + _context.next = 5; + break; + } + + return _context.abrupt("return"); + + case 5: + if (!(zoom === 3 && zoom === prevZoom)) { + _context.next = 7; + break; + } + + return _context.abrupt("return"); + + case 7: + if (!(zoom === 4 && zoom === prevZoom)) { + _context.next = 9; + break; + } + + return _context.abrupt("return"); + + case 9: + if (!(zoom === 5 && zoom === prevZoom)) { + _context.next = 11; + break; + } + + return _context.abrupt("return"); + + case 11: + // Remove points when zooming out + if (points) { + clusters.clearLayers(); + points.remove(); + } // Get Clusters or Points + + + if (!(zoom < _constants__WEBPACK_IMPORTED_MODULE_2__["CLUSTER_ZOOM_THRESHOLD"])) { + _context.next = 18; + break; + } + + createGlobalGroups(); + _context.next = 16; + return axios.get('/global/clusters', { + params: { + zoom: zoom, + bbox: bbox + } + }).then(function (response) { + console.log('get_clusters.update', response); + clusters.clearLayers(); + clusters.addData(response.data); + })["catch"](function (error) { + console.error('get_clusters.update', error); + }); + + case 16: + _context.next = 22; + break; + + case 18: + createPointGroups(); + layers = getActiveLayers(); + _context.next = 22; + return axios.get('/global/points', { + params: { + zoom: zoom, + bbox: bbox, + layers: layers + } + }).then(function (response) { + console.log('get_global_points', response); // Clear layer if prev layer is cluster. + + if (prevZoom < _constants__WEBPACK_IMPORTED_MODULE_2__["CLUSTER_ZOOM_THRESHOLD"]) { + clusters.clearLayers(); + } + + var data = response.data.features.map(function (feature) { + return [feature.geometry.coordinates[0], feature.geometry.coordinates[1]]; + }); // New way using webGL + + points = leaflet_glify__WEBPACK_IMPORTED_MODULE_7___default.a.points({ + map: map, + data: data, + size: 10, + color: { + r: 0.054, + g: 0.819, + b: 0.27, + a: 1 + }, + // 14, 209, 69 / 255 + click: function click(e, point, xy) { + // return false to continue traversing + var f = response.data.features.find(function (feature) { + return feature.geometry.coordinates[0] === point[0] && feature.geometry.coordinates[1] === point[1]; + }); + + if (f) { + var tags = ''; + + if (f.properties.result_string) { + var a = f.properties.result_string.split(','); + a.pop(); + a.forEach(function (i) { + var b = i.split(' '); + tags += _i18n__WEBPACK_IMPORTED_MODULE_6__["default"].t('litter.' + b[0]) + ': ' + b[1] + ' '; + }); + } else { + tags = _i18n__WEBPACK_IMPORTED_MODULE_6__["default"].t('litter.not-verified'); + } + + var user = f.properties.name || f.properties.username ? "By ".concat(f.properties.name ? f.properties.name : '', " ").concat(f.properties.username ? '@' + f.properties.username : '') : ""; + var team = f.properties.team ? "\nTeam ".concat(f.properties.team) : ""; + leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.popup().setLatLng(e.latlng).setContent('' + '
    ' + '

    ' + tags + '

    ' + '

    Taken on ' + moment__WEBPACK_IMPORTED_MODULE_4___default()(f.properties.datetime).format('LLL') + '

    ' + user + team + '
    ').openOn(map); + } + } // hover: (e, pointOrGeoJsonFeature, xy) => { + // // do something when a point is hovered + // console.log('hovered'); + // } + + }); + })["catch"](function (error) { + console.error('get_global_points', error); + }); + + case 22: + prevZoom = zoom; + + case 23: + case "end": + return _context.stop(); + } + } + }, _callee); + })); + return _update.apply(this, arguments); +} + +function getActiveLayers() { + var layers = []; // This is not ideal but it works as the indexes are in the same order + + pointsLayerController._layerControlInputs.forEach(function (lyr, index) { + if (lyr.checked) { + var name = pointsLayerController._layers[index].name.toLowerCase() === 'petsurprise' ? 'dogshit' : pointsLayerController._layers[index].name.toLowerCase(); + layers.push(name); + } + }); + + return layers.length > 0 ? layers : null; +} + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Supercluster', + components: { + LiveEvents: _components_LiveEvents__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + mounted: function mounted() { + /** 1. Create map object */ + map = leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.map('super', { + center: [0, 0], + zoom: _constants__WEBPACK_IMPORTED_MODULE_2__["MIN_ZOOM"], + scrollWheelZoom: false, + smoothWheelZoom: true, + smoothSensitivity: 1 + }); + map.scrollWheelZoom = true; + var date = new Date(); + var year = date.getFullYear(); + /** 2. Add tiles, attribution, set limits */ + + var mapLink = 'OpenStreetMap'; + leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: 'Map data © ' + mapLink + ' & Contributors', + maxZoom: _constants__WEBPACK_IMPORTED_MODULE_2__["MAX_ZOOM"], + minZoom: _constants__WEBPACK_IMPORTED_MODULE_2__["MIN_ZOOM"] + }).addTo(map); + map.attributionControl.addAttribution('Litter data © OpenLitterMap & Contributors ' + year + ' Clustering @ MapBox'); // Empty Layer Group that will receive the clusters data on the fly. + + clusters = leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.geoJSON(null, { + pointToLayer: createClusterIcon, + onEachFeature: onEachFeature + }).addTo(map); + clusters.addData(this.$store.state.globalmap.geojson.features); + litterArtPoints = leaflet__WEBPACK_IMPORTED_MODULE_3___default.a.geoJSON(null, { + pointToLayer: createArtIcon, + onEachFeature: onEachArtFeature + }); + litterArtPoints.addData(this.$store.state.globalmap.artData.features); + map.on('moveend', function () { + update(); + }); + createGlobalGroups(); + map.on('overlayadd', update); + map.on('overlayremove', update); + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/home/About.vue?vue&type=script&lang=js&": +/*!****************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/home/About.vue?vue&type=script&lang=js& ***! + \****************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'About', + methods: { + /** + * Open Google Play store download page + */ + android: function android() { + window.open('https://play.google.com/store/apps/details?id=com.geotech.openlittermap', '_blank'); + }, + + /** + * Open App Store download page + */ + ios: function ios() { + window.open('https://apps.apple.com/us/app/openlittermap/id1475982147', '_blank'); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/home/Donate.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/home/Donate.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _components_DonateButtons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../components/DonateButtons */ "./resources/js/components/DonateButtons.vue"); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Donate', + components: { + DonateButtons: _components_DonateButtons__WEBPACK_IMPORTED_MODULE_0__["default"] + }, + data: function data() { + return { + loading: true + }; + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/home/Footer.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/home/Footer.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Footer', + data: function data() { + return { + email: '', + socials: [{ + icon: 'facebook2.png', + url: 'https://facebook.com/openlittermap' + }, // 0 + { + icon: 'ig2.png', + url: 'https://instagram.com/openlittermap' + }, // 1 + { + icon: 'twitter2.png', + url: 'https://twitter.com/openlittermap' + }, // 2 + { + icon: 'reddit.png', + url: 'https://reddit.com/r/openlittermap' + }, // 3 + { + icon: 'tumblr.png', + url: 'https://tumblr.com/openlittermap' + } // 4 + ] + }; + }, + computed: { + /** + * Errors object + */ + errors: function errors() { + return this.$store.state.subscriber.errors; + }, + + /** + * Return true if any errors exist + */ + hasErrors: function hasErrors() { + return Object.keys(this.errors).length > 0; + }, + + /** + * Returns true when the user has just subscribed + */ + subscribed: function subscribed() { + return this.$store.state.subscriber.just_subscribed; + } + }, + methods: { + /** + * Clear all subscriber errors + */ + clearErrors: function clearErrors() { + this.$store.commit('clearSubscriberErrors'); + }, + + /** + * The first error, if any + */ + getError: function getError(key) { + return this.errors[key][0]; + }, + + /** + * Get full path for icon + */ + icon: function icon(path) { + return '/assets/icons/' + path; + }, + + /** + * Open in a new tab + */ + open: function open(url) { + window.open(url, '_blank'); + }, + + /** + * Post request to save email to the subscribers table + */ + subscribe: function subscribe() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this.$store.dispatch('SUBSCRIBE', _this.email); + + case 2: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/home/Welcome.vue?vue&type=script&lang=js&": +/*!******************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/home/Welcome.vue?vue&type=script&lang=js& ***! + \******************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Footer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Footer */ "./resources/js/views/home/Footer.vue"); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'Welcome', + components: { + Footer: _Footer__WEBPACK_IMPORTED_MODULE_0__["default"] + }, + computed: { + /** + * Boolean to show or hide the modal + */ + modal: function modal() { + return this.$store.state.modal.show; + } + }, + methods: { + /** + * Open Google Play store download page + */ + android: function android() { + window.open('https://play.google.com/store/apps/details?id=com.geotech.openlittermap', '_blank'); + }, + + /** + * Open App Store download page + */ + ios: function ios() { + window.open('https://apps.apple.com/us/app/openlittermap/id1475982147', '_blank'); + } + } +}); + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/autocomplete.js": +/*!*****************************************************!*\ + !*** ./node_modules/buefy/dist/esm/autocomplete.js ***! + \*****************************************************/ +/*! exports provided: BAutocomplete, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony import */ var _chunk_aa09eaac_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-aa09eaac.js */ "./node_modules/buefy/dist/esm/chunk-aa09eaac.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BAutocomplete", function() { return _chunk_aa09eaac_js__WEBPACK_IMPORTED_MODULE_7__["A"]; }); + + + + + + + + + + + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, _chunk_aa09eaac_js__WEBPACK_IMPORTED_MODULE_7__["A"]); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/button.js": +/*!***********************************************!*\ + !*** ./node_modules/buefy/dist/esm/button.js ***! + \***********************************************/ +/*! exports provided: default, BButton */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BButton", function() { return Button; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + + + +var script = { + name: 'BButton', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"]), + inheritAttrs: false, + props: { + type: [String, Object], + size: String, + label: String, + iconPack: String, + iconLeft: String, + iconRight: String, + rounded: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultButtonRounded; + } + }, + loading: Boolean, + outlined: Boolean, + expanded: Boolean, + inverted: Boolean, + focused: Boolean, + active: Boolean, + hovered: Boolean, + selected: Boolean, + nativeType: { + type: String, + default: 'button', + validator: function validator(value) { + return ['button', 'submit', 'reset'].indexOf(value) >= 0; + } + }, + tag: { + type: String, + default: 'button', + validator: function validator(value) { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultLinkTags.indexOf(value) >= 0; + } + } + }, + computed: { + computedTag: function computedTag() { + if (this.$attrs.disabled !== undefined && this.$attrs.disabled !== false) { + return 'button'; + } + + return this.tag; + }, + iconSize: function iconSize() { + if (!this.size || this.size === 'is-medium') { + return 'is-small'; + } else if (this.size === 'is-large') { + return 'is-medium'; + } + + return this.size; + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.computedTag,_vm._g(_vm._b({tag:"component",staticClass:"button",class:[_vm.size, _vm.type, { + 'is-rounded': _vm.rounded, + 'is-loading': _vm.loading, + 'is-outlined': _vm.outlined, + 'is-fullwidth': _vm.expanded, + 'is-inverted': _vm.inverted, + 'is-focused': _vm.focused, + 'is-active': _vm.active, + 'is-hovered': _vm.hovered, + 'is-selected': _vm.selected + }],attrs:{"type":_vm.nativeType}},'component',_vm.$attrs,false),_vm.$listeners),[(_vm.iconLeft)?_c('b-icon',{attrs:{"pack":_vm.iconPack,"icon":_vm.iconLeft,"size":_vm.iconSize}}):_vm._e(),(_vm.label)?_c('span',[_vm._v(_vm._s(_vm.label))]):(_vm.$slots.default)?_c('span',[_vm._t("default")],2):_vm._e(),(_vm.iconRight)?_c('b-icon',{attrs:{"pack":_vm.iconPack,"icon":_vm.iconRight,"size":_vm.iconSize}}):_vm._e()],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Button = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, Button); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/carousel.js": +/*!*************************************************!*\ + !*** ./node_modules/buefy/dist/esm/carousel.js ***! + \*************************************************/ +/*! exports provided: default, BCarousel, BCarouselItem, BCarouselList */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BCarousel", function() { return Carousel; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BCarouselItem", function() { return CarouselItem; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BCarouselList", function() { return CarouselList; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); + + + + + + + +var script = { + name: 'BCarousel', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"]), + mixins: [Object(_chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_5__["P"])('carousel', _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_5__["S"])], + props: { + value: { + type: Number, + default: 0 + }, + animated: { + type: String, + default: 'slide' + }, + interval: Number, + hasDrag: { + type: Boolean, + default: true + }, + autoplay: { + type: Boolean, + default: true + }, + pauseHover: { + type: Boolean, + default: true + }, + pauseInfo: { + type: Boolean, + default: true + }, + pauseInfoType: { + type: String, + default: 'is-white' + }, + pauseText: { + type: String, + default: 'Pause' + }, + arrow: { + type: Boolean, + default: true + }, + arrowHover: { + type: Boolean, + default: true + }, + repeat: { + type: Boolean, + default: true + }, + iconPack: String, + iconSize: String, + iconPrev: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconPrev; + } + }, + iconNext: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconNext; + } + }, + indicator: { + type: Boolean, + default: true + }, + indicatorBackground: Boolean, + indicatorCustom: Boolean, + indicatorCustomSize: { + type: String, + default: 'is-small' + }, + indicatorInside: { + type: Boolean, + default: true + }, + indicatorMode: { + type: String, + default: 'click' + }, + indicatorPosition: { + type: String, + default: 'is-bottom' + }, + indicatorStyle: { + type: String, + default: 'is-dots' + }, + overlay: Boolean, + progress: Boolean, + progressType: { + type: String, + default: 'is-primary' + }, + withCarouselList: Boolean + }, + data: function data() { + return { + transition: 'next', + activeChild: this.value || 0, + isPause: false, + dragX: false, + timer: null + }; + }, + computed: { + indicatorClasses: function indicatorClasses() { + return [{ + 'has-background': this.indicatorBackground, + 'has-custom': this.indicatorCustom, + 'is-inside': this.indicatorInside + }, this.indicatorCustom && this.indicatorCustomSize, this.indicatorInside && this.indicatorPosition]; + }, + // checking arrows + hasPrev: function hasPrev() { + return this.repeat || this.activeChild !== 0; + }, + hasNext: function hasNext() { + return this.repeat || this.activeChild < this.childItems.length - 1; + } + }, + watch: { + /** + * When v-model is changed set the new active item. + */ + value: function value(_value) { + this.changeActive(_value); + }, + + /** + * When carousel-items are updated, set active one. + */ + sortedItems: function sortedItems(items) { + if (this.activeChild >= items.length && this.activeChild > 0) { + this.changeActive(this.activeChild - 1); + } + }, + + /** + * When autoplay is changed, start or pause timer accordingly + */ + autoplay: function autoplay(status) { + status ? this.startTimer() : this.pauseTimer(); + }, + + /** + * Since the timer can get paused at the end, if repeat is changed we need to restart it + */ + repeat: function repeat(status) { + if (status) { + this.startTimer(); + } + } + }, + methods: { + startTimer: function startTimer() { + var _this = this; + + if (!this.autoplay || this.timer) return; + this.isPause = false; + this.timer = setInterval(function () { + if (!_this.repeat && _this.activeChild >= _this.childItems.length - 1) { + _this.pauseTimer(); + } else { + _this.next(); + } + }, this.interval || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultCarouselInterval); + }, + pauseTimer: function pauseTimer() { + this.isPause = true; + + if (this.timer) { + clearInterval(this.timer); + this.timer = null; + } + }, + checkPause: function checkPause() { + if (this.pauseHover && this.autoplay) { + this.pauseTimer(); + } + }, + + /** + * Change the active item and emit change event. + * action only for animated slide, there true = next, false = prev + */ + changeActive: function changeActive(newIndex) { + var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + if (this.activeChild === newIndex || isNaN(newIndex)) return; + direction = direction || newIndex - this.activeChild; + newIndex = this.repeat ? Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["mod"])(newIndex, this.childItems.length) : Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["bound"])(newIndex, 0, this.childItems.length - 1); + this.transition = direction > 0 ? 'prev' : 'next'; // Transition names are reversed from the actual direction for correct effect + + this.activeChild = newIndex; + + if (newIndex !== this.value) { + this.$emit('input', newIndex); + } + + this.$emit('change', newIndex); // BC + }, + // Indicator trigger when change active item. + modeChange: function modeChange(trigger, value) { + if (this.indicatorMode === trigger) { + return this.changeActive(value); + } + }, + prev: function prev() { + this.changeActive(this.activeChild - 1, -1); + }, + next: function next() { + this.changeActive(this.activeChild + 1, 1); + }, + // handle drag event + dragStart: function dragStart(event) { + if (!this.hasDrag || !event.target.draggable && event.target.textContent.trim() === '') return; + this.dragX = event.touches ? event.changedTouches[0].pageX : event.pageX; + + if (event.touches) { + this.pauseTimer(); + } else { + event.preventDefault(); + } + }, + dragEnd: function dragEnd(event) { + if (this.dragX === false) return; + var detected = event.touches ? event.changedTouches[0].pageX : event.pageX; + var diffX = detected - this.dragX; + + if (Math.abs(diffX) > 30) { + if (diffX < 0) { + this.next(); + } else { + this.prev(); + } + } else { + event.target.click(); + this.sortedItems[this.activeChild].$emit('click'); + this.$emit('click'); + } + + if (event.touches) { + this.startTimer(); + } + + this.dragX = false; + } + }, + mounted: function mounted() { + this.startTimer(); + }, + beforeDestroy: function beforeDestroy() { + this.pauseTimer(); + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"carousel",class:{'is-overlay': _vm.overlay},on:{"mouseenter":_vm.checkPause,"mouseleave":_vm.startTimer}},[(_vm.progress)?_c('progress',{staticClass:"progress",class:_vm.progressType,attrs:{"max":_vm.childItems.length - 1},domProps:{"value":_vm.activeChild}},[_vm._v(" "+_vm._s(_vm.childItems.length - 1)+" ")]):_vm._e(),_c('div',{staticClass:"carousel-items",on:{"mousedown":_vm.dragStart,"mouseup":_vm.dragEnd,"touchstart":function($event){$event.stopPropagation();return _vm.dragStart($event)},"touchend":function($event){$event.stopPropagation();return _vm.dragEnd($event)}}},[_vm._t("default"),(_vm.arrow)?_c('div',{staticClass:"carousel-arrow",class:{'is-hovered': _vm.arrowHover}},[_c('b-icon',{directives:[{name:"show",rawName:"v-show",value:(_vm.hasPrev),expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{"pack":_vm.iconPack,"icon":_vm.iconPrev,"size":_vm.iconSize,"both":""},nativeOn:{"click":function($event){return _vm.prev($event)}}}),_c('b-icon',{directives:[{name:"show",rawName:"v-show",value:(_vm.hasNext),expression:"hasNext"}],staticClass:"has-icons-right",attrs:{"pack":_vm.iconPack,"icon":_vm.iconNext,"size":_vm.iconSize,"both":""},nativeOn:{"click":function($event){return _vm.next($event)}}})],1):_vm._e()],2),(_vm.autoplay && _vm.pauseHover && _vm.pauseInfo && _vm.isPause)?_c('div',{staticClass:"carousel-pause"},[_c('span',{staticClass:"tag",class:_vm.pauseInfoType},[_vm._v(" "+_vm._s(_vm.pauseText)+" ")])]):_vm._e(),(_vm.withCarouselList && !_vm.indicator)?[_vm._t("list",null,{"active":_vm.activeChild,"switch":_vm.changeActive})]:_vm._e(),(_vm.indicator)?_c('div',{staticClass:"carousel-indicator",class:_vm.indicatorClasses},_vm._l((_vm.sortedItems),function(item,index){return _c('a',{key:item._uid,staticClass:"indicator-item",class:{'is-active': item.isActive},on:{"mouseover":function($event){return _vm.modeChange('hover', index)},"click":function($event){return _vm.modeChange('click', index)}}},[_vm._t("indicators",[_c('span',{staticClass:"indicator-style",class:_vm.indicatorStyle})],{"i":index})],2)}),0):_vm._e(),(_vm.overlay)?[_vm._t("overlay")]:_vm._e()],2)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Carousel = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +// +var script$1 = { + name: 'BCarouselItem', + mixins: [Object(_chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_5__["I"])('carousel', _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_5__["a"])], + data: function data() { + return { + transitionName: null + }; + }, + computed: { + transition: function transition() { + if (this.parent.animated === 'fade') { + return 'fade'; + } else if (this.parent.transition) { + return 'slide-' + this.parent.transition; + } + }, + isActive: function isActive() { + return this.parent.activeChild === this.index; + } + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.transition}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"carousel-item"},[_vm._t("default")],2)])}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = false; + /* style inject */ + + /* style inject SSR */ + + + + var CarouselItem = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +var script$2 = { + name: 'BCarouselList', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"]), + props: { + data: { + type: Array, + default: function _default() { + return []; + } + }, + value: { + type: Number, + default: 0 + }, + scrollValue: { + type: Number, + default: 0 + }, + hasDrag: { + type: Boolean, + default: true + }, + hasGrayscale: Boolean, + hasOpacity: Boolean, + repeat: Boolean, + itemsToShow: { + type: Number, + default: 4 + }, + itemsToList: { + type: Number, + default: 1 + }, + asIndicator: Boolean, + arrow: { + type: Boolean, + default: true + }, + arrowHover: { + type: Boolean, + default: true + }, + iconPack: String, + iconSize: String, + iconPrev: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconPrev; + } + }, + iconNext: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconNext; + } + }, + breakpoints: { + type: Object, + default: function _default() { + return {}; + } + } + }, + data: function data() { + return { + activeItem: this.value, + scrollIndex: this.asIndicator ? this.scrollValue : this.value, + delta: 0, + dragX: false, + hold: 0, + windowWidth: 0, + touch: false, + observer: null, + refresh_: 0 + }; + }, + computed: { + dragging: function dragging() { + return this.dragX !== false; + }, + listClass: function listClass() { + return [{ + 'has-grayscale': this.settings.hasGrayscale, + 'has-opacity': this.settings.hasOpacity, + 'is-dragging': this.dragging + }]; + }, + itemStyle: function itemStyle() { + return "width: ".concat(this.itemWidth, "px;"); + }, + translation: function translation() { + return -Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["bound"])(this.delta + this.scrollIndex * this.itemWidth, 0, (this.data.length - this.settings.itemsToShow) * this.itemWidth); + }, + total: function total() { + return this.data.length - this.settings.itemsToShow; + }, + hasPrev: function hasPrev() { + return this.settings.repeat || this.scrollIndex > 0; + }, + hasNext: function hasNext() { + return this.settings.repeat || this.scrollIndex < this.total; + }, + breakpointKeys: function breakpointKeys() { + return Object.keys(this.breakpoints).sort(function (a, b) { + return b - a; + }); + }, + settings: function settings() { + var _this = this; + + var breakpoint = this.breakpointKeys.find(function (breakpoint) { + if (_this.windowWidth >= breakpoint) { + return true; + } + }); + + if (breakpoint) { + return Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["a"])({}, this.$props, {}, this.breakpoints[breakpoint]); + } + + return this.$props; + }, + itemWidth: function itemWidth() { + if (this.windowWidth) { + // Ensure component is mounted + + /* eslint-disable-next-line */ + this.refresh_; // We force the computed property to refresh if this prop is changed + + var rect = this.$el.getBoundingClientRect(); + return rect.width / this.settings.itemsToShow; + } + + return 0; + } + }, + watch: { + /** + * When v-model is changed set the new active item. + */ + value: function value(_value) { + this.switchTo(this.asIndicator ? _value - (this.itemsToShow - 3) / 2 : _value); + + if (this.activeItem !== _value) { + this.activeItem = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["bound"])(_value, 0, this.data.length - 1); + } + }, + scrollValue: function scrollValue(value) { + this.switchTo(value); + } + }, + methods: { + resized: function resized() { + this.windowWidth = window.innerWidth; + }, + switchTo: function switchTo(newIndex) { + if (newIndex === this.scrollIndex || isNaN(newIndex)) { + return; + } + + if (this.settings.repeat) { + newIndex = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["mod"])(newIndex, this.total + 1); + } + + newIndex = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["bound"])(newIndex, 0, this.total); + this.scrollIndex = newIndex; + + if (!this.asIndicator && this.value !== newIndex) { + this.$emit('input', newIndex); + } else if (this.scrollIndex !== newIndex) { + this.$emit('updated:scroll', newIndex); + } + }, + next: function next() { + this.switchTo(this.scrollIndex + this.settings.itemsToList); + }, + prev: function prev() { + this.switchTo(this.scrollIndex - this.settings.itemsToList); + }, + checkAsIndicator: function checkAsIndicator(value, event) { + if (!this.asIndicator) return; + var dragEndX = event.touches ? event.touches[0].clientX : event.clientX; + if (this.hold - Date.now() > 2000 || Math.abs(this.dragX - dragEndX) > 10) return; + this.dragX = false; + this.hold = 0; + event.preventDefault(); // Make the item appear in the middle + + this.activeItem = value; + this.$emit('switch', value); + }, + // handle drag event + dragStart: function dragStart(event) { + if (this.dragging || !this.settings.hasDrag || event.button !== 0 && event.type !== 'touchstart') return; + this.hold = Date.now(); + this.touch = !!event.touches; + this.dragX = this.touch ? event.touches[0].clientX : event.clientX; + window.addEventListener(this.touch ? 'touchmove' : 'mousemove', this.dragMove); + window.addEventListener(this.touch ? 'touchend' : 'mouseup', this.dragEnd); + }, + dragMove: function dragMove(event) { + if (!this.dragging) return; + var dragEndX = event.touches ? event.touches[0].clientX : event.clientX; + this.delta = this.dragX - dragEndX; + + if (!event.touches) { + event.preventDefault(); + } + }, + dragEnd: function dragEnd() { + if (!this.dragging && !this.hold) return; + + if (this.hold) { + var signCheck = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["sign"])(this.delta); + var results = Math.round(Math.abs(this.delta / this.itemWidth) + 0.15); // Hack + + this.switchTo(this.scrollIndex + signCheck * results); + } + + this.delta = 0; + this.dragX = false; + window.removeEventListener(this.touch ? 'touchmove' : 'mousemove', this.dragMove); + window.removeEventListener(this.touch ? 'touchend' : 'mouseup', this.dragEnd); + }, + refresh: function refresh() { + var _this2 = this; + + this.$nextTick(function () { + _this2.refresh_++; + }); + } + }, + mounted: function mounted() { + if (typeof window !== 'undefined') { + if (window.ResizeObserver) { + this.observer = new ResizeObserver(this.refresh); + this.observer.observe(this.$el); + } + + window.addEventListener('resize', this.resized); + this.resized(); + } + + if (this.$attrs.config) { + throw new Error('The config prop was removed, you need to use v-bind instead'); + } + }, + beforeDestroy: function beforeDestroy() { + if (typeof window !== 'undefined') { + if (window.ResizeObserver) { + this.observer.disconnect(); + } + + window.removeEventListener('resize', this.resized); + this.dragEnd(); + } + } +}; + +/* script */ +const __vue_script__$2 = script$2; + +/* template */ +var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"carousel-list",class:{'has-shadow': _vm.scrollIndex > 0},on:{"mousedown":function($event){$event.preventDefault();return _vm.dragStart($event)},"touchstart":_vm.dragStart}},[_c('div',{staticClass:"carousel-slides",class:_vm.listClass,style:('transform:translateX('+_vm.translation+'px)')},_vm._l((_vm.data),function(list,index){return _c('div',{key:index,staticClass:"carousel-slide",class:{'is-active': _vm.asIndicator ? _vm.activeItem === index : _vm.scrollIndex === index},style:(_vm.itemStyle),on:{"mouseup":function($event){return _vm.checkAsIndicator(index, $event)},"touchend":function($event){return _vm.checkAsIndicator(index, $event)}}},[_vm._t("item",[_c('figure',{staticClass:"image"},[_c('img',{attrs:{"src":list.image,"alt":list.alt,"title":list.title}})])],{"index":index,"active":_vm.activeItem,"scroll":_vm.scrollIndex,"list":list},list)],2)}),0),(_vm.arrow)?_c('div',{staticClass:"carousel-arrow",class:{'is-hovered': _vm.settings.arrowHover}},[_c('b-icon',{directives:[{name:"show",rawName:"v-show",value:(_vm.hasPrev),expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{"pack":_vm.settings.iconPack,"icon":_vm.settings.iconPrev,"size":_vm.settings.iconSize,"both":""},nativeOn:{"click":function($event){$event.preventDefault();return _vm.prev($event)}}}),_c('b-icon',{directives:[{name:"show",rawName:"v-show",value:(_vm.hasNext),expression:"hasNext"}],staticClass:"has-icons-right",attrs:{"pack":_vm.settings.iconPack,"icon":_vm.settings.iconNext,"size":_vm.settings.iconSize,"both":""},nativeOn:{"click":function($event){$event.preventDefault();return _vm.next($event)}}})],1):_vm._e()])}; +var __vue_staticRenderFns__$2 = []; + + /* style */ + const __vue_inject_styles__$2 = undefined; + /* scoped */ + const __vue_scope_id__$2 = undefined; + /* module identifier */ + const __vue_module_identifier__$2 = undefined; + /* functional template */ + const __vue_is_functional_template__$2 = false; + /* style inject */ + + /* style inject SSR */ + + + + var CarouselList = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 }, + __vue_inject_styles__$2, + __vue_script__$2, + __vue_scope_id__$2, + __vue_is_functional_template__$2, + __vue_module_identifier__$2, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, Carousel); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, CarouselItem); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, CarouselList); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/checkbox.js": +/*!*************************************************!*\ + !*** ./node_modules/buefy/dist/esm/checkbox.js ***! + \*************************************************/ +/*! exports provided: BCheckbox, default, BCheckboxButton */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BCheckboxButton", function() { return CheckboxButton; }); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_2793447b_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-2793447b.js */ "./node_modules/buefy/dist/esm/chunk-2793447b.js"); +/* harmony import */ var _chunk_d6bb2470_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-d6bb2470.js */ "./node_modules/buefy/dist/esm/chunk-d6bb2470.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BCheckbox", function() { return _chunk_d6bb2470_js__WEBPACK_IMPORTED_MODULE_2__["C"]; }); + + + + + + +// +var script = { + name: 'BCheckboxButton', + mixins: [_chunk_2793447b_js__WEBPACK_IMPORTED_MODULE_1__["C"]], + props: { + type: { + type: String, + default: 'is-primary' + }, + expanded: Boolean + }, + data: function data() { + return { + isFocused: false + }; + }, + computed: { + checked: function checked() { + if (Array.isArray(this.newValue)) { + return this.newValue.indexOf(this.nativeValue) >= 0; + } + + return this.newValue === this.nativeValue; + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control",class:{ 'is-expanded': _vm.expanded }},[_c('label',{ref:"label",staticClass:"b-checkbox checkbox button",class:[_vm.checked ? _vm.type : null, _vm.size, { + 'is-disabled': _vm.disabled, + 'is-focused': _vm.isFocused + }],attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.$refs.label.click()}}},[_vm._t("default"),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"checkbox","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name},domProps:{"value":_vm.nativeValue,"checked":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:(_vm.computedValue)},on:{"click":function($event){$event.stopPropagation();},"focus":function($event){_vm.isFocused = true;},"blur":function($event){_vm.isFocused = false;},"change":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else{$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.computedValue=$$c;}}}})],2)])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var CheckboxButton = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["r"])(Vue, _chunk_d6bb2470_js__WEBPACK_IMPORTED_MODULE_2__["C"]); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["r"])(Vue, CheckboxButton); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-0644d9fa.js ***! + \*******************************************************/ +/*! exports provided: I */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return Input; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + + + +var script = { + name: 'BInput', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"]), + mixins: [_chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_2__["F"]], + inheritAttrs: false, + props: { + value: [Number, String], + type: { + type: String, + default: 'text' + }, + passwordReveal: Boolean, + iconClickable: Boolean, + hasCounter: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultInputHasCounter; + } + }, + customClass: { + type: String, + default: '' + }, + iconRight: String, + iconRightClickable: Boolean + }, + data: function data() { + return { + newValue: this.value, + newType: this.type, + newAutocomplete: this.autocomplete || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultInputAutocomplete, + isPasswordVisible: false, + _elementRef: this.type === 'textarea' ? 'textarea' : 'input' + }; + }, + computed: { + computedValue: { + get: function get() { + return this.newValue; + }, + set: function set(value) { + this.newValue = value; + this.$emit('input', value); + !this.isValid && this.checkHtml5Validity(); + } + }, + rootClasses: function rootClasses() { + return [this.iconPosition, this.size, { + 'is-expanded': this.expanded, + 'is-loading': this.loading, + 'is-clearfix': !this.hasMessage + }]; + }, + inputClasses: function inputClasses() { + return [this.statusType, this.size, { + 'is-rounded': this.rounded + }]; + }, + hasIconRight: function hasIconRight() { + return this.passwordReveal || this.loading || this.statusIcon && this.statusTypeIcon || this.iconRight; + }, + rightIcon: function rightIcon() { + if (this.passwordReveal) { + return this.passwordVisibleIcon; + } else if (this.iconRight) { + return this.iconRight; + } + + return this.statusTypeIcon; + }, + rightIconType: function rightIconType() { + if (this.passwordReveal) { + return 'is-primary'; + } else if (this.iconRight) { + return null; + } + + return this.statusType; + }, + + /** + * Position of the icon or if it's both sides. + */ + iconPosition: function iconPosition() { + if (this.icon && this.hasIconRight) { + return 'has-icons-left has-icons-right'; + } else if (!this.icon && this.hasIconRight) { + return 'has-icons-right'; + } else if (this.icon) { + return 'has-icons-left'; + } + }, + + /** + * Icon name (MDI) based on the type. + */ + statusTypeIcon: function statusTypeIcon() { + switch (this.statusType) { + case 'is-success': + return 'check'; + + case 'is-danger': + return 'alert-circle'; + + case 'is-info': + return 'information'; + + case 'is-warning': + return 'alert'; + } + }, + + /** + * Check if have any message prop from parent if it's a Field. + */ + hasMessage: function hasMessage() { + return !!this.statusMessage; + }, + + /** + * Current password-reveal icon name. + */ + passwordVisibleIcon: function passwordVisibleIcon() { + return !this.isPasswordVisible ? 'eye' : 'eye-off'; + }, + + /** + * Get value length + */ + valueLength: function valueLength() { + if (typeof this.computedValue === 'string') { + return this.computedValue.length; + } else if (typeof this.computedValue === 'number') { + return this.computedValue.toString().length; + } + + return 0; + } + }, + watch: { + /** + * When v-model is changed: + * 1. Set internal value. + */ + value: function value(_value) { + this.newValue = _value; + } + }, + methods: { + /** + * Toggle the visibility of a password-reveal input + * by changing the type and focus the input right away. + */ + togglePasswordVisibility: function togglePasswordVisibility() { + var _this = this; + + this.isPasswordVisible = !this.isPasswordVisible; + this.newType = this.isPasswordVisible ? 'text' : 'password'; + this.$nextTick(function () { + _this.focus(); + }); + }, + iconClick: function iconClick(emit, event) { + var _this2 = this; + + this.$emit(emit, event); + this.$nextTick(function () { + _this2.focus(); + }); + }, + rightIconClick: function rightIconClick(event) { + if (this.passwordReveal) { + this.togglePasswordVisibility(); + } else if (this.iconRightClickable) { + this.iconClick('icon-right-click', event); + } + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control",class:_vm.rootClasses},[((_vm.newType)==='checkbox'&&(_vm.type !== 'textarea'))?_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",staticClass:"input",class:[_vm.inputClasses, _vm.customClass],attrs:{"autocomplete":_vm.newAutocomplete,"maxlength":_vm.maxlength,"type":"checkbox"},domProps:{"checked":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,null)>-1:(_vm.computedValue)},on:{"blur":_vm.onBlur,"focus":_vm.onFocus,"change":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else{$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.computedValue=$$c;}}}},'input',_vm.$attrs,false)):((_vm.newType)==='radio'&&(_vm.type !== 'textarea'))?_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",staticClass:"input",class:[_vm.inputClasses, _vm.customClass],attrs:{"autocomplete":_vm.newAutocomplete,"maxlength":_vm.maxlength,"type":"radio"},domProps:{"checked":_vm._q(_vm.computedValue,null)},on:{"blur":_vm.onBlur,"focus":_vm.onFocus,"change":function($event){_vm.computedValue=null;}}},'input',_vm.$attrs,false)):(_vm.type !== 'textarea')?_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",staticClass:"input",class:[_vm.inputClasses, _vm.customClass],attrs:{"autocomplete":_vm.newAutocomplete,"maxlength":_vm.maxlength,"type":_vm.newType},domProps:{"value":(_vm.computedValue)},on:{"blur":_vm.onBlur,"focus":_vm.onFocus,"input":function($event){if($event.target.composing){ return; }_vm.computedValue=$event.target.value;}}},'input',_vm.$attrs,false)):_c('textarea',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"textarea",staticClass:"textarea",class:[_vm.inputClasses, _vm.customClass],attrs:{"maxlength":_vm.maxlength},domProps:{"value":(_vm.computedValue)},on:{"blur":_vm.onBlur,"focus":_vm.onFocus,"input":function($event){if($event.target.composing){ return; }_vm.computedValue=$event.target.value;}}},'textarea',_vm.$attrs,false)),(_vm.icon)?_c('b-icon',{staticClass:"is-left",class:{'is-clickable': _vm.iconClickable},attrs:{"icon":_vm.icon,"pack":_vm.iconPack,"size":_vm.iconSize},nativeOn:{"click":function($event){return _vm.iconClick('icon-click', $event)}}}):_vm._e(),(!_vm.loading && _vm.hasIconRight)?_c('b-icon',{staticClass:"is-right",class:{ 'is-clickable': _vm.passwordReveal || _vm.iconRightClickable },attrs:{"icon":_vm.rightIcon,"pack":_vm.iconPack,"size":_vm.iconSize,"type":_vm.rightIconType,"both":""},nativeOn:{"click":function($event){return _vm.rightIconClick($event)}}}):_vm._e(),(_vm.maxlength && _vm.hasCounter && _vm.type !== 'number')?_c('small',{staticClass:"help counter",class:{ 'is-invisible': !_vm.isFocused }},[_vm._v(" "+_vm._s(_vm.valueLength)+" / "+_vm._s(_vm.maxlength)+" ")]):_vm._e()],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Input = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-1252e7e2.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-1252e7e2.js ***! + \*******************************************************/ +/*! exports provided: T */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return Tooltip; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + + +var script = { + name: 'BTooltip', + props: { + active: { + type: Boolean, + default: true + }, + type: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultTooltipType; + } + }, + label: String, + delay: Number, + position: { + type: String, + default: 'is-top', + validator: function validator(value) { + return ['is-top', 'is-bottom', 'is-left', 'is-right'].indexOf(value) > -1; + } + }, + triggers: { + type: Array, + default: function _default() { + return ['hover']; + } + }, + always: Boolean, + square: Boolean, + dashed: Boolean, + multilined: Boolean, + size: { + type: String, + default: 'is-medium' + }, + appendToBody: Boolean, + animated: { + type: Boolean, + default: true + }, + animation: { + type: String, + default: 'fade' + }, + contentClass: String, + autoClose: { + type: [Array, Boolean], + default: true + } + }, + data: function data() { + return { + isActive: false, + style: {}, + timer: null, + _bodyEl: undefined // Used to append to body + + }; + }, + computed: { + rootClasses: function rootClasses() { + return ['b-tooltip', this.type, this.position, this.size, { + 'is-square': this.square, + 'is-always': this.always, + 'is-multiline': this.multilined, + 'is-dashed': this.dashed + }]; + }, + newAnimation: function newAnimation() { + return this.animated ? this.animation : undefined; + } + }, + watch: { + isActive: function isActive(value) { + if (this.appendToBody) { + this.updateAppendToBody(); + } + } + }, + methods: { + updateAppendToBody: function updateAppendToBody() { + var tooltip = this.$refs.tooltip; + var trigger = this.$refs.trigger; + + if (tooltip && trigger) { + // update wrapper tooltip + var tooltipEl = this.$data._bodyEl.children[0]; + tooltipEl.classList.forEach(function (item) { + return tooltipEl.classList.remove(item); + }); + this.rootClasses.forEach(function (item) { + if (Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["b"])(item) === 'object') { + for (var key in item) { + if (item[key]) { + tooltipEl.classList.add(key); + } + } + } else { + tooltipEl.classList.add(item); + } + }); + tooltipEl.style.width = "".concat(trigger.clientWidth, "px"); + tooltipEl.style.height = "".concat(trigger.clientHeight, "px"); + var rect = trigger.getBoundingClientRect(); + var top = rect.top + window.scrollY; + var left = rect.left + window.scrollX; + var wrapper = this.$data._bodyEl; + wrapper.style.position = 'absolute'; + wrapper.style.top = "".concat(top, "px"); + wrapper.style.left = "".concat(left, "px"); + wrapper.style.zIndex = this.isActive ? '99' : '-1'; + } + }, + onClick: function onClick() { + var _this = this; + + if (this.triggers.indexOf('click') < 0) return; // if not active, toggle after clickOutside event + // this fixes toggling programmatic + + this.$nextTick(function () { + setTimeout(function () { + return _this.open(); + }); + }); + }, + onHover: function onHover() { + if (this.triggers.indexOf('hover') < 0) return; + this.open(); + }, + onFocus: function onFocus() { + if (this.triggers.indexOf('focus') < 0) return; + this.open(); + }, + open: function open() { + var _this2 = this; + + if (this.delay) { + this.timer = setTimeout(function () { + _this2.isActive = true; + _this2.timer = null; + }, this.delay); + } else { + this.isActive = true; + } + }, + close: function close() { + if (typeof this.autoClose === 'boolean') { + this.isActive = !this.autoClose; + if (this.autoClose && this.timer) clearTimeout(this.timer); + } + }, + + /** + * Close tooltip if clicked outside. + */ + clickedOutside: function clickedOutside(event) { + if (this.isActive) { + if (Array.isArray(this.autoClose)) { + if (this.autoClose.indexOf('outside') >= 0) { + if (!this.isInWhiteList(event.target)) this.isActive = false; + } else if (this.autoClose.indexOf('inside') >= 0) { + if (this.isInWhiteList(event.target)) this.isActive = false; + } + } + } + }, + + /** + * Keypress event that is bound to the document + */ + keyPress: function keyPress(_ref) { + var key = _ref.key; + + if (this.isActive && (key === 'Escape' || key === 'Esc')) { + if (Array.isArray(this.autoClose)) { + if (this.autoClose.indexOf('escape') >= 0) this.isActive = false; + } + } + }, + + /** + * White-listed items to not close when clicked. + */ + isInWhiteList: function isInWhiteList(el) { + if (el === this.$refs.content) return true; // All chidren from content + + if (this.$refs.content !== undefined) { + var children = this.$refs.content.querySelectorAll('*'); + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var child = _step.value; + + if (el === child) { + return true; + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + } + + return false; + } + }, + mounted: function mounted() { + if (this.appendToBody && typeof window !== 'undefined') { + this.$data._bodyEl = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["createAbsoluteElement"])(this.$refs.content); + this.updateAppendToBody(); + } + }, + created: function created() { + if (typeof window !== 'undefined') { + document.addEventListener('click', this.clickedOutside); + document.addEventListener('keyup', this.keyPress); + } + }, + beforeDestroy: function beforeDestroy() { + if (typeof window !== 'undefined') { + document.removeEventListener('click', this.clickedOutside); + document.removeEventListener('keyup', this.keyPress); + } + + if (this.appendToBody) { + Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["removeElement"])(this.$data._bodyEl); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{ref:"tooltip",class:_vm.rootClasses},[_c('transition',{attrs:{"name":_vm.newAnimation}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.active && (_vm.isActive || _vm.always)),expression:"active && (isActive || always)"}],ref:"content",class:['tooltip-content', _vm.contentClass],style:(_vm.style)},[(_vm.label)?[_vm._v(_vm._s(_vm.label))]:(_vm.$slots.content)?[_vm._t("content")]:_vm._e()],2)]),_c('div',{ref:"trigger",staticClass:"tooltip-trigger",on:{"click":function($event){$event.preventDefault();return _vm.onClick($event)},"mouseenter":_vm.onHover,"!focus":function($event){return _vm.onFocus($event)},"mouseleave":_vm.close}},[_vm._t("default")],2)],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Tooltip = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-1fafdf15.js ***! + \*******************************************************/ +/*! exports provided: _, a, b, c, d */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_", function() { return _defineProperty; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread2; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _typeof; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return _toArray; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return _toConsumableArray; }); +function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function (obj) { + return typeof obj; + }; + } else { + _typeof = function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + + return _typeof(obj); +} + +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} + +function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + + return keys; +} + +function _objectSpread2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + + if (i % 2) { + ownKeys(Object(source), true).forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + + return target; +} + +function _toArray(arr) { + return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest(); +} + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); +} + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; + + return arr2; + } +} + +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); +} + +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance"); +} + +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); +} + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-220749df.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-220749df.js ***! + \*******************************************************/ +/*! exports provided: N */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return NoticeMixin; }); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); + + + +var NoticeMixin = { + props: { + type: { + type: String, + default: 'is-dark' + }, + message: [String, Array], + duration: Number, + queue: { + type: Boolean, + default: undefined + }, + position: { + type: String, + default: 'is-top', + validator: function validator(value) { + return ['is-top-right', 'is-top', 'is-top-left', 'is-bottom-right', 'is-bottom', 'is-bottom-left'].indexOf(value) > -1; + } + }, + container: String + }, + data: function data() { + return { + isActive: false, + parentTop: null, + parentBottom: null, + newContainer: this.container || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultContainerElement + }; + }, + computed: { + correctParent: function correctParent() { + switch (this.position) { + case 'is-top-right': + case 'is-top': + case 'is-top-left': + return this.parentTop; + + case 'is-bottom-right': + case 'is-bottom': + case 'is-bottom-left': + return this.parentBottom; + } + }, + transition: function transition() { + switch (this.position) { + case 'is-top-right': + case 'is-top': + case 'is-top-left': + return { + enter: 'fadeInDown', + leave: 'fadeOut' + }; + + case 'is-bottom-right': + case 'is-bottom': + case 'is-bottom-left': + return { + enter: 'fadeInUp', + leave: 'fadeOut' + }; + } + } + }, + methods: { + shouldQueue: function shouldQueue() { + var queue = this.queue !== undefined ? this.queue : _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultNoticeQueue; + if (!queue) return false; + return this.parentTop.childElementCount > 0 || this.parentBottom.childElementCount > 0; + }, + close: function close() { + var _this = this; + + clearTimeout(this.timer); + this.isActive = false; + this.$emit('close'); // Timeout for the animation complete before destroying + + setTimeout(function () { + _this.$destroy(); + + Object(_helpers_js__WEBPACK_IMPORTED_MODULE_0__["removeElement"])(_this.$el); + }, 150); + }, + showNotice: function showNotice() { + var _this2 = this; + + if (this.shouldQueue()) { + // Call recursively if should queue + setTimeout(function () { + return _this2.showNotice(); + }, 250); + return; + } + + this.correctParent.insertAdjacentElement('afterbegin', this.$el); + this.isActive = true; + + if (!this.indefinite) { + this.timer = setTimeout(function () { + return _this2.close(); + }, this.newDuration); + } + }, + setupContainer: function setupContainer() { + this.parentTop = document.querySelector((this.newContainer ? this.newContainer : 'body') + '>.notices.is-top'); + this.parentBottom = document.querySelector((this.newContainer ? this.newContainer : 'body') + '>.notices.is-bottom'); + if (this.parentTop && this.parentBottom) return; + + if (!this.parentTop) { + this.parentTop = document.createElement('div'); + this.parentTop.className = 'notices is-top'; + } + + if (!this.parentBottom) { + this.parentBottom = document.createElement('div'); + this.parentBottom.className = 'notices is-bottom'; + } + + var container = document.querySelector(this.newContainer) || document.body; + container.appendChild(this.parentTop); + container.appendChild(this.parentBottom); + + if (this.newContainer) { + this.parentTop.classList.add('has-custom-container'); + this.parentBottom.classList.add('has-custom-container'); + } + } + }, + beforeMount: function beforeMount() { + this.setupContainer(); + }, + mounted: function mounted() { + this.showNotice(); + } +}; + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-2793447b.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-2793447b.js ***! + \*******************************************************/ +/*! exports provided: C */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return CheckRadioMixin; }); +var CheckRadioMixin = { + props: { + value: [String, Number, Boolean, Function, Object, Array], + nativeValue: [String, Number, Boolean, Function, Object, Array], + type: String, + disabled: Boolean, + required: Boolean, + name: String, + size: String + }, + data: function data() { + return { + newValue: this.value + }; + }, + computed: { + computedValue: { + get: function get() { + return this.newValue; + }, + set: function set(value) { + this.newValue = value; + this.$emit('input', value); + } + } + }, + watch: { + /** + * When v-model change, set internal value. + */ + value: function value(_value) { + this.newValue = _value; + } + }, + methods: { + focus: function focus() { + // MacOS FireFox and Safari do not focus when clicked + this.$refs.input.focus(); + } + } +}; + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-27eb50a6.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-27eb50a6.js ***! + \*******************************************************/ +/*! exports provided: D */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return Datepicker; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony import */ var _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-ddbc6c47.js */ "./node_modules/buefy/dist/esm/chunk-ddbc6c47.js"); +/* harmony import */ var _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./chunk-91a2d037.js */ "./node_modules/buefy/dist/esm/chunk-91a2d037.js"); +/* harmony import */ var _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./chunk-97074b53.js */ "./node_modules/buefy/dist/esm/chunk-97074b53.js"); + + + + + + + + + + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +var script = { + name: 'BDatepickerTableRow', + props: { + selectedDate: { + type: [Date, Array] + }, + hoveredDateRange: Array, + day: { + type: Number + }, + week: { + type: Array, + required: true + }, + month: { + type: Number, + required: true + }, + minDate: Date, + maxDate: Date, + disabled: Boolean, + unselectableDates: Array, + unselectableDaysOfWeek: Array, + selectableDates: Array, + events: Array, + indicators: String, + dateCreator: Function, + nearbyMonthDays: Boolean, + nearbySelectableMonthDays: Boolean, + showWeekNumber: { + type: Boolean, + default: function _default() { + return false; + } + }, + range: Boolean, + multiple: Boolean, + rulesForFirstWeek: { + type: Number, + default: function _default() { + return 4; + } + }, + firstDayOfWeek: Number + }, + watch: { + day: function day(_day) { + var _this = this; + + var refName = "day-".concat(_day); + this.$nextTick(function () { + if (_this.$refs[refName] && _this.$refs[refName].length > 0) { + if (_this.$refs[refName][0]) { + _this.$refs[refName][0].focus(); + } + } + }); // $nextTick needed when month is changed + } + }, + methods: { + firstWeekOffset: function firstWeekOffset(year, dow, doy) { + // first-week day -- which january is always in the first week (4 for iso, 1 for other) + var fwd = 7 + dow - doy; // first-week day local weekday -- which local weekday is fwd + + var firstJanuary = new Date(year, 0, fwd); + var fwdlw = (7 + firstJanuary.getDay() - dow) % 7; + return -fwdlw + fwd - 1; + }, + daysInYear: function daysInYear(year) { + return this.isLeapYear(year) ? 366 : 365; + }, + isLeapYear: function isLeapYear(year) { + return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; + }, + getSetDayOfYear: function getSetDayOfYear(input) { + return Math.round((input - new Date(input.getFullYear(), 0, 1)) / 864e5) + 1; + }, + weeksInYear: function weeksInYear(year, dow, doy) { + var weekOffset = this.firstWeekOffset(year, dow, doy); + var weekOffsetNext = this.firstWeekOffset(year + 1, dow, doy); + return (this.daysInYear(year) - weekOffset + weekOffsetNext) / 7; + }, + getWeekNumber: function getWeekNumber(mom) { + var dow = this.firstDayOfWeek; // first day of week + // Rules for the first week : 1 for the 1st January, 4 for the 4th January + + var doy = this.rulesForFirstWeek; + var weekOffset = this.firstWeekOffset(mom.getFullYear(), dow, doy); + var week = Math.floor((this.getSetDayOfYear(mom) - weekOffset - 1) / 7) + 1; + var resWeek; + var resYear; + + if (week < 1) { + resYear = mom.getFullYear() - 1; + resWeek = week + this.weeksInYear(resYear, dow, doy); + } else if (week > this.weeksInYear(mom.getFullYear(), dow, doy)) { + resWeek = week - this.weeksInYear(mom.getFullYear(), dow, doy); + resYear = mom.getFullYear() + 1; + } else { + resYear = mom.getFullYear(); + resWeek = week; + } + + return resWeek; + }, + + /* + * Check that selected day is within earliest/latest params and + * is within this month + */ + selectableDate: function selectableDate(day) { + var validity = []; + + if (this.minDate) { + validity.push(day >= this.minDate); + } + + if (this.maxDate) { + validity.push(day <= this.maxDate); + } + + if (this.nearbyMonthDays && !this.nearbySelectableMonthDays) { + validity.push(day.getMonth() === this.month); + } + + if (this.selectableDates) { + for (var i = 0; i < this.selectableDates.length; i++) { + var enabledDate = this.selectableDates[i]; + + if (day.getDate() === enabledDate.getDate() && day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) { + return true; + } else { + validity.push(false); + } + } + } + + if (this.unselectableDates) { + for (var _i = 0; _i < this.unselectableDates.length; _i++) { + var disabledDate = this.unselectableDates[_i]; + validity.push(day.getDate() !== disabledDate.getDate() || day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth()); + } + } + + if (this.unselectableDaysOfWeek) { + for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) { + var dayOfWeek = this.unselectableDaysOfWeek[_i2]; + validity.push(day.getDay() !== dayOfWeek); + } + } + + return validity.indexOf(false) < 0; + }, + + /* + * Emit select event with chosen date as payload + */ + emitChosenDate: function emitChosenDate(day) { + if (this.disabled) return; + + if (this.selectableDate(day)) { + this.$emit('select', day); + } + }, + eventsDateMatch: function eventsDateMatch(day) { + if (!this.events || !this.events.length) return false; + var dayEvents = []; + + for (var i = 0; i < this.events.length; i++) { + if (this.events[i].date.getDay() === day.getDay()) { + dayEvents.push(this.events[i]); + } + } + + if (!dayEvents.length) { + return false; + } + + return dayEvents; + }, + + /* + * Build classObject for cell using validations + */ + classObject: function classObject(day) { + function dateMatch(dateOne, dateTwo, multiple) { + // if either date is null or undefined, return false + // if using multiple flag, return false + if (!dateOne || !dateTwo || multiple) { + return false; + } + + if (Array.isArray(dateTwo)) { + return dateTwo.some(function (date) { + return dateOne.getDate() === date.getDate() && dateOne.getFullYear() === date.getFullYear() && dateOne.getMonth() === date.getMonth(); + }); + } + + return dateOne.getDate() === dateTwo.getDate() && dateOne.getFullYear() === dateTwo.getFullYear() && dateOne.getMonth() === dateTwo.getMonth(); + } + + function dateWithin(dateOne, dates, multiple) { + if (!Array.isArray(dates) || multiple) { + return false; + } + + return dateOne > dates[0] && dateOne < dates[1]; + } + + return { + 'is-selected': dateMatch(day, this.selectedDate) || dateWithin(day, this.selectedDate, this.multiple), + 'is-first-selected': dateMatch(day, Array.isArray(this.selectedDate) && this.selectedDate[0], this.multiple), + 'is-within-selected': dateWithin(day, this.selectedDate, this.multiple), + 'is-last-selected': dateMatch(day, Array.isArray(this.selectedDate) && this.selectedDate[1], this.multiple), + 'is-within-hovered-range': this.hoveredDateRange && this.hoveredDateRange.length === 2 && (dateMatch(day, this.hoveredDateRange) || dateWithin(day, this.hoveredDateRange)), + 'is-first-hovered': dateMatch(day, Array.isArray(this.hoveredDateRange) && this.hoveredDateRange[0]), + 'is-within-hovered': dateWithin(day, this.hoveredDateRange), + 'is-last-hovered': dateMatch(day, Array.isArray(this.hoveredDateRange) && this.hoveredDateRange[1]), + 'is-today': dateMatch(day, this.dateCreator()), + 'is-selectable': this.selectableDate(day) && !this.disabled, + 'is-unselectable': !this.selectableDate(day) || this.disabled, + 'is-invisible': !this.nearbyMonthDays && day.getMonth() !== this.month, + 'is-nearby': this.nearbySelectableMonthDays && day.getMonth() !== this.month + }; + }, + setRangeHoverEndDate: function setRangeHoverEndDate(day) { + if (this.range) { + this.$emit('rangeHoverEndDate', day); + } + }, + manageKeydown: function manageKeydown(_ref, weekDay) { + var key = _ref.key; + + // https://developer.mozilla.org/fr/docs/Web/API/KeyboardEvent/key/Key_Values#Navigation_keys + switch (key) { + case ' ': + case 'Space': + case 'Spacebar': + case 'Enter': + { + this.emitChosenDate(weekDay); + break; + } + + case 'ArrowLeft': + case 'Left': + { + this.changeFocus(weekDay, -1); + break; + } + + case 'ArrowRight': + case 'Right': + { + this.changeFocus(weekDay, 1); + break; + } + + case 'ArrowUp': + case 'Up': + { + this.changeFocus(weekDay, -7); + break; + } + + case 'ArrowDown': + case 'Down': + { + this.changeFocus(weekDay, 7); + break; + } + } + }, + changeFocus: function changeFocus(day, inc) { + var nextDay = day; + nextDay.setDate(day.getDate() + inc); + this.$emit('change-focus', nextDay); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"datepicker-row"},[(_vm.showWeekNumber)?_c('a',{staticClass:"datepicker-cell is-week-number"},[_c('span',[_vm._v(_vm._s(_vm.getWeekNumber(_vm.week[6])))])]):_vm._e(),_vm._l((_vm.week),function(weekDay,index){return [(_vm.selectableDate(weekDay) && !_vm.disabled)?_c('a',{key:index,ref:("day-" + (weekDay.getDate())),refInFor:true,staticClass:"datepicker-cell",class:[_vm.classObject(weekDay), {'has-event': _vm.eventsDateMatch(weekDay)}, _vm.indicators],attrs:{"role":"button","href":"#","disabled":_vm.disabled,"tabindex":_vm.day === weekDay.getDate() ? null : -1},on:{"click":function($event){$event.preventDefault();return _vm.emitChosenDate(weekDay)},"mouseenter":function($event){return _vm.setRangeHoverEndDate(weekDay)},"keydown":function($event){$event.preventDefault();return _vm.manageKeydown($event, weekDay)}}},[_c('span',[_vm._v(_vm._s(weekDay.getDate()))]),(_vm.eventsDateMatch(weekDay))?_c('div',{staticClass:"events"},_vm._l((_vm.eventsDateMatch(weekDay)),function(event,index){return _c('div',{key:index,staticClass:"event",class:event.type})}),0):_vm._e()]):_c('div',{key:index,staticClass:"datepicker-cell",class:_vm.classObject(weekDay)},[_c('span',[_vm._v(_vm._s(weekDay.getDate()))])])]})],2)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var DatepickerTableRow = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var isDefined = function isDefined(d) { + return d !== undefined; +}; + +var script$1 = { + name: 'BDatepickerTable', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, DatepickerTableRow.name, DatepickerTableRow), + props: { + value: { + type: [Date, Array] + }, + dayNames: Array, + monthNames: Array, + firstDayOfWeek: Number, + events: Array, + indicators: String, + minDate: Date, + maxDate: Date, + focused: Object, + disabled: Boolean, + dateCreator: Function, + unselectableDates: Array, + unselectableDaysOfWeek: Array, + selectableDates: Array, + nearbyMonthDays: Boolean, + nearbySelectableMonthDays: Boolean, + showWeekNumber: { + type: Boolean, + default: function _default() { + return false; + } + }, + rulesForFirstWeek: { + type: Number, + default: function _default() { + return 4; + } + }, + range: Boolean, + multiple: Boolean + }, + data: function data() { + return { + selectedBeginDate: undefined, + selectedEndDate: undefined, + hoveredEndDate: undefined, + multipleSelectedDates: this.multiple && this.value ? this.value : [] + }; + }, + computed: { + visibleDayNames: function visibleDayNames() { + var visibleDayNames = []; + var index = this.firstDayOfWeek; + + while (visibleDayNames.length < this.dayNames.length) { + var currentDayName = this.dayNames[index % this.dayNames.length]; + visibleDayNames.push(currentDayName); + index++; + } + + if (this.showWeekNumber) visibleDayNames.unshift(''); + return visibleDayNames; + }, + hasEvents: function hasEvents() { + return this.events && this.events.length; + }, + + /* + * Return array of all events in the specified month + */ + eventsInThisMonth: function eventsInThisMonth() { + if (!this.events) return []; + var monthEvents = []; + + for (var i = 0; i < this.events.length; i++) { + var event = this.events[i]; + + if (!event.hasOwnProperty('date')) { + event = { + date: event + }; + } + + if (!event.hasOwnProperty('type')) { + event.type = 'is-primary'; + } + + if (event.date.getMonth() === this.focused.month && event.date.getFullYear() === this.focused.year) { + monthEvents.push(event); + } + } + + return monthEvents; + }, + + /* + * Return array of all weeks in the specified month + */ + weeksInThisMonth: function weeksInThisMonth() { + this.validateFocusedDay(); + var month = this.focused.month; + var year = this.focused.year; + var weeksInThisMonth = []; + var startingDay = 1; + + while (weeksInThisMonth.length < 6) { + var newWeek = this.weekBuilder(startingDay, month, year); + weeksInThisMonth.push(newWeek); + startingDay += 7; + } + + return weeksInThisMonth; + }, + hoveredDateRange: function hoveredDateRange() { + if (!this.range) { + return []; + } + + if (!isNaN(this.selectedEndDate)) { + return []; + } + + if (this.hoveredEndDate < this.selectedBeginDate) { + return [this.hoveredEndDate, this.selectedBeginDate].filter(isDefined); + } + + return [this.selectedBeginDate, this.hoveredEndDate].filter(isDefined); + } + }, + methods: { + /* + * Emit input event with selected date as payload for v-model in parent + */ + updateSelectedDate: function updateSelectedDate(date) { + if (!this.range && !this.multiple) { + this.$emit('input', date); + } else if (this.range) { + this.handleSelectRangeDate(date); + } else if (this.multiple) { + this.handleSelectMultipleDates(date); + } + }, + + /* + * If both begin and end dates are set, reset the end date and set the begin date. + * If only begin date is selected, emit an array of the begin date and the new date. + * If not set, only set the begin date. + */ + handleSelectRangeDate: function handleSelectRangeDate(date) { + if (this.selectedBeginDate && this.selectedEndDate) { + this.selectedBeginDate = date; + this.selectedEndDate = undefined; + this.$emit('range-start', date); + } else if (this.selectedBeginDate && !this.selectedEndDate) { + if (this.selectedBeginDate > date) { + this.selectedEndDate = this.selectedBeginDate; + this.selectedBeginDate = date; + } else { + this.selectedEndDate = date; + } + + this.$emit('range-end', date); + this.$emit('input', [this.selectedBeginDate, this.selectedEndDate]); + } else { + this.selectedBeginDate = date; + this.$emit('range-start', date); + } + }, + + /* + * If selected date already exists list of selected dates, remove it from the list + * Otherwise, add date to list of selected dates + */ + handleSelectMultipleDates: function handleSelectMultipleDates(date) { + var multipleSelect = this.multipleSelectedDates.filter(function (selectedDate) { + return selectedDate.getDate() === date.getDate() && selectedDate.getFullYear() === date.getFullYear() && selectedDate.getMonth() === date.getMonth(); + }); + + if (multipleSelect.length) { + this.multipleSelectedDates = this.multipleSelectedDates.filter(function (selectedDate) { + return selectedDate.getDate() !== date.getDate() || selectedDate.getFullYear() !== date.getFullYear() || selectedDate.getMonth() !== date.getMonth(); + }); + } else { + this.multipleSelectedDates.push(date); + } + + this.$emit('input', this.multipleSelectedDates); + }, + + /* + * Return array of all days in the week that the startingDate is within + */ + weekBuilder: function weekBuilder(startingDate, month, year) { + var thisMonth = new Date(year, month); + var thisWeek = []; + var dayOfWeek = new Date(year, month, startingDate).getDay(); + var end = dayOfWeek >= this.firstDayOfWeek ? dayOfWeek - this.firstDayOfWeek : 7 - this.firstDayOfWeek + dayOfWeek; + var daysAgo = 1; + + for (var i = 0; i < end; i++) { + thisWeek.unshift(new Date(thisMonth.getFullYear(), thisMonth.getMonth(), startingDate - daysAgo)); + daysAgo++; + } + + thisWeek.push(new Date(year, month, startingDate)); + var daysForward = 1; + + while (thisWeek.length < 7) { + thisWeek.push(new Date(year, month, startingDate + daysForward)); + daysForward++; + } + + return thisWeek; + }, + validateFocusedDay: function validateFocusedDay() { + var focusedDate = new Date(this.focused.year, this.focused.month, this.focused.day); + if (this.selectableDate(focusedDate)) return; + var day = 0; // Number of days in the current month + + var monthDays = new Date(this.focused.year, this.focused.month + 1, 0).getDate(); + var firstFocusable = null; + + while (!firstFocusable && ++day < monthDays) { + var date = new Date(this.focused.year, this.focused.month, day); + + if (this.selectableDate(date)) { + firstFocusable = focusedDate; + var focused = { + day: date.getDate(), + month: date.getMonth(), + year: date.getFullYear() + }; + this.$emit('update:focused', focused); + } + } + }, + + /* + * Check that selected day is within earliest/latest params and + * is within this month + */ + selectableDate: function selectableDate(day) { + var validity = []; + + if (this.minDate) { + validity.push(day >= this.minDate); + } + + if (this.maxDate) { + validity.push(day <= this.maxDate); + } + + if (this.nearbyMonthDays && !this.nearbySelectableMonthDays) { + validity.push(day.getMonth() === this.focused.month); + } + + if (this.selectableDates) { + for (var i = 0; i < this.selectableDates.length; i++) { + var enabledDate = this.selectableDates[i]; + + if (day.getDate() === enabledDate.getDate() && day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) { + return true; + } else { + validity.push(false); + } + } + } + + if (this.unselectableDates) { + for (var _i = 0; _i < this.unselectableDates.length; _i++) { + var disabledDate = this.unselectableDates[_i]; + validity.push(day.getDate() !== disabledDate.getDate() || day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth()); + } + } + + if (this.unselectableDaysOfWeek) { + for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) { + var dayOfWeek = this.unselectableDaysOfWeek[_i2]; + validity.push(day.getDay() !== dayOfWeek); + } + } + + return validity.indexOf(false) < 0; + }, + eventsInThisWeek: function eventsInThisWeek(week) { + return this.eventsInThisMonth.filter(function (event) { + var stripped = new Date(Date.parse(event.date)); + stripped.setHours(0, 0, 0, 0); + var timed = stripped.getTime(); + return week.some(function (weekDate) { + return weekDate.getTime() === timed; + }); + }); + }, + setRangeHoverEndDate: function setRangeHoverEndDate(day) { + this.hoveredEndDate = day; + }, + changeFocus: function changeFocus(day) { + var focused = { + day: day.getDate(), + month: day.getMonth(), + year: day.getFullYear() + }; + this.$emit('update:focused', focused); + } + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"datepicker-table"},[_c('header',{staticClass:"datepicker-header"},_vm._l((_vm.visibleDayNames),function(day,index){return _c('div',{key:index,staticClass:"datepicker-cell"},[_c('span',[_vm._v(_vm._s(day))])])}),0),_c('div',{staticClass:"datepicker-body",class:{'has-events':_vm.hasEvents}},_vm._l((_vm.weeksInThisMonth),function(week,index){return _c('b-datepicker-table-row',{key:index,attrs:{"selected-date":_vm.value,"day":_vm.focused.day,"week":week,"month":_vm.focused.month,"min-date":_vm.minDate,"max-date":_vm.maxDate,"disabled":_vm.disabled,"unselectable-dates":_vm.unselectableDates,"unselectable-days-of-week":_vm.unselectableDaysOfWeek,"selectable-dates":_vm.selectableDates,"events":_vm.eventsInThisWeek(week),"indicators":_vm.indicators,"date-creator":_vm.dateCreator,"nearby-month-days":_vm.nearbyMonthDays,"nearby-selectable-month-days":_vm.nearbySelectableMonthDays,"show-week-number":_vm.showWeekNumber,"first-day-of-week":_vm.firstDayOfWeek,"rules-for-first-week":_vm.rulesForFirstWeek,"range":_vm.range,"hovered-date-range":_vm.hoveredDateRange,"multiple":_vm.multiple},on:{"select":_vm.updateSelectedDate,"rangeHoverEndDate":_vm.setRangeHoverEndDate,"change-focus":_vm.changeFocus}})}),1)])}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = false; + /* style inject */ + + /* style inject SSR */ + + + + var DatepickerTable = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +var script$2 = { + name: 'BDatepickerMonth', + props: { + value: { + type: [Date, Array] + }, + monthNames: Array, + events: Array, + indicators: String, + minDate: Date, + maxDate: Date, + focused: Object, + disabled: Boolean, + dateCreator: Function, + unselectableDates: Array, + unselectableDaysOfWeek: Array, + selectableDates: Array, + multiple: Boolean + }, + data: function data() { + return { + multipleSelectedDates: this.multiple && this.value ? this.value : [] + }; + }, + computed: { + hasEvents: function hasEvents() { + return this.events && this.events.length; + }, + + /* + * Return array of all events in the specified month + */ + eventsInThisYear: function eventsInThisYear() { + if (!this.events) return []; + var yearEvents = []; + + for (var i = 0; i < this.events.length; i++) { + var event = this.events[i]; + + if (!event.hasOwnProperty('date')) { + event = { + date: event + }; + } + + if (!event.hasOwnProperty('type')) { + event.type = 'is-primary'; + } + + if (event.date.getFullYear() === this.focused.year) { + yearEvents.push(event); + } + } + + return yearEvents; + }, + monthDates: function monthDates() { + var year = this.focused.year; + var months = []; + + for (var i = 0; i < 12; i++) { + var d = new Date(year, i, 1); + d.setHours(0, 0, 0, 0); + months.push(d); + } + + return months; + }, + focusedMonth: function focusedMonth() { + return this.focused.month; + } + }, + watch: { + focusedMonth: function focusedMonth(month) { + var _this = this; + + var refName = "month-".concat(month); + + if (this.$refs[refName] && this.$refs[refName].length > 0) { + this.$nextTick(function () { + if (_this.$refs[refName][0]) { + _this.$refs[refName][0].focus(); + } + }); // $nextTick needed when year is changed + } + } + }, + methods: { + selectMultipleDates: function selectMultipleDates(date) { + var multipleSelect = this.multipleSelectedDates.filter(function (selectedDate) { + return selectedDate.getDate() === date.getDate() && selectedDate.getFullYear() === date.getFullYear() && selectedDate.getMonth() === date.getMonth(); + }); + + if (multipleSelect.length) { + this.multipleSelectedDates = this.multipleSelectedDates.filter(function (selectedDate) { + return selectedDate.getDate() !== date.getDate() || selectedDate.getFullYear() !== date.getFullYear() || selectedDate.getMonth() !== date.getMonth(); + }); + } else { + this.multipleSelectedDates.push(date); + } + + this.$emit('input', this.multipleSelectedDates); + }, + selectableDate: function selectableDate(day) { + var validity = []; + + if (this.minDate) { + validity.push(day >= this.minDate); + } + + if (this.maxDate) { + validity.push(day <= this.maxDate); + } + + validity.push(day.getFullYear() === this.focused.year); + + if (this.selectableDates) { + for (var i = 0; i < this.selectableDates.length; i++) { + var enabledDate = this.selectableDates[i]; + + if (day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) { + return true; + } else { + validity.push(false); + } + } + } + + if (this.unselectableDates) { + for (var _i = 0; _i < this.unselectableDates.length; _i++) { + var disabledDate = this.unselectableDates[_i]; + validity.push(day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth()); + } + } + + if (this.unselectableDaysOfWeek) { + for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) { + var dayOfWeek = this.unselectableDaysOfWeek[_i2]; + validity.push(day.getDay() !== dayOfWeek); + } + } + + return validity.indexOf(false) < 0; + }, + eventsDateMatch: function eventsDateMatch(day) { + if (!this.eventsInThisYear.length) return false; + var monthEvents = []; + + for (var i = 0; i < this.eventsInThisYear.length; i++) { + if (this.eventsInThisYear[i].date.getMonth() === day.getMonth()) { + monthEvents.push(this.events[i]); + } + } + + if (!monthEvents.length) { + return false; + } + + return monthEvents; + }, + + /* + * Build classObject for cell using validations + */ + classObject: function classObject(day) { + function dateMatch(dateOne, dateTwo, multiple) { + // if either date is null or undefined, return false + if (!dateOne || !dateTwo || multiple) { + return false; + } + + return dateOne.getFullYear() === dateTwo.getFullYear() && dateOne.getMonth() === dateTwo.getMonth(); + } + + function dateMultipleSelected(dateOne, dates, multiple) { + if (!Array.isArray(dates) || !multiple) { + return false; + } + + return dates.some(function (date) { + return dateOne.getDate() === date.getDate() && dateOne.getFullYear() === date.getFullYear() && dateOne.getMonth() === date.getMonth(); + }); + } + + return { + 'is-selected': dateMatch(day, this.value, this.multiple) || dateMultipleSelected(day, this.multipleSelectedDates, this.multiple), + 'is-today': dateMatch(day, this.dateCreator()), + 'is-selectable': this.selectableDate(day) && !this.disabled, + 'is-unselectable': !this.selectableDate(day) || this.disabled + }; + }, + manageKeydown: function manageKeydown(_ref, date) { + var key = _ref.key; + + // https://developer.mozilla.org/fr/docs/Web/API/KeyboardEvent/key/Key_Values#Navigation_keys + switch (key) { + case ' ': + case 'Space': + case 'Spacebar': + case 'Enter': + { + this.emitChosenDate(date); + break; + } + + case 'ArrowLeft': + case 'Left': + { + this.changeFocus(date, -1); + break; + } + + case 'ArrowRight': + case 'Right': + { + this.changeFocus(date, 1); + break; + } + + case 'ArrowUp': + case 'Up': + { + this.changeFocus(date, -3); + break; + } + + case 'ArrowDown': + case 'Down': + { + this.changeFocus(date, 3); + break; + } + } + }, + + /* + * Emit select event with chosen date as payload + */ + emitChosenDate: function emitChosenDate(day) { + if (this.disabled) return; + + if (!this.multiple) { + if (this.selectableDate(day)) { + this.$emit('input', day); + } + } else { + this.selectMultipleDates(day); + } + }, + changeFocus: function changeFocus(month, inc) { + var nextMonth = month; + nextMonth.setMonth(month.getMonth() + inc); + this.$emit('change-focus', nextMonth); + } + } +}; + +/* script */ +const __vue_script__$2 = script$2; + +/* template */ +var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"datepicker-table"},[_c('div',{staticClass:"datepicker-body",class:{'has-events':_vm.hasEvents}},[_c('div',{staticClass:"datepicker-months"},[_vm._l((_vm.monthDates),function(date,index){return [(_vm.selectableDate(date) && !_vm.disabled)?_c('a',{key:index,ref:("month-" + (date.getMonth())),refInFor:true,staticClass:"datepicker-cell",class:[ + _vm.classObject(date), + {'has-event': _vm.eventsDateMatch(date)}, + _vm.indicators + ],attrs:{"role":"button","href":"#","disabled":_vm.disabled,"tabindex":_vm.focused.month === date.getMonth() ? null : -1},on:{"click":function($event){$event.preventDefault();return _vm.emitChosenDate(date)},"keydown":function($event){$event.preventDefault();return _vm.manageKeydown($event, date)}}},[_vm._v(" "+_vm._s(_vm.monthNames[date.getMonth()])+" "),(_vm.eventsDateMatch(date))?_c('div',{staticClass:"events"},_vm._l((_vm.eventsDateMatch(date)),function(event,index){return _c('div',{key:index,staticClass:"event",class:event.type})}),0):_vm._e()]):_c('div',{key:index,staticClass:"datepicker-cell",class:_vm.classObject(date)},[_vm._v(" "+_vm._s(_vm.monthNames[date.getMonth()])+" ")])]})],2)])])}; +var __vue_staticRenderFns__$2 = []; + + /* style */ + const __vue_inject_styles__$2 = undefined; + /* scoped */ + const __vue_scope_id__$2 = undefined; + /* module identifier */ + const __vue_module_identifier__$2 = undefined; + /* functional template */ + const __vue_is_functional_template__$2 = false; + /* style inject */ + + /* style inject SSR */ + + + + var DatepickerMonth = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 }, + __vue_inject_styles__$2, + __vue_script__$2, + __vue_scope_id__$2, + __vue_is_functional_template__$2, + __vue_module_identifier__$2, + undefined, + undefined + ); + +var _components; + +var defaultDateFormatter = function defaultDateFormatter(date, vm) { + var targetDates = Array.isArray(date) ? date : [date]; + var dates = targetDates.map(function (date) { + var d = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 12); + return !vm.isTypeMonth ? vm.dtf.format(d) : vm.dtfMonth.format(d); + }); + return !vm.multiple ? dates.join(' - ') : dates.join(', '); +}; + +var defaultDateParser = function defaultDateParser(date, vm) { + if (vm.dtf.formatToParts && typeof vm.dtf.formatToParts === 'function') { + var formatRegex = (vm.isTypeMonth ? vm.dtfMonth : vm.dtf).formatToParts(new Date(2000, 11, 25)).map(function (part) { + if (part.type === 'literal') { + return part.value; + } + + return "((?!=<".concat(part.type, ">)\\d+)"); + }).join(''); + var dateGroups = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["matchWithGroups"])(formatRegex, date); // We do a simple validation for the group. + // If it is not valid, it will fallback to Date.parse below + + if (dateGroups.year && dateGroups.year.length === 4 && dateGroups.month && dateGroups.month <= 12) { + if (vm.isTypeMonth) return new Date(dateGroups.year, dateGroups.month - 1);else if (dateGroups.day && dateGroups.day <= 31) { + return new Date(dateGroups.year, dateGroups.month - 1, dateGroups.day, 12); + } + } + } // Fallback if formatToParts is not supported or if we were not able to parse a valid date + + + if (!vm.isTypeMonth) return new Date(Date.parse(date)); + + if (date) { + var s = date.split('/'); + var year = s[0].length === 4 ? s[0] : s[1]; + var month = s[0].length === 2 ? s[0] : s[1]; + + if (year && month) { + return new Date(parseInt(year, 10), parseInt(month - 1, 10), 1, 0, 0, 0, 0); + } + } + + return null; +}; + +var script$3 = { + name: 'BDatepicker', + components: (_components = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, DatepickerTable.name, DatepickerTable), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, DatepickerMonth.name, DatepickerMonth), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__["I"].name, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_8__["F"].name, _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_8__["F"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_9__["S"].name, _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_9__["S"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_7__["D"].name, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_7__["D"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_7__["a"].name, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_7__["a"]), _components), + mixins: [_chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__["F"]], + inheritAttrs: false, + props: { + value: { + type: [Date, Array] + }, + dayNames: { + type: Array, + default: function _default() { + if (!Array.isArray(_chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDayNames)) { + return undefined; + } + + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDayNames; + } + }, + monthNames: { + type: Array, + default: function _default() { + if (!Array.isArray(_chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultMonthNames)) { + return undefined; + } + + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultMonthNames; + } + }, + firstDayOfWeek: { + type: Number, + default: function _default() { + if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultFirstDayOfWeek === 'number') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultFirstDayOfWeek; + } else { + return 0; + } + } + }, + inline: Boolean, + minDate: Date, + maxDate: Date, + focusedDate: Date, + placeholder: String, + editable: Boolean, + disabled: Boolean, + horizontalTimePicker: Boolean, + unselectableDates: Array, + unselectableDaysOfWeek: { + type: Array, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultUnselectableDaysOfWeek; + } + }, + selectableDates: Array, + dateFormatter: { + type: Function, + default: function _default(date, vm) { + if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDateFormatter === 'function') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDateFormatter(date); + } else { + return defaultDateFormatter(date, vm); + } + } + }, + dateParser: { + type: Function, + default: function _default(date, vm) { + if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDateParser === 'function') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDateParser(date); + } else { + return defaultDateParser(date, vm); + } + } + }, + dateCreator: { + type: Function, + default: function _default() { + if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDateCreator === 'function') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDateCreator(); + } else { + return new Date(); + } + } + }, + mobileNative: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatepickerMobileNative; + } + }, + position: String, + events: Array, + indicators: { + type: String, + default: 'dots' + }, + openOnFocus: Boolean, + iconPrev: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconPrev; + } + }, + iconNext: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconNext; + } + }, + yearsRange: { + type: Array, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatepickerYearsRange; + } + }, + type: { + type: String, + validator: function validator(value) { + return ['month'].indexOf(value) >= 0; + } + }, + nearbyMonthDays: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatepickerNearbyMonthDays; + } + }, + nearbySelectableMonthDays: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatepickerNearbySelectableMonthDays; + } + }, + showWeekNumber: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatepickerShowWeekNumber; + } + }, + rulesForFirstWeek: { + type: Number, + default: function _default() { + return 4; + } + }, + range: { + type: Boolean, + default: false + }, + closeOnClick: { + type: Boolean, + default: true + }, + multiple: { + type: Boolean, + default: false + }, + mobileModal: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatepickerMobileModal; + } + }, + focusable: { + type: Boolean, + default: true + }, + trapFocus: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultTrapFocus; + } + }, + appendToBody: Boolean, + ariaNextLabel: String, + ariaPreviousLabel: String + }, + data: function data() { + var focusedDate = (Array.isArray(this.value) ? this.value[0] : this.value) || this.focusedDate || this.dateCreator(); + return { + dateSelected: this.value, + focusedDateData: { + day: focusedDate.getDate(), + month: focusedDate.getMonth(), + year: focusedDate.getFullYear() + }, + _elementRef: 'input', + _isDatepicker: true + }; + }, + computed: { + computedValue: { + get: function get() { + return this.dateSelected; + }, + set: function set(value) { + var _this = this; + + this.updateInternalState(value); + if (!this.multiple) this.togglePicker(false); + this.$emit('input', value); + + if (this.useHtml5Validation) { + this.$nextTick(function () { + _this.checkHtml5Validity(); + }); + } + } + }, + formattedValue: function formattedValue() { + return this.formatValue(this.computedValue); + }, + localeOptions: function localeOptions() { + return new Intl.DateTimeFormat(this.locale, { + year: 'numeric', + month: 'numeric' + }).resolvedOptions(); + }, + dtf: function dtf() { + return new Intl.DateTimeFormat(this.locale, { + timezome: 'UTC' + }); + }, + dtfMonth: function dtfMonth() { + return new Intl.DateTimeFormat(this.locale, { + year: this.localeOptions.year || 'numeric', + month: this.localeOptions.month || '2-digit', + timezome: 'UTC' + }); + }, + newMonthNames: function newMonthNames() { + if (Array.isArray(this.monthNames)) { + return this.monthNames; + } + + return Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["getMonthNames"])(this.locale); + }, + newDayNames: function newDayNames() { + if (Array.isArray(this.dayNames)) { + return this.dayNames; + } + + return Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["getWeekdayNames"])(this.locale, this.firstDayOfWeek); + }, + listOfMonths: function listOfMonths() { + var minMonth = 0; + var maxMonth = 12; + + if (this.minDate && this.focusedDateData.year === this.minDate.getFullYear()) { + minMonth = this.minDate.getMonth(); + } + + if (this.maxDate && this.focusedDateData.year === this.maxDate.getFullYear()) { + maxMonth = this.maxDate.getMonth(); + } + + return this.newMonthNames.map(function (name, index) { + return { + name: name, + index: index, + disabled: index < minMonth || index > maxMonth + }; + }); + }, + + /* + * Returns an array of years for the year dropdown. If earliest/latest + * dates are set by props, range of years will fall within those dates. + */ + listOfYears: function listOfYears() { + var latestYear = this.focusedDateData.year + this.yearsRange[1]; + + if (this.maxDate && this.maxDate.getFullYear() < latestYear) { + latestYear = Math.max(this.maxDate.getFullYear(), this.focusedDateData.year); + } + + var earliestYear = this.focusedDateData.year + this.yearsRange[0]; + + if (this.minDate && this.minDate.getFullYear() > earliestYear) { + earliestYear = Math.min(this.minDate.getFullYear(), this.focusedDateData.year); + } + + var arrayOfYears = []; + + for (var i = earliestYear; i <= latestYear; i++) { + arrayOfYears.push(i); + } + + return arrayOfYears.reverse(); + }, + showPrev: function showPrev() { + if (!this.minDate) return false; + + if (this.isTypeMonth) { + return this.focusedDateData.year <= this.minDate.getFullYear(); + } + + var dateToCheck = new Date(this.focusedDateData.year, this.focusedDateData.month); + var date = new Date(this.minDate.getFullYear(), this.minDate.getMonth()); + return dateToCheck <= date; + }, + showNext: function showNext() { + if (!this.maxDate) return false; + + if (this.isTypeMonth) { + return this.focusedDateData.year >= this.maxDate.getFullYear(); + } + + var dateToCheck = new Date(this.focusedDateData.year, this.focusedDateData.month); + var date = new Date(this.maxDate.getFullYear(), this.maxDate.getMonth()); + return dateToCheck >= date; + }, + isMobile: function isMobile$1() { + return this.mobileNative && _helpers_js__WEBPACK_IMPORTED_MODULE_1__["isMobile"].any(); + }, + isTypeMonth: function isTypeMonth() { + return this.type === 'month'; + }, + ariaRole: function ariaRole() { + if (!this.inline) { + return 'dialog'; + } + } + }, + watch: { + /** + * When v-model is changed: + * 1. Update internal value. + * 2. If it's invalid, validate again. + */ + value: function value(_value) { + this.updateInternalState(_value); + if (!this.multiple) this.togglePicker(false); + }, + focusedDate: function focusedDate(value) { + if (value) { + this.focusedDateData = { + day: value.getDate(), + month: value.getMonth(), + year: value.getFullYear() + }; + } + }, + + /* + * Emit input event on month and/or year change + */ + 'focusedDateData.month': function focusedDateDataMonth(value) { + this.$emit('change-month', value); + }, + 'focusedDateData.year': function focusedDateDataYear(value) { + this.$emit('change-year', value); + } + }, + methods: { + /* + * Parse string into date + */ + onChange: function onChange(value) { + var date = this.dateParser(value, this); + + if (date && (!isNaN(date) || Array.isArray(date) && date.length === 2 && !isNaN(date[0]) && !isNaN(date[1]))) { + this.computedValue = date; + } else { + // Force refresh input value when not valid date + this.computedValue = null; + + if (this.$refs.input) { + this.$refs.input.newValue = this.computedValue; + } + } + }, + + /* + * Format date into string + */ + formatValue: function formatValue(value) { + if (Array.isArray(value)) { + var isArrayWithValidDates = Array.isArray(value) && value.every(function (v) { + return !isNaN(v); + }); + return isArrayWithValidDates ? this.dateFormatter(Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["d"])(value), this) : null; + } + + return value && !isNaN(value) ? this.dateFormatter(value, this) : null; + }, + + /* + * Either decrement month by 1 if not January or decrement year by 1 + * and set month to 11 (December) or decrement year when 'month' + */ + prev: function prev() { + if (this.disabled) return; + + if (this.isTypeMonth) { + this.focusedDateData.year -= 1; + } else { + if (this.focusedDateData.month > 0) { + this.focusedDateData.month -= 1; + } else { + this.focusedDateData.month = 11; + this.focusedDateData.year -= 1; + } + } + }, + + /* + * Either increment month by 1 if not December or increment year by 1 + * and set month to 0 (January) or increment year when 'month' + */ + next: function next() { + if (this.disabled) return; + + if (this.isTypeMonth) { + this.focusedDateData.year += 1; + } else { + if (this.focusedDateData.month < 11) { + this.focusedDateData.month += 1; + } else { + this.focusedDateData.month = 0; + this.focusedDateData.year += 1; + } + } + }, + formatNative: function formatNative(value) { + return this.isTypeMonth ? this.formatYYYYMM(value) : this.formatYYYYMMDD(value); + }, + + /* + * Format date into string 'YYYY-MM-DD' + */ + formatYYYYMMDD: function formatYYYYMMDD(value) { + var date = new Date(value); + + if (value && !isNaN(date)) { + var year = date.getFullYear(); + var month = date.getMonth() + 1; + var day = date.getDate(); + return year + '-' + ((month < 10 ? '0' : '') + month) + '-' + ((day < 10 ? '0' : '') + day); + } + + return ''; + }, + + /* + * Format date into string 'YYYY-MM' + */ + formatYYYYMM: function formatYYYYMM(value) { + var date = new Date(value); + + if (value && !isNaN(date)) { + var year = date.getFullYear(); + var month = date.getMonth() + 1; + return year + '-' + ((month < 10 ? '0' : '') + month); + } + + return ''; + }, + + /* + * Parse date from string + */ + onChangeNativePicker: function onChangeNativePicker(event) { + var date = event.target.value; + var s = date ? date.split('-') : []; + + if (s.length === 3) { + var year = parseInt(s[0], 10); + var month = parseInt(s[1]) - 1; + var day = parseInt(s[2]); + this.computedValue = new Date(year, month, day); + } else { + this.computedValue = null; + } + }, + updateInternalState: function updateInternalState(value) { + var currentDate = Array.isArray(value) ? !value.length ? this.dateCreator() : value[0] : !value ? this.dateCreator() : value; + this.focusedDateData = { + day: currentDate.getDate(), + month: currentDate.getMonth(), + year: currentDate.getFullYear() + }; + this.dateSelected = value; + }, + + /* + * Toggle datepicker + */ + togglePicker: function togglePicker(active) { + if (this.$refs.dropdown) { + if (this.closeOnClick) { + this.$refs.dropdown.isActive = typeof active === 'boolean' ? active : !this.$refs.dropdown.isActive; + } + } + }, + + /* + * Call default onFocus method and show datepicker + */ + handleOnFocus: function handleOnFocus(event) { + this.onFocus(event); + + if (this.openOnFocus) { + this.togglePicker(true); + } + }, + + /* + * Toggle dropdown + */ + toggle: function toggle() { + if (this.mobileNative && this.isMobile) { + var input = this.$refs.input.$refs.input; + input.focus(); + input.click(); + return; + } + + this.$refs.dropdown.toggle(); + }, + + /* + * Avoid dropdown toggle when is already visible + */ + onInputClick: function onInputClick(event) { + if (this.$refs.dropdown.isActive) { + event.stopPropagation(); + } + }, + + /** + * Keypress event that is bound to the document. + */ + keyPress: function keyPress(_ref) { + var key = _ref.key; + + if (this.$refs.dropdown && this.$refs.dropdown.isActive && (key === 'Escape' || key === 'Esc')) { + this.togglePicker(false); + } + }, + + /** + * Emit 'blur' event on dropdown is not active (closed) + */ + onActiveChange: function onActiveChange(value) { + if (!value) { + this.onBlur(); + } + }, + changeFocus: function changeFocus(day) { + this.focusedDateData = { + day: day.getDate(), + month: day.getMonth(), + year: day.getFullYear() + }; + } + }, + created: function created() { + if (typeof window !== 'undefined') { + document.addEventListener('keyup', this.keyPress); + } + }, + beforeDestroy: function beforeDestroy() { + if (typeof window !== 'undefined') { + document.removeEventListener('keyup', this.keyPress); + } + } +}; + +/* script */ +const __vue_script__$3 = script$3; + +/* template */ +var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"datepicker control",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:"dropdown",attrs:{"position":_vm.position,"disabled":_vm.disabled,"inline":_vm.inline,"mobile-modal":_vm.mobileModal,"trap-focus":_vm.trapFocus,"aria-role":_vm.ariaRole,"aria-modal":!_vm.inline,"append-to-body":_vm.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":_vm.onActiveChange},scopedSlots:_vm._u([(!_vm.inline)?{key:"trigger",fn:function(){return [_vm._t("trigger",[_c('b-input',_vm._b({ref:"input",attrs:{"autocomplete":"off","value":_vm.formattedValue,"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"disabled":_vm.disabled,"readonly":!_vm.editable,"use-html5-validation":false},on:{"focus":_vm.handleOnFocus},nativeOn:{"click":function($event){return _vm.onInputClick($event)},"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.togglePicker(true)},"change":function($event){return _vm.onChange($event.target.value)}}},'b-input',_vm.$attrs,false))])]},proxy:true}:null],null,true)},[_c('b-dropdown-item',{class:{'dropdown-horizonal-timepicker': _vm.horizontalTimePicker},attrs:{"disabled":_vm.disabled,"focusable":_vm.focusable,"custom":""}},[_c('div',[_c('header',{staticClass:"datepicker-header"},[(_vm.$slots.header !== undefined && _vm.$slots.header.length)?[_vm._t("header")]:_c('div',{staticClass:"pagination field is-centered",class:_vm.size},[_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showPrev && !_vm.disabled),expression:"!showPrev && !disabled"}],staticClass:"pagination-previous",attrs:{"role":"button","href":"#","disabled":_vm.disabled,"aria-label":_vm.ariaPreviousLabel},on:{"click":function($event){$event.preventDefault();return _vm.prev($event)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.prev($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.prev($event)}]}},[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","type":"is-primary is-clickable"}})],1),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showNext && !_vm.disabled),expression:"!showNext && !disabled"}],staticClass:"pagination-next",attrs:{"role":"button","href":"#","disabled":_vm.disabled,"aria-label":_vm.ariaNextLabel},on:{"click":function($event){$event.preventDefault();return _vm.next($event)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.next($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.next($event)}]}},[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","type":"is-primary is-clickable"}})],1),_c('div',{staticClass:"pagination-list"},[_c('b-field',[(!_vm.isTypeMonth)?_c('b-select',{attrs:{"disabled":_vm.disabled,"size":_vm.size},model:{value:(_vm.focusedDateData.month),callback:function ($$v) {_vm.$set(_vm.focusedDateData, "month", $$v);},expression:"focusedDateData.month"}},_vm._l((_vm.listOfMonths),function(month){return _c('option',{key:month.name,attrs:{"disabled":month.disabled},domProps:{"value":month.index}},[_vm._v(" "+_vm._s(month.name)+" ")])}),0):_vm._e(),_c('b-select',{attrs:{"disabled":_vm.disabled,"size":_vm.size},model:{value:(_vm.focusedDateData.year),callback:function ($$v) {_vm.$set(_vm.focusedDateData, "year", $$v);},expression:"focusedDateData.year"}},_vm._l((_vm.listOfYears),function(year){return _c('option',{key:year,domProps:{"value":year}},[_vm._v(" "+_vm._s(year)+" ")])}),0)],1)],1)])],2),(!_vm.isTypeMonth)?_c('div',{staticClass:"datepicker-content",class:{'content-horizonal-timepicker': _vm.horizontalTimePicker}},[_c('b-datepicker-table',{attrs:{"day-names":_vm.newDayNames,"month-names":_vm.newMonthNames,"first-day-of-week":_vm.firstDayOfWeek,"rules-for-first-week":_vm.rulesForFirstWeek,"min-date":_vm.minDate,"max-date":_vm.maxDate,"focused":_vm.focusedDateData,"disabled":_vm.disabled,"unselectable-dates":_vm.unselectableDates,"unselectable-days-of-week":_vm.unselectableDaysOfWeek,"selectable-dates":_vm.selectableDates,"events":_vm.events,"indicators":_vm.indicators,"date-creator":_vm.dateCreator,"type-month":_vm.isTypeMonth,"nearby-month-days":_vm.nearbyMonthDays,"nearby-selectable-month-days":_vm.nearbySelectableMonthDays,"show-week-number":_vm.showWeekNumber,"range":_vm.range,"multiple":_vm.multiple},on:{"range-start":function (date) { return _vm.$emit('range-start', date); },"range-end":function (date) { return _vm.$emit('range-end', date); },"close":function($event){return _vm.togglePicker(false)},"update:focused":function($event){_vm.focusedDateData = $event;}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}})],1):_c('div',[_c('b-datepicker-month',{attrs:{"month-names":_vm.newMonthNames,"min-date":_vm.minDate,"max-date":_vm.maxDate,"focused":_vm.focusedDateData,"disabled":_vm.disabled,"unselectable-dates":_vm.unselectableDates,"unselectable-days-of-week":_vm.unselectableDaysOfWeek,"selectable-dates":_vm.selectableDates,"events":_vm.events,"indicators":_vm.indicators,"date-creator":_vm.dateCreator,"multiple":_vm.multiple},on:{"close":function($event){return _vm.togglePicker(false)},"change-focus":_vm.changeFocus,"update:focused":function($event){_vm.focusedDateData = $event;}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}})],1)]),(_vm.$slots.default !== undefined && _vm.$slots.default.length)?_c('footer',{staticClass:"datepicker-footer",class:{'footer-horizontal-timepicker': _vm.horizontalTimePicker}},[_vm._t("default")],2):_vm._e()])],1):_c('b-input',_vm._b({ref:"input",attrs:{"type":!_vm.isTypeMonth ? 'date' : 'month',"autocomplete":"off","value":_vm.formatNative(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"max":_vm.formatNative(_vm.maxDate),"min":_vm.formatNative(_vm.minDate),"disabled":_vm.disabled,"readonly":false,"use-html5-validation":false},on:{"focus":_vm.onFocus,"blur":_vm.onBlur},nativeOn:{"change":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))],1)}; +var __vue_staticRenderFns__$3 = []; + + /* style */ + const __vue_inject_styles__$3 = undefined; + /* scoped */ + const __vue_scope_id__$3 = undefined; + /* module identifier */ + const __vue_module_identifier__$3 = undefined; + /* functional template */ + const __vue_is_functional_template__$3 = false; + /* style inject */ + + /* style inject SSR */ + + + + var Datepicker = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 }, + __vue_inject_styles__$3, + __vue_script__$3, + __vue_scope_id__$3, + __vue_is_functional_template__$3, + __vue_module_identifier__$3, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-42f463e6.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-42f463e6.js ***! + \*******************************************************/ +/*! exports provided: t */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return directive; }); +var findFocusable = function findFocusable(element) { + var programmatic = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + if (!element) { + return null; + } + + if (programmatic) { + return element.querySelectorAll("*[tabindex=\"-1\"]"); + } + + return element.querySelectorAll("a[href]:not([tabindex=\"-1\"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex=\"-1\"]),\n *[contenteditable]"); +}; + +var onKeyDown; + +var bind = function bind(el, _ref) { + var _ref$value = _ref.value, + value = _ref$value === void 0 ? true : _ref$value; + + if (value) { + var focusable = findFocusable(el); + var focusableProg = findFocusable(el, true); + + if (focusable && focusable.length > 0) { + onKeyDown = function onKeyDown(event) { + // Need to get focusable each time since it can change between key events + // ex. changing month in a datepicker + focusable = findFocusable(el); + focusableProg = findFocusable(el, true); + var firstFocusable = focusable[0]; + var lastFocusable = focusable[focusable.length - 1]; + + if (event.target === firstFocusable && event.shiftKey && event.key === 'Tab') { + event.preventDefault(); + lastFocusable.focus(); + } else if ((event.target === lastFocusable || Array.from(focusableProg).indexOf(event.target) >= 0) && !event.shiftKey && event.key === 'Tab') { + event.preventDefault(); + firstFocusable.focus(); + } + }; + + el.addEventListener('keydown', onKeyDown); + } + } +}; + +var unbind = function unbind(el) { + el.removeEventListener('keydown', onKeyDown); +}; + +var directive = { + bind: bind, + unbind: unbind +}; + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-5425f0a4.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-5425f0a4.js ***! + \*******************************************************/ +/*! exports provided: P, a */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return Pagination; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PaginationButton; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + + +// +var script = { + name: 'BPaginationButton', + props: { + page: { + type: Object, + required: true + }, + tag: { + type: String, + default: 'a', + validator: function validator(value) { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultLinkTags.indexOf(value) >= 0; + } + }, + disabled: { + type: Boolean, + default: false + } + }, + computed: { + href: function href() { + if (this.tag === 'a') { + return '#'; + } + }, + isDisabled: function isDisabled() { + return this.disabled || this.page.disabled; + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () { +var _obj; +var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,_vm._b({tag:"component",staticClass:"pagination-link",class:( _obj = { 'is-current': _vm.page.isCurrent }, _obj[_vm.page.class] = true, _obj ),attrs:{"role":"button","href":_vm.href,"disabled":_vm.isDisabled,"aria-label":_vm.page['aria-label'],"aria-current":_vm.page.isCurrent},on:{"click":function($event){$event.preventDefault();return _vm.page.click($event)}}},'component',_vm.$attrs,false),[_vm._t("default",[_vm._v(_vm._s(_vm.page.number))])],2)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var PaginationButton = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var _components; +var script$1 = { + name: 'BPagination', + components: (_components = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_2__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_2__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, PaginationButton.name, PaginationButton), _components), + // deprecated, to replace with default 'value' in the next breaking change + model: { + prop: 'current', + event: 'update:current' + }, + props: { + total: [Number, String], + perPage: { + type: [Number, String], + default: 20 + }, + current: { + type: [Number, String], + default: 1 + }, + rangeBefore: { + type: [Number, String], + default: 1 + }, + rangeAfter: { + type: [Number, String], + default: 1 + }, + size: String, + simple: Boolean, + rounded: Boolean, + order: String, + iconPack: String, + iconPrev: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultIconPrev; + } + }, + iconNext: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultIconNext; + } + }, + ariaNextLabel: String, + ariaPreviousLabel: String, + ariaPageLabel: String, + ariaCurrentLabel: String + }, + computed: { + rootClasses: function rootClasses() { + return [this.order, this.size, { + 'is-simple': this.simple, + 'is-rounded': this.rounded + }]; + }, + beforeCurrent: function beforeCurrent() { + return parseInt(this.rangeBefore); + }, + afterCurrent: function afterCurrent() { + return parseInt(this.rangeAfter); + }, + + /** + * Total page size (count). + */ + pageCount: function pageCount() { + return Math.ceil(this.total / this.perPage); + }, + + /** + * First item of the page (count). + */ + firstItem: function firstItem() { + var firstItem = this.current * this.perPage - this.perPage + 1; + return firstItem >= 0 ? firstItem : 0; + }, + + /** + * Check if previous button is available. + */ + hasPrev: function hasPrev() { + return this.current > 1; + }, + + /** + * Check if first page button should be visible. + */ + hasFirst: function hasFirst() { + return this.current >= 2 + this.beforeCurrent; + }, + + /** + * Check if first ellipsis should be visible. + */ + hasFirstEllipsis: function hasFirstEllipsis() { + return this.current >= this.beforeCurrent + 4; + }, + + /** + * Check if last page button should be visible. + */ + hasLast: function hasLast() { + return this.current <= this.pageCount - (1 + this.afterCurrent); + }, + + /** + * Check if last ellipsis should be visible. + */ + hasLastEllipsis: function hasLastEllipsis() { + return this.current < this.pageCount - (2 + this.afterCurrent); + }, + + /** + * Check if next button is available. + */ + hasNext: function hasNext() { + return this.current < this.pageCount; + }, + + /** + * Get near pages, 1 before and 1 after the current. + * Also add the click event to the array. + */ + pagesInRange: function pagesInRange() { + if (this.simple) return; + var left = Math.max(1, this.current - this.beforeCurrent); + + if (left - 1 === 2) { + left--; // Do not show the ellipsis if there is only one to hide + } + + var right = Math.min(this.current + this.afterCurrent, this.pageCount); + + if (this.pageCount - right === 2) { + right++; // Do not show the ellipsis if there is only one to hide + } + + var pages = []; + + for (var i = left; i <= right; i++) { + pages.push(this.getPage(i)); + } + + return pages; + } + }, + watch: { + /** + * If current page is trying to be greater than page count, set to last. + */ + pageCount: function pageCount(value) { + if (this.current > value) this.last(); + } + }, + methods: { + /** + * Previous button click listener. + */ + prev: function prev(event) { + this.changePage(this.current - 1, event); + }, + + /** + * Next button click listener. + */ + next: function next(event) { + this.changePage(this.current + 1, event); + }, + + /** + * First button click listener. + */ + first: function first(event) { + this.changePage(1, event); + }, + + /** + * Last button click listener. + */ + last: function last(event) { + this.changePage(this.pageCount, event); + }, + changePage: function changePage(num, event) { + if (this.current === num || num < 1 || num > this.pageCount) return; + this.$emit('update:current', num); + this.$emit('change', num); // Set focus on element to keep tab order + + if (event && event.target) { + this.$nextTick(function () { + return event.target.focus(); + }); + } + }, + getPage: function getPage(num) { + var _this = this; + + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + return { + number: num, + isCurrent: this.current === num, + click: function click(event) { + return _this.changePage(num, event); + }, + disabled: options.disabled || false, + class: options.class || '', + 'aria-label': options['aria-label'] || this.getAriaPageLabel(num, this.current === num) + }; + }, + + /** + * Get text for aria-label according to page number. + */ + getAriaPageLabel: function getAriaPageLabel(pageNumber, isCurrent) { + if (this.ariaPageLabel && (!isCurrent || !this.ariaCurrentLabel)) { + return this.ariaPageLabel + ' ' + pageNumber + '.'; + } else if (this.ariaPageLabel && isCurrent && this.ariaCurrentLabel) { + return this.ariaCurrentLabel + ', ' + this.ariaPageLabel + ' ' + pageNumber + '.'; + } + + return null; + } + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"pagination",class:_vm.rootClasses},[(_vm.$scopedSlots.previous)?_vm._t("previous",[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],{"page":_vm.getPage(_vm.current - 1, { + disabled: !_vm.hasPrev, + class: 'pagination-previous', + 'aria-label': _vm.ariaPreviousLabel + })}):_c('BPaginationButton',{staticClass:"pagination-previous",attrs:{"disabled":!_vm.hasPrev,"page":_vm.getPage(_vm.current - 1)}},[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),(_vm.$scopedSlots.next)?_vm._t("next",[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],{"page":_vm.getPage(_vm.current + 1, { + disabled: !_vm.hasNext, + class: 'pagination-next', + 'aria-label': _vm.ariaNextLabel + })}):_c('BPaginationButton',{staticClass:"pagination-next",attrs:{"disabled":!_vm.hasNext,"page":_vm.getPage(_vm.current + 1)}},[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),(_vm.simple)?_c('small',{staticClass:"info"},[(_vm.perPage == 1)?[_vm._v(" "+_vm._s(_vm.firstItem)+" / "+_vm._s(_vm.total)+" ")]:[_vm._v(" "+_vm._s(_vm.firstItem)+"-"+_vm._s(Math.min(_vm.current * _vm.perPage, _vm.total))+" / "+_vm._s(_vm.total)+" ")]],2):_c('ul',{staticClass:"pagination-list"},[(_vm.hasFirst)?_c('li',[(_vm.$scopedSlots.default)?_vm._t("default",null,{"page":_vm.getPage(1)}):_c('BPaginationButton',{attrs:{"page":_vm.getPage(1)}})],2):_vm._e(),(_vm.hasFirstEllipsis)?_c('li',[_c('span',{staticClass:"pagination-ellipsis"},[_vm._v("…")])]):_vm._e(),_vm._l((_vm.pagesInRange),function(page){return _c('li',{key:page.number},[(_vm.$scopedSlots.default)?_vm._t("default",null,{"page":page}):_c('BPaginationButton',{attrs:{"page":page}})],2)}),(_vm.hasLastEllipsis)?_c('li',[_c('span',{staticClass:"pagination-ellipsis"},[_vm._v("…")])]):_vm._e(),(_vm.hasLast)?_c('li',[(_vm.$scopedSlots.default)?_vm._t("default",null,{"page":_vm.getPage(_vm.pageCount)}):_c('BPaginationButton',{attrs:{"page":_vm.getPage(_vm.pageCount)}})],2):_vm._e()],2)],2)}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = false; + /* style inject */ + + /* style inject SSR */ + + + + var Pagination = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-5e460019.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-5e460019.js ***! + \*******************************************************/ +/*! exports provided: T */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return TimepickerMixin; }); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); + + + + +var AM = 'AM'; +var PM = 'PM'; +var HOUR_FORMAT_24 = '24'; +var HOUR_FORMAT_12 = '12'; + +var defaultTimeFormatter = function defaultTimeFormatter(date, vm) { + return vm.dtf.format(date); +}; + +var defaultTimeParser = function defaultTimeParser(timeString, vm) { + if (timeString) { + var d = null; + + if (vm.computedValue && !isNaN(vm.computedValue)) { + d = new Date(vm.computedValue); + } else { + d = vm.timeCreator(); + d.setMilliseconds(0); + } + + if (vm.dtf.formatToParts && typeof vm.dtf.formatToParts === 'function') { + var formatRegex = vm.dtf.formatToParts(d).map(function (part) { + if (part.type === 'literal') { + return part.value.replace(/ /g, '\\s?'); + } else if (part.type === 'dayPeriod') { + return "((?!=<".concat(part.type, ">)(").concat(vm.amString, "|").concat(vm.pmString, "|").concat(AM, "|").concat(PM, "|").concat(AM.toLowerCase(), "|").concat(PM.toLowerCase(), ")?)"); + } + + return "((?!=<".concat(part.type, ">)\\d+)"); + }).join(''); + var timeGroups = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_0__["matchWithGroups"])(formatRegex, timeString); // We do a simple validation for the group. + // If it is not valid, it will fallback to Date.parse below + + timeGroups.hour = timeGroups.hour ? parseInt(timeGroups.hour, 10) : null; + timeGroups.minute = timeGroups.minute ? parseInt(timeGroups.minute, 10) : null; + timeGroups.second = timeGroups.second ? parseInt(timeGroups.second, 10) : null; + + if (timeGroups.hour && timeGroups.hour >= 0 && timeGroups.hour < 24 && timeGroups.minute && timeGroups.minute >= 0 && timeGroups.minute < 59) { + if (timeGroups.dayPeriod && (timeGroups.dayPeriod.toLowerCase() === vm.pmString.toLowerCase() || timeGroups.dayPeriod.toLowerCase() === PM.toLowerCase()) && timeGroups.hour < 12) { + timeGroups.hour += 12; + } + + d.setHours(timeGroups.hour); + d.setMinutes(timeGroups.minute); + d.setSeconds(timeGroups.second || 0); + return d; + } + } // Fallback if formatToParts is not supported or if we were not able to parse a valid date + + + var am = false; + + if (vm.hourFormat === HOUR_FORMAT_12) { + var dateString12 = timeString.split(' '); + timeString = dateString12[0]; + am = dateString12[1] === vm.amString || dateString12[1] === AM; + } + + var time = timeString.split(':'); + var hours = parseInt(time[0], 10); + var minutes = parseInt(time[1], 10); + var seconds = vm.enableSeconds ? parseInt(time[2], 10) : 0; + + if (isNaN(hours) || hours < 0 || hours > 23 || vm.hourFormat === HOUR_FORMAT_12 && (hours < 1 || hours > 12) || isNaN(minutes) || minutes < 0 || minutes > 59) { + return null; + } + + d.setSeconds(seconds); + d.setMinutes(minutes); + + if (vm.hourFormat === HOUR_FORMAT_12) { + if (am && hours === 12) { + hours = 0; + } else if (!am && hours !== 12) { + hours += 12; + } + } + + d.setHours(hours); + return new Date(d.getTime()); + } + + return null; +}; + +var TimepickerMixin = { + mixins: [_chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_2__["F"]], + inheritAttrs: false, + props: { + value: Date, + inline: Boolean, + minTime: Date, + maxTime: Date, + placeholder: String, + editable: Boolean, + disabled: Boolean, + hourFormat: { + type: String, + validator: function validator(value) { + return value === HOUR_FORMAT_24 || value === HOUR_FORMAT_12; + } + }, + incrementHours: { + type: Number, + default: 1 + }, + incrementMinutes: { + type: Number, + default: 1 + }, + incrementSeconds: { + type: Number, + default: 1 + }, + timeFormatter: { + type: Function, + default: function _default(date, vm) { + if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultTimeFormatter === 'function') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultTimeFormatter(date); + } else { + return defaultTimeFormatter(date, vm); + } + } + }, + timeParser: { + type: Function, + default: function _default(date, vm) { + if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultTimeParser === 'function') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultTimeParser(date); + } else { + return defaultTimeParser(date, vm); + } + } + }, + mobileNative: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultTimepickerMobileNative; + } + }, + timeCreator: { + type: Function, + default: function _default() { + if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultTimeCreator === 'function') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultTimeCreator(); + } else { + return new Date(); + } + } + }, + position: String, + unselectableTimes: Array, + openOnFocus: Boolean, + enableSeconds: Boolean, + defaultMinutes: Number, + defaultSeconds: Number, + focusable: { + type: Boolean, + default: true + }, + tzOffset: { + type: Number, + default: 0 + }, + appendToBody: Boolean, + resetOnMeridianChange: { + type: Boolean, + default: false + } + }, + data: function data() { + return { + dateSelected: this.value, + hoursSelected: null, + minutesSelected: null, + secondsSelected: null, + meridienSelected: null, + _elementRef: 'input', + AM: AM, + PM: PM, + HOUR_FORMAT_24: HOUR_FORMAT_24, + HOUR_FORMAT_12: HOUR_FORMAT_12 + }; + }, + computed: { + computedValue: { + get: function get() { + return this.dateSelected; + }, + set: function set(value) { + this.dateSelected = value; + this.$emit('input', this.dateSelected); + } + }, + localeOptions: function localeOptions() { + return new Intl.DateTimeFormat(this.locale, { + hour: 'numeric', + minute: 'numeric', + second: this.enableSeconds ? 'numeric' : undefined + }).resolvedOptions(); + }, + dtf: function dtf() { + return new Intl.DateTimeFormat(this.locale, { + hour: this.localeOptions.hour || 'numeric', + minute: this.localeOptions.minute || 'numeric', + second: this.enableSeconds ? this.localeOptions.second || 'numeric' : undefined, + hour12: !this.isHourFormat24, + timezome: 'UTC' + }); + }, + newHourFormat: function newHourFormat() { + return this.hourFormat || (this.localeOptions.hour12 ? HOUR_FORMAT_12 : HOUR_FORMAT_24); + }, + sampleTime: function sampleTime() { + var d = this.timeCreator(); + d.setHours(10); + d.setSeconds(0); + d.setMinutes(0); + d.setMilliseconds(0); + return d; + }, + hourLiteral: function hourLiteral() { + if (this.dtf.formatToParts && typeof this.dtf.formatToParts === 'function') { + var d = this.sampleTime; + var parts = this.dtf.formatToParts(d); + var literal = parts.find(function (part, idx) { + return idx > 0 && parts[idx - 1].type === 'hour'; + }); + + if (literal) { + return literal.value; + } + } + + return ':'; + }, + minuteLiteral: function minuteLiteral() { + if (this.dtf.formatToParts && typeof this.dtf.formatToParts === 'function') { + var d = this.sampleTime; + var parts = this.dtf.formatToParts(d); + var literal = parts.find(function (part, idx) { + return idx > 0 && parts[idx - 1].type === 'minute'; + }); + + if (literal) { + return literal.value; + } + } + + return ':'; + }, + secondLiteral: function secondLiteral() { + if (this.dtf.formatToParts && typeof this.dtf.formatToParts === 'function') { + var d = this.sampleTime; + var parts = this.dtf.formatToParts(d); + var literal = parts.find(function (part, idx) { + return idx > 0 && parts[idx - 1].type === 'second'; + }); + + if (literal) { + return literal.value; + } + } + }, + amString: function amString() { + if (this.dtf.formatToParts && typeof this.dtf.formatToParts === 'function') { + var d = this.sampleTime; + d.setHours(10); + var dayPeriod = this.dtf.formatToParts(d).find(function (part) { + return part.type === 'dayPeriod'; + }); + + if (dayPeriod) { + return dayPeriod.value; + } + } + + return this.AM; + }, + pmString: function pmString() { + if (this.dtf.formatToParts && typeof this.dtf.formatToParts === 'function') { + var d = this.sampleTime; + d.setHours(20); + var dayPeriod = this.dtf.formatToParts(d).find(function (part) { + return part.type === 'dayPeriod'; + }); + + if (dayPeriod) { + return dayPeriod.value; + } + } + + return this.PM; + }, + hours: function hours() { + if (!this.incrementHours || this.incrementHours < 1) throw new Error('Hour increment cannot be null or less than 1.'); + var hours = []; + var numberOfHours = this.isHourFormat24 ? 24 : 12; + + for (var i = 0; i < numberOfHours; i += this.incrementHours) { + var value = i; + var label = value; + + if (!this.isHourFormat24) { + value = i + 1; + label = value; + + if (this.meridienSelected === this.amString || this.meridienSelected === this.AM) { + if (value === 12) { + value = 0; + } + } else if (this.meridienSelected === this.pmString || this.meridienSelected === this.PM) { + if (value !== 12) { + value += 12; + } + } + } + + hours.push({ + label: this.formatNumber(label), + value: value + }); + } + + return hours; + }, + minutes: function minutes() { + if (!this.incrementMinutes || this.incrementMinutes < 1) throw new Error('Minute increment cannot be null or less than 1.'); + var minutes = []; + + for (var i = 0; i < 60; i += this.incrementMinutes) { + minutes.push({ + label: this.formatNumber(i, true), + value: i + }); + } + + return minutes; + }, + seconds: function seconds() { + if (!this.incrementSeconds || this.incrementSeconds < 1) throw new Error('Second increment cannot be null or less than 1.'); + var seconds = []; + + for (var i = 0; i < 60; i += this.incrementSeconds) { + seconds.push({ + label: this.formatNumber(i, true), + value: i + }); + } + + return seconds; + }, + meridiens: function meridiens() { + return [this.amString, this.pmString]; + }, + isMobile: function isMobile$1() { + return this.mobileNative && _helpers_js__WEBPACK_IMPORTED_MODULE_0__["isMobile"].any(); + }, + isHourFormat24: function isHourFormat24() { + return this.newHourFormat === HOUR_FORMAT_24; + } + }, + watch: { + hourFormat: function hourFormat() { + if (this.hoursSelected !== null) { + this.meridienSelected = this.hoursSelected >= 12 ? this.pmString : this.amString; + } + }, + + /** + * When v-model is changed: + * 1. Update internal value. + * 2. If it's invalid, validate again. + */ + value: { + handler: function handler(value) { + this.updateInternalState(value); + !this.isValid && this.$refs.input.checkHtml5Validity(); + }, + immediate: true + } + }, + methods: { + onMeridienChange: function onMeridienChange(value) { + if (this.hoursSelected !== null && this.resetOnMeridianChange) { + this.hoursSelected = null; + this.minutesSelected = null; + this.secondsSelected = null; + this.computedValue = null; + } else if (this.hoursSelected !== null) { + if (value === this.pmString || value === PM) { + this.hoursSelected += 12; + } else if (value === this.amString || value === AM) { + this.hoursSelected -= 12; + } + } + + this.updateDateSelected(this.hoursSelected, this.minutesSelected, this.enableSeconds ? this.secondsSelected : 0, value); + }, + onHoursChange: function onHoursChange(value) { + if (!this.minutesSelected && typeof this.defaultMinutes !== 'undefined') { + this.minutesSelected = this.defaultMinutes; + } + + if (!this.secondsSelected && typeof this.defaultSeconds !== 'undefined') { + this.secondsSelected = this.defaultSeconds; + } + + this.updateDateSelected(parseInt(value, 10), this.minutesSelected, this.enableSeconds ? this.secondsSelected : 0, this.meridienSelected); + }, + onMinutesChange: function onMinutesChange(value) { + if (!this.secondsSelected && this.defaultSeconds) { + this.secondsSelected = this.defaultSeconds; + } + + this.updateDateSelected(this.hoursSelected, parseInt(value, 10), this.enableSeconds ? this.secondsSelected : 0, this.meridienSelected); + }, + onSecondsChange: function onSecondsChange(value) { + this.updateDateSelected(this.hoursSelected, this.minutesSelected, parseInt(value, 10), this.meridienSelected); + }, + updateDateSelected: function updateDateSelected(hours, minutes, seconds, meridiens) { + if (hours != null && minutes != null && (!this.isHourFormat24 && meridiens !== null || this.isHourFormat24)) { + var time = null; + + if (this.computedValue && !isNaN(this.computedValue)) { + time = new Date(this.computedValue); + } else { + time = this.timeCreator(); + time.setMilliseconds(0); + } + + time.setHours(hours); + time.setMinutes(minutes); + time.setSeconds(seconds); + this.computedValue = new Date(time.getTime()); + } + }, + updateInternalState: function updateInternalState(value) { + if (value) { + this.hoursSelected = value.getHours(); + this.minutesSelected = value.getMinutes(); + this.secondsSelected = value.getSeconds(); + this.meridienSelected = value.getHours() >= 12 ? this.pmString : this.amString; + } else { + this.hoursSelected = null; + this.minutesSelected = null; + this.secondsSelected = null; + this.meridienSelected = this.amString; + } + + this.dateSelected = value; + }, + isHourDisabled: function isHourDisabled(hour) { + var _this = this; + + var disabled = false; + + if (this.minTime) { + var minHours = this.minTime.getHours(); + var noMinutesAvailable = this.minutes.every(function (minute) { + return _this.isMinuteDisabledForHour(hour, minute.value); + }); + disabled = hour < minHours || noMinutesAvailable; + } + + if (this.maxTime) { + if (!disabled) { + var maxHours = this.maxTime.getHours(); + disabled = hour > maxHours; + } + } + + if (this.unselectableTimes) { + if (!disabled) { + var unselectable = this.unselectableTimes.filter(function (time) { + if (_this.enableSeconds && _this.secondsSelected !== null) { + return time.getHours() === hour && time.getMinutes() === _this.minutesSelected && time.getSeconds() === _this.secondsSelected; + } else if (_this.minutesSelected !== null) { + return time.getHours() === hour && time.getMinutes() === _this.minutesSelected; + } + + return false; + }); + + if (unselectable.length > 0) { + disabled = true; + } else { + disabled = this.minutes.every(function (minute) { + return _this.unselectableTimes.filter(function (time) { + return time.getHours() === hour && time.getMinutes() === minute.value; + }).length > 0; + }); + } + } + } + + return disabled; + }, + isMinuteDisabledForHour: function isMinuteDisabledForHour(hour, minute) { + var disabled = false; + + if (this.minTime) { + var minHours = this.minTime.getHours(); + var minMinutes = this.minTime.getMinutes(); + disabled = hour === minHours && minute < minMinutes; + } + + if (this.maxTime) { + if (!disabled) { + var maxHours = this.maxTime.getHours(); + var maxMinutes = this.maxTime.getMinutes(); + disabled = hour === maxHours && minute > maxMinutes; + } + } + + return disabled; + }, + isMinuteDisabled: function isMinuteDisabled(minute) { + var _this2 = this; + + var disabled = false; + + if (this.hoursSelected !== null) { + if (this.isHourDisabled(this.hoursSelected)) { + disabled = true; + } else { + disabled = this.isMinuteDisabledForHour(this.hoursSelected, minute); + } + + if (this.unselectableTimes) { + if (!disabled) { + var unselectable = this.unselectableTimes.filter(function (time) { + if (_this2.enableSeconds && _this2.secondsSelected !== null) { + return time.getHours() === _this2.hoursSelected && time.getMinutes() === minute && time.getSeconds() === _this2.secondsSelected; + } else { + return time.getHours() === _this2.hoursSelected && time.getMinutes() === minute; + } + }); + disabled = unselectable.length > 0; + } + } + } + + return disabled; + }, + isSecondDisabled: function isSecondDisabled(second) { + var _this3 = this; + + var disabled = false; + + if (this.minutesSelected !== null) { + if (this.isMinuteDisabled(this.minutesSelected)) { + disabled = true; + } else { + if (this.minTime) { + var minHours = this.minTime.getHours(); + var minMinutes = this.minTime.getMinutes(); + var minSeconds = this.minTime.getSeconds(); + disabled = this.hoursSelected === minHours && this.minutesSelected === minMinutes && second < minSeconds; + } + + if (this.maxTime) { + if (!disabled) { + var maxHours = this.maxTime.getHours(); + var maxMinutes = this.maxTime.getMinutes(); + var maxSeconds = this.maxTime.getSeconds(); + disabled = this.hoursSelected === maxHours && this.minutesSelected === maxMinutes && second > maxSeconds; + } + } + } + + if (this.unselectableTimes) { + if (!disabled) { + var unselectable = this.unselectableTimes.filter(function (time) { + return time.getHours() === _this3.hoursSelected && time.getMinutes() === _this3.minutesSelected && time.getSeconds() === second; + }); + disabled = unselectable.length > 0; + } + } + } + + return disabled; + }, + + /* + * Parse string into date + */ + onChange: function onChange(value) { + var date = this.timeParser(value, this); + this.updateInternalState(date); + + if (date && !isNaN(date)) { + this.computedValue = date; + } else { + // Force refresh input value when not valid date + this.computedValue = null; + this.$refs.input.newValue = this.computedValue; + } + }, + + /* + * Toggle timepicker + */ + toggle: function toggle(active) { + if (this.$refs.dropdown) { + this.$refs.dropdown.isActive = typeof active === 'boolean' ? active : !this.$refs.dropdown.isActive; + } + }, + + /* + * Close timepicker + */ + close: function close() { + this.toggle(false); + }, + + /* + * Call default onFocus method and show timepicker + */ + handleOnFocus: function handleOnFocus() { + this.onFocus(); + + if (this.openOnFocus) { + this.toggle(true); + } + }, + + /* + * Format date into string 'HH-MM-SS' + */ + formatHHMMSS: function formatHHMMSS(value) { + var date = new Date(value); + + if (value && !isNaN(date)) { + var hours = date.getHours(); + var minutes = date.getMinutes(); + var seconds = date.getSeconds(); + return this.formatNumber(hours, true) + ':' + this.formatNumber(minutes, true) + ':' + this.formatNumber(seconds, true); + } + + return ''; + }, + + /* + * Parse time from string + */ + onChangeNativePicker: function onChangeNativePicker(event) { + var date = event.target.value; + + if (date) { + var time = null; + + if (this.computedValue && !isNaN(this.computedValue)) { + time = new Date(this.computedValue); + } else { + time = new Date(); + time.setMilliseconds(0); + } + + var t = date.split(':'); + time.setHours(parseInt(t[0], 10)); + time.setMinutes(parseInt(t[1], 10)); + time.setSeconds(t[2] ? parseInt(t[2], 10) : 0); + this.computedValue = new Date(time.getTime()); + } else { + this.computedValue = null; + } + }, + formatNumber: function formatNumber(value, prependZero) { + return this.isHourFormat24 || prependZero ? this.pad(value) : value; + }, + pad: function pad(value) { + return (value < 10 ? '0' : '') + value; + }, + + /* + * Format date into string + */ + formatValue: function formatValue(date) { + if (date && !isNaN(date)) { + return this.timeFormatter(date, this); + } else { + return null; + } + }, + + /** + * Keypress event that is bound to the document. + */ + keyPress: function keyPress(_ref) { + var key = _ref.key; + + if (this.$refs.dropdown && this.$refs.dropdown.isActive && (key === 'Escape' || key === 'Esc')) { + this.toggle(false); + } + }, + + /** + * Emit 'blur' event on dropdown is not active (closed) + */ + onActiveChange: function onActiveChange(value) { + if (!value) { + this.onBlur(); + } + } + }, + created: function created() { + if (typeof window !== 'undefined') { + document.addEventListener('keyup', this.keyPress); + } + }, + beforeDestroy: function beforeDestroy() { + if (typeof window !== 'undefined') { + document.removeEventListener('keyup', this.keyPress); + } + } +}; + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-5e4db2f1.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-5e4db2f1.js ***! + \*******************************************************/ +/*! exports provided: T */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return Timepicker; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony import */ var _chunk_5e460019_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-5e460019.js */ "./node_modules/buefy/dist/esm/chunk-5e460019.js"); +/* harmony import */ var _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-ddbc6c47.js */ "./node_modules/buefy/dist/esm/chunk-ddbc6c47.js"); +/* harmony import */ var _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-91a2d037.js */ "./node_modules/buefy/dist/esm/chunk-91a2d037.js"); +/* harmony import */ var _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-97074b53.js */ "./node_modules/buefy/dist/esm/chunk-97074b53.js"); + + + + + + + + + +var _components; +var script = { + name: 'BTimepicker', + components: (_components = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_3__["I"].name, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_3__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_6__["F"].name, _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_6__["F"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_7__["S"].name, _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_7__["S"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_1__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_1__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_5__["D"].name, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_5__["D"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_5__["a"].name, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_5__["a"]), _components), + mixins: [_chunk_5e460019_js__WEBPACK_IMPORTED_MODULE_4__["T"]], + inheritAttrs: false, + data: function data() { + return { + _isTimepicker: true + }; + }, + computed: { + nativeStep: function nativeStep() { + if (this.enableSeconds) return '1'; + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"timepicker control",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:"dropdown",attrs:{"position":_vm.position,"disabled":_vm.disabled,"inline":_vm.inline,"append-to-body":_vm.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":_vm.onActiveChange},scopedSlots:_vm._u([(!_vm.inline)?{key:"trigger",fn:function(){return [_vm._t("trigger",[_c('b-input',_vm._b({ref:"input",attrs:{"autocomplete":"off","value":_vm.formatValue(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"loading":_vm.loading,"disabled":_vm.disabled,"readonly":!_vm.editable,"rounded":_vm.rounded,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":_vm.handleOnFocus},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.toggle(true)},"change":function($event){return _vm.onChange($event.target.value)}}},'b-input',_vm.$attrs,false))])]},proxy:true}:null],null,true)},[_c('b-dropdown-item',{attrs:{"disabled":_vm.disabled,"focusable":_vm.focusable,"custom":""}},[_c('b-field',{attrs:{"grouped":"","position":"is-centered"}},[_c('b-select',{attrs:{"disabled":_vm.disabled,"placeholder":"00"},nativeOn:{"change":function($event){return _vm.onHoursChange($event.target.value)}},model:{value:(_vm.hoursSelected),callback:function ($$v) {_vm.hoursSelected=$$v;},expression:"hoursSelected"}},_vm._l((_vm.hours),function(hour){return _c('option',{key:hour.value,attrs:{"disabled":_vm.isHourDisabled(hour.value)},domProps:{"value":hour.value}},[_vm._v(" "+_vm._s(hour.label)+" ")])}),0),_c('span',{staticClass:"control is-colon"},[_vm._v(_vm._s(_vm.hourLiteral))]),_c('b-select',{attrs:{"disabled":_vm.disabled,"placeholder":"00"},nativeOn:{"change":function($event){return _vm.onMinutesChange($event.target.value)}},model:{value:(_vm.minutesSelected),callback:function ($$v) {_vm.minutesSelected=$$v;},expression:"minutesSelected"}},_vm._l((_vm.minutes),function(minute){return _c('option',{key:minute.value,attrs:{"disabled":_vm.isMinuteDisabled(minute.value)},domProps:{"value":minute.value}},[_vm._v(" "+_vm._s(minute.label)+" ")])}),0),(_vm.enableSeconds)?[_c('span',{staticClass:"control is-colon"},[_vm._v(_vm._s(_vm.minuteLiteral))]),_c('b-select',{attrs:{"disabled":_vm.disabled,"placeholder":"00"},nativeOn:{"change":function($event){return _vm.onSecondsChange($event.target.value)}},model:{value:(_vm.secondsSelected),callback:function ($$v) {_vm.secondsSelected=$$v;},expression:"secondsSelected"}},_vm._l((_vm.seconds),function(second){return _c('option',{key:second.value,attrs:{"disabled":_vm.isSecondDisabled(second.value)},domProps:{"value":second.value}},[_vm._v(" "+_vm._s(second.label)+" ")])}),0),_c('span',{staticClass:"control is-colon"},[_vm._v(_vm._s(_vm.secondLiteral))])]:_vm._e(),(!_vm.isHourFormat24)?_c('b-select',{attrs:{"disabled":_vm.disabled},nativeOn:{"change":function($event){return _vm.onMeridienChange($event.target.value)}},model:{value:(_vm.meridienSelected),callback:function ($$v) {_vm.meridienSelected=$$v;},expression:"meridienSelected"}},_vm._l((_vm.meridiens),function(meridien){return _c('option',{key:meridien,domProps:{"value":meridien}},[_vm._v(" "+_vm._s(meridien)+" ")])}),0):_vm._e()],2),(_vm.$slots.default !== undefined && _vm.$slots.default.length)?_c('footer',{staticClass:"timepicker-footer"},[_vm._t("default")],2):_vm._e()],1)],1):_c('b-input',_vm._b({ref:"input",attrs:{"type":"time","step":_vm.nativeStep,"autocomplete":"off","value":_vm.formatHHMMSS(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"max":_vm.formatHHMMSS(_vm.maxTime),"min":_vm.formatHHMMSS(_vm.minTime),"disabled":_vm.disabled,"readonly":false,"reset-on-meridian-change":_vm.isReset,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":_vm.handleOnFocus,"blur":function($event){_vm.onBlur() && _vm.checkHtml5Validity();}},nativeOn:{"change":function($event){return _vm.onChange($event.target.value)}}},'b-input',_vm.$attrs,false))],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Timepicker = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-6eb75eec.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-6eb75eec.js ***! + \*******************************************************/ +/*! exports provided: M */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return MessageMixin; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); + + + +var MessageMixin = { + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_1__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_1__["I"]), + // deprecated, to replace with default 'value' in the next breaking change + model: { + prop: 'active', + event: 'update:active' + }, + props: { + active: { + type: Boolean, + default: true + }, + title: String, + closable: { + type: Boolean, + default: true + }, + message: String, + type: String, + hasIcon: Boolean, + size: String, + icon: String, + iconPack: String, + iconSize: String, + autoClose: { + type: Boolean, + default: false + }, + duration: { + type: Number, + default: 2000 + } + }, + data: function data() { + return { + isActive: this.active + }; + }, + watch: { + active: function active(value) { + this.isActive = value; + }, + isActive: function isActive(value) { + if (value) { + this.setAutoClose(); + } else { + if (this.timer) { + clearTimeout(this.timer); + } + } + } + }, + computed: { + /** + * Icon name (MDI) based on type. + */ + computedIcon: function computedIcon() { + if (this.icon) { + return this.icon; + } + + switch (this.type) { + case 'is-info': + return 'information'; + + case 'is-success': + return 'check-circle'; + + case 'is-warning': + return 'alert'; + + case 'is-danger': + return 'alert-circle'; + + default: + return null; + } + } + }, + methods: { + /** + * Close the Message and emit events. + */ + close: function close() { + this.isActive = false; + this.$emit('close'); + this.$emit('update:active', false); + }, + + /** + * Set timer to auto close message + */ + setAutoClose: function setAutoClose() { + var _this = this; + + if (this.autoClose) { + this.timer = setTimeout(function () { + if (_this.isActive) { + _this.close(); + } + }, this.duration); + } + } + }, + mounted: function mounted() { + this.setAutoClose(); + } +}; + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-7a49a152.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-7a49a152.js ***! + \*******************************************************/ +/*! exports provided: L */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return Loading; }); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_b9bdb0e4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-b9bdb0e4.js */ "./node_modules/buefy/dist/esm/chunk-b9bdb0e4.js"); + + + + +// +var script = { + name: 'BLoading', + // deprecated, to replace with default 'value' in the next breaking change + model: { + prop: 'active', + event: 'update:active' + }, + props: { + active: Boolean, + programmatic: Boolean, + container: [Object, Function, _chunk_b9bdb0e4_js__WEBPACK_IMPORTED_MODULE_2__["H"]], + isFullPage: { + type: Boolean, + default: true + }, + animation: { + type: String, + default: 'fade' + }, + canCancel: { + type: Boolean, + default: false + }, + onCancel: { + type: Function, + default: function _default() {} + } + }, + data: function data() { + return { + isActive: this.active || false, + displayInFullPage: this.isFullPage + }; + }, + watch: { + active: function active(value) { + this.isActive = value; + }, + isFullPage: function isFullPage(value) { + this.displayInFullPage = value; + } + }, + methods: { + /** + * Close the Modal if canCancel. + */ + cancel: function cancel() { + if (!this.canCancel || !this.isActive) return; + this.close(); + }, + + /** + * Emit events, and destroy modal if it's programmatic. + */ + close: function close() { + var _this = this; + + this.onCancel.apply(null, arguments); + this.$emit('close'); + this.$emit('update:active', false); // Timeout for the animation complete before destroying + + if (this.programmatic) { + this.isActive = false; + setTimeout(function () { + _this.$destroy(); + + Object(_helpers_js__WEBPACK_IMPORTED_MODULE_0__["removeElement"])(_this.$el); + }, 150); + } + }, + + /** + * Keypress event that is bound to the document. + */ + keyPress: function keyPress(_ref) { + var key = _ref.key; + if (key === 'Escape' || key === 'Esc') this.cancel(); + } + }, + created: function created() { + if (typeof window !== 'undefined') { + document.addEventListener('keyup', this.keyPress); + } + }, + beforeMount: function beforeMount() { + // Insert the Loading component in body tag + // only if it's programmatic + if (this.programmatic) { + if (!this.container) { + document.body.appendChild(this.$el); + } else { + this.displayInFullPage = false; + this.$emit('update:is-full-page', false); + this.container.appendChild(this.$el); + } + } + }, + mounted: function mounted() { + if (this.programmatic) this.isActive = true; + }, + beforeDestroy: function beforeDestroy() { + if (typeof window !== 'undefined') { + document.removeEventListener('keyup', this.keyPress); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[(_vm.isActive)?_c('div',{staticClass:"loading-overlay is-active",class:{ 'is-full-page': _vm.displayInFullPage }},[_c('div',{staticClass:"loading-background",on:{"click":_vm.cancel}}),_vm._t("default",[_c('div',{staticClass:"loading-icon"})])],2):_vm._e()])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Loading = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-7bcc5416.js ***! + \*******************************************************/ +/*! exports provided: I */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return Icon; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + + +var mdiIcons = { + sizes: { + 'default': 'mdi-24px', + 'is-small': null, + 'is-medium': 'mdi-36px', + 'is-large': 'mdi-48px' + }, + iconPrefix: 'mdi-' +}; + +var faIcons = function faIcons() { + var faIconPrefix = _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"] && _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconComponent ? '' : 'fa-'; + return { + sizes: { + 'default': null, + 'is-small': null, + 'is-medium': faIconPrefix + 'lg', + 'is-large': faIconPrefix + '2x' + }, + iconPrefix: faIconPrefix, + internalIcons: { + 'information': 'info-circle', + 'alert': 'exclamation-triangle', + 'alert-circle': 'exclamation-circle', + 'chevron-right': 'angle-right', + 'chevron-left': 'angle-left', + 'chevron-down': 'angle-down', + 'eye-off': 'eye-slash', + 'menu-down': 'caret-down', + 'menu-up': 'caret-up', + 'close-circle': 'times-circle' + } + }; +}; + +var getIcons = function getIcons() { + var icons = { + mdi: mdiIcons, + fa: faIcons(), + fas: faIcons(), + far: faIcons(), + fad: faIcons(), + fab: faIcons(), + fal: faIcons() + }; + + if (_chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"] && _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].customIconPacks) { + icons = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(icons, _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].customIconPacks, true); + } + + return icons; +}; + +var script = { + name: 'BIcon', + props: { + type: [String, Object], + component: String, + pack: String, + icon: String, + size: String, + customSize: String, + customClass: String, + both: Boolean // This is used internally to show both MDI and FA icon + + }, + computed: { + iconConfig: function iconConfig() { + var allIcons = getIcons(); + return allIcons[this.newPack]; + }, + iconPrefix: function iconPrefix() { + if (this.iconConfig && this.iconConfig.iconPrefix) { + return this.iconConfig.iconPrefix; + } + + return ''; + }, + + /** + * Internal icon name based on the pack. + * If pack is 'fa', gets the equivalent FA icon name of the MDI, + * internal icons are always MDI. + */ + newIcon: function newIcon() { + return "".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon)); + }, + newPack: function newPack() { + return this.pack || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconPack; + }, + newType: function newType() { + if (!this.type) return; + var splitType = []; + + if (typeof this.type === 'string') { + splitType = this.type.split('-'); + } else { + for (var key in this.type) { + if (this.type[key]) { + splitType = key.split('-'); + break; + } + } + } + + if (splitType.length <= 1) return; + + var _splitType = splitType, + _splitType2 = Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["c"])(_splitType), + type = _splitType2.slice(1); + + return "has-text-".concat(type.join('-')); + }, + newCustomSize: function newCustomSize() { + return this.customSize || this.customSizeByPack; + }, + customSizeByPack: function customSizeByPack() { + if (this.iconConfig && this.iconConfig.sizes) { + if (this.size && this.iconConfig.sizes[this.size] !== undefined) { + return this.iconConfig.sizes[this.size]; + } else if (this.iconConfig.sizes.default) { + return this.iconConfig.sizes.default; + } + } + + return null; + }, + useIconComponent: function useIconComponent() { + return this.component || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconComponent; + } + }, + methods: { + /** + * Equivalent icon name of the MDI. + */ + getEquivalentIconOf: function getEquivalentIconOf(value) { + // Only transform the class if the both prop is set to true + if (!this.both) { + return value; + } + + if (this.iconConfig && this.iconConfig.internalIcons && this.iconConfig.internalIcons[value]) { + return this.iconConfig.internalIcons[value]; + } + + return value; + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"icon",class:[_vm.newType, _vm.size]},[(!_vm.useIconComponent)?_c('i',{class:[_vm.newPack, _vm.newIcon, _vm.newCustomSize, _vm.customClass]}):_c(_vm.useIconComponent,{tag:"component",class:[_vm.customClass],attrs:{"icon":[_vm.newPack, _vm.newIcon],"size":_vm.newCustomSize}})],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Icon = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-8d37a17c.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-8d37a17c.js ***! + \*******************************************************/ +/*! exports provided: S */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return SlotComponent; }); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); + + +var SlotComponent = { + name: 'BSlotComponent', + props: { + component: { + type: Object, + required: true + }, + name: { + type: String, + default: 'default' + }, + scoped: { + type: Boolean + }, + props: { + type: Object + }, + tag: { + type: String, + default: 'div' + }, + event: { + type: String, + default: 'hook:updated' + } + }, + methods: { + refresh: function refresh() { + this.$forceUpdate(); + } + }, + created: function created() { + if (Object(_helpers_js__WEBPACK_IMPORTED_MODULE_0__["isVueComponent"])(this.component)) { + this.component.$on(this.event, this.refresh); + } + }, + beforeDestroy: function beforeDestroy() { + if (Object(_helpers_js__WEBPACK_IMPORTED_MODULE_0__["isVueComponent"])(this.component)) { + this.component.$off(this.event, this.refresh); + } + }, + render: function render(createElement) { + if (Object(_helpers_js__WEBPACK_IMPORTED_MODULE_0__["isVueComponent"])(this.component)) { + return createElement(this.tag, {}, this.scoped ? this.component.$scopedSlots[this.name](this.props) : this.component.$slots[this.name]); + } + } +}; + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-91a2d037.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-91a2d037.js ***! + \*******************************************************/ +/*! exports provided: F */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return Field; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + +var script = { + name: 'BFieldBody', + props: { + message: { + type: [String, Array] + }, + type: { + type: [String, Object] + } + }, + render: function render(createElement) { + var _this = this; + + var first = true; + return createElement('div', { + attrs: { + 'class': 'field-body' + } + }, this.$slots.default.map(function (element) { + // skip returns and comments + if (!element.tag) { + return element; + } + + var message; + + if (first) { + message = _this.message; + first = false; + } + + return createElement('b-field', { + attrs: { + type: _this.type, + message: message + } + }, [element]); + })); + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = undefined; + /* style inject */ + + /* style inject SSR */ + + + + var FieldBody = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__["_"])( + {}, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var script$1 = { + name: 'BField', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, FieldBody.name, FieldBody), + props: { + type: [String, Object], + label: String, + labelFor: String, + message: [String, Array, Object], + grouped: Boolean, + groupMultiline: Boolean, + position: String, + expanded: Boolean, + horizontal: Boolean, + addons: { + type: Boolean, + default: true + }, + customClass: String, + labelPosition: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultFieldLabelPosition; + } + } + }, + data: function data() { + return { + newType: this.type, + newMessage: this.message, + fieldLabelSize: null, + _isField: true // Used internally by Input and Select + + }; + }, + computed: { + rootClasses: function rootClasses() { + return [{ + 'is-expanded': this.expanded, + 'is-horizontal': this.horizontal, + 'is-floating-in-label': this.hasLabel && !this.horizontal && this.labelPosition === 'inside', + 'is-floating-label': this.hasLabel && !this.horizontal && this.labelPosition === 'on-border' + }, this.numberInputClasses]; + }, + innerFieldClasses: function innerFieldClasses() { + return [this.fieldType(), this.newPosition, { + 'is-grouped-multiline': this.groupMultiline + }]; + }, + + /** + * Correct Bulma class for the side of the addon or group. + * + * This is not kept like the others (is-small, etc.), + * because since 'has-addons' is set automatically it + * doesn't make sense to teach users what addons are exactly. + */ + newPosition: function newPosition() { + if (this.position === undefined) return; + var position = this.position.split('-'); + if (position.length < 1) return; + var prefix = this.grouped ? 'is-grouped-' : 'has-addons-'; + if (this.position) return prefix + position[1]; + }, + + /** + * Formatted message in case it's an array + * (each element is separated by
    tag) + */ + formattedMessage: function formattedMessage() { + if (typeof this.newMessage === 'string') { + return [this.newMessage]; + } + + var messages = []; + + if (Array.isArray(this.newMessage)) { + this.newMessage.forEach(function (message) { + if (typeof message === 'string') { + messages.push(message); + } else { + for (var key in message) { + if (message[key]) { + messages.push(key); + } + } + } + }); + } else { + for (var key in this.newMessage) { + if (this.newMessage[key]) { + messages.push(key); + } + } + } + + return messages.filter(function (m) { + if (m) return m; + }); + }, + hasLabel: function hasLabel() { + return this.label || this.$slots.label; + }, + hasMessage: function hasMessage() { + return this.newMessage || this.$slots.message; + }, + numberInputClasses: function numberInputClasses() { + if (this.$slots.default) { + var numberinput = this.$slots.default.filter(function (node) { + return node.tag && node.tag.toLowerCase().indexOf('numberinput') >= 0; + })[0]; + + if (numberinput) { + var classes = ['has-numberinput']; + var controlsPosition = numberinput.componentOptions.propsData.controlsPosition; + var size = numberinput.componentOptions.propsData.size; + + if (controlsPosition) { + classes.push("has-numberinput-".concat(controlsPosition)); + } + + if (size) { + classes.push("has-numberinput-".concat(size)); + } + + return classes; + } + } + + return null; + } + }, + watch: { + /** + * Set internal type when prop change. + */ + type: function type(value) { + this.newType = value; + }, + + /** + * Set internal message when prop change. + */ + message: function message(value) { + this.newMessage = value; + } + }, + methods: { + /** + * Field has addons if there are more than one slot + * (element / component) in the Field. + * Or is grouped when prop is set. + * Is a method to be called when component re-render. + */ + fieldType: function fieldType() { + if (this.grouped) return 'is-grouped'; + if (this.hasAddons()) return 'has-addons'; + }, + hasAddons: function hasAddons() { + var renderedNode = 0; + + if (this.$slots.default) { + renderedNode = this.$slots.default.reduce(function (i, node) { + return node.tag ? i + 1 : i; + }, 0); + } + + return renderedNode > 1 && this.addons && !this.horizontal; + } + }, + mounted: function mounted() { + if (this.horizontal) { + // Bulma docs: .is-normal for any .input or .button + var elements = this.$el.querySelectorAll('.input, .select, .button, .textarea, .b-slider'); + + if (elements.length > 0) { + this.fieldLabelSize = 'is-normal'; + } + } + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.grouped || _vm.groupMultiline || _vm.hasAddons())?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false,"type":_vm.newType}},[_vm._t("default")],2)],1):[_vm._t("default")],(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType},[(_vm.$slots.message)?_vm._t("message"):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(" "+_vm._s(mess)+" "),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = false; + /* style inject */ + + /* style inject SSR */ + + + + var Field = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-97074b53.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-97074b53.js ***! + \*******************************************************/ +/*! exports provided: S */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return Select; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + + +var script = { + name: 'BSelect', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_2__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_2__["I"]), + mixins: [_chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_1__["F"]], + inheritAttrs: false, + props: { + value: { + type: [String, Number, Boolean, Object, Array, Function], + default: null + }, + placeholder: String, + multiple: Boolean, + nativeSize: [String, Number] + }, + data: function data() { + return { + selected: this.value, + _elementRef: 'select' + }; + }, + computed: { + computedValue: { + get: function get() { + return this.selected; + }, + set: function set(value) { + this.selected = value; + this.$emit('input', value); + !this.isValid && this.checkHtml5Validity(); + } + }, + spanClasses: function spanClasses() { + return [this.size, this.statusType, { + 'is-fullwidth': this.expanded, + 'is-loading': this.loading, + 'is-multiple': this.multiple, + 'is-rounded': this.rounded, + 'is-empty': this.selected === null + }]; + } + }, + watch: { + /** + * When v-model is changed: + * 1. Set the selected option. + * 2. If it's invalid, validate again. + */ + value: function value(_value) { + this.selected = _value; + !this.isValid && this.checkHtml5Validity(); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control",class:{ 'is-expanded': _vm.expanded, 'has-icons-left': _vm.icon }},[_c('span',{staticClass:"select",class:_vm.spanClasses},[_c('select',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"select",attrs:{"multiple":_vm.multiple,"size":_vm.nativeSize},on:{"blur":function($event){_vm.$emit('blur', $event) && _vm.checkHtml5Validity();},"focus":function($event){return _vm.$emit('focus', $event)},"change":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return val}); _vm.computedValue=$event.target.multiple ? $$selectedVal : $$selectedVal[0];}}},'select',_vm.$attrs,false),[(_vm.placeholder)?[(_vm.computedValue == null)?_c('option',{attrs:{"disabled":"","hidden":""},domProps:{"value":null}},[_vm._v(" "+_vm._s(_vm.placeholder)+" ")]):_vm._e()]:_vm._e(),_vm._t("default")],2)]),(_vm.icon)?_c('b-icon',{staticClass:"is-left",attrs:{"icon":_vm.icon,"pack":_vm.iconPack,"size":_vm.iconSize}}):_vm._e()],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Select = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-aa09eaac.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-aa09eaac.js ***! + \*******************************************************/ +/*! exports provided: A */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return Autocomplete; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); + + + + + + +var script = { + name: 'BAutocomplete', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_4__["I"].name, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_4__["I"]), + mixins: [_chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_2__["F"]], + inheritAttrs: false, + props: { + value: [Number, String], + data: { + type: Array, + default: function _default() { + return []; + } + }, + field: { + type: String, + default: 'value' + }, + keepFirst: Boolean, + clearOnSelect: Boolean, + openOnFocus: Boolean, + customFormatter: Function, + checkInfiniteScroll: Boolean, + keepOpen: Boolean, + clearable: Boolean, + maxHeight: [String, Number], + dropdownPosition: { + type: String, + default: 'auto' + }, + iconRight: String, + iconRightClickable: Boolean, + appendToBody: Boolean + }, + data: function data() { + return { + selected: null, + hovered: null, + isActive: false, + newValue: this.value, + newAutocomplete: this.autocomplete || 'off', + isListInViewportVertically: true, + hasFocus: false, + style: {}, + _isAutocomplete: true, + _elementRef: 'input', + _bodyEl: undefined // Used to append to body + + }; + }, + computed: { + /** + * White-listed items to not close when clicked. + * Add input, dropdown and all children. + */ + whiteList: function whiteList() { + var whiteList = []; + whiteList.push(this.$refs.input.$el.querySelector('input')); + whiteList.push(this.$refs.dropdown); // Add all chidren from dropdown + + if (this.$refs.dropdown !== undefined) { + var children = this.$refs.dropdown.querySelectorAll('*'); + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var child = _step.value; + whiteList.push(child); + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + } + + if (this.$parent.$data._isTaginput) { + // Add taginput container + whiteList.push(this.$parent.$el); // Add .tag and .delete + + var tagInputChildren = this.$parent.$el.querySelectorAll('*'); + var _iteratorNormalCompletion2 = true; + var _didIteratorError2 = false; + var _iteratorError2 = undefined; + + try { + for (var _iterator2 = tagInputChildren[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { + var tagInputChild = _step2.value; + whiteList.push(tagInputChild); + } + } catch (err) { + _didIteratorError2 = true; + _iteratorError2 = err; + } finally { + try { + if (!_iteratorNormalCompletion2 && _iterator2.return != null) { + _iterator2.return(); + } + } finally { + if (_didIteratorError2) { + throw _iteratorError2; + } + } + } + } + + return whiteList; + }, + + /** + * Check if exists default slot + */ + hasDefaultSlot: function hasDefaultSlot() { + return !!this.$scopedSlots.default; + }, + + /** + * Check if exists "empty" slot + */ + hasEmptySlot: function hasEmptySlot() { + return !!this.$slots.empty; + }, + + /** + * Check if exists "header" slot + */ + hasHeaderSlot: function hasHeaderSlot() { + return !!this.$slots.header; + }, + + /** + * Check if exists "footer" slot + */ + hasFooterSlot: function hasFooterSlot() { + return !!this.$slots.footer; + }, + + /** + * Apply dropdownPosition property + */ + isOpenedTop: function isOpenedTop() { + return this.dropdownPosition === 'top' || this.dropdownPosition === 'auto' && !this.isListInViewportVertically; + }, + newIconRight: function newIconRight() { + if (this.clearable && this.newValue) { + return 'close-circle'; + } + + return this.iconRight; + }, + newIconRightClickable: function newIconRightClickable() { + if (this.clearable) { + return true; + } + + return this.iconRightClickable; + }, + contentStyle: function contentStyle() { + return { + maxHeight: Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["toCssWidth"])(this.maxHeight) + }; + } + }, + watch: { + /** + * When dropdown is toggled, check the visibility to know when + * to open upwards. + */ + isActive: function isActive(active) { + var _this = this; + + if (this.dropdownPosition === 'auto') { + if (active) { + this.calcDropdownInViewportVertical(); + } else { + // Timeout to wait for the animation to finish before recalculating + setTimeout(function () { + _this.calcDropdownInViewportVertical(); + }, 100); + } + } + + if (active) this.$nextTick(function () { + return _this.setHovered(null); + }); + }, + + /** + * When updating input's value + * 1. Emit changes + * 2. If value isn't the same as selected, set null + * 3. Close dropdown if value is clear or else open it + */ + newValue: function newValue(value) { + this.$emit('input', value); // Check if selected is invalid + + var currentValue = this.getValue(this.selected); + + if (currentValue && currentValue !== value) { + this.setSelected(null, false); + } // Close dropdown if input is clear or else open it + + + if (this.hasFocus && (!this.openOnFocus || value)) { + this.isActive = !!value; + } + }, + + /** + * When v-model is changed: + * 1. Update internal value. + * 2. If it's invalid, validate again. + */ + value: function value(_value) { + this.newValue = _value; + }, + + /** + * Select first option if "keep-first + */ + data: function data(value) { + // Keep first option always pre-selected + if (this.keepFirst) { + this.selectFirstOption(value); + } + } + }, + methods: { + /** + * Set which option is currently hovered. + */ + setHovered: function setHovered(option) { + if (option === undefined) return; + this.hovered = option; + }, + + /** + * Set which option is currently selected, update v-model, + * update input value and close dropdown. + */ + setSelected: function setSelected(option) { + var _this2 = this; + + var closeDropdown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var event = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + if (option === undefined) return; + this.selected = option; + this.$emit('select', this.selected, event); + + if (this.selected !== null) { + this.newValue = this.clearOnSelect ? '' : this.getValue(this.selected); + this.setHovered(null); + } + + closeDropdown && this.$nextTick(function () { + _this2.isActive = false; + }); + this.checkValidity(); + }, + + /** + * Select first option + */ + selectFirstOption: function selectFirstOption(options) { + var _this3 = this; + + this.$nextTick(function () { + if (options.length) { + // If has visible data or open on focus, keep updating the hovered + if (_this3.openOnFocus || _this3.newValue !== '' && _this3.hovered !== options[0]) { + _this3.setHovered(options[0]); + } + } else { + _this3.setHovered(null); + } + }); + }, + + /** + * Enter key listener. + * Select the hovered option. + */ + enterPressed: function enterPressed(event) { + if (this.hovered === null) return; + this.setSelected(this.hovered, !this.keepOpen, event); + }, + + /** + * Tab key listener. + * Select hovered option if it exists, close dropdown, then allow + * native handling to move to next tabbable element. + */ + tabPressed: function tabPressed(event) { + if (this.hovered === null) { + this.isActive = false; + return; + } + + this.setSelected(this.hovered, !this.keepOpen, event); + }, + + /** + * Close dropdown if clicked outside. + */ + clickedOutside: function clickedOutside(event) { + var target = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["isCustomElement"])(this) ? event.composedPath()[0] : event.target; + if (!this.hasFocus && this.whiteList.indexOf(target) < 0) this.isActive = false; + }, + + /** + * Return display text for the input. + * If object, get value from path, or else just the value. + */ + getValue: function getValue(option) { + if (option === null) return; + + if (typeof this.customFormatter !== 'undefined') { + return this.customFormatter(option); + } + + return Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["b"])(option) === 'object' ? Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["getValueByPath"])(option, this.field) : option; + }, + + /** + * Check if the scroll list inside the dropdown + * reached it's end. + */ + checkIfReachedTheEndOfScroll: function checkIfReachedTheEndOfScroll(list) { + if (list.clientHeight !== list.scrollHeight && list.scrollTop + list.clientHeight >= list.scrollHeight) { + this.$emit('infinite-scroll'); + } + }, + + /** + * Calculate if the dropdown is vertically visible when activated, + * otherwise it is openened upwards. + */ + calcDropdownInViewportVertical: function calcDropdownInViewportVertical() { + var _this4 = this; + + this.$nextTick(function () { + /** + * this.$refs.dropdown may be undefined + * when Autocomplete is conditional rendered + */ + if (_this4.$refs.dropdown === undefined) return; + + var rect = _this4.$refs.dropdown.getBoundingClientRect(); + + _this4.isListInViewportVertically = rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight); + + if (_this4.appendToBody) { + _this4.updateAppendToBody(); + } + }); + }, + + /** + * Arrows keys listener. + * If dropdown is active, set hovered option, or else just open. + */ + keyArrows: function keyArrows(direction) { + var sum = direction === 'down' ? 1 : -1; + + if (this.isActive) { + var index = this.data.indexOf(this.hovered) + sum; + index = index > this.data.length - 1 ? this.data.length - 1 : index; + index = index < 0 ? 0 : index; + this.setHovered(this.data[index]); + var list = this.$refs.dropdown.querySelector('.dropdown-content'); + var element = list.querySelectorAll('a.dropdown-item:not(.is-disabled)')[index]; + if (!element) return; + var visMin = list.scrollTop; + var visMax = list.scrollTop + list.clientHeight - element.clientHeight; + + if (element.offsetTop < visMin) { + list.scrollTop = element.offsetTop; + } else if (element.offsetTop >= visMax) { + list.scrollTop = element.offsetTop - list.clientHeight + element.clientHeight; + } + } else { + this.isActive = true; + } + }, + + /** + * Focus listener. + * If value is the same as selected, select all text. + */ + focused: function focused(event) { + if (this.getValue(this.selected) === this.newValue) { + this.$el.querySelector('input').select(); + } + + if (this.openOnFocus) { + this.isActive = true; + + if (this.keepFirst) { + this.selectFirstOption(this.data); + } + } + + this.hasFocus = true; + this.$emit('focus', event); + }, + + /** + * Blur listener. + */ + onBlur: function onBlur(event) { + this.hasFocus = false; + this.$emit('blur', event); + }, + onInput: function onInput(event) { + var currentValue = this.getValue(this.selected); + if (currentValue && currentValue === this.newValue) return; + this.$emit('typing', this.newValue); + this.checkValidity(); + }, + rightIconClick: function rightIconClick(event) { + if (this.clearable) { + this.newValue = ''; + + if (this.openOnFocus) { + this.$refs.input.$el.focus(); + } + } else { + this.$emit('icon-right-click', event); + } + }, + checkValidity: function checkValidity() { + var _this5 = this; + + if (this.useHtml5Validation) { + this.$nextTick(function () { + _this5.checkHtml5Validity(); + }); + } + }, + updateAppendToBody: function updateAppendToBody() { + var dropdownMenu = this.$refs.dropdown; + var trigger = this.$refs.input.$el; + + if (dropdownMenu && trigger) { + // update wrapper dropdown + var root = this.$data._bodyEl; + root.classList.forEach(function (item) { + return root.classList.remove(item); + }); + root.classList.add('autocomplete'); + root.classList.add('control'); + + if (this.expandend) { + root.classList.add('is-expandend'); + } + + var rect = trigger.getBoundingClientRect(); + var top = rect.top + window.scrollY; + var left = rect.left + window.scrollX; + + if (!this.isOpenedTop) { + top += trigger.clientHeight; + } else { + top -= dropdownMenu.clientHeight; + } + + this.style = { + position: 'absolute', + top: "".concat(top, "px"), + left: "".concat(left, "px"), + width: "".concat(trigger.clientWidth, "px"), + maxWidth: "".concat(trigger.clientWidth, "px"), + zIndex: '99' + }; + } + } + }, + created: function created() { + if (typeof window !== 'undefined') { + document.addEventListener('click', this.clickedOutside); + + if (this.dropdownPosition === 'auto') { + window.addEventListener('resize', this.calcDropdownInViewportVertical); + } + } + }, + mounted: function mounted() { + var _this6 = this; + + if (this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector('.dropdown-content')) { + var list = this.$refs.dropdown.querySelector('.dropdown-content'); + list.addEventListener('scroll', function () { + return _this6.checkIfReachedTheEndOfScroll(list); + }); + } + + if (this.appendToBody) { + this.$data._bodyEl = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["createAbsoluteElement"])(this.$refs.dropdown); + this.updateAppendToBody(); + } + }, + beforeDestroy: function beforeDestroy() { + if (typeof window !== 'undefined') { + document.removeEventListener('click', this.clickedOutside); + + if (this.dropdownPosition === 'auto') { + window.removeEventListener('resize', this.calcDropdownInViewportVertical); + } + } + + if (this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector('.dropdown-content')) { + var list = this.$refs.dropdown.querySelector('.dropdown-content'); + list.removeEventListener('scroll', this.checkIfReachedTheEndOfScroll); + } + + if (this.appendToBody) { + Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["removeElement"])(this.$data._bodyEl); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"autocomplete control",class:{ 'is-expanded': _vm.expanded }},[_c('b-input',_vm._b({ref:"input",attrs:{"type":"text","size":_vm.size,"loading":_vm.loading,"rounded":_vm.rounded,"icon":_vm.icon,"icon-right":_vm.newIconRight,"icon-right-clickable":_vm.newIconRightClickable,"icon-pack":_vm.iconPack,"maxlength":_vm.maxlength,"autocomplete":_vm.newAutocomplete,"use-html5-validation":false},on:{"input":_vm.onInput,"focus":_vm.focused,"blur":_vm.onBlur,"icon-right-click":_vm.rightIconClick,"icon-click":function (event) { return _vm.$emit('icon-click', event); }},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.preventDefault();_vm.isActive = false;},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"tab",9,$event.key,"Tab")){ return null; }return _vm.tabPressed($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.enterPressed($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.keyArrows('up')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.keyArrows('down')}]},model:{value:(_vm.newValue),callback:function ($$v) {_vm.newValue=$$v;},expression:"newValue"}},'b-input',_vm.$attrs,false)),_c('transition',{attrs:{"name":"fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive && (_vm.data.length > 0 || _vm.hasEmptySlot || _vm.hasHeaderSlot)),expression:"isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{ 'is-opened-top': _vm.isOpenedTop && !_vm.appendToBody },style:(_vm.style)},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"dropdown-content",style:(_vm.contentStyle)},[(_vm.hasHeaderSlot)?_c('div',{staticClass:"dropdown-item"},[_vm._t("header")],2):_vm._e(),_vm._l((_vm.data),function(option,index){return _c('a',{key:index,staticClass:"dropdown-item",class:{ 'is-hovered': option === _vm.hovered },on:{"click":function($event){return _vm.setSelected(option, undefined, $event)}}},[(_vm.hasDefaultSlot)?_vm._t("default",null,{"option":option,"index":index}):_c('span',[_vm._v(" "+_vm._s(_vm.getValue(option, true))+" ")])],2)}),(_vm.data.length === 0 && _vm.hasEmptySlot)?_c('div',{staticClass:"dropdown-item is-disabled"},[_vm._t("empty")],2):_vm._e(),(_vm.hasFooterSlot)?_c('div',{staticClass:"dropdown-item"},[_vm._t("footer")],2):_vm._e()],2)])])],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Autocomplete = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-ad63df08.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-ad63df08.js ***! + \*******************************************************/ +/*! exports provided: I, P, S, a */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return InjectedChildMixin; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return ProviderParentMixin; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return Sorted; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Sorted$1; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); + + + +var items = 1; +var sorted = 3; +var Sorted = sorted; +var ProviderParentMixin = (function (itemName) { + var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var mixin = { + provide: function provide() { + return Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, 'b' + itemName, this); + } + }; + + if (Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["hasFlag"])(flags, items)) { + mixin.data = function () { + return { + childItems: [] + }; + }; + + mixin.methods = { + _registerItem: function _registerItem(item) { + this.childItems.push(item); + }, + _unregisterItem: function _unregisterItem(item) { + this.childItems = this.childItems.filter(function (i) { + return i !== item; + }); + } + }; + + if (Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["hasFlag"])(flags, sorted)) { + mixin.watch = { + /** + * When items are added/removed deep search in the elements default's slot + * And mark the items with their index + */ + childItems: function childItems(items) { + if (items.length > 0 && this.$scopedSlots.default) { + var tag = items[0].$vnode.tag; + var index = 0; + + var deepSearch = function deepSearch(children) { + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + var _loop = function _loop() { + var child = _step.value; + + if (child.tag === tag) { + // An item with the same tag will for sure be found + var it = items.find(function (i) { + return i.$vnode === child; + }); + + if (it) { + it.index = index++; + } + } else if (child.tag) { + var sub = child.componentInstance ? child.componentInstance.$scopedSlots.default ? child.componentInstance.$scopedSlots.default() : child.componentInstance.$children : child.children; + + if (Array.isArray(sub) && sub.length > 0) { + deepSearch(sub.map(function (e) { + return e.$vnode; + })); + } + } + }; + + for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + _loop(); + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + + return false; + }; + + deepSearch(this.$scopedSlots.default()); + } + } + }; + mixin.computed = { + /** + * When items are added/removed sort them according to their position + */ + sortedItems: function sortedItems() { + return this.childItems.slice().sort(function (i1, i2) { + return i1.index - i2.index; + }); + } + }; + } + } + + return mixin; +}); + +var sorted$1 = 1; +var optional = 2; +var Sorted$1 = sorted$1; +var InjectedChildMixin = (function (parentItemName) { + var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var mixin = { + inject: { + parent: { + from: 'b' + parentItemName, + default: false + } + }, + created: function created() { + if (!this.parent) { + if (!Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["hasFlag"])(flags, optional)) { + this.$destroy(); + throw new Error('You should wrap ' + this.$options.name + ' in a ' + parentItemName); + } + } else if (this.parent._registerItem) { + this.parent._registerItem(this); + } + }, + beforeDestroy: function beforeDestroy() { + if (this.parent && this.parent._unregisterItem) { + this.parent._unregisterItem(this); + } + } + }; + + if (Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["hasFlag"])(flags, sorted$1)) { + mixin.data = function () { + return { + index: null + }; + }; + } + + return mixin; +}); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-b9bdb0e4.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-b9bdb0e4.js ***! + \*******************************************************/ +/*! exports provided: F, H */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return File; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return HTMLElement; }); +// Polyfills for SSR +var isSSR = typeof window === 'undefined'; +var HTMLElement = isSSR ? Object : window.HTMLElement; +var File = isSSR ? Object : window.File; + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-cca88db8.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-cca88db8.js ***! + \*******************************************************/ +/*! exports provided: _, a, r, u */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_", function() { return normalizeComponent_1; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return registerComponentProgrammatic; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return registerComponent; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return use; }); +function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier +/* server only */ +, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { + if (typeof shadowMode !== 'boolean') { + createInjectorSSR = createInjector; + createInjector = shadowMode; + shadowMode = false; + } // Vue.extend constructor export interop. + + + var options = typeof script === 'function' ? script.options : script; // render functions + + if (template && template.render) { + options.render = template.render; + options.staticRenderFns = template.staticRenderFns; + options._compiled = true; // functional template + + if (isFunctionalTemplate) { + options.functional = true; + } + } // scopedId + + + if (scopeId) { + options._scopeId = scopeId; + } + + var hook; + + if (moduleIdentifier) { + // server build + hook = function hook(context) { + // 2.3 injection + context = context || // cached call + this.$vnode && this.$vnode.ssrContext || // stateful + this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional + // 2.2 with runInNewContext: true + + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__; + } // inject component styles + + + if (style) { + style.call(this, createInjectorSSR(context)); + } // register component module identifier for async chunk inference + + + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier); + } + }; // used by ssr in case component is cached and beforeCreate + // never gets called + + + options._ssrRegister = hook; + } else if (style) { + hook = shadowMode ? function () { + style.call(this, createInjectorShadow(this.$root.$options.shadowRoot)); + } : function (context) { + style.call(this, createInjector(context)); + }; + } + + if (hook) { + if (options.functional) { + // register for functional component in vue file + var originalRender = options.render; + + options.render = function renderWithStyleInjection(h, context) { + hook.call(context); + return originalRender(h, context); + }; + } else { + // inject component registration as beforeCreate hook + var existing = options.beforeCreate; + options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; + } + } + + return script; +} + +var normalizeComponent_1 = normalizeComponent; + +var use = function use(plugin) { + if (typeof window !== 'undefined' && window.Vue) { + window.Vue.use(plugin); + } +}; +var registerComponent = function registerComponent(Vue, component) { + Vue.component(component.name, component); +}; +var registerComponentProgrammatic = function registerComponentProgrammatic(Vue, property, component) { + if (!Vue.prototype.$buefy) Vue.prototype.$buefy = {}; + Vue.prototype.$buefy[property] = component; +}; + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-d6bb2470.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-d6bb2470.js ***! + \*******************************************************/ +/*! exports provided: C */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return Checkbox; }); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_2793447b_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-2793447b.js */ "./node_modules/buefy/dist/esm/chunk-2793447b.js"); + + + +// +var script = { + name: 'BCheckbox', + mixins: [_chunk_2793447b_js__WEBPACK_IMPORTED_MODULE_1__["C"]], + props: { + indeterminate: Boolean, + trueValue: { + type: [String, Number, Boolean, Function, Object, Array], + default: true + }, + falseValue: { + type: [String, Number, Boolean, Function, Object, Array], + default: false + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:"label",staticClass:"b-checkbox checkbox",class:[_vm.size, { 'is-disabled': _vm.disabled }],attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.$refs.label.click()}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"checkbox","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name,"true-value":_vm.trueValue,"false-value":_vm.falseValue},domProps:{"indeterminate":_vm.indeterminate,"value":_vm.nativeValue,"checked":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:_vm._q(_vm.computedValue,_vm.trueValue)},on:{"click":function($event){$event.stopPropagation();},"change":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(_vm.trueValue):(_vm.falseValue);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else{$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.computedValue=$$c;}}}}),_c('span',{staticClass:"check",class:_vm.type}),_c('span',{staticClass:"control-label"},[_vm._t("default")],2)])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Checkbox = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-db739ac6.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-db739ac6.js ***! + \*******************************************************/ +/*! exports provided: T, a */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return TabbedMixin; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabbedChildMixin; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); +/* harmony import */ var _chunk_8d37a17c_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-8d37a17c.js */ "./node_modules/buefy/dist/esm/chunk-8d37a17c.js"); + + + + + + +var TabbedMixin = (function (cmp) { + var _components; + + return { + mixins: [Object(_chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_3__["P"])(cmp, _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_3__["S"])], + components: (_components = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_2__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_2__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_8d37a17c_js__WEBPACK_IMPORTED_MODULE_4__["S"].name, _chunk_8d37a17c_js__WEBPACK_IMPORTED_MODULE_4__["S"]), _components), + props: { + value: { + type: [String, Number], + default: undefined + }, + size: String, + animated: { + type: Boolean, + default: true + }, + vertical: { + type: Boolean, + default: false + }, + position: String, + destroyOnHide: { + type: Boolean, + default: false + } + }, + data: function data() { + return { + activeId: this.value, + // Internal state + defaultSlots: [], + contentHeight: 0, + isTransitioning: false + }; + }, + mounted: function mounted() { + if (typeof this.value === 'number') { + // Backward compatibility: converts the index value to an id + var value = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["bound"])(this.value, 0, this.items.length - 1); + this.activeId = this.items[value].value; + } else { + this.activeId = this.value; + } + }, + computed: { + activeItem: function activeItem() { + var _this = this; + + return this.activeId === undefined ? this.items[0] : this.activeId === null ? null : this.childItems.find(function (i) { + return i.value === _this.activeId; + }); + }, + items: function items() { + return this.sortedItems; + } + }, + watch: { + /** + * When v-model is changed set the new active tab. + */ + value: function value(_value) { + if (typeof _value === 'number') { + // Backward compatibility: converts the index value to an id + _value = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["bound"])(_value, 0, this.items.length - 1); + this.activeId = this.items[_value].value; + } else { + this.activeId = _value; + } + }, + + /** + * Sync internal state with external state + */ + activeId: function activeId(val, oldValue) { + var oldTab = oldValue !== undefined && oldValue !== null ? this.childItems.find(function (i) { + return i.value === oldValue; + }) : null; + + if (oldTab && this.activeItem) { + oldTab.deactivate(this.activeItem.index); + this.activeItem.activate(oldTab.index); + } + + val = this.activeItem ? typeof this.value === 'number' ? this.items.indexOf(this.activeItem) : this.activeItem.value : undefined; + + if (val !== this.value) { + this.$emit('input', val); + } + } + }, + methods: { + /** + * Child click listener, emit input event and change active child. + */ + childClick: function childClick(child) { + this.activeId = child.value; + } + } + }; +}); + +var TabbedChildMixin = (function (parentCmp) { + return { + mixins: [Object(_chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_3__["I"])(parentCmp, _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_3__["a"])], + props: { + label: String, + icon: String, + iconPack: String, + visible: { + type: Boolean, + default: true + }, + value: { + type: String, + default: function _default() { + return this._uid.toString(); + } + }, + headerClass: { + type: [String, Array, Object], + default: null + } + }, + data: function data() { + return { + transitionName: null, + elementClass: 'item' + }; + }, + computed: { + isActive: function isActive() { + return this.parent.activeItem === this; + } + }, + methods: { + /** + * Activate element, alter animation name based on the index. + */ + activate: function activate(oldIndex) { + this.transitionName = this.index < oldIndex ? this.parent.vertical ? 'slide-down' : 'slide-next' : this.parent.vertical ? 'slide-up' : 'slide-prev'; + }, + + /** + * Deactivate element, alter animation name based on the index. + */ + deactivate: function deactivate(newIndex) { + this.transitionName = newIndex < this.index ? this.parent.vertical ? 'slide-down' : 'slide-next' : this.parent.vertical ? 'slide-up' : 'slide-prev'; + } + }, + render: function render(createElement) { + var _this = this; + + // if destroy apply v-if + if (this.parent.destroyOnHide) { + if (!this.isActive || !this.visible) { + return; + } + } + + var vnode = createElement('div', { + directives: [{ + name: 'show', + value: this.isActive && this.visible + }], + attrs: { + 'class': this.elementClass + } + }, this.$slots.default); // check animated prop + + if (this.parent.animated) { + return createElement('transition', { + props: { + 'name': this.transitionName + }, + on: { + 'before-enter': function beforeEnter() { + _this.parent.isTransitioning = true; + }, + 'after-enter': function afterEnter() { + _this.parent.isTransitioning = false; + } + } + }, [vnode]); + } + + return vnode; + } + }; +}); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-ddbc6c47.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-ddbc6c47.js ***! + \*******************************************************/ +/*! exports provided: D, a */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return Dropdown; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DropdownItem; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); +/* harmony import */ var _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-42f463e6.js */ "./node_modules/buefy/dist/esm/chunk-42f463e6.js"); + + + + + + + +var DEFAULT_CLOSE_OPTIONS = ['escape', 'outside']; +var script = { + name: 'BDropdown', + directives: { + trapFocus: _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_5__["t"] + }, + mixins: [Object(_chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_4__["P"])('dropdown')], + props: { + value: { + type: [String, Number, Boolean, Object, Array, Function], + default: null + }, + disabled: Boolean, + inline: Boolean, + scrollable: Boolean, + maxHeight: { + type: [String, Number], + default: 200 + }, + position: { + type: String, + validator: function validator(value) { + return ['is-top-right', 'is-top-left', 'is-bottom-left', 'is-bottom-right'].indexOf(value) > -1; + } + }, + triggers: { + type: Array, + default: function _default() { + return ['click']; + } + }, + mobileModal: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDropdownMobileModal; + } + }, + ariaRole: { + type: String, + validator: function validator(value) { + return ['menu', 'list', 'dialog'].indexOf(value) > -1; + }, + default: null + }, + animation: { + type: String, + default: 'fade' + }, + multiple: Boolean, + trapFocus: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultTrapFocus; + } + }, + closeOnClick: { + type: Boolean, + default: true + }, + canClose: { + type: [Array, Boolean], + default: true + }, + expanded: Boolean, + appendToBody: Boolean, + appendToBodyCopyParent: Boolean + }, + data: function data() { + return { + selected: this.value, + style: {}, + isActive: false, + isHoverable: false, + _bodyEl: undefined // Used to append to body + + }; + }, + computed: { + rootClasses: function rootClasses() { + return [this.position, { + 'is-disabled': this.disabled, + 'is-hoverable': this.hoverable, + 'is-inline': this.inline, + 'is-active': this.isActive || this.inline, + 'is-mobile-modal': this.isMobileModal, + 'is-expanded': this.expanded + }]; + }, + isMobileModal: function isMobileModal() { + return this.mobileModal && !this.inline; + }, + cancelOptions: function cancelOptions() { + return typeof this.canClose === 'boolean' ? this.canClose ? DEFAULT_CLOSE_OPTIONS : [] : this.canClose; + }, + contentStyle: function contentStyle() { + return { + maxHeight: this.scrollable ? Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["toCssWidth"])(this.maxHeight) : null, + overflow: this.scrollable ? 'auto' : null + }; + }, + hoverable: function hoverable() { + return this.triggers.indexOf('hover') >= 0; + } + }, + watch: { + /** + * When v-model is changed set the new selected item. + */ + value: function value(_value) { + this.selected = _value; + }, + + /** + * Emit event when isActive value is changed. + */ + isActive: function isActive(value) { + var _this = this; + + this.$emit('active-change', value); + + if (this.appendToBody) { + this.$nextTick(function () { + _this.updateAppendToBody(); + }); + } + } + }, + methods: { + /** + * Click listener from DropdownItem. + * 1. Set new selected item. + * 2. Emit input event to update the user v-model. + * 3. Close the dropdown. + */ + selectItem: function selectItem(value) { + if (this.multiple) { + if (this.selected) { + var index = this.selected.indexOf(value); + + if (index === -1) { + this.selected.push(value); + } else { + this.selected.splice(index, 1); + } + } else { + this.selected = [value]; + } + + this.$emit('change', this.selected); + } else { + if (this.selected !== value) { + this.selected = value; + this.$emit('change', this.selected); + } + } + + this.$emit('input', this.selected); + + if (!this.multiple) { + this.isActive = !this.closeOnClick; + + if (this.hoverable && this.closeOnClick) { + this.isHoverable = false; + } + } + }, + + /** + * White-listed items to not close when clicked. + */ + isInWhiteList: function isInWhiteList(el) { + if (el === this.$refs.dropdownMenu) return true; + if (el === this.$refs.trigger) return true; // All chidren from dropdown + + if (this.$refs.dropdownMenu !== undefined) { + var children = this.$refs.dropdownMenu.querySelectorAll('*'); + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var child = _step.value; + + if (el === child) { + return true; + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + } // All children from trigger + + + if (this.$refs.trigger !== undefined) { + var _children = this.$refs.trigger.querySelectorAll('*'); + + var _iteratorNormalCompletion2 = true; + var _didIteratorError2 = false; + var _iteratorError2 = undefined; + + try { + for (var _iterator2 = _children[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { + var _child = _step2.value; + + if (el === _child) { + return true; + } + } + } catch (err) { + _didIteratorError2 = true; + _iteratorError2 = err; + } finally { + try { + if (!_iteratorNormalCompletion2 && _iterator2.return != null) { + _iterator2.return(); + } + } finally { + if (_didIteratorError2) { + throw _iteratorError2; + } + } + } + } + + return false; + }, + + /** + * Close dropdown if clicked outside. + */ + clickedOutside: function clickedOutside(event) { + if (this.cancelOptions.indexOf('outside') < 0) return; + if (this.inline) return; + var target = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["isCustomElement"])(this) ? event.composedPath()[0] : event.target; + if (!this.isInWhiteList(target)) this.isActive = false; + }, + + /** + * Keypress event that is bound to the document + */ + keyPress: function keyPress(_ref) { + var key = _ref.key; + + if (this.isActive && (key === 'Escape' || key === 'Esc')) { + if (this.cancelOptions.indexOf('escape') < 0) return; + this.isActive = false; + } + }, + onClick: function onClick() { + if (this.triggers.indexOf('click') < 0) return; + this.toggle(); + }, + onContextMenu: function onContextMenu() { + if (this.triggers.indexOf('contextmenu') < 0) return; + this.toggle(); + }, + onHover: function onHover() { + if (this.triggers.indexOf('hover') < 0) return; + this.isHoverable = true; + }, + onFocus: function onFocus() { + if (this.triggers.indexOf('focus') < 0) return; + this.toggle(); + }, + + /** + * Toggle dropdown if it's not disabled. + */ + toggle: function toggle() { + var _this2 = this; + + if (this.disabled) return; + + if (!this.isActive) { + // if not active, toggle after clickOutside event + // this fixes toggling programmatic + this.$nextTick(function () { + var value = !_this2.isActive; + _this2.isActive = value; // Vue 2.6.x ??? + + setTimeout(function () { + return _this2.isActive = value; + }); + }); + } else { + this.isActive = !this.isActive; + } + }, + updateAppendToBody: function updateAppendToBody() { + var dropdownMenu = this.$refs.dropdownMenu; + var trigger = this.$refs.trigger; + + if (dropdownMenu && trigger) { + // update wrapper dropdown + var dropdown = this.$data._bodyEl.children[0]; + dropdown.classList.forEach(function (item) { + return dropdown.classList.remove(item); + }); + dropdown.classList.add('dropdown'); + dropdown.classList.add('dropdown-menu-animation'); + + if (this.$vnode && this.$vnode.data && this.$vnode.data.staticClass) { + dropdown.classList.add(this.$vnode.data.staticClass); + } + + this.rootClasses.forEach(function (item) { + // skip position prop + if (item && Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["b"])(item) === 'object') { + for (var key in item) { + if (item[key]) { + dropdown.classList.add(key); + } + } + } + }); + + if (this.appendToBodyCopyParent) { + var parentNode = this.$refs.dropdown.parentNode; + var parent = this.$data._bodyEl; + parent.classList.forEach(function (item) { + return parent.classList.remove(item); + }); + parentNode.classList.forEach(function (item) { + parent.classList.add(item); + }); + } + + var rect = trigger.getBoundingClientRect(); + var top = rect.top + window.scrollY; + var left = rect.left + window.scrollX; + + if (!this.position || this.position.indexOf('bottom') >= 0) { + top += trigger.clientHeight; + } else { + top -= dropdownMenu.clientHeight; + } + + if (this.position && this.position.indexOf('left') >= 0) { + left -= dropdownMenu.clientWidth - trigger.clientWidth; + } + + this.style = { + position: 'absolute', + top: "".concat(top, "px"), + left: "".concat(left, "px"), + zIndex: '99' + }; + } + } + }, + mounted: function mounted() { + if (this.appendToBody) { + this.$data._bodyEl = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["createAbsoluteElement"])(this.$refs.dropdownMenu); + this.updateAppendToBody(); + } + }, + created: function created() { + if (typeof window !== 'undefined') { + document.addEventListener('click', this.clickedOutside); + document.addEventListener('keyup', this.keyPress); + } + }, + beforeDestroy: function beforeDestroy() { + if (typeof window !== 'undefined') { + document.removeEventListener('click', this.clickedOutside); + document.removeEventListener('keyup', this.keyPress); + } + + if (this.appendToBody) { + Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["removeElement"])(this.$data._bodyEl); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:_vm.rootClasses},[(!_vm.inline)?_c('div',{ref:"trigger",staticClass:"dropdown-trigger",attrs:{"role":"button","aria-haspopup":"true"},on:{"click":_vm.onClick,"contextmenu":function($event){$event.preventDefault();return _vm.onContextMenu($event)},"mouseenter":_vm.onHover,"!focus":function($event){return _vm.onFocus($event)}}},[_vm._t("trigger",null,{"active":_vm.isActive})],2):_vm._e(),_c('transition',{attrs:{"name":_vm.animation}},[(_vm.isMobileModal)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!_vm.isActive}}):_vm._e()]),_c('transition',{attrs:{"name":_vm.animation}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:((!_vm.disabled && (_vm.isActive || _vm.isHoverable)) || _vm.inline),expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:(_vm.trapFocus),expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:(_vm.style),attrs:{"aria-hidden":!_vm.isActive}},[_c('div',{staticClass:"dropdown-content",style:(_vm.contentStyle),attrs:{"role":_vm.ariaRole}},[_vm._t("default")],2)])])],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Dropdown = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +// +var script$1 = { + name: 'BDropdownItem', + mixins: [Object(_chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_4__["I"])('dropdown')], + props: { + value: { + type: [String, Number, Boolean, Object, Array, Function], + default: null + }, + separator: Boolean, + disabled: Boolean, + custom: Boolean, + focusable: { + type: Boolean, + default: true + }, + paddingless: Boolean, + hasLink: Boolean, + ariaRole: { + type: String, + default: '' + } + }, + computed: { + anchorClasses: function anchorClasses() { + return { + 'is-disabled': this.parent.disabled || this.disabled, + 'is-paddingless': this.paddingless, + 'is-active': this.isActive + }; + }, + itemClasses: function itemClasses() { + return { + 'dropdown-item': !this.hasLink, + 'is-disabled': this.disabled, + 'is-paddingless': this.paddingless, + 'is-active': this.isActive, + 'has-link': this.hasLink + }; + }, + ariaRoleItem: function ariaRoleItem() { + return this.ariaRole === 'menuitem' || this.ariaRole === 'listitem' ? this.ariaRole : null; + }, + isClickable: function isClickable() { + return !this.parent.disabled && !this.separator && !this.disabled && !this.custom; + }, + isActive: function isActive() { + if (this.parent.selected === null) return false; + if (this.parent.multiple) return this.parent.selected.indexOf(this.value) >= 0; + return this.value === this.parent.selected; + }, + isFocusable: function isFocusable() { + return this.hasLink ? false : this.focusable; + } + }, + methods: { + /** + * Click listener, select the item. + */ + selectItem: function selectItem() { + if (!this.isClickable) return; + this.parent.selectItem(this.value); + this.$emit('click'); + } + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.separator)?_c('hr',{staticClass:"dropdown-divider"}):(!_vm.custom && !_vm.hasLink)?_c('a',{staticClass:"dropdown-item",class:_vm.anchorClasses,attrs:{"role":_vm.ariaRoleItem,"tabindex":_vm.isFocusable ? 0 : null},on:{"click":_vm.selectItem}},[_vm._t("default")],2):_c('div',{class:_vm.itemClasses,attrs:{"role":_vm.ariaRoleItem,"tabindex":_vm.isFocusable ? 0 : null},on:{"click":_vm.selectItem}},[_vm._t("default")],2)}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = false; + /* style inject */ + + /* style inject SSR */ + + + + var DropdownItem = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-e6c2853b.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-e6c2853b.js ***! + \*******************************************************/ +/*! exports provided: M */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return Modal; }); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-42f463e6.js */ "./node_modules/buefy/dist/esm/chunk-42f463e6.js"); + + + + + +// +var script = { + name: 'BModal', + directives: { + trapFocus: _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_3__["t"] + }, + // deprecated, to replace with default 'value' in the next breaking change + model: { + prop: 'active', + event: 'update:active' + }, + props: { + active: Boolean, + component: [Object, Function, String], + content: String, + programmatic: Boolean, + props: Object, + events: Object, + width: { + type: [String, Number], + default: 960 + }, + hasModalCard: Boolean, + animation: { + type: String, + default: 'zoom-out' + }, + canCancel: { + type: [Array, Boolean], + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultModalCanCancel; + } + }, + onCancel: { + type: Function, + default: function _default() {} + }, + scroll: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultModalScroll ? _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultModalScroll : 'clip'; + }, + validator: function validator(value) { + return ['clip', 'keep'].indexOf(value) >= 0; + } + }, + fullScreen: Boolean, + trapFocus: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultTrapFocus; + } + }, + customClass: String, + ariaRole: { + type: String, + validator: function validator(value) { + return ['dialog', 'alertdialog'].indexOf(value) >= 0; + } + }, + ariaModal: Boolean, + destroyOnHide: { + type: Boolean, + default: true + } + }, + data: function data() { + return { + isActive: this.active || false, + savedScrollTop: null, + newWidth: typeof this.width === 'number' ? this.width + 'px' : this.width, + animating: true, + destroyed: !this.active + }; + }, + computed: { + cancelOptions: function cancelOptions() { + return typeof this.canCancel === 'boolean' ? this.canCancel ? _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultModalCanCancel : [] : this.canCancel; + }, + showX: function showX() { + return this.cancelOptions.indexOf('x') >= 0 && !this.hasModalCard; + }, + customStyle: function customStyle() { + if (!this.fullScreen) { + return { + maxWidth: this.newWidth + }; + } + + return null; + } + }, + watch: { + active: function active(value) { + this.isActive = value; + }, + isActive: function isActive(value) { + var _this = this; + + if (value) this.destroyed = false; + this.handleScroll(); + this.$nextTick(function () { + if (value && _this.$el && _this.$el.focus) { + _this.$el.focus(); + } + }); + } + }, + methods: { + handleScroll: function handleScroll() { + if (typeof window === 'undefined') return; + + if (this.scroll === 'clip') { + if (this.isActive) { + document.documentElement.classList.add('is-clipped'); + } else { + document.documentElement.classList.remove('is-clipped'); + } + + return; + } + + this.savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop; + + if (this.isActive) { + document.body.classList.add('is-noscroll'); + } else { + document.body.classList.remove('is-noscroll'); + } + + if (this.isActive) { + document.body.style.top = "-".concat(this.savedScrollTop, "px"); + return; + } + + document.documentElement.scrollTop = this.savedScrollTop; + document.body.style.top = null; + this.savedScrollTop = null; + }, + + /** + * Close the Modal if canCancel and call the onCancel prop (function). + */ + cancel: function cancel(method) { + if (this.cancelOptions.indexOf(method) < 0) return; + this.$emit('cancel', arguments); + this.onCancel.apply(null, arguments); + this.close(); + }, + + /** + * Call the onCancel prop (function). + * Emit events, and destroy modal if it's programmatic. + */ + close: function close() { + var _this2 = this; + + this.$emit('close'); + this.$emit('update:active', false); // Timeout for the animation complete before destroying + + if (this.programmatic) { + this.isActive = false; + setTimeout(function () { + _this2.$destroy(); + + Object(_helpers_js__WEBPACK_IMPORTED_MODULE_0__["removeElement"])(_this2.$el); + }, 150); + } + }, + + /** + * Keypress event that is bound to the document. + */ + keyPress: function keyPress(_ref) { + var key = _ref.key; + if (this.isActive && (key === 'Escape' || key === 'Esc')) this.cancel('escape'); + }, + + /** + * Transition after-enter hook + */ + afterEnter: function afterEnter() { + this.animating = false; + }, + + /** + * Transition before-leave hook + */ + beforeLeave: function beforeLeave() { + this.animating = true; + }, + + /** + * Transition after-leave hook + */ + afterLeave: function afterLeave() { + if (this.destroyOnHide) { + this.destroyed = true; + } + } + }, + created: function created() { + if (typeof window !== 'undefined') { + document.addEventListener('keyup', this.keyPress); + } + }, + beforeMount: function beforeMount() { + // Insert the Modal component in body tag + // only if it's programmatic + this.programmatic && document.body.appendChild(this.$el); + }, + mounted: function mounted() { + if (this.programmatic) this.isActive = true;else if (this.isActive) this.handleScroll(); + }, + beforeDestroy: function beforeDestroy() { + if (typeof window !== 'undefined') { + document.removeEventListener('keyup', this.keyPress); // reset scroll + + document.documentElement.classList.remove('is-clipped'); + var savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop; + document.body.classList.remove('is-noscroll'); + document.documentElement.scrollTop = savedScrollTop; + document.body.style.top = null; + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation},on:{"after-enter":_vm.afterEnter,"before-leave":_vm.beforeLeave,"after-leave":_vm.afterLeave}},[(!_vm.destroyed)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:(_vm.trapFocus),expression:"trapFocus"}],staticClass:"modal is-active",class:[{'is-full-screen': _vm.fullScreen}, _vm.customClass],attrs:{"tabindex":"-1","role":_vm.ariaRole,"aria-modal":_vm.ariaModal}},[_c('div',{staticClass:"modal-background",on:{"click":function($event){return _vm.cancel('outside')}}}),_c('div',{staticClass:"animation-content",class:{ 'modal-content': !_vm.hasModalCard },style:(_vm.customStyle)},[(_vm.component)?_c(_vm.component,_vm._g(_vm._b({tag:"component",attrs:{"can-cancel":_vm.canCancel},on:{"close":_vm.close}},'component',_vm.props,false),_vm.events)):(_vm.content)?_c('div',[_vm._v(" "+_vm._s(_vm.content)+" ")]):_vm._t("default",null,{"canCancel":_vm.canCancel,"close":_vm.close}),(_vm.showX)?_c('button',{directives:[{name:"show",rawName:"v-show",value:(!_vm.animating),expression:"!animating"}],staticClass:"modal-close is-large",attrs:{"type":"button"},on:{"click":function($event){return _vm.cancel('x')}}}):_vm._e()],2)]):_vm._e()])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Modal = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-f134e057.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-f134e057.js ***! + \*******************************************************/ +/*! exports provided: V, a, c, s */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return VueInstance; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return setVueInstance; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return config; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return setOptions; }); +var config = { + defaultContainerElement: null, + defaultIconPack: 'mdi', + defaultIconComponent: null, + defaultIconPrev: 'chevron-left', + defaultIconNext: 'chevron-right', + defaultLocale: undefined, + defaultDialogConfirmText: null, + defaultDialogCancelText: null, + defaultSnackbarDuration: 3500, + defaultSnackbarPosition: null, + defaultToastDuration: 2000, + defaultToastPosition: null, + defaultNotificationDuration: 2000, + defaultNotificationPosition: null, + defaultTooltipType: 'is-primary', + defaultInputAutocomplete: 'on', + defaultDateFormatter: null, + defaultDateParser: null, + defaultDateCreator: null, + defaultTimeCreator: null, + defaultDayNames: null, + defaultMonthNames: null, + defaultFirstDayOfWeek: null, + defaultUnselectableDaysOfWeek: null, + defaultTimeFormatter: null, + defaultTimeParser: null, + defaultModalCanCancel: ['escape', 'x', 'outside', 'button'], + defaultModalScroll: null, + defaultDatepickerMobileNative: true, + defaultTimepickerMobileNative: true, + defaultNoticeQueue: true, + defaultInputHasCounter: true, + defaultTaginputHasCounter: true, + defaultUseHtml5Validation: true, + defaultDropdownMobileModal: true, + defaultFieldLabelPosition: null, + defaultDatepickerYearsRange: [-100, 10], + defaultDatepickerNearbyMonthDays: true, + defaultDatepickerNearbySelectableMonthDays: false, + defaultDatepickerShowWeekNumber: false, + defaultDatepickerMobileModal: true, + defaultTrapFocus: true, + defaultButtonRounded: false, + defaultCarouselInterval: 3500, + defaultTabsExpanded: false, + defaultTabsAnimated: true, + defaultTabsType: null, + defaultStatusIcon: true, + defaultProgrammaticPromise: false, + defaultLinkTags: ['a', 'button', 'input', 'router-link', 'nuxt-link', 'n-link', 'RouterLink', 'NuxtLink', 'NLink'], + defaultImageWebpFallback: null, + defaultImageLazy: true, + defaultImageResponsive: true, + defaultImageRatio: null, + defaultImageSrcsetFormatter: null, + customIconPacks: null +}; +var setOptions = function setOptions(options) { + config = options; +}; +var setVueInstance = function setVueInstance(Vue) { + VueInstance = Vue; +}; +var VueInstance; + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-f8201455.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-f8201455.js ***! + \*******************************************************/ +/*! exports provided: F */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return FormElementMixin; }); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); + + + +var FormElementMixin = { + props: { + size: String, + expanded: Boolean, + loading: Boolean, + rounded: Boolean, + icon: String, + iconPack: String, + // Native options to use in HTML5 validation + autocomplete: String, + maxlength: [Number, String], + useHtml5Validation: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultUseHtml5Validation; + } + }, + validationMessage: String, + locale: { + type: [String, Array], + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultLocale; + } + }, + statusIcon: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultStatusIcon; + } + } + }, + data: function data() { + return { + isValid: true, + isFocused: false, + newIconPack: this.iconPack || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__["c"].defaultIconPack + }; + }, + computed: { + /** + * Find parent Field, max 3 levels deep. + */ + parentField: function parentField() { + var parent = this.$parent; + + for (var i = 0; i < 3; i++) { + if (parent && !parent.$data._isField) { + parent = parent.$parent; + } + } + + return parent; + }, + + /** + * Get the type prop from parent if it's a Field. + */ + statusType: function statusType() { + if (!this.parentField) return; + if (!this.parentField.newType) return; + + if (typeof this.parentField.newType === 'string') { + return this.parentField.newType; + } else { + for (var key in this.parentField.newType) { + if (this.parentField.newType[key]) { + return key; + } + } + } + }, + + /** + * Get the message prop from parent if it's a Field. + */ + statusMessage: function statusMessage() { + if (!this.parentField) return; + return this.parentField.newMessage || this.parentField.$slots.message; + }, + + /** + * Fix icon size for inputs, large was too big + */ + iconSize: function iconSize() { + switch (this.size) { + case 'is-small': + return this.size; + + case 'is-medium': + return; + + case 'is-large': + return this.newIconPack === 'mdi' ? 'is-medium' : ''; + } + } + }, + methods: { + /** + * Focus method that work dynamically depending on the component. + */ + focus: function focus() { + var el = this.getElement(); + if (el === undefined) return; + this.$nextTick(function () { + if (el) el.focus(); + }); + }, + onBlur: function onBlur($event) { + this.isFocused = false; + this.$emit('blur', $event); + this.checkHtml5Validity(); + }, + onFocus: function onFocus($event) { + this.isFocused = true; + this.$emit('focus', $event); + }, + getElement: function getElement() { + var el = this.$refs[this.$data._elementRef]; + + while (Object(_helpers_js__WEBPACK_IMPORTED_MODULE_0__["isVueComponent"])(el)) { + el = el.$refs[el.$data._elementRef]; + } + + return el; + }, + setInvalid: function setInvalid() { + var type = 'is-danger'; + var message = this.validationMessage || this.getElement().validationMessage; + this.setValidity(type, message); + }, + setValidity: function setValidity(type, message) { + var _this = this; + + this.$nextTick(function () { + if (_this.parentField) { + // Set type only if not defined + if (!_this.parentField.type) { + _this.parentField.newType = type; + } // Set message only if not defined + + + if (!_this.parentField.message) { + _this.parentField.newMessage = message; + } + } + }); + }, + + /** + * Check HTML5 validation, set isValid property. + * If validation fail, send 'is-danger' type, + * and error message to parent if it's a Field. + */ + checkHtml5Validity: function checkHtml5Validity() { + if (!this.useHtml5Validation) return; + var el = this.getElement(); + if (el === undefined) return; + + if (!el.checkValidity()) { + this.setInvalid(); + this.isValid = false; + } else { + this.setValidity(null, null); + this.isValid = true; + } + + return this.isValid; + } + } +}; + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/chunk-fb315748.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/chunk-fb315748.js ***! + \*******************************************************/ +/*! exports provided: T */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return Tag; }); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +var script = { + name: 'BTag', + props: { + attached: Boolean, + closable: Boolean, + type: String, + size: String, + rounded: Boolean, + disabled: Boolean, + ellipsis: Boolean, + tabstop: { + type: Boolean, + default: true + }, + ariaCloseLabel: String, + closeType: String, + closeIcon: String, + closeIconPack: String, + closeIconType: String + }, + methods: { + /** + * Emit close event when delete button is clicked + * or delete key is pressed. + */ + close: function close(event) { + if (this.disabled) return; + this.$emit('close', event); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.attached && _vm.closable)?_c('div',{staticClass:"tags has-addons"},[_c('span',{staticClass:"tag",class:[_vm.type, _vm.size, { 'is-rounded': _vm.rounded }]},[_c('span',{class:{ 'has-ellipsis': _vm.ellipsis }},[_vm._t("default")],2)]),_c('a',{staticClass:"tag",class:[_vm.size, + _vm.closeType, + {'is-rounded': _vm.rounded}, + _vm.closeIcon ? 'has-delete-icon' : 'is-delete'],attrs:{"role":"button","aria-label":_vm.ariaCloseLabel,"tabindex":_vm.tabstop ? 0 : false,"disabled":_vm.disabled},on:{"click":_vm.close,"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"delete",[8,46],$event.key,["Backspace","Delete","Del"])){ return null; }$event.preventDefault();return _vm.close($event)}}},[(_vm.closeIcon)?_c('b-icon',{attrs:{"custom-class":"","icon":_vm.closeIcon,"size":_vm.size,"type":_vm.closeIconType,"pack":_vm.closeIconPack}}):_vm._e(),_c('a')],1)]):_c('span',{staticClass:"tag",class:[_vm.type, _vm.size, { 'is-rounded': _vm.rounded }]},[_c('span',{class:{ 'has-ellipsis': _vm.ellipsis }},[_vm._t("default")],2),(_vm.closable)?_c('a',{staticClass:"delete is-small",class:_vm.closeType,attrs:{"role":"button","aria-label":_vm.ariaCloseLabel,"disabled":_vm.disabled,"tabindex":_vm.tabstop ? 0 : false},on:{"click":_vm.close,"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"delete",[8,46],$event.key,["Backspace","Delete","Del"])){ return null; }$event.preventDefault();return _vm.close($event)}}}):_vm._e()])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Tag = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/clockpicker.js": +/*!****************************************************!*\ + !*** ./node_modules/buefy/dist/esm/clockpicker.js ***! + \****************************************************/ +/*! exports provided: default, BClockpicker */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BClockpicker", function() { return Clockpicker; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); +/* harmony import */ var _chunk_5e460019_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./chunk-5e460019.js */ "./node_modules/buefy/dist/esm/chunk-5e460019.js"); +/* harmony import */ var _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./chunk-42f463e6.js */ "./node_modules/buefy/dist/esm/chunk-42f463e6.js"); +/* harmony import */ var _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./chunk-ddbc6c47.js */ "./node_modules/buefy/dist/esm/chunk-ddbc6c47.js"); +/* harmony import */ var _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./chunk-91a2d037.js */ "./node_modules/buefy/dist/esm/chunk-91a2d037.js"); + + + + + + + + + + + + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// These should match the variables in clockpicker.scss +var indicatorSize = 40; +var paddingInner = 5; +var script = { + name: 'BClockpickerFace', + props: { + pickerSize: Number, + min: Number, + max: Number, + double: Boolean, + value: Number, + faceNumbers: Array, + disabledValues: Function + }, + data: function data() { + return { + isDragging: false, + inputValue: this.value, + prevAngle: 720 + }; + }, + computed: { + /** + * How many number indicators are shown on the face + */ + count: function count() { + return this.max - this.min + 1; + }, + + /** + * How many number indicators are shown per ring on the face + */ + countPerRing: function countPerRing() { + return this.double ? this.count / 2 : this.count; + }, + + /** + * Radius of the clock face + */ + radius: function radius() { + return this.pickerSize / 2; + }, + + /** + * Radius of the outer ring of number indicators + */ + outerRadius: function outerRadius() { + return this.radius - paddingInner - indicatorSize / 2; + }, + + /** + * Radius of the inner ring of number indicators + */ + innerRadius: function innerRadius() { + return Math.max(this.outerRadius * 0.6, this.outerRadius - paddingInner - indicatorSize); // 48px gives enough room for the outer ring of numbers + }, + + /** + * The angle for each selectable value + * For hours this ends up being 30 degrees, for minutes 6 degrees + */ + degreesPerUnit: function degreesPerUnit() { + return 360 / this.countPerRing; + }, + + /** + * Used for calculating x/y grid location based on degrees + */ + degrees: function degrees() { + return this.degreesPerUnit * Math.PI / 180; + }, + + /** + * Calculates the angle the clock hand should be rotated for the + * selected value + */ + handRotateAngle: function handRotateAngle() { + var currentAngle = this.prevAngle; + + while (currentAngle < 0) { + currentAngle += 360; + } + + var targetAngle = this.calcHandAngle(this.displayedValue); + var degreesDiff = this.shortestDistanceDegrees(currentAngle, targetAngle); + var angle = this.prevAngle + degreesDiff; + return angle; + }, + + /** + * Determines how long the selector hand is based on if the + * selected value is located along the outer or inner ring + */ + handScale: function handScale() { + return this.calcHandScale(this.displayedValue); + }, + handStyle: function handStyle() { + return { + transform: "rotate(".concat(this.handRotateAngle, "deg) scaleY(").concat(this.handScale, ")"), + transition: '.3s cubic-bezier(.25,.8,.50,1)' + }; + }, + + /** + * The value the hand should be pointing at + */ + displayedValue: function displayedValue() { + return this.inputValue == null ? this.min : this.inputValue; + } + }, + watch: { + value: function value(_value) { + if (_value !== this.inputValue) { + this.prevAngle = this.handRotateAngle; + } + + this.inputValue = _value; + } + }, + methods: { + isDisabled: function isDisabled(value) { + return this.disabledValues && this.disabledValues(value); + }, + + /** + * Calculates the distance between two points + */ + euclidean: function euclidean(p0, p1) { + var dx = p1.x - p0.x; + var dy = p1.y - p0.y; + return Math.sqrt(dx * dx + dy * dy); + }, + shortestDistanceDegrees: function shortestDistanceDegrees(start, stop) { + var modDiff = (stop - start) % 360; + var shortestDistance = 180 - Math.abs(Math.abs(modDiff) - 180); + return (modDiff + 360) % 360 < 180 ? shortestDistance * 1 : shortestDistance * -1; + }, + + /** + * Calculates the angle of the line from the center point + * to the given point. + */ + coordToAngle: function coordToAngle(center, p1) { + var value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x); + return Math.abs(value * 180 / Math.PI); + }, + + /** + * Generates the inline style translate() property for a + * number indicator, which determines it's location on the + * clock face + */ + getNumberTranslate: function getNumberTranslate(value) { + var _this$getNumberCoords = this.getNumberCoords(value), + x = _this$getNumberCoords.x, + y = _this$getNumberCoords.y; + + return "translate(".concat(x, "px, ").concat(y, "px)"); + }, + + /*** + * Calculates the coordinates on the clock face for a number + * indicator value + */ + getNumberCoords: function getNumberCoords(value) { + var radius = this.isInnerRing(value) ? this.innerRadius : this.outerRadius; + return { + x: Math.round(radius * Math.sin((value - this.min) * this.degrees)), + y: Math.round(-radius * Math.cos((value - this.min) * this.degrees)) + }; + }, + getFaceNumberClasses: function getFaceNumberClasses(num) { + return { + 'active': num.value === this.displayedValue, + 'disabled': this.isDisabled(num.value) + }; + }, + + /** + * Determines if a value resides on the inner ring + */ + isInnerRing: function isInnerRing(value) { + return this.double && value - this.min >= this.countPerRing; + }, + calcHandAngle: function calcHandAngle(value) { + var angle = this.degreesPerUnit * (value - this.min); + if (this.isInnerRing(value)) angle -= 360; + return angle; + }, + calcHandScale: function calcHandScale(value) { + return this.isInnerRing(value) ? this.innerRadius / this.outerRadius : 1; + }, + onMouseDown: function onMouseDown(e) { + e.preventDefault(); + this.isDragging = true; + this.onDragMove(e); + }, + onMouseUp: function onMouseUp() { + this.isDragging = false; + + if (!this.isDisabled(this.inputValue)) { + this.$emit('change', this.inputValue); + } + }, + onDragMove: function onDragMove(e) { + e.preventDefault(); + if (!this.isDragging && e.type !== 'click') return; + + var _this$$refs$clock$get = this.$refs.clock.getBoundingClientRect(), + width = _this$$refs$clock$get.width, + top = _this$$refs$clock$get.top, + left = _this$$refs$clock$get.left; + + var _ref = 'touches' in e ? e.touches[0] : e, + clientX = _ref.clientX, + clientY = _ref.clientY; + + var center = { + x: width / 2, + y: -width / 2 + }; + var coords = { + x: clientX - left, + y: top - clientY + }; + var handAngle = Math.round(this.coordToAngle(center, coords) + 360) % 360; + var insideClick = this.double && this.euclidean(center, coords) < (this.outerRadius + this.innerRadius) / 2 - 16; + var value = Math.round(handAngle / this.degreesPerUnit) + this.min + (insideClick ? this.countPerRing : 0); // Necessary to fix edge case when selecting left part of max value + + if (handAngle >= 360 - this.degreesPerUnit / 2) { + value = insideClick ? this.max : this.min; + } + + this.update(value); + }, + update: function update(value) { + if (this.inputValue !== value && !this.isDisabled(value)) { + this.prevAngle = this.handRotateAngle; + this.inputValue = value; + this.$emit('input', value); + } + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-clockpicker-face",on:{"mousedown":_vm.onMouseDown,"mouseup":_vm.onMouseUp,"mousemove":_vm.onDragMove,"touchstart":_vm.onMouseDown,"touchend":_vm.onMouseUp,"touchmove":_vm.onDragMove}},[_c('div',{ref:"clock",staticClass:"b-clockpicker-face-outer-ring"},[_c('div',{staticClass:"b-clockpicker-face-hand",style:(_vm.handStyle)}),_vm._l((_vm.faceNumbers),function(num,index){return _c('span',{key:index,staticClass:"b-clockpicker-face-number",class:_vm.getFaceNumberClasses(num),style:({ transform: _vm.getNumberTranslate(num.value) })},[_c('span',[_vm._v(_vm._s(num.label))])])})],2)])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var ClockpickerFace = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var _components; +var outerPadding = 12; +var script$1 = { + name: 'BClockpicker', + components: (_components = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, ClockpickerFace.name, ClockpickerFace), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__["I"].name, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_11__["F"].name, _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_11__["F"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_10__["D"].name, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_10__["D"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_10__["a"].name, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_10__["a"]), _components), + mixins: [_chunk_5e460019_js__WEBPACK_IMPORTED_MODULE_8__["T"]], + props: { + pickerSize: { + type: Number, + default: 290 + }, + incrementMinutes: { + type: Number, + default: 5 + }, + autoSwitch: { + type: Boolean, + default: true + }, + type: { + type: String, + default: 'is-primary' + }, + hoursLabel: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultClockpickerHoursLabel || 'Hours'; + } + }, + minutesLabel: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultClockpickerMinutesLabel || 'Min'; + } + } + }, + data: function data() { + return { + isSelectingHour: true, + isDragging: false, + _isClockpicker: true + }; + }, + computed: { + hoursDisplay: function hoursDisplay() { + if (this.hoursSelected == null) return '--'; + if (this.isHourFormat24) return this.pad(this.hoursSelected); + var display = this.hoursSelected; + + if (this.meridienSelected === this.pmString || this.meridienSelected === this.PM) { + display -= 12; + } + + if (display === 0) display = 12; + return display; + }, + minutesDisplay: function minutesDisplay() { + return this.minutesSelected == null ? '--' : this.pad(this.minutesSelected); + }, + minFaceValue: function minFaceValue() { + return this.isSelectingHour && !this.isHourFormat24 && (this.meridienSelected === this.pmString || this.meridienSelected === this.PM) ? 12 : 0; + }, + maxFaceValue: function maxFaceValue() { + return this.isSelectingHour ? !this.isHourFormat24 && (this.meridienSelected === this.amString || this.meridienSelected === this.AM) ? 11 : 23 : 59; + }, + faceSize: function faceSize() { + return this.pickerSize - outerPadding * 2; + }, + faceDisabledValues: function faceDisabledValues() { + return this.isSelectingHour ? this.isHourDisabled : this.isMinuteDisabled; + } + }, + methods: { + onClockInput: function onClockInput(value) { + if (this.isSelectingHour) { + this.hoursSelected = value; + this.onHoursChange(value); + } else { + this.minutesSelected = value; + this.onMinutesChange(value); + } + }, + onClockChange: function onClockChange(value) { + if (this.autoSwitch && this.isSelectingHour) { + this.isSelectingHour = !this.isSelectingHour; + } + }, + onMeridienClick: function onMeridienClick(value) { + if (this.meridienSelected !== value) { + this.meridienSelected = value; + this.onMeridienChange(value); + } + } + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-clockpicker control",class:[_vm.size, _vm.type, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:"dropdown",attrs:{"position":_vm.position,"disabled":_vm.disabled,"inline":_vm.inline,"append-to-body":_vm.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":_vm.onActiveChange},scopedSlots:_vm._u([(!_vm.inline)?{key:"trigger",fn:function(){return [_vm._t("trigger",[_c('b-input',_vm._b({ref:"input",attrs:{"slot":"trigger","autocomplete":"off","value":_vm.formatValue(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"loading":_vm.loading,"disabled":_vm.disabled,"readonly":!_vm.editable,"rounded":_vm.rounded,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":_vm.handleOnFocus,"blur":function($event){_vm.onBlur() && _vm.checkHtml5Validity();}},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.toggle(true)},"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.toggle(true)},"change":function($event){return _vm.onChange($event.target.value)}},slot:"trigger"},'b-input',_vm.$attrs,false))])]},proxy:true}:null],null,true)},[_c('div',{staticClass:"card",attrs:{"disabled":_vm.disabled,"custom":""}},[(_vm.inline)?_c('header',{staticClass:"card-header"},[_c('div',{staticClass:"b-clockpicker-header card-header-title"},[_c('div',{staticClass:"b-clockpicker-time"},[_c('span',{staticClass:"b-clockpicker-btn",class:{ active: _vm.isSelectingHour },on:{"click":function($event){_vm.isSelectingHour = true;}}},[_vm._v(_vm._s(_vm.hoursDisplay))]),_c('span',[_vm._v(_vm._s(_vm.hourLiteral))]),_c('span',{staticClass:"b-clockpicker-btn",class:{ active: !_vm.isSelectingHour },on:{"click":function($event){_vm.isSelectingHour = false;}}},[_vm._v(_vm._s(_vm.minutesDisplay))])]),(!_vm.isHourFormat24)?_c('div',{staticClass:"b-clockpicker-period"},[_c('div',{staticClass:"b-clockpicker-btn",class:{ + active: _vm.meridienSelected === _vm.amString || _vm.meridienSelected === _vm.AM + },on:{"click":function($event){return _vm.onMeridienClick(_vm.amString)}}},[_vm._v(_vm._s(_vm.amString))]),_c('div',{staticClass:"b-clockpicker-btn",class:{ + active: _vm.meridienSelected === _vm.pmString || _vm.meridienSelected === _vm.PM + },on:{"click":function($event){return _vm.onMeridienClick(_vm.pmString)}}},[_vm._v(_vm._s(_vm.pmString))])]):_vm._e()])]):_vm._e(),_c('div',{staticClass:"card-content"},[_c('div',{staticClass:"b-clockpicker-body",style:({ width: _vm.faceSize + 'px', height: _vm.faceSize + 'px' })},[(!_vm.inline)?_c('div',{staticClass:"b-clockpicker-time"},[_c('div',{staticClass:"b-clockpicker-btn",class:{ active: _vm.isSelectingHour },on:{"click":function($event){_vm.isSelectingHour = true;}}},[_vm._v(_vm._s(_vm.hoursLabel))]),_c('span',{staticClass:"b-clockpicker-btn",class:{ active: !_vm.isSelectingHour },on:{"click":function($event){_vm.isSelectingHour = false;}}},[_vm._v(_vm._s(_vm.minutesLabel))])]):_vm._e(),(!_vm.isHourFormat24 && !_vm.inline)?_c('div',{staticClass:"b-clockpicker-period"},[_c('div',{staticClass:"b-clockpicker-btn",class:{ + active: _vm.meridienSelected === _vm.amString || _vm.meridienSelected === _vm.AM + },on:{"click":function($event){return _vm.onMeridienClick(_vm.amString)}}},[_vm._v(_vm._s(_vm.amString))]),_c('div',{staticClass:"b-clockpicker-btn",class:{ + active: _vm.meridienSelected === _vm.pmString || _vm.meridienSelected === _vm.PM + },on:{"click":function($event){return _vm.onMeridienClick(_vm.pmString)}}},[_vm._v(_vm._s(_vm.pmString))])]):_vm._e(),_c('b-clockpicker-face',{attrs:{"picker-size":_vm.faceSize,"min":_vm.minFaceValue,"max":_vm.maxFaceValue,"face-numbers":_vm.isSelectingHour ? _vm.hours : _vm.minutes,"disabled-values":_vm.faceDisabledValues,"double":_vm.isSelectingHour && _vm.isHourFormat24,"value":_vm.isSelectingHour ? _vm.hoursSelected : _vm.minutesSelected},on:{"input":_vm.onClockInput,"change":_vm.onClockChange}})],1)]),(_vm.$slots.default !== undefined && _vm.$slots.default.length)?_c('footer',{staticClass:"b-clockpicker-footer card-footer"},[_vm._t("default")],2):_vm._e()])]):_c('b-input',_vm._b({ref:"input",attrs:{"type":"time","autocomplete":"off","value":_vm.formatHHMMSS(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"loading":_vm.loading,"max":_vm.formatHHMMSS(_vm.maxTime),"min":_vm.formatHHMMSS(_vm.minTime),"disabled":_vm.disabled,"readonly":false,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":_vm.handleOnFocus,"blur":function($event){_vm.onBlur() && _vm.checkHtml5Validity();}},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.toggle(true)},"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.toggle(true)},"change":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))],1)}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = false; + /* style inject */ + + /* style inject SSR */ + + + + var Clockpicker = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, Clockpicker); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/collapse.js": +/*!*************************************************!*\ + !*** ./node_modules/buefy/dist/esm/collapse.js ***! + \*************************************************/ +/*! exports provided: default, BCollapse */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BCollapse", function() { return Collapse; }); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + +var script = { + name: 'BCollapse', + // deprecated, to replace with default 'value' in the next breaking change + model: { + prop: 'open', + event: 'update:open' + }, + props: { + open: { + type: Boolean, + default: true + }, + animation: { + type: String, + default: 'fade' + }, + ariaId: { + type: String, + default: '' + }, + position: { + type: String, + default: 'is-top', + validator: function validator(value) { + return ['is-top', 'is-bottom'].indexOf(value) > -1; + } + } + }, + data: function data() { + return { + isOpen: this.open + }; + }, + watch: { + open: function open(value) { + this.isOpen = value; + } + }, + methods: { + /** + * Toggle and emit events + */ + toggle: function toggle() { + this.isOpen = !this.isOpen; + this.$emit('update:open', this.isOpen); + this.$emit(this.isOpen ? 'open' : 'close'); + } + }, + render: function render(createElement) { + var trigger = createElement('div', { + staticClass: 'collapse-trigger', + on: { + click: this.toggle + } + }, this.$scopedSlots.trigger ? [this.$scopedSlots.trigger({ + open: this.isOpen + })] : [this.$slots.trigger]); + var content = createElement('transition', { + props: { + name: this.animation + } + }, [createElement('div', { + staticClass: 'collapse-content', + attrs: { + 'id': this.ariaId, + 'aria-expanded': this.isOpen + }, + directives: [{ + name: 'show', + value: this.isOpen + }] + }, this.$slots.default)]); + return createElement('div', { + staticClass: 'collapse' + }, this.position === 'is-top' ? [trigger, content] : [content, trigger]); + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = undefined; + /* style inject */ + + /* style inject SSR */ + + + + var Collapse = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["_"])( + {}, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["r"])(Vue, Collapse); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/datepicker.js": +/*!***************************************************!*\ + !*** ./node_modules/buefy/dist/esm/datepicker.js ***! + \***************************************************/ +/*! exports provided: BDatepicker, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); +/* harmony import */ var _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./chunk-42f463e6.js */ "./node_modules/buefy/dist/esm/chunk-42f463e6.js"); +/* harmony import */ var _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./chunk-ddbc6c47.js */ "./node_modules/buefy/dist/esm/chunk-ddbc6c47.js"); +/* harmony import */ var _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./chunk-91a2d037.js */ "./node_modules/buefy/dist/esm/chunk-91a2d037.js"); +/* harmony import */ var _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./chunk-97074b53.js */ "./node_modules/buefy/dist/esm/chunk-97074b53.js"); +/* harmony import */ var _chunk_27eb50a6_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./chunk-27eb50a6.js */ "./node_modules/buefy/dist/esm/chunk-27eb50a6.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BDatepicker", function() { return _chunk_27eb50a6_js__WEBPACK_IMPORTED_MODULE_12__["D"]; }); + + + + + + + + + + + + + + + + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, _chunk_27eb50a6_js__WEBPACK_IMPORTED_MODULE_12__["D"]); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/datetimepicker.js": +/*!*******************************************************!*\ + !*** ./node_modules/buefy/dist/esm/datetimepicker.js ***! + \*******************************************************/ +/*! exports provided: default, BDatetimepicker */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BDatetimepicker", function() { return Datetimepicker; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); +/* harmony import */ var _chunk_5e460019_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./chunk-5e460019.js */ "./node_modules/buefy/dist/esm/chunk-5e460019.js"); +/* harmony import */ var _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./chunk-42f463e6.js */ "./node_modules/buefy/dist/esm/chunk-42f463e6.js"); +/* harmony import */ var _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./chunk-ddbc6c47.js */ "./node_modules/buefy/dist/esm/chunk-ddbc6c47.js"); +/* harmony import */ var _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./chunk-91a2d037.js */ "./node_modules/buefy/dist/esm/chunk-91a2d037.js"); +/* harmony import */ var _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./chunk-97074b53.js */ "./node_modules/buefy/dist/esm/chunk-97074b53.js"); +/* harmony import */ var _chunk_27eb50a6_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./chunk-27eb50a6.js */ "./node_modules/buefy/dist/esm/chunk-27eb50a6.js"); +/* harmony import */ var _chunk_5e4db2f1_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./chunk-5e4db2f1.js */ "./node_modules/buefy/dist/esm/chunk-5e4db2f1.js"); + + + + + + + + + + + + + + + + +var _components; +var AM = 'AM'; +var PM = 'PM'; +var script = { + name: 'BDatetimepicker', + components: (_components = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_27eb50a6_js__WEBPACK_IMPORTED_MODULE_13__["D"].name, _chunk_27eb50a6_js__WEBPACK_IMPORTED_MODULE_13__["D"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_5e4db2f1_js__WEBPACK_IMPORTED_MODULE_14__["T"].name, _chunk_5e4db2f1_js__WEBPACK_IMPORTED_MODULE_14__["T"]), _components), + mixins: [_chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__["F"]], + inheritAttrs: false, + props: { + value: { + type: Date + }, + editable: { + type: Boolean, + default: false + }, + placeholder: String, + horizontalTimePicker: Boolean, + disabled: Boolean, + icon: String, + iconPack: String, + inline: Boolean, + openOnFocus: Boolean, + position: String, + mobileNative: { + type: Boolean, + default: true + }, + minDatetime: Date, + maxDatetime: Date, + datetimeFormatter: { + type: Function + }, + datetimeParser: { + type: Function + }, + datetimeCreator: { + type: Function, + default: function _default(date) { + if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatetimeCreator === 'function') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatetimeCreator(date); + } else { + return date; + } + } + }, + datepicker: Object, + timepicker: Object, + tzOffset: { + type: Number, + default: 0 + }, + focusable: { + type: Boolean, + default: true + }, + appendToBody: Boolean + }, + data: function data() { + return { + newValue: this.adjustValue(this.value) + }; + }, + computed: { + computedValue: { + get: function get() { + return this.newValue; + }, + set: function set(value) { + if (value) { + var val = new Date(value.getTime()); + + if (this.newValue) { + // restore time part + if ((value.getDate() !== this.newValue.getDate() || value.getMonth() !== this.newValue.getMonth() || value.getFullYear() !== this.newValue.getFullYear()) && value.getHours() === 0 && value.getMinutes() === 0 && value.getSeconds() === 0) { + val.setHours(this.newValue.getHours(), this.newValue.getMinutes(), this.newValue.getSeconds(), 0); + } + } else { + val = this.datetimeCreator(value); + } // check min and max range + + + if (this.minDatetime && val < this.adjustValue(this.minDatetime)) { + val = this.adjustValue(this.minDatetime); + } else if (this.maxDatetime && val > this.adjustValue(this.maxDatetime)) { + val = this.adjustValue(this.maxDatetime); + } + + this.newValue = new Date(val.getTime()); + } else { + this.newValue = this.adjustValue(this.value); + } + + var adjustedValue = this.adjustValue(this.newValue, true); // reverse adjust + + this.$emit('input', adjustedValue); + } + }, + localeOptions: function localeOptions() { + return new Intl.DateTimeFormat(this.locale, { + year: 'numeric', + month: 'numeric', + day: 'numeric', + hour: 'numeric', + minute: 'numeric', + second: this.enableSeconds() ? 'numeric' : undefined + }).resolvedOptions(); + }, + dtf: function dtf() { + return new Intl.DateTimeFormat(this.locale, { + year: this.localeOptions.year || 'numeric', + month: this.localeOptions.month || 'numeric', + day: this.localeOptions.day || 'numeric', + hour: this.localeOptions.hour || 'numeric', + minute: this.localeOptions.minute || 'numeric', + second: this.enableSeconds() ? this.localeOptions.second || 'numeric' : undefined, + hour12: !this.isHourFormat24(), + timezome: 'UTC' + }); + }, + isMobileNative: function isMobileNative() { + return this.mobileNative && this.tzOffset === 0; + }, + isMobile: function isMobile$1() { + return this.isMobileNative && _helpers_js__WEBPACK_IMPORTED_MODULE_1__["isMobile"].any(); + }, + minDate: function minDate() { + if (!this.minDatetime) { + return this.datepicker ? this.adjustValue(this.datepicker.minDate) : null; + } + + var adjMinDatetime = this.adjustValue(this.minDatetime); + return new Date(adjMinDatetime.getFullYear(), adjMinDatetime.getMonth(), adjMinDatetime.getDate(), 0, 0, 0, 0); + }, + maxDate: function maxDate() { + if (!this.maxDatetime) { + return this.datepicker ? this.adjustValue(this.datepicker.maxDate) : null; + } + + var adjMaxDatetime = this.adjustValue(this.maxDatetime); + return new Date(adjMaxDatetime.getFullYear(), adjMaxDatetime.getMonth(), adjMaxDatetime.getDate(), 0, 0, 0, 0); + }, + minTime: function minTime() { + if (!this.minDatetime || this.newValue === null || typeof this.newValue === 'undefined') { + return this.timepicker ? this.adjustValue(this.timepicker.minTime) : null; + } + + var adjMinDatetime = this.adjustValue(this.minDatetime); + + if (adjMinDatetime.getFullYear() === this.newValue.getFullYear() && adjMinDatetime.getMonth() === this.newValue.getMonth() && adjMinDatetime.getDate() === this.newValue.getDate()) { + return adjMinDatetime; + } + }, + maxTime: function maxTime() { + if (!this.maxDatetime || this.newValue === null || typeof this.newValue === 'undefined') { + return this.timepicker ? this.adjustValue(this.timepicker.maxTime) : null; + } + + var adjMaxDatetime = this.adjustValue(this.maxDatetime); + + if (adjMaxDatetime.getFullYear() === this.newValue.getFullYear() && adjMaxDatetime.getMonth() === this.newValue.getMonth() && adjMaxDatetime.getDate() === this.newValue.getDate()) { + return adjMaxDatetime; + } + }, + datepickerSize: function datepickerSize() { + return this.datepicker && this.datepicker.size ? this.datepicker.size : this.size; + }, + timepickerSize: function timepickerSize() { + return this.timepicker && this.timepicker.size ? this.timepicker.size : this.size; + }, + timepickerDisabled: function timepickerDisabled() { + return this.timepicker && this.timepicker.disabled ? this.timepicker.disabled : this.disabled; + } + }, + watch: { + value: function value(val) { + this.newValue = this.adjustValue(this.value); + }, + tzOffset: function tzOffset(val) { + this.newValue = this.adjustValue(this.value); + } + }, + methods: { + enableSeconds: function enableSeconds() { + if (this.$refs.timepicker) { + return this.$refs.timepicker.enableSeconds; + } + + return false; + }, + isHourFormat24: function isHourFormat24() { + if (this.$refs.timepicker) { + return this.$refs.timepicker.isHourFormat24; + } + + return !this.localeOptions.hour12; + }, + adjustValue: function adjustValue(value) { + var reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + if (!value) return value; + + if (reverse) { + return new Date(value.getTime() - this.tzOffset * 60000); + } else { + return new Date(value.getTime() + this.tzOffset * 60000); + } + }, + defaultDatetimeParser: function defaultDatetimeParser(date) { + if (typeof this.datetimeParser === 'function') { + return this.datetimeParser(date); + } else if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatetimeParser === 'function') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatetimeParser(date); + } else { + if (this.dtf.formatToParts && typeof this.dtf.formatToParts === 'function') { + var dayPeriods = [AM, PM, AM.toLowerCase(), PM.toLowerCase()]; + + if (this.$refs.timepicker) { + dayPeriods.push(this.$refs.timepicker.amString); + dayPeriods.push(this.$refs.timepicker.pmString); + } + + var parts = this.dtf.formatToParts(new Date()); + var formatRegex = parts.map(function (part, idx) { + if (part.type === 'literal') { + if (idx + 1 < parts.length && parts[idx + 1].type === 'hour') { + return "[^\\d]+"; + } + + return part.value.replace(/ /g, '\\s?'); + } else if (part.type === 'dayPeriod') { + return "((?!=<".concat(part.type, ">)(").concat(dayPeriods.join('|'), ")?)"); + } + + return "((?!=<".concat(part.type, ">)\\d+)"); + }).join(''); + var datetimeGroups = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["matchWithGroups"])(formatRegex, date); // We do a simple validation for the group. + // If it is not valid, it will fallback to Date.parse below + + if (datetimeGroups.year && datetimeGroups.year.length === 4 && datetimeGroups.month && datetimeGroups.month <= 12 && datetimeGroups.day && datetimeGroups.day <= 31 && datetimeGroups.hour && datetimeGroups.hour >= 0 && datetimeGroups.hour < 24 && datetimeGroups.minute && datetimeGroups.minute >= 0 && datetimeGroups.minute < 59) { + var d = new Date(datetimeGroups.year, datetimeGroups.month - 1, datetimeGroups.day, datetimeGroups.hour, datetimeGroups.minute, datetimeGroups.second || 0); + return d; + } + } + + return new Date(Date.parse(date)); + } + }, + defaultDatetimeFormatter: function defaultDatetimeFormatter(date) { + if (typeof this.datetimeFormatter === 'function') { + return this.datetimeFormatter(date); + } else if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatetimeFormatter === 'function') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDatetimeFormatter(date); + } else { + return this.dtf.format(date); + } + }, + + /* + * Parse date from string + */ + onChangeNativePicker: function onChangeNativePicker(event) { + var date = event.target.value; + var s = date ? date.split(/\D/) : []; + + if (s.length >= 5) { + var year = parseInt(s[0], 10); + var month = parseInt(s[1], 10) - 1; + var day = parseInt(s[2], 10); + var hours = parseInt(s[3], 10); + var minutes = parseInt(s[4], 10); // Seconds are omitted intentionally; they are unsupported by input + // type=datetime-local and cause the control to fail native validation + + this.computedValue = new Date(year, month, day, hours, minutes); + } else { + this.computedValue = null; + } + }, + formatNative: function formatNative(value) { + var date = new Date(value); + + if (value && !isNaN(date)) { + var year = date.getFullYear(); + var month = date.getMonth() + 1; + var day = date.getDate(); + var hours = date.getHours(); + var minutes = date.getMinutes(); + var seconds = date.getSeconds(); + return year + '-' + ((month < 10 ? '0' : '') + month) + '-' + ((day < 10 ? '0' : '') + day) + 'T' + ((hours < 10 ? '0' : '') + hours) + ':' + ((minutes < 10 ? '0' : '') + minutes) + ':' + ((seconds < 10 ? '0' : '') + seconds); + } + + return ''; + }, + toggle: function toggle() { + this.$refs.datepicker.toggle(); + } + }, + mounted: function mounted() { + if (!this.isMobile || this.inline) { + // $refs attached, it's time to refresh datepicker (input) + if (this.newValue) { + this.$refs.datepicker.$forceUpdate(); + } + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.isMobile || _vm.inline)?_c('b-datepicker',_vm._b({ref:"datepicker",attrs:{"open-on-focus":_vm.openOnFocus,"position":_vm.position,"loading":_vm.loading,"inline":_vm.inline,"editable":_vm.editable,"expanded":_vm.expanded,"close-on-click":false,"date-formatter":_vm.defaultDatetimeFormatter,"date-parser":_vm.defaultDatetimeParser,"min-date":_vm.minDate,"max-date":_vm.maxDate,"icon":_vm.icon,"icon-pack":_vm.iconPack,"size":_vm.datepickerSize,"placeholder":_vm.placeholder,"horizontal-time-picker":_vm.horizontalTimePicker,"range":false,"disabled":_vm.disabled,"mobile-native":_vm.isMobileNative,"locale":_vm.locale,"focusable":_vm.focusable,"append-to-body":_vm.appendToBody},on:{"focus":_vm.onFocus,"blur":_vm.onBlur,"change-month":function($event){return _vm.$emit('change-month', $event)},"change-year":function($event){return _vm.$emit('change-year', $event)}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}},'b-datepicker',_vm.datepicker,false),[_c('nav',{staticClass:"level is-mobile"},[(_vm.$slots.left !== undefined)?_c('div',{staticClass:"level-item has-text-centered"},[_vm._t("left")],2):_vm._e(),_c('div',{staticClass:"level-item has-text-centered"},[_c('b-timepicker',_vm._b({ref:"timepicker",attrs:{"inline":"","editable":_vm.editable,"min-time":_vm.minTime,"max-time":_vm.maxTime,"size":_vm.timepickerSize,"disabled":_vm.timepickerDisabled,"focusable":_vm.focusable,"mobile-native":_vm.isMobileNative,"locale":_vm.locale},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}},'b-timepicker',_vm.timepicker,false))],1),(_vm.$slots.right !== undefined)?_c('div',{staticClass:"level-item has-text-centered"},[_vm._t("right")],2):_vm._e()])]):_c('b-input',_vm._b({ref:"input",attrs:{"type":"datetime-local","autocomplete":"off","value":_vm.formatNative(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"max":_vm.formatNative(_vm.maxDate),"min":_vm.formatNative(_vm.minDate),"disabled":_vm.disabled,"readonly":false,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":_vm.onFocus,"blur":_vm.onBlur},nativeOn:{"change":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Datetimepicker = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, Datetimepicker); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/dialog.js": +/*!***********************************************!*\ + !*** ./node_modules/buefy/dist/esm/dialog.js ***! + \***********************************************/ +/*! exports provided: default, BDialog, DialogProgrammatic */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BDialog", function() { return Dialog; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DialogProgrammatic", function() { return DialogProgrammatic; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-42f463e6.js */ "./node_modules/buefy/dist/esm/chunk-42f463e6.js"); +/* harmony import */ var _chunk_e6c2853b_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-e6c2853b.js */ "./node_modules/buefy/dist/esm/chunk-e6c2853b.js"); + + + + + + + + +var script = { + name: 'BDialog', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"]), + directives: { + trapFocus: _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_5__["t"] + }, + extends: _chunk_e6c2853b_js__WEBPACK_IMPORTED_MODULE_6__["M"], + props: { + title: String, + message: String, + icon: String, + iconPack: String, + hasIcon: Boolean, + type: { + type: String, + default: 'is-primary' + }, + size: String, + confirmText: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDialogConfirmText ? _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDialogConfirmText : 'OK'; + } + }, + cancelText: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDialogCancelText ? _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultDialogCancelText : 'Cancel'; + } + }, + hasInput: Boolean, + // Used internally to know if it's prompt + inputAttrs: { + type: Object, + default: function _default() { + return {}; + } + }, + onConfirm: { + type: Function, + default: function _default() {} + }, + closeOnConfirm: { + type: Boolean, + default: true + }, + container: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultContainerElement; + } + }, + focusOn: { + type: String, + default: 'confirm' + }, + trapFocus: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultTrapFocus; + } + }, + ariaRole: { + type: String, + validator: function validator(value) { + return ['dialog', 'alertdialog'].indexOf(value) >= 0; + } + }, + ariaModal: Boolean + }, + data: function data() { + var prompt = this.hasInput ? this.inputAttrs.value || '' : ''; + return { + prompt: prompt, + isActive: false, + validationMessage: '' + }; + }, + computed: { + dialogClass: function dialogClass() { + return [this.size, { + 'has-custom-container': this.container !== null + }]; + }, + + /** + * Icon name (MDI) based on the type. + */ + iconByType: function iconByType() { + switch (this.type) { + case 'is-info': + return 'information'; + + case 'is-success': + return 'check-circle'; + + case 'is-warning': + return 'alert'; + + case 'is-danger': + return 'alert-circle'; + + default: + return null; + } + }, + showCancel: function showCancel() { + return this.cancelOptions.indexOf('button') >= 0; + } + }, + methods: { + /** + * If it's a prompt Dialog, validate the input. + * Call the onConfirm prop (function) and close the Dialog. + */ + confirm: function confirm() { + var _this = this; + + if (this.$refs.input !== undefined) { + if (!this.$refs.input.checkValidity()) { + this.validationMessage = this.$refs.input.validationMessage; + this.$nextTick(function () { + return _this.$refs.input.select(); + }); + return; + } + } + + this.$emit('confirm', this.prompt); + this.onConfirm(this.prompt, this); + if (this.closeOnConfirm) this.close(); + }, + + /** + * Close the Dialog. + */ + close: function close() { + var _this2 = this; + + this.isActive = false; // Timeout for the animation complete before destroying + + setTimeout(function () { + _this2.$destroy(); + + Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["removeElement"])(_this2.$el); + }, 150); + } + }, + beforeMount: function beforeMount() { + var _this3 = this; + + // Insert the Dialog component in the element container + if (typeof window !== 'undefined') { + this.$nextTick(function () { + var container = document.querySelector(_this3.container) || document.body; + container.appendChild(_this3.$el); + }); + } + }, + mounted: function mounted() { + var _this4 = this; + + this.isActive = true; + + if (typeof this.inputAttrs.required === 'undefined') { + this.$set(this.inputAttrs, 'required', true); + } + + this.$nextTick(function () { + // Handle which element receives focus + if (_this4.hasInput) { + _this4.$refs.input.focus(); + } else if (_this4.focusOn === 'cancel' && _this4.showCancel) { + _this4.$refs.cancelButton.focus(); + } else { + _this4.$refs.confirmButton.focus(); + } + }); + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[(_vm.isActive)?_c('div',{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:(_vm.trapFocus),expression:"trapFocus"}],staticClass:"dialog modal is-active",class:_vm.dialogClass,attrs:{"role":_vm.ariaRole,"aria-modal":_vm.ariaModal}},[_c('div',{staticClass:"modal-background",on:{"click":function($event){return _vm.cancel('outside')}}}),_c('div',{staticClass:"modal-card animation-content"},[(_vm.title)?_c('header',{staticClass:"modal-card-head"},[_c('p',{staticClass:"modal-card-title"},[_vm._v(_vm._s(_vm.title))])]):_vm._e(),_c('section',{staticClass:"modal-card-body",class:{ 'is-titleless': !_vm.title, 'is-flex': _vm.hasIcon }},[_c('div',{staticClass:"media"},[(_vm.hasIcon && (_vm.icon || _vm.iconByType))?_c('div',{staticClass:"media-left"},[_c('b-icon',{attrs:{"icon":_vm.icon ? _vm.icon : _vm.iconByType,"pack":_vm.iconPack,"type":_vm.type,"both":!_vm.icon,"size":"is-large"}})],1):_vm._e(),_c('div',{staticClass:"media-content"},[_c('p',[(_vm.$slots.default)?[_vm._t("default")]:[_vm._v(" "+_vm._s(_vm.message)+" ")]],2),(_vm.hasInput)?_c('div',{staticClass:"field"},[_c('div',{staticClass:"control"},[(((_vm.inputAttrs).type)==='checkbox')?_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.prompt),expression:"prompt"}],ref:"input",staticClass:"input",class:{ 'is-danger': _vm.validationMessage },attrs:{"type":"checkbox"},domProps:{"checked":Array.isArray(_vm.prompt)?_vm._i(_vm.prompt,null)>-1:(_vm.prompt)},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.confirm($event)},"change":function($event){var $$a=_vm.prompt,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.prompt=$$a.concat([$$v]));}else{$$i>-1&&(_vm.prompt=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.prompt=$$c;}}}},'input',_vm.inputAttrs,false)):(((_vm.inputAttrs).type)==='radio')?_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.prompt),expression:"prompt"}],ref:"input",staticClass:"input",class:{ 'is-danger': _vm.validationMessage },attrs:{"type":"radio"},domProps:{"checked":_vm._q(_vm.prompt,null)},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.confirm($event)},"change":function($event){_vm.prompt=null;}}},'input',_vm.inputAttrs,false)):_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.prompt),expression:"prompt"}],ref:"input",staticClass:"input",class:{ 'is-danger': _vm.validationMessage },attrs:{"type":(_vm.inputAttrs).type},domProps:{"value":(_vm.prompt)},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.confirm($event)},"input":function($event){if($event.target.composing){ return; }_vm.prompt=$event.target.value;}}},'input',_vm.inputAttrs,false))]),_c('p',{staticClass:"help is-danger"},[_vm._v(_vm._s(_vm.validationMessage))])]):_vm._e()])])]),_c('footer',{staticClass:"modal-card-foot"},[(_vm.showCancel)?_c('button',{ref:"cancelButton",staticClass:"button",on:{"click":function($event){return _vm.cancel('button')}}},[_vm._v(_vm._s(_vm.cancelText))]):_vm._e(),_c('button',{ref:"confirmButton",staticClass:"button",class:_vm.type,on:{"click":_vm.confirm}},[_vm._v(_vm._s(_vm.confirmText))])])])]):_vm._e()])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Dialog = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var localVueInstance; + +function open(propsData) { + var slot = propsData.message; + delete propsData.message; + var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["V"]; + var DialogComponent = vm.extend(Dialog); + var component = new DialogComponent({ + el: document.createElement('div'), + propsData: propsData + }); + + if (slot) { + component.$slots.default = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["toVDom"])(slot, component.$createElement); + component.$forceUpdate(); + } + + if (!_chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultProgrammaticPromise) { + return component; + } else { + return new Promise(function (resolve) { + component.$on('confirm', function (event) { + return resolve({ + result: event || true, + dialog: component + }); + }); + component.$on('cancel', function () { + return resolve({ + result: false, + dialog: component + }); + }); + }); + } +} + +var DialogProgrammatic = { + alert: function alert(params) { + if (typeof params === 'string') { + params = { + message: params + }; + } + + var defaultParam = { + canCancel: false + }; + var propsData = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(defaultParam, params); + return open(propsData); + }, + confirm: function confirm(params) { + var defaultParam = {}; + var propsData = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(defaultParam, params); + return open(propsData); + }, + prompt: function prompt(params) { + var defaultParam = { + hasInput: true, + confirmText: 'Done' + }; + var propsData = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(defaultParam, params); + return open(propsData); + } +}; +var Plugin = { + install: function install(Vue) { + localVueInstance = Vue; + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, Dialog); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["a"])(Vue, 'dialog', DialogProgrammatic); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/dropdown.js": +/*!*************************************************!*\ + !*** ./node_modules/buefy/dist/esm/dropdown.js ***! + \*************************************************/ +/*! exports provided: BDropdown, BDropdownItem, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); +/* harmony import */ var _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-42f463e6.js */ "./node_modules/buefy/dist/esm/chunk-42f463e6.js"); +/* harmony import */ var _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-ddbc6c47.js */ "./node_modules/buefy/dist/esm/chunk-ddbc6c47.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BDropdown", function() { return _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_6__["D"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BDropdownItem", function() { return _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_6__["a"]; }); + + + + + + + + + + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["r"])(Vue, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_6__["D"]); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["r"])(Vue, _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_6__["a"]); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/field.js": +/*!**********************************************!*\ + !*** ./node_modules/buefy/dist/esm/field.js ***! + \**********************************************/ +/*! exports provided: BField, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-91a2d037.js */ "./node_modules/buefy/dist/esm/chunk-91a2d037.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BField", function() { return _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_3__["F"]; }); + + + + + + + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__["r"])(Vue, _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_3__["F"]); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/helpers.js": +/*!************************************************!*\ + !*** ./node_modules/buefy/dist/esm/helpers.js ***! + \************************************************/ +/*! exports provided: bound, createAbsoluteElement, createNewEvent, escapeRegExpChars, getMonthNames, getValueByPath, getWeekdayNames, hasFlag, indexOf, isCustomElement, isMobile, isVueComponent, isWebpSupported, matchWithGroups, merge, mod, multiColumnSort, removeElement, sign, toCssWidth, toVDom */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bound", function() { return bound; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createAbsoluteElement", function() { return createAbsoluteElement; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createNewEvent", function() { return createNewEvent; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeRegExpChars", function() { return escapeRegExpChars; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMonthNames", function() { return getMonthNames; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueByPath", function() { return getValueByPath; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWeekdayNames", function() { return getWeekdayNames; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasFlag", function() { return hasFlag; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "indexOf", function() { return indexOf; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCustomElement", function() { return isCustomElement; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMobile", function() { return isMobile; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isVueComponent", function() { return isVueComponent; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isWebpSupported", function() { return isWebpSupported; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "matchWithGroups", function() { return matchWithGroups; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mod", function() { return mod; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "multiColumnSort", function() { return multiColumnSort; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeElement", function() { return removeElement; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sign", function() { return sign; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toCssWidth", function() { return toCssWidth; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toVDom", function() { return toVDom; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); + + +/** + * +/- function to native math sign + */ +function signPoly(value) { + if (value < 0) return -1; + return value > 0 ? 1 : 0; +} + +var sign = Math.sign || signPoly; +/** + * Checks if the flag is set + * @param val + * @param flag + * @returns {boolean} + */ + +function hasFlag(val, flag) { + return (val & flag) === flag; +} +/** + * Native modulo bug with negative numbers + * @param n + * @param mod + * @returns {number} + */ + + +function mod(n, mod) { + return (n % mod + mod) % mod; +} +/** + * Asserts a value is beetween min and max + * @param val + * @param min + * @param max + * @returns {number} + */ + + +function bound(val, min, max) { + return Math.max(min, Math.min(max, val)); +} +/** + * Get value of an object property/path even if it's nested + */ + +function getValueByPath(obj, path) { + return path.split('.').reduce(function (o, i) { + return o ? o[i] : null; + }, obj); +} +/** + * Extension of indexOf method by equality function if specified + */ + +function indexOf(array, obj, fn) { + if (!array) return -1; + if (!fn || typeof fn !== 'function') return array.indexOf(obj); + + for (var i = 0; i < array.length; i++) { + if (fn(array[i], obj)) { + return i; + } + } + + return -1; +} +/** + * Merge function to replace Object.assign with deep merging possibility + */ + +var isObject = function isObject(item) { + return Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["b"])(item) === 'object' && !Array.isArray(item); +}; + +var mergeFn = function mergeFn(target, source) { + var deep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + + if (deep || !Object.assign) { + var isDeep = function isDeep(prop) { + return isObject(source[prop]) && target !== null && target.hasOwnProperty(prop) && isObject(target[prop]); + }; + + var replaced = Object.getOwnPropertyNames(source).map(function (prop) { + return Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, prop, isDeep(prop) ? mergeFn(target[prop], source[prop], deep) : source[prop]); + }).reduce(function (a, b) { + return Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["a"])({}, a, {}, b); + }, {}); + return Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["a"])({}, target, {}, replaced); + } else { + return Object.assign(target, source); + } +}; + +var merge = mergeFn; +/** + * Mobile detection + * https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript + */ + +var isMobile = { + Android: function Android() { + return typeof window !== 'undefined' && window.navigator.userAgent.match(/Android/i); + }, + BlackBerry: function BlackBerry() { + return typeof window !== 'undefined' && window.navigator.userAgent.match(/BlackBerry/i); + }, + iOS: function iOS() { + return typeof window !== 'undefined' && window.navigator.userAgent.match(/iPhone|iPad|iPod/i); + }, + Opera: function Opera() { + return typeof window !== 'undefined' && window.navigator.userAgent.match(/Opera Mini/i); + }, + Windows: function Windows() { + return typeof window !== 'undefined' && window.navigator.userAgent.match(/IEMobile/i); + }, + any: function any() { + return isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows(); + } +}; +function removeElement(el) { + if (typeof el.remove !== 'undefined') { + el.remove(); + } else if (typeof el.parentNode !== 'undefined' && el.parentNode !== null) { + el.parentNode.removeChild(el); + } +} +function createAbsoluteElement(el) { + var root = document.createElement('div'); + root.style.position = 'absolute'; + root.style.left = '0px'; + root.style.top = '0px'; + var wrapper = document.createElement('div'); + root.appendChild(wrapper); + wrapper.appendChild(el); + document.body.appendChild(root); + return root; +} +function isVueComponent(c) { + return c && c._isVue; +} +/** + * Escape regex characters + * http://stackoverflow.com/a/6969486 + */ + +function escapeRegExpChars(value) { + if (!value) return value; // eslint-disable-next-line + + return value.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); +} +function multiColumnSort(inputArray, sortingPriority) { + // clone it to prevent the any watchers from triggering every sorting iteration + var array = JSON.parse(JSON.stringify(inputArray)); + + var fieldSorter = function fieldSorter(fields) { + return function (a, b) { + return fields.map(function (o) { + var dir = 1; + + if (o[0] === '-') { + dir = -1; + o = o.substring(1); + } + + return a[o] > b[o] ? dir : a[o] < b[o] ? -dir : 0; + }).reduce(function (p, n) { + return p || n; + }, 0); + }; + }; + + return array.sort(fieldSorter(sortingPriority)); +} +function createNewEvent(eventName) { + var event; + + if (typeof Event === 'function') { + event = new Event(eventName); + } else { + event = document.createEvent('Event'); + event.initEvent(eventName, true, true); + } + + return event; +} +function toCssWidth(width) { + return width === undefined ? null : isNaN(width) ? width : width + 'px'; +} +/** + * Return month names according to a specified locale + * @param {String} locale A bcp47 localerouter. undefined will use the user browser locale + * @param {String} format long (ex. March), short (ex. Mar) or narrow (M) + * @return {Array} An array of month names + */ + +function getMonthNames() { + var locale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; + var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'long'; + var dates = []; + + for (var i = 0; i < 12; i++) { + dates.push(new Date(2000, i, 15)); + } + + var dtf = new Intl.DateTimeFormat(locale, { + month: format, + timezome: 'UTC' + }); + return dates.map(function (d) { + return dtf.format(d); + }); +} +/** + * Return weekday names according to a specified locale + * @param {String} locale A bcp47 localerouter. undefined will use the user browser locale + * @param {Number} first day of week index + * @param {String} format long (ex. Thursday), short (ex. Thu) or narrow (T) + * @return {Array} An array of weekday names + */ + +function getWeekdayNames() { + var locale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; + var firstDayOfWeek = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'narrow'; + var dates = []; + + for (var i = 1, j = 0; j < 7; i++) { + var d = new Date(Date.UTC(2000, 0, i)); + var day = d.getUTCDay(); + + if (day === firstDayOfWeek + 1 || j > 0) { + dates.push(d); + j++; + } + } + + var dtf = new Intl.DateTimeFormat(locale, { + weekday: format, + timezome: 'UTC' + }); + return dates.map(function (d) { + return dtf.format(d); + }); +} +/** + * Accept a regex with group names and return an object + * ex. matchWithGroups(/((?!=)\d+)\/((?!=)\d+)\/((?!=)\d+)/, '2000/12/25') + * will return { year: 2000, month: 12, day: 25 } + * @param {String} includes injections of (?!={groupname}) for each group + * @param {String} the string to run regex + * @return {Object} an object with a property for each group having the group's match as the value + */ + +function matchWithGroups(pattern, str) { + var matches = str.match(pattern); + return pattern // get the pattern as a string + .toString() // suss out the groups + .match(/<(.+?)>/g) // remove the braces + .map(function (group) { + var groupMatches = group.match(/<(.+)>/); + + if (!groupMatches || groupMatches.length <= 0) { + return null; + } + + return group.match(/<(.+)>/)[1]; + }) // create an object with a property for each group having the group's match as the value + .reduce(function (acc, curr, index, arr) { + if (matches && matches.length > index) { + acc[curr] = matches[index + 1]; + } else { + acc[curr] = null; + } + + return acc; + }, {}); +} +/** + * Based on + * https://github.com/fregante/supports-webp + */ + +function isWebpSupported() { + return new Promise(function (resolve) { + var image = new Image(); + + image.onerror = function () { + return resolve(false); + }; + + image.onload = function () { + return resolve(image.width === 1); + }; + + image.src = 'data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA='; + }).catch(function () { + return false; + }); +} +function isCustomElement(vm) { + return 'shadowRoot' in vm.$root.$options; +} +function toVDom(html, createElement) { + var doc = new DOMParser().parseFromString(html, 'text/html'); + var root = doc.body.firstChild; + + var create = function create(node, createElement, acc) { + var siblings = []; + var sibling = node.nextSibling; + + while (sibling) { + if (sibling.tagName) { + var _children = []; + var childNodes = sibling.childNodes; + + for (var i = 0; i < childNodes.length; i++) { + var childNode = childNodes[i]; + + if (childNode.tagName) { + create(childNode, createElement, _children); + } else { + _children.push(childNode.textContent); + } + } + + siblings.push(createElement(sibling.tagName, {}, [].concat(_children))); + } else { + siblings.push(sibling.textContent); + } + + sibling = sibling.nextSibling; + } + + var children = []; + + if (node.tagName) { + var _childNodes = node.childNodes; + + for (var _i = 0; _i < _childNodes.length; _i++) { + var _childNode = _childNodes[_i]; + + if (_childNode.tagName) { + create(_childNode, createElement, children); + } else { + children.push(_childNode.textContent); + } + } + } + + acc.push(createElement(node.tagName || 'div', {}, [node.textContent].concat(children, siblings))); + }; + + var nodes = []; + create(root, createElement, nodes); + return nodes; +} + + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/icon.js": +/*!*********************************************!*\ + !*** ./node_modules/buefy/dist/esm/icon.js ***! + \*********************************************/ +/*! exports provided: BIcon, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BIcon", function() { return _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"]; }); + +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + + + + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"]); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/image.js": +/*!**********************************************!*\ + !*** ./node_modules/buefy/dist/esm/image.js ***! + \**********************************************/ +/*! exports provided: default, BImage */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BImage", function() { return Image; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + + +// +var script = { + name: 'BImage', + props: { + src: String, + webpFallback: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultImageWebpFallback; + } + }, + lazy: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultImageLazy; + } + }, + responsive: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultImageResponsive; + } + }, + ratio: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultImageRatio; + } + }, + placeholder: String, + srcset: String, + srcsetSizes: Array, + srcsetFormatter: { + type: Function, + default: function _default(src, size, vm) { + if (typeof _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultImageSrcsetFormatter === 'function') { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultImageSrcsetFormatter(src, size); + } else { + return vm.formatSrcset(src, size); + } + } + }, + rounded: { + type: Boolean, + default: false + } + }, + data: function data() { + return { + clientWidth: 0, + webpSupportVerified: false, + webpSupported: false, + observer: null, + inViewPort: false, + bulmaKnownRatio: ['square', '1by1', '5by4', '4by3', '3by2', '5by3', '16by9', 'b2y1', '3by1', '4by5', '3by4', '2by3', '3by5', '9by16', '1by2', '1by3'], + loaded: false + }; + }, + computed: { + ratioPattern: function ratioPattern() { + return new RegExp(/([0-9]+)by([0-9]+)/); + }, + hasRatio: function hasRatio() { + return this.ratio && this.ratioPattern.test(this.ratio); + }, + figureClasses: function figureClasses() { + var classes = { + image: this.responsive + }; + + if (this.hasRatio && this.bulmaKnownRatio.indexOf(this.ratio) >= 0) { + classes["is-".concat(this.ratio)] = true; + } + + return classes; + }, + figureStyles: function figureStyles() { + if (this.hasRatio && this.bulmaKnownRatio.indexOf(this.ratio) < 0) { + var ratioValues = this.ratioPattern.exec(this.ratio); + return { + paddingTop: "".concat(ratioValues[2] / ratioValues[1] * 100, "%") + }; + } + }, + imgClasses: function imgClasses() { + return { + 'is-rounded': this.rounded, + 'has-ratio': this.hasRatio + }; + }, + srcExt: function srcExt() { + return this.getExt(this.src); + }, + isWepb: function isWepb() { + return this.srcExt === 'webp'; + }, + computedSrc: function computedSrc() { + if (!this.webpSupported && this.isWepb && this.webpFallback) { + if (this.webpFallback.startsWith('.')) { + return this.src.replace(/\.webp/gi, "".concat(this.webpFallback)); + } + + return this.webpFallback; + } + + return this.src; + }, + computedWidth: function computedWidth() { + if (this.responsive && this.clientWidth > 0) { + return this.clientWidth; + } + }, + isDisplayed: function isDisplayed() { + return (this.webpSupportVerified || !this.isWepb) && (this.inViewPort || !this.lazy); + }, + placeholderExt: function placeholderExt() { + if (this.placeholder) { + return this.getExt(this.placeholder); + } + }, + isPlaceholderWepb: function isPlaceholderWepb() { + if (this.placeholder) { + return this.placeholderExt === 'webp'; + } + }, + computedPlaceholder: function computedPlaceholder() { + if (!this.webpSupported && this.isPlaceholderWepb && this.webpFallback && this.webpFallback.startsWith('.')) { + return this.placeholder.replace(/\.webp/gi, "".concat(this.webpFallback)); + } + + return this.placeholder; + }, + isPlaceholderDisplayed: function isPlaceholderDisplayed() { + return !this.loaded && (this.$slots.placeholder || this.placeholder && (this.webpSupportVerified || !this.isPlaceholderWepb)); + }, + computedSrcset: function computedSrcset() { + var _this = this; + + if (this.srcset) { + if (!this.webpSupported && this.isWepb && this.webpFallback && this.webpFallback.startsWith('.')) { + return this.srcset.replace(/\.webp/gi, "".concat(this.webpFallback)); + } + + return this.srcset; + } + + if (this.srcsetSizes && Array.isArray(this.srcsetSizes) && this.srcsetSizes.length > 0) { + return this.srcsetSizes.map(function (size) { + return "".concat(_this.srcsetFormatter(_this.computedSrc, size, _this), " ").concat(size, "w"); + }).join(','); + } + }, + computedSizes: function computedSizes() { + if (this.computedSrcset && this.computedWidth) { + return "".concat(this.computedWidth, "px"); + } + } + }, + methods: { + getExt: function getExt(filename) { + var clean = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + + if (filename) { + var noParam = clean ? filename.split('?')[0] : filename; + return noParam.split('.').pop(); + } + + return ''; + }, + setWidth: function setWidth() { + this.clientWidth = this.$el.clientWidth; + }, + formatSrcset: function formatSrcset(src, size) { + var ext = this.getExt(src, false); + var name = src.split('.').slice(0, -1).join('.'); + return "".concat(name, "-").concat(size, ".").concat(ext); + }, + onLoad: function onLoad(event) { + this.loaded = true; + var target = event.target; + this.$emit('load', event, target.currentSrc || target.src || this.computedSrc); + } + }, + created: function created() { + var _this2 = this; + + if (this.isWepb) { + Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["isWebpSupported"])().then(function (supported) { + _this2.webpSupportVerified = true; + _this2.webpSupported = supported; + }); + } + + if (this.lazy && typeof window !== 'undefined' && 'IntersectionObserver' in window) { + this.observer = new IntersectionObserver(function (events) { + var _events$ = events[0], + target = _events$.target, + isIntersecting = _events$.isIntersecting; + + if (isIntersecting && !_this2.inViewPort) { + _this2.inViewPort = true; + + _this2.observer.unobserve(target); + } + }); + } + }, + mounted: function mounted() { + if (this.lazy && this.observer) { + this.observer.observe(this.$el); + } + + this.setWidth(); + + if (typeof window !== 'undefined') { + window.addEventListener('resize', this.setWidth); + } + }, + beforeDestroy: function beforeDestroy() { + if (this.observer) { + this.observer.disconnect(); + } + + if (typeof window !== 'undefined') { + window.removeEventListener('resize', this.setWidth); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('figure',{staticClass:"b-image-wrapper",class:_vm.figureClasses,style:(_vm.figureStyles)},[_c('transition',{attrs:{"name":"fade"}},[(_vm.isDisplayed)?_c('img',{class:_vm.imgClasses,attrs:{"srcset":_vm.computedSrcset,"src":_vm.computedSrc,"width":_vm.computedWidth,"sizes":_vm.computedSizes},on:{"load":_vm.onLoad}}):_vm._e()]),_c('transition',{attrs:{"name":"fade"}},[(_vm.isPlaceholderDisplayed)?_vm._t("placeholder",[_c('img',{staticClass:"placeholder",class:_vm.imgClasses,attrs:{"src":_vm.computedPlaceholder}})]):_vm._e()],2)],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Image = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["r"])(Vue, Image); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/index.js": +/*!**********************************************!*\ + !*** ./node_modules/buefy/dist/esm/index.js ***! + \**********************************************/ +/*! exports provided: bound, createAbsoluteElement, createNewEvent, escapeRegExpChars, getMonthNames, getValueByPath, getWeekdayNames, hasFlag, indexOf, isCustomElement, isMobile, isVueComponent, isWebpSupported, matchWithGroups, merge, mod, multiColumnSort, removeElement, sign, toCssWidth, toVDom, Autocomplete, Button, Carousel, Checkbox, Collapse, Clockpicker, Datepicker, Datetimepicker, Dialog, DialogProgrammatic, Dropdown, Field, Icon, Image, Input, Loading, LoadingProgrammatic, Menu, Message, Modal, ModalProgrammatic, Notification, NotificationProgrammatic, Navbar, Numberinput, Pagination, Progress, Radio, Rate, Select, Skeleton, Sidebar, Slider, Snackbar, SnackbarProgrammatic, Steps, Switch, Table, Tabs, Tag, Taginput, Timepicker, Toast, ToastProgrammatic, Tooltip, Upload, default, ConfigProgrammatic */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigProgrammatic", function() { return ConfigComponent; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bound", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["bound"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createAbsoluteElement", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["createAbsoluteElement"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createNewEvent", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["createNewEvent"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeRegExpChars", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["escapeRegExpChars"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMonthNames", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["getMonthNames"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getValueByPath", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["getValueByPath"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getWeekdayNames", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["getWeekdayNames"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasFlag", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["hasFlag"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "indexOf", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isCustomElement", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["isCustomElement"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isMobile", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["isMobile"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isVueComponent", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["isVueComponent"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isWebpSupported", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["isWebpSupported"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matchWithGroups", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["matchWithGroups"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mod", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["mod"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "multiColumnSort", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["multiColumnSort"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "removeElement", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["removeElement"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sign", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["sign"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toCssWidth", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["toCssWidth"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toVDom", function() { return _helpers_js__WEBPACK_IMPORTED_MODULE_1__["toVDom"]; }); + +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony import */ var _chunk_aa09eaac_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-aa09eaac.js */ "./node_modules/buefy/dist/esm/chunk-aa09eaac.js"); +/* harmony import */ var _autocomplete_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./autocomplete.js */ "./node_modules/buefy/dist/esm/autocomplete.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return _autocomplete_js__WEBPACK_IMPORTED_MODULE_8__["default"]; }); + +/* harmony import */ var _button_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./button.js */ "./node_modules/buefy/dist/esm/button.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _button_js__WEBPACK_IMPORTED_MODULE_9__["default"]; }); + +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); +/* harmony import */ var _carousel_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./carousel.js */ "./node_modules/buefy/dist/esm/carousel.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Carousel", function() { return _carousel_js__WEBPACK_IMPORTED_MODULE_11__["default"]; }); + +/* harmony import */ var _chunk_2793447b_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./chunk-2793447b.js */ "./node_modules/buefy/dist/esm/chunk-2793447b.js"); +/* harmony import */ var _chunk_d6bb2470_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./chunk-d6bb2470.js */ "./node_modules/buefy/dist/esm/chunk-d6bb2470.js"); +/* harmony import */ var _checkbox_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./checkbox.js */ "./node_modules/buefy/dist/esm/checkbox.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _checkbox_js__WEBPACK_IMPORTED_MODULE_14__["default"]; }); + +/* harmony import */ var _collapse_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./collapse.js */ "./node_modules/buefy/dist/esm/collapse.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Collapse", function() { return _collapse_js__WEBPACK_IMPORTED_MODULE_15__["default"]; }); + +/* harmony import */ var _chunk_5e460019_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./chunk-5e460019.js */ "./node_modules/buefy/dist/esm/chunk-5e460019.js"); +/* harmony import */ var _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./chunk-42f463e6.js */ "./node_modules/buefy/dist/esm/chunk-42f463e6.js"); +/* harmony import */ var _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./chunk-ddbc6c47.js */ "./node_modules/buefy/dist/esm/chunk-ddbc6c47.js"); +/* harmony import */ var _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./chunk-91a2d037.js */ "./node_modules/buefy/dist/esm/chunk-91a2d037.js"); +/* harmony import */ var _clockpicker_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./clockpicker.js */ "./node_modules/buefy/dist/esm/clockpicker.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Clockpicker", function() { return _clockpicker_js__WEBPACK_IMPORTED_MODULE_20__["default"]; }); + +/* harmony import */ var _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./chunk-97074b53.js */ "./node_modules/buefy/dist/esm/chunk-97074b53.js"); +/* harmony import */ var _chunk_27eb50a6_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./chunk-27eb50a6.js */ "./node_modules/buefy/dist/esm/chunk-27eb50a6.js"); +/* harmony import */ var _datepicker_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./datepicker.js */ "./node_modules/buefy/dist/esm/datepicker.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Datepicker", function() { return _datepicker_js__WEBPACK_IMPORTED_MODULE_23__["default"]; }); + +/* harmony import */ var _chunk_5e4db2f1_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./chunk-5e4db2f1.js */ "./node_modules/buefy/dist/esm/chunk-5e4db2f1.js"); +/* harmony import */ var _datetimepicker_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./datetimepicker.js */ "./node_modules/buefy/dist/esm/datetimepicker.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Datetimepicker", function() { return _datetimepicker_js__WEBPACK_IMPORTED_MODULE_25__["default"]; }); + +/* harmony import */ var _chunk_e6c2853b_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./chunk-e6c2853b.js */ "./node_modules/buefy/dist/esm/chunk-e6c2853b.js"); +/* harmony import */ var _dialog_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./dialog.js */ "./node_modules/buefy/dist/esm/dialog.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dialog", function() { return _dialog_js__WEBPACK_IMPORTED_MODULE_27__["default"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogProgrammatic", function() { return _dialog_js__WEBPACK_IMPORTED_MODULE_27__["DialogProgrammatic"]; }); + +/* harmony import */ var _dropdown_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./dropdown.js */ "./node_modules/buefy/dist/esm/dropdown.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _dropdown_js__WEBPACK_IMPORTED_MODULE_28__["default"]; }); + +/* harmony import */ var _field_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./field.js */ "./node_modules/buefy/dist/esm/field.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Field", function() { return _field_js__WEBPACK_IMPORTED_MODULE_29__["default"]; }); + +/* harmony import */ var _icon_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./icon.js */ "./node_modules/buefy/dist/esm/icon.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Icon", function() { return _icon_js__WEBPACK_IMPORTED_MODULE_30__["default"]; }); + +/* harmony import */ var _image_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./image.js */ "./node_modules/buefy/dist/esm/image.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Image", function() { return _image_js__WEBPACK_IMPORTED_MODULE_31__["default"]; }); + +/* harmony import */ var _input_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./input.js */ "./node_modules/buefy/dist/esm/input.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Input", function() { return _input_js__WEBPACK_IMPORTED_MODULE_32__["default"]; }); + +/* harmony import */ var _chunk_b9bdb0e4_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./chunk-b9bdb0e4.js */ "./node_modules/buefy/dist/esm/chunk-b9bdb0e4.js"); +/* harmony import */ var _chunk_7a49a152_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./chunk-7a49a152.js */ "./node_modules/buefy/dist/esm/chunk-7a49a152.js"); +/* harmony import */ var _loading_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./loading.js */ "./node_modules/buefy/dist/esm/loading.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Loading", function() { return _loading_js__WEBPACK_IMPORTED_MODULE_35__["default"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingProgrammatic", function() { return _loading_js__WEBPACK_IMPORTED_MODULE_35__["LoadingProgrammatic"]; }); + +/* harmony import */ var _menu_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./menu.js */ "./node_modules/buefy/dist/esm/menu.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Menu", function() { return _menu_js__WEBPACK_IMPORTED_MODULE_36__["default"]; }); + +/* harmony import */ var _chunk_6eb75eec_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./chunk-6eb75eec.js */ "./node_modules/buefy/dist/esm/chunk-6eb75eec.js"); +/* harmony import */ var _message_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./message.js */ "./node_modules/buefy/dist/esm/message.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Message", function() { return _message_js__WEBPACK_IMPORTED_MODULE_38__["default"]; }); + +/* harmony import */ var _modal_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./modal.js */ "./node_modules/buefy/dist/esm/modal.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return _modal_js__WEBPACK_IMPORTED_MODULE_39__["default"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalProgrammatic", function() { return _modal_js__WEBPACK_IMPORTED_MODULE_39__["ModalProgrammatic"]; }); + +/* harmony import */ var _notification_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./notification.js */ "./node_modules/buefy/dist/esm/notification.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return _notification_js__WEBPACK_IMPORTED_MODULE_40__["default"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationProgrammatic", function() { return _notification_js__WEBPACK_IMPORTED_MODULE_40__["NotificationProgrammatic"]; }); + +/* harmony import */ var _chunk_220749df_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./chunk-220749df.js */ "./node_modules/buefy/dist/esm/chunk-220749df.js"); +/* harmony import */ var _navbar_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./navbar.js */ "./node_modules/buefy/dist/esm/navbar.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Navbar", function() { return _navbar_js__WEBPACK_IMPORTED_MODULE_42__["default"]; }); + +/* harmony import */ var _numberinput_js__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./numberinput.js */ "./node_modules/buefy/dist/esm/numberinput.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Numberinput", function() { return _numberinput_js__WEBPACK_IMPORTED_MODULE_43__["default"]; }); + +/* harmony import */ var _chunk_5425f0a4_js__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./chunk-5425f0a4.js */ "./node_modules/buefy/dist/esm/chunk-5425f0a4.js"); +/* harmony import */ var _pagination_js__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./pagination.js */ "./node_modules/buefy/dist/esm/pagination.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pagination", function() { return _pagination_js__WEBPACK_IMPORTED_MODULE_45__["default"]; }); + +/* harmony import */ var _progress_js__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./progress.js */ "./node_modules/buefy/dist/esm/progress.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Progress", function() { return _progress_js__WEBPACK_IMPORTED_MODULE_46__["default"]; }); + +/* harmony import */ var _radio_js__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./radio.js */ "./node_modules/buefy/dist/esm/radio.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Radio", function() { return _radio_js__WEBPACK_IMPORTED_MODULE_47__["default"]; }); + +/* harmony import */ var _rate_js__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./rate.js */ "./node_modules/buefy/dist/esm/rate.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rate", function() { return _rate_js__WEBPACK_IMPORTED_MODULE_48__["default"]; }); + +/* harmony import */ var _select_js__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./select.js */ "./node_modules/buefy/dist/esm/select.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Select", function() { return _select_js__WEBPACK_IMPORTED_MODULE_49__["default"]; }); + +/* harmony import */ var _skeleton_js__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./skeleton.js */ "./node_modules/buefy/dist/esm/skeleton.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return _skeleton_js__WEBPACK_IMPORTED_MODULE_50__["default"]; }); + +/* harmony import */ var _sidebar_js__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./sidebar.js */ "./node_modules/buefy/dist/esm/sidebar.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sidebar", function() { return _sidebar_js__WEBPACK_IMPORTED_MODULE_51__["default"]; }); + +/* harmony import */ var _chunk_1252e7e2_js__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./chunk-1252e7e2.js */ "./node_modules/buefy/dist/esm/chunk-1252e7e2.js"); +/* harmony import */ var _slider_js__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./slider.js */ "./node_modules/buefy/dist/esm/slider.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return _slider_js__WEBPACK_IMPORTED_MODULE_53__["default"]; }); + +/* harmony import */ var _snackbar_js__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./snackbar.js */ "./node_modules/buefy/dist/esm/snackbar.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Snackbar", function() { return _snackbar_js__WEBPACK_IMPORTED_MODULE_54__["default"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SnackbarProgrammatic", function() { return _snackbar_js__WEBPACK_IMPORTED_MODULE_54__["SnackbarProgrammatic"]; }); + +/* harmony import */ var _chunk_8d37a17c_js__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./chunk-8d37a17c.js */ "./node_modules/buefy/dist/esm/chunk-8d37a17c.js"); +/* harmony import */ var _chunk_db739ac6_js__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./chunk-db739ac6.js */ "./node_modules/buefy/dist/esm/chunk-db739ac6.js"); +/* harmony import */ var _steps_js__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./steps.js */ "./node_modules/buefy/dist/esm/steps.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Steps", function() { return _steps_js__WEBPACK_IMPORTED_MODULE_57__["default"]; }); + +/* harmony import */ var _switch_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./switch.js */ "./node_modules/buefy/dist/esm/switch.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return _switch_js__WEBPACK_IMPORTED_MODULE_58__["default"]; }); + +/* harmony import */ var _table_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./table.js */ "./node_modules/buefy/dist/esm/table.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return _table_js__WEBPACK_IMPORTED_MODULE_59__["default"]; }); + +/* harmony import */ var _tabs_js__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./tabs.js */ "./node_modules/buefy/dist/esm/tabs.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return _tabs_js__WEBPACK_IMPORTED_MODULE_60__["default"]; }); + +/* harmony import */ var _chunk_fb315748_js__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./chunk-fb315748.js */ "./node_modules/buefy/dist/esm/chunk-fb315748.js"); +/* harmony import */ var _tag_js__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./tag.js */ "./node_modules/buefy/dist/esm/tag.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _tag_js__WEBPACK_IMPORTED_MODULE_62__["default"]; }); + +/* harmony import */ var _taginput_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./taginput.js */ "./node_modules/buefy/dist/esm/taginput.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Taginput", function() { return _taginput_js__WEBPACK_IMPORTED_MODULE_63__["default"]; }); + +/* harmony import */ var _timepicker_js__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./timepicker.js */ "./node_modules/buefy/dist/esm/timepicker.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Timepicker", function() { return _timepicker_js__WEBPACK_IMPORTED_MODULE_64__["default"]; }); + +/* harmony import */ var _toast_js__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./toast.js */ "./node_modules/buefy/dist/esm/toast.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Toast", function() { return _toast_js__WEBPACK_IMPORTED_MODULE_65__["default"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastProgrammatic", function() { return _toast_js__WEBPACK_IMPORTED_MODULE_65__["ToastProgrammatic"]; }); + +/* harmony import */ var _tooltip_js__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./tooltip.js */ "./node_modules/buefy/dist/esm/tooltip.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _tooltip_js__WEBPACK_IMPORTED_MODULE_66__["default"]; }); + +/* harmony import */ var _upload_js__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./upload.js */ "./node_modules/buefy/dist/esm/upload.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Upload", function() { return _upload_js__WEBPACK_IMPORTED_MODULE_67__["default"]; }); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +var components = /*#__PURE__*/Object.freeze({ + Autocomplete: _autocomplete_js__WEBPACK_IMPORTED_MODULE_8__["default"], + Button: _button_js__WEBPACK_IMPORTED_MODULE_9__["default"], + Carousel: _carousel_js__WEBPACK_IMPORTED_MODULE_11__["default"], + Checkbox: _checkbox_js__WEBPACK_IMPORTED_MODULE_14__["default"], + Clockpicker: _clockpicker_js__WEBPACK_IMPORTED_MODULE_20__["default"], + Collapse: _collapse_js__WEBPACK_IMPORTED_MODULE_15__["default"], + Datepicker: _datepicker_js__WEBPACK_IMPORTED_MODULE_23__["default"], + Datetimepicker: _datetimepicker_js__WEBPACK_IMPORTED_MODULE_25__["default"], + Dialog: _dialog_js__WEBPACK_IMPORTED_MODULE_27__["default"], + Dropdown: _dropdown_js__WEBPACK_IMPORTED_MODULE_28__["default"], + Field: _field_js__WEBPACK_IMPORTED_MODULE_29__["default"], + Icon: _icon_js__WEBPACK_IMPORTED_MODULE_30__["default"], + Image: _image_js__WEBPACK_IMPORTED_MODULE_31__["default"], + Input: _input_js__WEBPACK_IMPORTED_MODULE_32__["default"], + Loading: _loading_js__WEBPACK_IMPORTED_MODULE_35__["default"], + Menu: _menu_js__WEBPACK_IMPORTED_MODULE_36__["default"], + Message: _message_js__WEBPACK_IMPORTED_MODULE_38__["default"], + Modal: _modal_js__WEBPACK_IMPORTED_MODULE_39__["default"], + Navbar: _navbar_js__WEBPACK_IMPORTED_MODULE_42__["default"], + Notification: _notification_js__WEBPACK_IMPORTED_MODULE_40__["default"], + Numberinput: _numberinput_js__WEBPACK_IMPORTED_MODULE_43__["default"], + Pagination: _pagination_js__WEBPACK_IMPORTED_MODULE_45__["default"], + Progress: _progress_js__WEBPACK_IMPORTED_MODULE_46__["default"], + Radio: _radio_js__WEBPACK_IMPORTED_MODULE_47__["default"], + Rate: _rate_js__WEBPACK_IMPORTED_MODULE_48__["default"], + Select: _select_js__WEBPACK_IMPORTED_MODULE_49__["default"], + Skeleton: _skeleton_js__WEBPACK_IMPORTED_MODULE_50__["default"], + Sidebar: _sidebar_js__WEBPACK_IMPORTED_MODULE_51__["default"], + Slider: _slider_js__WEBPACK_IMPORTED_MODULE_53__["default"], + Snackbar: _snackbar_js__WEBPACK_IMPORTED_MODULE_54__["default"], + Steps: _steps_js__WEBPACK_IMPORTED_MODULE_57__["default"], + Switch: _switch_js__WEBPACK_IMPORTED_MODULE_58__["default"], + Table: _table_js__WEBPACK_IMPORTED_MODULE_59__["default"], + Tabs: _tabs_js__WEBPACK_IMPORTED_MODULE_60__["default"], + Tag: _tag_js__WEBPACK_IMPORTED_MODULE_62__["default"], + Taginput: _taginput_js__WEBPACK_IMPORTED_MODULE_63__["default"], + Timepicker: _timepicker_js__WEBPACK_IMPORTED_MODULE_64__["default"], + Toast: _toast_js__WEBPACK_IMPORTED_MODULE_65__["default"], + Tooltip: _tooltip_js__WEBPACK_IMPORTED_MODULE_66__["default"], + Upload: _upload_js__WEBPACK_IMPORTED_MODULE_67__["default"] +}); + +var ConfigComponent = { + getOptions: function getOptions() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"]; + }, + setOptions: function setOptions$1(options) { + Object(_chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["s"])(Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(_chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"], options, true)); + } +}; + +var Buefy = { + install: function install(Vue) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + Object(_chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Vue); // Options + + Object(_chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["s"])(Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(_chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"], options, true)); // Components + + for (var componentKey in components) { + Vue.use(components[componentKey]); + } // Config component + + + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["a"])(Vue, 'config', ConfigComponent); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Buefy); + +/* harmony default export */ __webpack_exports__["default"] = (Buefy); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/input.js": +/*!**********************************************!*\ + !*** ./node_modules/buefy/dist/esm/input.js ***! + \**********************************************/ +/*! exports provided: BInput, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BInput", function() { return _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__["I"]; }); + + + + + + + + + + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__["I"]); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/loading.js": +/*!************************************************!*\ + !*** ./node_modules/buefy/dist/esm/loading.js ***! + \************************************************/ +/*! exports provided: BLoading, default, LoadingProgrammatic */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoadingProgrammatic", function() { return LoadingProgrammatic; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_b9bdb0e4_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-b9bdb0e4.js */ "./node_modules/buefy/dist/esm/chunk-b9bdb0e4.js"); +/* harmony import */ var _chunk_7a49a152_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-7a49a152.js */ "./node_modules/buefy/dist/esm/chunk-7a49a152.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BLoading", function() { return _chunk_7a49a152_js__WEBPACK_IMPORTED_MODULE_5__["L"]; }); + + + + + + + + + +var localVueInstance; +var LoadingProgrammatic = { + open: function open(params) { + var defaultParam = { + programmatic: true + }; + var propsData = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(defaultParam, params); + var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["V"]; + var LoadingComponent = vm.extend(_chunk_7a49a152_js__WEBPACK_IMPORTED_MODULE_5__["L"]); + return new LoadingComponent({ + el: document.createElement('div'), + propsData: propsData + }); + } +}; +var Plugin = { + install: function install(Vue) { + localVueInstance = Vue; + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["r"])(Vue, _chunk_7a49a152_js__WEBPACK_IMPORTED_MODULE_5__["L"]); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["a"])(Vue, 'loading', LoadingProgrammatic); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/menu.js": +/*!*********************************************!*\ + !*** ./node_modules/buefy/dist/esm/menu.js ***! + \*********************************************/ +/*! exports provided: default, BMenu, BMenuItem, BMenuList */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BMenu", function() { return Menu; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BMenuItem", function() { return MenuItem; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BMenuList", function() { return MenuList; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + + + +// +// +// +// +// +// +var script = { + name: 'BMenu', + props: { + accordion: { + type: Boolean, + default: true + }, + activable: { + type: Boolean, + default: true + } + }, + data: function data() { + return { + _isMenu: true // Used by MenuItem + + }; + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"menu"},[_vm._t("default")],2)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Menu = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var script$1 = { + name: 'BMenuList', + functional: true, + props: { + label: String, + icon: String, + iconPack: String, + ariaRole: { + type: String, + default: '' + }, + size: { + type: String, + default: 'is-small' + } + }, + render: function render(createElement, context) { + var vlabel = null; + var slots = context.slots(); + + if (context.props.label || slots.label) { + vlabel = createElement('p', { + attrs: { + 'class': 'menu-label' + } + }, context.props.label ? context.props.icon ? [createElement('b-icon', { + props: { + 'icon': context.props.icon, + 'pack': context.props.iconPack, + 'size': context.props.size + } + }), createElement('span', {}, context.props.label)] : context.props.label : slots.label); + } + + var vnode = createElement('ul', { + attrs: { + 'class': 'menu-list', + 'role': context.props.ariaRole === 'menu' ? context.props.ariaRole : null + } + }, slots.default); + return vlabel ? [vlabel, vnode] : vnode; + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = undefined; + /* style inject */ + + /* style inject SSR */ + + + + var MenuList = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + {}, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +var script$2 = { + name: 'BMenuItem', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"]), + inheritAttrs: false, + // deprecated, to replace with default 'value' in the next breaking change + model: { + prop: 'active', + event: 'update:active' + }, + props: { + label: String, + active: Boolean, + expanded: Boolean, + disabled: Boolean, + iconPack: String, + icon: String, + animation: { + type: String, + default: 'slide' + }, + tag: { + type: String, + default: 'a', + validator: function validator(value) { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultLinkTags.indexOf(value) >= 0; + } + }, + ariaRole: { + type: String, + default: '' + }, + size: { + type: String, + default: 'is-small' + } + }, + data: function data() { + return { + newActive: this.active, + newExpanded: this.expanded + }; + }, + computed: { + ariaRoleMenu: function ariaRoleMenu() { + return this.ariaRole === 'menuitem' ? this.ariaRole : null; + } + }, + watch: { + active: function active(value) { + this.newActive = value; + }, + expanded: function expanded(value) { + this.newExpanded = value; + } + }, + methods: { + onClick: function onClick(event) { + if (this.disabled) return; + var menu = this.getMenu(); + this.reset(this.$parent, menu); + this.newExpanded = !this.newExpanded; + this.$emit('update:expanded', this.newActive); + + if (menu && menu.activable) { + this.newActive = true; + this.$emit('update:active', this.newActive); + } + }, + reset: function reset(parent, menu) { + var _this = this; + + var items = parent.$children.filter(function (c) { + return c.name === _this.name; + }); + items.forEach(function (item) { + if (item !== _this) { + _this.reset(item, menu); + + if (!parent.$data._isMenu || parent.$data._isMenu && parent.accordion) { + item.newExpanded = false; + item.$emit('update:expanded', item.newActive); + } + + if (menu && menu.activable) { + item.newActive = false; + item.$emit('update:active', item.newActive); + } + } + }); + }, + getMenu: function getMenu() { + var parent = this.$parent; + + while (parent && !parent.$data._isMenu) { + parent = parent.$parent; + } + + return parent; + } + } +}; + +/* script */ +const __vue_script__$2 = script$2; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{attrs:{"role":_vm.ariaRoleMenu}},[_c(_vm.tag,_vm._g(_vm._b({tag:"component",class:{ + 'is-active': _vm.newActive, + 'is-expanded': _vm.newExpanded, + 'is-disabled': _vm.disabled + },on:{"click":function($event){return _vm.onClick($event)}}},'component',_vm.$attrs,false),_vm.$listeners),[(_vm.icon)?_c('b-icon',{attrs:{"icon":_vm.icon,"pack":_vm.iconPack,"size":_vm.size}}):_vm._e(),(_vm.label)?_c('span',[_vm._v(_vm._s(_vm.label))]):_vm._t("label",null,{"expanded":_vm.newExpanded,"active":_vm.newActive})],2),(_vm.$slots.default)?[_c('transition',{attrs:{"name":_vm.animation}},[_c('ul',{directives:[{name:"show",rawName:"v-show",value:(_vm.newExpanded),expression:"newExpanded"}]},[_vm._t("default")],2)])]:_vm._e()],2)}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$2 = undefined; + /* scoped */ + const __vue_scope_id__$2 = undefined; + /* module identifier */ + const __vue_module_identifier__$2 = undefined; + /* functional template */ + const __vue_is_functional_template__$2 = false; + /* style inject */ + + /* style inject SSR */ + + + + var MenuItem = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$2, + __vue_script__$2, + __vue_scope_id__$2, + __vue_is_functional_template__$2, + __vue_module_identifier__$2, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, Menu); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, MenuList); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, MenuItem); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/message.js": +/*!************************************************!*\ + !*** ./node_modules/buefy/dist/esm/message.js ***! + \************************************************/ +/*! exports provided: default, BMessage */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BMessage", function() { return Message; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_6eb75eec_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-6eb75eec.js */ "./node_modules/buefy/dist/esm/chunk-6eb75eec.js"); + + + + + + + +// +var script = { + name: 'BMessage', + mixins: [_chunk_6eb75eec_js__WEBPACK_IMPORTED_MODULE_5__["M"]], + props: { + ariaCloseLabel: String + }, + data: function data() { + return { + newIconSize: this.iconSize || this.size || 'is-large' + }; + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"fade"}},[(_vm.isActive)?_c('article',{staticClass:"message",class:[_vm.type, _vm.size]},[(_vm.title)?_c('header',{staticClass:"message-header"},[_c('p',[_vm._v(_vm._s(_vm.title))]),(_vm.closable)?_c('button',{staticClass:"delete",attrs:{"type":"button","aria-label":_vm.ariaCloseLabel},on:{"click":_vm.close}}):_vm._e()]):_vm._e(),(_vm.$slots.default)?_c('section',{staticClass:"message-body"},[_c('div',{staticClass:"media"},[(_vm.computedIcon && _vm.hasIcon)?_c('div',{staticClass:"media-left"},[_c('b-icon',{class:_vm.type,attrs:{"icon":_vm.computedIcon,"pack":_vm.iconPack,"both":"","size":_vm.newIconSize}})],1):_vm._e(),_c('div',{staticClass:"media-content"},[_vm._t("default")],2)])]):_vm._e()]):_vm._e()])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Message = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, Message); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/modal.js": +/*!**********************************************!*\ + !*** ./node_modules/buefy/dist/esm/modal.js ***! + \**********************************************/ +/*! exports provided: BModal, default, ModalProgrammatic */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModalProgrammatic", function() { return ModalProgrammatic; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-42f463e6.js */ "./node_modules/buefy/dist/esm/chunk-42f463e6.js"); +/* harmony import */ var _chunk_e6c2853b_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-e6c2853b.js */ "./node_modules/buefy/dist/esm/chunk-e6c2853b.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BModal", function() { return _chunk_e6c2853b_js__WEBPACK_IMPORTED_MODULE_5__["M"]; }); + + + + + + + + + +var localVueInstance; +var ModalProgrammatic = { + open: function open(params) { + var parent; + + if (typeof params === 'string') { + params = { + content: params + }; + } + + var defaultParam = { + programmatic: true + }; + + if (params.parent) { + parent = params.parent; + delete params.parent; + } + + var slot; + + if (params.content) { + slot = params.content; + delete params.content; + } + + var propsData = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(defaultParam, params); + var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["V"]; + var ModalComponent = vm.extend(_chunk_e6c2853b_js__WEBPACK_IMPORTED_MODULE_5__["M"]); + var component = new ModalComponent({ + parent: parent, + el: document.createElement('div'), + propsData: propsData + }); + + if (slot) { + component.$slots.default = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["toVDom"])(slot, component.$createElement); + component.$forceUpdate(); + } + + return component; + } +}; +var Plugin = { + install: function install(Vue) { + localVueInstance = Vue; + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["r"])(Vue, _chunk_e6c2853b_js__WEBPACK_IMPORTED_MODULE_5__["M"]); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["a"])(Vue, 'modal', ModalProgrammatic); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/navbar.js": +/*!***********************************************!*\ + !*** ./node_modules/buefy/dist/esm/navbar.js ***! + \***********************************************/ +/*! exports provided: default, BNavbar, BNavbarDropdown, BNavbarItem */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BNavbar", function() { return Navbar; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BNavbarDropdown", function() { return NavbarDropdown; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BNavbarItem", function() { return NavbarItem; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +var script = { + name: 'NavbarBurger', + props: { + isOpened: { + type: Boolean, + default: false + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',_vm._g({staticClass:"navbar-burger burger",class:{ 'is-active': _vm.isOpened },attrs:{"role":"button","aria-label":"menu","aria-expanded":_vm.isOpened}},_vm.$listeners),[_c('span',{attrs:{"aria-hidden":"true"}}),_c('span',{attrs:{"aria-hidden":"true"}}),_c('span',{attrs:{"aria-hidden":"true"}})])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var NavbarBurger = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var isTouch = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.msMaxTouchPoints > 0); +var events = isTouch ? ['touchstart', 'click'] : ['click']; +var instances = []; + +function processArgs(bindingValue) { + var isFunction = typeof bindingValue === 'function'; + + if (!isFunction && Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["b"])(bindingValue) !== 'object') { + throw new Error("v-click-outside: Binding value should be a function or an object, typeof ".concat(bindingValue, " given")); + } + + return { + handler: isFunction ? bindingValue : bindingValue.handler, + middleware: bindingValue.middleware || function (isClickOutside) { + return isClickOutside; + }, + events: bindingValue.events || events + }; +} + +function onEvent(_ref) { + var el = _ref.el, + event = _ref.event, + handler = _ref.handler, + middleware = _ref.middleware; + var isClickOutside = event.target !== el && !el.contains(event.target); + + if (!isClickOutside) { + return; + } + + if (middleware(event, el)) { + handler(event, el); + } +} + +function bind(el, _ref2) { + var value = _ref2.value; + + var _processArgs = processArgs(value), + _handler = _processArgs.handler, + middleware = _processArgs.middleware, + events = _processArgs.events; + + var instance = { + el: el, + eventHandlers: events.map(function (eventName) { + return { + event: eventName, + handler: function handler(event) { + return onEvent({ + event: event, + el: el, + handler: _handler, + middleware: middleware + }); + } + }; + }) + }; + instance.eventHandlers.forEach(function (_ref3) { + var event = _ref3.event, + handler = _ref3.handler; + return document.addEventListener(event, handler); + }); + instances.push(instance); +} + +function update(el, _ref4) { + var value = _ref4.value; + + var _processArgs2 = processArgs(value), + _handler2 = _processArgs2.handler, + middleware = _processArgs2.middleware, + events = _processArgs2.events; // `filter` instead of `find` for compat with IE + + + var instance = instances.filter(function (instance) { + return instance.el === el; + })[0]; + instance.eventHandlers.forEach(function (_ref5) { + var event = _ref5.event, + handler = _ref5.handler; + return document.removeEventListener(event, handler); + }); + instance.eventHandlers = events.map(function (eventName) { + return { + event: eventName, + handler: function handler(event) { + return onEvent({ + event: event, + el: el, + handler: _handler2, + middleware: middleware + }); + } + }; + }); + instance.eventHandlers.forEach(function (_ref6) { + var event = _ref6.event, + handler = _ref6.handler; + return document.addEventListener(event, handler); + }); +} + +function unbind(el) { + // `filter` instead of `find` for compat with IE + var instance = instances.filter(function (instance) { + return instance.el === el; + })[0]; + instance.eventHandlers.forEach(function (_ref7) { + var event = _ref7.event, + handler = _ref7.handler; + return document.removeEventListener(event, handler); + }); +} + +var directive = { + bind: bind, + update: update, + unbind: unbind, + instances: instances +}; + +var FIXED_TOP_CLASS = 'is-fixed-top'; +var BODY_FIXED_TOP_CLASS = 'has-navbar-fixed-top'; +var BODY_SPACED_FIXED_TOP_CLASS = 'has-spaced-navbar-fixed-top'; +var FIXED_BOTTOM_CLASS = 'is-fixed-bottom'; +var BODY_FIXED_BOTTOM_CLASS = 'has-navbar-fixed-bottom'; +var BODY_SPACED_FIXED_BOTTOM_CLASS = 'has-spaced-navbar-fixed-bottom'; + +var isFilled = function isFilled(str) { + return !!str; +}; + +var script$1 = { + name: 'BNavbar', + components: { + NavbarBurger: NavbarBurger + }, + directives: { + clickOutside: directive + }, + // deprecated, to replace with default 'value' in the next breaking change + model: { + prop: 'active', + event: 'update:active' + }, + props: { + type: [String, Object], + transparent: { + type: Boolean, + default: false + }, + fixedTop: { + type: Boolean, + default: false + }, + fixedBottom: { + type: Boolean, + default: false + }, + active: { + type: Boolean, + default: false + }, + wrapperClass: { + type: String + }, + closeOnClick: { + type: Boolean, + default: true + }, + mobileBurger: { + type: Boolean, + default: true + }, + spaced: Boolean, + shadow: Boolean + }, + data: function data() { + return { + internalIsActive: this.active, + _isNavBar: true // Used internally by NavbarItem + + }; + }, + computed: { + isOpened: function isOpened() { + return this.internalIsActive; + }, + computedClasses: function computedClasses() { + var _ref; + + return [this.type, (_ref = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_ref, FIXED_TOP_CLASS, this.fixedTop), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_ref, FIXED_BOTTOM_CLASS, this.fixedBottom), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_ref, 'is-spaced', this.spaced), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_ref, 'has-shadow', this.shadow), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_ref, 'is-transparent', this.transparent), _ref)]; + } + }, + watch: { + active: { + handler: function handler(active) { + this.internalIsActive = active; + }, + immediate: true + }, + fixedTop: { + handler: function handler(isSet) { + this.checkIfFixedPropertiesAreColliding(); + + if (isSet) { + // TODO Apply only one of the classes once PR is merged in Bulma: + // https://github.com/jgthms/bulma/pull/2737 + this.setBodyClass(BODY_FIXED_TOP_CLASS); + this.spaced && this.setBodyClass(BODY_SPACED_FIXED_TOP_CLASS); + } else { + this.removeBodyClass(BODY_FIXED_TOP_CLASS); + this.removeBodyClass(BODY_SPACED_FIXED_TOP_CLASS); + } + }, + immediate: true + }, + fixedBottom: { + handler: function handler(isSet) { + this.checkIfFixedPropertiesAreColliding(); + + if (isSet) { + // TODO Apply only one of the classes once PR is merged in Bulma: + // https://github.com/jgthms/bulma/pull/2737 + this.setBodyClass(BODY_FIXED_BOTTOM_CLASS); + this.spaced && this.setBodyClass(BODY_SPACED_FIXED_BOTTOM_CLASS); + } else { + this.removeBodyClass(BODY_FIXED_BOTTOM_CLASS); + this.removeBodyClass(BODY_SPACED_FIXED_BOTTOM_CLASS); + } + }, + immediate: true + } + }, + methods: { + toggleActive: function toggleActive() { + this.internalIsActive = !this.internalIsActive; + this.emitUpdateParentEvent(); + }, + closeMenu: function closeMenu() { + if (this.closeOnClick) { + this.internalIsActive = false; + this.emitUpdateParentEvent(); + } + }, + emitUpdateParentEvent: function emitUpdateParentEvent() { + this.$emit('update:active', this.internalIsActive); + }, + setBodyClass: function setBodyClass(className) { + if (typeof window !== 'undefined') { + document.body.classList.add(className); + } + }, + removeBodyClass: function removeBodyClass(className) { + if (typeof window !== 'undefined') { + document.body.classList.remove(className); + } + }, + checkIfFixedPropertiesAreColliding: function checkIfFixedPropertiesAreColliding() { + var areColliding = this.fixedTop && this.fixedBottom; + + if (areColliding) { + throw new Error('You should choose if the BNavbar is fixed bottom or fixed top, but not both'); + } + }, + genNavbar: function genNavbar(createElement) { + var navBarSlots = [this.genNavbarBrandNode(createElement), this.genNavbarSlotsNode(createElement)]; + + if (!isFilled(this.wrapperClass)) { + return this.genNavbarSlots(createElement, navBarSlots); + } // It wraps the slots into a div with the provided wrapperClass prop + + + var navWrapper = createElement('div', { + class: this.wrapperClass + }, navBarSlots); + return this.genNavbarSlots(createElement, [navWrapper]); + }, + genNavbarSlots: function genNavbarSlots(createElement, slots) { + return createElement('nav', { + staticClass: 'navbar', + class: this.computedClasses, + attrs: { + role: 'navigation', + 'aria-label': 'main navigation' + }, + directives: [{ + name: 'click-outside', + value: this.closeMenu + }] + }, slots); + }, + genNavbarBrandNode: function genNavbarBrandNode(createElement) { + return createElement('div', { + class: 'navbar-brand' + }, [this.$slots.brand, this.genBurgerNode(createElement)]); + }, + genBurgerNode: function genBurgerNode(createElement) { + if (this.mobileBurger) { + var defaultBurgerNode = createElement('navbar-burger', { + props: { + isOpened: this.isOpened + }, + on: { + click: this.toggleActive + } + }); + var hasBurgerSlot = !!this.$scopedSlots.burger; + return hasBurgerSlot ? this.$scopedSlots.burger({ + isOpened: this.isOpened, + toggleActive: this.toggleActive + }) : defaultBurgerNode; + } + }, + genNavbarSlotsNode: function genNavbarSlotsNode(createElement) { + return createElement('div', { + staticClass: 'navbar-menu', + class: { + 'is-active': this.isOpened + } + }, [this.genMenuPosition(createElement, 'start'), this.genMenuPosition(createElement, 'end')]); + }, + genMenuPosition: function genMenuPosition(createElement, positionName) { + return createElement('div', { + staticClass: "navbar-".concat(positionName) + }, this.$slots[positionName]); + } + }, + beforeDestroy: function beforeDestroy() { + if (this.fixedTop) { + var className = this.spaced ? BODY_SPACED_FIXED_TOP_CLASS : BODY_FIXED_TOP_CLASS; + this.removeBodyClass(className); + } else if (this.fixedBottom) { + var _className = this.spaced ? BODY_SPACED_FIXED_BOTTOM_CLASS : BODY_FIXED_BOTTOM_CLASS; + + this.removeBodyClass(_className); + } + }, + render: function render(createElement, fn) { + return this.genNavbar(createElement); + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = undefined; + /* style inject */ + + /* style inject SSR */ + + + + var Navbar = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["_"])( + {}, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +// +// +// +// +// +// +// +// +// +// +// +// +// +var clickableWhiteList = ['div', 'span', 'input']; +var script$2 = { + name: 'BNavbarItem', + inheritAttrs: false, + props: { + tag: { + type: String, + default: 'a' + }, + active: Boolean + }, + methods: { + /** + * Keypress event that is bound to the document + */ + keyPress: function keyPress(_ref) { + var key = _ref.key; + + if (key === 'Escape' || key === 'Esc') { + this.closeMenuRecursive(this, ['NavBar']); + } + }, + + /** + * Close parent if clicked outside. + */ + handleClickEvent: function handleClickEvent(event) { + var isOnWhiteList = clickableWhiteList.some(function (item) { + return item === event.target.localName; + }); + + if (!isOnWhiteList) { + var parent = this.closeMenuRecursive(this, ['NavbarDropdown', 'NavBar']); + if (parent && parent.$data._isNavbarDropdown) this.closeMenuRecursive(parent, ['NavBar']); + } + }, + + /** + * Close parent recursively + */ + closeMenuRecursive: function closeMenuRecursive(current, targetComponents) { + if (!current.$parent) return null; + var foundItem = targetComponents.reduce(function (acc, item) { + if (current.$parent.$data["_is".concat(item)]) { + current.$parent.closeMenu(); + return current.$parent; + } + + return acc; + }, null); + return foundItem || this.closeMenuRecursive(current.$parent, targetComponents); + } + }, + mounted: function mounted() { + if (typeof window !== 'undefined') { + this.$el.addEventListener('click', this.handleClickEvent); + document.addEventListener('keyup', this.keyPress); + } + }, + beforeDestroy: function beforeDestroy() { + if (typeof window !== 'undefined') { + this.$el.removeEventListener('click', this.handleClickEvent); + document.removeEventListener('keyup', this.keyPress); + } + } +}; + +/* script */ +const __vue_script__$2 = script$2; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,_vm._g(_vm._b({tag:"component",staticClass:"navbar-item",class:{ + 'is-active': _vm.active + }},'component',_vm.$attrs,false),_vm.$listeners),[_vm._t("default")],2)}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$2 = undefined; + /* scoped */ + const __vue_scope_id__$2 = undefined; + /* module identifier */ + const __vue_module_identifier__$2 = undefined; + /* functional template */ + const __vue_is_functional_template__$2 = false; + /* style inject */ + + /* style inject SSR */ + + + + var NavbarItem = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$2, + __vue_script__$2, + __vue_scope_id__$2, + __vue_is_functional_template__$2, + __vue_module_identifier__$2, + undefined, + undefined + ); + +// +var script$3 = { + name: 'BNavbarDropdown', + directives: { + clickOutside: directive + }, + props: { + label: String, + hoverable: Boolean, + active: Boolean, + right: Boolean, + arrowless: Boolean, + boxed: Boolean, + closeOnClick: { + type: Boolean, + default: true + }, + collapsible: Boolean + }, + data: function data() { + return { + newActive: this.active, + isHoverable: this.hoverable, + _isNavbarDropdown: true // Used internally by NavbarItem + + }; + }, + watch: { + active: function active(value) { + this.newActive = value; + } + }, + methods: { + showMenu: function showMenu() { + this.newActive = true; + }, + + /** + * See naming convetion of navbaritem + */ + closeMenu: function closeMenu() { + this.newActive = !this.closeOnClick; + + if (this.hoverable && this.closeOnClick) { + this.isHoverable = false; + } + }, + checkHoverable: function checkHoverable() { + if (this.hoverable) { + this.isHoverable = true; + } + } + } +}; + +/* script */ +const __vue_script__$3 = script$3; + +/* template */ +var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.closeMenu),expression:"closeMenu"}],staticClass:"navbar-item has-dropdown",class:{ + 'is-hoverable': _vm.isHoverable, + 'is-active': _vm.newActive + },on:{"mouseenter":_vm.checkHoverable}},[_c('a',{staticClass:"navbar-link",class:{ + 'is-arrowless': _vm.arrowless, + 'is-active': _vm.newActive && _vm.collapsible + },attrs:{"role":"menuitem","aria-haspopup":"true","href":"#"},on:{"click":function($event){$event.preventDefault();_vm.newActive = !_vm.newActive;}}},[(_vm.label)?[_vm._v(_vm._s(_vm.label))]:_vm._t("label")],2),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.collapsible || (_vm.collapsible && _vm.newActive)),expression:"!collapsible || (collapsible && newActive)"}],staticClass:"navbar-dropdown",class:{ + 'is-right': _vm.right, + 'is-boxed': _vm.boxed, + }},[_vm._t("default")],2)])}; +var __vue_staticRenderFns__$2 = []; + + /* style */ + const __vue_inject_styles__$3 = undefined; + /* scoped */ + const __vue_scope_id__$3 = undefined; + /* module identifier */ + const __vue_module_identifier__$3 = undefined; + /* functional template */ + const __vue_is_functional_template__$3 = false; + /* style inject */ + + /* style inject SSR */ + + + + var NavbarDropdown = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["_"])( + { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 }, + __vue_inject_styles__$3, + __vue_script__$3, + __vue_scope_id__$3, + __vue_is_functional_template__$3, + __vue_module_identifier__$3, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["r"])(Vue, Navbar); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["r"])(Vue, NavbarItem); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["r"])(Vue, NavbarDropdown); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/notification.js": +/*!*****************************************************!*\ + !*** ./node_modules/buefy/dist/esm/notification.js ***! + \*****************************************************/ +/*! exports provided: default, BNotification, NotificationProgrammatic */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BNotification", function() { return Notification; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationProgrammatic", function() { return NotificationProgrammatic; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_6eb75eec_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-6eb75eec.js */ "./node_modules/buefy/dist/esm/chunk-6eb75eec.js"); +/* harmony import */ var _chunk_220749df_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-220749df.js */ "./node_modules/buefy/dist/esm/chunk-220749df.js"); + + + + + + + + +// +var script = { + name: 'BNotification', + mixins: [_chunk_6eb75eec_js__WEBPACK_IMPORTED_MODULE_5__["M"]], + props: { + position: String, + ariaCloseLabel: String, + animation: { + type: String, + default: 'fade' + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[_c('article',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"notification",class:[_vm.type, _vm.position]},[(_vm.closable)?_c('button',{staticClass:"delete",attrs:{"type":"button","aria-label":_vm.ariaCloseLabel},on:{"click":_vm.close}}):_vm._e(),(_vm.$slots.default || _vm.message)?_c('div',{staticClass:"media"},[(_vm.computedIcon && _vm.hasIcon)?_c('div',{staticClass:"media-left"},[_c('b-icon',{attrs:{"icon":_vm.computedIcon,"pack":_vm.iconPack,"both":"","size":"is-large","aria-hidden":""}})],1):_vm._e(),_c('div',{staticClass:"media-content"},[_c('p',{staticClass:"text"},[(_vm.$slots.default)?[_vm._t("default")]:[_vm._v(" "+_vm._s(_vm.message)+" ")]],2)])]):_vm._e()])])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Notification = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +// +var script$1 = { + name: 'BNotificationNotice', + mixins: [_chunk_220749df_js__WEBPACK_IMPORTED_MODULE_6__["N"]], + props: { + indefinite: { + type: Boolean, + default: false + } + }, + data: function data() { + return { + newDuration: this.duration || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultNotificationDuration + }; + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-notification',_vm._b({on:{"close":_vm.close}},'b-notification',_vm.$options.propsData,false),[_vm._t("default")],2)}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = false; + /* style inject */ + + /* style inject SSR */ + + + + var NotificationNotice = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +var localVueInstance; +var NotificationProgrammatic = { + open: function open(params) { + var parent; + + if (typeof params === 'string') { + params = { + message: params + }; + } + + var defaultParam = { + position: _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultNotificationPosition || 'is-top-right' + }; + + if (params.parent) { + parent = params.parent; + delete params.parent; + } + + var slot = params.message; + delete params.message; // fix animation + + params.active = false; + var propsData = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(defaultParam, params); + var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["V"]; + var NotificationNoticeComponent = vm.extend(NotificationNotice); + var component = new NotificationNoticeComponent({ + parent: parent, + el: document.createElement('div'), + propsData: propsData + }); + + if (slot) { + component.$slots.default = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["toVDom"])(slot, component.$createElement); + component.$forceUpdate(); + } // fix animation + + + component.$children[0].isActive = true; + return component; + } +}; +var Plugin = { + install: function install(Vue) { + localVueInstance = Vue; + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, Notification); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["a"])(Vue, 'notification', NotificationProgrammatic); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/numberinput.js": +/*!****************************************************!*\ + !*** ./node_modules/buefy/dist/esm/numberinput.js ***! + \****************************************************/ +/*! exports provided: default, BNumberinput */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BNumberinput", function() { return Numberinput; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); + + + + + + + + +var _components; +var script = { + name: 'BNumberinput', + components: (_components = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__["I"].name, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__["I"]), _components), + mixins: [_chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__["F"]], + inheritAttrs: false, + props: { + value: Number, + min: { + type: [Number, String] + }, + max: [Number, String], + step: [Number, String], + exponential: [Boolean, Number], + disabled: Boolean, + type: { + type: String, + default: 'is-primary' + }, + editable: { + type: Boolean, + default: true + }, + controls: { + type: Boolean, + default: true + }, + controlsRounded: { + type: Boolean, + default: false + }, + controlsPosition: String, + placeholder: [Number, String] + }, + data: function data() { + return { + newValue: this.value, + newStep: this.step || 1, + timesPressed: 1, + _elementRef: 'input' + }; + }, + computed: { + computedValue: { + get: function get() { + return this.newValue; + }, + set: function set(value) { + var newValue = value; + + if (value === '' || value === undefined || value === null) { + newValue = this.minNumber || null; + } + + this.newValue = newValue; + this.$emit('input', newValue); + !this.isValid && this.$refs.input.checkHtml5Validity(); + } + }, + fieldClasses: function fieldClasses() { + return [{ + 'has-addons': this.controlsPosition === 'compact' + }, { + 'is-grouped': this.controlsPosition !== 'compact' + }, { + 'is-expanded': this.expanded + }]; + }, + buttonClasses: function buttonClasses() { + return [this.type, this.size, { + 'is-rounded': this.controlsRounded + }]; + }, + minNumber: function minNumber() { + return typeof this.min === 'string' ? parseFloat(this.min) : this.min; + }, + maxNumber: function maxNumber() { + return typeof this.max === 'string' ? parseFloat(this.max) : this.max; + }, + stepNumber: function stepNumber() { + return typeof this.newStep === 'string' ? parseFloat(this.newStep) : this.newStep; + }, + disabledMin: function disabledMin() { + return this.computedValue - this.stepNumber < this.minNumber; + }, + disabledMax: function disabledMax() { + return this.computedValue + this.stepNumber > this.maxNumber; + }, + stepDecimals: function stepDecimals() { + var step = this.stepNumber.toString(); + var index = step.indexOf('.'); + + if (index >= 0) { + return step.substring(index + 1).length; + } + + return 0; + } + }, + watch: { + /** + * When v-model is changed: + * 1. Set internal value. + */ + value: { + immediate: true, + handler: function handler(value) { + this.newValue = value; + } + }, + step: function step(value) { + this.newStep = value; + } + }, + methods: { + decrement: function decrement() { + if (typeof this.minNumber === 'undefined' || this.computedValue - this.stepNumber >= this.minNumber) { + if (!this.computedValue) { + if (this.maxNumber) { + this.computedValue = this.maxNumber; + return; + } + + this.computedValue = 0; + } + + var value = this.computedValue - this.stepNumber; + this.computedValue = parseFloat(value.toFixed(this.stepDecimals)); + } + }, + increment: function increment() { + if (typeof this.maxNumber === 'undefined' || this.computedValue + this.stepNumber <= this.maxNumber) { + if (!this.computedValue) { + if (this.minNumber) { + this.computedValue = this.minNumber; + return; + } + + this.computedValue = 0; + } + + var value = this.computedValue + this.stepNumber; + this.computedValue = parseFloat(value.toFixed(this.stepDecimals)); + } + }, + onControlClick: function onControlClick(event, inc) { + // IE 11 -> filter click event + if (event.detail !== 0 || event.type !== 'click') return; + if (inc) this.increment();else this.decrement(); + }, + longPressTick: function longPressTick(inc) { + var _this = this; + + if (inc) this.increment();else this.decrement(); + this._$intervalRef = setTimeout(function () { + _this.longPressTick(inc); + }, this.exponential ? 250 / (this.exponential * this.timesPressed++) : 250); + }, + onStartLongPress: function onStartLongPress(event, inc) { + if (event.button !== 0 && event.type !== 'touchstart') return; + clearTimeout(this._$intervalRef); + this.longPressTick(inc); + }, + onStopLongPress: function onStopLongPress() { + if (!this._$intervalRef) return; + this.timesPressed = 1; + clearTimeout(this._$intervalRef); + this._$intervalRef = null; + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-numberinput field",class:_vm.fieldClasses},[(_vm.controls)?_c('p',{staticClass:"control minus",on:{"mouseup":function($event){return _vm.onStopLongPress(false)},"mouseleave":function($event){return _vm.onStopLongPress(false)},"touchend":function($event){return _vm.onStopLongPress(false)},"touchcancel":function($event){return _vm.onStopLongPress(false)}}},[_c('button',{staticClass:"button",class:_vm.buttonClasses,attrs:{"type":"button","disabled":_vm.disabled || _vm.disabledMin},on:{"mousedown":function($event){return _vm.onStartLongPress($event, false)},"touchstart":function($event){$event.preventDefault();return _vm.onStartLongPress($event, false)},"click":function($event){return _vm.onControlClick($event, false)}}},[_c('b-icon',{attrs:{"icon":"minus","both":"","pack":_vm.iconPack,"size":_vm.iconSize}})],1)]):_vm._e(),_c('b-input',_vm._b({ref:"input",attrs:{"type":"number","step":_vm.newStep,"max":_vm.max,"min":_vm.min,"size":_vm.size,"disabled":_vm.disabled,"readonly":!_vm.editable,"loading":_vm.loading,"rounded":_vm.rounded,"icon":_vm.icon,"icon-pack":_vm.iconPack,"autocomplete":_vm.autocomplete,"expanded":_vm.expanded,"placeholder":_vm.placeholder,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":function($event){return _vm.$emit('focus', $event)},"blur":function($event){return _vm.$emit('blur', $event)}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=_vm._n($$v);},expression:"computedValue"}},'b-input',_vm.$attrs,false)),(_vm.controls)?_c('p',{staticClass:"control plus",on:{"mouseup":function($event){return _vm.onStopLongPress(true)},"mouseleave":function($event){return _vm.onStopLongPress(true)},"touchend":function($event){return _vm.onStopLongPress(true)},"touchcancel":function($event){return _vm.onStopLongPress(true)}}},[_c('button',{staticClass:"button",class:_vm.buttonClasses,attrs:{"type":"button","disabled":_vm.disabled || _vm.disabledMax},on:{"mousedown":function($event){return _vm.onStartLongPress($event, true)},"touchstart":function($event){$event.preventDefault();return _vm.onStartLongPress($event, true)},"click":function($event){return _vm.onControlClick($event, true)}}},[_c('b-icon',{attrs:{"icon":"plus","both":"","pack":_vm.iconPack,"size":_vm.iconSize}})],1)]):_vm._e()],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Numberinput = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, Numberinput); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/pagination.js": +/*!***************************************************!*\ + !*** ./node_modules/buefy/dist/esm/pagination.js ***! + \***************************************************/ +/*! exports provided: BPagination, BPaginationButton, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_5425f0a4_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-5425f0a4.js */ "./node_modules/buefy/dist/esm/chunk-5425f0a4.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BPagination", function() { return _chunk_5425f0a4_js__WEBPACK_IMPORTED_MODULE_5__["P"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BPaginationButton", function() { return _chunk_5425f0a4_js__WEBPACK_IMPORTED_MODULE_5__["a"]; }); + + + + + + + + + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, _chunk_5425f0a4_js__WEBPACK_IMPORTED_MODULE_5__["P"]); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, _chunk_5425f0a4_js__WEBPACK_IMPORTED_MODULE_5__["a"]); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/progress.js": +/*!*************************************************!*\ + !*** ./node_modules/buefy/dist/esm/progress.js ***! + \*************************************************/ +/*! exports provided: default, BProgress */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BProgress", function() { return Progress; }); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + +// +var script = { + name: 'BProgress', + props: { + type: { + type: [String, Object], + default: 'is-darkgrey' + }, + size: String, + value: { + type: Number, + default: undefined + }, + max: { + type: Number, + default: 100 + }, + showValue: { + type: Boolean, + default: false + }, + format: { + type: String, + default: 'raw', + validator: function validator(value) { + return ['raw', 'percent'].indexOf(value) >= 0; + } + }, + precision: { + type: Number, + default: 2 + }, + keepTrailingZeroes: { + type: Boolean, + default: false + }, + locale: { + type: [String, Array], + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_0__["c"].defaultLocale; + } + } + }, + computed: { + isIndeterminate: function isIndeterminate() { + return this.value === undefined || this.value === null; + }, + newType: function newType() { + return [this.size, this.type]; + }, + newValue: function newValue() { + if (this.value === undefined || this.value === null || isNaN(this.value)) { + return undefined; + } + + var minimumFractionDigits = this.keepTrailingZeroes ? this.precision : 0; + var maximumFractionDigits = this.precision; + + if (this.format === 'percent') { + return new Intl.NumberFormat(this.locale, { + style: 'percent', + minimumFractionDigits: minimumFractionDigits, + maximumFractionDigits: maximumFractionDigits + }).format(this.value / this.max); + } + + return new Intl.NumberFormat(this.locale, { + minimumFractionDigits: minimumFractionDigits, + maximumFractionDigits: maximumFractionDigits + }).format(this.value); + } + }, + watch: { + /** + * When value is changed back to undefined, value of native progress get reset to 0. + * Need to add and remove the value attribute to have the indeterminate or not. + */ + isIndeterminate: function isIndeterminate(indeterminate) { + var _this = this; + + this.$nextTick(function () { + if (_this.$refs.progress) { + if (indeterminate) { + _this.$refs.progress.removeAttribute('value'); + } else { + _this.$refs.progress.setAttribute('value', _this.value); + } + } + }); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"progress-wrapper"},[_c('progress',{ref:"progress",staticClass:"progress",class:_vm.newType,attrs:{"max":_vm.max},domProps:{"value":_vm.value}},[_vm._v(_vm._s(_vm.newValue))]),(_vm.showValue)?_c('p',{staticClass:"progress-value"},[_vm._t("default",[_vm._v(_vm._s(_vm.newValue))])],2):_vm._e()])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Progress = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["r"])(Vue, Progress); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_1__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/radio.js": +/*!**********************************************!*\ + !*** ./node_modules/buefy/dist/esm/radio.js ***! + \**********************************************/ +/*! exports provided: default, BRadio, BRadioButton */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BRadio", function() { return Radio; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BRadioButton", function() { return RadioButton; }); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_2793447b_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-2793447b.js */ "./node_modules/buefy/dist/esm/chunk-2793447b.js"); + + + +// +var script = { + name: 'BRadio', + mixins: [_chunk_2793447b_js__WEBPACK_IMPORTED_MODULE_1__["C"]] +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:"label",staticClass:"b-radio radio",class:[_vm.size, { 'is-disabled': _vm.disabled }],attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.$refs.label.click()}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"radio","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name},domProps:{"value":_vm.nativeValue,"checked":_vm._q(_vm.computedValue,_vm.nativeValue)},on:{"click":function($event){$event.stopPropagation();},"change":function($event){_vm.computedValue=_vm.nativeValue;}}}),_c('span',{staticClass:"check",class:_vm.type}),_c('span',{staticClass:"control-label"},[_vm._t("default")],2)])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Radio = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +// +var script$1 = { + name: 'BRadioButton', + mixins: [_chunk_2793447b_js__WEBPACK_IMPORTED_MODULE_1__["C"]], + props: { + type: { + type: String, + default: 'is-primary' + }, + expanded: Boolean + }, + data: function data() { + return { + isFocused: false + }; + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control",class:{ 'is-expanded': _vm.expanded }},[_c('label',{ref:"label",staticClass:"b-radio radio button",class:[_vm.newValue === _vm.nativeValue ? _vm.type : null, _vm.size, { + 'is-disabled': _vm.disabled, + 'is-focused': _vm.isFocused + }],attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.$refs.label.click()}}},[_vm._t("default"),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"radio","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name},domProps:{"value":_vm.nativeValue,"checked":_vm._q(_vm.computedValue,_vm.nativeValue)},on:{"click":function($event){$event.stopPropagation();},"focus":function($event){_vm.isFocused = true;},"blur":function($event){_vm.isFocused = false;},"change":function($event){_vm.computedValue=_vm.nativeValue;}}})],2)])}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = false; + /* style inject */ + + /* style inject SSR */ + + + + var RadioButton = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["r"])(Vue, Radio); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["r"])(Vue, RadioButton); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/rate.js": +/*!*********************************************!*\ + !*** ./node_modules/buefy/dist/esm/rate.js ***! + \*********************************************/ +/*! exports provided: default, BRate */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BRate", function() { return Rate; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + + + +var script = { + name: 'BRate', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"]), + props: { + value: { + type: Number, + default: 0 + }, + max: { + type: Number, + default: 5 + }, + icon: { + type: String, + default: 'star' + }, + iconPack: String, + size: String, + spaced: Boolean, + rtl: Boolean, + disabled: Boolean, + showScore: Boolean, + showText: Boolean, + customText: String, + texts: Array, + locale: { + type: [String, Array], + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultLocale; + } + } + }, + data: function data() { + return { + newValue: this.value, + hoverValue: 0 + }; + }, + computed: { + halfStyle: function halfStyle() { + return "width:".concat(this.valueDecimal, "%"); + }, + showMe: function showMe() { + var result = ''; + + if (this.showScore) { + result = this.disabled ? this.value : this.newValue; + + if (result === 0) { + result = ''; + } else { + result = new Intl.NumberFormat(this.locale).format(this.value); + } + } else if (this.showText) { + result = this.texts[Math.ceil(this.newValue) - 1]; + } + + return result; + }, + valueDecimal: function valueDecimal() { + return this.value * 100 - Math.floor(this.value) * 100; + } + }, + watch: { + // When v-model is changed set the new value. + value: function value(_value) { + this.newValue = _value; + } + }, + methods: { + resetNewValue: function resetNewValue() { + if (this.disabled) return; + this.hoverValue = 0; + }, + previewRate: function previewRate(index, event) { + if (this.disabled) return; + this.hoverValue = index; + event.stopPropagation(); + }, + confirmValue: function confirmValue(index) { + if (this.disabled) return; + this.newValue = index; + this.$emit('change', this.newValue); + this.$emit('input', this.newValue); + }, + checkHalf: function checkHalf(index) { + var showWhenDisabled = this.disabled && this.valueDecimal > 0 && index - 1 < this.value && index > this.value; + return showWhenDisabled; + }, + rateClass: function rateClass(index) { + var output = ''; + var currentValue = this.hoverValue !== 0 ? this.hoverValue : this.newValue; + + if (index <= currentValue) { + output = 'set-on'; + } else if (this.disabled && Math.ceil(this.value) === index) { + output = 'set-half'; + } + + return output; + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"rate",class:{ 'is-disabled': _vm.disabled, 'is-spaced': _vm.spaced, 'is-rtl': _vm.rtl }},[_vm._l((_vm.max),function(item,index){return _c('div',{key:index,staticClass:"rate-item",class:_vm.rateClass(item),on:{"mousemove":function($event){return _vm.previewRate(item, $event)},"mouseleave":_vm.resetNewValue,"click":function($event){$event.preventDefault();return _vm.confirmValue(item)}}},[_c('b-icon',{attrs:{"pack":_vm.iconPack,"icon":_vm.icon,"size":_vm.size}}),(_vm.checkHalf(item))?_c('b-icon',{staticClass:"is-half",style:(_vm.halfStyle),attrs:{"pack":_vm.iconPack,"icon":_vm.icon,"size":_vm.size}}):_vm._e()],1)}),(_vm.showText || _vm.showScore || _vm.customText)?_c('div',{staticClass:"rate-text",class:_vm.size},[_c('span',[_vm._v(_vm._s(_vm.showMe))]),(_vm.customText && !_vm.showText)?_c('span',[_vm._v(_vm._s(_vm.customText))]):_vm._e()]):_vm._e()],2)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Rate = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, Rate); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/select.js": +/*!***********************************************!*\ + !*** ./node_modules/buefy/dist/esm/select.js ***! + \***********************************************/ +/*! exports provided: BSelect, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-97074b53.js */ "./node_modules/buefy/dist/esm/chunk-97074b53.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BSelect", function() { return _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_6__["S"]; }); + + + + + + + + + + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_6__["S"]); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/sidebar.js": +/*!************************************************!*\ + !*** ./node_modules/buefy/dist/esm/sidebar.js ***! + \************************************************/ +/*! exports provided: default, BSidebar */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BSidebar", function() { return Sidebar; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + + + +// +var script = { + name: 'BSidebar', + // deprecated, to replace with default 'value' in the next breaking change + model: { + prop: 'open', + event: 'update:open' + }, + props: { + open: Boolean, + type: [String, Object], + overlay: Boolean, + position: { + type: String, + default: 'fixed', + validator: function validator(value) { + return ['fixed', 'absolute', 'static'].indexOf(value) >= 0; + } + }, + fullheight: Boolean, + fullwidth: Boolean, + right: Boolean, + mobile: { + type: String + }, + reduce: Boolean, + expandOnHover: Boolean, + expandOnHoverFixed: Boolean, + canCancel: { + type: [Array, Boolean], + default: function _default() { + return ['escape', 'outside']; + } + }, + onCancel: { + type: Function, + default: function _default() {} + } + }, + data: function data() { + return { + isOpen: this.open, + transitionName: null, + animating: true + }; + }, + computed: { + rootClasses: function rootClasses() { + return [this.type, { + 'is-fixed': this.isFixed, + 'is-static': this.isStatic, + 'is-absolute': this.isAbsolute, + 'is-fullheight': this.fullheight, + 'is-fullwidth': this.fullwidth, + 'is-right': this.right, + 'is-mini': this.reduce, + 'is-mini-expand': this.expandOnHover, + 'is-mini-expand-fixed': this.expandOnHover && this.expandOnHoverFixed, + 'is-mini-mobile': this.mobile === 'reduce', + 'is-hidden-mobile': this.mobile === 'hide', + 'is-fullwidth-mobile': this.mobile === 'fullwidth' + }]; + }, + cancelOptions: function cancelOptions() { + return typeof this.canCancel === 'boolean' ? this.canCancel ? ['escape', 'outside'] : [] : this.canCancel; + }, + isStatic: function isStatic() { + return this.position === 'static'; + }, + isFixed: function isFixed() { + return this.position === 'fixed'; + }, + isAbsolute: function isAbsolute() { + return this.position === 'absolute'; + }, + + /** + * White-listed items to not close when clicked. + * Add sidebar content and all children. + */ + whiteList: function whiteList() { + var whiteList = []; + whiteList.push(this.$refs.sidebarContent); // Add all chidren from dropdown + + if (this.$refs.sidebarContent !== undefined) { + var children = this.$refs.sidebarContent.querySelectorAll('*'); + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var child = _step.value; + whiteList.push(child); + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + } + + return whiteList; + } + }, + watch: { + open: { + handler: function handler(value) { + this.isOpen = value; + var open = this.right ? !value : value; + this.transitionName = !open ? 'slide-prev' : 'slide-next'; + }, + immediate: true + } + }, + methods: { + /** + * Keypress event that is bound to the document. + */ + keyPress: function keyPress(_ref) { + var key = _ref.key; + + if (this.isFixed) { + if (this.isOpen && (key === 'Escape' || key === 'Esc')) this.cancel('escape'); + } + }, + + /** + * Close the Sidebar if canCancel and call the onCancel prop (function). + */ + cancel: function cancel(method) { + if (this.cancelOptions.indexOf(method) < 0) return; + if (this.isStatic) return; + this.onCancel.apply(null, arguments); + this.close(); + }, + + /** + * Call the onCancel prop (function) and emit events + */ + close: function close() { + this.isOpen = false; + this.$emit('close'); + this.$emit('update:open', false); + }, + + /** + * Close fixed sidebar if clicked outside. + */ + clickedOutside: function clickedOutside(event) { + if (this.isFixed) { + if (this.isOpen && !this.animating) { + var target = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["isCustomElement"])(this) ? event.composedPath()[0] : event.target; + + if (this.whiteList.indexOf(target) < 0) { + this.cancel('outside'); + } + } + } + }, + + /** + * Transition before-enter hook + */ + beforeEnter: function beforeEnter() { + this.animating = true; + }, + + /** + * Transition after-leave hook + */ + afterEnter: function afterEnter() { + this.animating = false; + } + }, + created: function created() { + if (typeof window !== 'undefined') { + document.addEventListener('keyup', this.keyPress); + document.addEventListener('click', this.clickedOutside); + } + }, + mounted: function mounted() { + if (typeof window !== 'undefined') { + if (this.isFixed) { + document.body.appendChild(this.$el); + } + } + }, + beforeDestroy: function beforeDestroy() { + if (typeof window !== 'undefined') { + document.removeEventListener('keyup', this.keyPress); + document.removeEventListener('click', this.clickedOutside); + } + + if (this.isFixed) { + Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["removeElement"])(this.$el); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-sidebar"},[(_vm.overlay && _vm.isOpen)?_c('div',{staticClass:"sidebar-background"}):_vm._e(),_c('transition',{attrs:{"name":_vm.transitionName},on:{"before-enter":_vm.beforeEnter,"after-enter":_vm.afterEnter}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isOpen),expression:"isOpen"}],ref:"sidebarContent",staticClass:"sidebar-content",class:_vm.rootClasses},[_vm._t("default")],2)])],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Sidebar = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__["r"])(Vue, Sidebar); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_2__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/skeleton.js": +/*!*************************************************!*\ + !*** ./node_modules/buefy/dist/esm/skeleton.js ***! + \*************************************************/ +/*! exports provided: default, BSkeleton */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BSkeleton", function() { return Skeleton; }); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + +var script = { + name: 'BSkeleton', + functional: true, + props: { + active: { + type: Boolean, + default: true + }, + animated: { + type: Boolean, + default: true + }, + width: [Number, String], + height: [Number, String], + circle: Boolean, + rounded: { + type: Boolean, + default: true + }, + count: { + type: Number, + default: 1 + }, + position: { + type: String, + default: '', + validator: function validator(value) { + return ['', 'is-centered', 'is-right'].indexOf(value) > -1; + } + }, + size: String + }, + render: function render(createElement, context) { + if (!context.props.active) return; + var items = []; + var width = context.props.width; + var height = context.props.height; + + for (var i = 0; i < context.props.count; i++) { + items.push(createElement('div', { + staticClass: 'b-skeleton-item', + class: { + 'is-rounded': context.props.rounded + }, + key: i, + style: { + height: height === undefined ? null : isNaN(height) ? height : height + 'px', + width: width === undefined ? null : isNaN(width) ? width : width + 'px', + borderRadius: context.props.circle ? '50%' : null + } + })); + } + + return createElement('div', { + staticClass: 'b-skeleton', + class: [context.props.size, context.props.position, { + 'is-animated': context.props.animated + }] + }, items); + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = undefined; + /* style inject */ + + /* style inject SSR */ + + + + var Skeleton = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["_"])( + {}, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["r"])(Vue, Skeleton); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/slider.js": +/*!***********************************************!*\ + !*** ./node_modules/buefy/dist/esm/slider.js ***! + \***********************************************/ +/*! exports provided: default, BSlider, BSliderTick */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BSlider", function() { return Slider; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BSliderTick", function() { return SliderTick; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_1252e7e2_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-1252e7e2.js */ "./node_modules/buefy/dist/esm/chunk-1252e7e2.js"); + + + + + + +var script = { + name: 'BSliderThumb', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_1252e7e2_js__WEBPACK_IMPORTED_MODULE_4__["T"].name, _chunk_1252e7e2_js__WEBPACK_IMPORTED_MODULE_4__["T"]), + inheritAttrs: false, + props: { + value: { + type: Number, + default: 0 + }, + type: { + type: String, + default: '' + }, + tooltip: { + type: Boolean, + default: true + }, + customFormatter: Function + }, + data: function data() { + return { + isFocused: false, + dragging: false, + startX: 0, + startPosition: 0, + newPosition: null, + oldValue: this.value + }; + }, + computed: { + disabled: function disabled() { + return this.$parent.disabled; + }, + max: function max() { + return this.$parent.max; + }, + min: function min() { + return this.$parent.min; + }, + step: function step() { + return this.$parent.step; + }, + precision: function precision() { + return this.$parent.precision; + }, + currentPosition: function currentPosition() { + return "".concat((this.value - this.min) / (this.max - this.min) * 100, "%"); + }, + wrapperStyle: function wrapperStyle() { + return { + left: this.currentPosition + }; + }, + tooltipLabel: function tooltipLabel() { + return typeof this.customFormatter !== 'undefined' ? this.customFormatter(this.value) : this.value.toString(); + } + }, + methods: { + onFocus: function onFocus() { + this.isFocused = true; + }, + onBlur: function onBlur() { + this.isFocused = false; + }, + onButtonDown: function onButtonDown(event) { + if (this.disabled) return; + event.preventDefault(); + this.onDragStart(event); + + if (typeof window !== 'undefined') { + document.addEventListener('mousemove', this.onDragging); + document.addEventListener('touchmove', this.onDragging); + document.addEventListener('mouseup', this.onDragEnd); + document.addEventListener('touchend', this.onDragEnd); + document.addEventListener('contextmenu', this.onDragEnd); + } + }, + onLeftKeyDown: function onLeftKeyDown() { + if (this.disabled || this.value === this.min) return; + this.newPosition = parseFloat(this.currentPosition) - this.step / (this.max - this.min) * 100; + this.setPosition(this.newPosition); + this.$parent.emitValue('change'); + }, + onRightKeyDown: function onRightKeyDown() { + if (this.disabled || this.value === this.max) return; + this.newPosition = parseFloat(this.currentPosition) + this.step / (this.max - this.min) * 100; + this.setPosition(this.newPosition); + this.$parent.emitValue('change'); + }, + onHomeKeyDown: function onHomeKeyDown() { + if (this.disabled || this.value === this.min) return; + this.newPosition = 0; + this.setPosition(this.newPosition); + this.$parent.emitValue('change'); + }, + onEndKeyDown: function onEndKeyDown() { + if (this.disabled || this.value === this.max) return; + this.newPosition = 100; + this.setPosition(this.newPosition); + this.$parent.emitValue('change'); + }, + onDragStart: function onDragStart(event) { + this.dragging = true; + this.$emit('dragstart'); + + if (event.type === 'touchstart') { + event.clientX = event.touches[0].clientX; + } + + this.startX = event.clientX; + this.startPosition = parseFloat(this.currentPosition); + this.newPosition = this.startPosition; + }, + onDragging: function onDragging(event) { + if (this.dragging) { + if (event.type === 'touchmove') { + event.clientX = event.touches[0].clientX; + } + + var diff = (event.clientX - this.startX) / this.$parent.sliderSize() * 100; + this.newPosition = this.startPosition + diff; + this.setPosition(this.newPosition); + } + }, + onDragEnd: function onDragEnd() { + this.dragging = false; + this.$emit('dragend'); + + if (this.value !== this.oldValue) { + this.$parent.emitValue('change'); + } + + this.setPosition(this.newPosition); + + if (typeof window !== 'undefined') { + document.removeEventListener('mousemove', this.onDragging); + document.removeEventListener('touchmove', this.onDragging); + document.removeEventListener('mouseup', this.onDragEnd); + document.removeEventListener('touchend', this.onDragEnd); + document.removeEventListener('contextmenu', this.onDragEnd); + } + }, + setPosition: function setPosition(percent) { + if (percent === null || isNaN(percent)) return; + + if (percent < 0) { + percent = 0; + } else if (percent > 100) { + percent = 100; + } + + var stepLength = 100 / ((this.max - this.min) / this.step); + var steps = Math.round(percent / stepLength); + var value = steps * stepLength / 100 * (this.max - this.min) + this.min; + value = parseFloat(value.toFixed(this.precision)); + this.$emit('input', value); + + if (!this.dragging && value !== this.oldValue) { + this.oldValue = value; + } + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-slider-thumb-wrapper",class:{ 'is-dragging': _vm.dragging },style:(_vm.wrapperStyle)},[_c('b-tooltip',{attrs:{"label":_vm.tooltipLabel,"type":_vm.type,"always":_vm.dragging || _vm.isFocused,"active":!_vm.disabled && _vm.tooltip}},[_c('div',_vm._b({staticClass:"b-slider-thumb",attrs:{"tabindex":_vm.disabled ? false : 0},on:{"mousedown":_vm.onButtonDown,"touchstart":_vm.onButtonDown,"focus":_vm.onFocus,"blur":_vm.onBlur,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"left",37,$event.key,["Left","ArrowLeft"])){ return null; }if('button' in $event && $event.button !== 0){ return null; }$event.preventDefault();return _vm.onLeftKeyDown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"right",39,$event.key,["Right","ArrowRight"])){ return null; }if('button' in $event && $event.button !== 2){ return null; }$event.preventDefault();return _vm.onRightKeyDown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.onLeftKeyDown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.onRightKeyDown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.preventDefault();return _vm.onHomeKeyDown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.preventDefault();return _vm.onEndKeyDown($event)}]}},'div',_vm.$attrs,false))])],1)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var SliderThumb = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +// +// +// +// +// +// +// +// +// +// +// +var script$1 = { + name: 'BSliderTick', + props: { + value: { + type: Number, + default: 0 + } + }, + computed: { + position: function position() { + var pos = (this.value - this.$parent.min) / (this.$parent.max - this.$parent.min) * 100; + return pos >= 0 && pos <= 100 ? pos : 0; + }, + hidden: function hidden() { + return this.value === this.$parent.min || this.value === this.$parent.max; + } + }, + methods: { + getTickStyle: function getTickStyle(position) { + return { + 'left': position + '%' + }; + } + }, + created: function created() { + if (!this.$parent.$data._isSlider) { + this.$destroy(); + throw new Error('You should wrap bSliderTick on a bSlider'); + } + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-slider-tick",class:{ 'is-tick-hidden': _vm.hidden },style:(_vm.getTickStyle(_vm.position))},[(_vm.$slots.default)?_c('span',{staticClass:"b-slider-tick-label"},[_vm._t("default")],2):_vm._e()])}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = false; + /* style inject */ + + /* style inject SSR */ + + + + var SliderTick = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +var _components; +var script$2 = { + name: 'BSlider', + components: (_components = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, SliderThumb.name, SliderThumb), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, SliderTick.name, SliderTick), _components), + props: { + value: { + type: [Number, Array], + default: 0 + }, + min: { + type: Number, + default: 0 + }, + max: { + type: Number, + default: 100 + }, + step: { + type: Number, + default: 1 + }, + type: { + type: String, + default: 'is-primary' + }, + size: String, + ticks: { + type: Boolean, + default: false + }, + tooltip: { + type: Boolean, + default: true + }, + tooltipType: String, + rounded: { + type: Boolean, + default: false + }, + disabled: { + type: Boolean, + default: false + }, + lazy: { + type: Boolean, + default: false + }, + customFormatter: Function, + ariaLabel: [String, Array], + biggerSliderFocus: { + type: Boolean, + default: false + } + }, + data: function data() { + return { + value1: null, + value2: null, + dragging: false, + isRange: false, + _isSlider: true // Used by Thumb and Tick + + }; + }, + computed: { + newTooltipType: function newTooltipType() { + return this.tooltipType ? this.tooltipType : this.type; + }, + tickValues: function tickValues() { + if (!this.ticks || this.min > this.max || this.step === 0) return []; + var result = []; + + for (var i = this.min + this.step; i < this.max; i = i + this.step) { + result.push(i); + } + + return result; + }, + minValue: function minValue() { + return Math.min(this.value1, this.value2); + }, + maxValue: function maxValue() { + return Math.max(this.value1, this.value2); + }, + barSize: function barSize() { + return this.isRange ? "".concat(100 * (this.maxValue - this.minValue) / (this.max - this.min), "%") : "".concat(100 * (this.value1 - this.min) / (this.max - this.min), "%"); + }, + barStart: function barStart() { + return this.isRange ? "".concat(100 * (this.minValue - this.min) / (this.max - this.min), "%") : '0%'; + }, + precision: function precision() { + var precisions = [this.min, this.max, this.step].map(function (item) { + var decimal = ('' + item).split('.')[1]; + return decimal ? decimal.length : 0; + }); + return Math.max.apply(Math, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["d"])(precisions)); + }, + barStyle: function barStyle() { + return { + width: this.barSize, + left: this.barStart + }; + }, + rootClasses: function rootClasses() { + return { + 'is-rounded': this.rounded, + 'is-dragging': this.dragging, + 'is-disabled': this.disabled, + 'slider-focus': this.biggerSliderFocus + }; + } + }, + watch: { + /** + * When v-model is changed set the new active step. + */ + value: function value(_value) { + this.setValues(_value); + }, + value1: function value1() { + this.onInternalValueUpdate(); + }, + value2: function value2() { + this.onInternalValueUpdate(); + }, + min: function min() { + this.setValues(this.value); + }, + max: function max() { + this.setValues(this.value); + } + }, + methods: { + setValues: function setValues(newValue) { + if (this.min > this.max) { + return; + } + + if (Array.isArray(newValue)) { + this.isRange = true; + var smallValue = typeof newValue[0] !== 'number' || isNaN(newValue[0]) ? this.min : Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["bound"])(newValue[0], this.min, this.max); + var largeValue = typeof newValue[1] !== 'number' || isNaN(newValue[1]) ? this.max : Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["bound"])(newValue[1], this.min, this.max); + this.value1 = this.isThumbReversed ? largeValue : smallValue; + this.value2 = this.isThumbReversed ? smallValue : largeValue; + } else { + this.isRange = false; + this.value1 = isNaN(newValue) ? this.min : Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["bound"])(newValue, this.min, this.max); + this.value2 = null; + } + }, + onInternalValueUpdate: function onInternalValueUpdate() { + if (this.isRange) { + this.isThumbReversed = this.value1 > this.value2; + } + + if (!this.lazy || !this.dragging) { + this.emitValue('input'); + } + + if (this.dragging) { + this.emitValue('dragging'); + } + }, + sliderSize: function sliderSize() { + return this.$refs.slider.getBoundingClientRect().width; + }, + onSliderClick: function onSliderClick(event) { + if (this.disabled || this.isTrackClickDisabled) return; + var sliderOffsetLeft = this.$refs.slider.getBoundingClientRect().left; + var percent = (event.clientX - sliderOffsetLeft) / this.sliderSize() * 100; + var targetValue = this.min + percent * (this.max - this.min) / 100; + var diffFirst = Math.abs(targetValue - this.value1); + + if (!this.isRange) { + if (diffFirst < this.step / 2) return; + this.$refs.button1.setPosition(percent); + } else { + var diffSecond = Math.abs(targetValue - this.value2); + + if (diffFirst <= diffSecond) { + if (diffFirst < this.step / 2) return; + this.$refs['button1'].setPosition(percent); + } else { + if (diffSecond < this.step / 2) return; + this.$refs['button2'].setPosition(percent); + } + } + + this.emitValue('change'); + }, + onDragStart: function onDragStart() { + this.dragging = true; + this.$emit('dragstart'); + }, + onDragEnd: function onDragEnd() { + var _this = this; + + this.isTrackClickDisabled = true; + setTimeout(function () { + // avoid triggering onSliderClick after dragend + _this.isTrackClickDisabled = false; + }, 0); + this.dragging = false; + this.$emit('dragend'); + + if (this.lazy) { + this.emitValue('input'); + } + }, + emitValue: function emitValue(type) { + this.$emit(type, this.isRange ? [this.minValue, this.maxValue] : this.value1); + } + }, + created: function created() { + this.isThumbReversed = false; + this.isTrackClickDisabled = false; + this.setValues(this.value); + } +}; + +/* script */ +const __vue_script__$2 = script$2; + +/* template */ +var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-slider",class:[_vm.size, _vm.type, _vm.rootClasses ],on:{"click":_vm.onSliderClick}},[_c('div',{ref:"slider",staticClass:"b-slider-track"},[_c('div',{staticClass:"b-slider-fill",style:(_vm.barStyle)}),(_vm.ticks)?_vm._l((_vm.tickValues),function(val,key){return _c('b-slider-tick',{key:key,attrs:{"value":val}})}):_vm._e(),_vm._t("default"),_c('b-slider-thumb',{ref:"button1",attrs:{"type":_vm.newTooltipType,"tooltip":_vm.tooltip,"custom-formatter":_vm.customFormatter,"role":"slider","aria-valuenow":_vm.value1,"aria-valuemin":_vm.min,"aria-valuemax":_vm.max,"aria-orientation":"horizontal","aria-label":Array.isArray(_vm.ariaLabel) ? _vm.ariaLabel[0] : _vm.ariaLabel,"aria-disabled":_vm.disabled},on:{"dragstart":_vm.onDragStart,"dragend":_vm.onDragEnd},model:{value:(_vm.value1),callback:function ($$v) {_vm.value1=$$v;},expression:"value1"}}),(_vm.isRange)?_c('b-slider-thumb',{ref:"button2",attrs:{"type":_vm.newTooltipType,"tooltip":_vm.tooltip,"custom-formatter":_vm.customFormatter,"role":"slider","aria-valuenow":_vm.value2,"aria-valuemin":_vm.min,"aria-valuemax":_vm.max,"aria-orientation":"horizontal","aria-label":Array.isArray(_vm.ariaLabel) ? _vm.ariaLabel[1] : '',"aria-disabled":_vm.disabled},on:{"dragstart":_vm.onDragStart,"dragend":_vm.onDragEnd},model:{value:(_vm.value2),callback:function ($$v) {_vm.value2=$$v;},expression:"value2"}}):_vm._e()],2)])}; +var __vue_staticRenderFns__$2 = []; + + /* style */ + const __vue_inject_styles__$2 = undefined; + /* scoped */ + const __vue_scope_id__$2 = undefined; + /* module identifier */ + const __vue_module_identifier__$2 = undefined; + /* functional template */ + const __vue_is_functional_template__$2 = false; + /* style inject */ + + /* style inject SSR */ + + + + var Slider = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 }, + __vue_inject_styles__$2, + __vue_script__$2, + __vue_scope_id__$2, + __vue_is_functional_template__$2, + __vue_module_identifier__$2, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["r"])(Vue, Slider); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["r"])(Vue, SliderTick); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/snackbar.js": +/*!*************************************************!*\ + !*** ./node_modules/buefy/dist/esm/snackbar.js ***! + \*************************************************/ +/*! exports provided: default, BSnackbar, SnackbarProgrammatic */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BSnackbar", function() { return Snackbar; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SnackbarProgrammatic", function() { return SnackbarProgrammatic; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_220749df_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-220749df.js */ "./node_modules/buefy/dist/esm/chunk-220749df.js"); + + + + + + +// +var script = { + name: 'BSnackbar', + mixins: [_chunk_220749df_js__WEBPACK_IMPORTED_MODULE_4__["N"]], + props: { + actionText: { + type: String, + default: 'OK' + }, + onAction: { + type: Function, + default: function _default() {} + }, + indefinite: { + type: Boolean, + default: false + } + }, + data: function data() { + return { + newDuration: this.duration || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultSnackbarDuration + }; + }, + methods: { + /** + * Click listener. + * Call action prop before closing (from Mixin). + */ + action: function action() { + this.onAction(); + this.close(); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"enter-active-class":_vm.transition.enter,"leave-active-class":_vm.transition.leave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"snackbar",class:[_vm.type,_vm.position],attrs:{"role":_vm.actionText ? 'alertdialog' : 'alert'}},[_c('div',{staticClass:"text"},[(_vm.$slots.default)?[_vm._t("default")]:[_vm._v(" "+_vm._s(_vm.message)+" ")]],2),(_vm.actionText)?_c('div',{staticClass:"action",class:_vm.type,on:{"click":_vm.action}},[_c('button',{staticClass:"button"},[_vm._v(_vm._s(_vm.actionText))])]):_vm._e()])])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Snackbar = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var localVueInstance; +var SnackbarProgrammatic = { + open: function open(params) { + var parent; + + if (typeof params === 'string') { + params = { + message: params + }; + } + + var defaultParam = { + type: 'is-success', + position: _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultSnackbarPosition || 'is-bottom-right' + }; + + if (params.parent) { + parent = params.parent; + delete params.parent; + } + + var slot = params.message; + delete params.message; + var propsData = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(defaultParam, params); + var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["V"]; + var SnackbarComponent = vm.extend(Snackbar); + var component = new SnackbarComponent({ + parent: parent, + el: document.createElement('div'), + propsData: propsData + }); + + if (slot) { + component.$slots.default = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["toVDom"])(slot, component.$createElement); + component.$forceUpdate(); + } + + return component; + } +}; +var Plugin = { + install: function install(Vue) { + localVueInstance = Vue; + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["a"])(Vue, 'snackbar', SnackbarProgrammatic); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/steps.js": +/*!**********************************************!*\ + !*** ./node_modules/buefy/dist/esm/steps.js ***! + \**********************************************/ +/*! exports provided: default, BStepItem, BSteps */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BStepItem", function() { return StepItem; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BSteps", function() { return Steps; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); +/* harmony import */ var _chunk_8d37a17c_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-8d37a17c.js */ "./node_modules/buefy/dist/esm/chunk-8d37a17c.js"); +/* harmony import */ var _chunk_db739ac6_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-db739ac6.js */ "./node_modules/buefy/dist/esm/chunk-db739ac6.js"); + + + + + + + + + +var script = { + name: 'BSteps', + components: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({}, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__["I"]), + mixins: [Object(_chunk_db739ac6_js__WEBPACK_IMPORTED_MODULE_7__["T"])('step')], + props: { + type: [String, Object], + iconPack: String, + iconPrev: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconPrev; + } + }, + iconNext: { + type: String, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultIconNext; + } + }, + hasNavigation: { + type: Boolean, + default: true + }, + labelPosition: { + type: String, + validator: function validator(value) { + return ['bottom', 'right', 'left'].indexOf(value) > -1; + }, + default: 'bottom' + }, + rounded: { + type: Boolean, + default: true + }, + mobileMode: { + type: String, + validator: function validator(value) { + return ['minimalist', 'compact'].indexOf(value) > -1; + }, + default: 'minimalist' + }, + ariaNextLabel: String, + ariaPreviousLabel: String + }, + computed: { + // Override mixin implementation to always have a value + activeItem: function activeItem() { + var _this = this; + + return this.childItems.find(function (i) { + return i.value === _this.activeId; + }) || this.items[0]; + }, + wrapperClasses: function wrapperClasses() { + return [this.size, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({ + 'is-vertical': this.vertical + }, this.position, this.position && this.vertical)]; + }, + mainClasses: function mainClasses() { + return [this.type, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({ + 'has-label-right': this.labelPosition === 'right', + 'has-label-left': this.labelPosition === 'left', + 'is-animated': this.animated, + 'is-rounded': this.rounded + }, "mobile-".concat(this.mobileMode), this.mobileMode !== null)]; + }, + + /** + * Check if previous button is available. + */ + hasPrev: function hasPrev() { + return !!this.prevItem; + }, + + /** + * Retrieves the next visible item + */ + nextItem: function nextItem() { + var nextItem = null; + var idx = this.activeItem ? this.items.indexOf(this.activeItem) + 1 : 0; + + for (; idx < this.items.length; idx++) { + if (this.items[idx].visible) { + nextItem = this.items[idx]; + break; + } + } + + return nextItem; + }, + + /** + * Retrieves the previous visible item + */ + prevItem: function prevItem() { + if (!this.activeItem) { + return null; + } + + var prevItem = null; + + for (var idx = this.items.indexOf(this.activeItem) - 1; idx >= 0; idx--) { + if (this.items[idx].visible) { + prevItem = this.items[idx]; + break; + } + } + + return prevItem; + }, + + /** + * Check if next button is available. + */ + hasNext: function hasNext() { + return !!this.nextItem; + }, + navigationProps: function navigationProps() { + return { + previous: { + disabled: !this.hasPrev, + action: this.prev + }, + next: { + disabled: !this.hasNext, + action: this.next + } + }; + } + }, + methods: { + /** + * Return if the step should be clickable or not. + */ + isItemClickable: function isItemClickable(stepItem) { + if (stepItem.clickable === undefined) { + return stepItem.index < this.activeItem.index; + } + + return stepItem.clickable; + }, + + /** + * Previous button click listener. + */ + prev: function prev() { + if (this.hasPrev) { + this.activeId = this.prevItem.value; + } + }, + + /** + * Previous button click listener. + */ + next: function next() { + if (this.hasNext) { + this.activeId = this.nextItem.value; + } + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-steps",class:_vm.wrapperClasses},[_c('nav',{staticClass:"steps",class:_vm.mainClasses},[_c('ul',{staticClass:"step-items"},_vm._l((_vm.items),function(childItem){return _c('li',{directives:[{name:"show",rawName:"v-show",value:(childItem.visible),expression:"childItem.visible"}],key:childItem.value,staticClass:"step-item",class:[childItem.type || _vm.type, childItem.headerClass, { + 'is-active': childItem.isActive, + 'is-previous': _vm.activeItem.index > childItem.index + }]},[_c('a',{staticClass:"step-link",class:{'is-clickable': _vm.isItemClickable(childItem)},on:{"click":function($event){_vm.isItemClickable(childItem) && _vm.childClick(childItem);}}},[_c('div',{staticClass:"step-marker"},[(childItem.icon)?_c('b-icon',{attrs:{"icon":childItem.icon,"pack":childItem.iconPack,"size":_vm.size}}):(childItem.step)?_c('span',[_vm._v(_vm._s(childItem.step))]):_vm._e()],1),_c('div',{staticClass:"step-details"},[_c('span',{staticClass:"step-title"},[_vm._v(_vm._s(childItem.label))])])])])}),0)]),_c('section',{staticClass:"step-content",class:{'is-transitioning': _vm.isTransitioning}},[_vm._t("default")],2),_vm._t("navigation",[(_vm.hasNavigation)?_c('nav',{staticClass:"step-navigation"},[_c('a',{staticClass:"pagination-previous",attrs:{"role":"button","disabled":_vm.navigationProps.previous.disabled,"aria-label":_vm.ariaPreviousLabel},on:{"click":function($event){$event.preventDefault();return _vm.navigationProps.previous.action($event)}}},[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),_c('a',{staticClass:"pagination-next",attrs:{"role":"button","disabled":_vm.navigationProps.next.disabled,"aria-label":_vm.ariaNextLabel},on:{"click":function($event){$event.preventDefault();return _vm.navigationProps.next.action($event)}}},[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1)]):_vm._e()],{"previous":_vm.navigationProps.previous,"next":_vm.navigationProps.next})],2)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Steps = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var script$1 = { + name: 'BStepItem', + mixins: [Object(_chunk_db739ac6_js__WEBPACK_IMPORTED_MODULE_7__["a"])('step')], + props: { + step: [String, Number], + type: [String, Object], + clickable: { + type: Boolean, + default: undefined + } + }, + data: function data() { + return { + elementClass: 'step-item' + }; + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = undefined; + /* style inject */ + + /* style inject SSR */ + + + + var StepItem = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + {}, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, Steps); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, StepItem); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/switch.js": +/*!***********************************************!*\ + !*** ./node_modules/buefy/dist/esm/switch.js ***! + \***********************************************/ +/*! exports provided: default, BSwitch */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BSwitch", function() { return Switch; }); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +var script = { + name: 'BSwitch', + props: { + value: [String, Number, Boolean, Function, Object, Array, Date], + nativeValue: [String, Number, Boolean, Function, Object, Array, Date], + disabled: Boolean, + type: String, + passiveType: String, + name: String, + required: Boolean, + size: String, + trueValue: { + type: [String, Number, Boolean, Function, Object, Array, Date], + default: true + }, + falseValue: { + type: [String, Number, Boolean, Function, Object, Array, Date], + default: false + }, + rounded: { + type: Boolean, + default: true + }, + outlined: { + type: Boolean, + default: false + } + }, + data: function data() { + return { + newValue: this.value, + isMouseDown: false + }; + }, + computed: { + computedValue: { + get: function get() { + return this.newValue; + }, + set: function set(value) { + this.newValue = value; + this.$emit('input', value); + } + }, + newClass: function newClass() { + return [this.size, { + 'is-disabled': this.disabled, + 'is-rounded': this.rounded, + 'is-outlined': this.outlined + }]; + }, + checkClasses: function checkClasses() { + return [{ + 'is-elastic': this.isMouseDown && !this.disabled + }, this.passiveType && "".concat(this.passiveType, "-passive"), this.type]; + } + }, + watch: { + /** + * When v-model change, set internal value. + */ + value: function value(_value) { + this.newValue = _value; + } + }, + methods: { + focus: function focus() { + // MacOS FireFox and Safari do not focus when clicked + this.$refs.input.focus(); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:"label",staticClass:"switch",class:_vm.newClass,attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.$refs.label.click()},"mousedown":function($event){_vm.isMouseDown = true;},"mouseup":function($event){_vm.isMouseDown = false;},"mouseout":function($event){_vm.isMouseDown = false;},"blur":function($event){_vm.isMouseDown = false;}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"checkbox","disabled":_vm.disabled,"name":_vm.name,"required":_vm.required,"true-value":_vm.trueValue,"false-value":_vm.falseValue},domProps:{"value":_vm.nativeValue,"checked":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:_vm._q(_vm.computedValue,_vm.trueValue)},on:{"click":function($event){$event.stopPropagation();},"change":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(_vm.trueValue):(_vm.falseValue);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else{$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.computedValue=$$c;}}}}),_c('span',{staticClass:"check",class:_vm.checkClasses}),_c('span',{staticClass:"control-label"},[_vm._t("default")],2)])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Switch = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["r"])(Vue, Switch); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/table.js": +/*!**********************************************!*\ + !*** ./node_modules/buefy/dist/esm/table.js ***! + \**********************************************/ +/*! exports provided: default, BTable, BTableColumn */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BTable", function() { return Table; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BTableColumn", function() { return TableColumn; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony import */ var _chunk_2793447b_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-2793447b.js */ "./node_modules/buefy/dist/esm/chunk-2793447b.js"); +/* harmony import */ var _chunk_d6bb2470_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./chunk-d6bb2470.js */ "./node_modules/buefy/dist/esm/chunk-d6bb2470.js"); +/* harmony import */ var _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./chunk-97074b53.js */ "./node_modules/buefy/dist/esm/chunk-97074b53.js"); +/* harmony import */ var _chunk_b9bdb0e4_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./chunk-b9bdb0e4.js */ "./node_modules/buefy/dist/esm/chunk-b9bdb0e4.js"); +/* harmony import */ var _chunk_7a49a152_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./chunk-7a49a152.js */ "./node_modules/buefy/dist/esm/chunk-7a49a152.js"); +/* harmony import */ var _chunk_5425f0a4_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./chunk-5425f0a4.js */ "./node_modules/buefy/dist/esm/chunk-5425f0a4.js"); +/* harmony import */ var _chunk_8d37a17c_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./chunk-8d37a17c.js */ "./node_modules/buefy/dist/esm/chunk-8d37a17c.js"); + + + + + + + + + + + + + + + +function debounce (func, wait, immediate) { + var timeout; + return function () { + var context = this; + var args = arguments; + + var later = function later() { + timeout = null; + if (!immediate) func.apply(context, args); + }; + + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) func.apply(context, args); + }; +} + +var _components; +var script = { + name: 'BTableMobileSort', + components: (_components = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_9__["S"].name, _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_9__["S"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__["I"]), _components), + props: { + currentSortColumn: Object, + sortMultipleData: Array, + isAsc: Boolean, + columns: Array, + placeholder: String, + iconPack: String, + sortIcon: { + type: String, + default: 'arrow-up' + }, + sortIconSize: { + type: String, + default: 'is-small' + }, + sortMultiple: { + type: Boolean, + default: false + } + }, + data: function data() { + return { + sortMultipleSelect: '', + mobileSort: this.currentSortColumn, + defaultEvent: { + shiftKey: true, + altKey: true, + ctrlKey: true + }, + ignoreSort: false + }; + }, + computed: { + showPlaceholder: function showPlaceholder() { + var _this = this; + + return !this.columns || !this.columns.some(function (column) { + return column === _this.mobileSort; + }); + } + }, + watch: { + sortMultipleSelect: function sortMultipleSelect(column) { + if (this.ignoreSort) { + this.ignoreSort = false; + } else { + this.$emit('sort', column, this.defaultEvent); + } + }, + mobileSort: function mobileSort(column) { + if (this.currentSortColumn === column) return; + this.$emit('sort', column, this.defaultEvent); + }, + currentSortColumn: function currentSortColumn(column) { + this.mobileSort = column; + } + }, + methods: { + removePriority: function removePriority() { + var _this2 = this; + + this.$emit('removePriority', this.sortMultipleSelect); // ignore the watcher to sort when we just change whats displayed in the select + // otherwise the direction will be flipped + // The sort event is already triggered by the emit + + this.ignoreSort = true; // Select one of the other options when we reset one + + var remainingFields = this.sortMultipleData.filter(function (data) { + return data.field !== _this2.sortMultipleSelect.field; + }).map(function (data) { + return data.field; + }); + this.sortMultipleSelect = this.columns.filter(function (column) { + return remainingFields.includes(column.field); + })[0]; + }, + getSortingObjectOfColumn: function getSortingObjectOfColumn(column) { + return this.sortMultipleData.filter(function (i) { + return i.field === column.field; + })[0]; + }, + columnIsDesc: function columnIsDesc(column) { + var sortingObject = this.getSortingObjectOfColumn(column); + + if (sortingObject) { + return !!(sortingObject.order && sortingObject.order === 'desc'); + } + + return true; + }, + getLabel: function getLabel(column) { + var sortingObject = this.getSortingObjectOfColumn(column); + + if (sortingObject) { + return column.label + '(' + (this.sortMultipleData.indexOf(sortingObject) + 1) + ')'; + } + + return column.label; + }, + sort: function sort() { + this.$emit('sort', this.sortMultiple ? this.sortMultipleSelect : this.mobileSort, this.defaultEvent); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field table-mobile-sort"},[_c('div',{staticClass:"field has-addons"},[(_vm.sortMultiple)?_c('b-select',{attrs:{"expanded":""},model:{value:(_vm.sortMultipleSelect),callback:function ($$v) {_vm.sortMultipleSelect=$$v;},expression:"sortMultipleSelect"}},_vm._l((_vm.columns),function(column,index){return (column.sortable)?_c('option',{key:index,domProps:{"value":column}},[_vm._v(" "+_vm._s(_vm.getLabel(column))+" "),(_vm.getSortingObjectOfColumn(column))?[(_vm.columnIsDesc(column))?[_vm._v(" ↓ ")]:[_vm._v(" ↑ ")]]:_vm._e()],2):_vm._e()}),0):_c('b-select',{attrs:{"expanded":""},model:{value:(_vm.mobileSort),callback:function ($$v) {_vm.mobileSort=$$v;},expression:"mobileSort"}},[(_vm.placeholder)?[_c('option',{directives:[{name:"show",rawName:"v-show",value:(_vm.showPlaceholder),expression:"showPlaceholder"}],attrs:{"selected":"","disabled":"","hidden":""},domProps:{"value":{}}},[_vm._v(" "+_vm._s(_vm.placeholder)+" ")])]:_vm._e(),_vm._l((_vm.columns),function(column,index){return (column.sortable)?_c('option',{key:index,domProps:{"value":column}},[_vm._v(" "+_vm._s(column.label)+" ")]):_vm._e()})],2),_c('div',{staticClass:"control"},[(_vm.sortMultiple && _vm.sortMultipleData.length > 0)?[_c('button',{staticClass:"button is-primary",on:{"click":_vm.sort}},[_c('b-icon',{class:{ 'is-desc': _vm.columnIsDesc(_vm.sortMultipleSelect) },attrs:{"icon":_vm.sortIcon,"pack":_vm.iconPack,"size":_vm.sortIconSize,"both":""}})],1),_c('button',{staticClass:"button is-primary",on:{"click":_vm.removePriority}},[_c('b-icon',{attrs:{"icon":"delete","size":_vm.sortIconSize,"both":""}})],1)]:(!_vm.sortMultiple)?_c('button',{staticClass:"button is-primary",on:{"click":_vm.sort}},[_c('b-icon',{directives:[{name:"show",rawName:"v-show",value:(_vm.currentSortColumn === _vm.mobileSort),expression:"currentSortColumn === mobileSort"}],class:{ 'is-desc': !_vm.isAsc },attrs:{"icon":_vm.sortIcon,"pack":_vm.iconPack,"size":_vm.sortIconSize,"both":""}})],1):_vm._e()],2)],1)])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var TableMobileSort = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var script$1 = { + name: 'BTableColumn', + inject: { + $table: { + name: '$table', + default: false + } + }, + props: { + label: String, + customKey: [String, Number], + field: String, + meta: [String, Number, Boolean, Function, Object, Array], + width: [Number, String], + numeric: Boolean, + centered: Boolean, + searchable: Boolean, + sortable: Boolean, + visible: { + type: Boolean, + default: true + }, + subheading: [String, Number], + customSort: Function, + sticky: Boolean, + headerSelectable: Boolean, + headerClass: String, + cellClass: String + }, + data: function data() { + return { + newKey: this.customKey || this.label, + _isTableColumn: true + }; + }, + computed: { + rootClasses: function rootClasses() { + return [this.cellClass, { + 'has-text-right': this.numeric && !this.centered, + 'has-text-centered': this.centered, + 'is-sticky': this.sticky + }]; + }, + style: function style() { + return { + width: Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["toCssWidth"])(this.width) + }; + }, + hasDefaultSlot: function hasDefaultSlot() { + return !!this.$scopedSlots.default; + }, + + /** + * Return if column header is un-selectable + */ + isHeaderUnSelectable: function isHeaderUnSelectable() { + return !this.headerSelectable && this.sortable; + } + }, + created: function created() { + if (!this.$table) { + this.$destroy(); + throw new Error('You should wrap bTableColumn on a bTable'); + } + + this.$table.refreshSlots(); + }, + render: function render(createElement) { + // renderless + return null; + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = undefined; + /* style inject */ + + /* style inject SSR */ + + + + var TableColumn = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + {}, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +var script$2 = { + name: 'BTablePagination', + props: { + paginated: Boolean, + total: [Number, String], + perPage: [Number, String], + currentPage: [Number, String], + paginationSimple: Boolean, + paginationSize: String, + rounded: Boolean, + iconPack: String, + ariaNextLabel: String, + ariaPreviousLabel: String, + ariaPageLabel: String, + ariaCurrentLabel: String + }, + data: function data() { + return { + newCurrentPage: this.currentPage + }; + }, + watch: { + currentPage: function currentPage(newVal) { + this.newCurrentPage = newVal; + } + }, + methods: { + /** + * Paginator change listener. + */ + pageChanged: function pageChanged(page) { + this.newCurrentPage = page > 0 ? page : 1; + this.$emit('update:currentPage', this.newCurrentPage); + this.$emit('page-change', this.newCurrentPage); + } + } +}; + +/* script */ +const __vue_script__$2 = script$2; + +/* template */ +var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top level"},[_c('div',{staticClass:"level-left"},[_vm._t("default")],2),_c('div',{staticClass:"level-right"},[(_vm.paginated)?_c('div',{staticClass:"level-item"},[_c('b-pagination',{attrs:{"icon-pack":_vm.iconPack,"total":_vm.total,"per-page":_vm.perPage,"simple":_vm.paginationSimple,"size":_vm.paginationSize,"current":_vm.newCurrentPage,"rounded":_vm.rounded,"aria-next-label":_vm.ariaNextLabel,"aria-previous-label":_vm.ariaPreviousLabel,"aria-page-label":_vm.ariaPageLabel,"aria-current-label":_vm.ariaCurrentLabel},on:{"change":_vm.pageChanged}})],1):_vm._e()])])}; +var __vue_staticRenderFns__$1 = []; + + /* style */ + const __vue_inject_styles__$2 = undefined; + /* scoped */ + const __vue_scope_id__$2 = undefined; + /* module identifier */ + const __vue_module_identifier__$2 = undefined; + /* functional template */ + const __vue_is_functional_template__$2 = false; + /* style inject */ + + /* style inject SSR */ + + + + var TablePagination = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, + __vue_inject_styles__$2, + __vue_script__$2, + __vue_scope_id__$2, + __vue_is_functional_template__$2, + __vue_module_identifier__$2, + undefined, + undefined + ); + +var _components$1; +var script$3 = { + name: 'BTable', + components: (_components$1 = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components$1, _chunk_d6bb2470_js__WEBPACK_IMPORTED_MODULE_8__["C"].name, _chunk_d6bb2470_js__WEBPACK_IMPORTED_MODULE_8__["C"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components$1, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__["I"].name, _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components$1, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__["I"].name, _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__["I"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components$1, _chunk_5425f0a4_js__WEBPACK_IMPORTED_MODULE_12__["P"].name, _chunk_5425f0a4_js__WEBPACK_IMPORTED_MODULE_12__["P"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components$1, _chunk_7a49a152_js__WEBPACK_IMPORTED_MODULE_11__["L"].name, _chunk_7a49a152_js__WEBPACK_IMPORTED_MODULE_11__["L"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components$1, _chunk_8d37a17c_js__WEBPACK_IMPORTED_MODULE_13__["S"].name, _chunk_8d37a17c_js__WEBPACK_IMPORTED_MODULE_13__["S"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components$1, TableMobileSort.name, TableMobileSort), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components$1, TableColumn.name, TableColumn), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components$1, TablePagination.name, TablePagination), _components$1), + inheritAttrs: false, + provide: function provide() { + return { + $table: this + }; + }, + props: { + data: { + type: Array, + default: function _default() { + return []; + } + }, + columns: { + type: Array, + default: function _default() { + return []; + } + }, + bordered: Boolean, + striped: Boolean, + narrowed: Boolean, + hoverable: Boolean, + loading: Boolean, + detailed: Boolean, + checkable: Boolean, + headerCheckable: { + type: Boolean, + default: true + }, + checkboxPosition: { + type: String, + default: 'left', + validator: function validator(value) { + return ['left', 'right'].indexOf(value) >= 0; + } + }, + selected: Object, + isRowSelectable: { + type: Function, + default: function _default() { + return true; + } + }, + focusable: Boolean, + customIsChecked: Function, + isRowCheckable: { + type: Function, + default: function _default() { + return true; + } + }, + checkedRows: { + type: Array, + default: function _default() { + return []; + } + }, + mobileCards: { + type: Boolean, + default: true + }, + defaultSort: [String, Array], + defaultSortDirection: { + type: String, + default: 'asc' + }, + sortIcon: { + type: String, + default: 'arrow-up' + }, + sortIconSize: { + type: String, + default: 'is-small' + }, + sortMultiple: { + type: Boolean, + default: false + }, + sortMultipleData: { + type: Array, + default: function _default() { + return []; + } + }, + sortMultipleKey: { + type: String, + default: null + }, + paginated: Boolean, + currentPage: { + type: Number, + default: 1 + }, + perPage: { + type: [Number, String], + default: 20 + }, + showDetailIcon: { + type: Boolean, + default: true + }, + paginationPosition: { + type: String, + default: 'bottom', + validator: function validator(value) { + return ['bottom', 'top', 'both'].indexOf(value) >= 0; + } + }, + backendSorting: Boolean, + backendFiltering: Boolean, + rowClass: { + type: Function, + default: function _default() { + return ''; + } + }, + openedDetailed: { + type: Array, + default: function _default() { + return []; + } + }, + hasDetailedVisible: { + type: Function, + default: function _default() { + return true; + } + }, + detailKey: { + type: String, + default: '' + }, + customDetailRow: { + type: Boolean, + default: false + }, + backendPagination: Boolean, + total: { + type: [Number, String], + default: 0 + }, + iconPack: String, + mobileSortPlaceholder: String, + customRowKey: String, + draggable: { + type: Boolean, + default: false + }, + scrollable: Boolean, + ariaNextLabel: String, + ariaPreviousLabel: String, + ariaPageLabel: String, + ariaCurrentLabel: String, + stickyHeader: Boolean, + height: [Number, String], + filtersEvent: { + type: String, + default: '' + }, + cardLayout: Boolean, + showHeader: { + type: Boolean, + default: true + }, + debounceSearch: Number + }, + data: function data() { + return { + sortMultipleDataLocal: [], + getValueByPath: _helpers_js__WEBPACK_IMPORTED_MODULE_1__["getValueByPath"], + visibleDetailRows: this.openedDetailed, + newData: this.data, + newDataTotal: this.backendPagination ? this.total : this.data.length, + newCheckedRows: Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["d"])(this.checkedRows), + lastCheckedRowIndex: null, + newCurrentPage: this.currentPage, + currentSortColumn: {}, + isAsc: true, + filters: {}, + defaultSlots: [], + firstTimeSort: true, + // Used by first time initSort + _isTable: true // Used by TableColumn + + }; + }, + computed: { + sortMultipleDataComputed: function sortMultipleDataComputed() { + return this.backendSorting ? this.sortMultipleData : this.sortMultipleDataLocal; + }, + tableClasses: function tableClasses() { + return { + 'is-bordered': this.bordered, + 'is-striped': this.striped, + 'is-narrow': this.narrowed, + 'is-hoverable': (this.hoverable || this.focusable) && this.visibleData.length + }; + }, + tableWrapperClasses: function tableWrapperClasses() { + return { + 'has-mobile-cards': this.mobileCards, + 'has-sticky-header': this.stickyHeader, + 'is-card-list': this.cardLayout, + 'table-container': this.isScrollable, + 'is-relative': this.loading && !this.$slots.loading + }; + }, + + /** + * Splitted data based on the pagination. + */ + visibleData: function visibleData() { + if (!this.paginated) return this.newData; + var currentPage = this.newCurrentPage; + var perPage = this.perPage; + + if (this.newData.length <= perPage) { + return this.newData; + } else { + var start = (currentPage - 1) * perPage; + var end = parseInt(start, 10) + parseInt(perPage, 10); + return this.newData.slice(start, end); + } + }, + visibleColumns: function visibleColumns() { + if (!this.newColumns) return this.newColumns; + return this.newColumns.filter(function (column) { + return column.visible || column.visible === undefined; + }); + }, + + /** + * Check if all rows in the page are checked. + */ + isAllChecked: function isAllChecked() { + var _this = this; + + var validVisibleData = this.visibleData.filter(function (row) { + return _this.isRowCheckable(row); + }); + if (validVisibleData.length === 0) return false; + var isAllChecked = validVisibleData.some(function (currentVisibleRow) { + return Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"])(_this.newCheckedRows, currentVisibleRow, _this.customIsChecked) < 0; + }); + return !isAllChecked; + }, + + /** + * Check if all rows in the page are checkable. + */ + isAllUncheckable: function isAllUncheckable() { + var _this2 = this; + + var validVisibleData = this.visibleData.filter(function (row) { + return _this2.isRowCheckable(row); + }); + return validVisibleData.length === 0; + }, + + /** + * Check if has any sortable column. + */ + hasSortablenewColumns: function hasSortablenewColumns() { + return this.newColumns.some(function (column) { + return column.sortable; + }); + }, + + /** + * Check if has any searchable column. + */ + hasSearchablenewColumns: function hasSearchablenewColumns() { + return this.newColumns.some(function (column) { + return column.searchable; + }); + }, + + /** + * Check if has any column using subheading. + */ + hasCustomSubheadings: function hasCustomSubheadings() { + if (this.$scopedSlots && this.$scopedSlots.subheading) return true; + return this.newColumns.some(function (column) { + return column.subheading || column.$scopedSlots && column.$scopedSlots.subheading; + }); + }, + + /** + * Return total column count based if it's checkable or expanded + */ + columnCount: function columnCount() { + var count = this.newColumns.length; + count += this.checkable ? 1 : 0; + count += this.detailed && this.showDetailIcon ? 1 : 0; + return count; + }, + + /** + * return if detailed row tabled + * will be with chevron column & icon or not + */ + showDetailRowIcon: function showDetailRowIcon() { + return this.detailed && this.showDetailIcon; + }, + + /** + * return if scrollable table + */ + isScrollable: function isScrollable() { + if (this.scrollable) return true; + if (!this.newColumns) return false; + return this.newColumns.some(function (column) { + return column.sticky; + }); + }, + newColumns: function newColumns() { + var _this3 = this; + + if (this.columns && this.columns.length) { + return this.columns.map(function (column) { + var TableColumnComponent = _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["V"].extend(TableColumn); + var component = new TableColumnComponent({ + parent: _this3, + propsData: column + }); + component.$scopedSlots = { + default: function _default(props) { + var vnode = component.$createElement('span', { + domProps: { + innerHTML: Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["getValueByPath"])(props.row, column.field) + } + }); + return [vnode]; + } + }; + return component; + }); + } + + return this.defaultSlots.filter(function (vnode) { + return vnode.componentInstance && vnode.componentInstance.$data && vnode.componentInstance.$data._isTableColumn; + }).map(function (vnode) { + return vnode.componentInstance; + }); + } + }, + watch: { + /** + * When data prop change: + * 1. Update internal value. + * 2. Filter data if it's not backend-filtered. + * 3. Sort again if it's not backend-sorted. + * 4. Set new total if it's not backend-paginated. + */ + data: function data(value) { + var _this4 = this; + + this.newData = value; + + if (!this.backendFiltering) { + this.newData = value.filter(function (row) { + return _this4.isRowFiltered(row); + }); + } + + if (!this.backendSorting) { + this.sort(this.currentSortColumn, true); + } + + if (!this.backendPagination) { + this.newDataTotal = this.newData.length; + } + }, + + /** + * When Pagination total change, update internal total + * only if it's backend-paginated. + */ + total: function total(newTotal) { + if (!this.backendPagination) return; + this.newDataTotal = newTotal; + }, + currentPage: function currentPage(newVal) { + this.newCurrentPage = newVal; + }, + + /** + * When checkedRows prop change, update internal value without + * mutating original data. + */ + checkedRows: function checkedRows(rows) { + this.newCheckedRows = Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["d"])(rows); + }, + + /* + newColumns(value) { + this.checkSort() + }, + */ + debounceSearch: { + handler: function handler(value) { + this.debouncedHandleFiltersChange = debounce(this.handleFiltersChange, value); + }, + immediate: true + }, + filters: { + handler: function handler(value) { + if (this.debounceSearch) { + this.debouncedHandleFiltersChange(value); + } else { + this.handleFiltersChange(value); + } + }, + deep: true + }, + + /** + * When the user wants to control the detailed rows via props. + * Or wants to open the details of certain row with the router for example. + */ + openedDetailed: function openedDetailed(expandedRows) { + this.visibleDetailRows = expandedRows; + } + }, + methods: { + onFiltersEvent: function onFiltersEvent(event) { + this.$emit("filters-event-".concat(this.filtersEvent), { + event: event, + filters: this.filters + }); + }, + handleFiltersChange: function handleFiltersChange(value) { + var _this5 = this; + + if (this.backendFiltering) { + this.$emit('filters-change', value); + } else { + this.newData = this.data.filter(function (row) { + return _this5.isRowFiltered(row); + }); + + if (!this.backendPagination) { + this.newDataTotal = this.newData.length; + } + + if (!this.backendSorting) { + if (this.sortMultiple && this.sortMultipleDataLocal && this.sortMultipleDataLocal.length > 0) { + this.doSortMultiColumn(); + } else if (Object.keys(this.currentSortColumn).length > 0) { + this.doSortSingleColumn(this.currentSortColumn); + } + } + } + }, + findIndexOfSortData: function findIndexOfSortData(column) { + var sortObj = this.sortMultipleDataComputed.filter(function (i) { + return i.field === column.field; + })[0]; + return this.sortMultipleDataComputed.indexOf(sortObj) + 1; + }, + removeSortingPriority: function removeSortingPriority(column) { + if (this.backendSorting) { + this.$emit('sorting-priority-removed', column.field); + } else { + this.sortMultipleDataLocal = this.sortMultipleDataLocal.filter(function (priority) { + return priority.field !== column.field; + }); + var formattedSortingPriority = this.sortMultipleDataLocal.map(function (i) { + return (i.order && i.order === 'desc' ? '-' : '') + i.field; + }); + this.newData = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["multiColumnSort"])(this.newData, formattedSortingPriority); + } + }, + resetMultiSorting: function resetMultiSorting() { + this.sortMultipleDataLocal = []; + this.currentSortColumn = {}; + this.newData = this.data; + }, + + /** + * Sort an array by key without mutating original data. + * Call the user sort function if it was passed. + */ + sortBy: function sortBy(array, key, fn, isAsc) { + var sorted = []; // Sorting without mutating original data + + if (fn && typeof fn === 'function') { + sorted = Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["d"])(array).sort(function (a, b) { + return fn(a, b, isAsc); + }); + } else { + sorted = Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["d"])(array).sort(function (a, b) { + // Get nested values from objects + var newA = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["getValueByPath"])(a, key); + var newB = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["getValueByPath"])(b, key); // sort boolean type + + if (typeof newA === 'boolean' && typeof newB === 'boolean') { + return isAsc ? newA - newB : newB - newA; + } + + if (!newA && newA !== 0) return 1; + if (!newB && newB !== 0) return -1; + if (newA === newB) return 0; + newA = typeof newA === 'string' ? newA.toUpperCase() : newA; + newB = typeof newB === 'string' ? newB.toUpperCase() : newB; + return isAsc ? newA > newB ? 1 : -1 : newA > newB ? -1 : 1; + }); + } + + return sorted; + }, + sortMultiColumn: function sortMultiColumn(column) { + this.currentSortColumn = {}; + + if (!this.backendSorting) { + var existingPriority = this.sortMultipleDataLocal.filter(function (i) { + return i.field === column.field; + })[0]; + + if (existingPriority) { + existingPriority.order = existingPriority.order === 'desc' ? 'asc' : 'desc'; + } else { + this.sortMultipleDataLocal.push({ + field: column.field, + order: column.isAsc + }); + } + + this.doSortMultiColumn(); + } + }, + doSortMultiColumn: function doSortMultiColumn() { + var formattedSortingPriority = this.sortMultipleDataLocal.map(function (i) { + return (i.order && i.order === 'desc' ? '-' : '') + i.field; + }); + this.newData = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["multiColumnSort"])(this.newData, formattedSortingPriority); + }, + + /** + * Sort the column. + * Toggle current direction on column if it's sortable + * and not just updating the prop. + */ + sort: function sort(column) { + var updatingData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var event = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + + if ( // if backend sorting is enabled, just emit the sort press like usual + // if the correct key combination isnt pressed, sort like usual + !this.backendSorting && this.sortMultiple && (this.sortMultipleKey && event[this.sortMultipleKey] || !this.sortMultipleKey)) { + if (updatingData) { + this.doSortMultiColumn(); + } else { + this.sortMultiColumn(column); + } + } else { + if (!column || !column.sortable) return; // sort multiple is enabled but the correct key combination isnt pressed so reset + + if (this.sortMultiple) { + this.sortMultipleDataLocal = []; + } + + if (!updatingData) { + this.isAsc = column === this.currentSortColumn ? !this.isAsc : this.defaultSortDirection.toLowerCase() !== 'desc'; + } + + if (!this.firstTimeSort) { + this.$emit('sort', column.field, this.isAsc ? 'asc' : 'desc', event); + } + + if (!this.backendSorting) { + this.doSortSingleColumn(column); + } + + this.currentSortColumn = column; + } + }, + doSortSingleColumn: function doSortSingleColumn(column) { + this.newData = this.sortBy(this.newData, column.field, column.customSort, this.isAsc); + }, + isRowSelected: function isRowSelected(row, selected) { + if (!selected) { + return false; + } + + if (this.customRowKey) { + return row[this.customRowKey] === selected[this.customRowKey]; + } + + return row === selected; + }, + + /** + * Check if the row is checked (is added to the array). + */ + isRowChecked: function isRowChecked(row) { + return Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"])(this.newCheckedRows, row, this.customIsChecked) >= 0; + }, + + /** + * Remove a checked row from the array. + */ + removeCheckedRow: function removeCheckedRow(row) { + var index = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"])(this.newCheckedRows, row, this.customIsChecked); + + if (index >= 0) { + this.newCheckedRows.splice(index, 1); + } + }, + + /** + * Header checkbox click listener. + * Add or remove all rows in current page. + */ + checkAll: function checkAll() { + var _this6 = this; + + var isAllChecked = this.isAllChecked; + this.visibleData.forEach(function (currentRow) { + if (_this6.isRowCheckable(currentRow)) { + _this6.removeCheckedRow(currentRow); + } + + if (!isAllChecked) { + if (_this6.isRowCheckable(currentRow)) { + _this6.newCheckedRows.push(currentRow); + } + } + }); + this.$emit('check', this.newCheckedRows); + this.$emit('check-all', this.newCheckedRows); // Emit checked rows to update user variable + + this.$emit('update:checkedRows', this.newCheckedRows); + }, + + /** + * Row checkbox click listener. + */ + checkRow: function checkRow(row, index, event) { + if (!this.isRowCheckable(row)) return; + var lastIndex = this.lastCheckedRowIndex; + this.lastCheckedRowIndex = index; + + if (event.shiftKey && lastIndex !== null && index !== lastIndex) { + this.shiftCheckRow(row, index, lastIndex); + } else if (!this.isRowChecked(row)) { + this.newCheckedRows.push(row); + } else { + this.removeCheckedRow(row); + } + + this.$emit('check', this.newCheckedRows, row); // Emit checked rows to update user variable + + this.$emit('update:checkedRows', this.newCheckedRows); + }, + + /** + * Check row when shift is pressed. + */ + shiftCheckRow: function shiftCheckRow(row, index, lastCheckedRowIndex) { + var _this7 = this; + + // Get the subset of the list between the two indicies + var subset = this.visibleData.slice(Math.min(index, lastCheckedRowIndex), Math.max(index, lastCheckedRowIndex) + 1); // Determine the operation based on the state of the clicked checkbox + + var shouldCheck = !this.isRowChecked(row); + subset.forEach(function (item) { + _this7.removeCheckedRow(item); + + if (shouldCheck && _this7.isRowCheckable(item)) { + _this7.newCheckedRows.push(item); + } + }); + }, + + /** + * Row click listener. + * Emit all necessary events. + */ + selectRow: function selectRow(row, index) { + this.$emit('click', row); + if (this.selected === row) return; + if (!this.isRowSelectable(row)) return; // Emit new and old row + + this.$emit('select', row, this.selected); // Emit new row to update user variable + + this.$emit('update:selected', row); + }, + + /** + * Toggle to show/hide details slot + */ + toggleDetails: function toggleDetails(obj) { + var found = this.isVisibleDetailRow(obj); + + if (found) { + this.closeDetailRow(obj); + this.$emit('details-close', obj); + } else { + this.openDetailRow(obj); + this.$emit('details-open', obj); + } // Syncs the detailed rows with the parent component + + + this.$emit('update:openedDetailed', this.visibleDetailRows); + }, + openDetailRow: function openDetailRow(obj) { + var index = this.handleDetailKey(obj); + this.visibleDetailRows.push(index); + }, + closeDetailRow: function closeDetailRow(obj) { + var index = this.handleDetailKey(obj); + var i = this.visibleDetailRows.indexOf(index); + this.visibleDetailRows.splice(i, 1); + }, + isVisibleDetailRow: function isVisibleDetailRow(obj) { + var index = this.handleDetailKey(obj); + var result = this.visibleDetailRows.indexOf(index) >= 0; + return result; + }, + isActiveDetailRow: function isActiveDetailRow(row) { + return this.detailed && !this.customDetailRow && this.isVisibleDetailRow(row); + }, + isActiveCustomDetailRow: function isActiveCustomDetailRow(row) { + return this.detailed && this.customDetailRow && this.isVisibleDetailRow(row); + }, + isRowFiltered: function isRowFiltered(row) { + for (var key in this.filters) { + // remove key if empty + if (!this.filters[key]) { + delete this.filters[key]; + return true; + } + + var value = this.getValueByPath(row, key); + if (value == null) return false; + + if (Number.isInteger(value)) { + if (value !== Number(this.filters[key])) return false; + } else { + var re = new RegExp(Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["escapeRegExpChars"])(this.filters[key]), 'i'); + if (!re.test(value)) return false; + } + } + + return true; + }, + + /** + * When the detailKey is defined we use the object[detailKey] as index. + * If not, use the object reference by default. + */ + handleDetailKey: function handleDetailKey(index) { + var key = this.detailKey; + return !key.length || !index ? index : index[key]; + }, + checkPredefinedDetailedRows: function checkPredefinedDetailedRows() { + var defaultExpandedRowsDefined = this.openedDetailed.length > 0; + + if (defaultExpandedRowsDefined && !this.detailKey.length) { + throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"'); + } + }, + + /** + * Call initSort only first time (For example async data). + */ + checkSort: function checkSort() { + if (this.newColumns.length && this.firstTimeSort) { + this.initSort(); + this.firstTimeSort = false; + } else if (this.newColumns.length) { + if (Object.keys(this.currentSortColumn).length > 0) { + for (var i = 0; i < this.newColumns.length; i++) { + if (this.newColumns[i].field === this.currentSortColumn.field) { + this.currentSortColumn = this.newColumns[i]; + break; + } + } + } + } + }, + + /** + * Check if footer slot has custom content. + */ + hasCustomFooterSlot: function hasCustomFooterSlot() { + if (this.$slots.footer.length > 1) return true; + var tag = this.$slots.footer[0].tag; + if (tag !== 'th' && tag !== 'td') return false; + return true; + }, + + /** + * Check if bottom-left slot exists. + */ + hasBottomLeftSlot: function hasBottomLeftSlot() { + return typeof this.$slots['bottom-left'] !== 'undefined'; + }, + + /** + * Table arrow keys listener, change selection. + */ + pressedArrow: function pressedArrow(pos) { + if (!this.visibleData.length) return; + var index = this.visibleData.indexOf(this.selected) + pos; // Prevent from going up from first and down from last + + index = index < 0 ? 0 : index > this.visibleData.length - 1 ? this.visibleData.length - 1 : index; + var row = this.visibleData[index]; + + if (!this.isRowSelectable(row)) { + var newIndex = null; + + if (pos > 0) { + for (var i = index; i < this.visibleData.length && newIndex === null; i++) { + if (this.isRowSelectable(this.visibleData[i])) newIndex = i; + } + } else { + for (var _i = index; _i >= 0 && newIndex === null; _i--) { + if (this.isRowSelectable(this.visibleData[_i])) newIndex = _i; + } + } + + if (newIndex >= 0) { + this.selectRow(this.visibleData[newIndex]); + } + } else { + this.selectRow(row); + } + }, + + /** + * Focus table element if has selected prop. + */ + focus: function focus() { + if (!this.focusable) return; + this.$el.querySelector('table').focus(); + }, + + /** + * Initial sorted column based on the default-sort prop. + */ + initSort: function initSort() { + var _this8 = this; + + if (this.sortMultiple && this.sortMultipleData) { + this.sortMultipleData.forEach(function (column) { + _this8.sortMultiColumn(column); + }); + } else { + if (!this.defaultSort) return; + var sortField = ''; + var sortDirection = this.defaultSortDirection; + + if (Array.isArray(this.defaultSort)) { + sortField = this.defaultSort[0]; + + if (this.defaultSort[1]) { + sortDirection = this.defaultSort[1]; + } + } else { + sortField = this.defaultSort; + } + + var sortColumn = this.newColumns.filter(function (column) { + return column.field === sortField; + })[0]; + + if (sortColumn) { + this.isAsc = sortDirection.toLowerCase() !== 'desc'; + this.sort(sortColumn, true); + } + } + }, + + /** + * Emits drag start event + */ + handleDragStart: function handleDragStart(event, row, index) { + this.$emit('dragstart', { + event: event, + row: row, + index: index + }); + }, + + /** + * Emits drag leave event + */ + handleDragEnd: function handleDragEnd(event, row, index) { + this.$emit('dragend', { + event: event, + row: row, + index: index + }); + }, + + /** + * Emits drop event + */ + handleDrop: function handleDrop(event, row, index) { + this.$emit('drop', { + event: event, + row: row, + index: index + }); + }, + + /** + * Emits drag over event + */ + handleDragOver: function handleDragOver(event, row, index) { + this.$emit('dragover', { + event: event, + row: row, + index: index + }); + }, + + /** + * Emits drag leave event + */ + handleDragLeave: function handleDragLeave(event, row, index) { + this.$emit('dragleave', { + event: event, + row: row, + index: index + }); + }, + refreshSlots: function refreshSlots() { + this.defaultSlots = this.$slots.default || []; + } + }, + mounted: function mounted() { + this.refreshSlots(); + this.checkPredefinedDetailedRows(); + this.checkSort(); + } +}; + +/* script */ +const __vue_script__$3 = script$3; + +/* template */ +var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-table"},[_vm._t("default"),(_vm.mobileCards && _vm.hasSortablenewColumns)?_c('b-table-mobile-sort',{attrs:{"current-sort-column":_vm.currentSortColumn,"sort-multiple":_vm.sortMultiple,"sort-multiple-data":_vm.sortMultipleDataComputed,"is-asc":_vm.isAsc,"columns":_vm.newColumns,"placeholder":_vm.mobileSortPlaceholder,"icon-pack":_vm.iconPack,"sort-icon":_vm.sortIcon,"sort-icon-size":_vm.sortIconSize},on:{"sort":function (column, event) { return _vm.sort(column, null, event); },"removePriority":function (column) { return _vm.removeSortingPriority(column); }}}):_vm._e(),(_vm.paginated && (_vm.paginationPosition === 'top' || _vm.paginationPosition === 'both'))?[_vm._t("pagination",[_c('b-table-pagination',_vm._b({attrs:{"per-page":_vm.perPage,"paginated":_vm.paginated,"total":_vm.newDataTotal,"current-page":_vm.newCurrentPage},on:{"update:currentPage":function($event){_vm.newCurrentPage=$event;},"update:current-page":function($event){_vm.newCurrentPage=$event;},"page-change":function (event) { return _vm.$emit('page-change', event); }}},'b-table-pagination',_vm.$attrs,false),[_vm._t("top-left")],2)])]:_vm._e(),_c('div',{staticClass:"table-wrapper",class:_vm.tableWrapperClasses,style:({ + height: _vm.height === undefined ? null : + (isNaN(_vm.height) ? _vm.height : _vm.height + 'px') + })},[_c('table',{staticClass:"table",class:_vm.tableClasses,attrs:{"tabindex":!_vm.focusable ? false : 0},on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }if($event.target !== $event.currentTarget){ return null; }$event.preventDefault();return _vm.pressedArrow(-1)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }if($event.target !== $event.currentTarget){ return null; }$event.preventDefault();return _vm.pressedArrow(1)}]}},[(_vm.newColumns.length && _vm.showHeader)?_c('thead',[_c('tr',[(_vm.showDetailRowIcon)?_c('th',{attrs:{"width":"40px"}}):_vm._e(),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('th',{staticClass:"checkbox-cell"},[(_vm.headerCheckable)?[_c('b-checkbox',{attrs:{"value":_vm.isAllChecked,"disabled":_vm.isAllUncheckable},nativeOn:{"change":function($event){return _vm.checkAll($event)}}})]:_vm._e()],2):_vm._e(),_vm._l((_vm.visibleColumns),function(column,index){return _c('th',{key:column.newKey + index + 'header',class:[column.headerClass, { + 'is-current-sort': !_vm.sortMultiple && _vm.currentSortColumn === column, + 'is-sortable': column.sortable, + 'is-sticky': column.sticky, + 'is-unselectable': column.isHeaderUnSelectable + }],style:(column.style),on:{"click":function($event){$event.stopPropagation();return _vm.sort(column, null, $event)}}},[_c('div',{staticClass:"th-wrap",class:{ + 'is-numeric': column.numeric, + 'is-centered': column.centered + }},[(column.$scopedSlots && column.$scopedSlots.header)?[_c('b-slot-component',{attrs:{"component":column,"scoped":"","name":"header","tag":"span","props":{ column: column, index: index }}})]:[_c('span',{staticClass:"is-relative"},[_vm._v(" "+_vm._s(column.label)+" "),(_vm.sortMultiple && + _vm.sortMultipleDataComputed && + _vm.sortMultipleDataComputed.length > 0 && + _vm.sortMultipleDataComputed.filter(function (i) { return i.field === column.field; }).length > 0)?[_c('b-icon',{class:{ + 'is-desc': _vm.sortMultipleDataComputed.filter(function (i) { return i.field === column.field; })[0].order === 'desc'},attrs:{"icon":_vm.sortIcon,"pack":_vm.iconPack,"both":"","size":_vm.sortIconSize}}),_vm._v(" "+_vm._s(_vm.findIndexOfSortData(column))+" "),_c('button',{staticClass:"delete is-small multi-sort-cancel-icon",attrs:{"type":"button"},on:{"click":function($event){$event.stopPropagation();return _vm.removeSortingPriority(column)}}})]:_c('b-icon',{staticClass:"sort-icon",class:{ + 'is-desc': !_vm.isAsc, + 'is-invisible': _vm.currentSortColumn !== column + },attrs:{"icon":_vm.sortIcon,"pack":_vm.iconPack,"both":"","size":_vm.sortIconSize}})],2)]],2)])}),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('th',{staticClass:"checkbox-cell"},[(_vm.headerCheckable)?[_c('b-checkbox',{attrs:{"value":_vm.isAllChecked,"disabled":_vm.isAllUncheckable},nativeOn:{"change":function($event){return _vm.checkAll($event)}}})]:_vm._e()],2):_vm._e()],2),(_vm.hasCustomSubheadings)?_c('tr',{staticClass:"is-subheading"},[(_vm.showDetailRowIcon)?_c('th',{attrs:{"width":"40px"}}):_vm._e(),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('th'):_vm._e(),_vm._l((_vm.visibleColumns),function(column,index){return _c('th',{key:column.newKey + index + 'subheading',style:(column.style)},[_c('div',{staticClass:"th-wrap",class:{ + 'is-numeric': column.numeric, + 'is-centered': column.centered + }},[(column.$scopedSlots && column.$scopedSlots.subheading)?[_c('b-slot-component',{attrs:{"component":column,"scoped":"","name":"subheading","tag":"span","props":{ column: column, index: index }}})]:[_vm._v(_vm._s(column.subheading))]],2)])}),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('th'):_vm._e()],2):_vm._e(),(_vm.hasSearchablenewColumns)?_c('tr',[(_vm.showDetailRowIcon)?_c('th',{attrs:{"width":"40px"}}):_vm._e(),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('th'):_vm._e(),_vm._l((_vm.visibleColumns),function(column,index){return _c('th',{key:column.newKey + index + 'searchable',class:{'is-sticky': column.sticky},style:(column.style)},[_c('div',{staticClass:"th-wrap"},[(column.searchable)?[(column.$scopedSlots + && column.$scopedSlots.searchable)?[_c('b-slot-component',{attrs:{"component":column,"scoped":true,"name":"searchable","tag":"span","props":{ column: column, filters: _vm.filters }}})]:_c('b-input',{attrs:{"type":column.numeric ? 'number' : 'text'},nativeOn:_vm._d({},[_vm.filtersEvent,function($event){return _vm.onFiltersEvent($event)}]),model:{value:(_vm.filters[column.field]),callback:function ($$v) {_vm.$set(_vm.filters, column.field, $$v);},expression:"filters[column.field]"}})]:_vm._e()],2)])}),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('th'):_vm._e()],2):_vm._e()]):_vm._e(),_c('tbody',[_vm._l((_vm.visibleData),function(row,index){return [_c('tr',{key:_vm.customRowKey ? row[_vm.customRowKey] : index,class:[_vm.rowClass(row, index), { + 'is-selected': _vm.isRowSelected(row, _vm.selected), + 'is-checked': _vm.isRowChecked(row), + }],attrs:{"draggable":_vm.draggable},on:{"click":function($event){return _vm.selectRow(row)},"dblclick":function($event){return _vm.$emit('dblclick', row)},"mouseenter":function($event){_vm.$listeners.mouseenter ? _vm.$emit('mouseenter', row) : null;},"mouseleave":function($event){_vm.$listeners.mouseleave ? _vm.$emit('mouseleave', row) : null;},"contextmenu":function($event){return _vm.$emit('contextmenu', row, $event)},"dragstart":function($event){return _vm.handleDragStart($event, row, index)},"dragend":function($event){return _vm.handleDragEnd($event, row, index)},"drop":function($event){return _vm.handleDrop($event, row, index)},"dragover":function($event){return _vm.handleDragOver($event, row, index)},"dragleave":function($event){return _vm.handleDragLeave($event, row, index)}}},[(_vm.showDetailRowIcon)?_c('td',{staticClass:"chevron-cell"},[(_vm.hasDetailedVisible(row))?_c('a',{attrs:{"role":"button"},on:{"click":function($event){$event.stopPropagation();return _vm.toggleDetails(row)}}},[_c('b-icon',{class:{'is-expanded': _vm.isVisibleDetailRow(row)},attrs:{"icon":"chevron-right","pack":_vm.iconPack,"both":""}})],1):_vm._e()]):_vm._e(),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('td',{staticClass:"checkbox-cell"},[_c('b-checkbox',{attrs:{"disabled":!_vm.isRowCheckable(row),"value":_vm.isRowChecked(row)},nativeOn:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.checkRow(row, index, $event)}}})],1):_vm._e(),_vm._l((_vm.visibleColumns),function(column,colindex){return [(column.$scopedSlots && column.$scopedSlots.default)?[_c('b-slot-component',{key:column.newKey + index + ':' + colindex,class:column.rootClasses,attrs:{"component":column,"scoped":"","name":"default","tag":"td","data-label":column.label,"props":{ row: row, column: column, index: index }}})]:_vm._e()]}),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('td',{staticClass:"checkbox-cell"},[_c('b-checkbox',{attrs:{"disabled":!_vm.isRowCheckable(row),"value":_vm.isRowChecked(row)},nativeOn:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.checkRow(row, index, $event)}}})],1):_vm._e()],2),(_vm.isActiveDetailRow(row))?_c('tr',{key:(_vm.customRowKey ? row[_vm.customRowKey] : index) + 'detail',staticClass:"detail"},[_c('td',{attrs:{"colspan":_vm.columnCount}},[_c('div',{staticClass:"detail-container"},[_vm._t("detail",null,{"row":row,"index":index})],2)])]):_vm._e(),(_vm.isActiveCustomDetailRow(row))?_vm._t("detail",null,{"row":row,"index":index}):_vm._e()]}),(!_vm.visibleData.length)?_c('tr',{staticClass:"is-empty"},[_c('td',{attrs:{"colspan":_vm.columnCount}},[_vm._t("empty")],2)]):_vm._e()],2),(_vm.$slots.footer !== undefined)?_c('tfoot',[_c('tr',{staticClass:"table-footer"},[(_vm.hasCustomFooterSlot())?_vm._t("footer"):_c('th',{attrs:{"colspan":_vm.columnCount}},[_vm._t("footer")],2)],2)]):_vm._e()]),(_vm.loading)?[_vm._t("loading",[_c('b-loading',{attrs:{"is-full-page":false,"active":_vm.loading},on:{"update:active":function($event){_vm.loading=$event;}}})])]:_vm._e()],2),((_vm.checkable && _vm.hasBottomLeftSlot()) || + (_vm.paginated && (_vm.paginationPosition === 'bottom' || _vm.paginationPosition === 'both')))?[_vm._t("pagination",[_c('b-table-pagination',_vm._b({attrs:{"per-page":_vm.perPage,"paginated":_vm.paginated,"total":_vm.newDataTotal,"current-page":_vm.newCurrentPage},on:{"update:currentPage":function($event){_vm.newCurrentPage=$event;},"update:current-page":function($event){_vm.newCurrentPage=$event;},"page-change":function (event) { return _vm.$emit('page-change', event); }}},'b-table-pagination',_vm.$attrs,false),[_vm._t("bottom-left")],2)])]:_vm._e()],2)}; +var __vue_staticRenderFns__$2 = []; + + /* style */ + const __vue_inject_styles__$3 = undefined; + /* scoped */ + const __vue_scope_id__$3 = undefined; + /* module identifier */ + const __vue_module_identifier__$3 = undefined; + /* functional template */ + const __vue_is_functional_template__$3 = false; + /* style inject */ + + /* style inject SSR */ + + + + var Table = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 }, + __vue_inject_styles__$3, + __vue_script__$3, + __vue_scope_id__$3, + __vue_is_functional_template__$3, + __vue_module_identifier__$3, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, Table); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, TableColumn); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/tabs.js": +/*!*********************************************!*\ + !*** ./node_modules/buefy/dist/esm/tabs.js ***! + \*********************************************/ +/*! exports provided: default, BTabItem, BTabs */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BTabItem", function() { return TabItem; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BTabs", function() { return Tabs; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); +/* harmony import */ var _chunk_8d37a17c_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-8d37a17c.js */ "./node_modules/buefy/dist/esm/chunk-8d37a17c.js"); +/* harmony import */ var _chunk_db739ac6_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-db739ac6.js */ "./node_modules/buefy/dist/esm/chunk-db739ac6.js"); + + + + + + + + + +var script = { + name: 'BTabs', + mixins: [Object(_chunk_db739ac6_js__WEBPACK_IMPORTED_MODULE_7__["T"])('tab')], + props: { + expanded: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultTabsExpanded; + } + }, + type: { + type: [String, Object], + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultTabsType; + } + }, + animated: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultTabsAnimated; + } + }, + multiline: Boolean + }, + computed: { + mainClasses: function mainClasses() { + return Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])({ + 'is-fullwidth': this.expanded, + 'is-vertical': this.vertical, + 'is-multiline': this.multiline + }, this.position, this.position && this.vertical); + }, + navClasses: function navClasses() { + var _ref2; + + return [this.type, this.size, (_ref2 = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_ref2, this.position, this.position && !this.vertical), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_ref2, 'is-fullwidth', this.expanded), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_ref2, 'is-toggle-rounded is-toggle', this.type === 'is-toggle-rounded'), _ref2)]; + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-tabs",class:_vm.mainClasses},[_c('nav',{staticClass:"tabs",class:_vm.navClasses},[_c('ul',_vm._l((_vm.items),function(childItem){return _c('li',{directives:[{name:"show",rawName:"v-show",value:(childItem.visible),expression:"childItem.visible"}],key:childItem.value,class:[ childItem.headerClass, { 'is-active': childItem.isActive, + 'is-disabled': childItem.disabled }]},[(childItem.$slots.header)?_c('b-slot-component',{attrs:{"component":childItem,"name":"header","tag":"a"},nativeOn:{"click":function($event){return _vm.childClick(childItem)}}}):_c('a',{on:{"click":function($event){return _vm.childClick(childItem)}}},[(childItem.icon)?_c('b-icon',{attrs:{"icon":childItem.icon,"pack":childItem.iconPack,"size":_vm.size}}):_vm._e(),_c('span',[_vm._v(_vm._s(childItem.label))])],1)],1)}),0)]),_c('section',{staticClass:"tab-content",class:{'is-transitioning': _vm.isTransitioning}},[_vm._t("default")],2)])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Tabs = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var script$1 = { + name: 'BTabItem', + mixins: [Object(_chunk_db739ac6_js__WEBPACK_IMPORTED_MODULE_7__["a"])('tab')], + props: { + disabled: Boolean + }, + data: function data() { + return { + elementClass: 'tab-item' + }; + } +}; + +/* script */ +const __vue_script__$1 = script$1; + +/* template */ + + /* style */ + const __vue_inject_styles__$1 = undefined; + /* scoped */ + const __vue_scope_id__$1 = undefined; + /* module identifier */ + const __vue_module_identifier__$1 = undefined; + /* functional template */ + const __vue_is_functional_template__$1 = undefined; + /* style inject */ + + /* style inject SSR */ + + + + var TabItem = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + {}, + __vue_inject_styles__$1, + __vue_script__$1, + __vue_scope_id__$1, + __vue_is_functional_template__$1, + __vue_module_identifier__$1, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, Tabs); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, TabItem); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/tag.js": +/*!********************************************!*\ + !*** ./node_modules/buefy/dist/esm/tag.js ***! + \********************************************/ +/*! exports provided: BTag, default, BTaglist */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BTaglist", function() { return Taglist; }); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_fb315748_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-fb315748.js */ "./node_modules/buefy/dist/esm/chunk-fb315748.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BTag", function() { return _chunk_fb315748_js__WEBPACK_IMPORTED_MODULE_1__["T"]; }); + + + + + +// +// +// +// +// +// +var script = { + name: 'BTaglist', + props: { + attached: Boolean + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tags",class:{ 'has-addons': _vm.attached }},[_vm._t("default")],2)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Taglist = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["r"])(Vue, _chunk_fb315748_js__WEBPACK_IMPORTED_MODULE_1__["T"]); + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["r"])(Vue, Taglist); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_0__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/taginput.js": +/*!*************************************************!*\ + !*** ./node_modules/buefy/dist/esm/taginput.js ***! + \*************************************************/ +/*! exports provided: default, BTaginput */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BTaginput", function() { return Taginput; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony import */ var _chunk_aa09eaac_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-aa09eaac.js */ "./node_modules/buefy/dist/esm/chunk-aa09eaac.js"); +/* harmony import */ var _chunk_fb315748_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./chunk-fb315748.js */ "./node_modules/buefy/dist/esm/chunk-fb315748.js"); + + + + + + + + + + +var _components; +var script = { + name: 'BTaginput', + components: (_components = {}, Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_aa09eaac_js__WEBPACK_IMPORTED_MODULE_7__["A"].name, _chunk_aa09eaac_js__WEBPACK_IMPORTED_MODULE_7__["A"]), Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["_"])(_components, _chunk_fb315748_js__WEBPACK_IMPORTED_MODULE_8__["T"].name, _chunk_fb315748_js__WEBPACK_IMPORTED_MODULE_8__["T"]), _components), + mixins: [_chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__["F"]], + inheritAttrs: false, + props: { + value: { + type: Array, + default: function _default() { + return []; + } + }, + data: { + type: Array, + default: function _default() { + return []; + } + }, + type: String, + closeType: String, + rounded: { + type: Boolean, + default: false + }, + attached: { + type: Boolean, + default: false + }, + maxtags: { + type: [Number, String], + required: false + }, + hasCounter: { + type: Boolean, + default: function _default() { + return _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultTaginputHasCounter; + } + }, + field: { + type: String, + default: 'value' + }, + autocomplete: Boolean, + nativeAutocomplete: String, + openOnFocus: Boolean, + disabled: Boolean, + ellipsis: Boolean, + closable: { + type: Boolean, + default: true + }, + confirmKeys: { + type: Array, + default: function _default() { + return [',', 'Enter']; + } + }, + removeOnKeys: { + type: Array, + default: function _default() { + return ['Backspace']; + } + }, + allowNew: Boolean, + onPasteSeparators: { + type: Array, + default: function _default() { + return [',']; + } + }, + beforeAdding: { + type: Function, + default: function _default() { + return true; + } + }, + allowDuplicates: { + type: Boolean, + default: false + }, + checkInfiniteScroll: { + type: Boolean, + default: false + }, + createTag: { + type: Function, + default: function _default(tag) { + return tag; + } + }, + appendToBody: Boolean + }, + data: function data() { + return { + tags: Array.isArray(this.value) ? this.value.slice(0) : this.value || [], + newTag: '', + _elementRef: 'autocomplete', + _isTaginput: true + }; + }, + computed: { + rootClasses: function rootClasses() { + return { + 'is-expanded': this.expanded + }; + }, + containerClasses: function containerClasses() { + return { + 'is-focused': this.isFocused, + 'is-focusable': this.hasInput + }; + }, + valueLength: function valueLength() { + return this.newTag.trim().length; + }, + hasDefaultSlot: function hasDefaultSlot() { + return !!this.$scopedSlots.default; + }, + hasEmptySlot: function hasEmptySlot() { + return !!this.$slots.empty; + }, + hasHeaderSlot: function hasHeaderSlot() { + return !!this.$slots.header; + }, + hasFooterSlot: function hasFooterSlot() { + return !!this.$slots.footer; + }, + + /** + * Show the input field if a maxtags hasn't been set or reached. + */ + hasInput: function hasInput() { + return this.maxtags == null || this.tagsLength < this.maxtags; + }, + tagsLength: function tagsLength() { + return this.tags.length; + }, + + /** + * If Taginput has onPasteSeparators prop, + * returning new RegExp used to split pasted string. + */ + separatorsAsRegExp: function separatorsAsRegExp() { + var sep = this.onPasteSeparators; + return sep.length ? new RegExp(sep.map(function (s) { + return s ? s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') : null; + }).join('|'), 'g') : null; + } + }, + watch: { + /** + * When v-model is changed set internal value. + */ + value: function value(_value) { + this.tags = Array.isArray(_value) ? _value.slice(0) : _value || []; + }, + hasInput: function hasInput() { + if (!this.hasInput) this.onBlur(); + } + }, + methods: { + addTag: function addTag(tag) { + var tagToAdd = tag || this.newTag.trim(); + + if (tagToAdd) { + if (!this.autocomplete) { + var reg = this.separatorsAsRegExp; + + if (reg && tagToAdd.match(reg)) { + tagToAdd.split(reg).map(function (t) { + return t.trim(); + }).filter(function (t) { + return t.length !== 0; + }).map(this.addTag); + return; + } + } // Add the tag input if it is not blank + // or previously added (if not allowDuplicates). + + + var add = !this.allowDuplicates ? this.tags.indexOf(tagToAdd) === -1 : true; + + if (add && this.beforeAdding(tagToAdd)) { + this.tags.push(this.createTag(tagToAdd)); + this.$emit('input', this.tags); + this.$emit('add', tagToAdd); + } + } + + this.newTag = ''; + }, + getNormalizedTagText: function getNormalizedTagText(tag) { + if (Object(_chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__["b"])(tag) === 'object') { + tag = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["getValueByPath"])(tag, this.field); + } + + return "".concat(tag); + }, + customOnBlur: function customOnBlur(event) { + // Add tag on-blur if not select only + if (!this.autocomplete) this.addTag(); + this.onBlur(event); + }, + onSelect: function onSelect(option) { + var _this = this; + + if (!option) return; + this.addTag(option); + this.$nextTick(function () { + _this.newTag = ''; + }); + }, + removeTag: function removeTag(index, event) { + var tag = this.tags.splice(index, 1)[0]; + this.$emit('input', this.tags); + this.$emit('remove', tag); + if (event) event.stopPropagation(); + + if (this.openOnFocus && this.$refs.autocomplete) { + this.$refs.autocomplete.focus(); + } + + return tag; + }, + removeLastTag: function removeLastTag() { + if (this.tagsLength > 0) { + this.removeTag(this.tagsLength - 1); + } + }, + keydown: function keydown(event) { + var key = event.key; // cannot destructure preventDefault (https://stackoverflow.com/a/49616808/2774496) + + if (this.removeOnKeys.indexOf(key) !== -1 && !this.newTag.length) { + this.removeLastTag(); + } // Stop if is to accept select only + + + if (this.autocomplete && !this.allowNew) return; + + if (this.confirmKeys.indexOf(key) >= 0) { + event.preventDefault(); + this.addTag(); + } + }, + onTyping: function onTyping(event) { + this.$emit('typing', event.trim()); + }, + emitInfiniteScroll: function emitInfiniteScroll() { + this.$emit('infinite-scroll'); + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"taginput control",class:_vm.rootClasses},[_c('div',{staticClass:"taginput-container",class:[_vm.statusType, _vm.size, _vm.containerClasses],attrs:{"disabled":_vm.disabled},on:{"click":function($event){_vm.hasInput && _vm.focus($event);}}},[_vm._t("selected",_vm._l((_vm.tags),function(tag,index){return _c('b-tag',{key:_vm.getNormalizedTagText(tag) + index,attrs:{"type":_vm.type,"close-type":_vm.closeType,"size":_vm.size,"rounded":_vm.rounded,"attached":_vm.attached,"tabstop":false,"disabled":_vm.disabled,"ellipsis":_vm.ellipsis,"closable":_vm.closable,"title":_vm.ellipsis && _vm.getNormalizedTagText(tag)},on:{"close":function($event){return _vm.removeTag(index, $event)}}},[_vm._t("tag",[_vm._v(" "+_vm._s(_vm.getNormalizedTagText(tag))+" ")],{"tag":tag})],2)}),{"tags":_vm.tags}),(_vm.hasInput)?_c('b-autocomplete',_vm._b({ref:"autocomplete",attrs:{"data":_vm.data,"field":_vm.field,"icon":_vm.icon,"icon-pack":_vm.iconPack,"maxlength":_vm.maxlength,"has-counter":false,"size":_vm.size,"disabled":_vm.disabled,"loading":_vm.loading,"autocomplete":_vm.nativeAutocomplete,"open-on-focus":_vm.openOnFocus,"keep-open":_vm.openOnFocus,"keep-first":!_vm.allowNew,"use-html5-validation":_vm.useHtml5Validation,"check-infinite-scroll":_vm.checkInfiniteScroll,"append-to-body":_vm.appendToBody},on:{"typing":_vm.onTyping,"focus":_vm.onFocus,"blur":_vm.customOnBlur,"select":_vm.onSelect,"infinite-scroll":_vm.emitInfiniteScroll},nativeOn:{"keydown":function($event){return _vm.keydown($event)}},scopedSlots:_vm._u([(_vm.hasHeaderSlot)?{key:"header",fn:function(){return [_vm._t("header")]},proxy:true}:null,(_vm.hasDefaultSlot)?{key:"default",fn:function(props){return [_vm._t("default",null,{"option":props.option,"index":props.index})]}}:null,(_vm.hasHeaderSlot)?{key:"empty",fn:function(){return [_vm._t("empty")]},proxy:true}:null,(_vm.hasFooterSlot)?{key:"footer",fn:function(){return [_vm._t("footer")]},proxy:true}:null],null,true),model:{value:(_vm.newTag),callback:function ($$v) {_vm.newTag=$$v;},expression:"newTag"}},'b-autocomplete',_vm.$attrs,false)):_vm._e()],2),(_vm.hasCounter && (_vm.maxtags || _vm.maxlength))?_c('small',{staticClass:"help counter"},[(_vm.maxlength && _vm.valueLength > 0)?[_vm._v(" "+_vm._s(_vm.valueLength)+" / "+_vm._s(_vm.maxlength)+" ")]:(_vm.maxtags)?[_vm._v(" "+_vm._s(_vm.tagsLength)+" / "+_vm._s(_vm.maxtags)+" ")]:_vm._e()],2):_vm._e()])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Taginput = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, Taginput); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/timepicker.js": +/*!***************************************************!*\ + !*** ./node_modules/buefy/dist/esm/timepicker.js ***! + \***************************************************/ +/*! exports provided: BTimepicker, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_7bcc5416_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-7bcc5416.js */ "./node_modules/buefy/dist/esm/chunk-7bcc5416.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_0644d9fa_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chunk-0644d9fa.js */ "./node_modules/buefy/dist/esm/chunk-0644d9fa.js"); +/* harmony import */ var _chunk_ad63df08_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./chunk-ad63df08.js */ "./node_modules/buefy/dist/esm/chunk-ad63df08.js"); +/* harmony import */ var _chunk_5e460019_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./chunk-5e460019.js */ "./node_modules/buefy/dist/esm/chunk-5e460019.js"); +/* harmony import */ var _chunk_42f463e6_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./chunk-42f463e6.js */ "./node_modules/buefy/dist/esm/chunk-42f463e6.js"); +/* harmony import */ var _chunk_ddbc6c47_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./chunk-ddbc6c47.js */ "./node_modules/buefy/dist/esm/chunk-ddbc6c47.js"); +/* harmony import */ var _chunk_91a2d037_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./chunk-91a2d037.js */ "./node_modules/buefy/dist/esm/chunk-91a2d037.js"); +/* harmony import */ var _chunk_97074b53_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./chunk-97074b53.js */ "./node_modules/buefy/dist/esm/chunk-97074b53.js"); +/* harmony import */ var _chunk_5e4db2f1_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./chunk-5e4db2f1.js */ "./node_modules/buefy/dist/esm/chunk-5e4db2f1.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BTimepicker", function() { return _chunk_5e4db2f1_js__WEBPACK_IMPORTED_MODULE_13__["T"]; }); + + + + + + + + + + + + + + + + + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["r"])(Vue, _chunk_5e4db2f1_js__WEBPACK_IMPORTED_MODULE_13__["T"]); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_5__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/toast.js": +/*!**********************************************!*\ + !*** ./node_modules/buefy/dist/esm/toast.js ***! + \**********************************************/ +/*! exports provided: default, BToast, ToastProgrammatic */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BToast", function() { return Toast; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToastProgrammatic", function() { return ToastProgrammatic; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_220749df_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-220749df.js */ "./node_modules/buefy/dist/esm/chunk-220749df.js"); + + + + + + +// +var script = { + name: 'BToast', + mixins: [_chunk_220749df_js__WEBPACK_IMPORTED_MODULE_4__["N"]], + data: function data() { + return { + newDuration: this.duration || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultToastDuration + }; + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"enter-active-class":_vm.transition.enter,"leave-active-class":_vm.transition.leave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"toast",class:[_vm.type, _vm.position],attrs:{"aria-hidden":!_vm.isActive,"role":"alert"}},[_c('div',[(_vm.$slots.default)?[_vm._t("default")]:[_vm._v(" "+_vm._s(_vm.message)+" ")]],2)])])}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Toast = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var localVueInstance; +var ToastProgrammatic = { + open: function open(params) { + var parent; + + if (typeof params === 'string') { + params = { + message: params + }; + } + + var defaultParam = { + position: _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["c"].defaultToastPosition || 'is-top' + }; + + if (params.parent) { + parent = params.parent; + delete params.parent; + } + + var slot = params.message; + delete params.message; + var propsData = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(defaultParam, params); + var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__["V"]; + var ToastComponent = vm.extend(Toast); + var component = new ToastComponent({ + parent: parent, + el: document.createElement('div'), + propsData: propsData + }); + + if (slot) { + component.$slots.default = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_1__["toVDom"])(slot, component.$createElement); + component.$forceUpdate(); + } + + return component; + } +}; +var Plugin = { + install: function install(Vue) { + localVueInstance = Vue; + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["a"])(Vue, 'toast', ToastProgrammatic); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/tooltip.js": +/*!************************************************!*\ + !*** ./node_modules/buefy/dist/esm/tooltip.js ***! + \************************************************/ +/*! exports provided: BTooltip, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_1252e7e2_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-1252e7e2.js */ "./node_modules/buefy/dist/esm/chunk-1252e7e2.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BTooltip", function() { return _chunk_1252e7e2_js__WEBPACK_IMPORTED_MODULE_4__["T"]; }); + + + + + + + + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["r"])(Vue, _chunk_1252e7e2_js__WEBPACK_IMPORTED_MODULE_4__["T"]); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_3__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + +/***/ }), + +/***/ "./node_modules/buefy/dist/esm/upload.js": +/*!***********************************************!*\ + !*** ./node_modules/buefy/dist/esm/upload.js ***! + \***********************************************/ +/*! exports provided: default, BUpload */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BUpload", function() { return Upload; }); +/* harmony import */ var _chunk_1fafdf15_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-1fafdf15.js */ "./node_modules/buefy/dist/esm/chunk-1fafdf15.js"); +/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers.js */ "./node_modules/buefy/dist/esm/helpers.js"); +/* harmony import */ var _chunk_f134e057_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-f134e057.js */ "./node_modules/buefy/dist/esm/chunk-f134e057.js"); +/* harmony import */ var _chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-f8201455.js */ "./node_modules/buefy/dist/esm/chunk-f8201455.js"); +/* harmony import */ var _chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-cca88db8.js */ "./node_modules/buefy/dist/esm/chunk-cca88db8.js"); +/* harmony import */ var _chunk_b9bdb0e4_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chunk-b9bdb0e4.js */ "./node_modules/buefy/dist/esm/chunk-b9bdb0e4.js"); + + + + + + + +// +var script = { + name: 'BUpload', + mixins: [_chunk_f8201455_js__WEBPACK_IMPORTED_MODULE_3__["F"]], + inheritAttrs: false, + props: { + value: { + type: [Object, Function, _chunk_b9bdb0e4_js__WEBPACK_IMPORTED_MODULE_5__["F"], Array] + }, + multiple: Boolean, + disabled: Boolean, + accept: String, + dragDrop: Boolean, + type: { + type: String, + default: 'is-primary' + }, + native: { + type: Boolean, + default: false + }, + expanded: { + type: Boolean, + default: false + } + }, + data: function data() { + return { + newValue: this.value, + dragDropFocus: false, + _elementRef: 'input' + }; + }, + watch: { + /** + * When v-model is changed: + * 1. Set internal value. + * 2. Reset interna input file value + * 3. If it's invalid, validate again. + */ + value: function value(_value) { + this.newValue = _value; + + if (!_value || Array.isArray(_value) && _value.length === 0) { + this.$refs.input.value = null; + } + + !this.isValid && !this.dragDrop && this.checkHtml5Validity(); + } + }, + methods: { + /** + * Listen change event on input type 'file', + * emit 'input' event and validate + */ + onFileChange: function onFileChange(event) { + if (this.disabled || this.loading) return; + if (this.dragDrop) this.updateDragDropFocus(false); + var value = event.target.files || event.dataTransfer.files; + + if (value.length === 0) { + if (!this.newValue) return; + if (this.native) this.newValue = null; + } else if (!this.multiple) { + // only one element in case drag drop mode and isn't multiple + if (this.dragDrop && value.length !== 1) return;else { + var file = value[0]; + if (this.checkType(file)) this.newValue = file;else if (this.newValue) this.newValue = null;else return; + } + } else { + // always new values if native or undefined local + var newValues = false; + + if (this.native || !this.newValue) { + this.newValue = []; + newValues = true; + } + + for (var i = 0; i < value.length; i++) { + var _file = value[i]; + + if (this.checkType(_file)) { + this.newValue.push(_file); + newValues = true; + } + } + + if (!newValues) return; + } + + this.$emit('input', this.newValue); + !this.dragDrop && this.checkHtml5Validity(); + }, + + /** + * Listen drag-drop to update internal variable + */ + updateDragDropFocus: function updateDragDropFocus(focus) { + if (!this.disabled && !this.loading) { + this.dragDropFocus = focus; + } + }, + + /** + * Check mime type of file + */ + checkType: function checkType(file) { + if (!this.accept) return true; + var types = this.accept.split(','); + if (types.length === 0) return true; + var valid = false; + + for (var i = 0; i < types.length && !valid; i++) { + var type = types[i].trim(); + + if (type) { + if (type.substring(0, 1) === '.') { + // check extension + var extIndex = file.name.lastIndexOf('.'); + var extension = extIndex >= 0 ? file.name.substring(extIndex) : ''; + + if (extension.toLowerCase() === type.toLowerCase()) { + valid = true; + } + } else { + // check mime type + if (file.type.match(type)) { + valid = true; + } + } + } + } + + return valid; + } + } +}; + +/* script */ +const __vue_script__ = script; + +/* template */ +var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:"upload control",class:{'is-expanded' : _vm.expanded}},[(!_vm.dragDrop)?[_vm._t("default")]:_c('div',{staticClass:"upload-draggable",class:[_vm.type, { + 'is-loading': _vm.loading, + 'is-disabled': _vm.disabled, + 'is-hovered': _vm.dragDropFocus, + 'is-expanded': _vm.expanded, + }],on:{"dragover":function($event){$event.preventDefault();return _vm.updateDragDropFocus(true)},"dragleave":function($event){$event.preventDefault();return _vm.updateDragDropFocus(false)},"dragenter":function($event){$event.preventDefault();return _vm.updateDragDropFocus(true)},"drop":function($event){$event.preventDefault();return _vm.onFileChange($event)}}},[_vm._t("default")],2),_c('input',_vm._b({ref:"input",attrs:{"type":"file","multiple":_vm.multiple,"accept":_vm.accept,"disabled":_vm.disabled},on:{"change":_vm.onFileChange}},'input',_vm.$attrs,false))],2)}; +var __vue_staticRenderFns__ = []; + + /* style */ + const __vue_inject_styles__ = undefined; + /* scoped */ + const __vue_scope_id__ = undefined; + /* module identifier */ + const __vue_module_identifier__ = undefined; + /* functional template */ + const __vue_is_functional_template__ = false; + /* style inject */ + + /* style inject SSR */ + + + + var Upload = Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["_"])( + { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, + __vue_inject_styles__, + __vue_script__, + __vue_scope_id__, + __vue_is_functional_template__, + __vue_module_identifier__, + undefined, + undefined + ); + +var Plugin = { + install: function install(Vue) { + Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["r"])(Vue, Upload); + } +}; +Object(_chunk_cca88db8_js__WEBPACK_IMPORTED_MODULE_4__["u"])(Plugin); + +/* harmony default export */ __webpack_exports__["default"] = (Plugin); + + + +/***/ }), + +/***/ "./node_modules/chart.js/dist/Chart.js": +/*!*********************************************!*\ + !*** ./node_modules/chart.js/dist/Chart.js ***! + \*********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +/*! + * Chart.js v2.9.3 + * https://www.chartjs.org + * (c) 2019 Chart.js Contributors + * Released under the MIT License + */ +(function (global, factory) { + true ? module.exports = factory(function() { try { return __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); } catch(e) { } }()) : +undefined; +}(this, (function (moment) { 'use strict'; + +moment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment; + +function createCommonjsModule(fn, module) { + return module = { exports: {} }, fn(module, module.exports), module.exports; +} + +function getCjsExportFromNamespace (n) { + return n && n['default'] || n; +} + +var colorName = { + "aliceblue": [240, 248, 255], + "antiquewhite": [250, 235, 215], + "aqua": [0, 255, 255], + "aquamarine": [127, 255, 212], + "azure": [240, 255, 255], + "beige": [245, 245, 220], + "bisque": [255, 228, 196], + "black": [0, 0, 0], + "blanchedalmond": [255, 235, 205], + "blue": [0, 0, 255], + "blueviolet": [138, 43, 226], + "brown": [165, 42, 42], + "burlywood": [222, 184, 135], + "cadetblue": [95, 158, 160], + "chartreuse": [127, 255, 0], + "chocolate": [210, 105, 30], + "coral": [255, 127, 80], + "cornflowerblue": [100, 149, 237], + "cornsilk": [255, 248, 220], + "crimson": [220, 20, 60], + "cyan": [0, 255, 255], + "darkblue": [0, 0, 139], + "darkcyan": [0, 139, 139], + "darkgoldenrod": [184, 134, 11], + "darkgray": [169, 169, 169], + "darkgreen": [0, 100, 0], + "darkgrey": [169, 169, 169], + "darkkhaki": [189, 183, 107], + "darkmagenta": [139, 0, 139], + "darkolivegreen": [85, 107, 47], + "darkorange": [255, 140, 0], + "darkorchid": [153, 50, 204], + "darkred": [139, 0, 0], + "darksalmon": [233, 150, 122], + "darkseagreen": [143, 188, 143], + "darkslateblue": [72, 61, 139], + "darkslategray": [47, 79, 79], + "darkslategrey": [47, 79, 79], + "darkturquoise": [0, 206, 209], + "darkviolet": [148, 0, 211], + "deeppink": [255, 20, 147], + "deepskyblue": [0, 191, 255], + "dimgray": [105, 105, 105], + "dimgrey": [105, 105, 105], + "dodgerblue": [30, 144, 255], + "firebrick": [178, 34, 34], + "floralwhite": [255, 250, 240], + "forestgreen": [34, 139, 34], + "fuchsia": [255, 0, 255], + "gainsboro": [220, 220, 220], + "ghostwhite": [248, 248, 255], + "gold": [255, 215, 0], + "goldenrod": [218, 165, 32], + "gray": [128, 128, 128], + "green": [0, 128, 0], + "greenyellow": [173, 255, 47], + "grey": [128, 128, 128], + "honeydew": [240, 255, 240], + "hotpink": [255, 105, 180], + "indianred": [205, 92, 92], + "indigo": [75, 0, 130], + "ivory": [255, 255, 240], + "khaki": [240, 230, 140], + "lavender": [230, 230, 250], + "lavenderblush": [255, 240, 245], + "lawngreen": [124, 252, 0], + "lemonchiffon": [255, 250, 205], + "lightblue": [173, 216, 230], + "lightcoral": [240, 128, 128], + "lightcyan": [224, 255, 255], + "lightgoldenrodyellow": [250, 250, 210], + "lightgray": [211, 211, 211], + "lightgreen": [144, 238, 144], + "lightgrey": [211, 211, 211], + "lightpink": [255, 182, 193], + "lightsalmon": [255, 160, 122], + "lightseagreen": [32, 178, 170], + "lightskyblue": [135, 206, 250], + "lightslategray": [119, 136, 153], + "lightslategrey": [119, 136, 153], + "lightsteelblue": [176, 196, 222], + "lightyellow": [255, 255, 224], + "lime": [0, 255, 0], + "limegreen": [50, 205, 50], + "linen": [250, 240, 230], + "magenta": [255, 0, 255], + "maroon": [128, 0, 0], + "mediumaquamarine": [102, 205, 170], + "mediumblue": [0, 0, 205], + "mediumorchid": [186, 85, 211], + "mediumpurple": [147, 112, 219], + "mediumseagreen": [60, 179, 113], + "mediumslateblue": [123, 104, 238], + "mediumspringgreen": [0, 250, 154], + "mediumturquoise": [72, 209, 204], + "mediumvioletred": [199, 21, 133], + "midnightblue": [25, 25, 112], + "mintcream": [245, 255, 250], + "mistyrose": [255, 228, 225], + "moccasin": [255, 228, 181], + "navajowhite": [255, 222, 173], + "navy": [0, 0, 128], + "oldlace": [253, 245, 230], + "olive": [128, 128, 0], + "olivedrab": [107, 142, 35], + "orange": [255, 165, 0], + "orangered": [255, 69, 0], + "orchid": [218, 112, 214], + "palegoldenrod": [238, 232, 170], + "palegreen": [152, 251, 152], + "paleturquoise": [175, 238, 238], + "palevioletred": [219, 112, 147], + "papayawhip": [255, 239, 213], + "peachpuff": [255, 218, 185], + "peru": [205, 133, 63], + "pink": [255, 192, 203], + "plum": [221, 160, 221], + "powderblue": [176, 224, 230], + "purple": [128, 0, 128], + "rebeccapurple": [102, 51, 153], + "red": [255, 0, 0], + "rosybrown": [188, 143, 143], + "royalblue": [65, 105, 225], + "saddlebrown": [139, 69, 19], + "salmon": [250, 128, 114], + "sandybrown": [244, 164, 96], + "seagreen": [46, 139, 87], + "seashell": [255, 245, 238], + "sienna": [160, 82, 45], + "silver": [192, 192, 192], + "skyblue": [135, 206, 235], + "slateblue": [106, 90, 205], + "slategray": [112, 128, 144], + "slategrey": [112, 128, 144], + "snow": [255, 250, 250], + "springgreen": [0, 255, 127], + "steelblue": [70, 130, 180], + "tan": [210, 180, 140], + "teal": [0, 128, 128], + "thistle": [216, 191, 216], + "tomato": [255, 99, 71], + "turquoise": [64, 224, 208], + "violet": [238, 130, 238], + "wheat": [245, 222, 179], + "white": [255, 255, 255], + "whitesmoke": [245, 245, 245], + "yellow": [255, 255, 0], + "yellowgreen": [154, 205, 50] +}; + +var conversions = createCommonjsModule(function (module) { +/* MIT license */ + + +// NOTE: conversions should only return primitive values (i.e. arrays, or +// values that give correct `typeof` results). +// do not use box values types (i.e. Number(), String(), etc.) + +var reverseKeywords = {}; +for (var key in colorName) { + if (colorName.hasOwnProperty(key)) { + reverseKeywords[colorName[key]] = key; + } +} + +var convert = module.exports = { + rgb: {channels: 3, labels: 'rgb'}, + hsl: {channels: 3, labels: 'hsl'}, + hsv: {channels: 3, labels: 'hsv'}, + hwb: {channels: 3, labels: 'hwb'}, + cmyk: {channels: 4, labels: 'cmyk'}, + xyz: {channels: 3, labels: 'xyz'}, + lab: {channels: 3, labels: 'lab'}, + lch: {channels: 3, labels: 'lch'}, + hex: {channels: 1, labels: ['hex']}, + keyword: {channels: 1, labels: ['keyword']}, + ansi16: {channels: 1, labels: ['ansi16']}, + ansi256: {channels: 1, labels: ['ansi256']}, + hcg: {channels: 3, labels: ['h', 'c', 'g']}, + apple: {channels: 3, labels: ['r16', 'g16', 'b16']}, + gray: {channels: 1, labels: ['gray']} +}; + +// hide .channels and .labels properties +for (var model in convert) { + if (convert.hasOwnProperty(model)) { + if (!('channels' in convert[model])) { + throw new Error('missing channels property: ' + model); + } + + if (!('labels' in convert[model])) { + throw new Error('missing channel labels property: ' + model); + } + + if (convert[model].labels.length !== convert[model].channels) { + throw new Error('channel and label counts mismatch: ' + model); + } + + var channels = convert[model].channels; + var labels = convert[model].labels; + delete convert[model].channels; + delete convert[model].labels; + Object.defineProperty(convert[model], 'channels', {value: channels}); + Object.defineProperty(convert[model], 'labels', {value: labels}); + } +} + +convert.rgb.hsl = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var min = Math.min(r, g, b); + var max = Math.max(r, g, b); + var delta = max - min; + var h; + var s; + var l; + + if (max === min) { + h = 0; + } else if (r === max) { + h = (g - b) / delta; + } else if (g === max) { + h = 2 + (b - r) / delta; + } else if (b === max) { + h = 4 + (r - g) / delta; + } + + h = Math.min(h * 60, 360); + + if (h < 0) { + h += 360; + } + + l = (min + max) / 2; + + if (max === min) { + s = 0; + } else if (l <= 0.5) { + s = delta / (max + min); + } else { + s = delta / (2 - max - min); + } + + return [h, s * 100, l * 100]; +}; + +convert.rgb.hsv = function (rgb) { + var rdif; + var gdif; + var bdif; + var h; + var s; + + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var v = Math.max(r, g, b); + var diff = v - Math.min(r, g, b); + var diffc = function (c) { + return (v - c) / 6 / diff + 1 / 2; + }; + + if (diff === 0) { + h = s = 0; + } else { + s = diff / v; + rdif = diffc(r); + gdif = diffc(g); + bdif = diffc(b); + + if (r === v) { + h = bdif - gdif; + } else if (g === v) { + h = (1 / 3) + rdif - bdif; + } else if (b === v) { + h = (2 / 3) + gdif - rdif; + } + if (h < 0) { + h += 1; + } else if (h > 1) { + h -= 1; + } + } + + return [ + h * 360, + s * 100, + v * 100 + ]; +}; + +convert.rgb.hwb = function (rgb) { + var r = rgb[0]; + var g = rgb[1]; + var b = rgb[2]; + var h = convert.rgb.hsl(rgb)[0]; + var w = 1 / 255 * Math.min(r, Math.min(g, b)); + + b = 1 - 1 / 255 * Math.max(r, Math.max(g, b)); + + return [h, w * 100, b * 100]; +}; + +convert.rgb.cmyk = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var c; + var m; + var y; + var k; + + k = Math.min(1 - r, 1 - g, 1 - b); + c = (1 - r - k) / (1 - k) || 0; + m = (1 - g - k) / (1 - k) || 0; + y = (1 - b - k) / (1 - k) || 0; + + return [c * 100, m * 100, y * 100, k * 100]; +}; + +/** + * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance + * */ +function comparativeDistance(x, y) { + return ( + Math.pow(x[0] - y[0], 2) + + Math.pow(x[1] - y[1], 2) + + Math.pow(x[2] - y[2], 2) + ); +} + +convert.rgb.keyword = function (rgb) { + var reversed = reverseKeywords[rgb]; + if (reversed) { + return reversed; + } + + var currentClosestDistance = Infinity; + var currentClosestKeyword; + + for (var keyword in colorName) { + if (colorName.hasOwnProperty(keyword)) { + var value = colorName[keyword]; + + // Compute comparative distance + var distance = comparativeDistance(rgb, value); + + // Check if its less, if so set as closest + if (distance < currentClosestDistance) { + currentClosestDistance = distance; + currentClosestKeyword = keyword; + } + } + } + + return currentClosestKeyword; +}; + +convert.keyword.rgb = function (keyword) { + return colorName[keyword]; +}; + +convert.rgb.xyz = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + + // assume sRGB + r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92); + g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92); + b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92); + + var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805); + var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722); + var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505); + + return [x * 100, y * 100, z * 100]; +}; + +convert.rgb.lab = function (rgb) { + var xyz = convert.rgb.xyz(rgb); + var x = xyz[0]; + var y = xyz[1]; + var z = xyz[2]; + var l; + var a; + var b; + + x /= 95.047; + y /= 100; + z /= 108.883; + + x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116); + y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116); + z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116); + + l = (116 * y) - 16; + a = 500 * (x - y); + b = 200 * (y - z); + + return [l, a, b]; +}; + +convert.hsl.rgb = function (hsl) { + var h = hsl[0] / 360; + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var t1; + var t2; + var t3; + var rgb; + var val; + + if (s === 0) { + val = l * 255; + return [val, val, val]; + } + + if (l < 0.5) { + t2 = l * (1 + s); + } else { + t2 = l + s - l * s; + } + + t1 = 2 * l - t2; + + rgb = [0, 0, 0]; + for (var i = 0; i < 3; i++) { + t3 = h + 1 / 3 * -(i - 1); + if (t3 < 0) { + t3++; + } + if (t3 > 1) { + t3--; + } + + if (6 * t3 < 1) { + val = t1 + (t2 - t1) * 6 * t3; + } else if (2 * t3 < 1) { + val = t2; + } else if (3 * t3 < 2) { + val = t1 + (t2 - t1) * (2 / 3 - t3) * 6; + } else { + val = t1; + } + + rgb[i] = val * 255; + } + + return rgb; +}; + +convert.hsl.hsv = function (hsl) { + var h = hsl[0]; + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var smin = s; + var lmin = Math.max(l, 0.01); + var sv; + var v; + + l *= 2; + s *= (l <= 1) ? l : 2 - l; + smin *= lmin <= 1 ? lmin : 2 - lmin; + v = (l + s) / 2; + sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s); + + return [h, sv * 100, v * 100]; +}; + +convert.hsv.rgb = function (hsv) { + var h = hsv[0] / 60; + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var hi = Math.floor(h) % 6; + + var f = h - Math.floor(h); + var p = 255 * v * (1 - s); + var q = 255 * v * (1 - (s * f)); + var t = 255 * v * (1 - (s * (1 - f))); + v *= 255; + + switch (hi) { + case 0: + return [v, t, p]; + case 1: + return [q, v, p]; + case 2: + return [p, v, t]; + case 3: + return [p, q, v]; + case 4: + return [t, p, v]; + case 5: + return [v, p, q]; + } +}; + +convert.hsv.hsl = function (hsv) { + var h = hsv[0]; + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var vmin = Math.max(v, 0.01); + var lmin; + var sl; + var l; + + l = (2 - s) * v; + lmin = (2 - s) * vmin; + sl = s * vmin; + sl /= (lmin <= 1) ? lmin : 2 - lmin; + sl = sl || 0; + l /= 2; + + return [h, sl * 100, l * 100]; +}; + +// http://dev.w3.org/csswg/css-color/#hwb-to-rgb +convert.hwb.rgb = function (hwb) { + var h = hwb[0] / 360; + var wh = hwb[1] / 100; + var bl = hwb[2] / 100; + var ratio = wh + bl; + var i; + var v; + var f; + var n; + + // wh + bl cant be > 1 + if (ratio > 1) { + wh /= ratio; + bl /= ratio; + } + + i = Math.floor(6 * h); + v = 1 - bl; + f = 6 * h - i; + + if ((i & 0x01) !== 0) { + f = 1 - f; + } + + n = wh + f * (v - wh); // linear interpolation + + var r; + var g; + var b; + switch (i) { + default: + case 6: + case 0: r = v; g = n; b = wh; break; + case 1: r = n; g = v; b = wh; break; + case 2: r = wh; g = v; b = n; break; + case 3: r = wh; g = n; b = v; break; + case 4: r = n; g = wh; b = v; break; + case 5: r = v; g = wh; b = n; break; + } + + return [r * 255, g * 255, b * 255]; +}; + +convert.cmyk.rgb = function (cmyk) { + var c = cmyk[0] / 100; + var m = cmyk[1] / 100; + var y = cmyk[2] / 100; + var k = cmyk[3] / 100; + var r; + var g; + var b; + + r = 1 - Math.min(1, c * (1 - k) + k); + g = 1 - Math.min(1, m * (1 - k) + k); + b = 1 - Math.min(1, y * (1 - k) + k); + + return [r * 255, g * 255, b * 255]; +}; + +convert.xyz.rgb = function (xyz) { + var x = xyz[0] / 100; + var y = xyz[1] / 100; + var z = xyz[2] / 100; + var r; + var g; + var b; + + r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986); + g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415); + b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570); + + // assume sRGB + r = r > 0.0031308 + ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055) + : r * 12.92; + + g = g > 0.0031308 + ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055) + : g * 12.92; + + b = b > 0.0031308 + ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055) + : b * 12.92; + + r = Math.min(Math.max(0, r), 1); + g = Math.min(Math.max(0, g), 1); + b = Math.min(Math.max(0, b), 1); + + return [r * 255, g * 255, b * 255]; +}; + +convert.xyz.lab = function (xyz) { + var x = xyz[0]; + var y = xyz[1]; + var z = xyz[2]; + var l; + var a; + var b; + + x /= 95.047; + y /= 100; + z /= 108.883; + + x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116); + y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116); + z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116); + + l = (116 * y) - 16; + a = 500 * (x - y); + b = 200 * (y - z); + + return [l, a, b]; +}; + +convert.lab.xyz = function (lab) { + var l = lab[0]; + var a = lab[1]; + var b = lab[2]; + var x; + var y; + var z; + + y = (l + 16) / 116; + x = a / 500 + y; + z = y - b / 200; + + var y2 = Math.pow(y, 3); + var x2 = Math.pow(x, 3); + var z2 = Math.pow(z, 3); + y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787; + x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787; + z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787; + + x *= 95.047; + y *= 100; + z *= 108.883; + + return [x, y, z]; +}; + +convert.lab.lch = function (lab) { + var l = lab[0]; + var a = lab[1]; + var b = lab[2]; + var hr; + var h; + var c; + + hr = Math.atan2(b, a); + h = hr * 360 / 2 / Math.PI; + + if (h < 0) { + h += 360; + } + + c = Math.sqrt(a * a + b * b); + + return [l, c, h]; +}; + +convert.lch.lab = function (lch) { + var l = lch[0]; + var c = lch[1]; + var h = lch[2]; + var a; + var b; + var hr; + + hr = h / 360 * 2 * Math.PI; + a = c * Math.cos(hr); + b = c * Math.sin(hr); + + return [l, a, b]; +}; + +convert.rgb.ansi16 = function (args) { + var r = args[0]; + var g = args[1]; + var b = args[2]; + var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization + + value = Math.round(value / 50); + + if (value === 0) { + return 30; + } + + var ansi = 30 + + ((Math.round(b / 255) << 2) + | (Math.round(g / 255) << 1) + | Math.round(r / 255)); + + if (value === 2) { + ansi += 60; + } + + return ansi; +}; + +convert.hsv.ansi16 = function (args) { + // optimization here; we already know the value and don't need to get + // it converted for us. + return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); +}; + +convert.rgb.ansi256 = function (args) { + var r = args[0]; + var g = args[1]; + var b = args[2]; + + // we use the extended greyscale palette here, with the exception of + // black and white. normal palette only has 4 greyscale shades. + if (r === g && g === b) { + if (r < 8) { + return 16; + } + + if (r > 248) { + return 231; + } + + return Math.round(((r - 8) / 247) * 24) + 232; + } + + var ansi = 16 + + (36 * Math.round(r / 255 * 5)) + + (6 * Math.round(g / 255 * 5)) + + Math.round(b / 255 * 5); + + return ansi; +}; + +convert.ansi16.rgb = function (args) { + var color = args % 10; + + // handle greyscale + if (color === 0 || color === 7) { + if (args > 50) { + color += 3.5; + } + + color = color / 10.5 * 255; + + return [color, color, color]; + } + + var mult = (~~(args > 50) + 1) * 0.5; + var r = ((color & 1) * mult) * 255; + var g = (((color >> 1) & 1) * mult) * 255; + var b = (((color >> 2) & 1) * mult) * 255; + + return [r, g, b]; +}; + +convert.ansi256.rgb = function (args) { + // handle greyscale + if (args >= 232) { + var c = (args - 232) * 10 + 8; + return [c, c, c]; + } + + args -= 16; + + var rem; + var r = Math.floor(args / 36) / 5 * 255; + var g = Math.floor((rem = args % 36) / 6) / 5 * 255; + var b = (rem % 6) / 5 * 255; + + return [r, g, b]; +}; + +convert.rgb.hex = function (args) { + var integer = ((Math.round(args[0]) & 0xFF) << 16) + + ((Math.round(args[1]) & 0xFF) << 8) + + (Math.round(args[2]) & 0xFF); + + var string = integer.toString(16).toUpperCase(); + return '000000'.substring(string.length) + string; +}; + +convert.hex.rgb = function (args) { + var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); + if (!match) { + return [0, 0, 0]; + } + + var colorString = match[0]; + + if (match[0].length === 3) { + colorString = colorString.split('').map(function (char) { + return char + char; + }).join(''); + } + + var integer = parseInt(colorString, 16); + var r = (integer >> 16) & 0xFF; + var g = (integer >> 8) & 0xFF; + var b = integer & 0xFF; + + return [r, g, b]; +}; + +convert.rgb.hcg = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var max = Math.max(Math.max(r, g), b); + var min = Math.min(Math.min(r, g), b); + var chroma = (max - min); + var grayscale; + var hue; + + if (chroma < 1) { + grayscale = min / (1 - chroma); + } else { + grayscale = 0; + } + + if (chroma <= 0) { + hue = 0; + } else + if (max === r) { + hue = ((g - b) / chroma) % 6; + } else + if (max === g) { + hue = 2 + (b - r) / chroma; + } else { + hue = 4 + (r - g) / chroma + 4; + } + + hue /= 6; + hue %= 1; + + return [hue * 360, chroma * 100, grayscale * 100]; +}; + +convert.hsl.hcg = function (hsl) { + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var c = 1; + var f = 0; + + if (l < 0.5) { + c = 2.0 * s * l; + } else { + c = 2.0 * s * (1.0 - l); + } + + if (c < 1.0) { + f = (l - 0.5 * c) / (1.0 - c); + } + + return [hsl[0], c * 100, f * 100]; +}; + +convert.hsv.hcg = function (hsv) { + var s = hsv[1] / 100; + var v = hsv[2] / 100; + + var c = s * v; + var f = 0; + + if (c < 1.0) { + f = (v - c) / (1 - c); + } + + return [hsv[0], c * 100, f * 100]; +}; + +convert.hcg.rgb = function (hcg) { + var h = hcg[0] / 360; + var c = hcg[1] / 100; + var g = hcg[2] / 100; + + if (c === 0.0) { + return [g * 255, g * 255, g * 255]; + } + + var pure = [0, 0, 0]; + var hi = (h % 1) * 6; + var v = hi % 1; + var w = 1 - v; + var mg = 0; + + switch (Math.floor(hi)) { + case 0: + pure[0] = 1; pure[1] = v; pure[2] = 0; break; + case 1: + pure[0] = w; pure[1] = 1; pure[2] = 0; break; + case 2: + pure[0] = 0; pure[1] = 1; pure[2] = v; break; + case 3: + pure[0] = 0; pure[1] = w; pure[2] = 1; break; + case 4: + pure[0] = v; pure[1] = 0; pure[2] = 1; break; + default: + pure[0] = 1; pure[1] = 0; pure[2] = w; + } + + mg = (1.0 - c) * g; + + return [ + (c * pure[0] + mg) * 255, + (c * pure[1] + mg) * 255, + (c * pure[2] + mg) * 255 + ]; +}; + +convert.hcg.hsv = function (hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + + var v = c + g * (1.0 - c); + var f = 0; + + if (v > 0.0) { + f = c / v; + } + + return [hcg[0], f * 100, v * 100]; +}; + +convert.hcg.hsl = function (hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + + var l = g * (1.0 - c) + 0.5 * c; + var s = 0; + + if (l > 0.0 && l < 0.5) { + s = c / (2 * l); + } else + if (l >= 0.5 && l < 1.0) { + s = c / (2 * (1 - l)); + } + + return [hcg[0], s * 100, l * 100]; +}; + +convert.hcg.hwb = function (hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + var v = c + g * (1.0 - c); + return [hcg[0], (v - c) * 100, (1 - v) * 100]; +}; + +convert.hwb.hcg = function (hwb) { + var w = hwb[1] / 100; + var b = hwb[2] / 100; + var v = 1 - b; + var c = v - w; + var g = 0; + + if (c < 1) { + g = (v - c) / (1 - c); + } + + return [hwb[0], c * 100, g * 100]; +}; + +convert.apple.rgb = function (apple) { + return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255]; +}; + +convert.rgb.apple = function (rgb) { + return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535]; +}; + +convert.gray.rgb = function (args) { + return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255]; +}; + +convert.gray.hsl = convert.gray.hsv = function (args) { + return [0, 0, args[0]]; +}; + +convert.gray.hwb = function (gray) { + return [0, 100, gray[0]]; +}; + +convert.gray.cmyk = function (gray) { + return [0, 0, 0, gray[0]]; +}; + +convert.gray.lab = function (gray) { + return [gray[0], 0, 0]; +}; + +convert.gray.hex = function (gray) { + var val = Math.round(gray[0] / 100 * 255) & 0xFF; + var integer = (val << 16) + (val << 8) + val; + + var string = integer.toString(16).toUpperCase(); + return '000000'.substring(string.length) + string; +}; + +convert.rgb.gray = function (rgb) { + var val = (rgb[0] + rgb[1] + rgb[2]) / 3; + return [val / 255 * 100]; +}; +}); +var conversions_1 = conversions.rgb; +var conversions_2 = conversions.hsl; +var conversions_3 = conversions.hsv; +var conversions_4 = conversions.hwb; +var conversions_5 = conversions.cmyk; +var conversions_6 = conversions.xyz; +var conversions_7 = conversions.lab; +var conversions_8 = conversions.lch; +var conversions_9 = conversions.hex; +var conversions_10 = conversions.keyword; +var conversions_11 = conversions.ansi16; +var conversions_12 = conversions.ansi256; +var conversions_13 = conversions.hcg; +var conversions_14 = conversions.apple; +var conversions_15 = conversions.gray; + +/* + this function routes a model to all other models. + + all functions that are routed have a property `.conversion` attached + to the returned synthetic function. This property is an array + of strings, each with the steps in between the 'from' and 'to' + color models (inclusive). + + conversions that are not possible simply are not included. +*/ + +function buildGraph() { + var graph = {}; + // https://jsperf.com/object-keys-vs-for-in-with-closure/3 + var models = Object.keys(conversions); + + for (var len = models.length, i = 0; i < len; i++) { + graph[models[i]] = { + // http://jsperf.com/1-vs-infinity + // micro-opt, but this is simple. + distance: -1, + parent: null + }; + } + + return graph; +} + +// https://en.wikipedia.org/wiki/Breadth-first_search +function deriveBFS(fromModel) { + var graph = buildGraph(); + var queue = [fromModel]; // unshift -> queue -> pop + + graph[fromModel].distance = 0; + + while (queue.length) { + var current = queue.pop(); + var adjacents = Object.keys(conversions[current]); + + for (var len = adjacents.length, i = 0; i < len; i++) { + var adjacent = adjacents[i]; + var node = graph[adjacent]; + + if (node.distance === -1) { + node.distance = graph[current].distance + 1; + node.parent = current; + queue.unshift(adjacent); + } + } + } + + return graph; +} + +function link(from, to) { + return function (args) { + return to(from(args)); + }; +} + +function wrapConversion(toModel, graph) { + var path = [graph[toModel].parent, toModel]; + var fn = conversions[graph[toModel].parent][toModel]; + + var cur = graph[toModel].parent; + while (graph[cur].parent) { + path.unshift(graph[cur].parent); + fn = link(conversions[graph[cur].parent][cur], fn); + cur = graph[cur].parent; + } + + fn.conversion = path; + return fn; +} + +var route = function (fromModel) { + var graph = deriveBFS(fromModel); + var conversion = {}; + + var models = Object.keys(graph); + for (var len = models.length, i = 0; i < len; i++) { + var toModel = models[i]; + var node = graph[toModel]; + + if (node.parent === null) { + // no possible conversion, or this node is the source model. + continue; + } + + conversion[toModel] = wrapConversion(toModel, graph); + } + + return conversion; +}; + +var convert = {}; + +var models = Object.keys(conversions); + +function wrapRaw(fn) { + var wrappedFn = function (args) { + if (args === undefined || args === null) { + return args; + } + + if (arguments.length > 1) { + args = Array.prototype.slice.call(arguments); + } + + return fn(args); + }; + + // preserve .conversion property if there is one + if ('conversion' in fn) { + wrappedFn.conversion = fn.conversion; + } + + return wrappedFn; +} + +function wrapRounded(fn) { + var wrappedFn = function (args) { + if (args === undefined || args === null) { + return args; + } + + if (arguments.length > 1) { + args = Array.prototype.slice.call(arguments); + } + + var result = fn(args); + + // we're assuming the result is an array here. + // see notice in conversions.js; don't use box types + // in conversion functions. + if (typeof result === 'object') { + for (var len = result.length, i = 0; i < len; i++) { + result[i] = Math.round(result[i]); + } + } + + return result; + }; + + // preserve .conversion property if there is one + if ('conversion' in fn) { + wrappedFn.conversion = fn.conversion; + } + + return wrappedFn; +} + +models.forEach(function (fromModel) { + convert[fromModel] = {}; + + Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels}); + Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels}); + + var routes = route(fromModel); + var routeModels = Object.keys(routes); + + routeModels.forEach(function (toModel) { + var fn = routes[toModel]; + + convert[fromModel][toModel] = wrapRounded(fn); + convert[fromModel][toModel].raw = wrapRaw(fn); + }); +}); + +var colorConvert = convert; + +var colorName$1 = { + "aliceblue": [240, 248, 255], + "antiquewhite": [250, 235, 215], + "aqua": [0, 255, 255], + "aquamarine": [127, 255, 212], + "azure": [240, 255, 255], + "beige": [245, 245, 220], + "bisque": [255, 228, 196], + "black": [0, 0, 0], + "blanchedalmond": [255, 235, 205], + "blue": [0, 0, 255], + "blueviolet": [138, 43, 226], + "brown": [165, 42, 42], + "burlywood": [222, 184, 135], + "cadetblue": [95, 158, 160], + "chartreuse": [127, 255, 0], + "chocolate": [210, 105, 30], + "coral": [255, 127, 80], + "cornflowerblue": [100, 149, 237], + "cornsilk": [255, 248, 220], + "crimson": [220, 20, 60], + "cyan": [0, 255, 255], + "darkblue": [0, 0, 139], + "darkcyan": [0, 139, 139], + "darkgoldenrod": [184, 134, 11], + "darkgray": [169, 169, 169], + "darkgreen": [0, 100, 0], + "darkgrey": [169, 169, 169], + "darkkhaki": [189, 183, 107], + "darkmagenta": [139, 0, 139], + "darkolivegreen": [85, 107, 47], + "darkorange": [255, 140, 0], + "darkorchid": [153, 50, 204], + "darkred": [139, 0, 0], + "darksalmon": [233, 150, 122], + "darkseagreen": [143, 188, 143], + "darkslateblue": [72, 61, 139], + "darkslategray": [47, 79, 79], + "darkslategrey": [47, 79, 79], + "darkturquoise": [0, 206, 209], + "darkviolet": [148, 0, 211], + "deeppink": [255, 20, 147], + "deepskyblue": [0, 191, 255], + "dimgray": [105, 105, 105], + "dimgrey": [105, 105, 105], + "dodgerblue": [30, 144, 255], + "firebrick": [178, 34, 34], + "floralwhite": [255, 250, 240], + "forestgreen": [34, 139, 34], + "fuchsia": [255, 0, 255], + "gainsboro": [220, 220, 220], + "ghostwhite": [248, 248, 255], + "gold": [255, 215, 0], + "goldenrod": [218, 165, 32], + "gray": [128, 128, 128], + "green": [0, 128, 0], + "greenyellow": [173, 255, 47], + "grey": [128, 128, 128], + "honeydew": [240, 255, 240], + "hotpink": [255, 105, 180], + "indianred": [205, 92, 92], + "indigo": [75, 0, 130], + "ivory": [255, 255, 240], + "khaki": [240, 230, 140], + "lavender": [230, 230, 250], + "lavenderblush": [255, 240, 245], + "lawngreen": [124, 252, 0], + "lemonchiffon": [255, 250, 205], + "lightblue": [173, 216, 230], + "lightcoral": [240, 128, 128], + "lightcyan": [224, 255, 255], + "lightgoldenrodyellow": [250, 250, 210], + "lightgray": [211, 211, 211], + "lightgreen": [144, 238, 144], + "lightgrey": [211, 211, 211], + "lightpink": [255, 182, 193], + "lightsalmon": [255, 160, 122], + "lightseagreen": [32, 178, 170], + "lightskyblue": [135, 206, 250], + "lightslategray": [119, 136, 153], + "lightslategrey": [119, 136, 153], + "lightsteelblue": [176, 196, 222], + "lightyellow": [255, 255, 224], + "lime": [0, 255, 0], + "limegreen": [50, 205, 50], + "linen": [250, 240, 230], + "magenta": [255, 0, 255], + "maroon": [128, 0, 0], + "mediumaquamarine": [102, 205, 170], + "mediumblue": [0, 0, 205], + "mediumorchid": [186, 85, 211], + "mediumpurple": [147, 112, 219], + "mediumseagreen": [60, 179, 113], + "mediumslateblue": [123, 104, 238], + "mediumspringgreen": [0, 250, 154], + "mediumturquoise": [72, 209, 204], + "mediumvioletred": [199, 21, 133], + "midnightblue": [25, 25, 112], + "mintcream": [245, 255, 250], + "mistyrose": [255, 228, 225], + "moccasin": [255, 228, 181], + "navajowhite": [255, 222, 173], + "navy": [0, 0, 128], + "oldlace": [253, 245, 230], + "olive": [128, 128, 0], + "olivedrab": [107, 142, 35], + "orange": [255, 165, 0], + "orangered": [255, 69, 0], + "orchid": [218, 112, 214], + "palegoldenrod": [238, 232, 170], + "palegreen": [152, 251, 152], + "paleturquoise": [175, 238, 238], + "palevioletred": [219, 112, 147], + "papayawhip": [255, 239, 213], + "peachpuff": [255, 218, 185], + "peru": [205, 133, 63], + "pink": [255, 192, 203], + "plum": [221, 160, 221], + "powderblue": [176, 224, 230], + "purple": [128, 0, 128], + "rebeccapurple": [102, 51, 153], + "red": [255, 0, 0], + "rosybrown": [188, 143, 143], + "royalblue": [65, 105, 225], + "saddlebrown": [139, 69, 19], + "salmon": [250, 128, 114], + "sandybrown": [244, 164, 96], + "seagreen": [46, 139, 87], + "seashell": [255, 245, 238], + "sienna": [160, 82, 45], + "silver": [192, 192, 192], + "skyblue": [135, 206, 235], + "slateblue": [106, 90, 205], + "slategray": [112, 128, 144], + "slategrey": [112, 128, 144], + "snow": [255, 250, 250], + "springgreen": [0, 255, 127], + "steelblue": [70, 130, 180], + "tan": [210, 180, 140], + "teal": [0, 128, 128], + "thistle": [216, 191, 216], + "tomato": [255, 99, 71], + "turquoise": [64, 224, 208], + "violet": [238, 130, 238], + "wheat": [245, 222, 179], + "white": [255, 255, 255], + "whitesmoke": [245, 245, 245], + "yellow": [255, 255, 0], + "yellowgreen": [154, 205, 50] +}; + +/* MIT license */ + + +var colorString = { + getRgba: getRgba, + getHsla: getHsla, + getRgb: getRgb, + getHsl: getHsl, + getHwb: getHwb, + getAlpha: getAlpha, + + hexString: hexString, + rgbString: rgbString, + rgbaString: rgbaString, + percentString: percentString, + percentaString: percentaString, + hslString: hslString, + hslaString: hslaString, + hwbString: hwbString, + keyword: keyword +}; + +function getRgba(string) { + if (!string) { + return; + } + var abbr = /^#([a-fA-F0-9]{3,4})$/i, + hex = /^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i, + rgba = /^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i, + per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i, + keyword = /(\w+)/; + + var rgb = [0, 0, 0], + a = 1, + match = string.match(abbr), + hexAlpha = ""; + if (match) { + match = match[1]; + hexAlpha = match[3]; + for (var i = 0; i < rgb.length; i++) { + rgb[i] = parseInt(match[i] + match[i], 16); + } + if (hexAlpha) { + a = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100; + } + } + else if (match = string.match(hex)) { + hexAlpha = match[2]; + match = match[1]; + for (var i = 0; i < rgb.length; i++) { + rgb[i] = parseInt(match.slice(i * 2, i * 2 + 2), 16); + } + if (hexAlpha) { + a = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100; + } + } + else if (match = string.match(rgba)) { + for (var i = 0; i < rgb.length; i++) { + rgb[i] = parseInt(match[i + 1]); + } + a = parseFloat(match[4]); + } + else if (match = string.match(per)) { + for (var i = 0; i < rgb.length; i++) { + rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55); + } + a = parseFloat(match[4]); + } + else if (match = string.match(keyword)) { + if (match[1] == "transparent") { + return [0, 0, 0, 0]; + } + rgb = colorName$1[match[1]]; + if (!rgb) { + return; + } + } + + for (var i = 0; i < rgb.length; i++) { + rgb[i] = scale(rgb[i], 0, 255); + } + if (!a && a != 0) { + a = 1; + } + else { + a = scale(a, 0, 1); + } + rgb[3] = a; + return rgb; +} + +function getHsla(string) { + if (!string) { + return; + } + var hsl = /^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/; + var match = string.match(hsl); + if (match) { + var alpha = parseFloat(match[4]); + var h = scale(parseInt(match[1]), 0, 360), + s = scale(parseFloat(match[2]), 0, 100), + l = scale(parseFloat(match[3]), 0, 100), + a = scale(isNaN(alpha) ? 1 : alpha, 0, 1); + return [h, s, l, a]; + } +} + +function getHwb(string) { + if (!string) { + return; + } + var hwb = /^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/; + var match = string.match(hwb); + if (match) { + var alpha = parseFloat(match[4]); + var h = scale(parseInt(match[1]), 0, 360), + w = scale(parseFloat(match[2]), 0, 100), + b = scale(parseFloat(match[3]), 0, 100), + a = scale(isNaN(alpha) ? 1 : alpha, 0, 1); + return [h, w, b, a]; + } +} + +function getRgb(string) { + var rgba = getRgba(string); + return rgba && rgba.slice(0, 3); +} + +function getHsl(string) { + var hsla = getHsla(string); + return hsla && hsla.slice(0, 3); +} + +function getAlpha(string) { + var vals = getRgba(string); + if (vals) { + return vals[3]; + } + else if (vals = getHsla(string)) { + return vals[3]; + } + else if (vals = getHwb(string)) { + return vals[3]; + } +} + +// generators +function hexString(rgba, a) { + var a = (a !== undefined && rgba.length === 3) ? a : rgba[3]; + return "#" + hexDouble(rgba[0]) + + hexDouble(rgba[1]) + + hexDouble(rgba[2]) + + ( + (a >= 0 && a < 1) + ? hexDouble(Math.round(a * 255)) + : "" + ); +} + +function rgbString(rgba, alpha) { + if (alpha < 1 || (rgba[3] && rgba[3] < 1)) { + return rgbaString(rgba, alpha); + } + return "rgb(" + rgba[0] + ", " + rgba[1] + ", " + rgba[2] + ")"; +} + +function rgbaString(rgba, alpha) { + if (alpha === undefined) { + alpha = (rgba[3] !== undefined ? rgba[3] : 1); + } + return "rgba(" + rgba[0] + ", " + rgba[1] + ", " + rgba[2] + + ", " + alpha + ")"; +} + +function percentString(rgba, alpha) { + if (alpha < 1 || (rgba[3] && rgba[3] < 1)) { + return percentaString(rgba, alpha); + } + var r = Math.round(rgba[0]/255 * 100), + g = Math.round(rgba[1]/255 * 100), + b = Math.round(rgba[2]/255 * 100); + + return "rgb(" + r + "%, " + g + "%, " + b + "%)"; +} + +function percentaString(rgba, alpha) { + var r = Math.round(rgba[0]/255 * 100), + g = Math.round(rgba[1]/255 * 100), + b = Math.round(rgba[2]/255 * 100); + return "rgba(" + r + "%, " + g + "%, " + b + "%, " + (alpha || rgba[3] || 1) + ")"; +} + +function hslString(hsla, alpha) { + if (alpha < 1 || (hsla[3] && hsla[3] < 1)) { + return hslaString(hsla, alpha); + } + return "hsl(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%)"; +} + +function hslaString(hsla, alpha) { + if (alpha === undefined) { + alpha = (hsla[3] !== undefined ? hsla[3] : 1); + } + return "hsla(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%, " + + alpha + ")"; +} + +// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax +// (hwb have alpha optional & 1 is default value) +function hwbString(hwb, alpha) { + if (alpha === undefined) { + alpha = (hwb[3] !== undefined ? hwb[3] : 1); + } + return "hwb(" + hwb[0] + ", " + hwb[1] + "%, " + hwb[2] + "%" + + (alpha !== undefined && alpha !== 1 ? ", " + alpha : "") + ")"; +} + +function keyword(rgb) { + return reverseNames[rgb.slice(0, 3)]; +} + +// helpers +function scale(num, min, max) { + return Math.min(Math.max(min, num), max); +} + +function hexDouble(num) { + var str = num.toString(16).toUpperCase(); + return (str.length < 2) ? "0" + str : str; +} + + +//create a list of reverse color names +var reverseNames = {}; +for (var name in colorName$1) { + reverseNames[colorName$1[name]] = name; +} + +/* MIT license */ + + + +var Color = function (obj) { + if (obj instanceof Color) { + return obj; + } + if (!(this instanceof Color)) { + return new Color(obj); + } + + this.valid = false; + this.values = { + rgb: [0, 0, 0], + hsl: [0, 0, 0], + hsv: [0, 0, 0], + hwb: [0, 0, 0], + cmyk: [0, 0, 0, 0], + alpha: 1 + }; + + // parse Color() argument + var vals; + if (typeof obj === 'string') { + vals = colorString.getRgba(obj); + if (vals) { + this.setValues('rgb', vals); + } else if (vals = colorString.getHsla(obj)) { + this.setValues('hsl', vals); + } else if (vals = colorString.getHwb(obj)) { + this.setValues('hwb', vals); + } + } else if (typeof obj === 'object') { + vals = obj; + if (vals.r !== undefined || vals.red !== undefined) { + this.setValues('rgb', vals); + } else if (vals.l !== undefined || vals.lightness !== undefined) { + this.setValues('hsl', vals); + } else if (vals.v !== undefined || vals.value !== undefined) { + this.setValues('hsv', vals); + } else if (vals.w !== undefined || vals.whiteness !== undefined) { + this.setValues('hwb', vals); + } else if (vals.c !== undefined || vals.cyan !== undefined) { + this.setValues('cmyk', vals); + } + } +}; + +Color.prototype = { + isValid: function () { + return this.valid; + }, + rgb: function () { + return this.setSpace('rgb', arguments); + }, + hsl: function () { + return this.setSpace('hsl', arguments); + }, + hsv: function () { + return this.setSpace('hsv', arguments); + }, + hwb: function () { + return this.setSpace('hwb', arguments); + }, + cmyk: function () { + return this.setSpace('cmyk', arguments); + }, + + rgbArray: function () { + return this.values.rgb; + }, + hslArray: function () { + return this.values.hsl; + }, + hsvArray: function () { + return this.values.hsv; + }, + hwbArray: function () { + var values = this.values; + if (values.alpha !== 1) { + return values.hwb.concat([values.alpha]); + } + return values.hwb; + }, + cmykArray: function () { + return this.values.cmyk; + }, + rgbaArray: function () { + var values = this.values; + return values.rgb.concat([values.alpha]); + }, + hslaArray: function () { + var values = this.values; + return values.hsl.concat([values.alpha]); + }, + alpha: function (val) { + if (val === undefined) { + return this.values.alpha; + } + this.setValues('alpha', val); + return this; + }, + + red: function (val) { + return this.setChannel('rgb', 0, val); + }, + green: function (val) { + return this.setChannel('rgb', 1, val); + }, + blue: function (val) { + return this.setChannel('rgb', 2, val); + }, + hue: function (val) { + if (val) { + val %= 360; + val = val < 0 ? 360 + val : val; + } + return this.setChannel('hsl', 0, val); + }, + saturation: function (val) { + return this.setChannel('hsl', 1, val); + }, + lightness: function (val) { + return this.setChannel('hsl', 2, val); + }, + saturationv: function (val) { + return this.setChannel('hsv', 1, val); + }, + whiteness: function (val) { + return this.setChannel('hwb', 1, val); + }, + blackness: function (val) { + return this.setChannel('hwb', 2, val); + }, + value: function (val) { + return this.setChannel('hsv', 2, val); + }, + cyan: function (val) { + return this.setChannel('cmyk', 0, val); + }, + magenta: function (val) { + return this.setChannel('cmyk', 1, val); + }, + yellow: function (val) { + return this.setChannel('cmyk', 2, val); + }, + black: function (val) { + return this.setChannel('cmyk', 3, val); + }, + + hexString: function () { + return colorString.hexString(this.values.rgb); + }, + rgbString: function () { + return colorString.rgbString(this.values.rgb, this.values.alpha); + }, + rgbaString: function () { + return colorString.rgbaString(this.values.rgb, this.values.alpha); + }, + percentString: function () { + return colorString.percentString(this.values.rgb, this.values.alpha); + }, + hslString: function () { + return colorString.hslString(this.values.hsl, this.values.alpha); + }, + hslaString: function () { + return colorString.hslaString(this.values.hsl, this.values.alpha); + }, + hwbString: function () { + return colorString.hwbString(this.values.hwb, this.values.alpha); + }, + keyword: function () { + return colorString.keyword(this.values.rgb, this.values.alpha); + }, + + rgbNumber: function () { + var rgb = this.values.rgb; + return (rgb[0] << 16) | (rgb[1] << 8) | rgb[2]; + }, + + luminosity: function () { + // http://www.w3.org/TR/WCAG20/#relativeluminancedef + var rgb = this.values.rgb; + var lum = []; + for (var i = 0; i < rgb.length; i++) { + var chan = rgb[i] / 255; + lum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4); + } + return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2]; + }, + + contrast: function (color2) { + // http://www.w3.org/TR/WCAG20/#contrast-ratiodef + var lum1 = this.luminosity(); + var lum2 = color2.luminosity(); + if (lum1 > lum2) { + return (lum1 + 0.05) / (lum2 + 0.05); + } + return (lum2 + 0.05) / (lum1 + 0.05); + }, + + level: function (color2) { + var contrastRatio = this.contrast(color2); + if (contrastRatio >= 7.1) { + return 'AAA'; + } + + return (contrastRatio >= 4.5) ? 'AA' : ''; + }, + + dark: function () { + // YIQ equation from http://24ways.org/2010/calculating-color-contrast + var rgb = this.values.rgb; + var yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000; + return yiq < 128; + }, + + light: function () { + return !this.dark(); + }, + + negate: function () { + var rgb = []; + for (var i = 0; i < 3; i++) { + rgb[i] = 255 - this.values.rgb[i]; + } + this.setValues('rgb', rgb); + return this; + }, + + lighten: function (ratio) { + var hsl = this.values.hsl; + hsl[2] += hsl[2] * ratio; + this.setValues('hsl', hsl); + return this; + }, + + darken: function (ratio) { + var hsl = this.values.hsl; + hsl[2] -= hsl[2] * ratio; + this.setValues('hsl', hsl); + return this; + }, + + saturate: function (ratio) { + var hsl = this.values.hsl; + hsl[1] += hsl[1] * ratio; + this.setValues('hsl', hsl); + return this; + }, + + desaturate: function (ratio) { + var hsl = this.values.hsl; + hsl[1] -= hsl[1] * ratio; + this.setValues('hsl', hsl); + return this; + }, + + whiten: function (ratio) { + var hwb = this.values.hwb; + hwb[1] += hwb[1] * ratio; + this.setValues('hwb', hwb); + return this; + }, + + blacken: function (ratio) { + var hwb = this.values.hwb; + hwb[2] += hwb[2] * ratio; + this.setValues('hwb', hwb); + return this; + }, + + greyscale: function () { + var rgb = this.values.rgb; + // http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale + var val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11; + this.setValues('rgb', [val, val, val]); + return this; + }, + + clearer: function (ratio) { + var alpha = this.values.alpha; + this.setValues('alpha', alpha - (alpha * ratio)); + return this; + }, + + opaquer: function (ratio) { + var alpha = this.values.alpha; + this.setValues('alpha', alpha + (alpha * ratio)); + return this; + }, + + rotate: function (degrees) { + var hsl = this.values.hsl; + var hue = (hsl[0] + degrees) % 360; + hsl[0] = hue < 0 ? 360 + hue : hue; + this.setValues('hsl', hsl); + return this; + }, + + /** + * Ported from sass implementation in C + * https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209 + */ + mix: function (mixinColor, weight) { + var color1 = this; + var color2 = mixinColor; + var p = weight === undefined ? 0.5 : weight; + + var w = 2 * p - 1; + var a = color1.alpha() - color2.alpha(); + + var w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0; + var w2 = 1 - w1; + + return this + .rgb( + w1 * color1.red() + w2 * color2.red(), + w1 * color1.green() + w2 * color2.green(), + w1 * color1.blue() + w2 * color2.blue() + ) + .alpha(color1.alpha() * p + color2.alpha() * (1 - p)); + }, + + toJSON: function () { + return this.rgb(); + }, + + clone: function () { + // NOTE(SB): using node-clone creates a dependency to Buffer when using browserify, + // making the final build way to big to embed in Chart.js. So let's do it manually, + // assuming that values to clone are 1 dimension arrays containing only numbers, + // except 'alpha' which is a number. + var result = new Color(); + var source = this.values; + var target = result.values; + var value, type; + + for (var prop in source) { + if (source.hasOwnProperty(prop)) { + value = source[prop]; + type = ({}).toString.call(value); + if (type === '[object Array]') { + target[prop] = value.slice(0); + } else if (type === '[object Number]') { + target[prop] = value; + } else { + console.error('unexpected color value:', value); + } + } + } + + return result; + } +}; + +Color.prototype.spaces = { + rgb: ['red', 'green', 'blue'], + hsl: ['hue', 'saturation', 'lightness'], + hsv: ['hue', 'saturation', 'value'], + hwb: ['hue', 'whiteness', 'blackness'], + cmyk: ['cyan', 'magenta', 'yellow', 'black'] +}; + +Color.prototype.maxes = { + rgb: [255, 255, 255], + hsl: [360, 100, 100], + hsv: [360, 100, 100], + hwb: [360, 100, 100], + cmyk: [100, 100, 100, 100] +}; + +Color.prototype.getValues = function (space) { + var values = this.values; + var vals = {}; + + for (var i = 0; i < space.length; i++) { + vals[space.charAt(i)] = values[space][i]; + } + + if (values.alpha !== 1) { + vals.a = values.alpha; + } + + // {r: 255, g: 255, b: 255, a: 0.4} + return vals; +}; + +Color.prototype.setValues = function (space, vals) { + var values = this.values; + var spaces = this.spaces; + var maxes = this.maxes; + var alpha = 1; + var i; + + this.valid = true; + + if (space === 'alpha') { + alpha = vals; + } else if (vals.length) { + // [10, 10, 10] + values[space] = vals.slice(0, space.length); + alpha = vals[space.length]; + } else if (vals[space.charAt(0)] !== undefined) { + // {r: 10, g: 10, b: 10} + for (i = 0; i < space.length; i++) { + values[space][i] = vals[space.charAt(i)]; + } + + alpha = vals.a; + } else if (vals[spaces[space][0]] !== undefined) { + // {red: 10, green: 10, blue: 10} + var chans = spaces[space]; + + for (i = 0; i < space.length; i++) { + values[space][i] = vals[chans[i]]; + } + + alpha = vals.alpha; + } + + values.alpha = Math.max(0, Math.min(1, (alpha === undefined ? values.alpha : alpha))); + + if (space === 'alpha') { + return false; + } + + var capped; + + // cap values of the space prior converting all values + for (i = 0; i < space.length; i++) { + capped = Math.max(0, Math.min(maxes[space][i], values[space][i])); + values[space][i] = Math.round(capped); + } + + // convert to all the other color spaces + for (var sname in spaces) { + if (sname !== space) { + values[sname] = colorConvert[space][sname](values[space]); + } + } + + return true; +}; + +Color.prototype.setSpace = function (space, args) { + var vals = args[0]; + + if (vals === undefined) { + // color.rgb() + return this.getValues(space); + } + + // color.rgb(10, 10, 10) + if (typeof vals === 'number') { + vals = Array.prototype.slice.call(args); + } + + this.setValues(space, vals); + return this; +}; + +Color.prototype.setChannel = function (space, index, val) { + var svalues = this.values[space]; + if (val === undefined) { + // color.red() + return svalues[index]; + } else if (val === svalues[index]) { + // color.red(color.red()) + return this; + } + + // color.red(100) + svalues[index] = val; + this.setValues(space, svalues); + + return this; +}; + +if (typeof window !== 'undefined') { + window.Color = Color; +} + +var chartjsColor = Color; + +/** + * @namespace Chart.helpers + */ +var helpers = { + /** + * An empty function that can be used, for example, for optional callback. + */ + noop: function() {}, + + /** + * Returns a unique id, sequentially generated from a global variable. + * @returns {number} + * @function + */ + uid: (function() { + var id = 0; + return function() { + return id++; + }; + }()), + + /** + * Returns true if `value` is neither null nor undefined, else returns false. + * @param {*} value - The value to test. + * @returns {boolean} + * @since 2.7.0 + */ + isNullOrUndef: function(value) { + return value === null || typeof value === 'undefined'; + }, + + /** + * Returns true if `value` is an array (including typed arrays), else returns false. + * @param {*} value - The value to test. + * @returns {boolean} + * @function + */ + isArray: function(value) { + if (Array.isArray && Array.isArray(value)) { + return true; + } + var type = Object.prototype.toString.call(value); + if (type.substr(0, 7) === '[object' && type.substr(-6) === 'Array]') { + return true; + } + return false; + }, + + /** + * Returns true if `value` is an object (excluding null), else returns false. + * @param {*} value - The value to test. + * @returns {boolean} + * @since 2.7.0 + */ + isObject: function(value) { + return value !== null && Object.prototype.toString.call(value) === '[object Object]'; + }, + + /** + * Returns true if `value` is a finite number, else returns false + * @param {*} value - The value to test. + * @returns {boolean} + */ + isFinite: function(value) { + return (typeof value === 'number' || value instanceof Number) && isFinite(value); + }, + + /** + * Returns `value` if defined, else returns `defaultValue`. + * @param {*} value - The value to return if defined. + * @param {*} defaultValue - The value to return if `value` is undefined. + * @returns {*} + */ + valueOrDefault: function(value, defaultValue) { + return typeof value === 'undefined' ? defaultValue : value; + }, + + /** + * Returns value at the given `index` in array if defined, else returns `defaultValue`. + * @param {Array} value - The array to lookup for value at `index`. + * @param {number} index - The index in `value` to lookup for value. + * @param {*} defaultValue - The value to return if `value[index]` is undefined. + * @returns {*} + */ + valueAtIndexOrDefault: function(value, index, defaultValue) { + return helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue); + }, + + /** + * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the + * value returned by `fn`. If `fn` is not a function, this method returns undefined. + * @param {function} fn - The function to call. + * @param {Array|undefined|null} args - The arguments with which `fn` should be called. + * @param {object} [thisArg] - The value of `this` provided for the call to `fn`. + * @returns {*} + */ + callback: function(fn, args, thisArg) { + if (fn && typeof fn.call === 'function') { + return fn.apply(thisArg, args); + } + }, + + /** + * Note(SB) for performance sake, this method should only be used when loopable type + * is unknown or in none intensive code (not called often and small loopable). Else + * it's preferable to use a regular for() loop and save extra function calls. + * @param {object|Array} loopable - The object or array to be iterated. + * @param {function} fn - The function to call for each item. + * @param {object} [thisArg] - The value of `this` provided for the call to `fn`. + * @param {boolean} [reverse] - If true, iterates backward on the loopable. + */ + each: function(loopable, fn, thisArg, reverse) { + var i, len, keys; + if (helpers.isArray(loopable)) { + len = loopable.length; + if (reverse) { + for (i = len - 1; i >= 0; i--) { + fn.call(thisArg, loopable[i], i); + } + } else { + for (i = 0; i < len; i++) { + fn.call(thisArg, loopable[i], i); + } + } + } else if (helpers.isObject(loopable)) { + keys = Object.keys(loopable); + len = keys.length; + for (i = 0; i < len; i++) { + fn.call(thisArg, loopable[keys[i]], keys[i]); + } + } + }, + + /** + * Returns true if the `a0` and `a1` arrays have the same content, else returns false. + * @see https://stackoverflow.com/a/14853974 + * @param {Array} a0 - The array to compare + * @param {Array} a1 - The array to compare + * @returns {boolean} + */ + arrayEquals: function(a0, a1) { + var i, ilen, v0, v1; + + if (!a0 || !a1 || a0.length !== a1.length) { + return false; + } + + for (i = 0, ilen = a0.length; i < ilen; ++i) { + v0 = a0[i]; + v1 = a1[i]; + + if (v0 instanceof Array && v1 instanceof Array) { + if (!helpers.arrayEquals(v0, v1)) { + return false; + } + } else if (v0 !== v1) { + // NOTE: two different object instances will never be equal: {x:20} != {x:20} + return false; + } + } + + return true; + }, + + /** + * Returns a deep copy of `source` without keeping references on objects and arrays. + * @param {*} source - The value to clone. + * @returns {*} + */ + clone: function(source) { + if (helpers.isArray(source)) { + return source.map(helpers.clone); + } + + if (helpers.isObject(source)) { + var target = {}; + var keys = Object.keys(source); + var klen = keys.length; + var k = 0; + + for (; k < klen; ++k) { + target[keys[k]] = helpers.clone(source[keys[k]]); + } + + return target; + } + + return source; + }, + + /** + * The default merger when Chart.helpers.merge is called without merger option. + * Note(SB): also used by mergeConfig and mergeScaleConfig as fallback. + * @private + */ + _merger: function(key, target, source, options) { + var tval = target[key]; + var sval = source[key]; + + if (helpers.isObject(tval) && helpers.isObject(sval)) { + helpers.merge(tval, sval, options); + } else { + target[key] = helpers.clone(sval); + } + }, + + /** + * Merges source[key] in target[key] only if target[key] is undefined. + * @private + */ + _mergerIf: function(key, target, source) { + var tval = target[key]; + var sval = source[key]; + + if (helpers.isObject(tval) && helpers.isObject(sval)) { + helpers.mergeIf(tval, sval); + } else if (!target.hasOwnProperty(key)) { + target[key] = helpers.clone(sval); + } + }, + + /** + * Recursively deep copies `source` properties into `target` with the given `options`. + * IMPORTANT: `target` is not cloned and will be updated with `source` properties. + * @param {object} target - The target object in which all sources are merged into. + * @param {object|object[]} source - Object(s) to merge into `target`. + * @param {object} [options] - Merging options: + * @param {function} [options.merger] - The merge method (key, target, source, options) + * @returns {object} The `target` object. + */ + merge: function(target, source, options) { + var sources = helpers.isArray(source) ? source : [source]; + var ilen = sources.length; + var merge, i, keys, klen, k; + + if (!helpers.isObject(target)) { + return target; + } + + options = options || {}; + merge = options.merger || helpers._merger; + + for (i = 0; i < ilen; ++i) { + source = sources[i]; + if (!helpers.isObject(source)) { + continue; + } + + keys = Object.keys(source); + for (k = 0, klen = keys.length; k < klen; ++k) { + merge(keys[k], target, source, options); + } + } + + return target; + }, + + /** + * Recursively deep copies `source` properties into `target` *only* if not defined in target. + * IMPORTANT: `target` is not cloned and will be updated with `source` properties. + * @param {object} target - The target object in which all sources are merged into. + * @param {object|object[]} source - Object(s) to merge into `target`. + * @returns {object} The `target` object. + */ + mergeIf: function(target, source) { + return helpers.merge(target, source, {merger: helpers._mergerIf}); + }, + + /** + * Applies the contents of two or more objects together into the first object. + * @param {object} target - The target object in which all objects are merged into. + * @param {object} arg1 - Object containing additional properties to merge in target. + * @param {object} argN - Additional objects containing properties to merge in target. + * @returns {object} The `target` object. + */ + extend: Object.assign || function(target) { + return helpers.merge(target, [].slice.call(arguments, 1), { + merger: function(key, dst, src) { + dst[key] = src[key]; + } + }); + }, + + /** + * Basic javascript inheritance based on the model created in Backbone.js + */ + inherits: function(extensions) { + var me = this; + var ChartElement = (extensions && extensions.hasOwnProperty('constructor')) ? extensions.constructor : function() { + return me.apply(this, arguments); + }; + + var Surrogate = function() { + this.constructor = ChartElement; + }; + + Surrogate.prototype = me.prototype; + ChartElement.prototype = new Surrogate(); + ChartElement.extend = helpers.inherits; + + if (extensions) { + helpers.extend(ChartElement.prototype, extensions); + } + + ChartElement.__super__ = me.prototype; + return ChartElement; + }, + + _deprecated: function(scope, value, previous, current) { + if (value !== undefined) { + console.warn(scope + ': "' + previous + + '" is deprecated. Please use "' + current + '" instead'); + } + } +}; + +var helpers_core = helpers; + +// DEPRECATIONS + +/** + * Provided for backward compatibility, use Chart.helpers.callback instead. + * @function Chart.helpers.callCallback + * @deprecated since version 2.6.0 + * @todo remove at version 3 + * @private + */ +helpers.callCallback = helpers.callback; + +/** + * Provided for backward compatibility, use Array.prototype.indexOf instead. + * Array.prototype.indexOf compatibility: Chrome, Opera, Safari, FF1.5+, IE9+ + * @function Chart.helpers.indexOf + * @deprecated since version 2.7.0 + * @todo remove at version 3 + * @private + */ +helpers.indexOf = function(array, item, fromIndex) { + return Array.prototype.indexOf.call(array, item, fromIndex); +}; + +/** + * Provided for backward compatibility, use Chart.helpers.valueOrDefault instead. + * @function Chart.helpers.getValueOrDefault + * @deprecated since version 2.7.0 + * @todo remove at version 3 + * @private + */ +helpers.getValueOrDefault = helpers.valueOrDefault; + +/** + * Provided for backward compatibility, use Chart.helpers.valueAtIndexOrDefault instead. + * @function Chart.helpers.getValueAtIndexOrDefault + * @deprecated since version 2.7.0 + * @todo remove at version 3 + * @private + */ +helpers.getValueAtIndexOrDefault = helpers.valueAtIndexOrDefault; + +/** + * Easing functions adapted from Robert Penner's easing equations. + * @namespace Chart.helpers.easingEffects + * @see http://www.robertpenner.com/easing/ + */ +var effects = { + linear: function(t) { + return t; + }, + + easeInQuad: function(t) { + return t * t; + }, + + easeOutQuad: function(t) { + return -t * (t - 2); + }, + + easeInOutQuad: function(t) { + if ((t /= 0.5) < 1) { + return 0.5 * t * t; + } + return -0.5 * ((--t) * (t - 2) - 1); + }, + + easeInCubic: function(t) { + return t * t * t; + }, + + easeOutCubic: function(t) { + return (t = t - 1) * t * t + 1; + }, + + easeInOutCubic: function(t) { + if ((t /= 0.5) < 1) { + return 0.5 * t * t * t; + } + return 0.5 * ((t -= 2) * t * t + 2); + }, + + easeInQuart: function(t) { + return t * t * t * t; + }, + + easeOutQuart: function(t) { + return -((t = t - 1) * t * t * t - 1); + }, + + easeInOutQuart: function(t) { + if ((t /= 0.5) < 1) { + return 0.5 * t * t * t * t; + } + return -0.5 * ((t -= 2) * t * t * t - 2); + }, + + easeInQuint: function(t) { + return t * t * t * t * t; + }, + + easeOutQuint: function(t) { + return (t = t - 1) * t * t * t * t + 1; + }, + + easeInOutQuint: function(t) { + if ((t /= 0.5) < 1) { + return 0.5 * t * t * t * t * t; + } + return 0.5 * ((t -= 2) * t * t * t * t + 2); + }, + + easeInSine: function(t) { + return -Math.cos(t * (Math.PI / 2)) + 1; + }, + + easeOutSine: function(t) { + return Math.sin(t * (Math.PI / 2)); + }, + + easeInOutSine: function(t) { + return -0.5 * (Math.cos(Math.PI * t) - 1); + }, + + easeInExpo: function(t) { + return (t === 0) ? 0 : Math.pow(2, 10 * (t - 1)); + }, + + easeOutExpo: function(t) { + return (t === 1) ? 1 : -Math.pow(2, -10 * t) + 1; + }, + + easeInOutExpo: function(t) { + if (t === 0) { + return 0; + } + if (t === 1) { + return 1; + } + if ((t /= 0.5) < 1) { + return 0.5 * Math.pow(2, 10 * (t - 1)); + } + return 0.5 * (-Math.pow(2, -10 * --t) + 2); + }, + + easeInCirc: function(t) { + if (t >= 1) { + return t; + } + return -(Math.sqrt(1 - t * t) - 1); + }, + + easeOutCirc: function(t) { + return Math.sqrt(1 - (t = t - 1) * t); + }, + + easeInOutCirc: function(t) { + if ((t /= 0.5) < 1) { + return -0.5 * (Math.sqrt(1 - t * t) - 1); + } + return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1); + }, + + easeInElastic: function(t) { + var s = 1.70158; + var p = 0; + var a = 1; + if (t === 0) { + return 0; + } + if (t === 1) { + return 1; + } + if (!p) { + p = 0.3; + } + if (a < 1) { + a = 1; + s = p / 4; + } else { + s = p / (2 * Math.PI) * Math.asin(1 / a); + } + return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p)); + }, + + easeOutElastic: function(t) { + var s = 1.70158; + var p = 0; + var a = 1; + if (t === 0) { + return 0; + } + if (t === 1) { + return 1; + } + if (!p) { + p = 0.3; + } + if (a < 1) { + a = 1; + s = p / 4; + } else { + s = p / (2 * Math.PI) * Math.asin(1 / a); + } + return a * Math.pow(2, -10 * t) * Math.sin((t - s) * (2 * Math.PI) / p) + 1; + }, + + easeInOutElastic: function(t) { + var s = 1.70158; + var p = 0; + var a = 1; + if (t === 0) { + return 0; + } + if ((t /= 0.5) === 2) { + return 1; + } + if (!p) { + p = 0.45; + } + if (a < 1) { + a = 1; + s = p / 4; + } else { + s = p / (2 * Math.PI) * Math.asin(1 / a); + } + if (t < 1) { + return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p)); + } + return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p) * 0.5 + 1; + }, + easeInBack: function(t) { + var s = 1.70158; + return t * t * ((s + 1) * t - s); + }, + + easeOutBack: function(t) { + var s = 1.70158; + return (t = t - 1) * t * ((s + 1) * t + s) + 1; + }, + + easeInOutBack: function(t) { + var s = 1.70158; + if ((t /= 0.5) < 1) { + return 0.5 * (t * t * (((s *= (1.525)) + 1) * t - s)); + } + return 0.5 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2); + }, + + easeInBounce: function(t) { + return 1 - effects.easeOutBounce(1 - t); + }, + + easeOutBounce: function(t) { + if (t < (1 / 2.75)) { + return 7.5625 * t * t; + } + if (t < (2 / 2.75)) { + return 7.5625 * (t -= (1.5 / 2.75)) * t + 0.75; + } + if (t < (2.5 / 2.75)) { + return 7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375; + } + return 7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375; + }, + + easeInOutBounce: function(t) { + if (t < 0.5) { + return effects.easeInBounce(t * 2) * 0.5; + } + return effects.easeOutBounce(t * 2 - 1) * 0.5 + 0.5; + } +}; + +var helpers_easing = { + effects: effects +}; + +// DEPRECATIONS + +/** + * Provided for backward compatibility, use Chart.helpers.easing.effects instead. + * @function Chart.helpers.easingEffects + * @deprecated since version 2.7.0 + * @todo remove at version 3 + * @private + */ +helpers_core.easingEffects = effects; + +var PI = Math.PI; +var RAD_PER_DEG = PI / 180; +var DOUBLE_PI = PI * 2; +var HALF_PI = PI / 2; +var QUARTER_PI = PI / 4; +var TWO_THIRDS_PI = PI * 2 / 3; + +/** + * @namespace Chart.helpers.canvas + */ +var exports$1 = { + /** + * Clears the entire canvas associated to the given `chart`. + * @param {Chart} chart - The chart for which to clear the canvas. + */ + clear: function(chart) { + chart.ctx.clearRect(0, 0, chart.width, chart.height); + }, + + /** + * Creates a "path" for a rectangle with rounded corners at position (x, y) with a + * given size (width, height) and the same `radius` for all corners. + * @param {CanvasRenderingContext2D} ctx - The canvas 2D Context. + * @param {number} x - The x axis of the coordinate for the rectangle starting point. + * @param {number} y - The y axis of the coordinate for the rectangle starting point. + * @param {number} width - The rectangle's width. + * @param {number} height - The rectangle's height. + * @param {number} radius - The rounded amount (in pixels) for the four corners. + * @todo handle `radius` as top-left, top-right, bottom-right, bottom-left array/object? + */ + roundedRect: function(ctx, x, y, width, height, radius) { + if (radius) { + var r = Math.min(radius, height / 2, width / 2); + var left = x + r; + var top = y + r; + var right = x + width - r; + var bottom = y + height - r; + + ctx.moveTo(x, top); + if (left < right && top < bottom) { + ctx.arc(left, top, r, -PI, -HALF_PI); + ctx.arc(right, top, r, -HALF_PI, 0); + ctx.arc(right, bottom, r, 0, HALF_PI); + ctx.arc(left, bottom, r, HALF_PI, PI); + } else if (left < right) { + ctx.moveTo(left, y); + ctx.arc(right, top, r, -HALF_PI, HALF_PI); + ctx.arc(left, top, r, HALF_PI, PI + HALF_PI); + } else if (top < bottom) { + ctx.arc(left, top, r, -PI, 0); + ctx.arc(left, bottom, r, 0, PI); + } else { + ctx.arc(left, top, r, -PI, PI); + } + ctx.closePath(); + ctx.moveTo(x, y); + } else { + ctx.rect(x, y, width, height); + } + }, + + drawPoint: function(ctx, style, radius, x, y, rotation) { + var type, xOffset, yOffset, size, cornerRadius; + var rad = (rotation || 0) * RAD_PER_DEG; + + if (style && typeof style === 'object') { + type = style.toString(); + if (type === '[object HTMLImageElement]' || type === '[object HTMLCanvasElement]') { + ctx.save(); + ctx.translate(x, y); + ctx.rotate(rad); + ctx.drawImage(style, -style.width / 2, -style.height / 2, style.width, style.height); + ctx.restore(); + return; + } + } + + if (isNaN(radius) || radius <= 0) { + return; + } + + ctx.beginPath(); + + switch (style) { + // Default includes circle + default: + ctx.arc(x, y, radius, 0, DOUBLE_PI); + ctx.closePath(); + break; + case 'triangle': + ctx.moveTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius); + rad += TWO_THIRDS_PI; + ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius); + rad += TWO_THIRDS_PI; + ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius); + ctx.closePath(); + break; + case 'rectRounded': + // NOTE: the rounded rect implementation changed to use `arc` instead of + // `quadraticCurveTo` since it generates better results when rect is + // almost a circle. 0.516 (instead of 0.5) produces results with visually + // closer proportion to the previous impl and it is inscribed in the + // circle with `radius`. For more details, see the following PRs: + // https://github.com/chartjs/Chart.js/issues/5597 + // https://github.com/chartjs/Chart.js/issues/5858 + cornerRadius = radius * 0.516; + size = radius - cornerRadius; + xOffset = Math.cos(rad + QUARTER_PI) * size; + yOffset = Math.sin(rad + QUARTER_PI) * size; + ctx.arc(x - xOffset, y - yOffset, cornerRadius, rad - PI, rad - HALF_PI); + ctx.arc(x + yOffset, y - xOffset, cornerRadius, rad - HALF_PI, rad); + ctx.arc(x + xOffset, y + yOffset, cornerRadius, rad, rad + HALF_PI); + ctx.arc(x - yOffset, y + xOffset, cornerRadius, rad + HALF_PI, rad + PI); + ctx.closePath(); + break; + case 'rect': + if (!rotation) { + size = Math.SQRT1_2 * radius; + ctx.rect(x - size, y - size, 2 * size, 2 * size); + break; + } + rad += QUARTER_PI; + /* falls through */ + case 'rectRot': + xOffset = Math.cos(rad) * radius; + yOffset = Math.sin(rad) * radius; + ctx.moveTo(x - xOffset, y - yOffset); + ctx.lineTo(x + yOffset, y - xOffset); + ctx.lineTo(x + xOffset, y + yOffset); + ctx.lineTo(x - yOffset, y + xOffset); + ctx.closePath(); + break; + case 'crossRot': + rad += QUARTER_PI; + /* falls through */ + case 'cross': + xOffset = Math.cos(rad) * radius; + yOffset = Math.sin(rad) * radius; + ctx.moveTo(x - xOffset, y - yOffset); + ctx.lineTo(x + xOffset, y + yOffset); + ctx.moveTo(x + yOffset, y - xOffset); + ctx.lineTo(x - yOffset, y + xOffset); + break; + case 'star': + xOffset = Math.cos(rad) * radius; + yOffset = Math.sin(rad) * radius; + ctx.moveTo(x - xOffset, y - yOffset); + ctx.lineTo(x + xOffset, y + yOffset); + ctx.moveTo(x + yOffset, y - xOffset); + ctx.lineTo(x - yOffset, y + xOffset); + rad += QUARTER_PI; + xOffset = Math.cos(rad) * radius; + yOffset = Math.sin(rad) * radius; + ctx.moveTo(x - xOffset, y - yOffset); + ctx.lineTo(x + xOffset, y + yOffset); + ctx.moveTo(x + yOffset, y - xOffset); + ctx.lineTo(x - yOffset, y + xOffset); + break; + case 'line': + xOffset = Math.cos(rad) * radius; + yOffset = Math.sin(rad) * radius; + ctx.moveTo(x - xOffset, y - yOffset); + ctx.lineTo(x + xOffset, y + yOffset); + break; + case 'dash': + ctx.moveTo(x, y); + ctx.lineTo(x + Math.cos(rad) * radius, y + Math.sin(rad) * radius); + break; + } + + ctx.fill(); + ctx.stroke(); + }, + + /** + * Returns true if the point is inside the rectangle + * @param {object} point - The point to test + * @param {object} area - The rectangle + * @returns {boolean} + * @private + */ + _isPointInArea: function(point, area) { + var epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error. + + return point.x > area.left - epsilon && point.x < area.right + epsilon && + point.y > area.top - epsilon && point.y < area.bottom + epsilon; + }, + + clipArea: function(ctx, area) { + ctx.save(); + ctx.beginPath(); + ctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top); + ctx.clip(); + }, + + unclipArea: function(ctx) { + ctx.restore(); + }, + + lineTo: function(ctx, previous, target, flip) { + var stepped = target.steppedLine; + if (stepped) { + if (stepped === 'middle') { + var midpoint = (previous.x + target.x) / 2.0; + ctx.lineTo(midpoint, flip ? target.y : previous.y); + ctx.lineTo(midpoint, flip ? previous.y : target.y); + } else if ((stepped === 'after' && !flip) || (stepped !== 'after' && flip)) { + ctx.lineTo(previous.x, target.y); + } else { + ctx.lineTo(target.x, previous.y); + } + ctx.lineTo(target.x, target.y); + return; + } + + if (!target.tension) { + ctx.lineTo(target.x, target.y); + return; + } + + ctx.bezierCurveTo( + flip ? previous.controlPointPreviousX : previous.controlPointNextX, + flip ? previous.controlPointPreviousY : previous.controlPointNextY, + flip ? target.controlPointNextX : target.controlPointPreviousX, + flip ? target.controlPointNextY : target.controlPointPreviousY, + target.x, + target.y); + } +}; + +var helpers_canvas = exports$1; + +// DEPRECATIONS + +/** + * Provided for backward compatibility, use Chart.helpers.canvas.clear instead. + * @namespace Chart.helpers.clear + * @deprecated since version 2.7.0 + * @todo remove at version 3 + * @private + */ +helpers_core.clear = exports$1.clear; + +/** + * Provided for backward compatibility, use Chart.helpers.canvas.roundedRect instead. + * @namespace Chart.helpers.drawRoundedRectangle + * @deprecated since version 2.7.0 + * @todo remove at version 3 + * @private + */ +helpers_core.drawRoundedRectangle = function(ctx) { + ctx.beginPath(); + exports$1.roundedRect.apply(exports$1, arguments); +}; + +var defaults = { + /** + * @private + */ + _set: function(scope, values) { + return helpers_core.merge(this[scope] || (this[scope] = {}), values); + } +}; + +// TODO(v3): remove 'global' from namespace. all default are global and +// there's inconsistency around which options are under 'global' +defaults._set('global', { + defaultColor: 'rgba(0,0,0,0.1)', + defaultFontColor: '#666', + defaultFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", + defaultFontSize: 12, + defaultFontStyle: 'normal', + defaultLineHeight: 1.2, + showLines: true +}); + +var core_defaults = defaults; + +var valueOrDefault = helpers_core.valueOrDefault; + +/** + * Converts the given font object into a CSS font string. + * @param {object} font - A font object. + * @return {string} The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font + * @private + */ +function toFontString(font) { + if (!font || helpers_core.isNullOrUndef(font.size) || helpers_core.isNullOrUndef(font.family)) { + return null; + } + + return (font.style ? font.style + ' ' : '') + + (font.weight ? font.weight + ' ' : '') + + font.size + 'px ' + + font.family; +} + +/** + * @alias Chart.helpers.options + * @namespace + */ +var helpers_options = { + /** + * Converts the given line height `value` in pixels for a specific font `size`. + * @param {number|string} value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em'). + * @param {number} size - The font size (in pixels) used to resolve relative `value`. + * @returns {number} The effective line height in pixels (size * 1.2 if value is invalid). + * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height + * @since 2.7.0 + */ + toLineHeight: function(value, size) { + var matches = ('' + value).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/); + if (!matches || matches[1] === 'normal') { + return size * 1.2; + } + + value = +matches[2]; + + switch (matches[3]) { + case 'px': + return value; + case '%': + value /= 100; + break; + } + + return size * value; + }, + + /** + * Converts the given value into a padding object with pre-computed width/height. + * @param {number|object} value - If a number, set the value to all TRBL component, + * else, if and object, use defined properties and sets undefined ones to 0. + * @returns {object} The padding values (top, right, bottom, left, width, height) + * @since 2.7.0 + */ + toPadding: function(value) { + var t, r, b, l; + + if (helpers_core.isObject(value)) { + t = +value.top || 0; + r = +value.right || 0; + b = +value.bottom || 0; + l = +value.left || 0; + } else { + t = r = b = l = +value || 0; + } + + return { + top: t, + right: r, + bottom: b, + left: l, + height: t + b, + width: l + r + }; + }, + + /** + * Parses font options and returns the font object. + * @param {object} options - A object that contains font options to be parsed. + * @return {object} The font object. + * @todo Support font.* options and renamed to toFont(). + * @private + */ + _parseFont: function(options) { + var globalDefaults = core_defaults.global; + var size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize); + var font = { + family: valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily), + lineHeight: helpers_core.options.toLineHeight(valueOrDefault(options.lineHeight, globalDefaults.defaultLineHeight), size), + size: size, + style: valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle), + weight: null, + string: '' + }; + + font.string = toFontString(font); + return font; + }, + + /** + * Evaluates the given `inputs` sequentially and returns the first defined value. + * @param {Array} inputs - An array of values, falling back to the last value. + * @param {object} [context] - If defined and the current value is a function, the value + * is called with `context` as first argument and the result becomes the new input. + * @param {number} [index] - If defined and the current value is an array, the value + * at `index` become the new input. + * @param {object} [info] - object to return information about resolution in + * @param {boolean} [info.cacheable] - Will be set to `false` if option is not cacheable. + * @since 2.7.0 + */ + resolve: function(inputs, context, index, info) { + var cacheable = true; + var i, ilen, value; + + for (i = 0, ilen = inputs.length; i < ilen; ++i) { + value = inputs[i]; + if (value === undefined) { + continue; + } + if (context !== undefined && typeof value === 'function') { + value = value(context); + cacheable = false; + } + if (index !== undefined && helpers_core.isArray(value)) { + value = value[index]; + cacheable = false; + } + if (value !== undefined) { + if (info && !cacheable) { + info.cacheable = false; + } + return value; + } + } + } +}; + +/** + * @alias Chart.helpers.math + * @namespace + */ +var exports$2 = { + /** + * Returns an array of factors sorted from 1 to sqrt(value) + * @private + */ + _factorize: function(value) { + var result = []; + var sqrt = Math.sqrt(value); + var i; + + for (i = 1; i < sqrt; i++) { + if (value % i === 0) { + result.push(i); + result.push(value / i); + } + } + if (sqrt === (sqrt | 0)) { // if value is a square number + result.push(sqrt); + } + + result.sort(function(a, b) { + return a - b; + }).pop(); + return result; + }, + + log10: Math.log10 || function(x) { + var exponent = Math.log(x) * Math.LOG10E; // Math.LOG10E = 1 / Math.LN10. + // Check for whole powers of 10, + // which due to floating point rounding error should be corrected. + var powerOf10 = Math.round(exponent); + var isPowerOf10 = x === Math.pow(10, powerOf10); + + return isPowerOf10 ? powerOf10 : exponent; + } +}; + +var helpers_math = exports$2; + +// DEPRECATIONS + +/** + * Provided for backward compatibility, use Chart.helpers.math.log10 instead. + * @namespace Chart.helpers.log10 + * @deprecated since version 2.9.0 + * @todo remove at version 3 + * @private + */ +helpers_core.log10 = exports$2.log10; + +var getRtlAdapter = function(rectX, width) { + return { + x: function(x) { + return rectX + rectX + width - x; + }, + setWidth: function(w) { + width = w; + }, + textAlign: function(align) { + if (align === 'center') { + return align; + } + return align === 'right' ? 'left' : 'right'; + }, + xPlus: function(x, value) { + return x - value; + }, + leftForLtr: function(x, itemWidth) { + return x - itemWidth; + }, + }; +}; + +var getLtrAdapter = function() { + return { + x: function(x) { + return x; + }, + setWidth: function(w) { // eslint-disable-line no-unused-vars + }, + textAlign: function(align) { + return align; + }, + xPlus: function(x, value) { + return x + value; + }, + leftForLtr: function(x, _itemWidth) { // eslint-disable-line no-unused-vars + return x; + }, + }; +}; + +var getAdapter = function(rtl, rectX, width) { + return rtl ? getRtlAdapter(rectX, width) : getLtrAdapter(); +}; + +var overrideTextDirection = function(ctx, direction) { + var style, original; + if (direction === 'ltr' || direction === 'rtl') { + style = ctx.canvas.style; + original = [ + style.getPropertyValue('direction'), + style.getPropertyPriority('direction'), + ]; + + style.setProperty('direction', direction, 'important'); + ctx.prevTextDirection = original; + } +}; + +var restoreTextDirection = function(ctx) { + var original = ctx.prevTextDirection; + if (original !== undefined) { + delete ctx.prevTextDirection; + ctx.canvas.style.setProperty('direction', original[0], original[1]); + } +}; + +var helpers_rtl = { + getRtlAdapter: getAdapter, + overrideTextDirection: overrideTextDirection, + restoreTextDirection: restoreTextDirection, +}; + +var helpers$1 = helpers_core; +var easing = helpers_easing; +var canvas = helpers_canvas; +var options = helpers_options; +var math = helpers_math; +var rtl = helpers_rtl; +helpers$1.easing = easing; +helpers$1.canvas = canvas; +helpers$1.options = options; +helpers$1.math = math; +helpers$1.rtl = rtl; + +function interpolate(start, view, model, ease) { + var keys = Object.keys(model); + var i, ilen, key, actual, origin, target, type, c0, c1; + + for (i = 0, ilen = keys.length; i < ilen; ++i) { + key = keys[i]; + + target = model[key]; + + // if a value is added to the model after pivot() has been called, the view + // doesn't contain it, so let's initialize the view to the target value. + if (!view.hasOwnProperty(key)) { + view[key] = target; + } + + actual = view[key]; + + if (actual === target || key[0] === '_') { + continue; + } + + if (!start.hasOwnProperty(key)) { + start[key] = actual; + } + + origin = start[key]; + + type = typeof target; + + if (type === typeof origin) { + if (type === 'string') { + c0 = chartjsColor(origin); + if (c0.valid) { + c1 = chartjsColor(target); + if (c1.valid) { + view[key] = c1.mix(c0, ease).rgbString(); + continue; + } + } + } else if (helpers$1.isFinite(origin) && helpers$1.isFinite(target)) { + view[key] = origin + (target - origin) * ease; + continue; + } + } + + view[key] = target; + } +} + +var Element = function(configuration) { + helpers$1.extend(this, configuration); + this.initialize.apply(this, arguments); +}; + +helpers$1.extend(Element.prototype, { + _type: undefined, + + initialize: function() { + this.hidden = false; + }, + + pivot: function() { + var me = this; + if (!me._view) { + me._view = helpers$1.extend({}, me._model); + } + me._start = {}; + return me; + }, + + transition: function(ease) { + var me = this; + var model = me._model; + var start = me._start; + var view = me._view; + + // No animation -> No Transition + if (!model || ease === 1) { + me._view = helpers$1.extend({}, model); + me._start = null; + return me; + } + + if (!view) { + view = me._view = {}; + } + + if (!start) { + start = me._start = {}; + } + + interpolate(start, view, model, ease); + + return me; + }, + + tooltipPosition: function() { + return { + x: this._model.x, + y: this._model.y + }; + }, + + hasValue: function() { + return helpers$1.isNumber(this._model.x) && helpers$1.isNumber(this._model.y); + } +}); + +Element.extend = helpers$1.inherits; + +var core_element = Element; + +var exports$3 = core_element.extend({ + chart: null, // the animation associated chart instance + currentStep: 0, // the current animation step + numSteps: 60, // default number of steps + easing: '', // the easing to use for this animation + render: null, // render function used by the animation service + + onAnimationProgress: null, // user specified callback to fire on each step of the animation + onAnimationComplete: null, // user specified callback to fire when the animation finishes +}); + +var core_animation = exports$3; + +// DEPRECATIONS + +/** + * Provided for backward compatibility, use Chart.Animation instead + * @prop Chart.Animation#animationObject + * @deprecated since version 2.6.0 + * @todo remove at version 3 + */ +Object.defineProperty(exports$3.prototype, 'animationObject', { + get: function() { + return this; + } +}); + +/** + * Provided for backward compatibility, use Chart.Animation#chart instead + * @prop Chart.Animation#chartInstance + * @deprecated since version 2.6.0 + * @todo remove at version 3 + */ +Object.defineProperty(exports$3.prototype, 'chartInstance', { + get: function() { + return this.chart; + }, + set: function(value) { + this.chart = value; + } +}); + +core_defaults._set('global', { + animation: { + duration: 1000, + easing: 'easeOutQuart', + onProgress: helpers$1.noop, + onComplete: helpers$1.noop + } +}); + +var core_animations = { + animations: [], + request: null, + + /** + * @param {Chart} chart - The chart to animate. + * @param {Chart.Animation} animation - The animation that we will animate. + * @param {number} duration - The animation duration in ms. + * @param {boolean} lazy - if true, the chart is not marked as animating to enable more responsive interactions + */ + addAnimation: function(chart, animation, duration, lazy) { + var animations = this.animations; + var i, ilen; + + animation.chart = chart; + animation.startTime = Date.now(); + animation.duration = duration; + + if (!lazy) { + chart.animating = true; + } + + for (i = 0, ilen = animations.length; i < ilen; ++i) { + if (animations[i].chart === chart) { + animations[i] = animation; + return; + } + } + + animations.push(animation); + + // If there are no animations queued, manually kickstart a digest, for lack of a better word + if (animations.length === 1) { + this.requestAnimationFrame(); + } + }, + + cancelAnimation: function(chart) { + var index = helpers$1.findIndex(this.animations, function(animation) { + return animation.chart === chart; + }); + + if (index !== -1) { + this.animations.splice(index, 1); + chart.animating = false; + } + }, + + requestAnimationFrame: function() { + var me = this; + if (me.request === null) { + // Skip animation frame requests until the active one is executed. + // This can happen when processing mouse events, e.g. 'mousemove' + // and 'mouseout' events will trigger multiple renders. + me.request = helpers$1.requestAnimFrame.call(window, function() { + me.request = null; + me.startDigest(); + }); + } + }, + + /** + * @private + */ + startDigest: function() { + var me = this; + + me.advance(); + + // Do we have more stuff to animate? + if (me.animations.length > 0) { + me.requestAnimationFrame(); + } + }, + + /** + * @private + */ + advance: function() { + var animations = this.animations; + var animation, chart, numSteps, nextStep; + var i = 0; + + // 1 animation per chart, so we are looping charts here + while (i < animations.length) { + animation = animations[i]; + chart = animation.chart; + numSteps = animation.numSteps; + + // Make sure that currentStep starts at 1 + // https://github.com/chartjs/Chart.js/issues/6104 + nextStep = Math.floor((Date.now() - animation.startTime) / animation.duration * numSteps) + 1; + animation.currentStep = Math.min(nextStep, numSteps); + + helpers$1.callback(animation.render, [chart, animation], chart); + helpers$1.callback(animation.onAnimationProgress, [animation], chart); + + if (animation.currentStep >= numSteps) { + helpers$1.callback(animation.onAnimationComplete, [animation], chart); + chart.animating = false; + animations.splice(i, 1); + } else { + ++i; + } + } + } +}; + +var resolve = helpers$1.options.resolve; + +var arrayEvents = ['push', 'pop', 'shift', 'splice', 'unshift']; + +/** + * Hooks the array methods that add or remove values ('push', pop', 'shift', 'splice', + * 'unshift') and notify the listener AFTER the array has been altered. Listeners are + * called on the 'onData*' callbacks (e.g. onDataPush, etc.) with same arguments. + */ +function listenArrayEvents(array, listener) { + if (array._chartjs) { + array._chartjs.listeners.push(listener); + return; + } + + Object.defineProperty(array, '_chartjs', { + configurable: true, + enumerable: false, + value: { + listeners: [listener] + } + }); + + arrayEvents.forEach(function(key) { + var method = 'onData' + key.charAt(0).toUpperCase() + key.slice(1); + var base = array[key]; + + Object.defineProperty(array, key, { + configurable: true, + enumerable: false, + value: function() { + var args = Array.prototype.slice.call(arguments); + var res = base.apply(this, args); + + helpers$1.each(array._chartjs.listeners, function(object) { + if (typeof object[method] === 'function') { + object[method].apply(object, args); + } + }); + + return res; + } + }); + }); +} + +/** + * Removes the given array event listener and cleanup extra attached properties (such as + * the _chartjs stub and overridden methods) if array doesn't have any more listeners. + */ +function unlistenArrayEvents(array, listener) { + var stub = array._chartjs; + if (!stub) { + return; + } + + var listeners = stub.listeners; + var index = listeners.indexOf(listener); + if (index !== -1) { + listeners.splice(index, 1); + } + + if (listeners.length > 0) { + return; + } + + arrayEvents.forEach(function(key) { + delete array[key]; + }); + + delete array._chartjs; +} + +// Base class for all dataset controllers (line, bar, etc) +var DatasetController = function(chart, datasetIndex) { + this.initialize(chart, datasetIndex); +}; + +helpers$1.extend(DatasetController.prototype, { + + /** + * Element type used to generate a meta dataset (e.g. Chart.element.Line). + * @type {Chart.core.element} + */ + datasetElementType: null, + + /** + * Element type used to generate a meta data (e.g. Chart.element.Point). + * @type {Chart.core.element} + */ + dataElementType: null, + + /** + * Dataset element option keys to be resolved in _resolveDatasetElementOptions. + * A derived controller may override this to resolve controller-specific options. + * The keys defined here are for backward compatibility for legend styles. + * @private + */ + _datasetElementOptions: [ + 'backgroundColor', + 'borderCapStyle', + 'borderColor', + 'borderDash', + 'borderDashOffset', + 'borderJoinStyle', + 'borderWidth' + ], + + /** + * Data element option keys to be resolved in _resolveDataElementOptions. + * A derived controller may override this to resolve controller-specific options. + * The keys defined here are for backward compatibility for legend styles. + * @private + */ + _dataElementOptions: [ + 'backgroundColor', + 'borderColor', + 'borderWidth', + 'pointStyle' + ], + + initialize: function(chart, datasetIndex) { + var me = this; + me.chart = chart; + me.index = datasetIndex; + me.linkScales(); + me.addElements(); + me._type = me.getMeta().type; + }, + + updateIndex: function(datasetIndex) { + this.index = datasetIndex; + }, + + linkScales: function() { + var me = this; + var meta = me.getMeta(); + var chart = me.chart; + var scales = chart.scales; + var dataset = me.getDataset(); + var scalesOpts = chart.options.scales; + + if (meta.xAxisID === null || !(meta.xAxisID in scales) || dataset.xAxisID) { + meta.xAxisID = dataset.xAxisID || scalesOpts.xAxes[0].id; + } + if (meta.yAxisID === null || !(meta.yAxisID in scales) || dataset.yAxisID) { + meta.yAxisID = dataset.yAxisID || scalesOpts.yAxes[0].id; + } + }, + + getDataset: function() { + return this.chart.data.datasets[this.index]; + }, + + getMeta: function() { + return this.chart.getDatasetMeta(this.index); + }, + + getScaleForId: function(scaleID) { + return this.chart.scales[scaleID]; + }, + + /** + * @private + */ + _getValueScaleId: function() { + return this.getMeta().yAxisID; + }, + + /** + * @private + */ + _getIndexScaleId: function() { + return this.getMeta().xAxisID; + }, + + /** + * @private + */ + _getValueScale: function() { + return this.getScaleForId(this._getValueScaleId()); + }, + + /** + * @private + */ + _getIndexScale: function() { + return this.getScaleForId(this._getIndexScaleId()); + }, + + reset: function() { + this._update(true); + }, + + /** + * @private + */ + destroy: function() { + if (this._data) { + unlistenArrayEvents(this._data, this); + } + }, + + createMetaDataset: function() { + var me = this; + var type = me.datasetElementType; + return type && new type({ + _chart: me.chart, + _datasetIndex: me.index + }); + }, + + createMetaData: function(index) { + var me = this; + var type = me.dataElementType; + return type && new type({ + _chart: me.chart, + _datasetIndex: me.index, + _index: index + }); + }, + + addElements: function() { + var me = this; + var meta = me.getMeta(); + var data = me.getDataset().data || []; + var metaData = meta.data; + var i, ilen; + + for (i = 0, ilen = data.length; i < ilen; ++i) { + metaData[i] = metaData[i] || me.createMetaData(i); + } + + meta.dataset = meta.dataset || me.createMetaDataset(); + }, + + addElementAndReset: function(index) { + var element = this.createMetaData(index); + this.getMeta().data.splice(index, 0, element); + this.updateElement(element, index, true); + }, + + buildOrUpdateElements: function() { + var me = this; + var dataset = me.getDataset(); + var data = dataset.data || (dataset.data = []); + + // In order to correctly handle data addition/deletion animation (an thus simulate + // real-time charts), we need to monitor these data modifications and synchronize + // the internal meta data accordingly. + if (me._data !== data) { + if (me._data) { + // This case happens when the user replaced the data array instance. + unlistenArrayEvents(me._data, me); + } + + if (data && Object.isExtensible(data)) { + listenArrayEvents(data, me); + } + me._data = data; + } + + // Re-sync meta data in case the user replaced the data array or if we missed + // any updates and so make sure that we handle number of datapoints changing. + me.resyncElements(); + }, + + /** + * Returns the merged user-supplied and default dataset-level options + * @private + */ + _configure: function() { + var me = this; + me._config = helpers$1.merge({}, [ + me.chart.options.datasets[me._type], + me.getDataset(), + ], { + merger: function(key, target, source) { + if (key !== '_meta' && key !== 'data') { + helpers$1._merger(key, target, source); + } + } + }); + }, + + _update: function(reset) { + var me = this; + me._configure(); + me._cachedDataOpts = null; + me.update(reset); + }, + + update: helpers$1.noop, + + transition: function(easingValue) { + var meta = this.getMeta(); + var elements = meta.data || []; + var ilen = elements.length; + var i = 0; + + for (; i < ilen; ++i) { + elements[i].transition(easingValue); + } + + if (meta.dataset) { + meta.dataset.transition(easingValue); + } + }, + + draw: function() { + var meta = this.getMeta(); + var elements = meta.data || []; + var ilen = elements.length; + var i = 0; + + if (meta.dataset) { + meta.dataset.draw(); + } + + for (; i < ilen; ++i) { + elements[i].draw(); + } + }, + + /** + * Returns a set of predefined style properties that should be used to represent the dataset + * or the data if the index is specified + * @param {number} index - data index + * @return {IStyleInterface} style object + */ + getStyle: function(index) { + var me = this; + var meta = me.getMeta(); + var dataset = meta.dataset; + var style; + + me._configure(); + if (dataset && index === undefined) { + style = me._resolveDatasetElementOptions(dataset || {}); + } else { + index = index || 0; + style = me._resolveDataElementOptions(meta.data[index] || {}, index); + } + + if (style.fill === false || style.fill === null) { + style.backgroundColor = style.borderColor; + } + + return style; + }, + + /** + * @private + */ + _resolveDatasetElementOptions: function(element, hover) { + var me = this; + var chart = me.chart; + var datasetOpts = me._config; + var custom = element.custom || {}; + var options = chart.options.elements[me.datasetElementType.prototype._type] || {}; + var elementOptions = me._datasetElementOptions; + var values = {}; + var i, ilen, key, readKey; + + // Scriptable options + var context = { + chart: chart, + dataset: me.getDataset(), + datasetIndex: me.index, + hover: hover + }; + + for (i = 0, ilen = elementOptions.length; i < ilen; ++i) { + key = elementOptions[i]; + readKey = hover ? 'hover' + key.charAt(0).toUpperCase() + key.slice(1) : key; + values[key] = resolve([ + custom[readKey], + datasetOpts[readKey], + options[readKey] + ], context); + } + + return values; + }, + + /** + * @private + */ + _resolveDataElementOptions: function(element, index) { + var me = this; + var custom = element && element.custom; + var cached = me._cachedDataOpts; + if (cached && !custom) { + return cached; + } + var chart = me.chart; + var datasetOpts = me._config; + var options = chart.options.elements[me.dataElementType.prototype._type] || {}; + var elementOptions = me._dataElementOptions; + var values = {}; + + // Scriptable options + var context = { + chart: chart, + dataIndex: index, + dataset: me.getDataset(), + datasetIndex: me.index + }; + + // `resolve` sets cacheable to `false` if any option is indexed or scripted + var info = {cacheable: !custom}; + + var keys, i, ilen, key; + + custom = custom || {}; + + if (helpers$1.isArray(elementOptions)) { + for (i = 0, ilen = elementOptions.length; i < ilen; ++i) { + key = elementOptions[i]; + values[key] = resolve([ + custom[key], + datasetOpts[key], + options[key] + ], context, index, info); + } + } else { + keys = Object.keys(elementOptions); + for (i = 0, ilen = keys.length; i < ilen; ++i) { + key = keys[i]; + values[key] = resolve([ + custom[key], + datasetOpts[elementOptions[key]], + datasetOpts[key], + options[key] + ], context, index, info); + } + } + + if (info.cacheable) { + me._cachedDataOpts = Object.freeze(values); + } + + return values; + }, + + removeHoverStyle: function(element) { + helpers$1.merge(element._model, element.$previousStyle || {}); + delete element.$previousStyle; + }, + + setHoverStyle: function(element) { + var dataset = this.chart.data.datasets[element._datasetIndex]; + var index = element._index; + var custom = element.custom || {}; + var model = element._model; + var getHoverColor = helpers$1.getHoverColor; + + element.$previousStyle = { + backgroundColor: model.backgroundColor, + borderColor: model.borderColor, + borderWidth: model.borderWidth + }; + + model.backgroundColor = resolve([custom.hoverBackgroundColor, dataset.hoverBackgroundColor, getHoverColor(model.backgroundColor)], undefined, index); + model.borderColor = resolve([custom.hoverBorderColor, dataset.hoverBorderColor, getHoverColor(model.borderColor)], undefined, index); + model.borderWidth = resolve([custom.hoverBorderWidth, dataset.hoverBorderWidth, model.borderWidth], undefined, index); + }, + + /** + * @private + */ + _removeDatasetHoverStyle: function() { + var element = this.getMeta().dataset; + + if (element) { + this.removeHoverStyle(element); + } + }, + + /** + * @private + */ + _setDatasetHoverStyle: function() { + var element = this.getMeta().dataset; + var prev = {}; + var i, ilen, key, keys, hoverOptions, model; + + if (!element) { + return; + } + + model = element._model; + hoverOptions = this._resolveDatasetElementOptions(element, true); + + keys = Object.keys(hoverOptions); + for (i = 0, ilen = keys.length; i < ilen; ++i) { + key = keys[i]; + prev[key] = model[key]; + model[key] = hoverOptions[key]; + } + + element.$previousStyle = prev; + }, + + /** + * @private + */ + resyncElements: function() { + var me = this; + var meta = me.getMeta(); + var data = me.getDataset().data; + var numMeta = meta.data.length; + var numData = data.length; + + if (numData < numMeta) { + meta.data.splice(numData, numMeta - numData); + } else if (numData > numMeta) { + me.insertElements(numMeta, numData - numMeta); + } + }, + + /** + * @private + */ + insertElements: function(start, count) { + for (var i = 0; i < count; ++i) { + this.addElementAndReset(start + i); + } + }, + + /** + * @private + */ + onDataPush: function() { + var count = arguments.length; + this.insertElements(this.getDataset().data.length - count, count); + }, + + /** + * @private + */ + onDataPop: function() { + this.getMeta().data.pop(); + }, + + /** + * @private + */ + onDataShift: function() { + this.getMeta().data.shift(); + }, + + /** + * @private + */ + onDataSplice: function(start, count) { + this.getMeta().data.splice(start, count); + this.insertElements(start, arguments.length - 2); + }, + + /** + * @private + */ + onDataUnshift: function() { + this.insertElements(0, arguments.length); + } +}); + +DatasetController.extend = helpers$1.inherits; + +var core_datasetController = DatasetController; + +var TAU = Math.PI * 2; + +core_defaults._set('global', { + elements: { + arc: { + backgroundColor: core_defaults.global.defaultColor, + borderColor: '#fff', + borderWidth: 2, + borderAlign: 'center' + } + } +}); + +function clipArc(ctx, arc) { + var startAngle = arc.startAngle; + var endAngle = arc.endAngle; + var pixelMargin = arc.pixelMargin; + var angleMargin = pixelMargin / arc.outerRadius; + var x = arc.x; + var y = arc.y; + + // Draw an inner border by cliping the arc and drawing a double-width border + // Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders + ctx.beginPath(); + ctx.arc(x, y, arc.outerRadius, startAngle - angleMargin, endAngle + angleMargin); + if (arc.innerRadius > pixelMargin) { + angleMargin = pixelMargin / arc.innerRadius; + ctx.arc(x, y, arc.innerRadius - pixelMargin, endAngle + angleMargin, startAngle - angleMargin, true); + } else { + ctx.arc(x, y, pixelMargin, endAngle + Math.PI / 2, startAngle - Math.PI / 2); + } + ctx.closePath(); + ctx.clip(); +} + +function drawFullCircleBorders(ctx, vm, arc, inner) { + var endAngle = arc.endAngle; + var i; + + if (inner) { + arc.endAngle = arc.startAngle + TAU; + clipArc(ctx, arc); + arc.endAngle = endAngle; + if (arc.endAngle === arc.startAngle && arc.fullCircles) { + arc.endAngle += TAU; + arc.fullCircles--; + } + } + + ctx.beginPath(); + ctx.arc(arc.x, arc.y, arc.innerRadius, arc.startAngle + TAU, arc.startAngle, true); + for (i = 0; i < arc.fullCircles; ++i) { + ctx.stroke(); + } + + ctx.beginPath(); + ctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.startAngle + TAU); + for (i = 0; i < arc.fullCircles; ++i) { + ctx.stroke(); + } +} + +function drawBorder(ctx, vm, arc) { + var inner = vm.borderAlign === 'inner'; + + if (inner) { + ctx.lineWidth = vm.borderWidth * 2; + ctx.lineJoin = 'round'; + } else { + ctx.lineWidth = vm.borderWidth; + ctx.lineJoin = 'bevel'; + } + + if (arc.fullCircles) { + drawFullCircleBorders(ctx, vm, arc, inner); + } + + if (inner) { + clipArc(ctx, arc); + } + + ctx.beginPath(); + ctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.endAngle); + ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true); + ctx.closePath(); + ctx.stroke(); +} + +var element_arc = core_element.extend({ + _type: 'arc', + + inLabelRange: function(mouseX) { + var vm = this._view; + + if (vm) { + return (Math.pow(mouseX - vm.x, 2) < Math.pow(vm.radius + vm.hoverRadius, 2)); + } + return false; + }, + + inRange: function(chartX, chartY) { + var vm = this._view; + + if (vm) { + var pointRelativePosition = helpers$1.getAngleFromPoint(vm, {x: chartX, y: chartY}); + var angle = pointRelativePosition.angle; + var distance = pointRelativePosition.distance; + + // Sanitise angle range + var startAngle = vm.startAngle; + var endAngle = vm.endAngle; + while (endAngle < startAngle) { + endAngle += TAU; + } + while (angle > endAngle) { + angle -= TAU; + } + while (angle < startAngle) { + angle += TAU; + } + + // Check if within the range of the open/close angle + var betweenAngles = (angle >= startAngle && angle <= endAngle); + var withinRadius = (distance >= vm.innerRadius && distance <= vm.outerRadius); + + return (betweenAngles && withinRadius); + } + return false; + }, + + getCenterPoint: function() { + var vm = this._view; + var halfAngle = (vm.startAngle + vm.endAngle) / 2; + var halfRadius = (vm.innerRadius + vm.outerRadius) / 2; + return { + x: vm.x + Math.cos(halfAngle) * halfRadius, + y: vm.y + Math.sin(halfAngle) * halfRadius + }; + }, + + getArea: function() { + var vm = this._view; + return Math.PI * ((vm.endAngle - vm.startAngle) / (2 * Math.PI)) * (Math.pow(vm.outerRadius, 2) - Math.pow(vm.innerRadius, 2)); + }, + + tooltipPosition: function() { + var vm = this._view; + var centreAngle = vm.startAngle + ((vm.endAngle - vm.startAngle) / 2); + var rangeFromCentre = (vm.outerRadius - vm.innerRadius) / 2 + vm.innerRadius; + + return { + x: vm.x + (Math.cos(centreAngle) * rangeFromCentre), + y: vm.y + (Math.sin(centreAngle) * rangeFromCentre) + }; + }, + + draw: function() { + var ctx = this._chart.ctx; + var vm = this._view; + var pixelMargin = (vm.borderAlign === 'inner') ? 0.33 : 0; + var arc = { + x: vm.x, + y: vm.y, + innerRadius: vm.innerRadius, + outerRadius: Math.max(vm.outerRadius - pixelMargin, 0), + pixelMargin: pixelMargin, + startAngle: vm.startAngle, + endAngle: vm.endAngle, + fullCircles: Math.floor(vm.circumference / TAU) + }; + var i; + + ctx.save(); + + ctx.fillStyle = vm.backgroundColor; + ctx.strokeStyle = vm.borderColor; + + if (arc.fullCircles) { + arc.endAngle = arc.startAngle + TAU; + ctx.beginPath(); + ctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle); + ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true); + ctx.closePath(); + for (i = 0; i < arc.fullCircles; ++i) { + ctx.fill(); + } + arc.endAngle = arc.startAngle + vm.circumference % TAU; + } + + ctx.beginPath(); + ctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle); + ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true); + ctx.closePath(); + ctx.fill(); + + if (vm.borderWidth) { + drawBorder(ctx, vm, arc); + } + + ctx.restore(); + } +}); + +var valueOrDefault$1 = helpers$1.valueOrDefault; + +var defaultColor = core_defaults.global.defaultColor; + +core_defaults._set('global', { + elements: { + line: { + tension: 0.4, + backgroundColor: defaultColor, + borderWidth: 3, + borderColor: defaultColor, + borderCapStyle: 'butt', + borderDash: [], + borderDashOffset: 0.0, + borderJoinStyle: 'miter', + capBezierPoints: true, + fill: true, // do we fill in the area between the line and its base axis + } + } +}); + +var element_line = core_element.extend({ + _type: 'line', + + draw: function() { + var me = this; + var vm = me._view; + var ctx = me._chart.ctx; + var spanGaps = vm.spanGaps; + var points = me._children.slice(); // clone array + var globalDefaults = core_defaults.global; + var globalOptionLineElements = globalDefaults.elements.line; + var lastDrawnIndex = -1; + var closePath = me._loop; + var index, previous, currentVM; + + if (!points.length) { + return; + } + + if (me._loop) { + for (index = 0; index < points.length; ++index) { + previous = helpers$1.previousItem(points, index); + // If the line has an open path, shift the point array + if (!points[index]._view.skip && previous._view.skip) { + points = points.slice(index).concat(points.slice(0, index)); + closePath = spanGaps; + break; + } + } + // If the line has a close path, add the first point again + if (closePath) { + points.push(points[0]); + } + } + + ctx.save(); + + // Stroke Line Options + ctx.lineCap = vm.borderCapStyle || globalOptionLineElements.borderCapStyle; + + // IE 9 and 10 do not support line dash + if (ctx.setLineDash) { + ctx.setLineDash(vm.borderDash || globalOptionLineElements.borderDash); + } + + ctx.lineDashOffset = valueOrDefault$1(vm.borderDashOffset, globalOptionLineElements.borderDashOffset); + ctx.lineJoin = vm.borderJoinStyle || globalOptionLineElements.borderJoinStyle; + ctx.lineWidth = valueOrDefault$1(vm.borderWidth, globalOptionLineElements.borderWidth); + ctx.strokeStyle = vm.borderColor || globalDefaults.defaultColor; + + // Stroke Line + ctx.beginPath(); + + // First point moves to it's starting position no matter what + currentVM = points[0]._view; + if (!currentVM.skip) { + ctx.moveTo(currentVM.x, currentVM.y); + lastDrawnIndex = 0; + } + + for (index = 1; index < points.length; ++index) { + currentVM = points[index]._view; + previous = lastDrawnIndex === -1 ? helpers$1.previousItem(points, index) : points[lastDrawnIndex]; + + if (!currentVM.skip) { + if ((lastDrawnIndex !== (index - 1) && !spanGaps) || lastDrawnIndex === -1) { + // There was a gap and this is the first point after the gap + ctx.moveTo(currentVM.x, currentVM.y); + } else { + // Line to next point + helpers$1.canvas.lineTo(ctx, previous._view, currentVM); + } + lastDrawnIndex = index; + } + } + + if (closePath) { + ctx.closePath(); + } + + ctx.stroke(); + ctx.restore(); + } +}); + +var valueOrDefault$2 = helpers$1.valueOrDefault; + +var defaultColor$1 = core_defaults.global.defaultColor; + +core_defaults._set('global', { + elements: { + point: { + radius: 3, + pointStyle: 'circle', + backgroundColor: defaultColor$1, + borderColor: defaultColor$1, + borderWidth: 1, + // Hover + hitRadius: 1, + hoverRadius: 4, + hoverBorderWidth: 1 + } + } +}); + +function xRange(mouseX) { + var vm = this._view; + return vm ? (Math.abs(mouseX - vm.x) < vm.radius + vm.hitRadius) : false; +} + +function yRange(mouseY) { + var vm = this._view; + return vm ? (Math.abs(mouseY - vm.y) < vm.radius + vm.hitRadius) : false; +} + +var element_point = core_element.extend({ + _type: 'point', + + inRange: function(mouseX, mouseY) { + var vm = this._view; + return vm ? ((Math.pow(mouseX - vm.x, 2) + Math.pow(mouseY - vm.y, 2)) < Math.pow(vm.hitRadius + vm.radius, 2)) : false; + }, + + inLabelRange: xRange, + inXRange: xRange, + inYRange: yRange, + + getCenterPoint: function() { + var vm = this._view; + return { + x: vm.x, + y: vm.y + }; + }, + + getArea: function() { + return Math.PI * Math.pow(this._view.radius, 2); + }, + + tooltipPosition: function() { + var vm = this._view; + return { + x: vm.x, + y: vm.y, + padding: vm.radius + vm.borderWidth + }; + }, + + draw: function(chartArea) { + var vm = this._view; + var ctx = this._chart.ctx; + var pointStyle = vm.pointStyle; + var rotation = vm.rotation; + var radius = vm.radius; + var x = vm.x; + var y = vm.y; + var globalDefaults = core_defaults.global; + var defaultColor = globalDefaults.defaultColor; // eslint-disable-line no-shadow + + if (vm.skip) { + return; + } + + // Clipping for Points. + if (chartArea === undefined || helpers$1.canvas._isPointInArea(vm, chartArea)) { + ctx.strokeStyle = vm.borderColor || defaultColor; + ctx.lineWidth = valueOrDefault$2(vm.borderWidth, globalDefaults.elements.point.borderWidth); + ctx.fillStyle = vm.backgroundColor || defaultColor; + helpers$1.canvas.drawPoint(ctx, pointStyle, radius, x, y, rotation); + } + } +}); + +var defaultColor$2 = core_defaults.global.defaultColor; + +core_defaults._set('global', { + elements: { + rectangle: { + backgroundColor: defaultColor$2, + borderColor: defaultColor$2, + borderSkipped: 'bottom', + borderWidth: 0 + } + } +}); + +function isVertical(vm) { + return vm && vm.width !== undefined; +} + +/** + * Helper function to get the bounds of the bar regardless of the orientation + * @param bar {Chart.Element.Rectangle} the bar + * @return {Bounds} bounds of the bar + * @private + */ +function getBarBounds(vm) { + var x1, x2, y1, y2, half; + + if (isVertical(vm)) { + half = vm.width / 2; + x1 = vm.x - half; + x2 = vm.x + half; + y1 = Math.min(vm.y, vm.base); + y2 = Math.max(vm.y, vm.base); + } else { + half = vm.height / 2; + x1 = Math.min(vm.x, vm.base); + x2 = Math.max(vm.x, vm.base); + y1 = vm.y - half; + y2 = vm.y + half; + } + + return { + left: x1, + top: y1, + right: x2, + bottom: y2 + }; +} + +function swap(orig, v1, v2) { + return orig === v1 ? v2 : orig === v2 ? v1 : orig; +} + +function parseBorderSkipped(vm) { + var edge = vm.borderSkipped; + var res = {}; + + if (!edge) { + return res; + } + + if (vm.horizontal) { + if (vm.base > vm.x) { + edge = swap(edge, 'left', 'right'); + } + } else if (vm.base < vm.y) { + edge = swap(edge, 'bottom', 'top'); + } + + res[edge] = true; + return res; +} + +function parseBorderWidth(vm, maxW, maxH) { + var value = vm.borderWidth; + var skip = parseBorderSkipped(vm); + var t, r, b, l; + + if (helpers$1.isObject(value)) { + t = +value.top || 0; + r = +value.right || 0; + b = +value.bottom || 0; + l = +value.left || 0; + } else { + t = r = b = l = +value || 0; + } + + return { + t: skip.top || (t < 0) ? 0 : t > maxH ? maxH : t, + r: skip.right || (r < 0) ? 0 : r > maxW ? maxW : r, + b: skip.bottom || (b < 0) ? 0 : b > maxH ? maxH : b, + l: skip.left || (l < 0) ? 0 : l > maxW ? maxW : l + }; +} + +function boundingRects(vm) { + var bounds = getBarBounds(vm); + var width = bounds.right - bounds.left; + var height = bounds.bottom - bounds.top; + var border = parseBorderWidth(vm, width / 2, height / 2); + + return { + outer: { + x: bounds.left, + y: bounds.top, + w: width, + h: height + }, + inner: { + x: bounds.left + border.l, + y: bounds.top + border.t, + w: width - border.l - border.r, + h: height - border.t - border.b + } + }; +} + +function inRange(vm, x, y) { + var skipX = x === null; + var skipY = y === null; + var bounds = !vm || (skipX && skipY) ? false : getBarBounds(vm); + + return bounds + && (skipX || x >= bounds.left && x <= bounds.right) + && (skipY || y >= bounds.top && y <= bounds.bottom); +} + +var element_rectangle = core_element.extend({ + _type: 'rectangle', + + draw: function() { + var ctx = this._chart.ctx; + var vm = this._view; + var rects = boundingRects(vm); + var outer = rects.outer; + var inner = rects.inner; + + ctx.fillStyle = vm.backgroundColor; + ctx.fillRect(outer.x, outer.y, outer.w, outer.h); + + if (outer.w === inner.w && outer.h === inner.h) { + return; + } + + ctx.save(); + ctx.beginPath(); + ctx.rect(outer.x, outer.y, outer.w, outer.h); + ctx.clip(); + ctx.fillStyle = vm.borderColor; + ctx.rect(inner.x, inner.y, inner.w, inner.h); + ctx.fill('evenodd'); + ctx.restore(); + }, + + height: function() { + var vm = this._view; + return vm.base - vm.y; + }, + + inRange: function(mouseX, mouseY) { + return inRange(this._view, mouseX, mouseY); + }, + + inLabelRange: function(mouseX, mouseY) { + var vm = this._view; + return isVertical(vm) + ? inRange(vm, mouseX, null) + : inRange(vm, null, mouseY); + }, + + inXRange: function(mouseX) { + return inRange(this._view, mouseX, null); + }, + + inYRange: function(mouseY) { + return inRange(this._view, null, mouseY); + }, + + getCenterPoint: function() { + var vm = this._view; + var x, y; + if (isVertical(vm)) { + x = vm.x; + y = (vm.y + vm.base) / 2; + } else { + x = (vm.x + vm.base) / 2; + y = vm.y; + } + + return {x: x, y: y}; + }, + + getArea: function() { + var vm = this._view; + + return isVertical(vm) + ? vm.width * Math.abs(vm.y - vm.base) + : vm.height * Math.abs(vm.x - vm.base); + }, + + tooltipPosition: function() { + var vm = this._view; + return { + x: vm.x, + y: vm.y + }; + } +}); + +var elements = {}; +var Arc = element_arc; +var Line = element_line; +var Point = element_point; +var Rectangle = element_rectangle; +elements.Arc = Arc; +elements.Line = Line; +elements.Point = Point; +elements.Rectangle = Rectangle; + +var deprecated = helpers$1._deprecated; +var valueOrDefault$3 = helpers$1.valueOrDefault; + +core_defaults._set('bar', { + hover: { + mode: 'label' + }, + + scales: { + xAxes: [{ + type: 'category', + offset: true, + gridLines: { + offsetGridLines: true + } + }], + + yAxes: [{ + type: 'linear' + }] + } +}); + +core_defaults._set('global', { + datasets: { + bar: { + categoryPercentage: 0.8, + barPercentage: 0.9 + } + } +}); + +/** + * Computes the "optimal" sample size to maintain bars equally sized while preventing overlap. + * @private + */ +function computeMinSampleSize(scale, pixels) { + var min = scale._length; + var prev, curr, i, ilen; + + for (i = 1, ilen = pixels.length; i < ilen; ++i) { + min = Math.min(min, Math.abs(pixels[i] - pixels[i - 1])); + } + + for (i = 0, ilen = scale.getTicks().length; i < ilen; ++i) { + curr = scale.getPixelForTick(i); + min = i > 0 ? Math.min(min, Math.abs(curr - prev)) : min; + prev = curr; + } + + return min; +} + +/** + * Computes an "ideal" category based on the absolute bar thickness or, if undefined or null, + * uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This + * mode currently always generates bars equally sized (until we introduce scriptable options?). + * @private + */ +function computeFitCategoryTraits(index, ruler, options) { + var thickness = options.barThickness; + var count = ruler.stackCount; + var curr = ruler.pixels[index]; + var min = helpers$1.isNullOrUndef(thickness) + ? computeMinSampleSize(ruler.scale, ruler.pixels) + : -1; + var size, ratio; + + if (helpers$1.isNullOrUndef(thickness)) { + size = min * options.categoryPercentage; + ratio = options.barPercentage; + } else { + // When bar thickness is enforced, category and bar percentages are ignored. + // Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%') + // and deprecate barPercentage since this value is ignored when thickness is absolute. + size = thickness * count; + ratio = 1; + } + + return { + chunk: size / count, + ratio: ratio, + start: curr - (size / 2) + }; +} + +/** + * Computes an "optimal" category that globally arranges bars side by side (no gap when + * percentage options are 1), based on the previous and following categories. This mode + * generates bars with different widths when data are not evenly spaced. + * @private + */ +function computeFlexCategoryTraits(index, ruler, options) { + var pixels = ruler.pixels; + var curr = pixels[index]; + var prev = index > 0 ? pixels[index - 1] : null; + var next = index < pixels.length - 1 ? pixels[index + 1] : null; + var percent = options.categoryPercentage; + var start, size; + + if (prev === null) { + // first data: its size is double based on the next point or, + // if it's also the last data, we use the scale size. + prev = curr - (next === null ? ruler.end - ruler.start : next - curr); + } + + if (next === null) { + // last data: its size is also double based on the previous point. + next = curr + curr - prev; + } + + start = curr - (curr - Math.min(prev, next)) / 2 * percent; + size = Math.abs(next - prev) / 2 * percent; + + return { + chunk: size / ruler.stackCount, + ratio: options.barPercentage, + start: start + }; +} + +var controller_bar = core_datasetController.extend({ + + dataElementType: elements.Rectangle, + + /** + * @private + */ + _dataElementOptions: [ + 'backgroundColor', + 'borderColor', + 'borderSkipped', + 'borderWidth', + 'barPercentage', + 'barThickness', + 'categoryPercentage', + 'maxBarThickness', + 'minBarLength' + ], + + initialize: function() { + var me = this; + var meta, scaleOpts; + + core_datasetController.prototype.initialize.apply(me, arguments); + + meta = me.getMeta(); + meta.stack = me.getDataset().stack; + meta.bar = true; + + scaleOpts = me._getIndexScale().options; + deprecated('bar chart', scaleOpts.barPercentage, 'scales.[x/y]Axes.barPercentage', 'dataset.barPercentage'); + deprecated('bar chart', scaleOpts.barThickness, 'scales.[x/y]Axes.barThickness', 'dataset.barThickness'); + deprecated('bar chart', scaleOpts.categoryPercentage, 'scales.[x/y]Axes.categoryPercentage', 'dataset.categoryPercentage'); + deprecated('bar chart', me._getValueScale().options.minBarLength, 'scales.[x/y]Axes.minBarLength', 'dataset.minBarLength'); + deprecated('bar chart', scaleOpts.maxBarThickness, 'scales.[x/y]Axes.maxBarThickness', 'dataset.maxBarThickness'); + }, + + update: function(reset) { + var me = this; + var rects = me.getMeta().data; + var i, ilen; + + me._ruler = me.getRuler(); + + for (i = 0, ilen = rects.length; i < ilen; ++i) { + me.updateElement(rects[i], i, reset); + } + }, + + updateElement: function(rectangle, index, reset) { + var me = this; + var meta = me.getMeta(); + var dataset = me.getDataset(); + var options = me._resolveDataElementOptions(rectangle, index); + + rectangle._xScale = me.getScaleForId(meta.xAxisID); + rectangle._yScale = me.getScaleForId(meta.yAxisID); + rectangle._datasetIndex = me.index; + rectangle._index = index; + rectangle._model = { + backgroundColor: options.backgroundColor, + borderColor: options.borderColor, + borderSkipped: options.borderSkipped, + borderWidth: options.borderWidth, + datasetLabel: dataset.label, + label: me.chart.data.labels[index] + }; + + if (helpers$1.isArray(dataset.data[index])) { + rectangle._model.borderSkipped = null; + } + + me._updateElementGeometry(rectangle, index, reset, options); + + rectangle.pivot(); + }, + + /** + * @private + */ + _updateElementGeometry: function(rectangle, index, reset, options) { + var me = this; + var model = rectangle._model; + var vscale = me._getValueScale(); + var base = vscale.getBasePixel(); + var horizontal = vscale.isHorizontal(); + var ruler = me._ruler || me.getRuler(); + var vpixels = me.calculateBarValuePixels(me.index, index, options); + var ipixels = me.calculateBarIndexPixels(me.index, index, ruler, options); + + model.horizontal = horizontal; + model.base = reset ? base : vpixels.base; + model.x = horizontal ? reset ? base : vpixels.head : ipixels.center; + model.y = horizontal ? ipixels.center : reset ? base : vpixels.head; + model.height = horizontal ? ipixels.size : undefined; + model.width = horizontal ? undefined : ipixels.size; + }, + + /** + * Returns the stacks based on groups and bar visibility. + * @param {number} [last] - The dataset index + * @returns {string[]} The list of stack IDs + * @private + */ + _getStacks: function(last) { + var me = this; + var scale = me._getIndexScale(); + var metasets = scale._getMatchingVisibleMetas(me._type); + var stacked = scale.options.stacked; + var ilen = metasets.length; + var stacks = []; + var i, meta; + + for (i = 0; i < ilen; ++i) { + meta = metasets[i]; + // stacked | meta.stack + // | found | not found | undefined + // false | x | x | x + // true | | x | + // undefined | | x | x + if (stacked === false || stacks.indexOf(meta.stack) === -1 || + (stacked === undefined && meta.stack === undefined)) { + stacks.push(meta.stack); + } + if (meta.index === last) { + break; + } + } + + return stacks; + }, + + /** + * Returns the effective number of stacks based on groups and bar visibility. + * @private + */ + getStackCount: function() { + return this._getStacks().length; + }, + + /** + * Returns the stack index for the given dataset based on groups and bar visibility. + * @param {number} [datasetIndex] - The dataset index + * @param {string} [name] - The stack name to find + * @returns {number} The stack index + * @private + */ + getStackIndex: function(datasetIndex, name) { + var stacks = this._getStacks(datasetIndex); + var index = (name !== undefined) + ? stacks.indexOf(name) + : -1; // indexOf returns -1 if element is not present + + return (index === -1) + ? stacks.length - 1 + : index; + }, + + /** + * @private + */ + getRuler: function() { + var me = this; + var scale = me._getIndexScale(); + var pixels = []; + var i, ilen; + + for (i = 0, ilen = me.getMeta().data.length; i < ilen; ++i) { + pixels.push(scale.getPixelForValue(null, i, me.index)); + } + + return { + pixels: pixels, + start: scale._startPixel, + end: scale._endPixel, + stackCount: me.getStackCount(), + scale: scale + }; + }, + + /** + * Note: pixel values are not clamped to the scale area. + * @private + */ + calculateBarValuePixels: function(datasetIndex, index, options) { + var me = this; + var chart = me.chart; + var scale = me._getValueScale(); + var isHorizontal = scale.isHorizontal(); + var datasets = chart.data.datasets; + var metasets = scale._getMatchingVisibleMetas(me._type); + var value = scale._parseValue(datasets[datasetIndex].data[index]); + var minBarLength = options.minBarLength; + var stacked = scale.options.stacked; + var stack = me.getMeta().stack; + var start = value.start === undefined ? 0 : value.max >= 0 && value.min >= 0 ? value.min : value.max; + var length = value.start === undefined ? value.end : value.max >= 0 && value.min >= 0 ? value.max - value.min : value.min - value.max; + var ilen = metasets.length; + var i, imeta, ivalue, base, head, size, stackLength; + + if (stacked || (stacked === undefined && stack !== undefined)) { + for (i = 0; i < ilen; ++i) { + imeta = metasets[i]; + + if (imeta.index === datasetIndex) { + break; + } + + if (imeta.stack === stack) { + stackLength = scale._parseValue(datasets[imeta.index].data[index]); + ivalue = stackLength.start === undefined ? stackLength.end : stackLength.min >= 0 && stackLength.max >= 0 ? stackLength.max : stackLength.min; + + if ((value.min < 0 && ivalue < 0) || (value.max >= 0 && ivalue > 0)) { + start += ivalue; + } + } + } + } + + base = scale.getPixelForValue(start); + head = scale.getPixelForValue(start + length); + size = head - base; + + if (minBarLength !== undefined && Math.abs(size) < minBarLength) { + size = minBarLength; + if (length >= 0 && !isHorizontal || length < 0 && isHorizontal) { + head = base - minBarLength; + } else { + head = base + minBarLength; + } + } + + return { + size: size, + base: base, + head: head, + center: head + size / 2 + }; + }, + + /** + * @private + */ + calculateBarIndexPixels: function(datasetIndex, index, ruler, options) { + var me = this; + var range = options.barThickness === 'flex' + ? computeFlexCategoryTraits(index, ruler, options) + : computeFitCategoryTraits(index, ruler, options); + + var stackIndex = me.getStackIndex(datasetIndex, me.getMeta().stack); + var center = range.start + (range.chunk * stackIndex) + (range.chunk / 2); + var size = Math.min( + valueOrDefault$3(options.maxBarThickness, Infinity), + range.chunk * range.ratio); + + return { + base: center - size / 2, + head: center + size / 2, + center: center, + size: size + }; + }, + + draw: function() { + var me = this; + var chart = me.chart; + var scale = me._getValueScale(); + var rects = me.getMeta().data; + var dataset = me.getDataset(); + var ilen = rects.length; + var i = 0; + + helpers$1.canvas.clipArea(chart.ctx, chart.chartArea); + + for (; i < ilen; ++i) { + var val = scale._parseValue(dataset.data[i]); + if (!isNaN(val.min) && !isNaN(val.max)) { + rects[i].draw(); + } + } + + helpers$1.canvas.unclipArea(chart.ctx); + }, + + /** + * @private + */ + _resolveDataElementOptions: function() { + var me = this; + var values = helpers$1.extend({}, core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments)); + var indexOpts = me._getIndexScale().options; + var valueOpts = me._getValueScale().options; + + values.barPercentage = valueOrDefault$3(indexOpts.barPercentage, values.barPercentage); + values.barThickness = valueOrDefault$3(indexOpts.barThickness, values.barThickness); + values.categoryPercentage = valueOrDefault$3(indexOpts.categoryPercentage, values.categoryPercentage); + values.maxBarThickness = valueOrDefault$3(indexOpts.maxBarThickness, values.maxBarThickness); + values.minBarLength = valueOrDefault$3(valueOpts.minBarLength, values.minBarLength); + + return values; + } + +}); + +var valueOrDefault$4 = helpers$1.valueOrDefault; +var resolve$1 = helpers$1.options.resolve; + +core_defaults._set('bubble', { + hover: { + mode: 'single' + }, + + scales: { + xAxes: [{ + type: 'linear', // bubble should probably use a linear scale by default + position: 'bottom', + id: 'x-axis-0' // need an ID so datasets can reference the scale + }], + yAxes: [{ + type: 'linear', + position: 'left', + id: 'y-axis-0' + }] + }, + + tooltips: { + callbacks: { + title: function() { + // Title doesn't make sense for scatter since we format the data as a point + return ''; + }, + label: function(item, data) { + var datasetLabel = data.datasets[item.datasetIndex].label || ''; + var dataPoint = data.datasets[item.datasetIndex].data[item.index]; + return datasetLabel + ': (' + item.xLabel + ', ' + item.yLabel + ', ' + dataPoint.r + ')'; + } + } + } +}); + +var controller_bubble = core_datasetController.extend({ + /** + * @protected + */ + dataElementType: elements.Point, + + /** + * @private + */ + _dataElementOptions: [ + 'backgroundColor', + 'borderColor', + 'borderWidth', + 'hoverBackgroundColor', + 'hoverBorderColor', + 'hoverBorderWidth', + 'hoverRadius', + 'hitRadius', + 'pointStyle', + 'rotation' + ], + + /** + * @protected + */ + update: function(reset) { + var me = this; + var meta = me.getMeta(); + var points = meta.data; + + // Update Points + helpers$1.each(points, function(point, index) { + me.updateElement(point, index, reset); + }); + }, + + /** + * @protected + */ + updateElement: function(point, index, reset) { + var me = this; + var meta = me.getMeta(); + var custom = point.custom || {}; + var xScale = me.getScaleForId(meta.xAxisID); + var yScale = me.getScaleForId(meta.yAxisID); + var options = me._resolveDataElementOptions(point, index); + var data = me.getDataset().data[index]; + var dsIndex = me.index; + + var x = reset ? xScale.getPixelForDecimal(0.5) : xScale.getPixelForValue(typeof data === 'object' ? data : NaN, index, dsIndex); + var y = reset ? yScale.getBasePixel() : yScale.getPixelForValue(data, index, dsIndex); + + point._xScale = xScale; + point._yScale = yScale; + point._options = options; + point._datasetIndex = dsIndex; + point._index = index; + point._model = { + backgroundColor: options.backgroundColor, + borderColor: options.borderColor, + borderWidth: options.borderWidth, + hitRadius: options.hitRadius, + pointStyle: options.pointStyle, + rotation: options.rotation, + radius: reset ? 0 : options.radius, + skip: custom.skip || isNaN(x) || isNaN(y), + x: x, + y: y, + }; + + point.pivot(); + }, + + /** + * @protected + */ + setHoverStyle: function(point) { + var model = point._model; + var options = point._options; + var getHoverColor = helpers$1.getHoverColor; + + point.$previousStyle = { + backgroundColor: model.backgroundColor, + borderColor: model.borderColor, + borderWidth: model.borderWidth, + radius: model.radius + }; + + model.backgroundColor = valueOrDefault$4(options.hoverBackgroundColor, getHoverColor(options.backgroundColor)); + model.borderColor = valueOrDefault$4(options.hoverBorderColor, getHoverColor(options.borderColor)); + model.borderWidth = valueOrDefault$4(options.hoverBorderWidth, options.borderWidth); + model.radius = options.radius + options.hoverRadius; + }, + + /** + * @private + */ + _resolveDataElementOptions: function(point, index) { + var me = this; + var chart = me.chart; + var dataset = me.getDataset(); + var custom = point.custom || {}; + var data = dataset.data[index] || {}; + var values = core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments); + + // Scriptable options + var context = { + chart: chart, + dataIndex: index, + dataset: dataset, + datasetIndex: me.index + }; + + // In case values were cached (and thus frozen), we need to clone the values + if (me._cachedDataOpts === values) { + values = helpers$1.extend({}, values); + } + + // Custom radius resolution + values.radius = resolve$1([ + custom.radius, + data.r, + me._config.radius, + chart.options.elements.point.radius + ], context, index); + + return values; + } +}); + +var valueOrDefault$5 = helpers$1.valueOrDefault; + +var PI$1 = Math.PI; +var DOUBLE_PI$1 = PI$1 * 2; +var HALF_PI$1 = PI$1 / 2; + +core_defaults._set('doughnut', { + animation: { + // Boolean - Whether we animate the rotation of the Doughnut + animateRotate: true, + // Boolean - Whether we animate scaling the Doughnut from the centre + animateScale: false + }, + hover: { + mode: 'single' + }, + legendCallback: function(chart) { + var list = document.createElement('ul'); + var data = chart.data; + var datasets = data.datasets; + var labels = data.labels; + var i, ilen, listItem, listItemSpan; + + list.setAttribute('class', chart.id + '-legend'); + if (datasets.length) { + for (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) { + listItem = list.appendChild(document.createElement('li')); + listItemSpan = listItem.appendChild(document.createElement('span')); + listItemSpan.style.backgroundColor = datasets[0].backgroundColor[i]; + if (labels[i]) { + listItem.appendChild(document.createTextNode(labels[i])); + } + } + } + + return list.outerHTML; + }, + legend: { + labels: { + generateLabels: function(chart) { + var data = chart.data; + if (data.labels.length && data.datasets.length) { + return data.labels.map(function(label, i) { + var meta = chart.getDatasetMeta(0); + var style = meta.controller.getStyle(i); + + return { + text: label, + fillStyle: style.backgroundColor, + strokeStyle: style.borderColor, + lineWidth: style.borderWidth, + hidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden, + + // Extra data used for toggling the correct item + index: i + }; + }); + } + return []; + } + }, + + onClick: function(e, legendItem) { + var index = legendItem.index; + var chart = this.chart; + var i, ilen, meta; + + for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) { + meta = chart.getDatasetMeta(i); + // toggle visibility of index if exists + if (meta.data[index]) { + meta.data[index].hidden = !meta.data[index].hidden; + } + } + + chart.update(); + } + }, + + // The percentage of the chart that we cut out of the middle. + cutoutPercentage: 50, + + // The rotation of the chart, where the first data arc begins. + rotation: -HALF_PI$1, + + // The total circumference of the chart. + circumference: DOUBLE_PI$1, + + // Need to override these to give a nice default + tooltips: { + callbacks: { + title: function() { + return ''; + }, + label: function(tooltipItem, data) { + var dataLabel = data.labels[tooltipItem.index]; + var value = ': ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index]; + + if (helpers$1.isArray(dataLabel)) { + // show value on first line of multiline label + // need to clone because we are changing the value + dataLabel = dataLabel.slice(); + dataLabel[0] += value; + } else { + dataLabel += value; + } + + return dataLabel; + } + } + } +}); + +var controller_doughnut = core_datasetController.extend({ + + dataElementType: elements.Arc, + + linkScales: helpers$1.noop, + + /** + * @private + */ + _dataElementOptions: [ + 'backgroundColor', + 'borderColor', + 'borderWidth', + 'borderAlign', + 'hoverBackgroundColor', + 'hoverBorderColor', + 'hoverBorderWidth', + ], + + // Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly + getRingIndex: function(datasetIndex) { + var ringIndex = 0; + + for (var j = 0; j < datasetIndex; ++j) { + if (this.chart.isDatasetVisible(j)) { + ++ringIndex; + } + } + + return ringIndex; + }, + + update: function(reset) { + var me = this; + var chart = me.chart; + var chartArea = chart.chartArea; + var opts = chart.options; + var ratioX = 1; + var ratioY = 1; + var offsetX = 0; + var offsetY = 0; + var meta = me.getMeta(); + var arcs = meta.data; + var cutout = opts.cutoutPercentage / 100 || 0; + var circumference = opts.circumference; + var chartWeight = me._getRingWeight(me.index); + var maxWidth, maxHeight, i, ilen; + + // If the chart's circumference isn't a full circle, calculate size as a ratio of the width/height of the arc + if (circumference < DOUBLE_PI$1) { + var startAngle = opts.rotation % DOUBLE_PI$1; + startAngle += startAngle >= PI$1 ? -DOUBLE_PI$1 : startAngle < -PI$1 ? DOUBLE_PI$1 : 0; + var endAngle = startAngle + circumference; + var startX = Math.cos(startAngle); + var startY = Math.sin(startAngle); + var endX = Math.cos(endAngle); + var endY = Math.sin(endAngle); + var contains0 = (startAngle <= 0 && endAngle >= 0) || endAngle >= DOUBLE_PI$1; + var contains90 = (startAngle <= HALF_PI$1 && endAngle >= HALF_PI$1) || endAngle >= DOUBLE_PI$1 + HALF_PI$1; + var contains180 = startAngle === -PI$1 || endAngle >= PI$1; + var contains270 = (startAngle <= -HALF_PI$1 && endAngle >= -HALF_PI$1) || endAngle >= PI$1 + HALF_PI$1; + var minX = contains180 ? -1 : Math.min(startX, startX * cutout, endX, endX * cutout); + var minY = contains270 ? -1 : Math.min(startY, startY * cutout, endY, endY * cutout); + var maxX = contains0 ? 1 : Math.max(startX, startX * cutout, endX, endX * cutout); + var maxY = contains90 ? 1 : Math.max(startY, startY * cutout, endY, endY * cutout); + ratioX = (maxX - minX) / 2; + ratioY = (maxY - minY) / 2; + offsetX = -(maxX + minX) / 2; + offsetY = -(maxY + minY) / 2; + } + + for (i = 0, ilen = arcs.length; i < ilen; ++i) { + arcs[i]._options = me._resolveDataElementOptions(arcs[i], i); + } + + chart.borderWidth = me.getMaxBorderWidth(); + maxWidth = (chartArea.right - chartArea.left - chart.borderWidth) / ratioX; + maxHeight = (chartArea.bottom - chartArea.top - chart.borderWidth) / ratioY; + chart.outerRadius = Math.max(Math.min(maxWidth, maxHeight) / 2, 0); + chart.innerRadius = Math.max(chart.outerRadius * cutout, 0); + chart.radiusLength = (chart.outerRadius - chart.innerRadius) / (me._getVisibleDatasetWeightTotal() || 1); + chart.offsetX = offsetX * chart.outerRadius; + chart.offsetY = offsetY * chart.outerRadius; + + meta.total = me.calculateTotal(); + + me.outerRadius = chart.outerRadius - chart.radiusLength * me._getRingWeightOffset(me.index); + me.innerRadius = Math.max(me.outerRadius - chart.radiusLength * chartWeight, 0); + + for (i = 0, ilen = arcs.length; i < ilen; ++i) { + me.updateElement(arcs[i], i, reset); + } + }, + + updateElement: function(arc, index, reset) { + var me = this; + var chart = me.chart; + var chartArea = chart.chartArea; + var opts = chart.options; + var animationOpts = opts.animation; + var centerX = (chartArea.left + chartArea.right) / 2; + var centerY = (chartArea.top + chartArea.bottom) / 2; + var startAngle = opts.rotation; // non reset case handled later + var endAngle = opts.rotation; // non reset case handled later + var dataset = me.getDataset(); + var circumference = reset && animationOpts.animateRotate ? 0 : arc.hidden ? 0 : me.calculateCircumference(dataset.data[index]) * (opts.circumference / DOUBLE_PI$1); + var innerRadius = reset && animationOpts.animateScale ? 0 : me.innerRadius; + var outerRadius = reset && animationOpts.animateScale ? 0 : me.outerRadius; + var options = arc._options || {}; + + helpers$1.extend(arc, { + // Utility + _datasetIndex: me.index, + _index: index, + + // Desired view properties + _model: { + backgroundColor: options.backgroundColor, + borderColor: options.borderColor, + borderWidth: options.borderWidth, + borderAlign: options.borderAlign, + x: centerX + chart.offsetX, + y: centerY + chart.offsetY, + startAngle: startAngle, + endAngle: endAngle, + circumference: circumference, + outerRadius: outerRadius, + innerRadius: innerRadius, + label: helpers$1.valueAtIndexOrDefault(dataset.label, index, chart.data.labels[index]) + } + }); + + var model = arc._model; + + // Set correct angles if not resetting + if (!reset || !animationOpts.animateRotate) { + if (index === 0) { + model.startAngle = opts.rotation; + } else { + model.startAngle = me.getMeta().data[index - 1]._model.endAngle; + } + + model.endAngle = model.startAngle + model.circumference; + } + + arc.pivot(); + }, + + calculateTotal: function() { + var dataset = this.getDataset(); + var meta = this.getMeta(); + var total = 0; + var value; + + helpers$1.each(meta.data, function(element, index) { + value = dataset.data[index]; + if (!isNaN(value) && !element.hidden) { + total += Math.abs(value); + } + }); + + /* if (total === 0) { + total = NaN; + }*/ + + return total; + }, + + calculateCircumference: function(value) { + var total = this.getMeta().total; + if (total > 0 && !isNaN(value)) { + return DOUBLE_PI$1 * (Math.abs(value) / total); + } + return 0; + }, + + // gets the max border or hover width to properly scale pie charts + getMaxBorderWidth: function(arcs) { + var me = this; + var max = 0; + var chart = me.chart; + var i, ilen, meta, arc, controller, options, borderWidth, hoverWidth; + + if (!arcs) { + // Find the outmost visible dataset + for (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) { + if (chart.isDatasetVisible(i)) { + meta = chart.getDatasetMeta(i); + arcs = meta.data; + if (i !== me.index) { + controller = meta.controller; + } + break; + } + } + } + + if (!arcs) { + return 0; + } + + for (i = 0, ilen = arcs.length; i < ilen; ++i) { + arc = arcs[i]; + if (controller) { + controller._configure(); + options = controller._resolveDataElementOptions(arc, i); + } else { + options = arc._options; + } + if (options.borderAlign !== 'inner') { + borderWidth = options.borderWidth; + hoverWidth = options.hoverBorderWidth; + + max = borderWidth > max ? borderWidth : max; + max = hoverWidth > max ? hoverWidth : max; + } + } + return max; + }, + + /** + * @protected + */ + setHoverStyle: function(arc) { + var model = arc._model; + var options = arc._options; + var getHoverColor = helpers$1.getHoverColor; + + arc.$previousStyle = { + backgroundColor: model.backgroundColor, + borderColor: model.borderColor, + borderWidth: model.borderWidth, + }; + + model.backgroundColor = valueOrDefault$5(options.hoverBackgroundColor, getHoverColor(options.backgroundColor)); + model.borderColor = valueOrDefault$5(options.hoverBorderColor, getHoverColor(options.borderColor)); + model.borderWidth = valueOrDefault$5(options.hoverBorderWidth, options.borderWidth); + }, + + /** + * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly + * @private + */ + _getRingWeightOffset: function(datasetIndex) { + var ringWeightOffset = 0; + + for (var i = 0; i < datasetIndex; ++i) { + if (this.chart.isDatasetVisible(i)) { + ringWeightOffset += this._getRingWeight(i); + } + } + + return ringWeightOffset; + }, + + /** + * @private + */ + _getRingWeight: function(dataSetIndex) { + return Math.max(valueOrDefault$5(this.chart.data.datasets[dataSetIndex].weight, 1), 0); + }, + + /** + * Returns the sum of all visibile data set weights. This value can be 0. + * @private + */ + _getVisibleDatasetWeightTotal: function() { + return this._getRingWeightOffset(this.chart.data.datasets.length); + } +}); + +core_defaults._set('horizontalBar', { + hover: { + mode: 'index', + axis: 'y' + }, + + scales: { + xAxes: [{ + type: 'linear', + position: 'bottom' + }], + + yAxes: [{ + type: 'category', + position: 'left', + offset: true, + gridLines: { + offsetGridLines: true + } + }] + }, + + elements: { + rectangle: { + borderSkipped: 'left' + } + }, + + tooltips: { + mode: 'index', + axis: 'y' + } +}); + +core_defaults._set('global', { + datasets: { + horizontalBar: { + categoryPercentage: 0.8, + barPercentage: 0.9 + } + } +}); + +var controller_horizontalBar = controller_bar.extend({ + /** + * @private + */ + _getValueScaleId: function() { + return this.getMeta().xAxisID; + }, + + /** + * @private + */ + _getIndexScaleId: function() { + return this.getMeta().yAxisID; + } +}); + +var valueOrDefault$6 = helpers$1.valueOrDefault; +var resolve$2 = helpers$1.options.resolve; +var isPointInArea = helpers$1.canvas._isPointInArea; + +core_defaults._set('line', { + showLines: true, + spanGaps: false, + + hover: { + mode: 'label' + }, + + scales: { + xAxes: [{ + type: 'category', + id: 'x-axis-0' + }], + yAxes: [{ + type: 'linear', + id: 'y-axis-0' + }] + } +}); + +function scaleClip(scale, halfBorderWidth) { + var tickOpts = scale && scale.options.ticks || {}; + var reverse = tickOpts.reverse; + var min = tickOpts.min === undefined ? halfBorderWidth : 0; + var max = tickOpts.max === undefined ? halfBorderWidth : 0; + return { + start: reverse ? max : min, + end: reverse ? min : max + }; +} + +function defaultClip(xScale, yScale, borderWidth) { + var halfBorderWidth = borderWidth / 2; + var x = scaleClip(xScale, halfBorderWidth); + var y = scaleClip(yScale, halfBorderWidth); + + return { + top: y.end, + right: x.end, + bottom: y.start, + left: x.start + }; +} + +function toClip(value) { + var t, r, b, l; + + if (helpers$1.isObject(value)) { + t = value.top; + r = value.right; + b = value.bottom; + l = value.left; + } else { + t = r = b = l = value; + } + + return { + top: t, + right: r, + bottom: b, + left: l + }; +} + + +var controller_line = core_datasetController.extend({ + + datasetElementType: elements.Line, + + dataElementType: elements.Point, + + /** + * @private + */ + _datasetElementOptions: [ + 'backgroundColor', + 'borderCapStyle', + 'borderColor', + 'borderDash', + 'borderDashOffset', + 'borderJoinStyle', + 'borderWidth', + 'cubicInterpolationMode', + 'fill' + ], + + /** + * @private + */ + _dataElementOptions: { + backgroundColor: 'pointBackgroundColor', + borderColor: 'pointBorderColor', + borderWidth: 'pointBorderWidth', + hitRadius: 'pointHitRadius', + hoverBackgroundColor: 'pointHoverBackgroundColor', + hoverBorderColor: 'pointHoverBorderColor', + hoverBorderWidth: 'pointHoverBorderWidth', + hoverRadius: 'pointHoverRadius', + pointStyle: 'pointStyle', + radius: 'pointRadius', + rotation: 'pointRotation' + }, + + update: function(reset) { + var me = this; + var meta = me.getMeta(); + var line = meta.dataset; + var points = meta.data || []; + var options = me.chart.options; + var config = me._config; + var showLine = me._showLine = valueOrDefault$6(config.showLine, options.showLines); + var i, ilen; + + me._xScale = me.getScaleForId(meta.xAxisID); + me._yScale = me.getScaleForId(meta.yAxisID); + + // Update Line + if (showLine) { + // Compatibility: If the properties are defined with only the old name, use those values + if (config.tension !== undefined && config.lineTension === undefined) { + config.lineTension = config.tension; + } + + // Utility + line._scale = me._yScale; + line._datasetIndex = me.index; + // Data + line._children = points; + // Model + line._model = me._resolveDatasetElementOptions(line); + + line.pivot(); + } + + // Update Points + for (i = 0, ilen = points.length; i < ilen; ++i) { + me.updateElement(points[i], i, reset); + } + + if (showLine && line._model.tension !== 0) { + me.updateBezierControlPoints(); + } + + // Now pivot the point for animation + for (i = 0, ilen = points.length; i < ilen; ++i) { + points[i].pivot(); + } + }, + + updateElement: function(point, index, reset) { + var me = this; + var meta = me.getMeta(); + var custom = point.custom || {}; + var dataset = me.getDataset(); + var datasetIndex = me.index; + var value = dataset.data[index]; + var xScale = me._xScale; + var yScale = me._yScale; + var lineModel = meta.dataset._model; + var x, y; + + var options = me._resolveDataElementOptions(point, index); + + x = xScale.getPixelForValue(typeof value === 'object' ? value : NaN, index, datasetIndex); + y = reset ? yScale.getBasePixel() : me.calculatePointY(value, index, datasetIndex); + + // Utility + point._xScale = xScale; + point._yScale = yScale; + point._options = options; + point._datasetIndex = datasetIndex; + point._index = index; + + // Desired view properties + point._model = { + x: x, + y: y, + skip: custom.skip || isNaN(x) || isNaN(y), + // Appearance + radius: options.radius, + pointStyle: options.pointStyle, + rotation: options.rotation, + backgroundColor: options.backgroundColor, + borderColor: options.borderColor, + borderWidth: options.borderWidth, + tension: valueOrDefault$6(custom.tension, lineModel ? lineModel.tension : 0), + steppedLine: lineModel ? lineModel.steppedLine : false, + // Tooltip + hitRadius: options.hitRadius + }; + }, + + /** + * @private + */ + _resolveDatasetElementOptions: function(element) { + var me = this; + var config = me._config; + var custom = element.custom || {}; + var options = me.chart.options; + var lineOptions = options.elements.line; + var values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments); + + // The default behavior of lines is to break at null values, according + // to https://github.com/chartjs/Chart.js/issues/2435#issuecomment-216718158 + // This option gives lines the ability to span gaps + values.spanGaps = valueOrDefault$6(config.spanGaps, options.spanGaps); + values.tension = valueOrDefault$6(config.lineTension, lineOptions.tension); + values.steppedLine = resolve$2([custom.steppedLine, config.steppedLine, lineOptions.stepped]); + values.clip = toClip(valueOrDefault$6(config.clip, defaultClip(me._xScale, me._yScale, values.borderWidth))); + + return values; + }, + + calculatePointY: function(value, index, datasetIndex) { + var me = this; + var chart = me.chart; + var yScale = me._yScale; + var sumPos = 0; + var sumNeg = 0; + var i, ds, dsMeta, stackedRightValue, rightValue, metasets, ilen; + + if (yScale.options.stacked) { + rightValue = +yScale.getRightValue(value); + metasets = chart._getSortedVisibleDatasetMetas(); + ilen = metasets.length; + + for (i = 0; i < ilen; ++i) { + dsMeta = metasets[i]; + if (dsMeta.index === datasetIndex) { + break; + } + + ds = chart.data.datasets[dsMeta.index]; + if (dsMeta.type === 'line' && dsMeta.yAxisID === yScale.id) { + stackedRightValue = +yScale.getRightValue(ds.data[index]); + if (stackedRightValue < 0) { + sumNeg += stackedRightValue || 0; + } else { + sumPos += stackedRightValue || 0; + } + } + } + + if (rightValue < 0) { + return yScale.getPixelForValue(sumNeg + rightValue); + } + return yScale.getPixelForValue(sumPos + rightValue); + } + return yScale.getPixelForValue(value); + }, + + updateBezierControlPoints: function() { + var me = this; + var chart = me.chart; + var meta = me.getMeta(); + var lineModel = meta.dataset._model; + var area = chart.chartArea; + var points = meta.data || []; + var i, ilen, model, controlPoints; + + // Only consider points that are drawn in case the spanGaps option is used + if (lineModel.spanGaps) { + points = points.filter(function(pt) { + return !pt._model.skip; + }); + } + + function capControlPoint(pt, min, max) { + return Math.max(Math.min(pt, max), min); + } + + if (lineModel.cubicInterpolationMode === 'monotone') { + helpers$1.splineCurveMonotone(points); + } else { + for (i = 0, ilen = points.length; i < ilen; ++i) { + model = points[i]._model; + controlPoints = helpers$1.splineCurve( + helpers$1.previousItem(points, i)._model, + model, + helpers$1.nextItem(points, i)._model, + lineModel.tension + ); + model.controlPointPreviousX = controlPoints.previous.x; + model.controlPointPreviousY = controlPoints.previous.y; + model.controlPointNextX = controlPoints.next.x; + model.controlPointNextY = controlPoints.next.y; + } + } + + if (chart.options.elements.line.capBezierPoints) { + for (i = 0, ilen = points.length; i < ilen; ++i) { + model = points[i]._model; + if (isPointInArea(model, area)) { + if (i > 0 && isPointInArea(points[i - 1]._model, area)) { + model.controlPointPreviousX = capControlPoint(model.controlPointPreviousX, area.left, area.right); + model.controlPointPreviousY = capControlPoint(model.controlPointPreviousY, area.top, area.bottom); + } + if (i < points.length - 1 && isPointInArea(points[i + 1]._model, area)) { + model.controlPointNextX = capControlPoint(model.controlPointNextX, area.left, area.right); + model.controlPointNextY = capControlPoint(model.controlPointNextY, area.top, area.bottom); + } + } + } + } + }, + + draw: function() { + var me = this; + var chart = me.chart; + var meta = me.getMeta(); + var points = meta.data || []; + var area = chart.chartArea; + var canvas = chart.canvas; + var i = 0; + var ilen = points.length; + var clip; + + if (me._showLine) { + clip = meta.dataset._model.clip; + + helpers$1.canvas.clipArea(chart.ctx, { + left: clip.left === false ? 0 : area.left - clip.left, + right: clip.right === false ? canvas.width : area.right + clip.right, + top: clip.top === false ? 0 : area.top - clip.top, + bottom: clip.bottom === false ? canvas.height : area.bottom + clip.bottom + }); + + meta.dataset.draw(); + + helpers$1.canvas.unclipArea(chart.ctx); + } + + // Draw the points + for (; i < ilen; ++i) { + points[i].draw(area); + } + }, + + /** + * @protected + */ + setHoverStyle: function(point) { + var model = point._model; + var options = point._options; + var getHoverColor = helpers$1.getHoverColor; + + point.$previousStyle = { + backgroundColor: model.backgroundColor, + borderColor: model.borderColor, + borderWidth: model.borderWidth, + radius: model.radius + }; + + model.backgroundColor = valueOrDefault$6(options.hoverBackgroundColor, getHoverColor(options.backgroundColor)); + model.borderColor = valueOrDefault$6(options.hoverBorderColor, getHoverColor(options.borderColor)); + model.borderWidth = valueOrDefault$6(options.hoverBorderWidth, options.borderWidth); + model.radius = valueOrDefault$6(options.hoverRadius, options.radius); + }, +}); + +var resolve$3 = helpers$1.options.resolve; + +core_defaults._set('polarArea', { + scale: { + type: 'radialLinear', + angleLines: { + display: false + }, + gridLines: { + circular: true + }, + pointLabels: { + display: false + }, + ticks: { + beginAtZero: true + } + }, + + // Boolean - Whether to animate the rotation of the chart + animation: { + animateRotate: true, + animateScale: true + }, + + startAngle: -0.5 * Math.PI, + legendCallback: function(chart) { + var list = document.createElement('ul'); + var data = chart.data; + var datasets = data.datasets; + var labels = data.labels; + var i, ilen, listItem, listItemSpan; + + list.setAttribute('class', chart.id + '-legend'); + if (datasets.length) { + for (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) { + listItem = list.appendChild(document.createElement('li')); + listItemSpan = listItem.appendChild(document.createElement('span')); + listItemSpan.style.backgroundColor = datasets[0].backgroundColor[i]; + if (labels[i]) { + listItem.appendChild(document.createTextNode(labels[i])); + } + } + } + + return list.outerHTML; + }, + legend: { + labels: { + generateLabels: function(chart) { + var data = chart.data; + if (data.labels.length && data.datasets.length) { + return data.labels.map(function(label, i) { + var meta = chart.getDatasetMeta(0); + var style = meta.controller.getStyle(i); + + return { + text: label, + fillStyle: style.backgroundColor, + strokeStyle: style.borderColor, + lineWidth: style.borderWidth, + hidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden, + + // Extra data used for toggling the correct item + index: i + }; + }); + } + return []; + } + }, + + onClick: function(e, legendItem) { + var index = legendItem.index; + var chart = this.chart; + var i, ilen, meta; + + for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) { + meta = chart.getDatasetMeta(i); + meta.data[index].hidden = !meta.data[index].hidden; + } + + chart.update(); + } + }, + + // Need to override these to give a nice default + tooltips: { + callbacks: { + title: function() { + return ''; + }, + label: function(item, data) { + return data.labels[item.index] + ': ' + item.yLabel; + } + } + } +}); + +var controller_polarArea = core_datasetController.extend({ + + dataElementType: elements.Arc, + + linkScales: helpers$1.noop, + + /** + * @private + */ + _dataElementOptions: [ + 'backgroundColor', + 'borderColor', + 'borderWidth', + 'borderAlign', + 'hoverBackgroundColor', + 'hoverBorderColor', + 'hoverBorderWidth', + ], + + /** + * @private + */ + _getIndexScaleId: function() { + return this.chart.scale.id; + }, + + /** + * @private + */ + _getValueScaleId: function() { + return this.chart.scale.id; + }, + + update: function(reset) { + var me = this; + var dataset = me.getDataset(); + var meta = me.getMeta(); + var start = me.chart.options.startAngle || 0; + var starts = me._starts = []; + var angles = me._angles = []; + var arcs = meta.data; + var i, ilen, angle; + + me._updateRadius(); + + meta.count = me.countVisibleElements(); + + for (i = 0, ilen = dataset.data.length; i < ilen; i++) { + starts[i] = start; + angle = me._computeAngle(i); + angles[i] = angle; + start += angle; + } + + for (i = 0, ilen = arcs.length; i < ilen; ++i) { + arcs[i]._options = me._resolveDataElementOptions(arcs[i], i); + me.updateElement(arcs[i], i, reset); + } + }, + + /** + * @private + */ + _updateRadius: function() { + var me = this; + var chart = me.chart; + var chartArea = chart.chartArea; + var opts = chart.options; + var minSize = Math.min(chartArea.right - chartArea.left, chartArea.bottom - chartArea.top); + + chart.outerRadius = Math.max(minSize / 2, 0); + chart.innerRadius = Math.max(opts.cutoutPercentage ? (chart.outerRadius / 100) * (opts.cutoutPercentage) : 1, 0); + chart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount(); + + me.outerRadius = chart.outerRadius - (chart.radiusLength * me.index); + me.innerRadius = me.outerRadius - chart.radiusLength; + }, + + updateElement: function(arc, index, reset) { + var me = this; + var chart = me.chart; + var dataset = me.getDataset(); + var opts = chart.options; + var animationOpts = opts.animation; + var scale = chart.scale; + var labels = chart.data.labels; + + var centerX = scale.xCenter; + var centerY = scale.yCenter; + + // var negHalfPI = -0.5 * Math.PI; + var datasetStartAngle = opts.startAngle; + var distance = arc.hidden ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]); + var startAngle = me._starts[index]; + var endAngle = startAngle + (arc.hidden ? 0 : me._angles[index]); + + var resetRadius = animationOpts.animateScale ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]); + var options = arc._options || {}; + + helpers$1.extend(arc, { + // Utility + _datasetIndex: me.index, + _index: index, + _scale: scale, + + // Desired view properties + _model: { + backgroundColor: options.backgroundColor, + borderColor: options.borderColor, + borderWidth: options.borderWidth, + borderAlign: options.borderAlign, + x: centerX, + y: centerY, + innerRadius: 0, + outerRadius: reset ? resetRadius : distance, + startAngle: reset && animationOpts.animateRotate ? datasetStartAngle : startAngle, + endAngle: reset && animationOpts.animateRotate ? datasetStartAngle : endAngle, + label: helpers$1.valueAtIndexOrDefault(labels, index, labels[index]) + } + }); + + arc.pivot(); + }, + + countVisibleElements: function() { + var dataset = this.getDataset(); + var meta = this.getMeta(); + var count = 0; + + helpers$1.each(meta.data, function(element, index) { + if (!isNaN(dataset.data[index]) && !element.hidden) { + count++; + } + }); + + return count; + }, + + /** + * @protected + */ + setHoverStyle: function(arc) { + var model = arc._model; + var options = arc._options; + var getHoverColor = helpers$1.getHoverColor; + var valueOrDefault = helpers$1.valueOrDefault; + + arc.$previousStyle = { + backgroundColor: model.backgroundColor, + borderColor: model.borderColor, + borderWidth: model.borderWidth, + }; + + model.backgroundColor = valueOrDefault(options.hoverBackgroundColor, getHoverColor(options.backgroundColor)); + model.borderColor = valueOrDefault(options.hoverBorderColor, getHoverColor(options.borderColor)); + model.borderWidth = valueOrDefault(options.hoverBorderWidth, options.borderWidth); + }, + + /** + * @private + */ + _computeAngle: function(index) { + var me = this; + var count = this.getMeta().count; + var dataset = me.getDataset(); + var meta = me.getMeta(); + + if (isNaN(dataset.data[index]) || meta.data[index].hidden) { + return 0; + } + + // Scriptable options + var context = { + chart: me.chart, + dataIndex: index, + dataset: dataset, + datasetIndex: me.index + }; + + return resolve$3([ + me.chart.options.elements.arc.angle, + (2 * Math.PI) / count + ], context, index); + } +}); + +core_defaults._set('pie', helpers$1.clone(core_defaults.doughnut)); +core_defaults._set('pie', { + cutoutPercentage: 0 +}); + +// Pie charts are Doughnut chart with different defaults +var controller_pie = controller_doughnut; + +var valueOrDefault$7 = helpers$1.valueOrDefault; + +core_defaults._set('radar', { + spanGaps: false, + scale: { + type: 'radialLinear' + }, + elements: { + line: { + fill: 'start', + tension: 0 // no bezier in radar + } + } +}); + +var controller_radar = core_datasetController.extend({ + datasetElementType: elements.Line, + + dataElementType: elements.Point, + + linkScales: helpers$1.noop, + + /** + * @private + */ + _datasetElementOptions: [ + 'backgroundColor', + 'borderWidth', + 'borderColor', + 'borderCapStyle', + 'borderDash', + 'borderDashOffset', + 'borderJoinStyle', + 'fill' + ], + + /** + * @private + */ + _dataElementOptions: { + backgroundColor: 'pointBackgroundColor', + borderColor: 'pointBorderColor', + borderWidth: 'pointBorderWidth', + hitRadius: 'pointHitRadius', + hoverBackgroundColor: 'pointHoverBackgroundColor', + hoverBorderColor: 'pointHoverBorderColor', + hoverBorderWidth: 'pointHoverBorderWidth', + hoverRadius: 'pointHoverRadius', + pointStyle: 'pointStyle', + radius: 'pointRadius', + rotation: 'pointRotation' + }, + + /** + * @private + */ + _getIndexScaleId: function() { + return this.chart.scale.id; + }, + + /** + * @private + */ + _getValueScaleId: function() { + return this.chart.scale.id; + }, + + update: function(reset) { + var me = this; + var meta = me.getMeta(); + var line = meta.dataset; + var points = meta.data || []; + var scale = me.chart.scale; + var config = me._config; + var i, ilen; + + // Compatibility: If the properties are defined with only the old name, use those values + if (config.tension !== undefined && config.lineTension === undefined) { + config.lineTension = config.tension; + } + + // Utility + line._scale = scale; + line._datasetIndex = me.index; + // Data + line._children = points; + line._loop = true; + // Model + line._model = me._resolveDatasetElementOptions(line); + + line.pivot(); + + // Update Points + for (i = 0, ilen = points.length; i < ilen; ++i) { + me.updateElement(points[i], i, reset); + } + + // Update bezier control points + me.updateBezierControlPoints(); + + // Now pivot the point for animation + for (i = 0, ilen = points.length; i < ilen; ++i) { + points[i].pivot(); + } + }, + + updateElement: function(point, index, reset) { + var me = this; + var custom = point.custom || {}; + var dataset = me.getDataset(); + var scale = me.chart.scale; + var pointPosition = scale.getPointPositionForValue(index, dataset.data[index]); + var options = me._resolveDataElementOptions(point, index); + var lineModel = me.getMeta().dataset._model; + var x = reset ? scale.xCenter : pointPosition.x; + var y = reset ? scale.yCenter : pointPosition.y; + + // Utility + point._scale = scale; + point._options = options; + point._datasetIndex = me.index; + point._index = index; + + // Desired view properties + point._model = { + x: x, // value not used in dataset scale, but we want a consistent API between scales + y: y, + skip: custom.skip || isNaN(x) || isNaN(y), + // Appearance + radius: options.radius, + pointStyle: options.pointStyle, + rotation: options.rotation, + backgroundColor: options.backgroundColor, + borderColor: options.borderColor, + borderWidth: options.borderWidth, + tension: valueOrDefault$7(custom.tension, lineModel ? lineModel.tension : 0), + + // Tooltip + hitRadius: options.hitRadius + }; + }, + + /** + * @private + */ + _resolveDatasetElementOptions: function() { + var me = this; + var config = me._config; + var options = me.chart.options; + var values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments); + + values.spanGaps = valueOrDefault$7(config.spanGaps, options.spanGaps); + values.tension = valueOrDefault$7(config.lineTension, options.elements.line.tension); + + return values; + }, + + updateBezierControlPoints: function() { + var me = this; + var meta = me.getMeta(); + var area = me.chart.chartArea; + var points = meta.data || []; + var i, ilen, model, controlPoints; + + // Only consider points that are drawn in case the spanGaps option is used + if (meta.dataset._model.spanGaps) { + points = points.filter(function(pt) { + return !pt._model.skip; + }); + } + + function capControlPoint(pt, min, max) { + return Math.max(Math.min(pt, max), min); + } + + for (i = 0, ilen = points.length; i < ilen; ++i) { + model = points[i]._model; + controlPoints = helpers$1.splineCurve( + helpers$1.previousItem(points, i, true)._model, + model, + helpers$1.nextItem(points, i, true)._model, + model.tension + ); + + // Prevent the bezier going outside of the bounds of the graph + model.controlPointPreviousX = capControlPoint(controlPoints.previous.x, area.left, area.right); + model.controlPointPreviousY = capControlPoint(controlPoints.previous.y, area.top, area.bottom); + model.controlPointNextX = capControlPoint(controlPoints.next.x, area.left, area.right); + model.controlPointNextY = capControlPoint(controlPoints.next.y, area.top, area.bottom); + } + }, + + setHoverStyle: function(point) { + var model = point._model; + var options = point._options; + var getHoverColor = helpers$1.getHoverColor; + + point.$previousStyle = { + backgroundColor: model.backgroundColor, + borderColor: model.borderColor, + borderWidth: model.borderWidth, + radius: model.radius + }; + + model.backgroundColor = valueOrDefault$7(options.hoverBackgroundColor, getHoverColor(options.backgroundColor)); + model.borderColor = valueOrDefault$7(options.hoverBorderColor, getHoverColor(options.borderColor)); + model.borderWidth = valueOrDefault$7(options.hoverBorderWidth, options.borderWidth); + model.radius = valueOrDefault$7(options.hoverRadius, options.radius); + } +}); + +core_defaults._set('scatter', { + hover: { + mode: 'single' + }, + + scales: { + xAxes: [{ + id: 'x-axis-1', // need an ID so datasets can reference the scale + type: 'linear', // scatter should not use a category axis + position: 'bottom' + }], + yAxes: [{ + id: 'y-axis-1', + type: 'linear', + position: 'left' + }] + }, + + tooltips: { + callbacks: { + title: function() { + return ''; // doesn't make sense for scatter since data are formatted as a point + }, + label: function(item) { + return '(' + item.xLabel + ', ' + item.yLabel + ')'; + } + } + } +}); + +core_defaults._set('global', { + datasets: { + scatter: { + showLine: false + } + } +}); + +// Scatter charts use line controllers +var controller_scatter = controller_line; + +// NOTE export a map in which the key represents the controller type, not +// the class, and so must be CamelCase in order to be correctly retrieved +// by the controller in core.controller.js (`controllers[meta.type]`). + +var controllers = { + bar: controller_bar, + bubble: controller_bubble, + doughnut: controller_doughnut, + horizontalBar: controller_horizontalBar, + line: controller_line, + polarArea: controller_polarArea, + pie: controller_pie, + radar: controller_radar, + scatter: controller_scatter +}; + +/** + * Helper function to get relative position for an event + * @param {Event|IEvent} event - The event to get the position for + * @param {Chart} chart - The chart + * @returns {object} the event position + */ +function getRelativePosition(e, chart) { + if (e.native) { + return { + x: e.x, + y: e.y + }; + } + + return helpers$1.getRelativePosition(e, chart); +} + +/** + * Helper function to traverse all of the visible elements in the chart + * @param {Chart} chart - the chart + * @param {function} handler - the callback to execute for each visible item + */ +function parseVisibleItems(chart, handler) { + var metasets = chart._getSortedVisibleDatasetMetas(); + var metadata, i, j, ilen, jlen, element; + + for (i = 0, ilen = metasets.length; i < ilen; ++i) { + metadata = metasets[i].data; + for (j = 0, jlen = metadata.length; j < jlen; ++j) { + element = metadata[j]; + if (!element._view.skip) { + handler(element); + } + } + } +} + +/** + * Helper function to get the items that intersect the event position + * @param {ChartElement[]} items - elements to filter + * @param {object} position - the point to be nearest to + * @return {ChartElement[]} the nearest items + */ +function getIntersectItems(chart, position) { + var elements = []; + + parseVisibleItems(chart, function(element) { + if (element.inRange(position.x, position.y)) { + elements.push(element); + } + }); + + return elements; +} + +/** + * Helper function to get the items nearest to the event position considering all visible items in teh chart + * @param {Chart} chart - the chart to look at elements from + * @param {object} position - the point to be nearest to + * @param {boolean} intersect - if true, only consider items that intersect the position + * @param {function} distanceMetric - function to provide the distance between points + * @return {ChartElement[]} the nearest items + */ +function getNearestItems(chart, position, intersect, distanceMetric) { + var minDistance = Number.POSITIVE_INFINITY; + var nearestItems = []; + + parseVisibleItems(chart, function(element) { + if (intersect && !element.inRange(position.x, position.y)) { + return; + } + + var center = element.getCenterPoint(); + var distance = distanceMetric(position, center); + if (distance < minDistance) { + nearestItems = [element]; + minDistance = distance; + } else if (distance === minDistance) { + // Can have multiple items at the same distance in which case we sort by size + nearestItems.push(element); + } + }); + + return nearestItems; +} + +/** + * Get a distance metric function for two points based on the + * axis mode setting + * @param {string} axis - the axis mode. x|y|xy + */ +function getDistanceMetricForAxis(axis) { + var useX = axis.indexOf('x') !== -1; + var useY = axis.indexOf('y') !== -1; + + return function(pt1, pt2) { + var deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0; + var deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0; + return Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2)); + }; +} + +function indexMode(chart, e, options) { + var position = getRelativePosition(e, chart); + // Default axis for index mode is 'x' to match old behaviour + options.axis = options.axis || 'x'; + var distanceMetric = getDistanceMetricForAxis(options.axis); + var items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric); + var elements = []; + + if (!items.length) { + return []; + } + + chart._getSortedVisibleDatasetMetas().forEach(function(meta) { + var element = meta.data[items[0]._index]; + + // don't count items that are skipped (null data) + if (element && !element._view.skip) { + elements.push(element); + } + }); + + return elements; +} + +/** + * @interface IInteractionOptions + */ +/** + * If true, only consider items that intersect the point + * @name IInterfaceOptions#boolean + * @type Boolean + */ + +/** + * Contains interaction related functions + * @namespace Chart.Interaction + */ +var core_interaction = { + // Helper function for different modes + modes: { + single: function(chart, e) { + var position = getRelativePosition(e, chart); + var elements = []; + + parseVisibleItems(chart, function(element) { + if (element.inRange(position.x, position.y)) { + elements.push(element); + return elements; + } + }); + + return elements.slice(0, 1); + }, + + /** + * @function Chart.Interaction.modes.label + * @deprecated since version 2.4.0 + * @todo remove at version 3 + * @private + */ + label: indexMode, + + /** + * Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something + * If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item + * @function Chart.Interaction.modes.index + * @since v2.4.0 + * @param {Chart} chart - the chart we are returning items from + * @param {Event} e - the event we are find things at + * @param {IInteractionOptions} options - options to use during interaction + * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned + */ + index: indexMode, + + /** + * Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something + * If the options.intersect is false, we find the nearest item and return the items in that dataset + * @function Chart.Interaction.modes.dataset + * @param {Chart} chart - the chart we are returning items from + * @param {Event} e - the event we are find things at + * @param {IInteractionOptions} options - options to use during interaction + * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned + */ + dataset: function(chart, e, options) { + var position = getRelativePosition(e, chart); + options.axis = options.axis || 'xy'; + var distanceMetric = getDistanceMetricForAxis(options.axis); + var items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric); + + if (items.length > 0) { + items = chart.getDatasetMeta(items[0]._datasetIndex).data; + } + + return items; + }, + + /** + * @function Chart.Interaction.modes.x-axis + * @deprecated since version 2.4.0. Use index mode and intersect == true + * @todo remove at version 3 + * @private + */ + 'x-axis': function(chart, e) { + return indexMode(chart, e, {intersect: false}); + }, + + /** + * Point mode returns all elements that hit test based on the event position + * of the event + * @function Chart.Interaction.modes.intersect + * @param {Chart} chart - the chart we are returning items from + * @param {Event} e - the event we are find things at + * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned + */ + point: function(chart, e) { + var position = getRelativePosition(e, chart); + return getIntersectItems(chart, position); + }, + + /** + * nearest mode returns the element closest to the point + * @function Chart.Interaction.modes.intersect + * @param {Chart} chart - the chart we are returning items from + * @param {Event} e - the event we are find things at + * @param {IInteractionOptions} options - options to use + * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned + */ + nearest: function(chart, e, options) { + var position = getRelativePosition(e, chart); + options.axis = options.axis || 'xy'; + var distanceMetric = getDistanceMetricForAxis(options.axis); + return getNearestItems(chart, position, options.intersect, distanceMetric); + }, + + /** + * x mode returns the elements that hit-test at the current x coordinate + * @function Chart.Interaction.modes.x + * @param {Chart} chart - the chart we are returning items from + * @param {Event} e - the event we are find things at + * @param {IInteractionOptions} options - options to use + * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned + */ + x: function(chart, e, options) { + var position = getRelativePosition(e, chart); + var items = []; + var intersectsItem = false; + + parseVisibleItems(chart, function(element) { + if (element.inXRange(position.x)) { + items.push(element); + } + + if (element.inRange(position.x, position.y)) { + intersectsItem = true; + } + }); + + // If we want to trigger on an intersect and we don't have any items + // that intersect the position, return nothing + if (options.intersect && !intersectsItem) { + items = []; + } + return items; + }, + + /** + * y mode returns the elements that hit-test at the current y coordinate + * @function Chart.Interaction.modes.y + * @param {Chart} chart - the chart we are returning items from + * @param {Event} e - the event we are find things at + * @param {IInteractionOptions} options - options to use + * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned + */ + y: function(chart, e, options) { + var position = getRelativePosition(e, chart); + var items = []; + var intersectsItem = false; + + parseVisibleItems(chart, function(element) { + if (element.inYRange(position.y)) { + items.push(element); + } + + if (element.inRange(position.x, position.y)) { + intersectsItem = true; + } + }); + + // If we want to trigger on an intersect and we don't have any items + // that intersect the position, return nothing + if (options.intersect && !intersectsItem) { + items = []; + } + return items; + } + } +}; + +var extend = helpers$1.extend; + +function filterByPosition(array, position) { + return helpers$1.where(array, function(v) { + return v.pos === position; + }); +} + +function sortByWeight(array, reverse) { + return array.sort(function(a, b) { + var v0 = reverse ? b : a; + var v1 = reverse ? a : b; + return v0.weight === v1.weight ? + v0.index - v1.index : + v0.weight - v1.weight; + }); +} + +function wrapBoxes(boxes) { + var layoutBoxes = []; + var i, ilen, box; + + for (i = 0, ilen = (boxes || []).length; i < ilen; ++i) { + box = boxes[i]; + layoutBoxes.push({ + index: i, + box: box, + pos: box.position, + horizontal: box.isHorizontal(), + weight: box.weight + }); + } + return layoutBoxes; +} + +function setLayoutDims(layouts, params) { + var i, ilen, layout; + for (i = 0, ilen = layouts.length; i < ilen; ++i) { + layout = layouts[i]; + // store width used instead of chartArea.w in fitBoxes + layout.width = layout.horizontal + ? layout.box.fullWidth && params.availableWidth + : params.vBoxMaxWidth; + // store height used instead of chartArea.h in fitBoxes + layout.height = layout.horizontal && params.hBoxMaxHeight; + } +} + +function buildLayoutBoxes(boxes) { + var layoutBoxes = wrapBoxes(boxes); + var left = sortByWeight(filterByPosition(layoutBoxes, 'left'), true); + var right = sortByWeight(filterByPosition(layoutBoxes, 'right')); + var top = sortByWeight(filterByPosition(layoutBoxes, 'top'), true); + var bottom = sortByWeight(filterByPosition(layoutBoxes, 'bottom')); + + return { + leftAndTop: left.concat(top), + rightAndBottom: right.concat(bottom), + chartArea: filterByPosition(layoutBoxes, 'chartArea'), + vertical: left.concat(right), + horizontal: top.concat(bottom) + }; +} + +function getCombinedMax(maxPadding, chartArea, a, b) { + return Math.max(maxPadding[a], chartArea[a]) + Math.max(maxPadding[b], chartArea[b]); +} + +function updateDims(chartArea, params, layout) { + var box = layout.box; + var maxPadding = chartArea.maxPadding; + var newWidth, newHeight; + + if (layout.size) { + // this layout was already counted for, lets first reduce old size + chartArea[layout.pos] -= layout.size; + } + layout.size = layout.horizontal ? box.height : box.width; + chartArea[layout.pos] += layout.size; + + if (box.getPadding) { + var boxPadding = box.getPadding(); + maxPadding.top = Math.max(maxPadding.top, boxPadding.top); + maxPadding.left = Math.max(maxPadding.left, boxPadding.left); + maxPadding.bottom = Math.max(maxPadding.bottom, boxPadding.bottom); + maxPadding.right = Math.max(maxPadding.right, boxPadding.right); + } + + newWidth = params.outerWidth - getCombinedMax(maxPadding, chartArea, 'left', 'right'); + newHeight = params.outerHeight - getCombinedMax(maxPadding, chartArea, 'top', 'bottom'); + + if (newWidth !== chartArea.w || newHeight !== chartArea.h) { + chartArea.w = newWidth; + chartArea.h = newHeight; + + // return true if chart area changed in layout's direction + return layout.horizontal ? newWidth !== chartArea.w : newHeight !== chartArea.h; + } +} + +function handleMaxPadding(chartArea) { + var maxPadding = chartArea.maxPadding; + + function updatePos(pos) { + var change = Math.max(maxPadding[pos] - chartArea[pos], 0); + chartArea[pos] += change; + return change; + } + chartArea.y += updatePos('top'); + chartArea.x += updatePos('left'); + updatePos('right'); + updatePos('bottom'); +} + +function getMargins(horizontal, chartArea) { + var maxPadding = chartArea.maxPadding; + + function marginForPositions(positions) { + var margin = {left: 0, top: 0, right: 0, bottom: 0}; + positions.forEach(function(pos) { + margin[pos] = Math.max(chartArea[pos], maxPadding[pos]); + }); + return margin; + } + + return horizontal + ? marginForPositions(['left', 'right']) + : marginForPositions(['top', 'bottom']); +} + +function fitBoxes(boxes, chartArea, params) { + var refitBoxes = []; + var i, ilen, layout, box, refit, changed; + + for (i = 0, ilen = boxes.length; i < ilen; ++i) { + layout = boxes[i]; + box = layout.box; + + box.update( + layout.width || chartArea.w, + layout.height || chartArea.h, + getMargins(layout.horizontal, chartArea) + ); + if (updateDims(chartArea, params, layout)) { + changed = true; + if (refitBoxes.length) { + // Dimensions changed and there were non full width boxes before this + // -> we have to refit those + refit = true; + } + } + if (!box.fullWidth) { // fullWidth boxes don't need to be re-fitted in any case + refitBoxes.push(layout); + } + } + + return refit ? fitBoxes(refitBoxes, chartArea, params) || changed : changed; +} + +function placeBoxes(boxes, chartArea, params) { + var userPadding = params.padding; + var x = chartArea.x; + var y = chartArea.y; + var i, ilen, layout, box; + + for (i = 0, ilen = boxes.length; i < ilen; ++i) { + layout = boxes[i]; + box = layout.box; + if (layout.horizontal) { + box.left = box.fullWidth ? userPadding.left : chartArea.left; + box.right = box.fullWidth ? params.outerWidth - userPadding.right : chartArea.left + chartArea.w; + box.top = y; + box.bottom = y + box.height; + box.width = box.right - box.left; + y = box.bottom; + } else { + box.left = x; + box.right = x + box.width; + box.top = chartArea.top; + box.bottom = chartArea.top + chartArea.h; + box.height = box.bottom - box.top; + x = box.right; + } + } + + chartArea.x = x; + chartArea.y = y; +} + +core_defaults._set('global', { + layout: { + padding: { + top: 0, + right: 0, + bottom: 0, + left: 0 + } + } +}); + +/** + * @interface ILayoutItem + * @prop {string} position - The position of the item in the chart layout. Possible values are + * 'left', 'top', 'right', 'bottom', and 'chartArea' + * @prop {number} weight - The weight used to sort the item. Higher weights are further away from the chart area + * @prop {boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down + * @prop {function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom) + * @prop {function} update - Takes two parameters: width and height. Returns size of item + * @prop {function} getPadding - Returns an object with padding on the edges + * @prop {number} width - Width of item. Must be valid after update() + * @prop {number} height - Height of item. Must be valid after update() + * @prop {number} left - Left edge of the item. Set by layout system and cannot be used in update + * @prop {number} top - Top edge of the item. Set by layout system and cannot be used in update + * @prop {number} right - Right edge of the item. Set by layout system and cannot be used in update + * @prop {number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update + */ + +// The layout service is very self explanatory. It's responsible for the layout within a chart. +// Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need +// It is this service's responsibility of carrying out that layout. +var core_layouts = { + defaults: {}, + + /** + * Register a box to a chart. + * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title. + * @param {Chart} chart - the chart to use + * @param {ILayoutItem} item - the item to add to be layed out + */ + addBox: function(chart, item) { + if (!chart.boxes) { + chart.boxes = []; + } + + // initialize item with default values + item.fullWidth = item.fullWidth || false; + item.position = item.position || 'top'; + item.weight = item.weight || 0; + item._layers = item._layers || function() { + return [{ + z: 0, + draw: function() { + item.draw.apply(item, arguments); + } + }]; + }; + + chart.boxes.push(item); + }, + + /** + * Remove a layoutItem from a chart + * @param {Chart} chart - the chart to remove the box from + * @param {ILayoutItem} layoutItem - the item to remove from the layout + */ + removeBox: function(chart, layoutItem) { + var index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1; + if (index !== -1) { + chart.boxes.splice(index, 1); + } + }, + + /** + * Sets (or updates) options on the given `item`. + * @param {Chart} chart - the chart in which the item lives (or will be added to) + * @param {ILayoutItem} item - the item to configure with the given options + * @param {object} options - the new item options. + */ + configure: function(chart, item, options) { + var props = ['fullWidth', 'position', 'weight']; + var ilen = props.length; + var i = 0; + var prop; + + for (; i < ilen; ++i) { + prop = props[i]; + if (options.hasOwnProperty(prop)) { + item[prop] = options[prop]; + } + } + }, + + /** + * Fits boxes of the given chart into the given size by having each box measure itself + * then running a fitting algorithm + * @param {Chart} chart - the chart + * @param {number} width - the width to fit into + * @param {number} height - the height to fit into + */ + update: function(chart, width, height) { + if (!chart) { + return; + } + + var layoutOptions = chart.options.layout || {}; + var padding = helpers$1.options.toPadding(layoutOptions.padding); + + var availableWidth = width - padding.width; + var availableHeight = height - padding.height; + var boxes = buildLayoutBoxes(chart.boxes); + var verticalBoxes = boxes.vertical; + var horizontalBoxes = boxes.horizontal; + + // Essentially we now have any number of boxes on each of the 4 sides. + // Our canvas looks like the following. + // The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and + // B1 is the bottom axis + // There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays + // These locations are single-box locations only, when trying to register a chartArea location that is already taken, + // an error will be thrown. + // + // |----------------------------------------------------| + // | T1 (Full Width) | + // |----------------------------------------------------| + // | | | T2 | | + // | |----|-------------------------------------|----| + // | | | C1 | | C2 | | + // | | |----| |----| | + // | | | | | + // | L1 | L2 | ChartArea (C0) | R1 | + // | | | | | + // | | |----| |----| | + // | | | C3 | | C4 | | + // | |----|-------------------------------------|----| + // | | | B1 | | + // |----------------------------------------------------| + // | B2 (Full Width) | + // |----------------------------------------------------| + // + + var params = Object.freeze({ + outerWidth: width, + outerHeight: height, + padding: padding, + availableWidth: availableWidth, + vBoxMaxWidth: availableWidth / 2 / verticalBoxes.length, + hBoxMaxHeight: availableHeight / 2 + }); + var chartArea = extend({ + maxPadding: extend({}, padding), + w: availableWidth, + h: availableHeight, + x: padding.left, + y: padding.top + }, padding); + + setLayoutDims(verticalBoxes.concat(horizontalBoxes), params); + + // First fit vertical boxes + fitBoxes(verticalBoxes, chartArea, params); + + // Then fit horizontal boxes + if (fitBoxes(horizontalBoxes, chartArea, params)) { + // if the area changed, re-fit vertical boxes + fitBoxes(verticalBoxes, chartArea, params); + } + + handleMaxPadding(chartArea); + + // Finally place the boxes to correct coordinates + placeBoxes(boxes.leftAndTop, chartArea, params); + + // Move to opposite side of chart + chartArea.x += chartArea.w; + chartArea.y += chartArea.h; + + placeBoxes(boxes.rightAndBottom, chartArea, params); + + chart.chartArea = { + left: chartArea.left, + top: chartArea.top, + right: chartArea.left + chartArea.w, + bottom: chartArea.top + chartArea.h + }; + + // Finally update boxes in chartArea (radial scale for example) + helpers$1.each(boxes.chartArea, function(layout) { + var box = layout.box; + extend(box, chart.chartArea); + box.update(chartArea.w, chartArea.h); + }); + } +}; + +/** + * Platform fallback implementation (minimal). + * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939 + */ + +var platform_basic = { + acquireContext: function(item) { + if (item && item.canvas) { + // Support for any object associated to a canvas (including a context2d) + item = item.canvas; + } + + return item && item.getContext('2d') || null; + } +}; + +var platform_dom = "/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"; + +var platform_dom$1 = /*#__PURE__*/Object.freeze({ +__proto__: null, +'default': platform_dom +}); + +var stylesheet = getCjsExportFromNamespace(platform_dom$1); + +var EXPANDO_KEY = '$chartjs'; +var CSS_PREFIX = 'chartjs-'; +var CSS_SIZE_MONITOR = CSS_PREFIX + 'size-monitor'; +var CSS_RENDER_MONITOR = CSS_PREFIX + 'render-monitor'; +var CSS_RENDER_ANIMATION = CSS_PREFIX + 'render-animation'; +var ANIMATION_START_EVENTS = ['animationstart', 'webkitAnimationStart']; + +/** + * DOM event types -> Chart.js event types. + * Note: only events with different types are mapped. + * @see https://developer.mozilla.org/en-US/docs/Web/Events + */ +var EVENT_TYPES = { + touchstart: 'mousedown', + touchmove: 'mousemove', + touchend: 'mouseup', + pointerenter: 'mouseenter', + pointerdown: 'mousedown', + pointermove: 'mousemove', + pointerup: 'mouseup', + pointerleave: 'mouseout', + pointerout: 'mouseout' +}; + +/** + * The "used" size is the final value of a dimension property after all calculations have + * been performed. This method uses the computed style of `element` but returns undefined + * if the computed style is not expressed in pixels. That can happen in some cases where + * `element` has a size relative to its parent and this last one is not yet displayed, + * for example because of `display: none` on a parent node. + * @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value + * @returns {number} Size in pixels or undefined if unknown. + */ +function readUsedSize(element, property) { + var value = helpers$1.getStyle(element, property); + var matches = value && value.match(/^(\d+)(\.\d+)?px$/); + return matches ? Number(matches[1]) : undefined; +} + +/** + * Initializes the canvas style and render size without modifying the canvas display size, + * since responsiveness is handled by the controller.resize() method. The config is used + * to determine the aspect ratio to apply in case no explicit height has been specified. + */ +function initCanvas(canvas, config) { + var style = canvas.style; + + // NOTE(SB) canvas.getAttribute('width') !== canvas.width: in the first case it + // returns null or '' if no explicit value has been set to the canvas attribute. + var renderHeight = canvas.getAttribute('height'); + var renderWidth = canvas.getAttribute('width'); + + // Chart.js modifies some canvas values that we want to restore on destroy + canvas[EXPANDO_KEY] = { + initial: { + height: renderHeight, + width: renderWidth, + style: { + display: style.display, + height: style.height, + width: style.width + } + } + }; + + // Force canvas to display as block to avoid extra space caused by inline + // elements, which would interfere with the responsive resize process. + // https://github.com/chartjs/Chart.js/issues/2538 + style.display = style.display || 'block'; + + if (renderWidth === null || renderWidth === '') { + var displayWidth = readUsedSize(canvas, 'width'); + if (displayWidth !== undefined) { + canvas.width = displayWidth; + } + } + + if (renderHeight === null || renderHeight === '') { + if (canvas.style.height === '') { + // If no explicit render height and style height, let's apply the aspect ratio, + // which one can be specified by the user but also by charts as default option + // (i.e. options.aspectRatio). If not specified, use canvas aspect ratio of 2. + canvas.height = canvas.width / (config.options.aspectRatio || 2); + } else { + var displayHeight = readUsedSize(canvas, 'height'); + if (displayWidth !== undefined) { + canvas.height = displayHeight; + } + } + } + + return canvas; +} + +/** + * Detects support for options object argument in addEventListener. + * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support + * @private + */ +var supportsEventListenerOptions = (function() { + var supports = false; + try { + var options = Object.defineProperty({}, 'passive', { + // eslint-disable-next-line getter-return + get: function() { + supports = true; + } + }); + window.addEventListener('e', null, options); + } catch (e) { + // continue regardless of error + } + return supports; +}()); + +// Default passive to true as expected by Chrome for 'touchstart' and 'touchend' events. +// https://github.com/chartjs/Chart.js/issues/4287 +var eventListenerOptions = supportsEventListenerOptions ? {passive: true} : false; + +function addListener(node, type, listener) { + node.addEventListener(type, listener, eventListenerOptions); +} + +function removeListener(node, type, listener) { + node.removeEventListener(type, listener, eventListenerOptions); +} + +function createEvent(type, chart, x, y, nativeEvent) { + return { + type: type, + chart: chart, + native: nativeEvent || null, + x: x !== undefined ? x : null, + y: y !== undefined ? y : null, + }; +} + +function fromNativeEvent(event, chart) { + var type = EVENT_TYPES[event.type] || event.type; + var pos = helpers$1.getRelativePosition(event, chart); + return createEvent(type, chart, pos.x, pos.y, event); +} + +function throttled(fn, thisArg) { + var ticking = false; + var args = []; + + return function() { + args = Array.prototype.slice.call(arguments); + thisArg = thisArg || this; + + if (!ticking) { + ticking = true; + helpers$1.requestAnimFrame.call(window, function() { + ticking = false; + fn.apply(thisArg, args); + }); + } + }; +} + +function createDiv(cls) { + var el = document.createElement('div'); + el.className = cls || ''; + return el; +} + +// Implementation based on https://github.com/marcj/css-element-queries +function createResizer(handler) { + var maxSize = 1000000; + + // NOTE(SB) Don't use innerHTML because it could be considered unsafe. + // https://github.com/chartjs/Chart.js/issues/5902 + var resizer = createDiv(CSS_SIZE_MONITOR); + var expand = createDiv(CSS_SIZE_MONITOR + '-expand'); + var shrink = createDiv(CSS_SIZE_MONITOR + '-shrink'); + + expand.appendChild(createDiv()); + shrink.appendChild(createDiv()); + + resizer.appendChild(expand); + resizer.appendChild(shrink); + resizer._reset = function() { + expand.scrollLeft = maxSize; + expand.scrollTop = maxSize; + shrink.scrollLeft = maxSize; + shrink.scrollTop = maxSize; + }; + + var onScroll = function() { + resizer._reset(); + handler(); + }; + + addListener(expand, 'scroll', onScroll.bind(expand, 'expand')); + addListener(shrink, 'scroll', onScroll.bind(shrink, 'shrink')); + + return resizer; +} + +// https://davidwalsh.name/detect-node-insertion +function watchForRender(node, handler) { + var expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {}); + var proxy = expando.renderProxy = function(e) { + if (e.animationName === CSS_RENDER_ANIMATION) { + handler(); + } + }; + + helpers$1.each(ANIMATION_START_EVENTS, function(type) { + addListener(node, type, proxy); + }); + + // #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class + // is removed then added back immediately (same animation frame?). Accessing the + // `offsetParent` property will force a reflow and re-evaluate the CSS animation. + // https://gist.github.com/paulirish/5d52fb081b3570c81e3a#box-metrics + // https://github.com/chartjs/Chart.js/issues/4737 + expando.reflow = !!node.offsetParent; + + node.classList.add(CSS_RENDER_MONITOR); +} + +function unwatchForRender(node) { + var expando = node[EXPANDO_KEY] || {}; + var proxy = expando.renderProxy; + + if (proxy) { + helpers$1.each(ANIMATION_START_EVENTS, function(type) { + removeListener(node, type, proxy); + }); + + delete expando.renderProxy; + } + + node.classList.remove(CSS_RENDER_MONITOR); +} + +function addResizeListener(node, listener, chart) { + var expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {}); + + // Let's keep track of this added resizer and thus avoid DOM query when removing it. + var resizer = expando.resizer = createResizer(throttled(function() { + if (expando.resizer) { + var container = chart.options.maintainAspectRatio && node.parentNode; + var w = container ? container.clientWidth : 0; + listener(createEvent('resize', chart)); + if (container && container.clientWidth < w && chart.canvas) { + // If the container size shrank during chart resize, let's assume + // scrollbar appeared. So we resize again with the scrollbar visible - + // effectively making chart smaller and the scrollbar hidden again. + // Because we are inside `throttled`, and currently `ticking`, scroll + // events are ignored during this whole 2 resize process. + // If we assumed wrong and something else happened, we are resizing + // twice in a frame (potential performance issue) + listener(createEvent('resize', chart)); + } + } + })); + + // The resizer needs to be attached to the node parent, so we first need to be + // sure that `node` is attached to the DOM before injecting the resizer element. + watchForRender(node, function() { + if (expando.resizer) { + var container = node.parentNode; + if (container && container !== resizer.parentNode) { + container.insertBefore(resizer, container.firstChild); + } + + // The container size might have changed, let's reset the resizer state. + resizer._reset(); + } + }); +} + +function removeResizeListener(node) { + var expando = node[EXPANDO_KEY] || {}; + var resizer = expando.resizer; + + delete expando.resizer; + unwatchForRender(node); + + if (resizer && resizer.parentNode) { + resizer.parentNode.removeChild(resizer); + } +} + +/** + * Injects CSS styles inline if the styles are not already present. + * @param {HTMLDocument|ShadowRoot} rootNode - the node to contain the diff --git a/resources/js/langs/de/settings/common.json b/resources/js/langs/de/settings/common.json index 772ffe02a..132bc7dc0 100644 --- a/resources/js/langs/de/settings/common.json +++ b/resources/js/langs/de/settings/common.json @@ -9,5 +9,6 @@ "presence": "Presence", "emails": "Emails", "show-flag": "Show Flag", - "teams": "Teams" + "teams": "Teams", + "public-profile": "Public Profile" } diff --git a/resources/js/langs/en/settings/common.json b/resources/js/langs/en/settings/common.json index 772ffe02a..132bc7dc0 100644 --- a/resources/js/langs/en/settings/common.json +++ b/resources/js/langs/en/settings/common.json @@ -9,5 +9,6 @@ "presence": "Presence", "emails": "Emails", "show-flag": "Show Flag", - "teams": "Teams" + "teams": "Teams", + "public-profile": "Public Profile" } diff --git a/resources/js/langs/es/settings/common.json b/resources/js/langs/es/settings/common.json index 3632d740e..a4adbf027 100644 --- a/resources/js/langs/es/settings/common.json +++ b/resources/js/langs/es/settings/common.json @@ -9,5 +9,6 @@ "presence": "Presencia", "emails": "Corres electrónicos", "show-flag": "Mostrar bandera", - "teams": "Equipos" + "teams": "Equipos", + "public-profile": "Public Profile" } diff --git a/resources/js/langs/nl/settings/common.json b/resources/js/langs/nl/settings/common.json index 73f3d4bf9..42ab54258 100644 --- a/resources/js/langs/nl/settings/common.json +++ b/resources/js/langs/nl/settings/common.json @@ -9,5 +9,6 @@ "presence": "Aanwezigheid", "emails": "Emails", "show-flag": "Toon vlag", - "teams": "Teams" -} \ No newline at end of file + "teams": "Teams", + "public-profile": "Public Profile" +} diff --git a/resources/js/langs/pl/settings/common.json b/resources/js/langs/pl/settings/common.json index 3838a83c9..d33e010cc 100644 --- a/resources/js/langs/pl/settings/common.json +++ b/resources/js/langs/pl/settings/common.json @@ -9,5 +9,6 @@ "presence": "Obecność", "emails": "E-maile", "show-flag": "Pokaż flage", - "teams": "Drużyny" + "teams": "Drużyny", + "public-profile": "Public Profile" } diff --git a/resources/js/routes.js b/resources/js/routes.js index d14f79125..56b477e22 100644 --- a/resources/js/routes.js +++ b/resources/js/routes.js @@ -141,40 +141,40 @@ const router = new VueRouter({ }, { path: 'details', - component: require('./views/settings/Details').default, + component: require('./views/Settings/Details').default, }, { path: 'account', - component: require('./views/settings/Account').default, + component: require('./views/Settings/Account').default, }, { path: 'payments', - component: require('./views/settings/Payments').default, + component: require('./views/Settings/Payments').default, }, { path: 'privacy', - component: require('./views/settings/Privacy').default, + component: require('./views/Settings/Privacy').default, }, { path: 'littercoin', - component: require('./views/settings/Littercoin').default, + component: require('./views/Settings/Littercoin').default, }, { path: 'presence', - component: require('./views/settings/Presence').default, + component: require('./views/Settings/Presence').default, }, { path: 'emails', - component: require('./views/settings/Emails').default, + component: require('./views/Settings/Emails').default, }, { path: 'show-flag', - component: require('./views/settings/GlobalFlag').default, + component: require('./views/Settings/GlobalFlag').default, }, - // { - // path: 'phone', - // component: require('./views/Phone').default - // } + { + path: 'public-profile', + component: require('./views/Settings/PublicProfile').default + } ] }, { diff --git a/resources/js/store/modules/user/actions.js b/resources/js/store/modules/user/actions.js index 32d04d5d5..f3da91495 100644 --- a/resources/js/store/modules/user/actions.js +++ b/resources/js/store/modules/user/actions.js @@ -277,8 +277,8 @@ export const actions = { */ async TOGGLE_LITTER_PICKED_UP_SETTING (context) { - let title = i18n.t('notifications.success'); - let body = i18n.t('notifications.litter-toggled'); + const title = i18n.t('notifications.success'); + const body = i18n.t('notifications.litter-toggled'); await axios.post('/settings/toggle') .then(response => { @@ -301,6 +301,38 @@ export const actions = { }); }, + /** + * Toggle the privacy status of the users dashboard + */ + async TOGGLE_PUBLIC_PROFILE (context) + { + const title = i18n.t('notifications.success'); + + const nowPublic = "Your Profile is now public"; + const nowPrivate = "Your Profile is now private"; + + await axios.post('/settings/public-profile/toggle') + .then(response => { + console.log('toggle_public_profile', response); + + if (response.data.success) + { + context.commit('updateUserSettings', response.data.settings); + + Vue.$vToastify.success({ + title, + body: (response.data.status) + ? nowPublic + : nowPrivate, + position: 'top-right' + }); + } + }) + .catch(error => { + console.error('toggle_public_profile', error); + }); + }, + /** * The user wants to update name, email, username */ diff --git a/resources/js/store/modules/user/init.js b/resources/js/store/modules/user/init.js index 948b2bac4..42d0aefc3 100644 --- a/resources/js/store/modules/user/init.js +++ b/resources/js/store/modules/user/init.js @@ -11,6 +11,7 @@ export const init = { position: 0, photoPercent: 0, requiredXp: 0, + settings: null, tagPercent: 0, totalPhotos: 0, totalTags: 0, diff --git a/resources/js/store/modules/user/mutations.js b/resources/js/store/modules/user/mutations.js index 940c56cf1..d29918b38 100644 --- a/resources/js/store/modules/user/mutations.js +++ b/resources/js/store/modules/user/mutations.js @@ -143,6 +143,22 @@ export const mutations = { state.user.items_remaining = payload; }, + // /** + // * After successful response + // */ + // toggleUserDashboardPrivacyStatus (state, payload) + // { + // state.user.show_public_profile = ! state.user.show_public_profile; + // }, + + /** + * Initialise settings after updating pubic profile + */ + updateUserSettings (state, payload) + { + state.user.settings = payload; + }, + /** * Users map data for the given time-period */ diff --git a/resources/js/views/RootContainer.vue b/resources/js/views/RootContainer.vue index 79ebb4441..1f3662680 100644 --- a/resources/js/views/RootContainer.vue +++ b/resources/js/views/RootContainer.vue @@ -19,7 +19,12 @@ import Unsubscribed from '../components/Notifications/Unsubscribed' export default { name: 'RootContainer', - props: ['auth', 'user', 'verified', 'unsub'], + props: [ + 'auth', + 'user', + 'verified', + 'unsub' + ], components: { Nav, Modal, @@ -47,9 +52,12 @@ export default { // user object is passed when the page is refreshed if (this.user) { - const u = JSON.parse(this.user); - this.$store.commit('initUser', u); - this.$store.commit('set_default_litter_presence', u.items_remaining); + const user = JSON.parse(this.user); + + console.log('RootContainer.user', user); + + this.$store.commit('initUser', user); + this.$store.commit('set_default_litter_presence', user.items_remaining); } } @@ -62,7 +70,6 @@ export default { if (this.unsub) this.showUnsubscribed = true; }, computed: { - /** * Boolean to show or hide the modal */ diff --git a/resources/js/views/Settings.vue b/resources/js/views/Settings.vue index f4df3232f..1ccb6d74e 100644 --- a/resources/js/views/Settings.vue +++ b/resources/js/views/Settings.vue @@ -23,15 +23,16 @@ + + diff --git a/routes/web.php b/routes/web.php index 2c4d6a620..47a47d302 100644 --- a/routes/web.php +++ b/routes/web.php @@ -127,18 +127,7 @@ /** * USER SETTINGS */ -Route::get('/settings', 'HomeController@index'); -Route::get('/settings/password', 'HomeController@index'); -Route::get('/settings/details', 'HomeController@index'); -Route::get('/settings/account', 'HomeController@index'); -Route::get('/settings/payments', 'HomeController@index'); -Route::get('/settings/privacy', 'HomeController@index'); -Route::get('/settings/littercoin', 'HomeController@index'); -Route::get('/settings/phone', 'HomeController@index'); -Route::get('/settings/presence', 'HomeController@index'); -Route::get('/settings/email', 'HomeController@index'); -Route::get('/settings/show-flag', 'HomeController@index'); -Route::get('/settings/teams', 'HomeController@index'); +Route::get('/settings/{route?}', 'HomeController@index'); // Game settings @ SettingsController // Toggle Presense of a piece of litter @@ -188,6 +177,9 @@ // Save Country Flag for top 10 Route::post('/settings/save-flag', 'SettingsController@saveFlag'); +// Public Profile +Route::post('/settings/public-profile/toggle', 'User\Settings\PublicProfileController@toggle'); + // Teams Route::get('/teams', 'HomeController@index'); Route::get('/teams/get-types', 'Teams\TeamsController@types'); From a409ef083b9e74304db026f31373a680d2cbd490 Mon Sep 17 00:00:00 2001 From: xlcrr Date: Sat, 14 Aug 2021 23:23:41 +0100 Subject: [PATCH 2/8] updates --- .../User/Settings/PublicProfileController.php | 35 + .../User/Settings/SocialMediaController.php | 41 + app/Models/User/User.php | 2 +- public/js/app.js | 1588 +++++++++++------ resources/js/components/General/Nav.vue | 7 +- .../PublicProfile/SocialMediaIntegration.vue | 172 -- resources/js/langs/de/settings/common.json | 3 +- resources/js/langs/en/settings/common.json | 3 +- resources/js/langs/es/settings/common.json | 3 +- resources/js/langs/nl/settings/common.json | 3 +- resources/js/langs/pl/settings/common.json | 3 +- resources/js/routes.js | 4 + resources/js/store/modules/user/actions.js | 71 +- resources/js/store/modules/user/mutations.js | 12 + resources/js/views/RootContainer.vue | 6 +- resources/js/views/Settings.vue | 26 +- resources/js/views/Settings/PublicProfile.vue | 101 +- .../views/Settings/SocialMediaIntegration.vue | 217 +++ routes/web.php | 4 + 19 files changed, 1475 insertions(+), 826 deletions(-) create mode 100644 app/Http/Controllers/User/Settings/SocialMediaController.php delete mode 100644 resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue create mode 100644 resources/js/views/Settings/SocialMediaIntegration.vue diff --git a/app/Http/Controllers/User/Settings/PublicProfileController.php b/app/Http/Controllers/User/Settings/PublicProfileController.php index ebbf5d33b..f18e63aa1 100644 --- a/app/Http/Controllers/User/Settings/PublicProfileController.php +++ b/app/Http/Controllers/User/Settings/PublicProfileController.php @@ -40,4 +40,39 @@ public function toggle (Request $request): array return ['success' => false]; } } + + /** + * Update the settings on the users public profile + * + * @param Request $request + * + * @return array + * + * Todo: + * - add validation + * - only update what params were changed + */ + public function update (Request $request): array + { + try + { + $user = Auth::user(); + + $user->settings->public_profile_download_my_data = $request->download ?: false; + $user->settings->public_profile_show_map = $request->map ?: false; + $user->settings->save(); + + return [ + 'success' => true + ]; + } + catch (\Exception $e) + { + \Log::info(['PublicProfileController@update', $e->getMessage()]); + + return [ + 'success' => false + ]; + } + } } diff --git a/app/Http/Controllers/User/Settings/SocialMediaController.php b/app/Http/Controllers/User/Settings/SocialMediaController.php new file mode 100644 index 000000000..743796fbc --- /dev/null +++ b/app/Http/Controllers/User/Settings/SocialMediaController.php @@ -0,0 +1,41 @@ +settings->twitter = $request->twitter; + $user->settings->instagram = $request->instagram; + $user->settings->save(); + + return [ + 'success' => true + ]; + } + catch (\Exception $e) + { + \Log::info(['SocialMediaController@update', $e->getMessage()]); + + return [ + 'success' => false + ]; + } + } +} diff --git a/app/Models/User/User.php b/app/Models/User/User.php index 9fdda01c1..90ac0230f 100644 --- a/app/Models/User/User.php +++ b/app/Models/User/User.php @@ -205,7 +205,7 @@ public function setPasswordAttribute ($password) */ public function settings () { - return $this->belongsTo('App\Models\User\UserSettings'); + return $this->hasOne('App\Models\User\UserSettings'); } /** diff --git a/public/js/app.js b/public/js/app.js index f9ec7a4b6..c3eb65853 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -3059,7 +3059,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar }, computed: { /** - * Return true if the user is logged in + * Return True if the user is logged in */ auth: function auth() { return this.$store.state.user.auth; @@ -7712,191 +7712,6 @@ __webpack_require__.r(__webpack_exports__); /***/ }), -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=script&lang=js&": -/*!*************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=script&lang=js& ***! - \*************************************************************************************************************************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); - - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -/* harmony default export */ __webpack_exports__["default"] = ({ - name: 'SocialMediaIntegration', - data: function data() { - return { - processing: false - }; - }, - computed: { - /** - * Array of available social medias that can be linked to a Username - */ - availableSocialMediaLinks: function availableSocialMediaLinks() { - var x = []; - if (this.twitter) x.push('twitter'); - if (this.instagram) x.push('instagram'); - return x; - }, - - /** - * If there are any social media links, - * - * The user can link their Username to one of the social media platforms. - */ - canLinkSocialMediaToUsername: function canLinkSocialMediaToUsername() { - return this.twitter || this.instagram; - }, - download: { - get: function get() { - return true; - }, - set: function set(v) {} - }, - map: { - get: function get() { - return true; - }, - set: function set(v) {} - }, - instagram: { - get: function get() { - return ''; - }, - set: function set(v) {} - }, - twitter: { - get: function get() { - return ''; - }, - set: function set(v) {} - } - }, - methods: { - /** - * Change what components are visible on a Public Profile - */ - update: function update() { - var _this = this; - - return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _this.processing = true; - _context.next = 3; - return _this.$store.dispatch('UPDATE_PUBLIC_PROFILE_SETTINGS', { - map: _this.map, - download: _this.download, - twitter: _this.twitter, - instagram: _this.instagram - }); - - case 3: - _this.processing = false; - - case 4: - case "end": - return _context.stop(); - } - } - }, _callee); - }))(); - } - } -}); - -/***/ }), - /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/WelcomeBanner.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/WelcomeBanner.vue?vue&type=script&lang=js& ***! @@ -9149,7 +8964,10 @@ __webpack_require__.r(__webpack_exports__); } } // This is needed to invalidate user.auth = true // which is persisted and not updated if the authenticated user forgets to manually log out - else this.$store.commit('resetState'); // If Account Verified + else { + console.log('guest'); + this.$store.commit('resetState'); + } // If Account Verified if (this.verified) this.showEmailConfirmed = true; @@ -9188,6 +9006,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Settings_Emails__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Settings/Emails */ "./resources/js/views/Settings/Emails.vue"); /* harmony import */ var _Settings_GlobalFlag__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Settings/GlobalFlag */ "./resources/js/views/Settings/GlobalFlag.vue"); /* harmony import */ var _Settings_PublicProfile__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Settings/PublicProfile */ "./resources/js/views/Settings/PublicProfile.vue"); +/* harmony import */ var _Settings_SocialMediaIntegration__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Settings/SocialMediaIntegration */ "./resources/js/views/Settings/SocialMediaIntegration.vue"); function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } @@ -9228,6 +9047,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar + /* harmony default export */ __webpack_exports__["default"] = ({ name: 'Settings', components: { @@ -9240,7 +9060,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar Presence: _Settings_Presence__WEBPACK_IMPORTED_MODULE_7__["default"], Emails: _Settings_Emails__WEBPACK_IMPORTED_MODULE_8__["default"], GlobalFlag: _Settings_GlobalFlag__WEBPACK_IMPORTED_MODULE_9__["default"], - PublicProfile: _Settings_PublicProfile__WEBPACK_IMPORTED_MODULE_10__["default"] + PublicProfile: _Settings_PublicProfile__WEBPACK_IMPORTED_MODULE_10__["default"], + SocialMediaIntegration: _Settings_SocialMediaIntegration__WEBPACK_IMPORTED_MODULE_11__["default"] }, created: function created() { var _this = this; @@ -9264,9 +9085,9 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar }, data: function data() { return { - links: ['password', 'details', 'account', 'payments', 'privacy', 'littercoin', 'presence', 'emails', 'show-flag', 'public-profile'], link: 'password', - types: { + // Link route name to Component + links: { 'password': 'Password', 'details': 'Details', 'account': 'Account', @@ -9276,7 +9097,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar 'presence': 'Presence', 'emails': 'Emails', 'show-flag': 'GlobalFlag', - 'public-profile': 'PublicProfile' + 'public-profile': 'PublicProfile' // 'social-media': 'SocialMediaIntegration' + } }; }, @@ -11071,7 +10893,6 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _components_User_Settings_PublicProfile_SocialMediaIntegration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/User/Settings/PublicProfile/SocialMediaIntegration */ "./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue"); function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } @@ -11117,20 +10938,41 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar // // // - +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// /* harmony default export */ __webpack_exports__["default"] = ({ name: 'PublicProfile', - components: { - SocialMediaIntegration: _components_User_Settings_PublicProfile_SocialMediaIntegration__WEBPACK_IMPORTED_MODULE_1__["default"] - }, data: function data() { return { - processing: false // download: true, - // map: true, - // twitter: '', - // instagram: '', - // socialMediaLink: null - + processing: false }; }, computed: { @@ -11169,6 +11011,35 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar getStatusText: function getStatusText() { return this.show_public_profile ? 'Public' : 'Private'; }, + download: { + get: function get() { + return this.settings.download; + }, + set: function set(v) { + this.$store.commit('publicProfileSetting', { + key: 'download', + v: v + }); + } + }, + map: { + get: function get() { + return this.settings.map; + }, + set: function set(v) { + this.$store.commit('publicProfileSetting', { + key: 'map', + v: v + }); + } + }, + + /** + * Shortcut to user.settings + */ + settings: function settings() { + return this.$store.state.user.user.settings; + }, /** * Return True to make the Profile Public @@ -11207,16 +11078,258 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar } }, _callee); }))(); + }, + + /** + * Change what components are visible on a Public Profile + */ + update: function update() { + var _this2 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _this2.processing = true; + _context2.next = 3; + return _this2.$store.dispatch('UPDATE_PUBLIC_PROFILE_SETTINGS'); + + case 3: + _this2.processing = false; + + case 4: + case "end": + return _context2.stop(); + } + } + }, _callee2); + }))(); } } }); /***/ }), -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Teams/CreateTeam.vue?vue&type=script&lang=js&": -/*!**********************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Teams/CreateTeam.vue?vue&type=script&lang=js& ***! - \**********************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + name: 'SocialMediaIntegration', + data: function data() { + return { + processing: false + }; + }, + computed: { + instagram: { + get: function get() { + return this.settings.instagram; + }, + set: function set(v) { + this.$store.commit('publicProfileSetting', { + key: 'instagram', + v: v + }); + } + }, + instagram_leaderboards: { + get: function get() { + return true; + }, + set: function set(v) {} + }, + instagram_global_map: { + get: function get() { + return true; + }, + set: function set(v) {} + }, + twitter: { + get: function get() { + return this.settings.twitter; + }, + set: function set(v) { + this.$store.commit('publicProfileSetting', { + key: 'twitter', + v: v + }); + } + }, + twitter_leaderboards: { + get: function get() { + return true; + }, + set: function set(v) {} + }, + twitter_global_map: { + get: function get() { + return true; + }, + set: function set(v) {} + }, + + /** + * Shortcut to UserSettings state + */ + settings: function settings() { + return this.$store.state.user.user.settings; + } + }, + methods: { + /** + * Change what components are visible on a Public Profile + */ + update: function update() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _this.processing = true; + _context.next = 3; + return _this.$store.dispatch('UPDATE_SOCIAL_MEDIA_LINKS'); + + case 3: + _this.processing = false; + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Teams/CreateTeam.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Teams/CreateTeam.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -49895,10 +50008,10 @@ exports.push([module.i, "\n.root-container[data-v-12b10fb0] {\n height: calc( /***/ }), -/***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css&": -/*!***********************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css& ***! - \***********************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css&": +/*!********************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css& ***! + \********************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -49907,7 +50020,7 @@ exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css- // module -exports.push([module.i, "\n.public-profile-icon-container[data-v-244c3fd3] {\n display: flex;\n margin: auto 0;\n align-items: center;\n}\n.public-profile-icon[data-v-244c3fd3] {\n width: 3em;\n margin-right: 1em;\n}\n\n", ""]); +exports.push([module.i, "\n.public-profile-icon-container[data-v-443ad11a] {\n display: flex;\n margin: auto 0;\n align-items: center;\n}\n.public-profile-icon[data-v-443ad11a] {\n width: 3em;\n margin-right: 1em;\n}\n.social-media-options[data-v-443ad11a] {\n margin-bottom: 1em;\n padding-left: 4em;\n}\n\n", ""]); // exports @@ -129746,15 +129859,15 @@ if(false) {} /***/ }), -/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css&": -/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/style-loader!./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css& ***! - \***************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css&": +/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/style-loader!./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css& ***! + \************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -var content = __webpack_require__(/*! !../../../../node_modules/css-loader??ref--6-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--6-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css&"); +var content = __webpack_require__(/*! !../../../../node_modules/css-loader??ref--6-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--6-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css&"); if(typeof content === 'string') content = [[module.i, content, '']]; @@ -146776,243 +146889,6 @@ render._withStripped = true -/***/ }), - -/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=template&id=147fa882&scoped=true&": -/*!*****************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=template&id=147fa882&scoped=true& ***! - \*****************************************************************************************************************************************************************************************************************************************************************/ -/*! exports provided: render, staticRenderFns */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c("div", { staticClass: "pt1" }, [ - _c("p", { staticClass: "subtitle is-4 mb1" }, [ - _vm._v("You can control what data you want to display") - ]), - _vm._v(" "), - _c("div", { staticClass: "control mb1" }, [ - _c("input", { - directives: [ - { - name: "model", - rawName: "v-model", - value: _vm.download, - expression: "download" - } - ], - attrs: { id: "download", name: "download", type: "checkbox" }, - domProps: { - checked: Array.isArray(_vm.download) - ? _vm._i(_vm.download, null) > -1 - : _vm.download - }, - on: { - change: function($event) { - var $$a = _vm.download, - $$el = $event.target, - $$c = $$el.checked ? true : false - if (Array.isArray($$a)) { - var $$v = null, - $$i = _vm._i($$a, $$v) - if ($$el.checked) { - $$i < 0 && (_vm.download = $$a.concat([$$v])) - } else { - $$i > -1 && - (_vm.download = $$a.slice(0, $$i).concat($$a.slice($$i + 1))) - } - } else { - _vm.download = $$c - } - } - } - }), - _vm._v(" "), - _c("label", { attrs: { for: "download" } }, [_vm._v("Download My Data")]) - ]), - _vm._v(" "), - _c("div", { staticClass: "control mb1" }, [ - _c("input", { - directives: [ - { - name: "model", - rawName: "v-model", - value: _vm.map, - expression: "map" - } - ], - attrs: { id: "map", name: "map", type: "checkbox" }, - domProps: { - checked: Array.isArray(_vm.map) ? _vm._i(_vm.map, null) > -1 : _vm.map - }, - on: { - change: function($event) { - var $$a = _vm.map, - $$el = $event.target, - $$c = $$el.checked ? true : false - if (Array.isArray($$a)) { - var $$v = null, - $$i = _vm._i($$a, $$v) - if ($$el.checked) { - $$i < 0 && (_vm.map = $$a.concat([$$v])) - } else { - $$i > -1 && - (_vm.map = $$a.slice(0, $$i).concat($$a.slice($$i + 1))) - } - } else { - _vm.map = $$c - } - } - } - }), - _vm._v(" "), - _c("label", { attrs: { for: "map" } }, [ - _vm._v("Show Map with all my data") - ]) - ]), - _vm._v(" "), - _c("p", { staticClass: "mb1" }, [_vm._v("Link my Twitter")]), - _vm._v(" "), - _c("div", { staticClass: "public-profile-icon-container mb1" }, [ - _c("img", { - staticClass: "public-profile-icon", - attrs: { src: "/assets/icons/twitter2.png" } - }), - _vm._v(" "), - _c("input", { - directives: [ - { - name: "model", - rawName: "v-model", - value: _vm.twitter, - expression: "twitter" - } - ], - staticClass: "input w-15", - attrs: { - id: "twitter", - name: "twitter", - type: "input", - placeholder: "openlittermap" - }, - domProps: { value: _vm.twitter }, - on: { - input: function($event) { - if ($event.target.composing) { - return - } - _vm.twitter = $event.target.value - } - } - }) - ]), - _vm._v(" "), - _c("p", { staticClass: "mb1" }, [_vm._v("Link my Instagram")]), - _vm._v(" "), - _c("div", { staticClass: "public-profile-icon-container mb1" }, [ - _c("img", { - staticClass: "public-profile-icon", - attrs: { src: "/assets/icons/ig2.png" } - }), - _vm._v(" "), - _c("input", { - directives: [ - { - name: "model", - rawName: "v-model", - value: _vm.instagram, - expression: "instagram" - } - ], - staticClass: "input w-15", - attrs: { - id: "instagram", - name: "instagram", - type: "input", - placeholder: "openlittermap" - }, - domProps: { value: _vm.instagram }, - on: { - input: function($event) { - if ($event.target.composing) { - return - } - _vm.instagram = $event.target.value - } - } - }) - ]), - _vm._v(" "), - _vm.canLinkSocialMediaToUsername - ? _c("div", [ - _c("p", [_vm._v("Link my Username to a social media:")]), - _vm._v(" "), - _c( - "select", - { - directives: [ - { - name: "model", - rawName: "v-model", - value: _vm.socialMediaLink, - expression: "socialMediaLink" - } - ], - staticClass: "input", - on: { - change: function($event) { - var $$selectedVal = Array.prototype.filter - .call($event.target.options, function(o) { - return o.selected - }) - .map(function(o) { - var val = "_value" in o ? o._value : o.value - return val - }) - _vm.socialMediaLink = $event.target.multiple - ? $$selectedVal - : $$selectedVal[0] - } - } - }, - _vm._l(_vm.availableSocialMediaLinks, function(socialMediaLink) { - return _c("option", [ - _vm._v( - "\n " + - _vm._s(socialMediaLink) + - "\n " - ) - ]) - }), - 0 - ) - ]) - : _vm._e(), - _vm._v(" "), - _c( - "button", - { - staticClass: "button is-medium is-info", - class: _vm.processing ? "is-loading" : "", - attrs: { disabled: _vm.processing }, - on: { click: _vm.update } - }, - [_vm._v("Save Settings")] - ) - ]) -} -var staticRenderFns = [] -render._withStripped = true - - - /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/WelcomeBanner.vue?vue&type=template&id=588449d3&scoped=true&name=anonymous-presence&": @@ -148033,7 +147909,7 @@ var render = function() { _c( "ul", { staticClass: "menu-list" }, - _vm._l(_vm.links, function(link) { + _vm._l(Object.keys(this.links), function(link) { return _c( "li", [ @@ -148067,7 +147943,7 @@ var render = function() { _c( "div", { staticClass: "column is-three-quarters is-offset-1" }, - [_c(this.types[this.link], { tag: "component" })], + [_c(this.links[this.link], { tag: "component" })], 1 ) ]) @@ -149926,44 +149802,483 @@ var render = function() { _vm._v(" "), _c("div", { staticClass: "columns" }, [ _c("div", { staticClass: "column is-offset-1" }, [ - _c( - "div", - { staticClass: "row" }, - [ - _c("p", { staticClass: "subtitle is-4 mb1" }, [ - _vm._v( - "Do you want to make your User Dashboard public or private?" - ) - ]), - _vm._v(" "), - _c("strong", { staticClass: "mb1" }, [ - _vm._v( - "\n Public Profile Status:\n\n " - ), - _c("span", { style: _vm.getColor }, [ - _vm._v(_vm._s(this.getStatusText)) + _c("div", { staticClass: "row" }, [ + _c("p", { staticClass: "subtitle is-4 mb1" }, [ + _vm._v( + "Do you want to make your User Dashboard public or private?" + ) + ]), + _vm._v(" "), + _c("strong", { staticClass: "mb1" }, [ + _vm._v( + "\n Public Profile Status:\n\n " + ), + _c("span", { style: _vm.getColor }, [ + _vm._v(_vm._s(this.getStatusText)) + ]) + ]), + _vm._v(" "), + _c("p", [_vm._v(_vm._s(this.getInfoText))]), + _vm._v(" "), + _c("br"), + _vm._v(" "), + _c( + "button", + { + staticClass: "button is-medium", + class: _vm.getButtonClass, + attrs: { disabled: _vm.processing }, + on: { click: _vm.toggle } + }, + [_vm._v(_vm._s(this.getButtonText))] + ), + _vm._v(" "), + _vm.show_public_profile + ? _c("div", { staticClass: "pt2" }, [ + _c("p", { staticClass: "subtitle is-4 mb1" }, [ + _vm._v("You can control what data you want to display") + ]), + _vm._v(" "), + _c("div", { staticClass: "control mb1" }, [ + _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.download, + expression: "download" + } + ], + attrs: { + id: "download", + name: "download", + type: "checkbox" + }, + domProps: { + checked: Array.isArray(_vm.download) + ? _vm._i(_vm.download, null) > -1 + : _vm.download + }, + on: { + change: function($event) { + var $$a = _vm.download, + $$el = $event.target, + $$c = $$el.checked ? true : false + if (Array.isArray($$a)) { + var $$v = null, + $$i = _vm._i($$a, $$v) + if ($$el.checked) { + $$i < 0 && (_vm.download = $$a.concat([$$v])) + } else { + $$i > -1 && + (_vm.download = $$a + .slice(0, $$i) + .concat($$a.slice($$i + 1))) + } + } else { + _vm.download = $$c + } + } + } + }), + _vm._v(" "), + _c("label", { attrs: { for: "download" } }, [ + _vm._v("Show button to download my data") + ]) + ]), + _vm._v(" "), + _c("div", { staticClass: "control mb1" }, [ + _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.map, + expression: "map" + } + ], + attrs: { id: "map", name: "map", type: "checkbox" }, + domProps: { + checked: Array.isArray(_vm.map) + ? _vm._i(_vm.map, null) > -1 + : _vm.map + }, + on: { + change: function($event) { + var $$a = _vm.map, + $$el = $event.target, + $$c = $$el.checked ? true : false + if (Array.isArray($$a)) { + var $$v = null, + $$i = _vm._i($$a, $$v) + if ($$el.checked) { + $$i < 0 && (_vm.map = $$a.concat([$$v])) + } else { + $$i > -1 && + (_vm.map = $$a + .slice(0, $$i) + .concat($$a.slice($$i + 1))) + } + } else { + _vm.map = $$c + } + } + } + }), + _vm._v(" "), + _c("label", { attrs: { for: "map" } }, [ + _vm._v("Show map with all my data") + ]) + ]), + _vm._v(" "), + _c( + "button", + { + staticClass: "button is-medium is-info mt1", + class: _vm.processing ? "is-loading" : "", + attrs: { disabled: _vm.processing }, + on: { click: _vm.update } + }, + [_vm._v("Save")] + ) ]) - ]), - _vm._v(" "), - _c("p", [_vm._v(_vm._s(this.getInfoText))]), - _vm._v(" "), - _c("br"), + : _vm._e() + ]) + ]) + ]) + ] + ) +} +var staticRenderFns = [] +render._withStripped = true + + + +/***/ }), + +/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=template&id=443ad11a&scoped=true&": +/*!*****************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=template&id=443ad11a&scoped=true& ***! + \*****************************************************************************************************************************************************************************************************************************************/ +/*! exports provided: render, staticRenderFns */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); +var render = function() { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c( + "div", + { staticStyle: { "padding-left": "1em", "padding-right": "1em" } }, + [ + _c("h1", { staticClass: "title is-4" }, [ + _vm._v(_vm._s(_vm.$t("settings.common.public-profile"))) + ]), + _vm._v(" "), + _c("hr"), + _vm._v(" "), + _c("br"), + _vm._v(" "), + _c("div", { staticClass: "columns" }, [ + _c("div", { staticClass: "column is-offset-1" }, [ + _c("div", { staticClass: "row" }, [ + _c("p", { staticClass: "subtitle is-4 mb1" }, [ + _vm._v("Link your apps") + ]), + _vm._v(" "), + _c("p", { staticClass: "mb1" }, [ + _vm._v( + "\n You use this to promote some social media handles on OpenLitterMap and create links on the maps and leaderboards.\n " + ) + ]), + _vm._v(" "), + _c("div", { staticClass: "public-profile-icon-container mb1" }, [ + _c("img", { + staticClass: "public-profile-icon", + attrs: { src: "/assets/icons/twitter2.png" } + }), _vm._v(" "), - _c( - "button", - { - staticClass: "button is-medium", - class: _vm.getButtonClass, - attrs: { disabled: _vm.processing }, - on: { click: _vm.toggle } + _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.twitter, + expression: "twitter" + } + ], + staticClass: "input w-15", + attrs: { + id: "twitter", + name: "twitter", + type: "input", + placeholder: "openlittermap" }, - [_vm._v(_vm._s(this.getButtonText))] - ), + domProps: { value: _vm.twitter }, + on: { + input: function($event) { + if ($event.target.composing) { + return + } + _vm.twitter = $event.target.value + } + } + }) + ]), + _vm._v(" "), + _vm.twitter + ? _c("div", { staticClass: "social-media-options" }, [ + _c("div", { staticClass: "control mb1" }, [ + _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.twitter_leaderboards, + expression: "twitter_leaderboards" + } + ], + attrs: { + id: "twitter_leaderboards", + name: "twitter_leaderboards", + type: "checkbox" + }, + domProps: { + checked: Array.isArray(_vm.twitter_leaderboards) + ? _vm._i(_vm.twitter_leaderboards, null) > -1 + : _vm.twitter_leaderboards + }, + on: { + change: function($event) { + var $$a = _vm.twitter_leaderboards, + $$el = $event.target, + $$c = $$el.checked ? true : false + if (Array.isArray($$a)) { + var $$v = null, + $$i = _vm._i($$a, $$v) + if ($$el.checked) { + $$i < 0 && + (_vm.twitter_leaderboards = $$a.concat([$$v])) + } else { + $$i > -1 && + (_vm.twitter_leaderboards = $$a + .slice(0, $$i) + .concat($$a.slice($$i + 1))) + } + } else { + _vm.twitter_leaderboards = $$c + } + } + } + }), + _vm._v(" "), + _c("label", { attrs: { for: "twitter_leaderboards" } }, [ + _vm._v( + "Link My Username In Leaderboards To My Twitter Link" + ) + ]) + ]), + _vm._v(" "), + _c("div", { staticClass: "control mb1" }, [ + _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.twitter_global_map, + expression: "twitter_global_map" + } + ], + attrs: { + id: "twitter_global_map", + name: "twitter_global_map", + type: "checkbox" + }, + domProps: { + checked: Array.isArray(_vm.twitter_global_map) + ? _vm._i(_vm.twitter_global_map, null) > -1 + : _vm.twitter_global_map + }, + on: { + change: function($event) { + var $$a = _vm.twitter_global_map, + $$el = $event.target, + $$c = $$el.checked ? true : false + if (Array.isArray($$a)) { + var $$v = null, + $$i = _vm._i($$a, $$v) + if ($$el.checked) { + $$i < 0 && + (_vm.twitter_global_map = $$a.concat([$$v])) + } else { + $$i > -1 && + (_vm.twitter_global_map = $$a + .slice(0, $$i) + .concat($$a.slice($$i + 1))) + } + } else { + _vm.twitter_global_map = $$c + } + } + } + }), + _vm._v(" "), + _c("label", { attrs: { for: "twitter_global_map" } }, [ + _vm._v("Link ") + ]) + ]) + ]) + : _vm._e(), + _vm._v(" "), + _c("div", { staticClass: "public-profile-icon-container mb1" }, [ + _c("img", { + staticClass: "public-profile-icon", + attrs: { src: "/assets/icons/ig2.png" } + }), _vm._v(" "), - _vm.show_public_profile ? _c("SocialMediaIntegration") : _vm._e() - ], - 1 - ) + _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.instagram, + expression: "instagram" + } + ], + staticClass: "input w-15", + attrs: { + id: "instagram", + name: "instagram", + type: "input", + placeholder: "openlittermap" + }, + domProps: { value: _vm.instagram }, + on: { + input: function($event) { + if ($event.target.composing) { + return + } + _vm.instagram = $event.target.value + } + } + }) + ]), + _vm._v(" "), + _vm.instagram + ? _c("div", { staticClass: "social-media-options" }, [ + _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.instagram_leaderboards, + expression: "instagram_leaderboards" + } + ], + attrs: { + id: "instagram_leaderboards", + name: "instagram_leaderboards", + type: "checkbox" + }, + domProps: { + checked: Array.isArray(_vm.instagram_leaderboards) + ? _vm._i(_vm.instagram_leaderboards, null) > -1 + : _vm.instagram_leaderboards + }, + on: { + change: function($event) { + var $$a = _vm.instagram_leaderboards, + $$el = $event.target, + $$c = $$el.checked ? true : false + if (Array.isArray($$a)) { + var $$v = null, + $$i = _vm._i($$a, $$v) + if ($$el.checked) { + $$i < 0 && + (_vm.instagram_leaderboards = $$a.concat([$$v])) + } else { + $$i > -1 && + (_vm.instagram_leaderboards = $$a + .slice(0, $$i) + .concat($$a.slice($$i + 1))) + } + } else { + _vm.instagram_leaderboards = $$c + } + } + } + }), + _vm._v(" "), + _c("label", { attrs: { for: "instagram_leaderboards" } }, [ + _vm._v("Link instagram to my username on the Leaderboards") + ]), + _vm._v(" "), + _c("div", { staticClass: "control mb1" }, [ + _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.instagram_global_map, + expression: "instagram_global_map" + } + ], + attrs: { + id: "instagram_global_map", + name: "instagram_global_map", + type: "checkbox" + }, + domProps: { + checked: Array.isArray(_vm.instagram_global_map) + ? _vm._i(_vm.instagram_global_map, null) > -1 + : _vm.instagram_global_map + }, + on: { + change: function($event) { + var $$a = _vm.instagram_global_map, + $$el = $event.target, + $$c = $$el.checked ? true : false + if (Array.isArray($$a)) { + var $$v = null, + $$i = _vm._i($$a, $$v) + if ($$el.checked) { + $$i < 0 && + (_vm.instagram_global_map = $$a.concat([$$v])) + } else { + $$i > -1 && + (_vm.instagram_global_map = $$a + .slice(0, $$i) + .concat($$a.slice($$i + 1))) + } + } else { + _vm.instagram_global_map = $$c + } + } + } + }), + _vm._v(" "), + _c("label", { attrs: { for: "instagram_global_map" } }, [ + _vm._v("Link instagram to my username on the Global Map") + ]) + ]) + ]) + : _vm._e(), + _vm._v(" "), + _c( + "button", + { + staticClass: "button is-medium is-info mt1", + class: _vm.processing ? "is-loading" : "", + attrs: { disabled: _vm.processing }, + on: { click: _vm.update } + }, + [_vm._v("Save")] + ) + ]) ]) ]) ] @@ -192738,75 +193053,6 @@ __webpack_require__.r(__webpack_exports__); -/***/ }), - -/***/ "./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue": -/*!****************************************************************************************!*\ - !*** ./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue ***! - \****************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _SocialMediaIntegration_vue_vue_type_template_id_147fa882_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SocialMediaIntegration.vue?vue&type=template&id=147fa882&scoped=true& */ "./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=template&id=147fa882&scoped=true&"); -/* harmony import */ var _SocialMediaIntegration_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SocialMediaIntegration.vue?vue&type=script&lang=js& */ "./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); - - - - - -/* normalize component */ - -var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( - _SocialMediaIntegration_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], - _SocialMediaIntegration_vue_vue_type_template_id_147fa882_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"], - _SocialMediaIntegration_vue_vue_type_template_id_147fa882_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], - false, - null, - "147fa882", - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue" -/* harmony default export */ __webpack_exports__["default"] = (component.exports); - -/***/ }), - -/***/ "./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=script&lang=js&": -/*!*****************************************************************************************************************!*\ - !*** ./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=script&lang=js& ***! - \*****************************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./SocialMediaIntegration.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); - -/***/ }), - -/***/ "./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=template&id=147fa882&scoped=true&": -/*!***********************************************************************************************************************************!*\ - !*** ./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=template&id=147fa882&scoped=true& ***! - \***********************************************************************************************************************************/ -/*! exports provided: render, staticRenderFns */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_template_id_147fa882_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./SocialMediaIntegration.vue?vue&type=template&id=147fa882&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue?vue&type=template&id=147fa882&scoped=true&"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_template_id_147fa882_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; }); - -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_template_id_147fa882_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); - - - /***/ }), /***/ "./resources/js/components/WelcomeBanner.vue": @@ -193635,10 +193881,10 @@ module.exports = JSON.parse("{\"delete-account\":\"Delete My Account\",\"delete- /*!****************************************************!*\ !*** ./resources/js/langs/en/settings/common.json ***! \****************************************************/ -/*! exports provided: general, password, details, account, payments, privacy, littercoin, presence, emails, show-flag, teams, public-profile, default */ +/*! exports provided: general, password, details, account, payments, privacy, littercoin, presence, emails, show-flag, teams, public-profile, social-media, default */ /***/ (function(module) { -module.exports = JSON.parse("{\"general\":\"General\",\"password\":\"Password\",\"details\":\"Personal Details\",\"account\":\"My Account\",\"payments\":\"My Payments\",\"privacy\":\"Privacy\",\"littercoin\":\"Littercoin (LTRX)\",\"presence\":\"Presence\",\"emails\":\"Emails\",\"show-flag\":\"Show Flag\",\"teams\":\"Teams\",\"public-profile\":\"Public Profile\"}"); +module.exports = JSON.parse("{\"general\":\"General\",\"password\":\"Password\",\"details\":\"Personal Details\",\"account\":\"My Account\",\"payments\":\"My Payments\",\"privacy\":\"Privacy\",\"littercoin\":\"Littercoin (LTRX)\",\"presence\":\"Presence\",\"emails\":\"Emails\",\"show-flag\":\"Show Flag\",\"teams\":\"Teams\",\"public-profile\":\"Public Profile\",\"social-media\":\"Social Media\"}"); /***/ }), @@ -194283,10 +194529,10 @@ module.exports = JSON.parse("{\"delete-account\":\"Eliminar mi cuenta\",\"delete /*!****************************************************!*\ !*** ./resources/js/langs/es/settings/common.json ***! \****************************************************/ -/*! exports provided: general, password, details, account, payments, privacy, littercoin, presence, emails, show-flag, teams, public-profile, default */ +/*! exports provided: general, password, details, account, payments, privacy, littercoin, presence, emails, show-flag, teams, public-profile, social-media, default */ /***/ (function(module) { -module.exports = JSON.parse("{\"general\":\"General\",\"password\":\"Contraseña\",\"details\":\"Datos personales\",\"account\":\"Mi cuenta\",\"payments\":\"Mis pagos\",\"privacy\":\"Privacidad\",\"littercoin\":\"Littercoin (LTRX)\",\"presence\":\"Presencia\",\"emails\":\"Corres electrónicos\",\"show-flag\":\"Mostrar bandera\",\"teams\":\"Equipos\",\"public-profile\":\"Public Profile\"}"); +module.exports = JSON.parse("{\"general\":\"General\",\"password\":\"Contraseña\",\"details\":\"Datos personales\",\"account\":\"Mi cuenta\",\"payments\":\"Mis pagos\",\"privacy\":\"Privacidad\",\"littercoin\":\"Littercoin (LTRX)\",\"presence\":\"Presencia\",\"emails\":\"Corres electrónicos\",\"show-flag\":\"Mostrar bandera\",\"teams\":\"Equipos\",\"public-profile\":\"Public Profile\",\"social-media\":\"Social Media\"}"); /***/ }), @@ -194958,10 +195204,10 @@ module.exports = JSON.parse("{\"delete-account\":\"Verwijder mijn account\",\"de /*!****************************************************!*\ !*** ./resources/js/langs/nl/settings/common.json ***! \****************************************************/ -/*! exports provided: general, password, details, account, payments, privacy, littercoin, presence, emails, show-flag, teams, public-profile, default */ +/*! exports provided: general, password, details, account, payments, privacy, littercoin, presence, emails, show-flag, teams, public-profile, social-media, default */ /***/ (function(module) { -module.exports = JSON.parse("{\"general\":\"Algemeen\",\"password\":\"Wachtwoord\",\"details\":\"Persoonlijke Details\",\"account\":\"Mijn Account\",\"payments\":\"Mijn Betalingen\",\"privacy\":\"Privacy\",\"littercoin\":\"Littercoin (LTRX)\",\"presence\":\"Aanwezigheid\",\"emails\":\"Emails\",\"show-flag\":\"Toon vlag\",\"teams\":\"Teams\",\"public-profile\":\"Public Profile\"}"); +module.exports = JSON.parse("{\"general\":\"Algemeen\",\"password\":\"Wachtwoord\",\"details\":\"Persoonlijke Details\",\"account\":\"Mijn Account\",\"payments\":\"Mijn Betalingen\",\"privacy\":\"Privacy\",\"littercoin\":\"Littercoin (LTRX)\",\"presence\":\"Aanwezigheid\",\"emails\":\"Emails\",\"show-flag\":\"Toon vlag\",\"teams\":\"Teams\",\"public-profile\":\"Public Profile\",\"social-media\":\"Social Media\"}"); /***/ }), @@ -195606,10 +195852,10 @@ module.exports = JSON.parse("{\"delete-account\":\"Usuń moje konto\",\"delete-a /*!****************************************************!*\ !*** ./resources/js/langs/pl/settings/common.json ***! \****************************************************/ -/*! exports provided: general, password, details, account, payments, privacy, littercoin, presence, emails, show-flag, teams, public-profile, default */ +/*! exports provided: general, password, details, account, payments, privacy, littercoin, presence, emails, show-flag, teams, public-profile, social-media, default */ /***/ (function(module) { -module.exports = JSON.parse("{\"general\":\"Generalne\",\"password\":\"Hasło\",\"details\":\"Dane osobowe\",\"account\":\"Moje konto\",\"payments\":\"Moje płatności\",\"privacy\":\"Prywatności\",\"littercoin\":\"Littercoin (LTRX)\",\"presence\":\"Obecność\",\"emails\":\"E-maile\",\"show-flag\":\"Pokaż flage\",\"teams\":\"Drużyny\",\"public-profile\":\"Public Profile\"}"); +module.exports = JSON.parse("{\"general\":\"Generalne\",\"password\":\"Hasło\",\"details\":\"Dane osobowe\",\"account\":\"Moje konto\",\"payments\":\"Moje płatności\",\"privacy\":\"Prywatności\",\"littercoin\":\"Littercoin (LTRX)\",\"presence\":\"Obecność\",\"emails\":\"E-maile\",\"show-flag\":\"Pokaż flage\",\"teams\":\"Drużyny\",\"public-profile\":\"Public Profile\",\"social-media\":\"Social Media\"}"); /***/ }), @@ -196155,6 +196401,9 @@ var router = new vue_router__WEBPACK_IMPORTED_MODULE_0__["default"]({ }, { path: 'public-profile', component: __webpack_require__(/*! ./views/Settings/PublicProfile */ "./resources/js/views/Settings/PublicProfile.vue")["default"] + }, { + path: 'social-media', + component: __webpack_require__(/*! ./views/Settings/SocialMediaIntegration */ "./resources/js/views/Settings/SocialMediaIntegration.vue")["default"] }] }, { path: '/bbox', @@ -200952,8 +201201,7 @@ var actions = { while (1) { switch (_context14.prev = _context14.next) { case 0: - title = _i18n__WEBPACK_IMPORTED_MODULE_3__["default"].t('notifications.success'); // todo - translate this - + title = _i18n__WEBPACK_IMPORTED_MODULE_3__["default"].t('notifications.success'); body = 'Your information has been updated'; _context14.next = 4; return axios.post('/settings/details', { @@ -200962,15 +201210,13 @@ var actions = { username: context.state.user.username }).then(function (response) { console.log('update_details', response); - /* improve this */ - vue__WEBPACK_IMPORTED_MODULE_2___default.a.$vToastify.success({ title: title, body: body, position: 'top-right' }); })["catch"](function (error) { - console.log('error.update_details', error); // update errors. user.js + console.error('update_details', error); // update errors. user.js context.commit('errors', error.response.data.errors); }); @@ -201000,16 +201246,14 @@ var actions = { return axios.post('/settings/save-flag', { country: payload }).then(function (response) { - console.log(response); - /* improve this */ - + console.log('update_global_flag', response); vue__WEBPACK_IMPORTED_MODULE_2___default.a.$vToastify.success({ title: title, body: body, position: 'top-right' }); })["catch"](function (error) { - console.log(error); + console.log('update_global_flag', error); }); case 4: @@ -201019,6 +201263,84 @@ var actions = { } }, _callee15); }))(); + }, + + /** + * Update the settings of the users public profile + */ + UPDATE_PUBLIC_PROFILE_SETTINGS: function UPDATE_PUBLIC_PROFILE_SETTINGS(context) { + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee16() { + var title, body; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee16$(_context16) { + while (1) { + switch (_context16.prev = _context16.next) { + case 0: + title = _i18n__WEBPACK_IMPORTED_MODULE_3__["default"].t('notifications.success'); + body = "Your settings have been updated"; + _context16.next = 4; + return axios.post('/settings/public-profile/update', { + map: context.state.user.settings.map, + download: context.state.user.settings.download + }).then(function (response) { + console.log('update_public_profile_settings', response); + + if (response.data.success) { + vue__WEBPACK_IMPORTED_MODULE_2___default.a.$vToastify.success({ + title: title, + body: body, + position: 'top-right' + }); + } + })["catch"](function (error) { + console.error('update_public_profile_settings', error); + }); + + case 4: + case "end": + return _context16.stop(); + } + } + }, _callee16); + }))(); + }, + + /** + * Update the users links to twitter and instagram + */ + UPDATE_SOCIAL_MEDIA_LINKS: function UPDATE_SOCIAL_MEDIA_LINKS(context) { + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee17() { + var title, body; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee17$(_context17) { + while (1) { + switch (_context17.prev = _context17.next) { + case 0: + title = _i18n__WEBPACK_IMPORTED_MODULE_3__["default"].t('notifications.success'); + body = "Your settings have been updated"; + _context17.next = 4; + return axios.post('/settings/social-media/update', { + twitter: context.state.user.settings.twitter, + instagram: context.state.user.settings.instagram + }).then(function (response) { + console.log('update_public_profile_settings', response); + + if (response.data.success) { + vue__WEBPACK_IMPORTED_MODULE_2___default.a.$vToastify.success({ + title: title, + body: body, + position: 'top-right' + }); + } + })["catch"](function (error) { + console.error('update_public_profile_settings', error); + }); + + case 4: + case "end": + return _context17.stop(); + } + } + }, _callee17); + }))(); } }; @@ -201192,6 +201514,15 @@ var mutations = { state.user.active_team = payload; }, + /** + * Update a value for one of the available settings params + */ + publicProfileSetting: function publicProfileSetting(state, payload) { + var settings = Object.assign({}, state.user.settings); + settings[payload.key] = payload.v; + state.user.settings = settings; + }, + /** * The user wants to change a privacy setting */ @@ -202678,9 +203009,7 @@ __webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__); /* harmony import */ var _PublicProfile_vue_vue_type_template_id_244c3fd3_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PublicProfile.vue?vue&type=template&id=244c3fd3&scoped=true& */ "./resources/js/views/Settings/PublicProfile.vue?vue&type=template&id=244c3fd3&scoped=true&"); /* harmony import */ var _PublicProfile_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PublicProfile.vue?vue&type=script&lang=js& */ "./resources/js/views/Settings/PublicProfile.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _PublicProfile_vue_vue_type_style_index_0_id_244c3fd3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css& */ "./resources/js/views/Settings/PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css&"); -/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); - +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); @@ -202688,7 +203017,7 @@ __webpack_require__.r(__webpack_exports__); /* normalize component */ -var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])( +var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( _PublicProfile_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _PublicProfile_vue_vue_type_template_id_244c3fd3_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"], _PublicProfile_vue_vue_type_template_id_244c3fd3_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], @@ -202720,35 +203049,106 @@ __webpack_require__.r(__webpack_exports__); /***/ }), -/***/ "./resources/js/views/Settings/PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css&": -/*!****************************************************************************************************************!*\ - !*** ./resources/js/views/Settings/PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css& ***! - \****************************************************************************************************************/ +/***/ "./resources/js/views/Settings/PublicProfile.vue?vue&type=template&id=244c3fd3&scoped=true&": +/*!**************************************************************************************************!*\ + !*** ./resources/js/views/Settings/PublicProfile.vue?vue&type=template&id=244c3fd3&scoped=true& ***! + \**************************************************************************************************/ +/*! exports provided: render, staticRenderFns */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_template_id_244c3fd3_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./PublicProfile.vue?vue&type=template&id=244c3fd3&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/PublicProfile.vue?vue&type=template&id=244c3fd3&scoped=true&"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_template_id_244c3fd3_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_template_id_244c3fd3_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); + + + +/***/ }), + +/***/ "./resources/js/views/Settings/SocialMediaIntegration.vue": +/*!****************************************************************!*\ + !*** ./resources/js/views/Settings/SocialMediaIntegration.vue ***! + \****************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _SocialMediaIntegration_vue_vue_type_template_id_443ad11a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SocialMediaIntegration.vue?vue&type=template&id=443ad11a&scoped=true& */ "./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=template&id=443ad11a&scoped=true&"); +/* harmony import */ var _SocialMediaIntegration_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SocialMediaIntegration.vue?vue&type=script&lang=js& */ "./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _SocialMediaIntegration_vue_vue_type_style_index_0_id_443ad11a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css& */ "./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css&"); +/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); + + + + + + +/* normalize component */ + +var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])( + _SocialMediaIntegration_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], + _SocialMediaIntegration_vue_vue_type_template_id_443ad11a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"], + _SocialMediaIntegration_vue_vue_type_template_id_443ad11a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], + false, + null, + "443ad11a", + null + +) + +/* hot reload */ +if (false) { var api; } +component.options.__file = "resources/js/views/Settings/SocialMediaIntegration.vue" +/* harmony default export */ __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************!*\ + !*** ./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./SocialMediaIntegration.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); + +/***/ }), + +/***/ "./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css&": +/*!*************************************************************************************************************************!*\ + !*** ./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css& ***! + \*************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_style_index_0_id_244c3fd3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader??ref--6-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--6-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/PublicProfile.vue?vue&type=style&index=0&id=244c3fd3&scoped=true&lang=css&"); -/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_style_index_0_id_244c3fd3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_style_index_0_id_244c3fd3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); -/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_style_index_0_id_244c3fd3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_style_index_0_id_244c3fd3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); - /* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_style_index_0_id_244c3fd3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); +/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_style_index_0_id_443ad11a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader??ref--6-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--6-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=style&index=0&id=443ad11a&scoped=true&lang=css&"); +/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_style_index_0_id_443ad11a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_style_index_0_id_443ad11a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); +/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_style_index_0_id_443ad11a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_style_index_0_id_443ad11a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); + /* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_style_index_0_id_443ad11a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/***/ "./resources/js/views/Settings/PublicProfile.vue?vue&type=template&id=244c3fd3&scoped=true&": -/*!**************************************************************************************************!*\ - !*** ./resources/js/views/Settings/PublicProfile.vue?vue&type=template&id=244c3fd3&scoped=true& ***! - \**************************************************************************************************/ +/***/ "./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=template&id=443ad11a&scoped=true&": +/*!***********************************************************************************************************!*\ + !*** ./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=template&id=443ad11a&scoped=true& ***! + \***********************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_template_id_244c3fd3_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./PublicProfile.vue?vue&type=template&id=244c3fd3&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/PublicProfile.vue?vue&type=template&id=244c3fd3&scoped=true&"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_template_id_244c3fd3_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; }); +/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_template_id_443ad11a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./SocialMediaIntegration.vue?vue&type=template&id=443ad11a&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/Settings/SocialMediaIntegration.vue?vue&type=template&id=443ad11a&scoped=true&"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_template_id_443ad11a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; }); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicProfile_vue_vue_type_template_id_244c3fd3_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SocialMediaIntegration_vue_vue_type_template_id_443ad11a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); diff --git a/resources/js/components/General/Nav.vue b/resources/js/components/General/Nav.vue index 218341611..0757b3ee2 100644 --- a/resources/js/components/General/Nav.vue +++ b/resources/js/components/General/Nav.vue @@ -106,7 +106,7 @@ {{ $t('nav.signup')}} - + @@ -131,9 +131,8 @@ export default { }; }, computed: { - /** - * Return true if the user is logged in + * Return True if the user is logged in */ auth () { @@ -164,9 +163,7 @@ export default { return this.open ? 'navbar-menu is-active' : 'navbar-menu'; } }, - methods: { - /** * Mobile - Close the nav */ diff --git a/resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue b/resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue deleted file mode 100644 index 897183082..000000000 --- a/resources/js/components/User/Settings/PublicProfile/SocialMediaIntegration.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - diff --git a/resources/js/langs/de/settings/common.json b/resources/js/langs/de/settings/common.json index 132bc7dc0..a5183c0f8 100644 --- a/resources/js/langs/de/settings/common.json +++ b/resources/js/langs/de/settings/common.json @@ -10,5 +10,6 @@ "emails": "Emails", "show-flag": "Show Flag", "teams": "Teams", - "public-profile": "Public Profile" + "public-profile": "Public Profile", + "social-media": "Social Media" } diff --git a/resources/js/langs/en/settings/common.json b/resources/js/langs/en/settings/common.json index 132bc7dc0..a5183c0f8 100644 --- a/resources/js/langs/en/settings/common.json +++ b/resources/js/langs/en/settings/common.json @@ -10,5 +10,6 @@ "emails": "Emails", "show-flag": "Show Flag", "teams": "Teams", - "public-profile": "Public Profile" + "public-profile": "Public Profile", + "social-media": "Social Media" } diff --git a/resources/js/langs/es/settings/common.json b/resources/js/langs/es/settings/common.json index a4adbf027..ff09258f4 100644 --- a/resources/js/langs/es/settings/common.json +++ b/resources/js/langs/es/settings/common.json @@ -10,5 +10,6 @@ "emails": "Corres electrónicos", "show-flag": "Mostrar bandera", "teams": "Equipos", - "public-profile": "Public Profile" + "public-profile": "Public Profile", + "social-media": "Social Media" } diff --git a/resources/js/langs/nl/settings/common.json b/resources/js/langs/nl/settings/common.json index 42ab54258..932451515 100644 --- a/resources/js/langs/nl/settings/common.json +++ b/resources/js/langs/nl/settings/common.json @@ -10,5 +10,6 @@ "emails": "Emails", "show-flag": "Toon vlag", "teams": "Teams", - "public-profile": "Public Profile" + "public-profile": "Public Profile", + "social-media": "Social Media" } diff --git a/resources/js/langs/pl/settings/common.json b/resources/js/langs/pl/settings/common.json index d33e010cc..478e2cffc 100644 --- a/resources/js/langs/pl/settings/common.json +++ b/resources/js/langs/pl/settings/common.json @@ -10,5 +10,6 @@ "emails": "E-maile", "show-flag": "Pokaż flage", "teams": "Drużyny", - "public-profile": "Public Profile" + "public-profile": "Public Profile", + "social-media": "Social Media" } diff --git a/resources/js/routes.js b/resources/js/routes.js index 56b477e22..7f50357ae 100644 --- a/resources/js/routes.js +++ b/resources/js/routes.js @@ -174,6 +174,10 @@ const router = new VueRouter({ { path: 'public-profile', component: require('./views/Settings/PublicProfile').default + }, + { + path: 'social-media', + component: require('./views/Settings/SocialMediaIntegration').default } ] }, diff --git a/resources/js/store/modules/user/actions.js b/resources/js/store/modules/user/actions.js index f3da91495..1480a2c48 100644 --- a/resources/js/store/modules/user/actions.js +++ b/resources/js/store/modules/user/actions.js @@ -339,7 +339,6 @@ export const actions = { async UPDATE_DETAILS (context) { const title = i18n.t('notifications.success'); - // todo - translate this const body = 'Your information has been updated' await axios.post('/settings/details', { @@ -350,7 +349,6 @@ export const actions = { .then(response => { console.log('update_details', response); - /* improve this */ Vue.$vToastify.success({ title, body, @@ -358,7 +356,7 @@ export const actions = { }); }) .catch(error => { - console.log('error.update_details', error); + console.error('update_details', error); // update errors. user.js context.commit('errors', error.response.data.errors); @@ -370,16 +368,15 @@ export const actions = { */ async UPDATE_GLOBAL_FLAG (context, payload) { - let title = i18n.t('notifications.success'); - let body = i18n.t('notifications.settings.flag-updated'); + const title = i18n.t('notifications.success'); + const body = i18n.t('notifications.settings.flag-updated'); await axios.post('/settings/save-flag', { country: payload }) .then(response => { - console.log(response); + console.log('update_global_flag', response); - /* improve this */ Vue.$vToastify.success({ title, body, @@ -387,7 +384,65 @@ export const actions = { }); }) .catch(error => { - console.log(error); + console.log('update_global_flag', error); + }); + }, + + /** + * Update the settings of the users public profile + */ + async UPDATE_PUBLIC_PROFILE_SETTINGS (context) + { + const title = i18n.t('notifications.success'); + const body = "Your settings have been updated"; + + await axios.post('/settings/public-profile/update', { + map: context.state.user.settings.map, + download: context.state.user.settings.download, + }) + .then(response => { + console.log('update_public_profile_settings', response); + + if (response.data.success) + { + Vue.$vToastify.success({ + title, + body, + position: 'top-right' + }); + } + }) + .catch(error => { + console.error('update_public_profile_settings', error); + }); + }, + + /** + * Update the users links to twitter and instagram + */ + async UPDATE_SOCIAL_MEDIA_LINKS (context) + { + const title = i18n.t('notifications.success'); + const body = "Your settings have been updated"; + + await axios.post('/settings/social-media/update', { + twitter: context.state.user.settings.twitter, + instagram: context.state.user.settings.instagram, + }) + .then(response => { + console.log('update_public_profile_settings', response); + + if (response.data.success) + { + Vue.$vToastify.success({ + title, + body, + position: 'top-right' + }); + } + }) + .catch(error => { + console.error('update_public_profile_settings', error); }); } }; diff --git a/resources/js/store/modules/user/mutations.js b/resources/js/store/modules/user/mutations.js index d29918b38..da8e2d6b3 100644 --- a/resources/js/store/modules/user/mutations.js +++ b/resources/js/store/modules/user/mutations.js @@ -111,6 +111,18 @@ export const mutations = { state.user.active_team = payload; }, + /** + * Update a value for one of the available settings params + */ + publicProfileSetting (state, payload) + { + const settings = Object.assign({}, state.user.settings); + + settings[payload.key] = payload.v; + + state.user.settings = settings; + }, + /** * The user wants to change a privacy setting */ diff --git a/resources/js/views/RootContainer.vue b/resources/js/views/RootContainer.vue index 1f3662680..e1707f734 100644 --- a/resources/js/views/RootContainer.vue +++ b/resources/js/views/RootContainer.vue @@ -63,7 +63,11 @@ export default { // This is needed to invalidate user.auth = true // which is persisted and not updated if the authenticated user forgets to manually log out - else this.$store.commit('resetState'); + else + { + console.log('guest'); + this.$store.commit('resetState'); + } // If Account Verified if (this.verified) this.showEmailConfirmed = true; diff --git a/resources/js/views/Settings.vue b/resources/js/views/Settings.vue index 1ccb6d74e..c6c1cbb0c 100644 --- a/resources/js/views/Settings.vue +++ b/resources/js/views/Settings.vue @@ -7,7 +7,7 @@ {{ $t('settings.common.general') }}